@shumai-one/shumai 0.5.2 → 0.5.3
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/bin/{chunk-zf5cyxnt.js → chunk-03zkxckm.js} +1 -1
- package/bin/{chunk-2w6gve12.js → chunk-04nqnkzs.js} +3 -3
- package/bin/{chunk-rw5h0n0s.js → chunk-157axqz1.js} +1 -1
- package/bin/{chunk-w9z27p0m.js → chunk-1tesbv8w.js} +1 -1
- package/bin/{chunk-vzdgsfkf.js → chunk-24da4wg9.js} +1 -1
- package/bin/chunk-24nx3krz.js +2 -0
- package/bin/{chunk-twpc640e.js → chunk-26am2rzm.js} +1 -1
- package/bin/{chunk-8ayz61rc.js → chunk-2pt9h882.js} +3 -3
- package/bin/{chunk-mn108p93.js → chunk-2rrcdhkj.js} +1 -1
- package/bin/{chunk-ryepy5er.js → chunk-2w2bknn2.js} +4 -4
- package/bin/{chunk-ypkkfwfb.js → chunk-3ahax79y.js} +2 -2
- package/bin/{chunk-zdzkjp4q.js → chunk-3fjgf7eb.js} +2 -2
- package/bin/{chunk-rmvhyqyb.js → chunk-3wcvema0.js} +3 -3
- package/bin/{chunk-kvwec0p3.js → chunk-40tmh04g.js} +2 -2
- package/bin/chunk-45p7d22e.js +2 -0
- package/bin/chunk-461gcgrs.js +2 -0
- package/bin/{chunk-p0j4wpa5.js → chunk-4bc3gqmn.js} +1 -1
- package/bin/{chunk-8tzfcqtb.js → chunk-4nkwe7dz.js} +1 -1
- package/bin/{chunk-eqr0znmc.js → chunk-59ayg5am.js} +1 -1
- package/bin/{chunk-8zgq5sav.js → chunk-5ebb2pdf.js} +2 -2
- package/bin/{chunk-n76w2wcr.js → chunk-5y3kx4kk.js} +1 -1
- package/bin/{chunk-d2dgazjj.js → chunk-68xsb3t8.js} +1 -1
- package/bin/{chunk-n9vp9nbg.js → chunk-6hs63sva.js} +30 -30
- package/bin/{chunk-bpxw19ez.js → chunk-6pwf7qa6.js} +1 -1
- package/bin/{chunk-f5z3096k.js → chunk-6sq6dfa1.js} +2 -2
- package/bin/chunk-87secbzy.js +1 -0
- package/bin/chunk-8pykp70z.js +1 -0
- package/bin/{chunk-3pm6q6kg.js → chunk-8ts3xkme.js} +1 -1
- package/bin/{chunk-rza95y4z.js → chunk-909h3qzp.js} +2 -2
- package/bin/{chunk-0v9srsdz.js → chunk-929abwgr.js} +1 -1
- package/bin/{chunk-j53sjkxt.js → chunk-9ca8a5f2.js} +1 -1
- package/bin/{chunk-2pw7xcrn.js → chunk-9fyb95r5.js} +1 -1
- package/bin/{chunk-mneeg71d.js → chunk-axeq2pq5.js} +2 -2
- package/bin/{chunk-r249n1xe.js → chunk-b3tkvdfk.js} +2 -2
- package/bin/{chunk-9ggwc289.js → chunk-b6dbqs39.js} +1 -1
- package/bin/{chunk-w73v578p.js → chunk-b88tdt79.js} +2 -2
- package/bin/{chunk-19q13a80.js → chunk-bcyvxp1c.js} +4 -4
- package/bin/{chunk-7qvvf0yd.js → chunk-bn0taqr3.js} +2 -2
- package/bin/chunk-cb37q6t0.js +1 -0
- package/bin/chunk-cfqny70c.js +3 -0
- package/bin/{chunk-ffj9cq9y.js → chunk-cqnected.js} +1 -1
- package/bin/{chunk-98mg3dpd.js → chunk-cvfznrnt.js} +4 -4
- package/bin/{chunk-951r2rx1.js → chunk-d1q1tn36.js} +1 -1
- package/bin/{chunk-0asthrjf.js → chunk-d1rjpbgv.js} +2 -2
- package/bin/{chunk-81dawvn4.js → chunk-eshwjf91.js} +2 -2
- package/bin/{chunk-04avc4fn.js → chunk-fa9yq17g.js} +26 -26
- package/bin/{chunk-m6v8vt2b.js → chunk-fnkkwna8.js} +2 -2
- package/bin/{chunk-3q5qkfkc.js → chunk-fpjvr3qw.js} +1 -1
- package/bin/{chunk-ggfx2b0f.js → chunk-fsr83nb1.js} +1 -1
- package/bin/{chunk-kzr6ecke.js → chunk-fznchvm7.js} +1 -1
- package/bin/chunk-g2z0c39g.js +1 -0
- package/bin/{chunk-5vqbzsjv.js → chunk-gvcjqcjf.js} +1 -1
- package/bin/{chunk-0ge2mm8j.js → chunk-hbnpx0a5.js} +1 -1
- package/bin/{chunk-tvkekn4z.js → chunk-hgy9rqt1.js} +1 -1
- package/bin/chunk-hk659cg2.css +1 -0
- package/bin/{chunk-8ny7wvzb.js → chunk-hn2g40r6.js} +1 -1
- package/bin/{chunk-0y4zq3y4.js → chunk-hsx4pns6.js} +1 -1
- package/bin/{chunk-bbcmhcvc.js → chunk-hy5ncvpf.js} +2 -2
- package/bin/{chunk-5nqvqvqp.js → chunk-j420aqk8.js} +3 -3
- package/bin/{chunk-t1yamxgk.js → chunk-k3ds96cb.js} +1 -1
- package/bin/{chunk-dppfek34.js → chunk-m41tbrvt.js} +2 -2
- package/bin/chunk-m9f21ye9.js +1 -0
- package/bin/chunk-md7pgk86.js +2 -0
- package/bin/chunk-me3zmpj5.js +14 -0
- package/bin/chunk-mg6sybt0.js +1 -0
- package/bin/{chunk-jgfye6nf.js → chunk-mzme3m82.js} +1 -1
- package/bin/{chunk-ce0bhc72.js → chunk-n08h1jgx.js} +1 -1
- package/bin/{chunk-ae6zgjhd.js → chunk-ncv8v6mj.js} +2 -2
- package/bin/{chunk-cx32wsa1.js → chunk-nmd1901j.js} +1 -1
- package/bin/{chunk-wnqxyqrg.js → chunk-np39aknv.js} +2 -2
- package/bin/{chunk-dche0gy0.js → chunk-p7zw53ep.js} +1 -1
- package/bin/{chunk-xr2v0d6y.js → chunk-ppb4aj0y.js} +4 -4
- package/bin/{chunk-15vsw36h.js → chunk-pwq6dbb5.js} +5 -5
- package/bin/chunk-q1gfypy3.js +2 -0
- package/bin/{chunk-0j22699g.js → chunk-q4qqmes7.js} +2 -2
- package/bin/{chunk-vm2pz2hm.js → chunk-q7t5zs7n.js} +2 -2
- package/bin/{chunk-e439kt05.js → chunk-qcpeefhr.js} +1 -1
- package/bin/{chunk-6rn094yj.js → chunk-qjdvs1s5.js} +1 -1
- package/bin/{chunk-9zgqjdx1.js → chunk-qqapw198.js} +2 -2
- package/bin/chunk-qx553512.js +211 -0
- package/bin/chunk-r3s1x5wp.js +1 -0
- package/bin/{chunk-rtaya5wc.js → chunk-rh8dy99a.js} +2 -2
- package/bin/{chunk-5rzxekn4.js → chunk-s0vfj06y.js} +1 -1
- package/bin/{chunk-4zksqvwj.js → chunk-s6g2mzpn.js} +2 -2
- package/bin/{chunk-zckxc8m6.js → chunk-s9sf37dv.js} +2 -2
- package/bin/{chunk-19jpn3r6.js → chunk-scvepfv8.js} +1 -1
- package/bin/chunk-sjbvt3wa.js +2 -0
- package/bin/{chunk-mn208vrv.js → chunk-srmx5z3v.js} +2 -2
- package/bin/{chunk-r776bhsg.js → chunk-srv5kvm4.js} +1 -1
- package/bin/{chunk-qmrg2jhs.js → chunk-t1h12r3q.js} +5 -5
- package/bin/{chunk-gvas3xkp.js → chunk-t6myw0jf.js} +1 -1
- package/bin/{chunk-z8e4wc59.js → chunk-t8jfp3vx.js} +1 -1
- package/bin/{chunk-15w79661.js → chunk-tqdde9bj.js} +1 -1
- package/bin/chunk-vk9ecq8n.js +2 -0
- package/bin/{chunk-d5hbzp7t.js → chunk-vsnq4381.js} +1 -1
- package/bin/{chunk-1nvj833s.js → chunk-w4adkd0a.js} +5 -5
- package/bin/{chunk-qxscgcn9.js → chunk-wbmqbpgm.js} +1 -1
- package/bin/{chunk-v034sfw8.js → chunk-wperd2h9.js} +2 -2
- package/bin/{chunk-y2dhf3p0.js → chunk-xbw7ffrz.js} +2 -2
- package/bin/{chunk-9bakwac0.js → chunk-xdrpahym.js} +4 -4
- package/bin/{chunk-6jkjx0n2.js → chunk-xfmnfcv2.js} +3 -3
- package/bin/chunk-xhngtwn9.js +1 -0
- package/bin/chunk-xjnehexk.js +2 -0
- package/bin/chunk-xzb0t8mx.js +1 -0
- package/bin/{chunk-k3prp6c6.js → chunk-y5h5d5gx.js} +4 -4
- package/bin/{chunk-wwkhskce.js → chunk-y6xyc4wp.js} +2 -2
- package/bin/{chunk-93p27bbm.js → chunk-zpk87b33.js} +5 -5
- package/bin/{chunk-asy868kq.js → chunk-zq5j9wsc.js} +1 -1
- package/bin/{chunk-grjek810.js → chunk-zsg61vr0.js} +2 -2
- package/bin/chunk-zts21ft7.js +1 -0
- package/bin/{chunk-cpj562n6.js → chunk-zzbn0b6c.js} +1 -1
- package/bin/shumai-app.html +1 -1
- package/bin/shumai-app.js +350 -333
- package/package.json +7 -7
- package/prisma/migrations/20261014054332_add_embedding_768/migration.sql +8 -0
- package/prisma/schema.prisma +10 -8
- package/bin/chunk-2gf95tj0.js +0 -1
- package/bin/chunk-2tk5w3jc.js +0 -1
- package/bin/chunk-301e7g3z.js +0 -2
- package/bin/chunk-3kmjbc3m.js +0 -2
- package/bin/chunk-3td60k1m.js +0 -2
- package/bin/chunk-42hrvk6k.js +0 -211
- package/bin/chunk-5bk16qdp.js +0 -2
- package/bin/chunk-8abhmarc.js +0 -2
- package/bin/chunk-965102pf.js +0 -3
- package/bin/chunk-acn3r2m2.js +0 -1
- package/bin/chunk-ce75dw3k.css +0 -1
- package/bin/chunk-d9qpgkek.js +0 -2
- package/bin/chunk-dv6p6n5e.js +0 -1
- package/bin/chunk-qb178ntp.js +0 -2
- package/bin/chunk-s4r6e6ms.js +0 -1
- package/bin/chunk-syjjke3f.js +0 -1
- package/bin/chunk-tgfxe0sb.js +0 -1
- package/bin/chunk-tjretpx8.js +0 -1
- package/bin/chunk-w4yjgez6.js +0 -14
- package/bin/chunk-wjcebkpb.js +0 -1
- package/bin/chunk-ws71fg50.js +0 -2
- package/bin/chunk-yfp3q4da.js +0 -1
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import{H,w,ke,Em,Im}from"./chunk-a8bymrv1.js";var Q={};Im(Q,{Activity:()=>XK,Children:()=>nc,Component:()=>Ls,Fragment:()=>In,Profiler:()=>QK,PureComponent:()=>JK,StrictMode:()=>LB,Suspense:()=>pi,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>Wi,__COMPILER_RUNTIME:()=>$K,cache:()=>eX,cacheSignal:()=>tX,cloneElement:()=>Ou,createContext:()=>lt,createElement:()=>q,createRef:()=>rX,forwardRef:()=>F,isValidElement:()=>as,lazy:()=>oX,memo:()=>Un,startTransition:()=>UL,unstable_useCacheRefresh:()=>aX,use:()=>Ia,useActionState:()=>nX,useCallback:()=>P,useContext:()=>pt,useDebugValue:()=>mi,useDeferredValue:()=>iX,useEffect:()=>m,useEffectEvent:()=>fX,useId:()=>qu,useImperativeHandle:()=>Vr,useInsertionEffect:()=>uN,useLayoutEffect:()=>$e,useMemo:()=>D,useOptimistic:()=>sX,useReducer:()=>tn,useRef:()=>_,useState:()=>u,useSyncExternalStore:()=>Xn,useTransition:()=>lX,version:()=>Zs},{Activity:(aTt)=>XK=aTt,Children:(aTt)=>nc=aTt,Component:(aTt)=>Ls=aTt,Fragment:(aTt)=>In=aTt,Profiler:(aTt)=>QK=aTt,PureComponent:(aTt)=>JK=aTt,StrictMode:(aTt)=>LB=aTt,Suspense:(aTt)=>pi=aTt,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:(aTt)=>Wi=aTt,__COMPILER_RUNTIME:(aTt)=>$K=aTt,cache:(aTt)=>eX=aTt,cacheSignal:(aTt)=>tX=aTt,cloneElement:(aTt)=>Ou=aTt,createContext:(aTt)=>lt=aTt,createElement:(aTt)=>q=aTt,createRef:(aTt)=>rX=aTt,forwardRef:(aTt)=>F=aTt,isValidElement:(aTt)=>as=aTt,lazy:(aTt)=>oX=aTt,memo:(aTt)=>Un=aTt,startTransition:(aTt)=>UL=aTt,unstable_useCacheRefresh:(aTt)=>aX=aTt,use:(aTt)=>Ia=aTt,useActionState:(aTt)=>nX=aTt,useCallback:(aTt)=>P=aTt,useContext:(aTt)=>pt=aTt,useDebugValue:(aTt)=>mi=aTt,useDeferredValue:(aTt)=>iX=aTt,useEffect:(aTt)=>m=aTt,useEffectEvent:(aTt)=>fX=aTt,useId:(aTt)=>qu=aTt,useImperativeHandle:(aTt)=>Vr=aTt,useInsertionEffect:(aTt)=>uN=aTt,useLayoutEffect:(aTt)=>$e=aTt,useMemo:(aTt)=>D=aTt,useOptimistic:(aTt)=>sX=aTt,useReducer:(aTt)=>tn=aTt,useRef:(aTt)=>_=aTt,useState:(aTt)=>u=aTt,useSyncExternalStore:(aTt)=>Xn=aTt,useTransition:(aTt)=>lX=aTt,version:(aTt)=>Zs=aTt});function w_e(e){if(e===null||typeof e!=="object")return null;return e=jK&&e[jK]||e["@@iterator"],typeof e==="function"?e:null}function BL(e,r,a){this.props=e,this.context=r,this.refs=WK,this.updater=a||HK}function GK(){}function bB(e,r,a){this.props=e,this.context=r,this.refs=WK,this.updater=a||HK}function yB(){}function zB(e,r,a){var i=a.ref;return{$$typeof:_B,type:e,key:r,ref:i!==void 0?i:null,props:a}}function z_e(e,r){return zB(e.type,r,e.props)}function SB(e){return typeof e==="object"&&e!==null&&e.$$typeof===_B}function S_e(e){var r={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return r[a]})}function vB(e,r){return typeof e==="object"&&e!==null&&e.key!=null?S_e(""+e.key):r.toString(36)}function L_e(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(yB,yB):(e.status="pending",e.then(function(r){e.status==="pending"&&(e.status="fulfilled",e.value=r)},function(r){e.status==="pending"&&(e.status="rejected",e.reason=r)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function jL(e,r,a,i,s){var l=typeof e;if(l==="undefined"||l==="boolean")e=null;var c=!1;if(e===null)c=!0;else switch(l){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case _B:case p_e:c=!0;break;case qK:return c=e._init,jL(c(e._payload),r,a,i,s)}}if(c)return s=s(e),c=i===""?"."+vB(e,0):i,BK(s)?(a="",c!=null&&(a=c.replace(UK,"$&/")+"/"),jL(s,r,a,"",function(g){return g})):s!=null&&(SB(s)&&(s=z_e(s,a+(s.key==null||e&&e.key===s.key?"":(""+s.key).replace(UK,"$&/")+"/")+c)),r.push(s)),1;c=0;var d=i===""?".":i+":";if(BK(e))for(var h=0;h<e.length;h++)i=e[h],l=d+vB(i,h),c+=jL(i,r,a,l,s);else if(h=w_e(e),typeof h==="function")for(e=h.call(e),h=0;!(i=e.next()).done;)i=i.value,l=d+vB(i,h++),c+=jL(i,r,a,l,s);else if(l==="object"){if(typeof e.then==="function")return jL(L_e(e),r,a,i,s);throw r=String(e),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return c}function cN(e,r,a){if(e==null)return e;var i=[],s=0;return jL(e,i,"","",function(l){return r.call(a,l,s++)}),i}function k_e(e){if(e._status===-1){var r=e._result;r=r(),r.then(function(a){if(e._status===0||e._status===-1)e._status=1,e._result=a},function(a){if(e._status===0||e._status===-1)e._status=2,e._result=a}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var _B,p_e,m_e,h_e,g_e,M_e,x_e,v_e,y_e,__e,qK,b_e,jK,HK,VK,WK,wB,BK,Qa,KK,UK,YK,C_e,XK,nc,Ls,In,QK,JK,LB,pi,Wi,$K,eX=function(e){return function(){return e.apply(null,arguments)}},tX=function(){return null},Ou=function(e,r,a){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var i=VK({},e.props),s=e.key;if(r!=null)for(l in r.key!==void 0&&(s=""+r.key),r)!KK.call(r,l)||l==="key"||l==="__self"||l==="__source"||l==="ref"&&r.ref===void 0||(i[l]=r[l]);var l=arguments.length-2;if(l===1)i.children=a;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];i.children=c}return zB(e.type,s,i)},lt=function(e){return e={$$typeof:x_e,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:M_e,_context:e},e},q=function(e,r,a){var i,s={},l=null;if(r!=null)for(i in r.key!==void 0&&(l=""+r.key),r)KK.call(r,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(s[i]=r[i]);var c=arguments.length-2;if(c===1)s.children=a;else if(1<c){for(var d=Array(c),h=0;h<c;h++)d[h]=arguments[h+2];s.children=d}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)s[i]===void 0&&(s[i]=c[i]);return zB(e,l,s)},rX=function(){return{current:null}},F=function(e){return{$$typeof:v_e,render:e}},as,oX=function(e){return{$$typeof:qK,_payload:{_status:-1,_result:e},_init:k_e}},Un=function(e,r){return{$$typeof:__e,type:e,compare:r===void 0?null:r}},UL=function(e){var r=Qa.T,a={};Qa.T=a;try{var i=e(),s=Qa.S;s!==null&&s(a,i),typeof i==="object"&&i!==null&&typeof i.then==="function"&&i.then(yB,YK)}catch(l){YK(l)}finally{r!==null&&a.types!==null&&(r.types=a.types),Qa.T=r}},aX=function(){return Qa.H.useCacheRefresh()},Ia=function(e){return Qa.H.use(e)},nX=function(e,r,a){return Qa.H.useActionState(e,r,a)},P=function(e,r){return Qa.H.useCallback(e,r)},pt=function(e){return Qa.H.useContext(e)},mi=function(){},iX=function(e,r){return Qa.H.useDeferredValue(e,r)},m=function(e,r){return Qa.H.useEffect(e,r)},fX=function(e){return Qa.H.useEffectEvent(e)},qu=function(){return Qa.H.useId()},Vr=function(e,r,a){return Qa.H.useImperativeHandle(e,r,a)},uN=function(e,r){return Qa.H.useInsertionEffect(e,r)},$e=function(e,r){return Qa.H.useLayoutEffect(e,r)},D=function(e,r){return Qa.H.useMemo(e,r)},sX=function(e,r){return Qa.H.useOptimistic(e,r)},tn=function(e,r,a){return Qa.H.useReducer(e,r,a)},_=function(e){return Qa.H.useRef(e)},u=function(e){return Qa.H.useState(e)},Xn=function(e,r,a){return Qa.H.useSyncExternalStore(e,r,a)},lX=function(){return Qa.H.useTransition()},Zs="19.2.8";var S=Em(()=>{_B=Symbol.for("react.transitional.element"),p_e=Symbol.for("react.portal"),m_e=Symbol.for("react.fragment"),h_e=Symbol.for("react.strict_mode"),g_e=Symbol.for("react.profiler"),M_e=Symbol.for("react.consumer"),x_e=Symbol.for("react.context"),v_e=Symbol.for("react.forward_ref"),y_e=Symbol.for("react.suspense"),__e=Symbol.for("react.memo"),qK=Symbol.for("react.lazy"),b_e=Symbol.for("react.activity"),jK=Symbol.iterator;HK={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},VK=Object.assign,WK={};BL.prototype.isReactComponent={};BL.prototype.setState=function(e,r){if(typeof e!=="object"&&typeof e!=="function"&&e!=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,e,r,"setState")};BL.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};GK.prototype=BL.prototype;wB=bB.prototype=new GK;wB.constructor=bB;VK(wB,BL.prototype);wB.isPureReactComponent=!0;BK=Array.isArray;Qa={H:null,A:null,T:null,S:null},KK=Object.prototype.hasOwnProperty;UK=/\/+/g;YK=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(r))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},C_e={map:cN,forEach:function(e,r,a){cN(e,function(){r.apply(this,arguments)},a)},count:function(e){var r=0;return cN(e,function(){r++}),r},toArray:function(e){return cN(e,function(r){return r})||[]},only:function(e){if(!SB(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};XK=b_e,nc=C_e,Ls=BL,In=m_e,QK=g_e,JK=bB,LB=h_e,pi=y_e,Wi=Qa,$K={__proto__:null,c:function(e){return Qa.H.useMemoCache(e)}},as=SB});var kQ=w(function(Cbe){S();function vbe(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var ybe=typeof Object.is==="function"?Object.is:vbe,_be=u,bbe=m,wbe=$e,zbe=mi;function Sbe(e,r){var a=r(),i=_be({inst:{value:a,getSnapshot:r}}),s=i[0].inst,l=i[1];return wbe(function(){s.value=a,s.getSnapshot=r,Z6(s)&&l({inst:s})},[e,a,r]),bbe(function(){return Z6(s)&&l({inst:s}),e(function(){Z6(s)&&l({inst:s})})},[e]),zbe(a),a}function Z6(e){var r=e.getSnapshot;e=e.value;try{var a=r();return!ybe(e,a)}catch(i){return!0}}function Lbe(e,r){return r()}var kbe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Lbe:Sbe;Cbe.useSyncExternalStore=Xn!==void 0?Xn:kbe});var iz={};Im(iz,{unstable_now:()=>eo,unstable_IdlePriority:()=>Xi,unstable_ImmediatePriority:()=>gl,unstable_LowPriority:()=>KN,unstable_NormalPriority:()=>Bs,unstable_Profiling:()=>sJ,unstable_UserBlockingPriority:()=>Al,unstable_cancelCallback:()=>_l,unstable_forceFrameRate:()=>lJ,unstable_getCurrentPriorityLevel:()=>XN,unstable_next:()=>cJ,unstable_requestPaint:()=>yl,unstable_runWithPriority:()=>Yu,unstable_scheduleCallback:()=>Us,unstable_shouldYield:()=>bl,unstable_wrapCallback:()=>uJ},{unstable_now:(gFt)=>eo=gFt,unstable_IdlePriority:(gFt)=>Xi=gFt,unstable_ImmediatePriority:(gFt)=>gl=gFt,unstable_LowPriority:(gFt)=>KN=gFt,unstable_NormalPriority:(gFt)=>Bs=gFt,unstable_Profiling:(gFt)=>sJ=gFt,unstable_UserBlockingPriority:(gFt)=>Al=gFt,unstable_cancelCallback:(gFt)=>_l=gFt,unstable_forceFrameRate:(gFt)=>lJ=gFt,unstable_getCurrentPriorityLevel:(gFt)=>XN=gFt,unstable_next:(gFt)=>cJ=gFt,unstable_requestPaint:(gFt)=>yl=gFt,unstable_runWithPriority:(gFt)=>Yu=gFt,unstable_scheduleCallback:(gFt)=>Us=gFt,unstable_shouldYield:(gFt)=>bl=gFt,unstable_wrapCallback:(gFt)=>uJ=gFt});function b6(e,r){var a=e.length;e.push(r);e:for(;0<a;){var i=a-1>>>1,s=e[i];if(0<qN(s,r))e[i]=r,e[a]=s,a=i;else break e}}function Uu(e){return e.length===0?null:e[0]}function GN(e){if(e.length===0)return null;var r=e[0],a=e.pop();if(a!==r){e[0]=a;e:for(var i=0,s=e.length,l=s>>>1;i<l;){var c=2*(i+1)-1,d=e[c],h=c+1,g=e[h];if(0>qN(d,a))h<s&&0>qN(g,d)?(e[i]=g,e[h]=a,i=h):(e[i]=d,e[c]=a,i=c);else if(h<s&&0>qN(g,a))e[i]=g,e[h]=a,i=h;else break e}}return r}function qN(e,r){var a=e.sortIndex-r.sortIndex;return a!==0?a:e.id-r.id}function VN(e){for(var r=Uu(EM);r!==null;){if(r.callback===null)GN(EM);else if(r.startTime<=e)GN(EM),r.sortIndex=r.expirationTime,b6(CZ,r);else break;r=Uu(EM)}}function C6(e){if(TP=!1,VN(e),!PP)if(Uu(CZ)!==null)PP=!0,ik||(ik=!0,nk());else{var r=Uu(EM);r!==null&&I6(C6,r.startTime-e)}}function fJ(){return k6?!0:iz.unstable_now()-iJ<nJ?!1:!0}function _6(){if(k6=!1,ik){var e=iz.unstable_now();iJ=e;var r=!0;try{e:{PP=!1,TP&&(TP=!1,aJ(AP),AP=-1),S6=!0;var a=_f;try{t:{VN(e);for(fc=Uu(CZ);fc!==null&&!(fc.expirationTime>e&&fJ());){var i=fc.callback;if(typeof i==="function"){fc.callback=null,_f=fc.priorityLevel;var s=i(fc.expirationTime<=e);if(e=iz.unstable_now(),typeof s==="function"){fc.callback=s,VN(e),r=!0;break t}fc===Uu(CZ)&&GN(CZ),VN(e)}else GN(CZ);fc=Uu(CZ)}if(fc!==null)r=!0;else{var l=Uu(EM);l!==null&&I6(C6,l.startTime-e),r=!1}}break e}finally{fc=null,_f=a,S6=!1}r=void 0}}finally{r?nk():ik=!1}}}function I6(e,r){AP=oJ(function(){e(iz.unstable_now())},r)}var eo=void 0,w6,HN,z6,CZ,EM,Xbe=1,fc=null,_f=3,S6=!1,PP=!1,TP=!1,k6=!1,oJ,aJ,rJ,ik=!1,AP=-1,nJ=5,iJ=-1,nk,WN,L6,Xi=5,gl=1,KN=4,Bs=3,sJ=null,Al=2,_l=function(e){e.callback=null},lJ=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):nJ=0<e?Math.floor(1000/e):5},XN=function(){return _f},cJ=function(e){switch(_f){case 1:case 2:case 3:var r=3;break;default:r=_f}var a=_f;_f=r;try{return e()}finally{_f=a}},yl=function(){k6=!0},Yu=function(e,r){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=_f;_f=e;try{return r()}finally{_f=a}},Us=function(e,r,a){var i=iz.unstable_now();switch(typeof a==="object"&&a!==null?(a=a.delay,a=typeof a==="number"&&0<a?i+a:i):a=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5000}return s=a+s,e={id:Xbe++,callback:r,priorityLevel:e,startTime:a,expirationTime:s,sortIndex:-1},a>i?(e.sortIndex=a,b6(EM,e),Uu(CZ)===null&&e===Uu(EM)&&(TP?(aJ(AP),AP=-1):TP=!0,I6(C6,a-i))):(e.sortIndex=s,b6(CZ,e),PP||S6||(PP=!0,ik||(ik=!0,nk()))),e},bl,uJ=function(e){var r=_f;return function(){var a=_f;_f=r;try{return e.apply(this,arguments)}finally{_f=a}}};var Ju=Em(()=>{if(typeof performance==="object"&&typeof performance.now==="function")w6=performance,eo=function(){return w6.now()};else HN=Date,z6=HN.now(),eo=function(){return HN.now()-z6};CZ=[],EM=[],oJ=typeof setTimeout==="function"?setTimeout:null,aJ=typeof clearTimeout==="function"?clearTimeout:null,rJ=typeof setImmediate<"u"?setImmediate:null;if(typeof rJ==="function")nk=function(){rJ(_6)};else if(typeof MessageChannel<"u")WN=new MessageChannel,L6=WN.port2,WN.port1.onmessage=_6,nk=function(){L6.postMessage(null)};else nk=function(){oJ(_6,0)};bl=fJ});var K8e=w(function(B4n,G8e){var q8e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,jkt=/\n/g,Bkt=/^\s*/,Ukt=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ykt=/^:\s*/,qkt=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Hkt=/^[;\s]*/,Vkt=/^\s+|\s+$/g,Wkt=`
|
|
2
|
+
`,H8e="/",V8e="*",RL="",Gkt="comment",Kkt="declaration";function Xkt(e,r){if(typeof e!=="string")throw TypeError("First argument must be a string");if(!e)return[];r=r||{};var a=1,i=1;function s(k){var T=k.match(jkt);if(T)a+=T.length;var U=k.lastIndexOf(Wkt);i=~U?k.length-U:i+k.length}function l(){var k={line:a,column:i};return function(T){return T.position=new c(k),g(),T}}function c(k){this.start=k,this.end={line:a,column:i},this.source=r.source}c.prototype.content=e;function d(k){var T=Error(r.source+":"+a+":"+i+": "+k);if(T.reason=k,T.filename=r.source,T.line=a,T.column=i,T.source=e,r.silent);else throw T}function h(k){var T=k.exec(e);if(!T)return;var U=T[0];return s(U),e=e.slice(U.length),T}function g(){h(Bkt)}function x(k){var T;k=k||[];while(T=v())if(T!==!1)k.push(T);return k}function v(){var k=l();if(H8e!=e.charAt(0)||V8e!=e.charAt(1))return;var T=2;while(RL!=e.charAt(T)&&(V8e!=e.charAt(T)||H8e!=e.charAt(T+1)))++T;if(T+=2,RL===e.charAt(T-1))return d("End of comment missing");var U=e.slice(2,T-2);return i+=2,s(U),e=e.slice(T),i+=2,k({type:Gkt,comment:U})}function b(){var k=l(),T=h(Ukt);if(!T)return;if(v(),!h(Ykt))return d("property missing ':'");var U=h(qkt),N=k({type:Kkt,property:W8e(T[0].replace(q8e,RL)),value:U?W8e(U[0].replace(q8e,RL)):RL});return h(Hkt),N}function y(){var k=[];x(k);var T;while(T=b())if(T!==!1)k.push(T),x(k);return k}return g(),y()}function W8e(e){return e?e.replace(Vkt,RL):RL}G8e.exports=Xkt});var X8e=w(function(jO){var Qkt=jO&&jO.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jO,"__esModule",{value:!0});jO.default=$kt;var Jkt=Qkt(K8e());function $kt(e,r){let a=null;if(!e||typeof e!=="string")return a;let i=(0,Jkt.default)(e),s=typeof r==="function";return i.forEach((l)=>{if(l.type!=="declaration")return;let{property:c,value:d}=l;if(s)r(c,d,l);else if(d)a=a||{},a[c]=d}),a}});var exe=w(function(J8e){Object.defineProperty(J8e,"__esModule",{value:!0});J8e.camelCase=void 0;var eCt=/^--[a-zA-Z0-9_-]+$/,tCt=/-([a-z])/g,rCt=/^[^-]+$/,oCt=/^-(webkit|moz|ms|o|khtml)-/,aCt=/^-(ms)-/,nCt=function(e){return!e||rCt.test(e)||eCt.test(e)},iCt=function(e,r){return r.toUpperCase()},Q8e=function(e,r){return"".concat(r,"-")},fCt=function(e,r){if(r===void 0)r={};if(nCt(e))return e;if(e=e.toLowerCase(),r.reactCompat)e=e.replace(aCt,Q8e);else e=e.replace(oCt,Q8e);return e.replace(tCt,iCt)};J8e.camelCase=fCt});var rxe=w(function(wG,txe){var sCt=wG&&wG.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},lCt=sCt(X8e()),cCt=exe();function bG(e,r){var a={};if(!e||typeof e!=="string")return a;return(0,lCt.default)(e,function(i,s){if(i&&s)a[(0,cCt.camelCase)(i,r)]=s}),a}bG.default=bG;txe.exports=bG});var Lve=w(function(RUn,Sve){var qj=Object.prototype.hasOwnProperty,zve=Object.prototype.toString,{defineProperty:xve,getOwnPropertyDescriptor:vve}=Object,yve=function(r){if(typeof Array.isArray==="function")return Array.isArray(r);return zve.call(r)==="[object Array]"},_ve=function(r){if(!r||zve.call(r)!=="[object Object]")return!1;var a=qj.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&qj.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!a&&!i)return!1;var s;for(s in r);return typeof s>"u"||qj.call(r,s)},bve=function(r,a){if(xve&&a.name==="__proto__")xve(r,a.name,{enumerable:!0,configurable:!0,value:a.newValue,writable:!0});else r[a.name]=a.newValue},wve=function(r,a){if(a==="__proto__"){if(!qj.call(r,a))return;else if(vve)return vve(r,a).value}return r[a]};Sve.exports=function e(){var r,a,i,s,l,c,d=arguments[0],h=1,g=arguments.length,x=!1;if(typeof d==="boolean")x=d,d=arguments[1]||{},h=2;if(d==null||typeof d!=="object"&&typeof d!=="function")d={};for(;h<g;++h)if(r=arguments[h],r!=null){for(a in r)if(i=wve(d,a),s=wve(r,a),d!==s){if(x&&s&&(_ve(s)||(l=yve(s)))){if(l)l=!1,c=i&&yve(i)?i:[];else c=i&&_ve(i)?i:{};bve(d,{name:a,newValue:e(x,c,s)})}else if(typeof s<"u")bve(d,{name:a,newValue:s})}}return d}});S();var I_e=Symbol.for("react.transitional.element"),R_e=Symbol.for("react.fragment");function cX(e,r,a){var i=null;if(a!==void 0&&(i=""+a),r.key!==void 0&&(i=""+r.key),"key"in r){a={};for(var s in r)s!=="key"&&(a[s]=r[s])}else a=r;return r=a.ref,{$$typeof:I_e,type:e,key:i,ref:r!==void 0?r:null,props:a}}var L=R_e,t=cX,o=cX;var kB=lt(void 0),V=(e)=>{let r=pt(kB);if(e)return e;if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r},CB=({client:e,children:r})=>(m(()=>(e.mount(),()=>{e.unmount()}),[e]),t(kB.Provider,{value:e,children:r}));S();var uX=lt(!1),Hu=()=>pt(uX),sTt=uX.Provider;S();function P_e(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var T_e=lt(P_e()),$u=()=>pt(T_e);S();var A_e={setTimeout:(e,r)=>setTimeout(e,r),clearTimeout:(e)=>clearTimeout(e),setInterval:(e,r)=>setInterval(e,r),clearInterval:(e)=>clearInterval(e)},E_e=class{#e=A_e;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,r){return this.#e.setTimeout(e,r)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,r){return this.#e.setInterval(e,r)}clearInterval(e){this.#e.clearInterval(e)}},Nu=new E_e;function dX(e){setTimeout(e,0)}var RB=typeof window>"u"||"Deno"in globalThis;function br(){}function mX(e,r){return typeof e==="function"?e(r):e}function dN(e){return typeof e==="number"&&e>=0&&e!==1/0}function ZN(e,r){return Math.max(e+(r||0)-Date.now(),0)}function Ja(e,r){return typeof e==="function"?e(r):e}function pN(e,r){let{type:a="all",exact:i,fetchStatus:s,predicate:l,queryKey:c,stale:d}=e;if(c){if(i){if(r.queryHash!==MP(c,r.options))return!1}else if(!vM(r.queryKey,c))return!1}if(a!=="all"){let h=r.isActive();if(a==="active"&&!h)return!1;if(a==="inactive"&&h)return!1}if(typeof d==="boolean"&&r.isStale()!==d)return!1;if(s&&s!==r.state.fetchStatus)return!1;if(l&&!l(r))return!1;return!0}function mN(e,r){let{exact:a,status:i,predicate:s,mutationKey:l}=e;if(l){if(!r.options.mutationKey)return!1;if(a){if(Fu(r.options.mutationKey)!==Fu(l))return!1}else if(!vM(r.options.mutationKey,l))return!1}if(i&&r.state.status!==i)return!1;if(s&&!s(r))return!1;return!0}function MP(e,r){return(r?.queryKeyHashFn||Fu)(e)}function Fu(e){return JSON.stringify(e,(r,a)=>IB(a)?Object.keys(a).sort().reduce((i,s)=>(i[s]=a[s],i),{}):a)}function vM(e,r){if(e===r)return!0;if(typeof e!==typeof r)return!1;if(e&&r&&typeof e==="object"&&typeof r==="object"){if(Array.isArray(e)&&Array.isArray(r)){for(let i=0;i<r.length;i++)if(!vM(e[i],r[i]))return!1;return!0}let a=Object.keys(r);for(let i of a)if(!vM(e[i],r[i]))return!1;return!0}return!1}var D_e=Object.prototype.hasOwnProperty;function Dc(e,r,a=0){if(e===r)return e;if(a>500)return r;let i=ZX(e)&&ZX(r);if(!i&&!(IB(e)&&IB(r)))return r;let s=(i?e:Object.keys(e)).length,l=i?r:Object.keys(r),c=l.length,d=i?Array(c):{},h=0;for(let g=0;g<c;g++){let x=i?g:l[g],v=e[x],b=r[x];if(v===b){if(d[x]=v,i?g<s:D_e.call(e,x))h++;continue}if(v===null||b===null||typeof v!=="object"||typeof b!=="object"){d[x]=b;continue}let y=Dc(v,b,a+1);if(d[x]=y,y===v)h++}return s===c&&h===s?e:d}function Yi(e,r){if(!r||Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e)if(e[a]!==r[a])return!1;return!0}function ZX(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function IB(e){if(!pX(e))return!1;let r=e.constructor;if(r===void 0)return!0;let a=r.prototype;if(!pX(a))return!1;if(!a.hasOwnProperty("isPrototypeOf"))return!1;if(Object.getPrototypeOf(e)!==Object.prototype)return!1;return!0}function pX(e){return Object.prototype.toString.call(e)==="[object Object]"}function hX(e){return new Promise((r)=>{Nu.setTimeout(r,e)})}function xP(e,r,a){if(typeof a.structuralSharing==="function")return a.structuralSharing(e,r);else if(a.structuralSharing!==!1)return Dc(e,r);return r}function Ta(e){return e}function gX(e,r,a=0){let i=[...e,r];return a&&i.length>a?i.slice(1):i}function MX(e,r,a=0){let i=[r,...e];return a&&i.length>a?i.slice(0,-1):i}var YL=Symbol();function hN(e,r){if(!e.queryFn&&r?.initialPromise)return()=>r.initialPromise;if(!e.queryFn||e.queryFn===YL)return()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`));return e.queryFn}function qL(e,r){if(typeof e==="function")return e(...r);return!!e}function xX(e,r,a){let i=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(s??=r(),i)return s;if(i=!0,s.aborted)a();else s.addEventListener("abort",a,{once:!0});return s}}),e}var O_e=()=>RB,HL=()=>O_e();var wo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var N_e=class extends wo{#e;#t;#r;constructor(){super();this.#r=(e)=>{if(typeof window<"u"&&window.addEventListener){let r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}}}onSubscribe(){if(!this.#t)this.setEventListener(this.#r)}onUnsubscribe(){if(!this.hasListeners())this.#t?.(),this.#t=void 0}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e((r)=>{if(typeof r==="boolean")this.setFocused(r);else this.onFocus()})}setFocused(e){if(this.#e!==e)this.#e=e,this.onFocus()}onFocus(){let e=this.isFocused();this.listeners.forEach((r)=>{r(e)})}isFocused(){if(typeof this.#e==="boolean")return this.#e;return globalThis.document?.visibilityState!=="hidden"}},VL=new N_e;var vX=dX;function F_e(){let e=[],r=0,a=(d)=>{d()},i=(d)=>{d()},s=vX,l=(d)=>{if(r)e.push(d);else s(()=>{a(d)})},c=()=>{let d=e;if(e=[],d.length)s(()=>{i(()=>{d.forEach((h)=>{a(h)})})})};return{batch:(d)=>{let h;r++;try{h=d()}finally{if(r--,!r)c()}return h},batchCalls:(d)=>(...h)=>{l(()=>{d(...h)})},schedule:l,setNotifyFunction:(d)=>{a=d},setBatchNotifyFunction:(d)=>{i=d},setScheduler:(d)=>{s=d}}}var Ht=F_e();var j_e=class extends wo{#e=!0;#t;#r;constructor(){super();this.#r=(e)=>{if(typeof window<"u"&&window.addEventListener){let r=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",a)}}}}onSubscribe(){if(!this.#t)this.setEventListener(this.#r)}onUnsubscribe(){if(!this.hasListeners())this.#t?.(),this.#t=void 0}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){if(this.#e!==e)this.#e=e,this.listeners.forEach((r)=>{r(e)})}isOnline(){return this.#e}},WL=new j_e;function B_e(e){return Math.min(1000*2**e,30000)}function PB(e){return(e??"online")==="online"?WL.isOnline():!0}var gN=class extends Error{constructor(e){super("CancelledError");this.revert=e?.revert,this.silent=e?.silent}};function MN(e){let r=!1,a=0,i,s="pending",l,c,d=new Promise((j,G)=>{l=j,c=G});d.catch(br);let h=()=>s!=="pending",g=(j)=>{if(!h()){let G=new gN(j);T(G),e.onCancel?.(G)}},x=()=>{r=!0},v=()=>{r=!1},b=()=>VL.isFocused()&&(e.networkMode==="always"||WL.isOnline())&&e.canRun(),y=()=>PB(e.networkMode)&&e.canRun(),k=(j)=>{if(!h())i?.(),s="resolved",l(j)},T=(j)=>{if(!h())i?.(),s="rejected",c(j)},U=()=>new Promise((j)=>{i=(G)=>{if(h()||b())j(G)},e.onPause?.()}).then(()=>{if(i=void 0,!h())e.onContinue?.()}),N=()=>{if(h())return;let j,G=a===0?e.initialPromise:void 0;try{j=G??e.fn()}catch(X){j=Promise.reject(X)}Promise.resolve(j).then(k).catch((X)=>{if(h())return;let J=e.retry??(HL()?0:3),ee=e.retryDelay??B_e,re=typeof ee==="function"?ee(a,X):ee,oe=J===!0||typeof J==="number"&&a<J||typeof J==="function"&&J(a,X);if(r||!oe){T(X);return}a++,e.onFail?.(a,X),hX(re).then(()=>b()?void 0:U()).then(()=>{if(r)T(X);else N()})})};return{promise:d,status:()=>s,cancel:g,continue:()=>(i?.(),d),cancelRetry:x,continueRetry:v,canStart:y,start:()=>{if(y())N();else U().then(N);return d}}}var xN=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){if(this.clearGcTimeout(),dN(this.gcTime))this.#e=Nu.setTimeout(()=>{this.optionalRemove()},this.gcTime)}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(HL()?1/0:300000))}clearGcTimeout(){if(this.#e!==void 0)Nu.clearTimeout(this.#e),this.#e=void 0}};function yX(e){return{onFetch:(r,a)=>{let i=r.options,s=r.fetchOptions?.meta?.fetchMore?.direction,l=r.state.data?.pages||[],c=r.state.data?.pageParams||[],d={pages:[],pageParams:[]},h=0,g=async()=>{let x=!1,v=(k)=>{xX(k,()=>r.signal,()=>x=!0)},b=hN(r.options,r.fetchOptions),y=async(k,T,U)=>{if(x)return Promise.reject(r.signal.reason);if(T==null&&k.pages.length)return Promise.resolve(k);let j=(()=>{let ee={client:r.client,queryKey:r.queryKey,pageParam:T,direction:U?"backward":"forward",meta:r.options.meta};return v(ee),ee})(),G=await b(j),{maxPages:X}=r.options,J=U?MX:gX;return{pages:J(k.pages,G,X),pageParams:J(k.pageParams,T,X)}};if(s&&l.length){let k=s==="backward",T=k?_X:TB,U={pages:l,pageParams:c};d=await y(U,T(i,U),k)}else{let k=e??l.length;do{let T=h===0?c[0]??i.initialPageParam:TB(i,d);if(h>0&&T==null)break;d=await y(d,T),h++}while(h<k)}return d};if(r.options.persister)r.fetchFn=()=>r.options.persister?.(g,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},a);else r.fetchFn=g}}}function TB(e,{pages:r,pageParams:a}){let i=r.length-1;return r.length>0?e.getNextPageParam(r[i],r,a[i],a):void 0}function _X(e,{pages:r,pageParams:a}){return r.length>0?e.getPreviousPageParam?.(r[0],r,a[0],a):void 0}function bX(e,r){if(!r)return!1;return TB(e,r)!=null}function wX(e,r){if(!r||!e.getPreviousPageParam)return!1;return _X(e,r)!=null}var LX=class extends xN{#e;#t;#r;#o;#n;#a;#i;#s;constructor(e){super();this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.client,this.#o=this.#n.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=SX(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#i,...e},e?._type)this.#e=e._type;if(this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let r=SX(this.options);if(r.data!==void 0)this.setState(zX(r.data,r.dataUpdatedAt)),this.#t=r}}optionalRemove(){if(!this.observers.length&&this.state.fetchStatus==="idle")this.#o.remove(this)}setData(e,r){let a=xP(this.state.data,e,this.options);return this.#f({data:a,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),a}setState(e){this.#f({type:"setState",state:e})}cancel(e){let r=this.#a?.promise;return this.#a?.cancel(e),r?r.then(br).catch(br):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some((e)=>Ja(e.options.enabled,this)!==!1)}isDisabled(){if(this.getObserversCount()>0)return!this.isActive();return this.options.queryFn===YL||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){if(this.getObserversCount()>0)return this.observers.some((e)=>Ja(e.options.staleTime,this)==="static");return!1}isStale(){if(this.getObserversCount()>0)return this.observers.some((e)=>e.getCurrentResult().isStale);return this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){if(this.state.data===void 0)return!0;if(e==="static")return!1;if(this.state.isInvalidated)return!0;return!ZN(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find((e)=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find((e)=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){if(!this.observers.includes(e))this.observers.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:e})}removeObserver(e){let r=this.observers.indexOf(e);if(r!==-1){if(this.observers.splice(r,1),!this.observers.length){if(this.#a)if(this.#s||this.state.fetchStatus==="paused"&&this.state.status==="pending")this.#a.cancel({revert:!0});else this.#a.cancelRetry();this.scheduleGc()}this.#o.notify({type:"observerRemoved",query:this,observer:e})}}getObserversCount(){return this.observers.length}invalidate(){if(!this.state.isInvalidated)this.#f({type:"invalidate"})}async fetch(e,r){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e)this.setOptions(e);if(!this.options.queryFn){let h=this.observers.find((g)=>g.options.queryFn);if(h)this.setOptions(h.options)}let a=new AbortController,i=(h)=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,a.signal)})},s=()=>{let h=hN(this.options,r),x=(()=>{let v={client:this.#n,queryKey:this.queryKey,meta:this.meta};return i(v),v})();if(this.#s=!1,this.options.persister)return this.options.persister(h,x,this);return h(x)},c=(()=>{let h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:s};return i(h),h})();if((this.#e==="infinite"?yX(this.options.pages):this.options.behavior)?.onFetch(c,this),this.#r=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)this.#f({type:"fetch",meta:c.fetchOptions?.meta});let d=this.#a=MN({initialPromise:r?.initialPromise,fn:c.fetchFn,onCancel:(h)=>{if(h instanceof gN&&h.revert)this.setState({...this.#r,fetchStatus:"idle"});a.abort()},onFail:(h,g)=>{this.#f({type:"failed",failureCount:h,error:g})},onPause:()=>{this.#f({type:"pause"})},onContinue:()=>{this.#f({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{let h=await d.start();if(h===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#o.config.onSuccess?.(h,this),this.#o.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof gN){if(h.silent)return this.#a.promise;else if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#f({type:"error",error:h}),this.#o.config.onError?.(h,this),this.#o.config.onSettled?.(this.state.data,h,this),h}finally{if(this.#a===d)this.#a=void 0;this.scheduleGc()}}#f(e){let r=(a)=>{switch(e.type){case"failed":return{...a,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...AB(a.data,this.options),fetchMeta:e.meta??null};case"success":let i={...a,...zX(e.data,e.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#r=e.manual?i:void 0,i;case"error":let s=e.error;return{...a,error:s,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...e.state}}};this.state=r(this.state),Ht.batch(()=>{this.observers.slice().forEach((a)=>{a.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}};function AB(e,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:PB(r.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function zX(e,r){return{data:e,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function SX(e){let r=typeof e.initialData==="function"?e.initialData():e.initialData,a=r!==void 0,i=a?typeof e.initialDataUpdatedAt==="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:a?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var Yo=class extends wo{#e;#t=void 0;#r=void 0;#o=void 0;#n;#a;#i;#s;#f;#Z;#c;#u;#l;#p=new Set;constructor(e,r){super();this.options=r,this.#e=e,this.#i=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){if(this.listeners.size===1){if(this.#t.addObserver(this),kX(this.#t,this.options))this.#d();else this.updateResult();this.#x()}}onUnsubscribe(){if(!this.hasListeners())this.destroy()}shouldFetchOnReconnect(){return EB(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return EB(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#y(),this.#t.removeObserver(this)}setOptions(e){let r=this.options,a=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=="boolean"&&typeof this.options.enabled!=="function"&&typeof Ja(this.options.enabled,this.#t)!=="boolean")throw Error("Expected enabled to be a boolean or a callback that returns a boolean");if(this.#_(),this.#t.setOptions(this.options),r._defaulted&&!Yi(this.options,r))this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});let i=this.hasListeners();if(i&&CX(this.#t,a,this.options,r))this.#d();if(this.updateResult(),i&&(this.#t!==a||Ja(this.options.enabled,this.#t)!==Ja(r.enabled,this.#t)||Ja(this.options.staleTime,this.#t)!==Ja(r.staleTime,this.#t)))this.#h();let s=this.#g();if(i&&(this.#t!==a||Ja(this.options.enabled,this.#t)!==Ja(r.enabled,this.#t)||s!==this.#l))this.#M(s)}getOptimisticResult(e){let r=this.#e.getQueryCache().build(this.#e,e),a=this.createResult(r,e);if(!Yi(this.getCurrentResult(),a))this.#o=a,this.#a=this.options,this.#n=this.#t.state;return a}getCurrentResult(){return this.#o}trackResult(e,r){return new Proxy(e,{get:(a,i)=>(this.trackProp(i),r?.(i),Reflect.get(a,i))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let r=this.#e.defaultQueryOptions(e),a=this.#e.getQueryCache().build(this.#e,r),i=()=>{},s,l=new Promise((c)=>{s=c,i=this.#e.getQueryCache().subscribe((d)=>{if(d.type==="updated"&&d.query.queryHash===a.queryHash&&a.state.data!==void 0)i(),c(this.createResult(a,r))})});return Promise.race([a.fetch().then(()=>{let c=this.createResult(a,r);return s?.(c),c}).finally(()=>{i()}),l])}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(e){this.#_();let r=this.#t.fetch(this.options,e);if(!e?.throwOnError)r=r.catch(br);return r}#m(e){return!HL()&&Ja(this.options.enabled,this.#t)!==!1&&dN(e)}#h(){this.#v();let e=Ja(this.options.staleTime,this.#t);if(this.#o.isStale||!this.#m(e))return;let r=ZN(this.#o.dataUpdatedAt,e)+1;this.#c=Nu.setTimeout(()=>{if(!this.#o.isStale)this.updateResult()},r)}#g(){return(typeof this.options.refetchInterval==="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#M(e){if(this.#y(),this.#l=e,this.#l===0||!this.#m(this.#l))return;this.#u=Nu.setInterval(()=>{if(this.options.refetchIntervalInBackground||VL.isFocused())this.#d()},this.#l)}#x(){this.#h(),this.#M(this.#g())}#v(){if(this.#c!==void 0)Nu.clearTimeout(this.#c),this.#c=void 0}#y(){if(this.#u!==void 0)Nu.clearInterval(this.#u),this.#u=void 0}createResult(e,r){let a=this.#t,i=this.options,s=this.#o,l=this.#n,c=this.#a,d=e!==a?e.state:this.#r,{state:h}=e,g={...h},x=!1,v;if(r._optimisticResults){let J=this.hasListeners(),ee=!J&&kX(e,r),re=J&&CX(e,a,r,i);if(ee||re)g={...g,...AB(h.data,e.options)};if(r._optimisticResults==="isRestoring")g.fetchStatus="idle"}let{error:b,errorUpdatedAt:y,status:k}=g;v=g.data;let T=!1;if(r.placeholderData!==void 0&&v===void 0&&k==="pending"){let J;if(s?.isPlaceholderData&&r.placeholderData===c?.placeholderData)J=s.data,T=!0;else J=typeof r.placeholderData==="function"?r.placeholderData(this.#Z?.state.data,this.#Z):r.placeholderData;if(J!==void 0)k="success",v=xP(s?.data,J,r),x=!0}if(r.select&&v!==void 0&&!T)if(s&&v===l?.data&&r.select===this.#s)v=this.#f;else try{this.#s=r.select,v=r.select(v),v=xP(s?.data,v,r),this.#f=v,this.#i=null}catch(J){this.#i=J}else if(v===void 0)this.#i=null;if(this.#i)b=this.#i,v=this.#f,y=Date.now(),k="error",x=!1;let U=g.fetchStatus==="fetching",N=k==="pending",j=k==="error",G=N&&U,X=v!==void 0;return{status:k,fetchStatus:g.fetchStatus,isPending:N,isSuccess:k==="success",isError:j,isInitialLoading:G,isLoading:G,data:v,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:y,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:U,isRefetching:U&&!N,isLoadingError:j&&!X,isPaused:g.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:j&&X,isStale:DB(e,r),refetch:this.refetch,isEnabled:Ja(r.enabled,e)!==!1}}updateResult(){let e=this.#o,r=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#a=this.options,this.#n.data!==void 0)this.#Z=this.#t;if(Yi(r,e))return;this.#o=r;let i=(()=>{if(!e)return!0;let{notifyOnChangeProps:s}=this.options,l=typeof s==="function"?s():s;if(l==="all"||!l&&!this.#p.size)return!0;let c=new Set(l??this.#p);if(this.options.throwOnError)c.add("error");return Object.keys(this.#o).some((d)=>{let h=d;return this.#o[h]!==e[h]&&c.has(h)})})();Ht.batch(()=>{if(i)this.listeners.forEach((s)=>{s(this.#o)});this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}#_(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let r=this.#t;if(this.#t=e,this.#r=e.state,this.hasListeners())r?.removeObserver(this),e.addObserver(this)}onQueryUpdate(){if(this.updateResult(),this.hasListeners())this.#x()}};function U_e(e,r){return Ja(r.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Ja(r.retryOnMount,e)===!1)}function kX(e,r){return U_e(e,r)||e.state.data!==void 0&&EB(e,r,r.refetchOnMount)}function EB(e,r,a){if(Ja(r.enabled,e)!==!1&&Ja(r.staleTime,e)!=="static"){let i=typeof a==="function"?a(e):a;return i==="always"||i!==!1&&DB(e,r)}return!1}function CX(e,r,a,i){return(e!==r||Ja(i.enabled,e)===!1)&&(!a.suspense||e.state.status!=="error")&&DB(e,a)}function DB(e,r){return Ja(r.enabled,e)!==!1&&e.isStaleByTime(Ja(r.staleTime,e))}var OB=class extends Yo{constructor(e,r){super(e,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,r){let{state:a}=e,i=super.createResult(e,r),{isFetching:s,isRefetching:l,isError:c,isRefetchError:d}=i,h=a.fetchMeta?.fetchMore?.direction,g=c&&h==="forward",x=s&&h==="forward",v=c&&h==="backward",b=s&&h==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:bX(r,a.data),hasPreviousPage:wX(r,a.data),isFetchNextPageError:g,isFetchingNextPage:x,isFetchPreviousPageError:v,isFetchingPreviousPage:b,isRefetchError:d&&!g&&!v,isRefetching:l&&!x&&!b}}};var IX=class extends xN{#e;#t;#r;#o;constructor(e){super();this.#e=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||NB(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){if(!this.#t.includes(e))this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e})}removeObserver(e){this.#t=this.#t.filter((r)=>r!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){if(!this.#t.length)if(this.state.status==="pending")this.scheduleGc();else this.#r.remove(this)}continue(){return this.#o?.continue()??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(e){let r=()=>{this.#n({type:"continue"})},a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},i=this.#o=MN({fn:()=>{if(!this.options.mutationFn)return Promise.reject(Error("No mutationFn found"));return this.options.mutationFn(e,a)},onFail:(c,d)=>{this.#n({type:"failed",failureCount:c,error:d})},onPause:()=>{this.#n({type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)}),s=this.state.status==="pending",l=!i.canStart();try{if(s)r();else{if(this.#n({type:"pending",variables:e,isPaused:l}),this.#r.config.onMutate)await this.#r.config.onMutate(e,this,a);let d=await this.options.onMutate?.(e,a);if(d!==this.state.context)this.#n({type:"pending",context:d,variables:e,isPaused:l})}let c=await i.start();return await this.#r.config.onSuccess?.(c,e,this.state.context,this,a),await this.options.onSuccess?.(c,e,this.state.context,a),await this.#r.config.onSettled?.(c,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(c,null,e,this.state.context,a),this.#n({type:"success",data:c}),c}catch(c){try{await this.#r.config.onError?.(c,e,this.state.context,this,a)}catch(d){Promise.reject(d)}try{await this.options.onError?.(c,e,this.state.context,a)}catch(d){Promise.reject(d)}try{await this.#r.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,a)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,c,e,this.state.context,a)}catch(d){Promise.reject(d)}throw this.#n({type:"error",error:c}),c}finally{if(this.#o===i)this.#o=void 0;this.#r.runNext(this)}}#n(e){let r=(a)=>{switch(e.type){case"failed":return{...a,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,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{...a,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:e.error,failureCount:a.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ht.batch(()=>{this.#t.forEach((a)=>{a.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function NB(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var RX=class extends wo{#e;#t;#r;constructor(e={}){super();this.config=e,this.#e=new Set,this.#t=new Map,this.#r=0}build(e,r,a){let i=new IX({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(r),state:a});return this.add(i),i}add(e){this.#e.add(e);let r=vN(e);if(typeof r==="string"){let a=this.#t.get(r);if(a)a.push(e);else this.#t.set(r,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){let r=vN(e);if(typeof r==="string"){let a=this.#t.get(r);if(a){if(a.length>1){let i=a.indexOf(e);if(i!==-1)a.splice(i,1)}else if(a[0]===e)this.#t.delete(r)}}}this.notify({type:"removed",mutation:e})}canRun(e){let r=vN(e);if(typeof r==="string"){let a=this.#t.get(r)?.find((i)=>i.state.status==="pending");return!a||a===e}else return!0}runNext(e){let r=vN(e);if(typeof r==="string")return this.#t.get(r)?.find((a)=>a!==e&&a.state.isPaused)?.continue()??Promise.resolve();else return Promise.resolve()}clear(){Ht.batch(()=>{this.#e.forEach((e)=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let r={exact:!0,...e};return this.getAll().find((a)=>mN(r,a))}findAll(e={}){return this.getAll().filter((r)=>mN(e,r))}notify(e){Ht.batch(()=>{this.listeners.forEach((r)=>{r(e)})})}resumePausedMutations(){let e=this.getAll().filter((r)=>r.state.isPaused);return Ht.batch(()=>Promise.all(e.map((r)=>r.continue().catch(br))))}};function vN(e){return e.options.scope?.id}var FB=class extends wo{#e;#t=void 0;#r;#o;constructor(e,r){super();this.#e=e,this.setOptions(r),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let r=this.options;if(this.options=this.#e.defaultMutationOptions(e),!Yi(this.options,r))this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this});if(r?.mutationKey&&this.options.mutationKey&&Fu(r.mutationKey)!==Fu(this.options.mutationKey))this.reset();else if(this.#r?.state.status==="pending")this.#r.setOptions(this.options)}onSubscribe(){if(this.listeners.size===1&&this.#r)this.#r.addObserver(this),this.#n()}onUnsubscribe(){if(!this.hasListeners())this.#r?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#a()}mutate(e,r){return this.#o=r,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#n(){let e=this.#r?.state??NB();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#a(e){Ht.batch(()=>{if(this.#o&&this.hasListeners()){let r=this.#t.variables,a=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#o.onSuccess?.(e.data,r,a,i)}catch(s){Promise.reject(s)}try{this.#o.onSettled?.(e.data,null,r,a,i)}catch(s){Promise.reject(s)}}else if(e?.type==="error"){try{this.#o.onError?.(e.error,r,a,i)}catch(s){Promise.reject(s)}try{this.#o.onSettled?.(void 0,e.error,r,a,i)}catch(s){Promise.reject(s)}}}this.listeners.forEach((r)=>{r(this.#t)})})}};var PX=class extends wo{#e;constructor(e={}){super();this.config=e,this.#e=new Map}build(e,r,a){let i=r.queryKey,s=r.queryHash??MP(i,r),l=this.get(s);if(!l)l=new LX({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(r),state:a,defaultOptions:e.getQueryDefaults(i)}),this.add(l);return l}add(e){if(!this.#e.has(e.queryHash))this.#e.set(e.queryHash,e),this.notify({type:"added",query:e})}remove(e){let r=this.#e.get(e.queryHash);if(r){if(e.destroy(),r===e)this.#e.delete(e.queryHash);this.notify({type:"removed",query:e})}}clear(){Ht.batch(()=>{this.getAll().forEach((e)=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let r={exact:!0,...e};return this.getAll().find((a)=>pN(r,a))}findAll(e={}){let r=this.getAll();return Object.keys(e).length>0?r.filter((a)=>pN(e,a)):r}notify(e){Ht.batch(()=>{this.listeners.forEach((r)=>{r(e)})})}onFocus(){Ht.batch(()=>{this.getAll().forEach((e)=>{e.onFocus()})})}onOnline(){Ht.batch(()=>{this.getAll().forEach((e)=>{e.onOnline()})})}};var jB=class{#e;#t;#r;#o;#n;#a;#i;#s;constructor(e={}){this.#e=e.queryCache||new PX,this.#t=e.mutationCache||new RX,this.#r=e.defaultOptions||{},this.#o=new Map,this.#n=new Map,this.#a=0}mount(){if(this.#a++,this.#a!==1)return;this.#i=VL.subscribe(async(e)=>{if(e)await this.resumePausedMutations(),this.#e.onFocus()}),this.#s=WL.subscribe(async(e)=>{if(e)await this.resumePausedMutations(),this.#e.onOnline()})}unmount(){if(this.#a--,this.#a!==0)return;this.#i?.(),this.#i=void 0,this.#s?.(),this.#s=void 0}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){let r=this.defaultQueryOptions({queryKey:e});return this.#e.get(r.queryHash)?.state.data}ensureQueryData(e){let r=this.defaultQueryOptions(e),a=this.#e.build(this,r),i=a.state.data;if(i===void 0)return this.fetchQuery(e);if(e.revalidateIfStale&&a.isStaleByTime(Ja(r.staleTime,a)))this.prefetchQuery(r);return Promise.resolve(i)}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:r,state:a})=>[r,a.data])}setQueryData(e,r,a){let i=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(i.queryHash)?.state.data,l=mX(r,s);if(l===void 0)return;return this.#e.build(this,i).setData(l,{...a,manual:!0})}setQueriesData(e,r,a){return Ht.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,r,a)]))}getQueryState(e){let r=this.defaultQueryOptions({queryKey:e});return this.#e.get(r.queryHash)?.state}removeQueries(e){let r=this.#e;Ht.batch(()=>{r.findAll(e).forEach((a)=>{r.remove(a)})})}resetQueries(e,r){let a=this.#e;return Ht.batch(()=>{let i=a.findAll(e),s=new Set(i);return i.forEach((l)=>{l.reset()}),this.refetchQueries({type:"active",predicate:(l)=>s.has(l)},r)})}cancelQueries(e,r={}){let a={revert:!0,...r},i=Ht.batch(()=>this.#e.findAll(e).map((s)=>s.cancel(a)));return Promise.all(i).then(br).catch(br)}invalidateQueries(e,r={}){return Ht.batch(()=>{if(this.#e.findAll(e).forEach((a)=>{a.invalidate()}),e?.refetchType==="none")return Promise.resolve();return this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},r)})}refetchQueries(e,r={}){let a={...r,cancelRefetch:r.cancelRefetch??!0},i=Ht.batch(()=>this.#e.findAll(e).filter((s)=>!s.isDisabled()&&!s.isStatic()).map((s)=>{let l=s.fetch(void 0,a);if(!a.throwOnError)l=l.catch(br);return s.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(br)}async query(e){let r=this.defaultQueryOptions(e);if(r.retry===void 0)r.retry=!1;let a=this.#e.build(this,r),i=a.isStaleByTime(Ja(r.staleTime,a))?await a.fetch(r):a.state.data,s=r.select;if(s)return s(i);return i}fetchQuery(e){let r=this.defaultQueryOptions(e);if(r.retry===void 0)r.retry=!1;let a=this.#e.build(this,r);return a.isStaleByTime(Ja(r.staleTime,a))?a.fetch(r):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(br).catch(br)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(br).catch(br)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){if(WL.isOnline())return this.#t.resumePausedMutations();return Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,r){this.#o.set(Fu(e),{queryKey:e,defaultOptions:r})}getQueryDefaults(e){let r=[...this.#o.values()],a={};return r.forEach((i)=>{if(vM(e,i.queryKey))Object.assign(a,i.defaultOptions)}),a}setMutationDefaults(e,r){this.#n.set(Fu(e),{mutationKey:e,defaultOptions:r})}getMutationDefaults(e){let r=[...this.#n.values()],a={};return r.forEach((i)=>{if(vM(e,i.mutationKey))Object.assign(a,i.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;let r={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};if(!r.queryHash)r.queryHash=MP(r.queryKey,r);if(r.refetchOnReconnect===void 0)r.refetchOnReconnect=r.networkMode!=="always";if(r.throwOnError===void 0)r.throwOnError=!!r.suspense;if(!r.networkMode&&r.persister)r.networkMode="offlineFirst";if(r.queryFn===YL)r.enabled=!1;return r}defaultMutationOptions(e){if(e?._defaulted)return e;return{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};var Gu=(e,r,a)=>{let i=a?.state.error&&typeof e.throwOnError==="function"?qL(e.throwOnError,[a.state.error,a]):e.throwOnError;if(e.suspense||i){if(!r.isReset())e.retryOnMount=!1}},Vu=(e)=>{m(()=>{e.clearReset()},[e])},Qu=({result:e,errorResetBoundary:r,throwOnError:a,query:i,suspense:s})=>e.isError&&!r.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||qL(a,[e.error,i]));var Tm=(e,r)=>r.state.data===void 0,Ku=(e)=>{if(e.suspense){let a=(s)=>s==="static"?s:Math.max(s??1000,1000),i=e.staleTime;if(e.staleTime=typeof i==="function"?(...s)=>a(i(...s)):a(i),typeof e.gcTime==="number")e.gcTime=Math.max(e.gcTime,1000)}},Oc=(e,r)=>e?.suspense&&r.isPending,Wu=(e,r,a)=>r.fetchOptimistic(e).catch(()=>{a.clearReset()});S();function hl(e,r,a){let i=Hu(),s=$u(),l=V(a),c=l.defaultQueryOptions(e),d=l.getQueryCache().get(c.queryHash),h=e.subscribed!==!1;c._optimisticResults=i?"isRestoring":h?"optimistic":void 0,Ku(c),Gu(c,s,d),Vu(s);let[g]=u(()=>new r(l,c)),x=g.getOptimisticResult(c),v=!i&&h;if(Xn(P((b)=>{let y=v?g.subscribe(Ht.batchCalls(b)):br;return g.updateResult(),y},[g,v]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),m(()=>{g.setOptions(c)},[c,g]),Oc(c,x))throw Wu(c,g,s);if(Qu({result:x,errorResetBoundary:s,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw x.error;return!c.notifyOnChangeProps?g.trackResult(x):x}function Z(e,r){return hl(e,Yo,r)}S();function B(e,r){let a=V(r),[i]=u(()=>new FB(a,e));m(()=>{i.setOptions(e)},[i,e]);let s=Xn(P((c)=>i.subscribe(Ht.batchCalls(c)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=P((...c)=>{i.mutate(c[0],c[1]).catch(br)},[i]);if(s.error&&qL(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}function mt(e,r){return hl(e,OB,r)}S();var $8=lt(void 0),TX=lt(void 0);S();var yN=lt(null);S();function Wa(e){return pt(yN)}var Hr=!1;function yM(e){return e[e.length-1]}function Y_e(e){return typeof e==="function"}function ns(e,r){if(Y_e(e))return e(r);return e}var NX=Object.prototype.hasOwnProperty,AX=Object.prototype.propertyIsEnumerable;function _M(e){for(let r in e)if(NX.call(e,r))return!0;return!1}var q_e=()=>Object.create(null),bM=(e,r)=>Es(e,r,q_e);function Es(e,r,a=()=>({}),i=0){if(Hr)return r;if(e===r)return e;if(i>500)return r;let s=r,l=_N(e)&&_N(s);if(!l&&!(GL(e)&&GL(s)))return s;let c=l?e:EX(e);if(!c)return s;let d=l?s:EX(s);if(!d)return s;let h=c.length,g=d.length,x=l?Array(g):a(),v=0;for(let b=0;b<g;b++){let y=l?b:d[b],k=e[y],T=s[y];if(k===T){if(x[y]=k,l?b<h:NX.call(e,y))v++;continue}if(k===null||T===null||typeof k!=="object"||typeof T!=="object"){x[y]=T;continue}let U=Es(k,T,a,i+1);if(x[y]=U,U===k)v++}return h===g&&v===h?e:x}function EX(e){let r=Object.getOwnPropertyNames(e);for(let s of r)if(!AX.call(e,s))return!1;let a=Object.getOwnPropertySymbols(e);if(a.length===0)return r;let i=r;for(let s of a){if(!AX.call(e,s))return!1;i.push(s)}return i}function GL(e){if(!DX(e))return!1;let r=e.constructor;if(typeof r>"u")return!0;let a=r.prototype;if(!DX(a))return!1;if(!a.hasOwnProperty("isPrototypeOf"))return!1;return!0}function DX(e){return Object.prototype.toString.call(e)==="[object Object]"}function _N(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ic(e,r,a){if(e===r)return!0;if(typeof e!==typeof r)return!1;if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;for(let i=0,s=e.length;i<s;i++)if(!ic(e[i],r[i],a))return!1;return!0}if(GL(e)&&GL(r)){let i=a?.ignoreUndefined??!0;if(a?.partial){for(let c in r)if(!i||r[c]!==void 0){if(!ic(e[c],r[c],a))return!1}return!0}let s=0;if(!i)s=Object.keys(e).length;else for(let c in e)if(e[c]!==void 0)s++;let l=0;for(let c in r)if(!i||r[c]!==void 0){if(l++,l>s||!ic(e[c],r[c],a))return!1}return s===l}return!1}function Ec(e){let r,a,i=new Promise((s,l)=>{r=s,a=l});return i.status="pending",i.resolve=(s)=>{i.status="resolved",i.value=s,r(s),e?.(s)},i.reject=(s)=>{i.status="rejected",a(s)},i}function wM(e){return Boolean(e&&typeof e==="object"&&typeof e.then==="function")}function H_e(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function OX(e){let r;try{r=decodeURI(e)}catch{r=e.replaceAll(/%[0-9A-F]{2}/gi,(a)=>{try{return decodeURI(a)}catch{return a}})}return H_e(r)}var bN=["http:","https:","mailto:","tel:"];function ju(e,r){if(!e)return!1;try{let a=new URL(e);return!r.has(a.protocol)}catch{return!1}}function KL(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};let r=/%25|%5C/gi,a=0,i="",s;while((s=r.exec(e))!==null)i+=OX(e.slice(a,s.index))+s[0],a=r.lastIndex;i=i+OX(a?e.slice(a):e);let l=!1;if(i.startsWith("//"))l=!0,i="/"+i.replace(/^\/+/,"");return{path:i,handledProtocolRelativeURL:l}}function FX(e){if(!/\s|[^\u0000-\u007F]/.test(e))return e;return e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent)}function jX(e,r){if(e===r)return!0;if(e.length!==r.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==r[a])return!1;return!0}function ii(){throw Error("Invariant failed")}function zM(e){let r=new Map,a,i,s=(l)=>{if(!l.next)return;if(!l.prev){if(l.next.prev=void 0,a=l.next,l.next=void 0,i)l.prev=i,i.next=l}else if(l.prev.next=l.next,l.next.prev=l.prev,l.next=void 0,i)i.next=l,l.prev=i;i=l};return{get(l){let c=r.get(l);if(!c)return;return s(c),c.value},set(l,c){if(r.size>=e&&a){let h=a;if(r.delete(h.key),h.next)a=h.next,h.next.prev=void 0;if(h===i)i=void 0}let d=r.get(l);if(d)d.value=c,s(d);else{let h={key:l,value:c,prev:i};if(i)i.next=h;if(i=h,!a)a=h;r.set(l,h)}},clear(){r.clear(),a=void 0,i=void 0}}}var LM=4,UX=5;function V_e(e){let r=e.indexOf("{");if(r===-1)return null;let a=e.indexOf("}",r);if(a===-1)return null;if(r+1>=e.length)return null;return[r,a]}function YB(e,r,a=new Uint16Array(6)){let i=e.indexOf("/",r),s=i===-1?e.length:i,l=e.substring(r,s);if(!l||!l.includes("$"))return a[0]=0,a[1]=r,a[2]=r,a[3]=s,a[4]=s,a[5]=s,a;if(l==="$"){let d=e.length;return a[0]=2,a[1]=r,a[2]=r,a[3]=d,a[4]=d,a[5]=d,a}if(l.charCodeAt(0)===36)return a[0]=1,a[1]=r,a[2]=r+1,a[3]=s,a[4]=s,a[5]=s,a;let c=V_e(l);if(c){let[d,h]=c,g=l.charCodeAt(d+1);if(g===45){if(d+2<l.length&&l.charCodeAt(d+2)===36){let x=d+3,v=h;if(x<v)return a[0]=3,a[1]=r+d,a[2]=r+x,a[3]=r+v,a[4]=r+h+1,a[5]=s,a}}else if(g===36){let x=d+1,v=d+2;if(v===h)return a[0]=2,a[1]=r+d,a[2]=r+x,a[3]=r+v,a[4]=r+h+1,a[5]=e.length,a;return a[0]=1,a[1]=r+d,a[2]=r+v,a[3]=r+h,a[4]=r+h+1,a[5]=s,a}}return a[0]=0,a[1]=r,a[2]=r,a[3]=s,a[4]=s,a[5]=s,a}function SN(e,r,a,i,s,l,c){c?.(a);let d=i;{let h=a.fullPath??a.from,g=h.length,x=a.options?.caseSensitive??e,v=a.options?.params?.parse??a.options?.parseParams;while(d<g){let y=YB(h,d,r),k,T=d,U=y[5];switch(d=U+1,l++,y[0]){case 0:{let N=h.substring(y[2],y[3]);if(x){let j=s.static?.get(N);if(j)k=j;else{s.static??=new Map;let G=ez(a.fullPath??a.from);G.parent=s,G.depth=l,k=G,s.static.set(N,G)}}else{let j=N.toLowerCase(),G=s.staticInsensitive?.get(j);if(G)k=G;else{s.staticInsensitive??=new Map;let X=ez(a.fullPath??a.from);X.parent=s,X.depth=l,k=X,s.staticInsensitive.set(j,X)}}break}case 1:{let N=h.substring(T,y[1]),j=h.substring(y[4],U),G=x&&!!(N||j),X=!N?void 0:G?N:N.toLowerCase(),J=!j?void 0:G?j:j.toLowerCase(),ee=!v&&s.dynamic?.find((re)=>!re.parse&&re.caseSensitive===G&&re.prefix===X&&re.suffix===J);if(ee)k=ee;else{let re=UB(1,a.fullPath??a.from,G,X,J);k=re,re.depth=l,re.parent=s,s.dynamic??=[],s.dynamic.push(re)}break}case 3:{let N=h.substring(T,y[1]),j=h.substring(y[4],U),G=x&&!!(N||j),X=!N?void 0:G?N:N.toLowerCase(),J=!j?void 0:G?j:j.toLowerCase(),ee=!v&&s.optional?.find((re)=>!re.parse&&re.caseSensitive===G&&re.prefix===X&&re.suffix===J);if(ee)k=ee;else{let re=UB(3,a.fullPath??a.from,G,X,J);k=re,re.parent=s,re.depth=l,s.optional??=[],s.optional.push(re)}break}case 2:{let N=h.substring(T,y[1]),j=h.substring(y[4],U),G=x&&!!(N||j),X=!N?void 0:G?N:N.toLowerCase(),J=!j?void 0:G?j:j.toLowerCase(),ee=UB(2,a.fullPath??a.from,G,X,J);k=ee,ee.parent=s,ee.depth=l,s.wildcard??=[],s.wildcard.push(ee)}}s=k}if(v&&a.children&&!a.isRoot&&a.id&&a.id.charCodeAt(a.id.lastIndexOf("/")+1)===95){let y=ez(a.fullPath??a.from);y.kind=UX,y.parent=s,l++,y.depth=l,s.pathless??=[],s.pathless.push(y),s=y}let b=(a.path||!a.children)&&!a.isRoot;if(b&&h.endsWith("/")){let y=ez(a.fullPath??a.from);y.kind=LM,y.parent=s,l++,y.depth=l,s.index=y,s=y}if(s.parse=v??null,s.priority=a.options?.params?.priority??0,b&&!s.route)s.route=a,s.fullPath=a.fullPath??a.from}if(a.children)for(let h of a.children)SN(e,r,h,d,s,l,c)}function BB(e,r){if(e.parse&&!r.parse)return-1;if(!e.parse&&r.parse)return 1;if(e.parse&&r.parse&&(e.priority||r.priority))return r.priority-e.priority;if(e.prefix&&r.prefix&&e.prefix!==r.prefix){if(e.prefix.startsWith(r.prefix))return-1;if(r.prefix.startsWith(e.prefix))return 1}if(e.suffix&&r.suffix&&e.suffix!==r.suffix){if(e.suffix.endsWith(r.suffix))return-1;if(r.suffix.endsWith(e.suffix))return 1}if(e.prefix&&!r.prefix)return-1;if(!e.prefix&&r.prefix)return 1;if(e.suffix&&!r.suffix)return-1;if(!e.suffix&&r.suffix)return 1;if(e.caseSensitive&&!r.caseSensitive)return-1;if(!e.caseSensitive&&r.caseSensitive)return 1;return 0}function SM(e){if(e.pathless)for(let r of e.pathless)SM(r);if(e.static)for(let r of e.static.values())SM(r);if(e.staticInsensitive)for(let r of e.staticInsensitive.values())SM(r);if(e.dynamic?.length){e.dynamic.sort(BB);for(let r of e.dynamic)SM(r)}if(e.optional?.length){e.optional.sort(BB);for(let r of e.optional)SM(r)}if(e.wildcard?.length){e.wildcard.sort(BB);for(let r of e.wildcard)SM(r)}}function ez(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function UB(e,r,a,i,s){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:r,parent:null,parse:null,priority:0,caseSensitive:a,prefix:i,suffix:s}}function YX(e,r){let a=ez("/"),i=new Uint16Array(6);for(let s of e)SN(!1,i,s,1,a,0);SM(a),r.masksTree=a,r.flatCache=zM(1000)}function qX(e,r){e||="/";let a=r.flatCache.get(e);if(a)return a;let i=qB(e,r.masksTree);return r.flatCache.set(e,i),i}function HX(e,r,a,i,s){e||="/",i||="/";let l=r?`case\x00${e}`:e,c=s.singleCache.get(l);if(!c)c=ez("/"),SN(r,new Uint16Array(6),{from:e},1,c,0),s.singleCache.set(l,c);return qB(i,c,a)}function VX(e,r,a=!1){let i=a?e:`nofuzz\x00${e}`,s=r.matchCache.get(i);if(s!==void 0)return s;e||="/";let l;try{l=qB(e,r.segmentTree,a)}catch(c){if(c instanceof URIError)l=null;else throw c}if(l)l.branch=HB(l.route);return r.matchCache.set(i,l),l}function W_e(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function WX(e,r=!1,a){let i=ez(e.fullPath),s=new Uint16Array(6),l={},c={},d=0;return SN(r,s,e,1,i,0,(h)=>{if(a?.(h,d),h.id in l)ii();if(l[h.id]=h,d!==0&&h.path){let g=W_e(h.fullPath);if(!c[g]||h.fullPath.endsWith("/"))c[g]=h}d++}),SM(i),{processedTree:{segmentTree:i,singleCache:zM(1000),matchCache:zM(1000),flatCache:null,masksTree:null},routesById:l,routesByPath:c}}function qB(e,r,a=!1){let i=e.split("/"),s=K_e(e,i,r,a);if(!s)return null;let[l]=GX(e,i,s);return{route:s.node.route,rawParams:l}}function GX(e,r,a){let i=G_e(a.node),s=null,l=Object.create(null),c=a.extract?.part??0,d=a.extract?.node??0,h=a.extract?.path??0,g=a.extract?.segment??0;for(;d<i.length;c++,d++,h++,g++){let x=i[d];if(x.kind===LM)break;if(x.kind===UX){g--,c--,h--;continue}let v=r[c],b=h;if(v)h+=v.length;if(x.kind===1){s??=a.node.fullPath.split("/");let y=s[g],k=x.prefix?.length??0;if(y.charCodeAt(k)===123){let T=x.suffix?.length??0,U=y.substring(k+2,y.length-T-1),N=v.substring(k,v.length-T);l[U]=decodeURIComponent(N)}else{let T=y.substring(1);l[T]=decodeURIComponent(v)}}else if(x.kind===3){if(a.skipped&1<<d){c--,h=b-1;continue}s??=a.node.fullPath.split("/");let y=s[g],k=x.prefix?.length??0,T=x.suffix?.length??0,U=y.substring(k+3,y.length-T-1),N=x.suffix||x.prefix?v.substring(k,v.length-T):v;if(N)l[U]=decodeURIComponent(N)}else if(x.kind===2){let y=x,k=e.substring(b+(y.prefix?.length??0),e.length-(y.suffix?.length??0)),T=decodeURIComponent(k);l["*"]=T,l._splat=T;break}}if(a.rawParams)Object.assign(l,a.rawParams);return[l,{part:c,node:d,path:h,segment:g}]}function HB(e){let r=[e];while(e.parentRoute)e=e.parentRoute,r.push(e);return r.reverse(),r}function G_e(e){let r=Array(e.depth+1);do r[e.depth]=e,e=e.parent;while(e);return r}function K_e(e,r,a,i){if(e==="/"&&a.index)return{node:a.index,skipped:0};let s=!yM(r),l=s&&e!=="/",c=r.length-(s?1:0),d=[{node:a,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],h=null,g=null;while(d.length){let x=d.pop(),{node:v,index:b,skipped:y,depth:k,statics:T,dynamics:U,optionals:N}=x,{extract:j,rawParams:G}=x;if(v.kind===2&&v.route&&!zN(g,x))continue;if(v.parse){if(!BX(e,r,x))continue;G=x.rawParams,j=x.extract}if(i&&v.route&&v.kind!==LM&&zN(h,x))h=x;let X=b===c;if(X){if(v.route&&(!l||v.kind===LM||v.kind===2)&&zN(g,x))g=x;if(!v.optional&&!v.wildcard&&!v.index&&!v.pathless)continue}let J=X?void 0:r[b],ee;if(X&&v.index){let re={node:v.index,index:b,skipped:y,depth:k+1,statics:T,dynamics:U,optionals:N,extract:j,rawParams:G},oe=!0;if(v.index.parse){if(!BX(e,r,re))oe=!1}if(oe){if(!U&&!N&&!y&&X_e(T,c))return re;if(zN(g,re))g=re}}if(v.wildcard)for(let re=v.wildcard.length-1;re>=0;re--){let oe=v.wildcard[re],{prefix:fe,suffix:be}=oe;if(fe){if(X)continue;if(!(oe.caseSensitive?J:ee??=J.toLowerCase()).startsWith(fe))continue}if(be){if(X)continue;let We=r.slice(b).join("/").slice(-be.length);if((oe.caseSensitive?We:We.toLowerCase())!==be)continue}d.push({node:oe,index:c,skipped:y,depth:k+1,statics:T,dynamics:U,optionals:N,extract:j,rawParams:G})}if(v.optional){let re=y|1<<k,oe=k+1;for(let fe=v.optional.length-1;fe>=0;fe--){let be=v.optional[fe];d.push({node:be,index:b,skipped:re,depth:oe,statics:T,dynamics:U,optionals:N,extract:j,rawParams:G})}if(!X)for(let fe=v.optional.length-1;fe>=0;fe--){let be=v.optional[fe],{prefix:We,suffix:Ye}=be;if(We||Ye){let Se=be.caseSensitive?J:ee??=J.toLowerCase();if(We&&!Se.startsWith(We))continue;if(Ye&&!Se.endsWith(Ye))continue}d.push({node:be,index:b+1,skipped:y,depth:oe,statics:T,dynamics:U,optionals:N+wN(c,b),extract:j,rawParams:G})}}if(!X&&v.dynamic&&J)for(let re=v.dynamic.length-1;re>=0;re--){let oe=v.dynamic[re],{prefix:fe,suffix:be}=oe;if(fe||be){let We=oe.caseSensitive?J:ee??=J.toLowerCase();if(fe&&!We.startsWith(fe))continue;if(be&&!We.endsWith(be))continue}d.push({node:oe,index:b+1,skipped:y,depth:k+1,statics:T,dynamics:U+wN(c,b),optionals:N,extract:j,rawParams:G})}if(!X&&v.staticInsensitive){let re=v.staticInsensitive.get(ee??=J.toLowerCase());if(re)d.push({node:re,index:b+1,skipped:y,depth:k+1,statics:T+wN(c,b),dynamics:U,optionals:N,extract:j,rawParams:G})}if(!X&&v.static){let re=v.static.get(J);if(re)d.push({node:re,index:b+1,skipped:y,depth:k+1,statics:T+wN(c,b),dynamics:U,optionals:N,extract:j,rawParams:G})}if(v.pathless){let re=k+1;for(let oe=v.pathless.length-1;oe>=0;oe--){let fe=v.pathless[oe];d.push({node:fe,index:b,skipped:y,depth:re,statics:T,dynamics:U,optionals:N,extract:j,rawParams:G})}}}if(g)return g;if(i&&h){let x=h.index;for(let b=0;b<h.index;b++)x+=r[b].length;let v=x===e.length?"/":e.slice(x);return h.rawParams??=Object.create(null),h.rawParams["**"]=decodeURIComponent(v),h}return null}function wN(e,r){return 2**(e-r-1)}function X_e(e,r){return e===2**(r-1)-1}function BX(e,r,a){let i,s;try{[i,s]=GX(e,r,a)}catch{return null}if(a.rawParams=i,a.extract=s,!a.node.parse)return!0;try{if(a.node.parse(i)===!1)return null}catch{}return!0}function zN(e,r){if(!e)return!0;return r.statics>e.statics||r.statics===e.statics&&(r.dynamics>e.dynamics||r.dynamics===e.dynamics&&(r.optionals>e.optionals||r.optionals===e.optionals&&((r.node.kind===LM)>(e.node.kind===LM)||r.node.kind===LM===(e.node.kind===LM)&&r.depth>e.depth)))}function CM(e){return XL(e.filter((r)=>r!==void 0).join("/"))}function XL(e){return e.replace(/\/{2,}/g,"/")}function yP(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Ds(e){let r=e.length;return r>1&&e[r-1]==="/"?e.replace(/\/{1,}$/,""):e}function QL(e){return Ds(yP(e))}function kM(e,r){if(e?.endsWith("/")&&e!=="/"&&e!==`${r}/`)return e.slice(0,-1);return e}function LN(e,r,a){return kM(e,a)===kM(r,a)}function kN({base:e,to:r,trailingSlash:a="never",cache:i}){let s=r.startsWith("/"),l=!s&&r===".",c;if(i){c=s?r:l?e:e+"\x00"+r;let g=i.get(c);if(g)return g}let d;if(l)d=e.split("/");else if(s)d=r.split("/");else{d=e.split("/");while(d.length>1&&yM(d)==="")d.pop();let g=r.split("/");for(let x=0,v=g.length;x<v;x++){let b=g[x];if(b===""){if(!x)d=[b];else if(x===v-1)d.push(b)}else if(b==="..")d.pop();else if(b===".");else d.push(b)}}if(d.length>1){if(yM(d)===""){if(a==="never")d.pop()}else if(a==="always")d.push("")}let h=XL(d.join("/"))||"/";if(c&&i)i.set(c,h);return h}function XX(e){let r=new Map(e.map((s)=>[encodeURIComponent(s),s])),a=Array.from(r.keys()).map((s)=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),i=new RegExp(a,"g");return(s)=>s.replace(i,(l)=>r.get(l)??l)}function vP(e,r,a){let i=r[e];if(typeof i!=="string")return i;if(e==="_splat"){if(/^[a-zA-Z0-9\-._~!/]*$/.test(i))return i;return i.split("/").map((s)=>KX(s,a)).join("/")}else return KX(i,a)}function _P({path:e,params:r,decoder:a,...i}){let s=!1,l=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:l,isMissingParams:s};if(!e.includes("$"))return{interpolatedPath:e,usedParams:l,isMissingParams:s};if(Hr??i.server){if(e.indexOf("{")===-1){let x=e.length,v=0,b="";while(v<x){while(v<x&&e.charCodeAt(v)===47)v++;if(v>=x)break;let y=v,k=e.indexOf("/",v);if(k===-1)k=x;v=k;let T=e.substring(y,k);if(!T)continue;if(T.charCodeAt(0)===36)if(T.length===1){let U=r._splat;if(l._splat=U,l["*"]=U,!U){s=!0;continue}let N=vP("_splat",r,a);b+="/"+N}else{let U=T.substring(1);if(!s&&!(U in r))s=!0;l[U]=r[U];let N=vP(U,r,a)??"undefined";b+="/"+N}else b+="/"+T}if(e.endsWith("/"))b+="/";return{usedParams:l,interpolatedPath:b||"/",isMissingParams:s}}}let c=e.length,d=0,h,g="";while(d<c){let x=d;h=YB(e,x,h);let v=h[5];if(d=v+1,x===v)continue;let b=h[0];if(b===0){g+="/"+e.substring(x,v);continue}if(b===2){let y=r._splat;l._splat=y,l["*"]=y;let k=e.substring(x,h[1]),T=e.substring(h[4],v);if(!y){if(s=!0,k||T)g+="/"+k+T;continue}let U=vP("_splat",r,a);g+="/"+k+U+T;continue}if(b===1){let y=e.substring(h[2],h[3]);if(!s&&!(y in r))s=!0;l[y]=r[y];let k=e.substring(x,h[1]),T=e.substring(h[4],v),U=vP(y,r,a)??"undefined";g+="/"+k+U+T;continue}if(b===3){let y=e.substring(h[2],h[3]),k=r[y];if(k==null)continue;l[y]=k;let T=e.substring(x,h[1]),U=e.substring(h[4],v),N=vP(y,r,a)??"";g+="/"+T+N+U;continue}}if(e.endsWith("/"))g+="/";return{usedParams:l,interpolatedPath:g||"/",isMissingParams:s}}function KX(e,r){let a=encodeURIComponent(e);return r?.(a)??a}function $a(e){return e?.isNotFound===!0}function QX(e,r=String){let a=new URLSearchParams;for(let i in e){let s=e[i];if(s!==void 0)a.set(i,r(s))}return a.toString()}function VB(e){if(!e)return"";if(e==="false")return!1;if(e==="true")return!0;return+e*0===0&&+e+""===e?+e:e}function JX(e){let r=new URLSearchParams(e),a=Object.create(null);for(let[i,s]of r.entries()){let l=a[i];if(l==null)a[i]=VB(s);else if(Array.isArray(l))l.push(VB(s));else a[i]=[l,VB(s)]}return a}var WB=$X(JSON.parse),GB=eQ(JSON.stringify,JSON.parse);function $X(e){return(r)=>{if(r[0]==="?")r=r.substring(1);let a=JX(r);for(let i in a){let s=a[i];if(typeof s==="string")try{a[i]=e(s)}catch(l){}}return a}}function eQ(e,r){let a=typeof r==="function";function i(s){if(typeof s==="object"&&s!==null)try{return e(s)}catch(l){}else if(a&&typeof s==="string")try{return r(s),e(s)}catch(l){}return s}return(s)=>{let l=QX(s,i);return l?`?${l}`:""}}var is="__root__";function cl(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==="string")try{new URL(e.href),e.reloadDocument=!0}catch{}let r=new Headers(e.headers);if(e.href&&r.get("Location")===null)r.set("Location",e.href);let a=new Response(null,{status:e.statusCode,headers:r});if(a.options=e,e.throw)throw a;return a}function fi(e){return e instanceof Response&&!!e.options}function KB(e){return{input:({url:r})=>{for(let a of e)r=CN(a,r);return r},output:({url:r})=>{for(let a=e.length-1;a>=0;a--)r=XB(e[a],r);return r}}}function tQ(e){let r=QL(e.basepath),a=`/${r}`,i=e.caseSensitive?a:a.toLowerCase(),s=`${i}/`;return{input:({url:l})=>{let c=e.caseSensitive?l.pathname:l.pathname.toLowerCase();if(c===i)l.pathname="/";else if(c.startsWith(s))l.pathname=l.pathname.slice(a.length);return l},output:({url:l})=>(l.pathname=CM(["/",r,l.pathname]),l)}}function CN(e,r){let a=e?.input?.({url:r});if(a){if(typeof a==="string")return new URL(a);else if(a instanceof URL)return a}return r}function XB(e,r){let a=e?.output?.({url:r});if(a){if(typeof a==="string")return new URL(a);else if(a instanceof URL)return a}return r}function $B(e){let r=e;return{get(){return r},set(a){r=ns(a,r)}}}function e6(e){return{get(){return e()}}}function rQ(e,r){let{createMutableStore:a,createReadonlyStore:i,batch:s,init:l}=r,c=new Map,d=new Map,h=new Map,g=a(e.status),x=a(e.loadedAt),v=a(e.isLoading),b=a(e.isTransitioning),y=a(e.location),k=a(e.resolvedLocation),T=a(e.statusCode),U=a(e.redirect),N=a([]),j=a([]),G=a([]),X=i(()=>QB(c,N.get())),J=i(()=>QB(d,j.get())),ee=i(()=>QB(h,G.get())),re=i(()=>N.get()[0]),oe=i(()=>N.get().some((xt)=>c.get(xt)?.get().status==="pending")),fe=i(()=>({locationHref:y.get().href,resolvedLocationHref:k.get()?.href,status:g.get()})),be=i(()=>({status:g.get(),loadedAt:x.get(),isLoading:v.get(),isTransitioning:b.get(),matches:X.get(),location:y.get(),resolvedLocation:k.get(),statusCode:T.get(),redirect:U.get()})),We=zM(64);function Ye(xt){let Ft=We.get(xt);if(!Ft)Ft=i(()=>{let Bt=N.get();for(let ie of Bt){let bt=c.get(ie);if(bt&&bt.routeId===xt)return bt.get()}}),We.set(xt,Ft);return Ft}let Se={status:g,loadedAt:x,isLoading:v,isTransitioning:b,location:y,resolvedLocation:k,statusCode:T,redirect:U,matchesId:N,pendingIds:j,cachedIds:G,matches:X,pendingMatches:J,cachedMatches:ee,firstId:re,hasPending:oe,matchRouteDeps:fe,matchStores:c,pendingMatchStores:d,cachedMatchStores:h,__store:be,getRouteMatchStore:Ye,setMatches:He,setPending:ft,setCached:Je};He(e.matches),l?.(Se);function He(xt){JB(xt,c,N,a,s)}function ft(xt){JB(xt,d,j,a,s)}function Je(xt){JB(xt,h,G,a,s)}return Se}function QB(e,r){let a=[];for(let i of r){let s=e.get(i);if(s)a.push(s.get())}return a}function JB(e,r,a,i,s){let l=e.map((d)=>d.id),c=new Set(l);s(()=>{for(let d of r.keys())if(!c.has(d))r.delete(d);for(let d of e){let h=r.get(d.id);if(!h){let g=i(d);g.routeId=d.routeId,r.set(d.id,g);continue}if(h.routeId=d.routeId,h.get()!==d)h.set(d)}if(!jX(a.get(),l))a.set(l)})}function Q_e(){try{return sessionStorage}catch{return}}var J_e="tsr-scroll-restoration-v1_3",nQ=Q_e();function $_e(){try{return JSON.parse(nQ?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function ebe(){try{nQ?.setItem(J_e,JSON.stringify(JL))}catch{}}var JL=$_e(),oQ="data-scroll-restoration-id",tbe=(e)=>e.state.__TSR_key||e.href;function rbe(e){let r=e.getAttribute(oQ);if(r)return`[${oQ}="${r}"]`;let a="",i=e,s;while(s=i.parentNode){let l=1,c=i;while(c=c.previousElementSibling)l++;let d=`${i.localName}:nth-child(${l})`;a=a?`${d} > ${a}`:d,i=s}return a}var IN=!1,$L="window";function t6(e){try{return typeof e==="function"?e():document.querySelector(e)}catch{}}function aQ(e){let r=[];for(let a of e){if(a===$L)continue;let i=t6(a);if(i)r.push(i)}return r}function iQ(e,r){if(r??e.options.scrollRestoration)e.isScrollRestoring=!0;if((Hr??e.isServer)||e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,IN=!1;let a=e.options.getScrollRestorationKey||tbe,i=new Map,s=(d,h,g)=>{let x=i.get(d)||{};x.scrollX=h,x.scrollY=g,i.set(d,x)};history.scrollRestoration="manual";let l=(d)=>{if(IN||!e.isScrollRestoring)return;if(d.target===document)s($L,scrollX,scrollY);else{let h=d.target;s(h,h.scrollLeft,h.scrollTop)}},c=(d)=>{if(!e.isScrollRestoring)return;let h=JL[d]||={};for(let[g,x]of i)if(g===$L)h[$L]=x;else if(g.isConnected)h[rbe(g)]=x};document.addEventListener("scroll",l,!0),e.subscribe("onBeforeLoad",(d)=>{if(d.fromLocation)c(a(d.fromLocation));i.clear()}),addEventListener("pagehide",()=>{c(a(e.stores.resolvedLocation.get()??e.stores.location.get())),ebe()}),e.subscribe("onRendered",(d)=>{let h=e.options.scrollRestorationBehavior,g=e.options.scrollToTopSelectors,x=e.resetNextScroll,v;if(i.clear(),!x)e.resetNextScroll=!0;if(typeof e.options.scrollRestoration==="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;let b=a(d.toLocation),y=d.fromLocation&&a(d.fromLocation);if(e.isScrollRestoring&&y&&y!==b){let k=JL[y];if(k){let T=JL[b];for(let U in k){if(U===$L){if(x)continue}else{let N=t6(U);if(!N)continue;if(x&&g){if(v??=aQ(g),v.includes(N))continue}}if(!T)T=JL[b]={};T[U]??=k[U]}}}IN=!0;try{let k=d.toLocation.hash,T=d.toLocation.state.__hashScrollIntoViewOptions??!0,U=!1;if(x){let N=RN.get(d.toLocation),j=k&&T&&(N==="PUSH"||N==="REPLACE"),G=e.isScrollRestoring?JL[b]:void 0;if(G)for(let X in G){let{scrollX:J,scrollY:ee}=G[X];if(X===$L){if(j)continue;scrollTo({top:ee,left:J,behavior:h}),U=!0}else{let re=t6(X);if(re)re.scrollLeft=J,re.scrollTop=ee}}if(!U&&!k){let X={top:0,left:0,behavior:h};if(scrollTo(X),g){v??=aQ(g);for(let J of v)J.scrollTo(X)}}}if(!U&&k&&T)document.getElementById(k)?.scrollIntoView(T)}finally{IN=!1}})}var r6=(e)=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},obe=(e)=>e.stores.matchesId.get().some((r)=>e.stores.matchStores.get(r)?.get()._forcePending),AN=(e,r)=>!!(e.preload&&!e.router.stores.matchStores.has(r)),tz=(e,r,a=!0)=>{let i={...e.router.options.context??{}},s=a?r:r-1;for(let l=0;l<=s;l++){let c=e.matches[l];if(!c)continue;let d=e.router.getMatch(c.id);if(!d)continue;Object.assign(i,d.__routeContext,d.__beforeLoadContext)}return i},fQ=(e,r)=>{if(!e.matches.length)return;let a=r.routeId,i=e.matches.findIndex((c)=>c.routeId===e.router.routeTree.id),s=i>=0?i:0,l=a?e.matches.findIndex((c)=>c.routeId===a):e.firstBadMatchIndex??e.matches.length-1;if(l<0)l=s;for(let c=l;c>=0;c--){let d=e.matches[c];if(e.router.looseRoutesById[d.routeId].options.notFoundComponent)return c}return a?l:s},IM=(e,r,a)=>{if(!fi(a)&&!$a(a))return;if(fi(a)&&a.redirectHandled&&!a.options.reloadDocument)throw a;if(r){if(r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.loaderPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,r._nonReactive.loaderPromise=void 0,r._nonReactive.error=a,e.updateMatch(r.id,(i)=>({...i,status:fi(a)?"redirected":$a(a)?"notFound":i.status==="pending"?"success":i.status,context:tz(e,r.index),isFetching:!1,error:a})),$a(a)&&!a.routeId)a.routeId=r.routeId;r._nonReactive.loadPromise?.resolve()}if(fi(a))e.rendered=!0,a.options._fromLocation=e.location,a.redirectHandled=!0,a=e.router.resolveRedirect(a);throw a},uQ=(e,r)=>{let a=e.router.getMatch(r);if(!a)return!0;if(!(Hr??e.router.isServer)&&a._nonReactive.dehydrated)return!0;if((Hr??e.router.isServer)&&a.ssr===!1)return!0;return!1},sQ=(e,r,a)=>{let i=tz(e,a);e.updateMatch(r,(s)=>({...s,context:i}))},bP=(e,r,a)=>{let{id:i,routeId:s}=e.matches[r],l=e.router.looseRoutesById[s];if(a instanceof Promise)throw a;e.firstBadMatchIndex??=r,IM(e,e.router.getMatch(i),a);try{l.options.onError?.(a)}catch(c){a=c,IM(e,e.router.getMatch(i),a)}if(e.updateMatch(i,(c)=>(c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,c._nonReactive.loadPromise?.resolve(),{...c,error:a,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!fi(a)&&!$a(a))e.serialError??=a},abe=(e,r,a,i)=>{let s=e.router.getMatch(r),l=e.matches[a-1]?.id,c=l?e.router.getMatch(l):void 0;if(e.router.isShell()){s.ssr=i.id===is;return}if(c?.ssr===!1){s.ssr=!1;return}let d=(y)=>{if(y===!0&&c?.ssr==="data-only")return"data-only";return y},h=e.router.options.defaultSsr??!0;if(i.options.ssr===void 0){s.ssr=d(h);return}if(typeof i.options.ssr!=="function"){s.ssr=d(i.options.ssr);return}let{search:g,params:x}=s,v={search:PN(g,s.searchError),params:PN(x,s.paramsError),location:e.location,matches:e.matches.map((y)=>({index:y.index,pathname:y.pathname,fullPath:y.fullPath,staticData:y.staticData,id:y.id,routeId:y.routeId,search:PN(y.search,y.searchError),params:PN(y.params,y.paramsError),ssr:y.ssr}))},b=i.options.ssr(v);if(wM(b))return b.then((y)=>{s.ssr=d(y??h)});s.ssr=d(b??h)},dQ=(e,r,a,i)=>{if(i._nonReactive.pendingTimeout!==void 0)return;let s=a.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!(Hr??e.router.isServer)&&!AN(e,r)&&(a.options.loader||a.options.beforeLoad||a6(a))&&typeof s==="number"&&s!==1/0&&(a.options.pendingComponent??e.router.options?.defaultPendingComponent)){let l=setTimeout(()=>{r6(e)},s);i._nonReactive.pendingTimeout=l}},nbe=(e,r,a)=>{let i=e.router.getMatch(r);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;dQ(e,r,a,i);let s=()=>{let l=e.router.getMatch(r);if(l.preload&&(l.status==="redirected"||l.status==="notFound"))IM(e,l,l.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(s):s()},ibe=(e,r,a,i)=>{let s=e.router.getMatch(r),l=s._nonReactive.loadPromise;s._nonReactive.loadPromise=Ec(()=>{l?.resolve(),l=void 0});let{paramsError:c,searchError:d}=s;if(c)bP(e,a,c);if(d)bP(e,a,d);dQ(e,r,i,s);let h=new AbortController,g=!1,x=()=>{if(g)return;g=!0,e.updateMatch(r,(X)=>({...X,isFetching:"beforeLoad",fetchCount:X.fetchCount+1,abortController:h}))},v=()=>{s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,e.updateMatch(r,(X)=>({...X,isFetching:!1}))};if(!i.options.beforeLoad){e.router.batch(()=>{x(),v()});return}s._nonReactive.beforeLoadPromise=Ec();let b={...tz(e,a,!1),...s.__routeContext},{search:y,params:k,cause:T}=s,U=AN(e,r),N={search:y,abortController:h,params:k,preload:U,context:b,location:e.location,navigate:(X)=>e.router.navigate({...X,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:U?"preload":T,matches:e.matches,routeId:i.id,...e.router.options.additionalContext},j=(X)=>{if(X===void 0){e.router.batch(()=>{x(),v()});return}if(fi(X)||$a(X))x(),bP(e,a,X);e.router.batch(()=>{x(),e.updateMatch(r,(J)=>({...J,__beforeLoadContext:X})),v()})},G;try{if(G=i.options.beforeLoad(N),wM(G))return x(),G.catch((X)=>{bP(e,a,X)}).then(j)}catch(X){x(),bP(e,a,X)}j(G)},fbe=(e,r)=>{let{id:a,routeId:i}=e.matches[r],s=e.router.looseRoutesById[i],l=()=>{if(Hr??e.router.isServer){let h=abe(e,a,r,s);if(wM(h))return h.then(d)}return d()},c=()=>ibe(e,a,r,s),d=()=>{if(uQ(e,a))return;let h=nbe(e,a,s);return wM(h)?h.then(c):c()};return l()},sbe=(e,r,a)=>{let i=e.router.getMatch(r);if(!i)return;if(!a.options.head&&!a.options.scripts&&!a.options.headers)return;let s={ssr:e.router.options.ssr,matches:e.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([a.options.head?.(s),a.options.scripts?.(s),a.options.headers?.(s)]).then(([l,c,d])=>({meta:l?.meta,links:l?.links,headScripts:l?.scripts,headers:d,scripts:c,styles:l?.styles}))},ZQ=(e,r,a,i,s)=>{let l=r[i-1],{params:c,loaderDeps:d,abortController:h,cause:g}=e.router.getMatch(a),x=tz(e,i),v=AN(e,a);return{params:c,deps:d,preload:!!v,parentMatchPromise:l,abortController:h,context:x,location:e.location,navigate:(b)=>e.router.navigate({...b,_fromLocation:e.location}),cause:v?"preload":g,route:s,...e.router.options.additionalContext}},lQ=async(e,r,a,i,s)=>{try{let l=e.router.getMatch(a);try{if(!(Hr??e.router.isServer)||l.ssr===!0)ek(s);let c=s.options.loader,d=typeof c==="function"?c:c?.handler,h=d?.(ZQ(e,r,a,i,s)),g=!!d&&wM(h);if(g||s._lazyPromise||s._componentsPromise||s.options.head||s.options.scripts||s.options.headers||l._nonReactive.minPendingPromise)e.updateMatch(a,(v)=>({...v,isFetching:"loader"}));if(d){let v=g?await h:h;if(IM(e,e.router.getMatch(a),v),v!==void 0)e.updateMatch(a,(b)=>({...b,loaderData:v}))}if(s._lazyPromise)await s._lazyPromise;let x=l._nonReactive.minPendingPromise;if(x)await x;if(s._componentsPromise)await s._componentsPromise;e.updateMatch(a,(v)=>({...v,error:void 0,context:tz(e,i),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(c){let d=c;if(d?.name==="AbortError"){if(l.abortController.signal.aborted){l._nonReactive.loaderPromise?.resolve(),l._nonReactive.loaderPromise=void 0;return}e.updateMatch(a,(g)=>({...g,status:g.status==="pending"?"success":g.status,isFetching:!1,context:tz(e,i)}));return}let h=l._nonReactive.minPendingPromise;if(h)await h;if($a(c))await s.options.notFoundComponent?.preload?.();IM(e,e.router.getMatch(a),c);try{s.options.onError?.(c)}catch(g){d=g,IM(e,e.router.getMatch(a),g)}if(!fi(d)&&!$a(d))await ek(s,["errorComponent"]);e.updateMatch(a,(g)=>({...g,error:d,context:tz(e,i),status:"error",isFetching:!1}))}}catch(l){let c=e.router.getMatch(a);if(c)c._nonReactive.loaderPromise=void 0;IM(e,c,l)}},lbe=async(e,r,a)=>{async function i(y,k,T,U,N){let j=Date.now()-k.updatedAt,G=y?N.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??30000:N.options.staleTime??e.router.options.defaultStaleTime??0,X=N.options.shouldReload,J=typeof X==="function"?X(ZQ(e,r,s,a,N)):X,{status:ee,invalid:re}=U,oe=j>=G&&(!!e.forceStaleReload||U.cause==="enter"||T!==void 0&&T!==U.id);if(c=ee==="success"&&(re||(J??oe)),y&&N.options.preload===!1);else if(c&&!e.sync&&x)d=!0,(async()=>{try{await lQ(e,r,s,a,N);let fe=e.router.getMatch(s);fe._nonReactive.loaderPromise?.resolve(),fe._nonReactive.loadPromise?.resolve(),fe._nonReactive.loaderPromise=void 0,fe._nonReactive.loadPromise=void 0}catch(fe){if(fi(fe))await e.router.navigate(fe.options)}})();else if(ee!=="success"||c)await lQ(e,r,s,a,N);else sQ(e,s,a)}let{id:s,routeId:l}=e.matches[a],c=!1,d=!1,h=e.router.looseRoutesById[l],g=h.options.loader,x=((typeof g==="function"?void 0:g?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(uQ(e,s)){if(!e.router.getMatch(s))return e.matches[a];if(sQ(e,s,a),Hr??e.router.isServer)return e.router.getMatch(s)}else{let y=e.router.getMatch(s),k=e.router.stores.matchesId.get()[a],T=(k&&e.router.stores.matchStores.get(k)||null)?.routeId===l?k:e.router.stores.matches.get().find((N)=>N.routeId===l)?.id,U=AN(e,s);if(y._nonReactive.loaderPromise){if(y.status==="success"&&!e.sync&&!y.preload&&x)return y;await y._nonReactive.loaderPromise;let N=e.router.getMatch(s),j=N._nonReactive.error||N.error;if(j)IM(e,N,j);if(N.status==="pending")await i(U,y,T,N,h)}else{let N=U&&!e.router.stores.matchStores.has(s),j=e.router.getMatch(s);if(j._nonReactive.loaderPromise=Ec(),N!==j.preload)e.updateMatch(s,(G)=>({...G,preload:N}));await i(U,y,T,j,h)}}let v=e.router.getMatch(s);if(!d)v._nonReactive.loaderPromise?.resolve(),v._nonReactive.loadPromise?.resolve(),v._nonReactive.loadPromise=void 0;if(clearTimeout(v._nonReactive.pendingTimeout),v._nonReactive.pendingTimeout=void 0,!d)v._nonReactive.loaderPromise=void 0;v._nonReactive.dehydrated=void 0;let b=d?v.isFetching:!1;if(b!==v.isFetching||v.invalid!==!1)return e.updateMatch(s,(y)=>({...y,isFetching:b,invalid:!1})),e.router.getMatch(s);else return v};async function o6(e){let r=e,a=[];if(!(Hr??r.router.isServer)&&obe(r.router))r6(r);let i;for(let b=0;b<r.matches.length;b++){try{let y=fbe(r,b);if(wM(y))await y}catch(y){if(fi(y))throw y;if($a(y))i=y;else if(!r.preload)throw y;break}if(r.serialError||r.firstBadMatchIndex!=null)break}let s=r.firstBadMatchIndex??r.matches.length,l=i&&!r.preload?fQ(r,i):void 0,c=i&&r.preload?0:l!==void 0?Math.min(l+1,s):s,d,h;for(let b=0;b<c;b++)a.push(lbe(r,a,b));try{await Promise.all(a)}catch{let b=await Promise.allSettled(a);for(let y of b){if(y.status!=="rejected")continue;let k=y.reason;if(fi(k))throw k;if($a(k))d??=k;else h??=k}if(h!==void 0)throw h}let g=d??(i&&!r.preload?i:void 0),x=r.firstBadMatchIndex!==void 0?r.firstBadMatchIndex:r.matches.length-1;if(!g&&i&&r.preload)return r.matches;if(g){let b=fQ(r,g);if(b===void 0)ii();let y=r.matches[b],k=r.router.looseRoutesById[y.routeId],T=r.router.options?.defaultNotFoundComponent;if(!k.options.notFoundComponent&&T)k.options.notFoundComponent=T;g.routeId=y.routeId;let U=y.routeId===r.router.routeTree.id;r.updateMatch(y.id,(N)=>({...N,...U?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:g},isFetching:!1})),x=b,await ek(k,["notFoundComponent"])}else if(!r.preload){let b=r.matches[0];if(!b.globalNotFound){if(r.router.getMatch(b.id)?.globalNotFound)r.updateMatch(b.id,(y)=>({...y,globalNotFound:!1,error:void 0}))}}if(r.serialError&&r.firstBadMatchIndex!==void 0){let b=r.router.looseRoutesById[r.matches[r.firstBadMatchIndex].routeId];await ek(b,["errorComponent"])}for(let b=0;b<=x;b++){let{id:y,routeId:k}=r.matches[b],T=r.router.looseRoutesById[k];try{let U=sbe(r,y,T);if(U){let N=await U;r.updateMatch(y,(j)=>({...j,...N}))}}catch(U){console.error(`Error executing head for route ${k}:`,U)}}let v=r6(r);if(wM(v))await v;if(g)throw g;if(r.serialError&&!r.preload&&!r.onReady)throw r.serialError;return r.matches}function cQ(e,r){let a=r.map((i)=>e.options[i]?.preload?.()).filter(Boolean);if(a.length===0)return;return Promise.all(a)}function ek(e,r=TN){if(!e._lazyLoaded&&e._lazyPromise===void 0)if(e.lazyFn)e._lazyPromise=e.lazyFn().then((i)=>{let{id:s,...l}=i.options;Object.assign(e.options,l),e._lazyLoaded=!0,e._lazyPromise=void 0});else e._lazyLoaded=!0;let a=()=>e._componentsLoaded?void 0:r===TN?(()=>{if(e._componentsPromise===void 0){let i=cQ(e,TN);if(i)e._componentsPromise=i.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});else e._componentsLoaded=!0}return e._componentsPromise})():cQ(e,r);return e._lazyPromise?e._lazyPromise.then(a):a()}function PN(e,r){if(r)return{status:"error",error:r};return{status:"success",value:e}}function a6(e){for(let r of TN)if(e.options[r]?.preload)return!0;return!1}var TN=["component","errorComponent","pendingComponent","notFoundComponent"];var RM="__TSR_index",pQ="popstate",mQ="beforeunload";function cbe(e){let r=e.getLocation(),a=new Set,i=(c)=>{r=e.getLocation(),a.forEach((d)=>d({location:r,action:c}))},s=(c)=>{if(e.notifyOnIndexChange??!0)i(c);else r=e.getLocation()},l=async({task:c,navigateOpts:d,...h})=>{if(d?.ignoreBlocker??!1){c();return}let g=e.getBlockers?.()??[],x=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&g.length&&x)for(let v of g){let b=wP(h.path,h.state);if(await v.blockerFn({currentLocation:r,nextLocation:b,action:h.type})){e.onBlocked?.();return}}c()};return{get location(){return r},get length(){return e.getLength()},subscribers:a,subscribe:(c)=>(a.add(c),()=>{a.delete(c)}),push:(c,d,h)=>{let g=r.state[RM];d=hQ(g+1,d),l({task:()=>{e.pushState(c,d),i({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:c,state:d})},replace:(c,d,h)=>{let g=r.state[RM];d=hQ(g,d),l({task:()=>{e.replaceState(c,d),i({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:c,state:d})},go:(c,d)=>{l({task:()=>{e.go(c),s({type:"GO",index:c})},navigateOpts:d,type:"GO"})},back:(c)=>{l({task:()=>{e.back(c?.ignoreBlocker??!1),s({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:(c)=>{l({task:()=>{e.forward(c?.ignoreBlocker??!1),s({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>r.state[RM]!==0,createHref:(c)=>e.createHref(c),block:(c)=>{if(!e.setBlockers)return()=>{};let d=e.getBlockers?.()??[];return e.setBlockers([...d,c]),()=>{let h=e.getBlockers?.()??[];e.setBlockers?.(h.filter((g)=>g!==c))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:i}}function hQ(e,r){if(!r)r={};let a=n6();return{...r,key:a,__TSR_key:a,[RM]:e}}function gQ(e){let r=e?.window??(typeof document<"u"?window:void 0),a=r.history.pushState,i=r.history.replaceState,s=[],l=()=>s,c=(oe)=>s=oe,d=e?.createHref??((oe)=>oe),h=e?.parseLocation??(()=>wP(`${r.location.pathname}${r.location.search}${r.location.hash}`,r.history.state));if(!r.history.state?.__TSR_key&&!r.history.state?.key){let oe=n6();r.history.replaceState({[RM]:0,key:oe,__TSR_key:oe},"")}let g=h(),x,v=!1,b=!1,y=!1,k=!1,T=()=>g,U,N,j=()=>{if(!U)return;re._ignoreSubscribers=!0,(U.isPush?r.history.pushState:r.history.replaceState)(U.state,"",U.href),re._ignoreSubscribers=!1,U=void 0,N=void 0,x=void 0},G=(oe,fe,be)=>{let We=d(fe);if(!N)x=g;if(g=wP(fe,be),U={href:We,state:be,isPush:U?.isPush||oe==="push"},!N)N=Promise.resolve().then(()=>j())},X=(oe)=>{g=h(),re.notify({type:oe})},J=async()=>{if(b){b=!1;return}let oe=h(),fe=oe.state[RM]-g.state[RM],be=fe===1,We=fe===-1,Ye=!be&&!We||v;v=!1;let Se=Ye?"GO":We?"BACK":"FORWARD",He=Ye?{type:"GO",index:fe}:{type:We?"BACK":"FORWARD"};if(y)y=!1;else{let ft=l();if(typeof document<"u"&&ft.length){for(let Je of ft)if(await Je.blockerFn({currentLocation:g,nextLocation:oe,action:Se})){b=!0,r.history.go(1),re.notify(He);return}}}g=h(),re.notify(He)},ee=(oe)=>{if(k){k=!1;return}let fe=!1,be=l();if(typeof document<"u"&&be.length)for(let We of be){let Ye=We.enableBeforeUnload??!0;if(Ye===!0){fe=!0;break}if(typeof Ye==="function"&&Ye()===!0){fe=!0;break}}if(fe)return oe.preventDefault(),oe.returnValue=""},re=cbe({getLocation:T,getLength:()=>r.history.length,pushState:(oe,fe)=>G("push",oe,fe),replaceState:(oe,fe)=>G("replace",oe,fe),back:(oe)=>{if(oe)y=!0;return k=!0,r.history.back()},forward:(oe)=>{if(oe)y=!0;k=!0,r.history.forward()},go:(oe)=>{v=!0,r.history.go(oe)},createHref:(oe)=>d(oe),flush:j,destroy:()=>{r.history.pushState=a,r.history.replaceState=i,r.removeEventListener(mQ,ee,{capture:!0}),r.removeEventListener(pQ,J)},onBlocked:()=>{if(x&&g!==x)g=x},getBlockers:l,setBlockers:c,notifyOnIndexChange:!1});return r.addEventListener(mQ,ee,{capture:!0}),r.addEventListener(pQ,J),r.history.pushState=function(...oe){let fe=a.apply(r.history,oe);if(!re._ignoreSubscribers)X("PUSH");return fe},r.history.replaceState=function(...oe){let fe=i.apply(r.history,oe);if(!re._ignoreSubscribers)X("REPLACE");return fe},re}function ube(e){let r=e.replace(/[\x00-\x1f\x7f]/g,"");if(r.startsWith("//"))r="/"+r.replace(/^\/+/,"");return r}function wP(e,r){let a=ube(e),i=a.indexOf("#"),s=a.indexOf("?"),l=n6();return{href:a,pathname:a.substring(0,i>0?s>0?Math.min(i,s):i:s>0?s:a.length),hash:i>-1?a.substring(i):"",search:s>-1?a.slice(s,i===-1?void 0:i):"",state:r||{[RM]:0,key:l,__TSR_key:l}}}function n6(){return(Math.random()+1).toString(36).substring(7)}function kZ(e,r){let a=r,i=e;return{fromLocation:a,toLocation:i,pathChanged:a?.pathname!==i.pathname,hrefChanged:a?.href!==i.href,hashChanged:a?.hash!==i.hash}}var RN=new WeakMap,i6=class{constructor(e,r){if(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.routeBranchCache=new WeakMap,this.startTransition=(a)=>a(),this.update=(a)=>{let i=this.options,s=this.basepath??i?.basepath??"/",l=this.basepath===void 0,c=i?.rewrite;if(this.options={...i,...a},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters)this.pathParamsDecoder=XX(this.options.pathParamsAllowedCharacters);if(!this.history||this.options.history&&this.options.history!==this.history)if(!this.options.history){if(!(Hr??this.isServer))this.history=gQ()}else this.history=this.options.history;if(this.origin=this.options.origin,!this.origin)if(!(Hr??this.isServer)&&window?.origin&&window.origin!=="null")this.origin=window.origin;else this.origin="http://localhost";if(this.history)this.updateLatestLocation();if(this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let x;if((Hr??this.isServer)&&!0&&globalThis.__TSR_CACHE__&&globalThis.__TSR_CACHE__.routeTree===this.routeTree){let v=globalThis.__TSR_CACHE__;this.resolvePathCache=v.resolvePathCache,x=v.processRouteTreeResult}else if(this.resolvePathCache=zM(1000),x=this.buildRouteTree(),(Hr??this.isServer)&&!0&&globalThis.__TSR_CACHE__===void 0)globalThis.__TSR_CACHE__={routeTree:this.routeTree,processRouteTreeResult:x,resolvePathCache:this.resolvePathCache};this.setRoutes(x)}if(!this.stores&&this.latestLocation){let x=this.getStoreConfig(this);if(this.batch=x.batch,this.stores=rQ(vQ(this.latestLocation),x),!(Hr??this.isServer))iQ(this)}let d=!1,h=this.options.basepath??"/",g=this.options.rewrite;if(l||s!==h||c!==g){this.basepath=h;let x=[],v=QL(h);if(v&&v!=="/")x.push(tQ({basepath:h}));if(g)x.push(g);if(this.rewrite=x.length===0?void 0:x.length===1?x[0]:KB(x),this.history)this.updateLatestLocation();d=!0}if(d&&this.stores)this.stores.location.set(this.latestLocation);if(typeof window<"u"&&"CSS"in window&&typeof window.CSS?.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=()=>{let a=WX(this.routeTree,this.options.caseSensitive,(i,s)=>{i.init({originalIndex:s})});if(this.options.routeMasks)YX(this.options.routeMasks,a.processedTree);return a},this.subscribe=(a,i)=>{let s={eventType:a,fn:i};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=(a)=>{this.subscribers.forEach((i)=>{if(i.eventType===a.type)i.fn(a)})},this.parseLocation=(a,i)=>{let s=({pathname:h,search:g,hash:x,href:v,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(h)){let N=this.options.parseSearch(g),j=this.options.stringifySearch(N);return{href:h+j+x,publicHref:h+j+x,pathname:KL(h).path,external:!1,searchStr:j,search:bM(i?.search,N),hash:KL(x.slice(1)).path,state:Es(i?.state,b)}}let y=new URL(v,this.origin),k=CN(this.rewrite,y),T=this.options.parseSearch(k.search),U=this.options.stringifySearch(T);return k.search=U,{href:k.href.replace(k.origin,""),publicHref:v,pathname:KL(k.pathname).path,external:!!this.rewrite&&k.origin!==this.origin,searchStr:U,search:bM(i?.search,T),hash:KL(k.hash.slice(1)).path,state:Es(i?.state,b)}},l=s(a),{__tempLocation:c,__tempKey:d}=l.state;if(c&&(!d||d===this.tempLocationKey)){let h=s(c);return h.state.key=l.state.key,h.state.__TSR_key=l.state.__TSR_key,delete h.state.__tempLocation,{...h,maskedLocation:l}}return l},this.resolvePathWithBase=(a,i)=>kN({base:a,to:i.includes("//")?XL(i):i,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(a,i,s)=>{if(typeof a==="string")return this.matchRoutesInternal({pathname:a,search:i},s);return this.matchRoutesInternal(a,i)},this.getMatchedRoutes=(a)=>yQ({pathname:a,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=(a)=>{let i=this.getMatch(a);if(!i)return;i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach((a)=>{this.cancelMatch(a)}),this.stores.matchesId.get().forEach((a)=>{if(this.stores.pendingMatchStores.has(a))return;let i=this.stores.matchStores.get(a)?.get();if(!i)return;if(i.status==="pending"||i.isFetching==="loader")this.cancelMatch(a)})},this.buildLocation=(a)=>{let i=(l={})=>{let c=l._fromLocation||this.pendingBuiltLocation||this.latestLocation,d=this.matchRoutesLightweight(c);l.from;let h=l.unsafeRelative==="path"?c.pathname:l.from??d.fullPath,g=l.to?`${l.to}`:void 0,x=d.search,v=Object.assign(Object.create(null),d.params),b=g?.charCodeAt(0)===47?"/":this.resolvePathWithBase(h,"."),y=g?this.resolvePathWithBase(b,g):b,k=l.params===!1||l.params===null?Object.create(null):(l.params??!0)===!0?v:Object.assign(v,ns(l.params,v)),T=this.routesByPath[Ds(y)],U;if(T)U=this.getRouteBranch(T);else if(y.includes("$"))U=[];else{let We=this.getMatchedRoutes(y);if(U=We.matchedRoutes,this.options.notFoundRoute&&(!We.foundRoute||We.foundRoute.path!=="/"&&We.routeParams["**"]))U=[...U,this.options.notFoundRoute]}if(U.length&&_M(k))for(let We of U){let Ye=We.options.params?.stringify??We.options.stringifyParams;if(Ye)try{Object.assign(k,Ye(k))}catch{}}let N=a.leaveParams?y:KL(_P({path:y,params:k,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,j=x;if(a._includeValidateSearch&&this.options.search?.strict){let We={};U.forEach((Ye)=>{if(Ye.options.validateSearch)try{Object.assign(We,EN(Ye.options.validateSearch,{...We,...j}))}catch{}}),j=We}j=dbe({search:j,dest:l,destRoutes:U,_includeValidateSearch:a._includeValidateSearch}),j=bM(x,j);let G=this.options.stringifySearch(j),X=l.hash===!0?c.hash:l.hash?ns(l.hash,c.hash):void 0,J=X?`#${X}`:"",ee=l.state===!0?c.state:l.state?ns(l.state,c.state):{};ee=Es(c.state,ee);let re=`${N}${G}${J}`,oe,fe,be=!1;if(this.rewrite){let We=new URL(re,this.origin),Ye=XB(this.rewrite,We);if(oe=We.href.replace(We.origin,""),Ye.origin!==this.origin)fe=Ye.href,be=!0;else fe=Ye.pathname+Ye.search+Ye.hash}else oe=FX(re),fe=oe;return{publicHref:fe,href:oe,pathname:N,search:j,searchStr:G,state:ee,hash:X??"",external:be,unmaskOnReload:l.unmaskOnReload}},s=(l={},c)=>{let d=i(l),h=c?i(c):void 0;if(!h){let g=Object.create(null);if(this.options.routeMasks){let x=qX(d.pathname,this.processedTree);if(x){Object.assign(g,x.rawParams);let{from:v,params:b,...y}=x.route,k=b===!1||b===null?Object.create(null):(b??!0)===!0?g:Object.assign(g,ns(b,g));c={from:a.from,...y,params:k},h=i(c)}}}if(h)d.maskedLocation=h;return d};if(a.mask)return s(a,{from:a.from,...a.mask});return s(a)},this.commitLocation=async({viewTransition:a,ignoreBlocker:i,...s})=>{let l,c=()=>{let g=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];g.forEach((v)=>{s.state[v]=this.latestLocation.state[v]});let x=ic(s.state,this.latestLocation.state);return g.forEach((v)=>{delete s.state[v]}),x},d=Ds(this.latestLocation.href)===Ds(s.href),h=this.commitLocationPromise;if(this.commitLocationPromise=Ec(()=>{h?.resolve(),h=void 0}),d&&c())this.load();else{let{maskedLocation:g,hashScrollIntoView:x,...v}=s;if(g){if(v={...g,state:{...g.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},v.unmaskOnReload??this.options.unmaskOnReload??!1)v.state.__tempKey=this.tempLocationKey}v.state.__hashScrollIntoViewOptions=x??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=a,l=s.replace?"REPLACE":"PUSH",this.history[l==="REPLACE"?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:i})}if(this.resetNextScroll=s.resetScroll??!0,!this.history.subscribers.size)this.load(l?{action:{type:l}}:void 0);return this.commitLocationPromise},this.buildAndCommitLocation=({replace:a,resetScroll:i,hashScrollIntoView:s,viewTransition:l,ignoreBlocker:c,href:d,...h}={})=>{if(d){let v=this.history.location.state.__TSR_index,b=wP(d,{__TSR_index:a?v:v+1}),y=new URL(b.pathname,this.origin);h.to=CN(this.rewrite,y).pathname,h.search=this.options.parseSearch(b.search),h.hash=b.hash.slice(1)}let g=this.buildLocation({...h,_includeValidateSearch:!0});this.pendingBuiltLocation=g;let x=this.commitLocation({...g,viewTransition:l,replace:a,resetScroll:i,hashScrollIntoView:s,ignoreBlocker:c});return Promise.resolve().then(()=>{if(this.pendingBuiltLocation===g)this.pendingBuiltLocation=void 0}),x},this.navigate=async({to:a,reloadDocument:i,href:s,publicHref:l,...c})=>{let d=!1;if(s)try{new URL(`${s}`),d=!0}catch{}if(d&&!i)i=!0;if(i){if(a!==void 0||!s){let g=this.buildLocation({to:a,...c});s=s??g.publicHref,l=l??g.publicHref}let h=!d&&l?l:s;if(ju(h,this.protocolAllowlist))return Promise.resolve();if(!c.ignoreBlocker){let g=this.history.getBlockers?.()??[];for(let x of g)if(x?.blockerFn){if(await x.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}}if(c.replace)window.location.replace(h);else window.location.href=h;return Promise.resolve()}return this.buildAndCommitLocation({...c,href:s,to:a,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),Hr??this.isServer){let s=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(this.latestLocation.publicHref!==s.publicHref){let l=this.getParsedLocationHref(s);if(s.external)throw cl({href:l});else throw cl({href:l,_builtLocation:s})}}let a=this.matchRoutes(this.latestLocation),i=this.stores.cachedMatches.get().filter((s)=>!a.some((l)=>l.id===s.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(a),this.stores.setCached(i)})},this.load=async(a)=>{let i=a?.action?.type,s,l,c,d=this.stores.resolvedLocation.get()??this.stores.location.get();c=new Promise((g)=>{this.startTransition(async()=>{try{if(this.beforeLoad(),i)RN.set(this.latestLocation,i);else RN.delete(this.latestLocation);let x=this.latestLocation,v=kZ(x,this.stores.resolvedLocation.get());if(!this.stores.redirect.get())this.emit({type:"onBeforeNavigate",...v});this.emit({type:"onBeforeLoad",...v}),await o6({router:this,sync:a?.sync,forceStaleReload:d.href===x.href,matches:this.stores.pendingMatches.get(),location:x,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=null,y=null,k=null,T=null;this.batch(()=>{let U=this.stores.pendingMatches.get(),N=U.length,j=this.stores.matches.get();b=N?j.filter((J)=>!this.stores.pendingMatchStores.has(J.id)):null;let G=new Set;for(let J of this.stores.pendingMatchStores.values())if(J.routeId)G.add(J.routeId);let X=new Set;for(let J of this.stores.matchStores.values())if(J.routeId)X.add(J.routeId);if(y=N?j.filter((J)=>!G.has(J.routeId)):null,k=N?U.filter((J)=>!X.has(J.routeId)):null,T=N?U.filter((J)=>X.has(J.routeId)):j,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),N)this.stores.setMatches(U),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...b.filter((J)=>J.status!=="error"&&J.status!=="notFound"&&J.status!=="redirected")]),this.clearExpiredCache()});for(let[U,N]of[[y,"onLeave"],[k,"onEnter"],[T,"onStay"]]){if(!U)continue;for(let j of U)this.looseRoutesById[j.routeId].options[N]?.(j)}})})}})}catch(x){if(fi(x)){if(s=x,!(Hr??this.isServer))this.navigate({...s.options,replace:!0,ignoreBlocker:!0})}else if($a(x))l=x;let v=s?s.status:l?404:this.stores.matches.get().some((b)=>b.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(v),this.stores.redirect.set(s)})}if(this.latestLoadPromise===c)this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0;g()})}),this.latestLoadPromise=c,await c;while(this.latestLoadPromise&&c!==this.latestLoadPromise)await this.latestLoadPromise;let h=void 0;if(this.hasNotFoundMatch())h=404;else if(this.stores.matches.get().some((g)=>g.status==="error"))h=500;if(h!==void 0)this.stores.statusCode.set(h)},this.startViewTransition=(a)=>{let i=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition==="function"){let s;if(typeof i==="object"&&this.isViewTransitionTypesSupported){let l=this.latestLocation,c=this.stores.resolvedLocation.get(),d=typeof i.types==="function"?i.types(kZ(l,c)):i.types;if(d===!1){a();return}s={update:a,types:d}}else s=a;document.startViewTransition(s)}else a()},this.updateMatch=(a,i)=>{this.startTransition(()=>{let s=this.stores.pendingMatchStores.get(a);if(s){s.set(i);return}let l=this.stores.matchStores.get(a);if(l){l.set(i);return}let c=this.stores.cachedMatchStores.get(a);if(c){let d=i(c.get());if(d.status==="redirected"){if(this.stores.cachedMatchStores.delete(a))this.stores.cachedIds.set((h)=>h.filter((g)=>g!==a))}else c.set(d)}})},this.getMatch=(a)=>this.stores.cachedMatchStores.get(a)?.get()??this.stores.pendingMatchStores.get(a)?.get()??this.stores.matchStores.get(a)?.get(),this.invalidate=(a)=>{let i=(s)=>{if(a?.filter?.(s)??!0)return{...s,invalid:!0,...a?.forcePending||s.status==="error"||s.status==="notFound"?{status:"pending",error:void 0}:void 0};return s};return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(i)),this.stores.setCached(this.stores.cachedMatches.get().map(i)),this.stores.setPending(this.stores.pendingMatches.get().map(i))}),this.shouldViewTransition=!1,this.load({sync:a?.sync})},this.getParsedLocationHref=(a)=>a.publicHref||"/",this.resolveRedirect=(a)=>{let i=a.headers.get("Location");if(!a.options.href||a.options._builtLocation){let s=a.options._builtLocation??this.buildLocation(a.options),l=this.getParsedLocationHref(s);a.options.href=l,a.headers.set("Location",l)}else if(i)try{let s=new URL(i);if(this.origin&&s.origin===this.origin){let l=s.pathname+s.search+s.hash;a.options.href=l,a.headers.set("Location",l)}}catch{}if(a.options.href&&!a.options._builtLocation&&ju(a.options.href,this.protocolAllowlist))throw Error("Redirect blocked: unsafe protocol");if(!a.headers.get("Location"))a.headers.set("Location",a.options.href);return a},this.clearCache=(a)=>{let i=a?.filter;if(i!==void 0)this.stores.setCached(this.stores.cachedMatches.get().filter((s)=>!i(s)));else this.stores.setCached([])},this.clearExpiredCache=()=>{let a=Date.now(),i=(s)=>{let l=this.looseRoutesById[s.routeId];if(!l.options.loader)return!0;let c=(s.preload?l.options.preloadGcTime??this.options.defaultPreloadGcTime:l.options.gcTime??this.options.defaultGcTime)??300000;if(s.status==="error")return!0;return a-s.updatedAt>=c};this.clearCache({filter:i})},this.loadRouteChunk=ek,this.preloadRoute=async(a)=>{let i=a._builtLocation??this.buildLocation(a),s=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:a}),l=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),c=new Set([...l,...this.stores.cachedIds.get()]),d=s.filter((h)=>!c.has(h.id));if(d.length){let h=this.stores.cachedMatches.get();this.stores.setCached([...h,...d])}try{return s=await o6({router:this,matches:s,location:i,preload:!0,updateMatch:(h,g)=>{if(l.has(h))s=s.map((x)=>x.id===h?g(x):x);else this.updateMatch(h,g)}}),s}catch(h){if(fi(h)){if(h.options.reloadDocument)return;return await this.preloadRoute({...h.options,_fromLocation:i})}if(!$a(h))console.error(h);return}},this.matchRoute=(a,i)=>{let s={...a,to:a.to?this.resolvePathWithBase(a.from||"",a.to):void 0,params:a.params||{},leaveParams:!0},l=this.buildLocation(s);if(i?.pending&&this.stores.status.get()!=="pending")return!1;let c=(i?.pending===void 0?!this.stores.isLoading.get():i.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),d=HX(l.pathname,i?.caseSensitive??!1,i?.fuzzy??!1,c.pathname,this.processedTree);if(!d)return!1;if(a.params){if(!ic(d.rawParams,a.params,{partial:!0}))return!1}if(i?.includeSearch??!0)return ic(c.search,l.search,{partial:!0})?d.rawParams:!1;return d.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some((a)=>a.status==="notFound"||a.globalNotFound),this.getStoreConfig=r,this.update({defaultPreloadDelay:50,defaultPendingMs:1000,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??GB,parseSearch:e.parseSearch??WB,protocolAllowlist:e.protocolAllowlist??bN}),typeof document<"u")self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:r,processedTree:a}){this.routesById=e,this.routesByPath=r,this.processedTree=a;let i=this.options.notFoundRoute;if(i)i.init({originalIndex:99999999999}),this.routesById[i.id]=i}getRouteBranch(e){let r=this.routeBranchCache.get(e);if(!r)r=HB(e),this.routeBranchCache.set(e,r);return r}get looseRoutesById(){return this.routesById}getParentContext(e){return!e?.id?this.options.context??void 0:e.context??this.options.context??void 0}matchRoutesInternal(e,r){let a=this.getMatchedRoutes(e.pathname),{foundRoute:i,routeParams:s}=a,{matchedRoutes:l}=a,c=!1;if(i?i.path!=="/"&&s["**"]:Ds(e.pathname))if(this.options.notFoundRoute)l=[...l,this.options.notFoundRoute];else c=!0;let d=c?pbe(this.options.notFoundMode,l):void 0,h=Array(l.length),g=new Map;for(let x of this.stores.matchStores.values())if(x.routeId)g.set(x.routeId,x.get());for(let x=0;x<l.length;x++){let v=l[x],b=h[x-1],y,k,T;{let Ye=b?.search??e.search,Se=b?._strictSearch??void 0;try{let He=EN(v.options.validateSearch,{...Ye})??void 0;y={...Ye,...He},k={...Se,...He},T=void 0}catch(He){let ft=He;if(!(He instanceof tk))ft=new tk(He.message,{cause:He});if(r?.throwOnError)throw ft;y=Ye,k={},T=ft}}let U=v.options.loaderDeps?.({search:y})??"",N=U?JSON.stringify(U):"",{interpolatedPath:j,usedParams:G}=_P({path:v.fullPath,params:s,decoder:this.pathParamsDecoder,server:this.isServer}),X=v.id+j+N,J=this.getMatch(X),ee=g.get(v.id),re=J?._strictParams??G,oe=void 0;if(!J)try{MQ(v,re)}catch(Ye){if($a(Ye)||fi(Ye))oe=Ye;else oe=new xQ(Ye.message,{cause:Ye});if(r?.throwOnError)throw oe}Object.assign(s,re);let fe=ee?"stay":"enter",be;if(J)be={...J,cause:fe,params:ee?.params??s,_strictParams:re,search:ee?bM(ee.search,y):bM(J.search,y),_strictSearch:k};else{let Ye=v.options.loader||v.options.beforeLoad||v.lazyFn||a6(v)?"pending":"success";be={id:X,ssr:Hr??this.isServer?void 0:v.options.ssr,index:x,routeId:v.id,params:ee?.params??s,_strictParams:re,pathname:j,updatedAt:Date.now(),search:ee?bM(ee.search,y):y,_strictSearch:k,searchError:void 0,status:Ye,isFetching:!1,error:void 0,paramsError:oe,__routeContext:void 0,_nonReactive:{loadPromise:Ec()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:fe,loaderDeps:ee?Es(ee.loaderDeps,U):U,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:v.options.staticData||{},fullPath:v.fullPath}}if(!r?.preload)be.globalNotFound=d===v.id;be.searchError=T;let We=this.getParentContext(b);be.context={...We,...be.__routeContext,...be.__beforeLoadContext},h[x]=be}for(let x=0;x<h.length;x++){let v=h[x],b=this.looseRoutesById[v.routeId],y=this.getMatch(v.id),k=g.get(v.routeId);if(v.params=k?bM(k.params,s):s,!y){let T=h[x-1],U=this.getParentContext(T);if(b.options.context){let N={deps:v.loaderDeps,params:v.params,context:U??{},location:e,navigate:(j)=>this.navigate({...j,_fromLocation:e}),buildLocation:this.buildLocation,cause:v.cause,abortController:v.abortController,preload:!!v.preload,matches:h,routeId:b.id};v.__routeContext=b.options.context(N)??void 0}v.context={...U,...v.__routeContext,...v.__beforeLoadContext}}}return h}matchRoutesLightweight(e){let{matchedRoutes:r,routeParams:a}=this.getMatchedRoutes(e.pathname),i=yM(r),s={...e.search};for(let g of r)try{Object.assign(s,EN(g.options.validateSearch,s))}catch{}let l=yM(this.stores.matchesId.get()),c=l&&this.stores.matchStores.get(l)?.get(),d=c&&c.routeId===i.id&&c.pathname===e.pathname,h;if(d)h=c.params;else{let g=Object.assign(Object.create(null),a);for(let x of r)try{MQ(x,g)}catch{}h=g}return{matchedRoutes:r,fullPath:i.fullPath,search:s,params:h}}},tk=class extends Error{},xQ=class extends Error{};function vQ(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function EN(e,r){if(e==null)return{};if("~standard"in e){let a=e["~standard"].validate(r);if(a instanceof Promise)throw new tk("Async validation not supported");if(a.issues)throw new tk(JSON.stringify(a.issues,void 0,2),{cause:a});return a.value}if("parse"in e)return e.parse(r);if(typeof e==="function")return e(r);return{}}function yQ({pathname:e,routesById:r,processedTree:a}){let i=Object.create(null),s=Ds(e),l=void 0,c=VX(s,a,!0);if(c)l=c.route,Object.assign(i,c.rawParams);return{matchedRoutes:c?.branch||[r.__root__],routeParams:i,foundRoute:l}}function dbe({search:e,dest:r,destRoutes:a,_includeValidateSearch:i}){return Zbe(a)(e,r,i??!1)}function Zbe(e){let r={dest:null,_includeValidateSearch:!1,middlewares:[]};for(let s of e){if("search"in s.options){if(s.options.search?.middlewares)r.middlewares.push(...s.options.search.middlewares)}else if(s.options.preSearchFilters||s.options.postSearchFilters){let l=({search:c,next:d})=>{let h=c;if("preSearchFilters"in s.options&&s.options.preSearchFilters)h=s.options.preSearchFilters.reduce((x,v)=>v(x),c);let g=d(h);if("postSearchFilters"in s.options&&s.options.postSearchFilters)return s.options.postSearchFilters.reduce((x,v)=>v(x),g);return g};r.middlewares.push(l)}if(s.options.validateSearch){let l=({search:c,next:d})=>{let h=d(c);if(!r._includeValidateSearch)return h;try{return{...h,...EN(s.options.validateSearch,h)??void 0}}catch{return h}};r.middlewares.push(l)}}let a=({search:s})=>{let l=r.dest;if(!l.search)return{};if(l.search===!0)return s;return ns(l.search,s)};r.middlewares.push(a);let i=(s,l,c)=>{if(s>=c.length)return l;let d=c[s];return d({search:l,next:(g)=>i(s+1,g,c)})};return function(l,c,d){return r.dest=c,r._includeValidateSearch=d,i(0,l,r.middlewares)}}function pbe(e,r){if(e!=="root")for(let a=r.length-1;a>=0;a--){let i=r[a];if(i.children)return i.id}return is}function MQ(e,r){let a=e.options.params?.parse??e.options.parseParams;if(a){let i=a(r);if(i===!1)throw Error("Route params.parse returned false for a matched route");Object.assign(r,i)}}var f6="Error preloading route! ☝️";var DN=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=(r)=>{this.originalIndex=r.originalIndex;let a=this.options,i=!a?.path&&!a?.id;if(this.parentRoute=this.options.getParentRoute?.(),i)this._path=is;else if(!this.parentRoute)ii();let s=i?is:a?.path;if(s&&s!=="/")s=yP(s);let l=a?.id||s,c=i?is:CM([this.parentRoute.id==="__root__"?"":this.parentRoute.id,l]);if(s==="__root__")s="/";if(c!=="__root__")c=CM(["/",c]);let d=c==="__root__"?"/":CM([this.parentRoute.fullPath,s]);this._path=s,this._id=c,this._fullPath=d,this._to=Ds(d)},this.addChildren=(r)=>this._addFileChildren(r),this._addFileChildren=(r)=>{if(Array.isArray(r))this.children=r;if(typeof r==="object"&&r!==null)this.children=Object.values(r);return this},this._addFileTypes=()=>this,this.updateLoader=(r)=>(Object.assign(this.options,r),this),this.update=(r)=>(Object.assign(this.options,r),this),this.lazy=(r)=>(this.lazyFn=r,this),this.redirect=(r)=>cl({from:this.fullPath,...r}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error("Route cannot have both an 'id' and a 'path' option.")}};var s6=class extends DN{constructor(e){super(e)}};S();var en=((e)=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(en||{});function bQ({update:e,notify:r,unwatched:a}){return{link:i,unlink:s,propagate:l,checkDirty:c,shallowPropagate:d};function i(g,x,v){let b=x.depsTail;if(b!==void 0&&b.dep===g)return;let y=b!==void 0?b.nextDep:x.deps;if(y!==void 0&&y.dep===g){y.version=v,x.depsTail=y;return}let k=g.subsTail;if(k!==void 0&&k.version===v&&k.sub===x)return;let T=x.depsTail=g.subsTail={version:v,dep:g,sub:x,prevDep:b,nextDep:y,prevSub:k,nextSub:void 0};if(y!==void 0)y.prevDep=T;if(b!==void 0)b.nextDep=T;else x.deps=T;if(k!==void 0)k.nextSub=T;else g.subs=T}function s(g,x=g.sub){let{dep:v,prevDep:b,nextDep:y,nextSub:k,prevSub:T}=g;if(y!==void 0)y.prevDep=b;else x.depsTail=b;if(b!==void 0)b.nextDep=y;else x.deps=y;if(k!==void 0)k.prevSub=T;else v.subsTail=T;if(T!==void 0)T.nextSub=k;else if((v.subs=k)===void 0)a(v);return y}function l(g){let x=g.nextSub,v;e:do{let b=g.sub,y=b.flags;if(!(y&60))b.flags=y|32;else if(!(y&12))y=0;else if(!(y&4))b.flags=y&-9|32;else if(!(y&48)&&h(g,b))b.flags=y|40,y&=1;else y=0;if(y&2)r(b);if(y&1){let k=b.subs;if(k!==void 0){let T=(g=k).nextSub;if(T!==void 0)v={value:x,prev:v},x=T;continue}}if((g=x)!==void 0){x=g.nextSub;continue}while(v!==void 0)if(g=v.value,v=v.prev,g!==void 0){x=g.nextSub;continue e}break}while(!0)}function c(g,x){let v,b=0,y=!1;e:do{let k=g.dep,T=k.flags;if(x.flags&16)y=!0;else if((T&17)===17){if(e(k)){let U=k.subs;if(U.nextSub!==void 0)d(U);y=!0}}else if((T&33)===33){if(g.nextSub!==void 0||g.prevSub!==void 0)v={value:g,prev:v};g=k.deps,x=k,++b;continue}if(!y){let U=g.nextDep;if(U!==void 0){g=U;continue}}while(b--){let U=x.subs,N=U.nextSub!==void 0;if(N)g=v.value,v=v.prev;else g=U;if(y){if(e(x)){if(N)d(U);x=g.sub;continue}y=!1}else x.flags&=-33;x=g.sub;let j=g.nextDep;if(j!==void 0){g=j;continue e}}return y}while(!0)}function d(g){do{let x=g.sub,v=x.flags;if((v&48)===32){if(x.flags=v|16,(v&6)===2)r(x)}}while((g=g.nextSub)!==void 0)}function h(g,x){let v=x.depsTail;while(v!==void 0){if(v===g)return!0;v=v.prevDep}return!1}}function SQ(e,r,a){let i=typeof e==="object",s=i?e:void 0;return{next:(i?e.next:e)?.bind(s),error:(i?e.error:r)?.bind(s),complete:(i?e.complete:a)?.bind(s)}}var l6=[],NN=0,{link:wQ,unlink:gbe,propagate:Mbe,checkDirty:LQ,shallowPropagate:zQ}=bQ({update(e){return e._update()},notify(e){l6[c6++]=e,e.flags&=~en.Watching},unwatched(e){if(e.depsTail!==void 0)e.depsTail=void 0,e.flags=en.Mutable|en.Dirty,FN(e)}}),ON=0,c6=0,Bu,u6=0;function zP(e){try{++u6,e()}finally{if(!--u6)d6()}}function FN(e){let r=e.depsTail,a=r!==void 0?r.nextDep:e.deps;while(a!==void 0)a=gbe(a,e)}function d6(){if(u6>0)return;while(ON<c6){let e=l6[ON];l6[ON++]=void 0,e.notify()}ON=0,c6=0}function jN(e,r){let a=typeof e==="function",i=e,s={_snapshot:a?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:a?en.None:en.Mutable,get(){if(Bu!==void 0)wQ(s,Bu,NN);return s._snapshot},subscribe(l){let c=SQ(l),d={current:!1},h=xbe(()=>{if(s.get(),!d.current)d.current=!0;else c.next?.(s._snapshot)});return{unsubscribe:()=>{h.stop()}}},_update(l){let c=Bu,d=r?.compare??Object.is;if(a)Bu=s,++NN,s.depsTail=void 0;else if(l===void 0)return!1;if(a)s.flags=en.Mutable|en.RecursedCheck;try{let h=s._snapshot,g=typeof l==="function"?l(h):l===void 0&&a?i(h):l;if(h===void 0||!d(h,g))return s._snapshot=g,!0;return!1}finally{if(Bu=c,a)s.flags&=~en.RecursedCheck;FN(s)}}};if(a)s.flags=en.Mutable|en.Dirty,s.get=function(){let l=s.flags;if(l&en.Dirty||l&en.Pending&&LQ(s.deps,s)){if(s._update()){let c=s.subs;if(c!==void 0)zQ(c)}}else if(l&en.Pending)s.flags=l&~en.Pending;if(Bu!==void 0)wQ(s,Bu,NN);return s._snapshot};else s.set=function(l){if(s._update(l)){let c=s.subs;if(c!==void 0)Mbe(c),zQ(c),d6()}};return s}function xbe(e){let r=()=>{let i=Bu;Bu=a,++NN,a.depsTail=void 0,a.flags=en.Watching|en.RecursedCheck;try{return e()}finally{Bu=i,a.flags&=~en.RecursedCheck,FN(a)}},a={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:en.Watching|en.RecursedCheck,notify(){let i=this.flags;if(i&en.Dirty||i&en.Pending&&LQ(this.deps,this))r();else this.flags=en.Watching},stop(){this.flags=en.None,this.depsTail=void 0,FN(this)}};return r(),a}S();S();var Rbe=kQ();function Pbe(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var Tbe=typeof Object.is==="function"?Object.is:Pbe,Abe=Rbe.useSyncExternalStore,Ebe=_,Dbe=m,Obe=D,Nbe=mi;var Fc=function(e,r,a,i,s){var l=Ebe(null);if(l.current===null){var c={hasValue:!1,value:null};l.current=c}else c=l.current;l=Obe(function(){function h(y){if(!g){if(g=!0,x=y,y=i(y),s!==void 0&&c.hasValue){var k=c.value;if(s(k,y))return v=k}return v=y}if(k=v,Tbe(x,y))return k;var T=i(y);if(s!==void 0&&s(k,T))return x=y,k;return x=y,v=T}var g=!1,x,v,b=a===void 0?null:a;return[function(){return h(r())},b===null?void 0:function(){return h(b())}]},[r,a,i,s]);var d=Abe(e,l[0],l[1]);return Dbe(function(){c.hasValue=!0,c.value=d},[d]),Nbe(d),d};function Fbe(e,r){return e===r}function Cn(e,r,a=Fbe){let i=P((c)=>{if(!e)return()=>{};let{unsubscribe:d}=e.subscribe(c);return d},[e]),s=P(()=>e?.get(),[e]);return Fc(i,s,s,r,a)}var jbe={get:()=>{return},subscribe:()=>({unsubscribe:()=>{}})};function Mi(e){let r=Wa(),a=pt(e.from?TX:$8),i=e.from??a,s=i?e.from?r.stores.getRouteMatchStore(i):r.stores.matchStores.get(i):void 0;if(Hr??r.isServer){let c=s?.get();if((e.shouldThrow??!0)&&!c)ii();if(c===void 0)return;return e.select?e.select(c):c}let l=_(void 0);return Cn(s??jbe,(c)=>{if((e.shouldThrow??!0)&&!c)ii();if(c===void 0)return;let d=e.select?e.select(c):c;if(e.structuralSharing??r.options.defaultStructuralSharing){let h=Es(l.current,d);return l.current=h,h}return d})}function ul(e){return Mi({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:(r)=>{let a=e.strict===!1?r.params:r._strictParams;return e.select?e.select(a):a}})}S();var rz=typeof window<"u"?$e:m;function BN(e){let r=_({value:e,prev:null}),a=r.current.value;if(e!==a)r.current={value:e,prev:a};return r.current.prev}function CQ(e,r,a={},i={}){m(()=>{if(!e.current||i.disabled||typeof IntersectionObserver!=="function")return;let s=new IntersectionObserver(([l])=>{r(l)},a);return s.observe(e.current),()=>{s.disconnect()}},[r,a,i.disabled,e])}function IQ(e){let r=_(null);return Vr(e,()=>r.current,[]),r}S();function Re(e){let r=Wa();return P((a)=>r.navigate({...a,from:a.from??e?.from}),[e?.from,r])}S();function RQ({children:e,fallback:r=null}){return p6()?t(In,{children:e}):t(In,{children:r})}function p6(){return Xn(Bbe,()=>!0,()=>!1)}function Bbe(){return()=>{}}S();function TQ(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(TQ)}catch(e){console.error(e)}}S();function PQ(e){var r="https://react.dev/errors/"+e;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function PM(){}var SP={d:{f:PM,r:function(){throw Error(PQ(522))},D:PM,C:PM,L:PM,m:PM,X:PM,S:PM,M:PM},p:0,findDOMNode:null},Ube=Symbol.for("react.portal");function Ybe(e,r,a){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ube,key:i==null?null:""+i,children:e,containerInfo:r,implementation:a}}var m6=Wi;var h6=SP,Ji=function(e,r){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)throw Error(PQ(299));return Ybe(e,r,null,a)},rn=function(e){var r=m6.T,a=SP.p;try{if(m6.T=null,SP.p=2,e)return e()}finally{m6.T=r,SP.p=a,SP.d.f()}};TQ();function FQ(e,r){let a=Wa(),i=IQ(r),s=Hr??a.isServer,{activeProps:l,inactiveProps:c,activeOptions:d,to:h,preload:g,preloadDelay:x,preloadIntentProximity:v,hashScrollIntoView:b,replace:y,startTransition:k,resetScroll:T,viewTransition:U,children:N,target:j,disabled:G,style:X,className:J,onClick:ee,onBlur:re,onFocus:oe,onMouseEnter:fe,onMouseLeave:be,onTouchStart:We,ignoreBlocker:Ye,params:Se,search:He,hash:ft,state:Je,mask:xt,reloadDocument:Ft,unsafeRelative:Bt,from:ie,_fromLocation:bt,...Wt}=e;if(s){let Ge=NQ(h);if(typeof h==="string"&&!Ge&&h.indexOf(":")>-1)try{if(new URL(h),ju(h,a.protocolAllowlist))return{...Wt,ref:i,href:void 0,...N&&{children:N},...j&&{target:j},...G&&{disabled:G},...X&&{style:X},...J&&{className:J}};return{...Wt,ref:i,href:h,...N&&{children:N},...j&&{target:j},...G&&{disabled:G},...X&&{style:X},...J&&{className:J}}}catch{}let Rt=a.buildLocation({...e,from:e.from}),hr=OQ(Rt.maskedLocation?Rt.maskedLocation.publicHref:Rt.publicHref,Rt.maskedLocation?Rt.maskedLocation.external:Rt.external,a.history,G),Ur=(()=>{if(hr?.external){if(ju(hr.href,a.protocolAllowlist))return;return hr.href}if(Ge)return;if(typeof h==="string"&&h.indexOf(":")>-1)try{if(new URL(h),ju(h,a.protocolAllowlist))return;return h}catch{}})(),$r=(()=>{if(Ur)return!1;let je=a.stores.location.get(),Zt=d?.exact??!1;if(Zt){if(!LN(je.pathname,Rt.pathname,a.basepath))return!1}else{let St=kM(je.pathname,a.basepath),jt=kM(Rt.pathname,a.basepath);if(!(St.startsWith(jt)&&(St.length===jt.length||St[jt.length]==="/")))return!1}if(d?.includeSearch??!0){if(je.search!==Rt.search){let St=!je.search||typeof je.search==="object"&&!_M(je.search),jt=!Rt.search||typeof Rt.search==="object"&&!_M(Rt.search);if(!(St&&jt)){if(!ic(je.search,Rt.search,{partial:!Zt,ignoreUndefined:!d?.explicitUndefined}))return!1}}}if(d?.includeHash)return!1;return!0})();if(Ur)return{...Wt,ref:i,href:Ur,...N&&{children:N},...j&&{target:j},...G&&{disabled:G},...X&&{style:X},...J&&{className:J}};let Wo=$r?ns(l,{})??AQ:ok,Va=$r?ok:ns(c,{})??ok,Ee=(()=>{let je=X,Zt=Wo.style,St=Va.style;if(!je&&!Zt&&!St)return;if(je&&!Zt&&!St)return je;if(!je&&Zt&&!St)return Zt;if(!je&&!Zt&&St)return St;return{...je,...Zt,...St}})(),Oe=(()=>{let je=J,Zt=Wo.className,St=Va.className;if(!je&&!Zt&&!St)return"";let jt="";if(je)jt=je;if(Zt)jt=jt?`${jt} ${Zt}`:Zt;if(St)jt=jt?`${jt} ${St}`:St;return jt})();return{...Wt,...Wo,...Va,href:hr?.href,ref:i,disabled:!!G,target:j,...Ee&&{style:Ee},...Oe&&{className:Oe},...G&&EQ,...$r&&DQ}}let Fe=p6(),nr=D(()=>e,[a,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),fr=Cn(a.stores.location,(Ge)=>Ge,(Ge,Rt)=>Ge.href===Rt.href),Jt=D(()=>{let Ge={_fromLocation:fr,...nr};return a.buildLocation(Ge)},[a,fr,nr]),Fr=Jt.maskedLocation?Jt.maskedLocation.publicHref:Jt.publicHref,Gt=Jt.maskedLocation?Jt.maskedLocation.external:Jt.external,Xt=D(()=>OQ(Fr,Gt,a.history,G),[G,Gt,Fr,a.history]),Ir=D(()=>{if(Xt?.external){if(ju(Xt.href,a.protocolAllowlist))return;return Xt.href}if(NQ(h))return;if(typeof h!=="string"||h.indexOf(":")===-1)return;try{if(new URL(h),ju(h,a.protocolAllowlist))return;return h}catch{}},[h,Xt,a.protocolAllowlist]),yr=D(()=>{if(Ir)return!1;if(d?.exact){if(!LN(fr.pathname,Jt.pathname,a.basepath))return!1}else{let Ge=kM(fr.pathname,a.basepath),Rt=kM(Jt.pathname,a.basepath);if(!(Ge.startsWith(Rt)&&(Ge.length===Rt.length||Ge[Rt.length]==="/")))return!1}if(d?.includeSearch??!0){if(!ic(fr.search,Jt.search,{partial:!d?.exact,ignoreUndefined:!d?.explicitUndefined}))return!1}if(d?.includeHash)return Fe&&fr.hash===Jt.hash;return!0},[d?.exact,d?.explicitUndefined,d?.includeHash,d?.includeSearch,fr,Ir,Fe,Jt.hash,Jt.pathname,Jt.search,a.basepath]),Tr=yr?ns(l,{})??AQ:ok,pr=yr?ok:ns(c,{})??ok,po=[J,Tr.className,pr.className].filter(Boolean).join(" "),lo=(X||Tr.style||pr.style)&&{...X,...Tr.style,...pr.style},[xa,sr]=u(!1),mo=_(!1),uo=e.reloadDocument||Ir?!1:g??a.options.defaultPreload,No=x??a.options.defaultPreloadDelay??0,hn=P(()=>{a.preloadRoute({...nr,_builtLocation:Jt}).catch((Ge)=>{console.warn(Ge),console.warn(f6)})},[a,nr,Jt]);CQ(i,P((Ge)=>{if(Ge?.isIntersecting)hn()},[hn]),Hbe,{disabled:!!G||uo!=="viewport"}),m(()=>{if(mo.current)return;if(!G&&uo==="render")hn(),mo.current=!0},[G,hn,uo]);let Vo=(Ge)=>{let Rt=Ge.currentTarget.getAttribute("target"),hr=j!==void 0?j:Rt;if(!G&&!Vbe(Ge)&&!Ge.defaultPrevented&&(!hr||hr==="_self")&&Ge.button===0){Ge.preventDefault(),rn(()=>{sr(!0)});let Ur=a.subscribe("onResolved",()=>{Ur(),sr(!1)});a.navigate({...nr,replace:y,resetScroll:T,hashScrollIntoView:b,startTransition:k,viewTransition:U,ignoreBlocker:Ye})}};if(Ir)return{...Wt,ref:i,href:Ir,...N&&{children:N},...j&&{target:j},...G&&{disabled:G},...X&&{style:X},...J&&{className:J},...ee&&{onClick:ee},...re&&{onBlur:re},...oe&&{onFocus:oe},...fe&&{onMouseEnter:fe},...be&&{onMouseLeave:be},...We&&{onTouchStart:We}};let Wn=(Ge)=>{if(G||uo!=="intent")return;if(!No){hn();return}let Rt=Ge.currentTarget;if(LP.has(Rt))return;let hr=setTimeout(()=>{LP.delete(Rt),hn()},No);LP.set(Rt,hr)},xn=(Ge)=>{if(G||uo!=="intent")return;hn()},Gi=(Ge)=>{if(G||!uo||!No)return;let Rt=Ge.currentTarget,hr=LP.get(Rt);if(hr)clearTimeout(hr),LP.delete(Rt)};return{...Wt,...Tr,...pr,href:Xt?.href,ref:i,onClick:ak([ee,Vo]),onBlur:ak([re,Gi]),onFocus:ak([oe,Wn]),onMouseEnter:ak([fe,Wn]),onMouseLeave:ak([be,Gi]),onTouchStart:ak([We,xn]),disabled:!!G,target:j,...lo&&{style:lo},...po&&{className:po},...G&&EQ,...yr&&DQ,...Fe&&xa&&qbe}}var ok={},AQ={className:"active"},EQ={role:"link","aria-disabled":!0},DQ={"data-status":"active","aria-current":"page"},qbe={"data-transitioning":"transitioning"},LP=new WeakMap,Hbe={rootMargin:"100px"},ak=(e)=>(r)=>{for(let a of e){if(!a)continue;if(r.defaultPrevented)return;a(r)}};function OQ(e,r,a,i){if(i)return;if(r)return{href:e,external:!0};return{href:a.createHref(e)||"/",external:!1}}function NQ(e){if(typeof e!=="string")return!1;let r=e.charCodeAt(0);if(r===47)return e.charCodeAt(1)!==47;return r===46}var gn=F((e,r)=>{let{_asChild:a,...i}=e,{type:s,...l}=FQ(i,r),c=typeof i.children==="function"?i.children({isActive:l["data-status"]==="active"}):i.children;if(!a){let{disabled:d,...h}=l;return q("a",h,c)}return q(a,l,c)});function Vbe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kP(e){return Mi({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:(r)=>e.select?e.select(r.loaderData):r.loaderData})}function CP(e){let{select:r,...a}=e;return Mi({...a,select:(i)=>r?r(i.loaderDeps):i.loaderDeps})}function IP(e){return Mi({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:(r)=>e.select?e.select(r.search):r.search})}function RP(e){return Mi({...e,select:(r)=>e.select?e.select(r.context):r.context})}S();var jQ=class extends DN{constructor(e){super(e);this.useMatch=(r)=>Mi({select:r?.select,from:this.id,structuralSharing:r?.structuralSharing}),this.useRouteContext=(r)=>RP({...r,from:this.id}),this.useSearch=(r)=>IP({select:r?.select,structuralSharing:r?.structuralSharing,from:this.id}),this.useParams=(r)=>ul({select:r?.select,structuralSharing:r?.structuralSharing,from:this.id}),this.useLoaderDeps=(r)=>CP({...r,from:this.id}),this.useLoaderData=(r)=>kP({...r,from:this.id}),this.useNavigate=()=>Re({from:this.fullPath}),this.Link=F((r,a)=>t(gn,{ref:a,from:this.fullPath,...r}))}};function g6(e){return new jQ(e)}function M6(){return(e)=>UQ(e)}var BQ=class extends s6{constructor(e){super(e);this.useMatch=(r)=>Mi({select:r?.select,from:this.id,structuralSharing:r?.structuralSharing}),this.useRouteContext=(r)=>RP({...r,from:this.id}),this.useSearch=(r)=>IP({select:r?.select,structuralSharing:r?.structuralSharing,from:this.id}),this.useParams=(r)=>ul({select:r?.select,structuralSharing:r?.structuralSharing,from:this.id}),this.useLoaderDeps=(r)=>CP({...r,from:this.id}),this.useLoaderData=(r)=>kP({...r,from:this.id}),this.useNavigate=()=>Re({from:this.fullPath}),this.Link=F((r,a)=>t(gn,{ref:a,from:this.fullPath,...r}))}};function UQ(e){return new BQ(e)}function Gr(e){return new YQ(e,{silent:!0}).createRoute}var YQ=class{constructor(e,r){this.path=e,this.createRoute=(a)=>{let i=g6(a);return i.isRoot=!1,i},this.silent=r?.silent}};var x6=class{constructor(e){this.useMatch=(r)=>Mi({select:r?.select,from:this.options.id,structuralSharing:r?.structuralSharing}),this.useRouteContext=(r)=>RP({...r,from:this.options.id}),this.useSearch=(r)=>IP({select:r?.select,structuralSharing:r?.structuralSharing,from:this.options.id}),this.useParams=(r)=>ul({select:r?.select,structuralSharing:r?.structuralSharing,from:this.options.id}),this.useLoaderDeps=(r)=>CP({...r,from:this.options.id}),this.useLoaderData=(r)=>kP({...r,from:this.options.id}),this.useNavigate=()=>Re({from:Wa().routesById[this.options.id].fullPath}),this.options=e}};function ze(e){if(typeof e==="object")return new x6(e);return(r)=>new x6({id:e,...r})}S();function oz(e){let r=e.errorComponent??az;return t(Wbe,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:a,reset:i})=>{if(a)return q(r,{error:a,reset:i});return e.children}})}var Wbe=class extends Ls{constructor(...e){super(...e);this.state={error:null}}static getDerivedStateFromProps(e,r){let a=e.getResetKey();if(r.error&&r.resetKey!==a)return{resetKey:a,error:null};return{resetKey:a}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,r){if(this.props.onCatch)this.props.onCatch(e,r)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function az({error:e}){let[r,a]=u(!1);return o("div",{style:{padding:".5rem",maxWidth:"100%"},children:[o("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[t("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),t("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>a((i)=>!i),children:r?"Hide Error":"Show Error"})]}),t("div",{style:{height:".25rem"}}),r?t("div",{children:t("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?t("code",{children:e.message}):null})}):null]})}S();function qQ(e){let r=Wa();if(Hr??r.isServer){let i=`not-found-${r.stores.location.get().pathname}-${r.stores.status.get()}`;return t(oz,{getResetKey:()=>i,onCatch:(s,l)=>{if($a(s))e.onCatch?.(s,l);else throw s},errorComponent:({error:s})=>{if($a(s))return e.fallback?.(s);else throw s},children:e.children})}let a=`not-found-${Cn(r.stores.location,(i)=>i.pathname)}-${Cn(r.stores.status,(i)=>i)}`;return t(oz,{getResetKey:()=>a,onCatch:(i,s)=>{if($a(i))e.onCatch?.(i,s);else throw i},errorComponent:({error:i})=>{if($a(i))return e.fallback?.(i);else throw i},children:e.children})}function HQ(){return t("p",{children:"Not Found"})}S();function TM(e){return t(L,{children:e.children})}S();function UN(e,r,a){if(!r.options.notFoundComponent){if(e.options.defaultNotFoundComponent)return t(e.options.defaultNotFoundComponent,{...a});return t(HQ,{})}return t(r.options.notFoundComponent,{...a})}function VQ({children:e}){let r=Wa();if(!(Hr??r.isServer))return null;return t("script",{nonce:r.options.ssr?.nonce,dangerouslySetInnerHTML:{__html:e+";document.currentScript.remove()"}})}function WQ(e){return null}function GQ(){let e=WQ(Wa());if(!e)return null;return t(VQ,{children:e})}S();var YN=Un(function({matchId:r}){let a=Wa();if(Hr??a.isServer){let c=a.stores.matchStores.get(r)?.get();if(!c)ii();let d=c.routeId,h=a.routesById[d].parentRoute?.id;return t(KQ,{router:a,matchId:r,resetKey:a.stores.loadedAt.get(),matchState:{routeId:d,ssr:c.ssr,_displayPending:c._displayPending,parentRouteId:h}})}let i=a.stores.matchStores.get(r);if(!i)ii();let s=Cn(a.stores.loadedAt,(c)=>c),l=Cn(i,(c)=>c);return t(KQ,{router:a,matchId:r,resetKey:s,matchState:D(()=>{let c=l.routeId,d=a.routesById[c].parentRoute?.id;return{routeId:c,ssr:l.ssr,_displayPending:l._displayPending,parentRouteId:d}},[l._displayPending,l.routeId,l.ssr,a.routesById])})});function KQ({router:e,matchId:r,resetKey:a,matchState:i}){let s=e.routesById[i.routeId],l=s.options.pendingComponent??e.options.defaultPendingComponent,c=l?t(l,{}):null,d=s.options.errorComponent??e.options.defaultErrorComponent,h=s.options.onCatch??e.options.defaultOnCatch,g=s.isRoot?s.options.notFoundComponent??e.options.notFoundRoute?.options.component:s.options.notFoundComponent,x=i.ssr===!1||i.ssr==="data-only",v=(!s.isRoot||s.options.wrapInSuspense||x)&&(s.options.wrapInSuspense??l??(s.options.errorComponent?.preload||x))?pi:TM,b=d?oz:TM,y=g?qQ:TM;return o(s.isRoot?s.options.shellComponent??TM:TM,{children:[t($8.Provider,{value:r,children:t(v,{fallback:c,children:t(b,{getResetKey:()=>a,errorComponent:d||az,onCatch:(k,T)=>{if($a(k))throw k.routeId??=i.routeId,k;h?.(k,T)},children:t(y,{fallback:(k)=>{if(k.routeId??=i.routeId,!g||k.routeId&&k.routeId!==i.routeId||!k.routeId&&!s.isRoot)throw k;return q(g,k)},children:x||i._displayPending?t(RQ,{fallback:c,children:t(XQ,{matchId:r})}):t(XQ,{matchId:r})})})})}),i.parentRouteId===is?o(L,{children:[t(Gbe,{resetKey:a}),e.options.scrollRestoration&&(Hr??e.isServer)?t(GQ,{}):null]}):null]})}function Gbe({resetKey:e}){let r=Wa();if(Hr??r.isServer)return null;let a=_(void 0);return rz(()=>{let i=r.latestLocation.href;if(a.current===void 0||a.current!==i)r.emit({type:"onRendered",...kZ(r.stores.location.get(),r.stores.resolvedLocation.get())}),a.current=i},[r.latestLocation.state.__TSR_key,e,r]),null}var XQ=Un(function({matchId:r}){let a=Wa(),i=(x,v)=>a.getMatch(x.id)?._nonReactive[v]??x._nonReactive[v];if(Hr??a.isServer){let x=a.stores.matchStores.get(r)?.get();if(!x)ii();let v=x.routeId,b=a.routesById[v],y=(a.routesById[v].options.remountDeps??a.options.defaultRemountDeps)?.({routeId:v,loaderDeps:x.loaderDeps,params:x._strictParams,search:x._strictSearch}),k=y?JSON.stringify(y):void 0,T=b.options.component??a.options.defaultComponent,U=T?t(T,{},k):t(AM,{});if(x._displayPending)throw i(x,"displayPendingPromise");if(x._forcePending)throw i(x,"minPendingPromise");if(x.status==="pending")throw i(x,"loadPromise");if(x.status==="notFound"){if(!$a(x.error))ii();return UN(a,b,x.error)}if(x.status==="redirected"){if(!fi(x.error))ii();throw i(x,"loadPromise")}if(x.status==="error")return t((b.options.errorComponent??a.options.defaultErrorComponent)||az,{error:x.error,reset:void 0,info:{componentStack:""}});return U}let s=a.stores.matchStores.get(r);if(!s)ii();let l=Cn(s,(x)=>x),c=l.routeId,d=a.routesById[c],h=D(()=>{let x=(a.routesById[c].options.remountDeps??a.options.defaultRemountDeps)?.({routeId:c,loaderDeps:l.loaderDeps,params:l._strictParams,search:l._strictSearch});return x?JSON.stringify(x):void 0},[c,l.loaderDeps,l._strictParams,l._strictSearch,a.options.defaultRemountDeps,a.routesById]),g=D(()=>{let x=d.options.component??a.options.defaultComponent;if(x)return t(x,{},h);return t(AM,{})},[h,d.options.component,a.options.defaultComponent]);if(l._displayPending)throw i(l,"displayPendingPromise");if(l._forcePending)throw i(l,"minPendingPromise");if(l.status==="pending"){let x=d.options.pendingMinMs??a.options.defaultPendingMinMs;if(x){let v=a.getMatch(l.id);if(v&&!v._nonReactive.minPendingPromise){if(!(Hr??a.isServer)){let b=Ec();v._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),v._nonReactive.minPendingPromise=void 0},x)}}}throw i(l,"loadPromise")}if(l.status==="notFound"){if(!$a(l.error))ii();return UN(a,d,l.error)}if(l.status==="redirected"){if(!fi(l.error))ii();throw i(l,"loadPromise")}if(l.status==="error"){if(Hr??a.isServer)return t((d.options.errorComponent??a.options.defaultErrorComponent)||az,{error:l.error,reset:void 0,info:{componentStack:""}});throw l.error}return g}),AM=Un(function(){let r=Wa(),a=pt($8),i,s=!1,l;if(Hr??r.isServer){let g=r.stores.matches.get(),x=a?g.findIndex((b)=>b.id===a):-1,v=x>=0?g[x]:void 0;i=v?.routeId,s=v?.globalNotFound??!1,l=x>=0?g[x+1]?.id:void 0}else{let g=a?r.stores.matchStores.get(a):void 0;[i,s]=Cn(g,(x)=>[x?.routeId,x?.globalNotFound??!1]),l=Cn(r.stores.matchesId,(x)=>x[x.findIndex((v)=>v===a)+1])}let c=i?r.routesById[i]:void 0,d=r.options.defaultPendingComponent?t(r.options.defaultPendingComponent,{}):null;if(s){if(!c)ii();return UN(r,c,void 0)}if(!l)return null;let h=t(YN,{matchId:l});if(i===is)return t(pi,{fallback:d,children:h});return h});var QQ=(e)=>{if(Hr??e.isServer)return{createMutableStore:$B,createReadonlyStore:e6,batch:(r)=>r()};return{createMutableStore:jN,createReadonlyStore:jN,batch:zP}};var v6=(e)=>new JQ(e),JQ=class extends i6{constructor(e){super(e,QQ)}};S();function $Q(){let e=Wa(),r=_({router:e,mounted:!1}),[a,i]=u(!1),s=Cn(e.stores.isLoading,(v)=>v),l=Cn(e.stores.hasPending,(v)=>v),c=BN(s),d=s||a||l,h=BN(d),g=s||l,x=BN(g);return e.startTransition=(v)=>{i(!0),UL(()=>{v(),i(!1)})},m(()=>{let v=e.history.subscribe(e.load),b=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(Ds(e.latestLocation.publicHref)!==Ds(b.publicHref))e.commitLocation({...b,replace:!0});return()=>{v()}},[e,e.history]),rz(()=>{if(typeof window<"u"&&e.ssr||r.current.router===e&&r.current.mounted)return;r.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(b){console.error(b)}})()},[e]),rz(()=>{if(c&&!s)e.emit({type:"onLoad",...kZ(e.stores.location.get(),e.stores.resolvedLocation.get())})},[c,e,s]),rz(()=>{if(x&&!g)e.emit({type:"onBeforeRouteMount",...kZ(e.stores.location.get(),e.stores.resolvedLocation.get())})},[g,x,e]),rz(()=>{if(h&&!d){let v=kZ(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...v}),zP(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())})}},[d,h,e]),null}S();function eJ(){let e=Wa(),r=e.routesById[is].options.pendingComponent??e.options.defaultPendingComponent,a=r?t(r,{}):null,i=o((Hr??e.isServer)||typeof document<"u"&&e.ssr?TM:pi,{fallback:a,children:[!(Hr??e.isServer)&&t($Q,{}),t(Kbe,{})]});return e.options.InnerWrap?t(e.options.InnerWrap,{children:i}):i}function Kbe(){let e=Wa(),r=Hr??e.isServer,a=r?e.stores.firstId.get():Cn(e.stores.firstId,(l)=>l),i=r?e.stores.loadedAt.get():Cn(e.stores.loadedAt,(l)=>l),s=a?t(YN,{matchId:a}):null;return t($8.Provider,{value:a,children:e.options.disableGlobalCatchBoundary?s:t(oz,{getResetKey:()=>i,errorComponent:az,onCatch:void 0,children:s})})}S();function tJ({router:e,children:r,...a}){if(_M(a))e.update({...e.options,...a,context:{...e.options.context,...a.context}});let i=t(yN.Provider,{value:e,children:r});if(e.options.Wrap)return t(e.options.Wrap,{children:i});return i}function y6({router:e,...r}){return t(tJ,{router:e,...r,children:t(eJ,{})})}S();function nz(e){let r=Wa({warn:e?.router===void 0}),a=e?.router||r;if(Hr??a.isServer){let s=a.stores.__store.get();return e?.select?e.select(s):s}let i=_(void 0);return Cn(a.stores.__store,(s)=>{if(e?.select){if(e.structuralSharing??a.options.defaultStructuralSharing){let l=Es(i.current,e.select(s));return i.current=l,l}return e.select(s)}return s})}S();function hre(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(hre)}catch(e){console.error(e)}}Ju();S();function Yt(e){var r="https://react.dev/errors/"+e;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Qbe(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function y2(e){var r=e,a=e;if(e.alternate)for(;r.return;)r=r.return;else{e=r;do r=e,(r.flags&4098)!==0&&(a=r.return),e=r.return;while(e)}return r.tag===3?a:null}function E$(e){if(e.tag===13){var r=e.memoizedState;if(r===null&&(e=e.alternate,e!==null&&(r=e.memoizedState)),r!==null)return r.dehydrated}return null}function D$(e){if(e.tag===31){var r=e.memoizedState;if(r===null&&(e=e.alternate,e!==null&&(r=e.memoizedState)),r!==null)return r.dehydrated}return null}function dJ(e){if(y2(e)!==e)throw Error(Yt(188))}function Jbe(e){var r=e.alternate;if(!r){if(r=y2(e),r===null)throw Error(Yt(188));return r!==e?null:e}for(var a=e,i=r;;){var s=a.return;if(s===null)break;var l=s.alternate;if(l===null){if(i=s.return,i!==null){a=i;continue}break}if(s.child===l.child){for(l=s.child;l;){if(l===a)return dJ(s),e;if(l===i)return dJ(s),r;l=l.sibling}throw Error(Yt(188))}if(a.return!==i.return)a=s,i=l;else{for(var c=!1,d=s.child;d;){if(d===a){c=!0,a=s,i=l;break}if(d===i){c=!0,i=s,a=l;break}d=d.sibling}if(!c){for(d=l.child;d;){if(d===a){c=!0,a=l,i=s;break}if(d===i){c=!0,i=l,a=s;break}d=d.sibling}if(!c)throw Error(Yt(189))}}if(a.alternate!==i)throw Error(Yt(190))}if(a.tag!==3)throw Error(Yt(188));return a.stateNode.current===a?e:r}function O$(e){var r=e.tag;if(r===5||r===26||r===27||r===6)return e;for(e=e.child;e!==null;){if(r=O$(e),r!==null)return r;e=e.sibling}return null}var Zn=Object.assign,$be=Symbol.for("react.element"),QN=Symbol.for("react.transitional.element"),BP=Symbol.for("react.portal"),dk=Symbol.for("react.fragment"),N$=Symbol.for("react.strict_mode"),lU=Symbol.for("react.profiler"),F$=Symbol.for("react.consumer"),OZ=Symbol.for("react.context"),iY=Symbol.for("react.forward_ref"),cU=Symbol.for("react.suspense"),uU=Symbol.for("react.suspense_list"),fY=Symbol.for("react.memo"),DM=Symbol.for("react.lazy"),dU=Symbol.for("react.activity"),ewe=Symbol.for("react.memo_cache_sentinel"),ZJ=Symbol.iterator;function EP(e){if(e===null||typeof e!=="object")return null;return e=ZJ&&e[ZJ]||e["@@iterator"],typeof e==="function"?e:null}var twe=Symbol.for("react.client.reference");function ZU(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===twe?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case dk:return"Fragment";case lU:return"Profiler";case N$:return"StrictMode";case cU:return"Suspense";case uU:return"SuspenseList";case dU:return"Activity"}if(typeof e==="object")switch(e.$$typeof){case BP:return"Portal";case OZ:return e.displayName||"Context";case F$:return(e._context.displayName||"Context")+".Consumer";case iY:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fY:return r=e.displayName||null,r!==null?r:ZU(e.type)||"Memo";case DM:r=e._payload,e=e._init;try{return ZU(e(r))}catch(a){}}return null}var UP=Array.isArray,qr=Wi,Uo=h6,Zz={pending:!1,data:null,method:null,action:null},pU=[],Zk=-1;function aZ(e){return{current:e}}function Oi(e){0>Zk||(e.current=pU[Zk],pU[Zk]=null,Zk--)}function Ga(e,r){Zk++,pU[Zk]=e.current,e.current=r}var oZ=aZ(null),f2=aZ(null),WM=aZ(null),L5=aZ(null);function k5(e,r){switch(Ga(WM,r),Ga(f2,e),Ga(oZ,null),r.nodeType){case 9:case 11:e=(e=r.documentElement)?(e=e.namespaceURI)?M$(e):0:0;break;default:if(e=r.tagName,r=r.namespaceURI)r=M$(r),e=are(r,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Oi(oZ),Ga(oZ,e)}function Rk(){Oi(oZ),Oi(f2),Oi(WM)}function mU(e){e.memoizedState!==null&&Ga(L5,e);var r=oZ.current,a=are(r,e.type);r!==a&&(Ga(f2,e),Ga(oZ,a))}function C5(e){f2.current===e&&(Oi(oZ),Oi(f2)),L5.current===e&&(Oi(L5),M2._currentValue=Zz)}var R6,pJ;function sz(e){if(R6===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);R6=r&&r[1]||"",pJ=-1<a.stack.indexOf(`
|
|
3
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
+
`+R6+e+pJ}var P6=!1;function T6(e,r){if(!e||P6)return"";P6=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(r){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(y){var b=y}Reflect.construct(e,[],v)}else{try{v.call()}catch(y){b=y}e.call(v.prototype)}}else{try{throw Error()}catch(y){b=y}(v=e())&&typeof v.catch==="function"&&v.catch(function(){})}}catch(y){if(y&&b&&typeof y.stack==="string")return[y.stack,b.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=i.DetermineComponentFrameRoot(),c=l[0],d=l[1];if(c&&d){var h=c.split(`
|
|
5
|
+
`),g=d.split(`
|
|
6
|
+
`);for(s=i=0;i<h.length&&!h[i].includes("DetermineComponentFrameRoot");)i++;for(;s<g.length&&!g[s].includes("DetermineComponentFrameRoot");)s++;if(i===h.length||s===g.length)for(i=h.length-1,s=g.length-1;1<=i&&0<=s&&h[i]!==g[s];)s--;for(;1<=i&&0<=s;i--,s--)if(h[i]!==g[s]){if(i!==1||s!==1)do if(i--,s--,0>s||h[i]!==g[s]){var x=`
|
|
7
|
+
`+h[i].replace(" at new "," at ");return e.displayName&&x.includes("<anonymous>")&&(x=x.replace("<anonymous>",e.displayName)),x}while(1<=i&&0<=s);break}}}finally{P6=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?sz(a):""}function rwe(e,r){switch(e.tag){case 26:case 27:case 5:return sz(e.type);case 16:return sz("Lazy");case 13:return e.child!==r&&r!==null?sz("Suspense Fallback"):sz("Suspense");case 19:return sz("SuspenseList");case 0:case 15:return T6(e.type,!1);case 11:return T6(e.type.render,!1);case 1:return T6(e.type,!0);case 31:return sz("Activity");default:return""}}function mJ(e){try{var r="",a=null;do r+=rwe(e,a),a=e,e=e.return;while(e);return r}catch(i){return`
|
|
8
|
+
Error generating stack: `+i.message+`
|
|
9
|
+
`+i.stack}}var hU=Object.prototype.hasOwnProperty,sY=Us,A6=_l,owe=bl,awe=yl,ql=eo,nwe=XN,j$=gl,B$=Al,I5=Bs,iwe=KN,U$=Xi,fwe=void 0,swe=void 0,_2=null,Hl=null;function UM(e){if(typeof fwe==="function"&&swe(e),Hl&&typeof Hl.setStrictMode==="function")try{Hl.setStrictMode(_2,e)}catch(r){}}var Vl=Math.clz32?Math.clz32:uwe,{log:lwe,LN2:cwe}=Math;function uwe(e){return e>>>=0,e===0?32:31-(lwe(e)/cwe|0)|0}var JN=256,$N=262144,e5=4194304;function lz(e){var r=e&42;if(r!==0)return r;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function r4(e,r,a){var i=e.pendingLanes;if(i===0)return 0;var s=0,l=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=i&134217727;return d!==0?(i=d&~l,i!==0?s=lz(i):(c&=d,c!==0?s=lz(c):a||(a=d&~e,a!==0&&(s=lz(a))))):(d=i&~l,d!==0?s=lz(d):c!==0?s=lz(c):a||(a=i&~e,a!==0&&(s=lz(a)))),s===0?0:r!==0&&r!==s&&(r&l)===0&&(l=s&-s,a=r&-r,l>=a||l===32&&(a&4194048)!==0)?r:s}function b2(e,r){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&r)===0}function dwe(e,r){switch(e){case 1:case 2:case 4:case 8:case 64:return r+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 r+5000;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 Y$(){var e=e5;return e5<<=1,(e5&62914560)===0&&(e5=4194304),e}function E6(e){for(var r=[],a=0;31>a;a++)r.push(e);return r}function o4(e,r){e.pendingLanes|=r,r!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zwe(e,r,a,i,s,l){var c=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var{entanglements:d,expirationTimes:h,hiddenUpdates:g}=e;for(a=c&~a;0<a;){var x=31-Vl(a),v=1<<x;d[x]=0,h[x]=-1;var b=g[x];if(b!==null)for(g[x]=null,x=0;x<b.length;x++){var y=b[x];y!==null&&(y.lane&=-536870913)}a&=~v}i!==0&&q$(e,i,0),l!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=l&~(c&~r))}function q$(e,r,a){e.pendingLanes|=r,e.suspendedLanes&=~r;var i=31-Vl(r);e.entangledLanes|=r,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function H$(e,r){var a=e.entangledLanes|=r;for(e=e.entanglements;a;){var i=31-Vl(a),s=1<<i;s&r|e[i]&r&&(e[i]|=r),a&=~s}}function V$(e,r){var a=r&-r;return a=(a&42)!==0?1:W$(a),(a&(e.suspendedLanes|r))!==0?0:a}function W$(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function lY(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function G$(){var e=Uo.p;if(e!==0)return e;return e=window.event,e===void 0?32:Zre(e.type)}function hJ(e,r){var a=Uo.p;try{return Uo.p=e,r()}finally{Uo.p=a}}var a8=Math.random().toString(36).slice(2),Qi="__reactFiber$"+a8,Xs="__reactProps$"+a8,w2="__reactContainer$"+a8,gU="__reactEvents$"+a8,pwe="__reactListeners$"+a8,mwe="__reactHandles$"+a8,gJ="__reactResources$"+a8,z2="__reactMarker$"+a8;function cY(e){delete e[Qi],delete e[Xs],delete e[gU],delete e[pwe],delete e[mwe]}function pk(e){var r=e[Qi];if(r)return r;for(var a=e.parentNode;a;){if(r=a[w2]||a[Qi]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(e=b$(e);e!==null;){if(a=e[Qi])return a;e=b$(e)}return r}e=a,a=e.parentNode}return null}function Uk(e){if(e=e[Qi]||e[w2]){var r=e.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return e}return null}function YP(e){var r=e.tag;if(r===5||r===26||r===27||r===6)return e.stateNode;throw Error(Yt(33))}function wk(e){var r=e[gJ];return r||(r=e[gJ]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Di(e){e[z2]=!0}var K$=new Set,X$={};function zz(e,r){Pk(e,r),Pk(e+"Capture",r)}function Pk(e,r){X$[e]=r;for(e=0;e<r.length;e++)K$.add(r[e])}var hwe=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]*$"),MJ={},xJ={};function gwe(e){if(hU.call(xJ,e))return!0;if(hU.call(MJ,e))return!1;if(hwe.test(e))return xJ[e]=!0;return MJ[e]=!0,!1}function u5(e,r,a){if(gwe(r))if(a===null)e.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(r);return;case"boolean":var i=r.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(r);return}}e.setAttribute(r,""+a)}}function t5(e,r,a){if(a===null)e.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttribute(r,""+a)}}function IZ(e,r,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(r,a,""+i)}}function lc(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Q$(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Mwe(e,r,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,r);if(!e.hasOwnProperty(r)&&typeof i<"u"&&typeof i.get==="function"&&typeof i.set==="function"){var{get:s,set:l}=i;return Object.defineProperty(e,r,{configurable:!0,get:function(){return s.call(this)},set:function(c){a=""+c,l.call(this,c)}}),Object.defineProperty(e,r,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function MU(e){if(!e._valueTracker){var r=Q$(e)?"checked":"value";e._valueTracker=Mwe(e,r,""+e[r])}}function J$(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var a=r.getValue(),i="";return e&&(i=Q$(e)?e.checked?"true":"false":e.value),e=i,e!==a?(r.setValue(e),!0):!1}function R5(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(r){return e.body}}var xwe=/[\n"\\]/g;function dc(e){return e.replace(xwe,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function xU(e,r,a,i,s,l,c,d){if(e.name="",c!=null&&typeof c!=="function"&&typeof c!=="symbol"&&typeof c!=="boolean"?e.type=c:e.removeAttribute("type"),r!=null)if(c==="number"){if(r===0&&e.value===""||e.value!=r)e.value=""+lc(r)}else e.value!==""+lc(r)&&(e.value=""+lc(r));else c!=="submit"&&c!=="reset"||e.removeAttribute("value");r!=null?vU(e,c,lc(r)):a!=null?vU(e,c,lc(a)):i!=null&&e.removeAttribute("value"),s==null&&l!=null&&(e.defaultChecked=!!l),s!=null&&(e.checked=s&&typeof s!=="function"&&typeof s!=="symbol"),d!=null&&typeof d!=="function"&&typeof d!=="symbol"&&typeof d!=="boolean"?e.name=""+lc(d):e.removeAttribute("name")}function $$(e,r,a,i,s,l,c,d){if(l!=null&&typeof l!=="function"&&typeof l!=="symbol"&&typeof l!=="boolean"&&(e.type=l),r!=null||a!=null){if(!(l!=="submit"&&l!=="reset"||r!==void 0&&r!==null)){MU(e);return}a=a!=null?""+lc(a):"",r=r!=null?""+lc(r):a,d||r===e.value||(e.value=r),e.defaultValue=r}i=i!=null?i:s,i=typeof i!=="function"&&typeof i!=="symbol"&&!!i,e.checked=d?e.checked:!!i,e.defaultChecked=!!i,c!=null&&typeof c!=="function"&&typeof c!=="symbol"&&typeof c!=="boolean"&&(e.name=c),MU(e)}function vU(e,r,a){r==="number"&&R5(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function zk(e,r,a,i){if(e=e.options,r){r={};for(var s=0;s<a.length;s++)r["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=r.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&i&&(e[a].defaultSelected=!0)}else{a=""+lc(a),r=null;for(s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,i&&(e[s].defaultSelected=!0);return}r!==null||e[s].disabled||(r=e[s])}r!==null&&(r.selected=!0)}}function eee(e,r,a){if(r!=null&&(r=""+lc(r),r!==e.value&&(e.value=r),a==null)){e.defaultValue!==r&&(e.defaultValue=r);return}e.defaultValue=a!=null?""+lc(a):""}function tee(e,r,a,i){if(r==null){if(i!=null){if(a!=null)throw Error(Yt(92));if(UP(i)){if(1<i.length)throw Error(Yt(93));i=i[0]}a=i}a==null&&(a=""),r=a}a=lc(r),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),MU(e)}function Tk(e,r){if(r){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=r;return}}e.textContent=r}var vwe=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 vJ(e,r,a){var i=r.indexOf("--")===0;a==null||typeof a==="boolean"||a===""?i?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="":i?e.setProperty(r,a):typeof a!=="number"||a===0||vwe.has(r)?r==="float"?e.cssFloat=a:e[r]=(""+a).trim():e[r]=a+"px"}function ree(e,r,a){if(r!=null&&typeof r!=="object")throw Error(Yt(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||r!=null&&r.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var s in r)i=r[s],r.hasOwnProperty(s)&&a[s]!==i&&vJ(e,s,i)}else for(var l in r)r.hasOwnProperty(l)&&vJ(e,l,r[l])}function uY(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ywe=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"]]),_we=/^[\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 d5(e){return _we.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function NZ(){}var yU=null;function dY(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mk=null,Sk=null;function yJ(e){var r=Uk(e);if(r&&(e=r.stateNode)){var a=e[Xs]||null;e:switch(e=r.stateNode,r.type){case"input":if(xU(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),r=a.name,a.type==="radio"&&r!=null){for(a=e;a.parentNode;)a=a.parentNode;a=a.querySelectorAll('input[name="'+dc(""+r)+'"][type="radio"]');for(r=0;r<a.length;r++){var i=a[r];if(i!==e&&i.form===e.form){var s=i[Xs]||null;if(!s)throw Error(Yt(90));xU(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(r=0;r<a.length;r++)i=a[r],i.form===e.form&&J$(i)}break e;case"textarea":eee(e,a.value,a.defaultValue);break e;case"select":r=a.value,r!=null&&zk(e,!!a.multiple,r,!1)}}}var D6=!1;function oee(e,r,a){if(D6)return e(r,a);D6=!0;try{var i=e(r);return i}finally{if(D6=!1,mk!==null||Sk!==null){if(m4(),mk&&(r=mk,e=Sk,Sk=mk=null,yJ(r),e))for(r=0;r<e.length;r++)yJ(e[r])}}}function s2(e,r){var a=e.stateNode;if(a===null)return null;var i=a[Xs]||null;if(i===null)return null;a=i[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error(Yt(231,r,typeof a));return a}var YZ=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_U=!1;if(YZ)try{cz={},Object.defineProperty(cz,"passive",{get:function(){_U=!0}}),window.addEventListener("test",cz,cz),window.removeEventListener("test",cz,cz)}catch(e){_U=!1}var cz,YM=null,ZY=null,Z5=null;function aee(){if(Z5)return Z5;var e,r=ZY,a=r.length,i,s="value"in YM?YM.value:YM.textContent,l=s.length;for(e=0;e<a&&r[e]===s[e];e++);var c=a-e;for(i=1;i<=c&&r[a-i]===s[l-i];i++);return Z5=s.slice(e,1<i?1-i:void 0)}function p5(e){var r=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&r===13&&(e=13)):e=r,e===10&&(e=13),32<=e||e===13?e:0}function r5(){return!0}function _J(){return!1}function Js(e){function r(a,i,s,l,c){this._reactName=a,this._targetInst=s,this.type=i,this.nativeEvent=l,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(l):l[d]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?r5:_J,this.isPropagationStopped=_J,this}return Zn(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!=="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=r5)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=r5)},persist:function(){},isPersistent:r5}),r}var Sz={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},a4=Js(Sz),S2=Zn({},Sz,{view:0,detail:0}),bwe=Js(S2),O6,N6,DP,n4=Zn({},S2,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pY,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){if("movementX"in e)return e.movementX;return e!==DP&&(DP&&e.type==="mousemove"?(O6=e.screenX-DP.screenX,N6=e.screenY-DP.screenY):N6=O6=0,DP=e),O6},movementY:function(e){return"movementY"in e?e.movementY:N6}}),bJ=Js(n4),wwe=Zn({},n4,{dataTransfer:0}),zwe=Js(wwe),Swe=Zn({},S2,{relatedTarget:0}),F6=Js(Swe),Lwe=Zn({},Sz,{animationName:0,elapsedTime:0,pseudoElement:0}),kwe=Js(Lwe),Cwe=Zn({},Sz,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Iwe=Js(Cwe),Rwe=Zn({},Sz,{data:0}),wJ=Js(Rwe),Pwe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Twe={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"},Awe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ewe(e){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(e):(e=Awe[e])?!!r[e]:!1}function pY(){return Ewe}var Dwe=Zn({},S2,{key:function(e){if(e.key){var r=Pwe[e.key]||e.key;if(r!=="Unidentified")return r}return e.type==="keypress"?(e=p5(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Twe[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pY,charCode:function(e){return e.type==="keypress"?p5(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?p5(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Owe=Js(Dwe),Nwe=Zn({},n4,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zJ=Js(Nwe),Fwe=Zn({},S2,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pY}),jwe=Js(Fwe),Bwe=Zn({},Sz,{propertyName:0,elapsedTime:0,pseudoElement:0}),Uwe=Js(Bwe),Ywe=Zn({},n4,{deltaX:function(e){return"deltaX"in e?e.deltaX:("wheelDeltaX"in e)?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:("wheelDeltaY"in e)?-e.wheelDeltaY:("wheelDelta"in e)?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),qwe=Js(Ywe),Hwe=Zn({},Sz,{newState:0,oldState:0}),Vwe=Js(Hwe),Wwe=[9,13,27,32],mY=YZ&&"CompositionEvent"in window,XP=null;YZ&&"documentMode"in document&&(XP=document.documentMode);var Gwe=YZ&&"TextEvent"in window&&!XP,nee=YZ&&(!mY||XP&&8<XP&&11>=XP),SJ=String.fromCharCode(32),LJ=!1;function iee(e,r){switch(e){case"keyup":return Wwe.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fee(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}var hk=!1;function Kwe(e,r){switch(e){case"compositionend":return fee(r);case"keypress":if(r.which!==32)return null;return LJ=!0,SJ;case"textInput":return e=r.data,e===SJ&&LJ?null:e;default:return null}}function Xwe(e,r){if(hk)return e==="compositionend"||!mY&&iee(e,r)?(e=aee(),Z5=ZY=YM=null,hk=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return nee&&r.locale!=="ko"?null:r.data;default:return null}}var Qwe={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 kJ(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r==="input"?!!Qwe[e.type]:r==="textarea"?!0:!1}function see(e,r,a,i){mk?Sk?Sk.push(i):Sk=[i]:mk=i,r=K5(r,"onChange"),0<r.length&&(a=new a4("onChange","change",null,a,i),e.push({event:a,listeners:r}))}var QP=null,l2=null;function Jwe(e){ere(e,0)}function i4(e){var r=YP(e);if(J$(r))return e}function CJ(e,r){if(e==="change")return r}var lee=!1;if(YZ){if(YZ){if(HP="oninput"in document,!HP)m5=document.createElement("div"),m5.setAttribute("oninput","return;"),HP=typeof m5.oninput==="function";qP=HP}else qP=!1;lee=qP&&(!document.documentMode||9<document.documentMode)}var qP,HP,m5;function IJ(){QP&&(QP.detachEvent("onpropertychange",cee),l2=QP=null)}function cee(e){if(e.propertyName==="value"&&i4(l2)){var r=[];see(r,l2,e,dY(e)),oee(Jwe,r)}}function $we(e,r,a){e==="focusin"?(IJ(),QP=r,l2=a,QP.attachEvent("onpropertychange",cee)):e==="focusout"&&IJ()}function e0e(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return i4(l2)}function t0e(e,r){if(e==="click")return i4(r)}function r0e(e,r){if(e==="input"||e==="change")return i4(r)}function o0e(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var Wl=typeof Object.is==="function"?Object.is:o0e;function c2(e,r){if(Wl(e,r))return!0;if(typeof e!=="object"||e===null||typeof r!=="object"||r===null)return!1;var a=Object.keys(e),i=Object.keys(r);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var s=a[i];if(!hU.call(r,s)||!Wl(e[s],r[s]))return!1}return!0}function RJ(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function PJ(e,r){var a=RJ(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=r&&i>=r)return{node:a,offset:r-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=RJ(a)}}function uee(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?uee(e,r.parentNode):("contains"in e)?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function dee(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var r=R5(e.document);r instanceof e.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href==="string"}catch(i){a=!1}if(a)e=r.contentWindow;else break;r=R5(e.document)}return r}function hY(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&(r==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||r==="textarea"||e.contentEditable==="true")}var a0e=YZ&&"documentMode"in document&&11>=document.documentMode,gk=null,bU=null,JP=null,wU=!1;function TJ(e,r,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;wU||gk==null||gk!==R5(i)||(i=gk,("selectionStart"in i)&&hY(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),JP&&c2(JP,i)||(JP=i,i=K5(bU,"onSelect"),0<i.length&&(r=new a4("onSelect","select",null,r,a),e.push({event:r,listeners:i}),r.target=gk)))}function fz(e,r){var a={};return a[e.toLowerCase()]=r.toLowerCase(),a["Webkit"+e]="webkit"+r,a["Moz"+e]="moz"+r,a}var Mk={animationend:fz("Animation","AnimationEnd"),animationiteration:fz("Animation","AnimationIteration"),animationstart:fz("Animation","AnimationStart"),transitionrun:fz("Transition","TransitionRun"),transitionstart:fz("Transition","TransitionStart"),transitioncancel:fz("Transition","TransitionCancel"),transitionend:fz("Transition","TransitionEnd")},j6={},Zee={};YZ&&(Zee=document.createElement("div").style,("AnimationEvent"in window)||(delete Mk.animationend.animation,delete Mk.animationiteration.animation,delete Mk.animationstart.animation),("TransitionEvent"in window)||delete Mk.transitionend.transition);function Lz(e){if(j6[e])return j6[e];if(!Mk[e])return e;var r=Mk[e],a;for(a in r)if(r.hasOwnProperty(a)&&a in Zee)return j6[e]=r[a];return e}var pee=Lz("animationend"),mee=Lz("animationiteration"),hee=Lz("animationstart"),n0e=Lz("transitionrun"),i0e=Lz("transitionstart"),f0e=Lz("transitioncancel"),gee=Lz("transitionend"),Mee=new Map,zU="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(" ");zU.push("scrollEnd");function cu(e,r){Mee.set(e,r),zz(r,[e])}var P5=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(r))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},sc=[],xk=0,gY=0;function f4(){for(var e=xk,r=gY=xk=0;r<e;){var a=sc[r];sc[r++]=null;var i=sc[r];sc[r++]=null;var s=sc[r];sc[r++]=null;var l=sc[r];if(sc[r++]=null,i!==null&&s!==null){var c=i.pending;c===null?s.next=s:(s.next=c.next,c.next=s),i.pending=s}l!==0&&xee(a,s,l)}}function s4(e,r,a,i){sc[xk++]=e,sc[xk++]=r,sc[xk++]=a,sc[xk++]=i,gY|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function MY(e,r,a,i){return s4(e,r,a,i),T5(e)}function kz(e,r){return s4(e,null,null,r),T5(e)}function xee(e,r,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var s=!1,l=e.return;l!==null;)l.childLanes|=a,i=l.alternate,i!==null&&(i.childLanes|=a),l.tag===22&&(e=l.stateNode,e===null||e._visibility&1||(s=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,s&&r!==null&&(s=31-Vl(a),e=l.hiddenUpdates,i=e[s],i===null?e[s]=[r]:i.push(r),r.lane=a|536870912),l):null}function T5(e){if(50<n2)throw n2=0,VU=null,Error(Yt(185));for(var r=e.return;r!==null;)e=r,r=e.return;return e.tag===3?e.stateNode:null}var vk={};function s0e(e,r,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ml(e,r,a,i){return new s0e(e,r,a,i)}function xY(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jZ(e,r){var a=e.alternate;return a===null?(a=ml(e.tag,r,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=r,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,r=e.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function vee(e,r){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=r,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,r=a.dependencies,e.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),e}function h5(e,r,a,i,s,l){var c=0;if(i=e,typeof e==="function")xY(e)&&(c=1);else if(typeof e==="string")c=pze(e,a,oZ.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case dU:return e=ml(31,a,r,s),e.elementType=dU,e.lanes=l,e;case dk:return pz(a.children,s,l,r);case N$:c=8,s|=24;break;case lU:return e=ml(12,a,r,s|2),e.elementType=lU,e.lanes=l,e;case cU:return e=ml(13,a,r,s),e.elementType=cU,e.lanes=l,e;case uU:return e=ml(19,a,r,s),e.elementType=uU,e.lanes=l,e;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case OZ:c=10;break e;case F$:c=9;break e;case iY:c=11;break e;case fY:c=14;break e;case DM:c=16,i=null;break e}c=29,a=Error(Yt(130,e===null?"null":typeof e,"")),i=null}return r=ml(c,a,r,s),r.elementType=e,r.type=i,r.lanes=l,r}function pz(e,r,a,i){return e=ml(7,e,i,r),e.lanes=a,e}function B6(e,r,a){return e=ml(6,e,null,r),e.lanes=a,e}function yee(e){var r=ml(18,null,null,0);return r.stateNode=e,r}function U6(e,r,a){return r=ml(4,e.children!==null?e.children:[],e.key,r),r.lanes=a,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}var AJ=new WeakMap;function pc(e,r){if(typeof e==="object"&&e!==null){var a=AJ.get(e);if(a!==void 0)return a;return r={value:e,source:r,stack:mJ(r)},AJ.set(e,r),r}return{value:e,source:r,stack:mJ(r)}}var yk=[],_k=0,A5=null,u2=0,cc=[],uc=0,e8=null,eZ=1,tZ="";function EZ(e,r){yk[_k++]=u2,yk[_k++]=A5,A5=e,u2=r}function _ee(e,r,a){cc[uc++]=eZ,cc[uc++]=tZ,cc[uc++]=e8,e8=e;var i=eZ;e=tZ;var s=32-Vl(i)-1;i&=~(1<<s),a+=1;var l=32-Vl(r)+s;if(30<l){var c=s-s%5;l=(i&(1<<c)-1).toString(32),i>>=c,s-=c,eZ=1<<32-Vl(r)+s|a<<s|i,tZ=l+e}else eZ=1<<l|a<<s|i,tZ=e}function vY(e){e.return!==null&&(EZ(e,1),_ee(e,1,0))}function yY(e){for(;e===A5;)A5=yk[--_k],yk[_k]=null,u2=yk[--_k],yk[_k]=null;for(;e===e8;)e8=cc[--uc],cc[uc]=null,tZ=cc[--uc],cc[uc]=null,eZ=cc[--uc],cc[uc]=null}function bee(e,r){cc[uc++]=eZ,cc[uc++]=tZ,cc[uc++]=e8,eZ=r.id,tZ=r.overflow,e8=e}var $i=null,dn=null,ko=!1,GM=null,mc=!1,SU=Error(Yt(519));function t8(e){var r=Error(Yt(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw d2(pc(r,e)),SU}function EJ(e){var{stateNode:r,type:a,memoizedProps:i}=e;switch(r[Qi]=e,r[Xs]=i,a){case"dialog":yo("cancel",r),yo("close",r);break;case"iframe":case"object":case"embed":yo("load",r);break;case"video":case"audio":for(a=0;a<h2.length;a++)yo(h2[a],r);break;case"source":yo("error",r);break;case"img":case"image":case"link":yo("error",r),yo("load",r);break;case"details":yo("toggle",r);break;case"input":yo("invalid",r),$$(r,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":yo("invalid",r);break;case"textarea":yo("invalid",r),tee(r,i.value,i.defaultValue,i.children)}a=i.children,typeof a!=="string"&&typeof a!=="number"&&typeof a!=="bigint"||r.textContent===""+a||i.suppressHydrationWarning===!0||ore(r.textContent,a)?(i.popover!=null&&(yo("beforetoggle",r),yo("toggle",r)),i.onScroll!=null&&yo("scroll",r),i.onScrollEnd!=null&&yo("scrollend",r),i.onClick!=null&&(r.onclick=NZ),r=!0):r=!1,r||t8(e,!0)}function DJ(e){for($i=e.return;$i;)switch($i.tag){case 5:case 31:case 13:mc=!1;return;case 27:case 3:mc=!0;return;default:$i=$i.return}}function fk(e){if(e!==$i)return!1;if(!ko)return DJ(e),ko=!0,!1;var r=e.tag,a;if(a=r!==3&&r!==27){if(a=r===5)a=e.type,a=!(a!=="form"&&a!=="button")||$U(e.type,e.memoizedProps);a=!a}if(a&&dn&&t8(e),DJ(e),r===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Yt(317));dn=_$(e)}else if(r===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Yt(317));dn=_$(e)}else r===27?(r=dn,n8(e.type)?(e=oY,oY=null,dn=e):dn=r):dn=$i?Mc(e.stateNode.nextSibling):null;return!0}function vz(){dn=$i=null,ko=!1}function Y6(){var e=GM;return e!==null&&(Ys===null?Ys=e:Ys.push.apply(Ys,e),GM=null),e}function d2(e){GM===null?GM=[e]:GM.push(e)}var LU=aZ(null),Cz=null,FZ=null;function NM(e,r,a){Ga(LU,r._currentValue),r._currentValue=a}function BZ(e){e._currentValue=LU.current,Oi(LU)}function kU(e,r,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&r)!==r?(e.childLanes|=r,i!==null&&(i.childLanes|=r)):i!==null&&(i.childLanes&r)!==r&&(i.childLanes|=r),e===a)break;e=e.return}}function CU(e,r,a,i){var s=e.child;s!==null&&(s.return=e);for(;s!==null;){var l=s.dependencies;if(l!==null){var c=s.child;l=l.firstContext;e:for(;l!==null;){var d=l;l=s;for(var h=0;h<r.length;h++)if(d.context===r[h]){l.lanes|=a,d=l.alternate,d!==null&&(d.lanes|=a),kU(l.return,a,e),i||(c=null);break e}l=d.next}}else if(s.tag===18){if(c=s.return,c===null)throw Error(Yt(341));c.lanes|=a,l=c.alternate,l!==null&&(l.lanes|=a),kU(c,a,e),c=null}else c=s.child;if(c!==null)c.return=s;else for(c=s;c!==null;){if(c===e){c=null;break}if(s=c.sibling,s!==null){s.return=c.return,c=s;break}c=c.return}s=c}}function Yk(e,r,a,i){e=null;for(var s=r,l=!1;s!==null;){if(!l){if((s.flags&524288)!==0)l=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var c=s.alternate;if(c===null)throw Error(Yt(387));if(c=c.memoizedProps,c!==null){var d=s.type;Wl(s.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(s===L5.current){if(c=s.alternate,c===null)throw Error(Yt(387));c.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(M2):e=[M2])}s=s.return}e!==null&&CU(r,e,a,i),r.flags|=262144}function E5(e){for(e=e.firstContext;e!==null;){if(!Wl(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function yz(e){Cz=e,FZ=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ff(e){return wee(Cz,e)}function o5(e,r){return Cz===null&&yz(e),wee(e,r)}function wee(e,r){var a=r._currentValue;if(r={context:r,memoizedValue:a,next:null},FZ===null){if(e===null)throw Error(Yt(308));FZ=r,e.dependencies={lanes:0,firstContext:r},e.flags|=524288}else FZ=FZ.next=r;return a}var l0e=typeof AbortController<"u"?AbortController:function(){var e=[],r=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){r.aborted=!0,e.forEach(function(a){return a()})}},c0e=Us,u0e=Bs,ci={$$typeof:OZ,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _Y(){return{controller:new l0e,data:new Map,refCount:0}}function L2(e){e.refCount--,e.refCount===0&&c0e(u0e,function(){e.controller.abort()})}var $P=null,IU=0,Ak=0,Lk=null;function d0e(e,r){if($P===null){var a=$P=[];IU=0,Ak=WY(),Lk={status:"pending",value:void 0,then:function(i){a.push(i)}}}return IU++,r.then(OJ,OJ),r}function OJ(){if(--IU===0&&$P!==null){Lk!==null&&(Lk.status="fulfilled");var e=$P;$P=null,Ak=0,Lk=null;for(var r=0;r<e.length;r++)(0,e[r])()}}function Z0e(e,r){var a=[],i={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){i.status="fulfilled",i.value=r;for(var s=0;s<a.length;s++)(0,a[s])(r)},function(s){i.status="rejected",i.reason=s;for(s=0;s<a.length;s++)(0,a[s])(void 0)}),i}var NJ=qr.S;qr.S=function(e,r){Ete=ql(),typeof r==="object"&&r!==null&&typeof r.then==="function"&&d0e(e,r),NJ!==null&&NJ(e,r)};var mz=aZ(null);function bY(){var e=mz.current;return e!==null?e:Ea.pooledCache}function g5(e,r){r===null?Ga(mz,mz.current):Ga(mz,r.pool)}function zee(){var e=bY();return e===null?null:{parent:ci._currentValue,pool:e}}var qk=Error(Yt(460)),wY=Error(Yt(474)),l4=Error(Yt(542)),D5={then:function(){}};function FJ(e){return e=e.status,e==="fulfilled"||e==="rejected"}function See(e,r,a){switch(a=e[a],a===void 0?e.push(r):a!==r&&(r.then(NZ,NZ),r=a),r.status){case"fulfilled":return r.value;case"rejected":throw e=r.reason,BJ(e),e;default:if(typeof r.status==="string")r.then(NZ,NZ);else{if(e=Ea,e!==null&&100<e.shellSuspendCounter)throw Error(Yt(482));e=r,e.status="pending",e.then(function(i){if(r.status==="pending"){var s=r;s.status="fulfilled",s.value=i}},function(i){if(r.status==="pending"){var s=r;s.status="rejected",s.reason=i}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw e=r.reason,BJ(e),e}throw hz=r,qk}}function uz(e){try{var r=e._init;return r(e._payload)}catch(a){if(a!==null&&typeof a==="object"&&typeof a.then==="function")throw hz=a,qk;throw a}}var hz=null;function jJ(){if(hz===null)throw Error(Yt(459));var e=hz;return hz=null,e}function BJ(e){if(e===qk||e===l4)throw Error(Yt(483))}var kk=null,Z2=0;function a5(e){var r=Z2;return Z2+=1,kk===null&&(kk=[]),See(kk,e,r)}function OP(e,r){r=r.props.ref,e.ref=r!==void 0?r:null}function n5(e,r){if(r.$$typeof===$be)throw Error(Yt(525));throw e=Object.prototype.toString.call(r),Error(Yt(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}function Lee(e){function r(N,j){if(e){var G=N.deletions;G===null?(N.deletions=[j],N.flags|=16):G.push(j)}}function a(N,j){if(!e)return null;for(;j!==null;)r(N,j),j=j.sibling;return null}function i(N){for(var j=new Map;N!==null;)N.key!==null?j.set(N.key,N):j.set(N.index,N),N=N.sibling;return j}function s(N,j){return N=jZ(N,j),N.index=0,N.sibling=null,N}function l(N,j,G){if(N.index=G,!e)return N.flags|=1048576,j;if(G=N.alternate,G!==null)return G=G.index,G<j?(N.flags|=67108866,j):G;return N.flags|=67108866,j}function c(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function d(N,j,G,X){if(j===null||j.tag!==6)return j=B6(G,N.mode,X),j.return=N,j;return j=s(j,G),j.return=N,j}function h(N,j,G,X){var J=G.type;if(J===dk)return x(N,j,G.props.children,X,G.key);if(j!==null&&(j.elementType===J||typeof J==="object"&&J!==null&&J.$$typeof===DM&&uz(J)===j.type))return j=s(j,G.props),OP(j,G),j.return=N,j;return j=h5(G.type,G.key,G.props,null,N.mode,X),OP(j,G),j.return=N,j}function g(N,j,G,X){if(j===null||j.tag!==4||j.stateNode.containerInfo!==G.containerInfo||j.stateNode.implementation!==G.implementation)return j=U6(G,N.mode,X),j.return=N,j;return j=s(j,G.children||[]),j.return=N,j}function x(N,j,G,X,J){if(j===null||j.tag!==7)return j=pz(G,N.mode,X,J),j.return=N,j;return j=s(j,G),j.return=N,j}function v(N,j,G){if(typeof j==="string"&&j!==""||typeof j==="number"||typeof j==="bigint")return j=B6(""+j,N.mode,G),j.return=N,j;if(typeof j==="object"&&j!==null){switch(j.$$typeof){case QN:return G=h5(j.type,j.key,j.props,null,N.mode,G),OP(G,j),G.return=N,G;case BP:return j=U6(j,N.mode,G),j.return=N,j;case DM:return j=uz(j),v(N,j,G)}if(UP(j)||EP(j))return j=pz(j,N.mode,G,null),j.return=N,j;if(typeof j.then==="function")return v(N,a5(j),G);if(j.$$typeof===OZ)return v(N,o5(N,j),G);n5(N,j)}return null}function b(N,j,G,X){var J=j!==null?j.key:null;if(typeof G==="string"&&G!==""||typeof G==="number"||typeof G==="bigint")return J!==null?null:d(N,j,""+G,X);if(typeof G==="object"&&G!==null){switch(G.$$typeof){case QN:return G.key===J?h(N,j,G,X):null;case BP:return G.key===J?g(N,j,G,X):null;case DM:return G=uz(G),b(N,j,G,X)}if(UP(G)||EP(G))return J!==null?null:x(N,j,G,X,null);if(typeof G.then==="function")return b(N,j,a5(G),X);if(G.$$typeof===OZ)return b(N,j,o5(N,G),X);n5(N,G)}return null}function y(N,j,G,X,J){if(typeof X==="string"&&X!==""||typeof X==="number"||typeof X==="bigint")return N=N.get(G)||null,d(j,N,""+X,J);if(typeof X==="object"&&X!==null){switch(X.$$typeof){case QN:return N=N.get(X.key===null?G:X.key)||null,h(j,N,X,J);case BP:return N=N.get(X.key===null?G:X.key)||null,g(j,N,X,J);case DM:return X=uz(X),y(N,j,G,X,J)}if(UP(X)||EP(X))return N=N.get(G)||null,x(j,N,X,J,null);if(typeof X.then==="function")return y(N,j,G,a5(X),J);if(X.$$typeof===OZ)return y(N,j,G,o5(j,X),J);n5(j,X)}return null}function k(N,j,G,X){for(var J=null,ee=null,re=j,oe=j=0,fe=null;re!==null&&oe<G.length;oe++){re.index>oe?(fe=re,re=null):fe=re.sibling;var be=b(N,re,G[oe],X);if(be===null){re===null&&(re=fe);break}e&&re&&be.alternate===null&&r(N,re),j=l(be,j,oe),ee===null?J=be:ee.sibling=be,ee=be,re=fe}if(oe===G.length)return a(N,re),ko&&EZ(N,oe),J;if(re===null){for(;oe<G.length;oe++)re=v(N,G[oe],X),re!==null&&(j=l(re,j,oe),ee===null?J=re:ee.sibling=re,ee=re);return ko&&EZ(N,oe),J}for(re=i(re);oe<G.length;oe++)fe=y(re,N,oe,G[oe],X),fe!==null&&(e&&fe.alternate!==null&&re.delete(fe.key===null?oe:fe.key),j=l(fe,j,oe),ee===null?J=fe:ee.sibling=fe,ee=fe);return e&&re.forEach(function(We){return r(N,We)}),ko&&EZ(N,oe),J}function T(N,j,G,X){if(G==null)throw Error(Yt(151));for(var J=null,ee=null,re=j,oe=j=0,fe=null,be=G.next();re!==null&&!be.done;oe++,be=G.next()){re.index>oe?(fe=re,re=null):fe=re.sibling;var We=b(N,re,be.value,X);if(We===null){re===null&&(re=fe);break}e&&re&&We.alternate===null&&r(N,re),j=l(We,j,oe),ee===null?J=We:ee.sibling=We,ee=We,re=fe}if(be.done)return a(N,re),ko&&EZ(N,oe),J;if(re===null){for(;!be.done;oe++,be=G.next())be=v(N,be.value,X),be!==null&&(j=l(be,j,oe),ee===null?J=be:ee.sibling=be,ee=be);return ko&&EZ(N,oe),J}for(re=i(re);!be.done;oe++,be=G.next())be=y(re,N,oe,be.value,X),be!==null&&(e&&be.alternate!==null&&re.delete(be.key===null?oe:be.key),j=l(be,j,oe),ee===null?J=be:ee.sibling=be,ee=be);return e&&re.forEach(function(Ye){return r(N,Ye)}),ko&&EZ(N,oe),J}function U(N,j,G,X){if(typeof G==="object"&&G!==null&&G.type===dk&&G.key===null&&(G=G.props.children),typeof G==="object"&&G!==null){switch(G.$$typeof){case QN:e:{for(var J=G.key;j!==null;){if(j.key===J){if(J=G.type,J===dk){if(j.tag===7){a(N,j.sibling),X=s(j,G.props.children),X.return=N,N=X;break e}}else if(j.elementType===J||typeof J==="object"&&J!==null&&J.$$typeof===DM&&uz(J)===j.type){a(N,j.sibling),X=s(j,G.props),OP(X,G),X.return=N,N=X;break e}a(N,j);break}else r(N,j);j=j.sibling}G.type===dk?(X=pz(G.props.children,N.mode,X,G.key),X.return=N,N=X):(X=h5(G.type,G.key,G.props,null,N.mode,X),OP(X,G),X.return=N,N=X)}return c(N);case BP:e:{for(J=G.key;j!==null;){if(j.key===J)if(j.tag===4&&j.stateNode.containerInfo===G.containerInfo&&j.stateNode.implementation===G.implementation){a(N,j.sibling),X=s(j,G.children||[]),X.return=N,N=X;break e}else{a(N,j);break}else r(N,j);j=j.sibling}X=U6(G,N.mode,X),X.return=N,N=X}return c(N);case DM:return G=uz(G),U(N,j,G,X)}if(UP(G))return k(N,j,G,X);if(EP(G)){if(J=EP(G),typeof J!=="function")throw Error(Yt(150));return G=J.call(G),T(N,j,G,X)}if(typeof G.then==="function")return U(N,j,a5(G),X);if(G.$$typeof===OZ)return U(N,j,o5(N,G),X);n5(N,G)}return typeof G==="string"&&G!==""||typeof G==="number"||typeof G==="bigint"?(G=""+G,j!==null&&j.tag===6?(a(N,j.sibling),X=s(j,G),X.return=N,N=X):(a(N,j),X=B6(G,N.mode,X),X.return=N,N=X),c(N)):a(N,j)}return function(N,j,G,X){try{Z2=0;var J=U(N,j,G,X);return kk=null,J}catch(re){if(re===qk||re===l4)throw re;var ee=ml(29,re,null,N.mode);return ee.lanes=X,ee.return=N,ee}finally{}}}var _z=Lee(!0),kee=Lee(!1),OM=!1;function zY(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function RU(e,r){e=e.updateQueue,r.updateQueue===e&&(r.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function gz(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Mz(e,r,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(jo&2)!==0){var s=i.pending;return s===null?r.next=r:(r.next=s.next,s.next=r),i.pending=r,r=T5(e),xee(e,null,a),r}return s4(e,i,r,a),T5(e)}function zA(e,r,a){if(r=r.updateQueue,r!==null&&(r=r.shared,(a&4194048)!==0)){var i=r.lanes;i&=e.pendingLanes,a|=i,r.lanes=a,H$(e,a)}}function q6(e,r){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var s=null,l=null;if(a=a.firstBaseUpdate,a!==null){do{var c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};l===null?s=l=c:l=l.next=c,a=a.next}while(a!==null);l===null?s=l=r:l=l.next=r}else s=l=r;a={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:l,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=r:e.next=r,a.lastBaseUpdate=r}var PU=!1;function jA(){if(PU){var e=Lk;if(e!==null)throw e}}function e2(e,r,a,i){PU=!1;var s=e.updateQueue;OM=!1;var{firstBaseUpdate:l,lastBaseUpdate:c}=s,d=s.shared.pending;if(d!==null){s.shared.pending=null;var h=d,g=h.next;h.next=null,c===null?l=g:c.next=g,c=h;var x=e.alternate;x!==null&&(x=x.updateQueue,d=x.lastBaseUpdate,d!==c&&(d===null?x.firstBaseUpdate=g:d.next=g,x.lastBaseUpdate=h))}if(l!==null){var v=s.baseState;c=0,x=g=h=null,d=l;do{var b=d.lane&-536870913,y=b!==d.lane;if(y?(zo&b)===b:(i&b)===b){b!==0&&b===Ak&&(PU=!0),x!==null&&(x=x.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var k=e,T=d;b=r;var U=a;switch(T.tag){case 1:if(k=T.payload,typeof k==="function"){v=k.call(U,v,b);break e}v=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=T.payload,b=typeof k==="function"?k.call(U,v,b):k,b===null||b===void 0)break e;v=Zn({},v,b);break e;case 2:OM=!0}}b=d.callback,b!==null&&(e.flags|=64,y&&(e.flags|=8192),y=s.callbacks,y===null?s.callbacks=[b]:y.push(b))}else y={lane:b,tag:d.tag,payload:d.payload,callback:d.callback,next:null},x===null?(g=x=y,h=v):x=x.next=y,c|=b;if(d=d.next,d===null)if(d=s.shared.pending,d===null)break;else y=d,d=y.next,y.next=null,s.lastBaseUpdate=y,s.shared.pending=null}while(1);x===null&&(h=v),s.baseState=h,s.firstBaseUpdate=g,s.lastBaseUpdate=x,l===null&&(s.shared.lanes=0),o8|=c,e.lanes=c,e.memoizedState=v}}function Cee(e,r){if(typeof e!=="function")throw Error(Yt(191,e));e.call(r)}function Iee(e,r){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Cee(a[e],r)}var Ek=aZ(null),O5=aZ(0);function UJ(e,r){e=WZ,Ga(O5,e),Ga(Ek,r),WZ=e|r.baseLanes}function TU(){Ga(O5,WZ),Ga(Ek,Ek.current)}function SY(){WZ=O5.current,Oi(Ek),Oi(O5)}var Gl=aZ(null),hc=null;function FM(e){var r=e.alternate;Ga(Kn,Kn.current&1),Ga(Gl,e),hc===null&&(r===null||Ek.current!==null?hc=e:r.memoizedState!==null&&(hc=e))}function AU(e){Ga(Kn,Kn.current),Ga(Gl,e),hc===null&&(hc=e)}function Ree(e){e.tag===22?(Ga(Kn,Kn.current),Ga(Gl,e),hc===null&&(hc=e)):jM(e)}function jM(){Ga(Kn,Kn.current),Ga(Gl,Gl.current)}function pl(e){Oi(Gl),hc===e&&(hc=null),Oi(Kn)}var Kn=aZ(0);function N5(e){for(var r=e;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||tY(a)||rY(a)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var qZ=0,co=null,_a=null,si=null,F5=!1,Ck=!1,bz=!1,j5=0,p2=0,Ik=null,p0e=0;function Pn(){throw Error(Yt(321))}function LY(e,r){if(r===null)return!1;for(var a=0;a<r.length&&a<e.length;a++)if(!Wl(e[a],r[a]))return!1;return!0}function kY(e,r,a,i,s,l){return qZ=l,co=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,qr.H=e===null||e.memoizedState===null?ste:FY,bz=!1,l=a(i,s),bz=!1,Ck&&(l=Tee(r,a,i,s)),Pee(e),l}function Pee(e){qr.H=m2;var r=_a!==null&&_a.next!==null;if(qZ=0,si=_a=co=null,F5=!1,p2=0,Ik=null,r)throw Error(Yt(300));e===null||ui||(e=e.dependencies,e!==null&&E5(e)&&(ui=!0))}function Tee(e,r,a,i){co=e;var s=0;do{if(Ck&&(Ik=null),p2=0,Ck=!1,25<=s)throw Error(Yt(301));if(s+=1,si=_a=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}qr.H=lte,l=r(a,i)}while(Ck);return l}function m0e(){var e=qr.H,r=e.useState()[0];return r=typeof r.then==="function"?k2(r):r,e=e.useState()[0],(_a!==null?_a.memoizedState:null)!==e&&(co.flags|=1024),r}function CY(){var e=j5!==0;return j5=0,e}function IY(e,r,a){r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~a}function RY(e){if(F5){for(e=e.memoizedState;e!==null;){var r=e.queue;r!==null&&(r.pending=null),e=e.next}F5=!1}qZ=0,si=_a=co=null,Ck=!1,p2=j5=0,Ik=null}function fs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return si===null?co.memoizedState=si=e:si=si.next=e,si}function Qn(){if(_a===null){var e=co.alternate;e=e!==null?e.memoizedState:null}else e=_a.next;var r=si===null?co.memoizedState:si.next;if(r!==null)si=r,_a=e;else{if(e===null){if(co.alternate===null)throw Error(Yt(467));throw Error(Yt(310))}_a=e,e={memoizedState:_a.memoizedState,baseState:_a.baseState,baseQueue:_a.baseQueue,queue:_a.queue,next:null},si===null?co.memoizedState=si=e:si=si.next=e}return si}function c4(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function k2(e){var r=p2;return p2+=1,Ik===null&&(Ik=[]),e=See(Ik,e,r),r=co,(si===null?r.memoizedState:si.next)===null&&(r=r.alternate,qr.H=r===null||r.memoizedState===null?ste:FY),e}function u4(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return k2(e);if(e.$$typeof===OZ)return ff(e)}throw Error(Yt(438,String(e)))}function PY(e){var r=null,a=co.updateQueue;if(a!==null&&(r=a.memoCache),r==null){var i=co.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(r={data:i.data.map(function(s){return s.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),a===null&&(a=c4(),co.updateQueue=a),a.memoCache=r,a=r.data[r.index],a===void 0)for(a=r.data[r.index]=Array(e),i=0;i<e;i++)a[i]=ewe;return r.index++,a}function HZ(e,r){return typeof r==="function"?r(e):r}function M5(e){var r=Qn();return TY(r,_a,e)}function TY(e,r,a){var i=e.queue;if(i===null)throw Error(Yt(311));i.lastRenderedReducer=a;var s=e.baseQueue,l=i.pending;if(l!==null){if(s!==null){var c=s.next;s.next=l.next,l.next=c}r.baseQueue=s=l,i.pending=null}if(l=e.baseState,s===null)e.memoizedState=l;else{r=s.next;var d=c=null,h=null,g=r,x=!1;do{var v=g.lane&-536870913;if(v!==g.lane?(zo&v)===v:(qZ&v)===v){var b=g.revertLane;if(b===0)h!==null&&(h=h.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),v===Ak&&(x=!0);else if((qZ&b)===b){g=g.next,b===Ak&&(x=!0);continue}else v={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},h===null?(d=h=v,c=l):h=h.next=v,co.lanes|=b,o8|=b;v=g.action,bz&&a(l,v),l=g.hasEagerState?g.eagerState:a(l,v)}else b={lane:v,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},h===null?(d=h=b,c=l):h=h.next=b,co.lanes|=v,o8|=v;g=g.next}while(g!==null&&g!==r);if(h===null?c=l:h.next=d,!Wl(l,e.memoizedState)&&(ui=!0,x&&(a=Lk,a!==null)))throw a;e.memoizedState=l,e.baseState=c,e.baseQueue=h,i.lastRenderedState=l}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function H6(e){var r=Qn(),a=r.queue;if(a===null)throw Error(Yt(311));a.lastRenderedReducer=e;var{dispatch:i,pending:s}=a,l=r.memoizedState;if(s!==null){a.pending=null;var c=s=s.next;do l=e(l,c.action),c=c.next;while(c!==s);Wl(l,r.memoizedState)||(ui=!0),r.memoizedState=l,r.baseQueue===null&&(r.baseState=l),a.lastRenderedState=l}return[l,i]}function Aee(e,r,a){var i=co,s=Qn(),l=ko;if(l){if(a===void 0)throw Error(Yt(407));a=a()}else a=r();var c=!Wl((_a||s).memoizedState,a);if(c&&(s.memoizedState=a,ui=!0),s=s.queue,AY(Oee.bind(null,i,s,e),[e]),s.getSnapshot!==r||c||si!==null&&si.memoizedState.tag&1){if(i.flags|=2048,Dk(9,{destroy:void 0},Dee.bind(null,i,s,a,r),null),Ea===null)throw Error(Yt(349));l||(qZ&127)!==0||Eee(i,r,a)}return a}function Eee(e,r,a){e.flags|=16384,e={getSnapshot:r,value:a},r=co.updateQueue,r===null?(r=c4(),co.updateQueue=r,r.stores=[e]):(a=r.stores,a===null?r.stores=[e]:a.push(e))}function Dee(e,r,a,i){r.value=a,r.getSnapshot=i,Nee(r)&&Fee(e)}function Oee(e,r,a){return a(function(){Nee(r)&&Fee(e)})}function Nee(e){var r=e.getSnapshot;e=e.value;try{var a=r();return!Wl(e,a)}catch(i){return!0}}function Fee(e){var r=kz(e,2);r!==null&&Ws(r,e,2)}function EU(e){var r=fs();if(typeof e==="function"){var a=e;if(e=a(),bz){UM(!0);try{a()}finally{UM(!1)}}}return r.memoizedState=r.baseState=e,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:HZ,lastRenderedState:e},r}function jee(e,r,a,i){return e.baseState=a,TY(e,_a,typeof i==="function"?i:HZ)}function h0e(e,r,a,i,s){if(Z4(e))throw Error(Yt(485));if(e=r.action,e!==null){var l={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){l.listeners.push(c)}};qr.T!==null?a(!0):l.isTransition=!1,i(l),a=r.pending,a===null?(l.next=r.pending=l,Bee(r,l)):(l.next=a.next,r.pending=a.next=l)}}function Bee(e,r){var{action:a,payload:i}=r,s=e.state;if(r.isTransition){var l=qr.T,c={};qr.T=c;try{var d=a(s,i),h=qr.S;h!==null&&h(c,d),YJ(e,r,d)}catch(g){DU(e,r,g)}finally{l!==null&&c.types!==null&&(l.types=c.types),qr.T=l}}else try{l=a(s,i),YJ(e,r,l)}catch(g){DU(e,r,g)}}function YJ(e,r,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?a.then(function(i){qJ(e,r,i)},function(i){return DU(e,r,i)}):qJ(e,r,a)}function qJ(e,r,a){r.status="fulfilled",r.value=a,Uee(r),e.state=a,r=e.pending,r!==null&&(a=r.next,a===r?e.pending=null:(a=a.next,r.next=a,Bee(e,a)))}function DU(e,r,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do r.status="rejected",r.reason=a,Uee(r),r=r.next;while(r!==i)}e.action=null}function Uee(e){e=e.listeners;for(var r=0;r<e.length;r++)(0,e[r])()}function Yee(e,r){return r}function HJ(e,r){if(ko){var a=Ea.formState;if(a!==null){e:{var i=co;if(ko){if(dn){t:{var s=dn;for(var l=mc;s.nodeType!==8;){if(!l){s=null;break t}if(s=Mc(s.nextSibling),s===null){s=null;break t}}l=s.data,s=l==="F!"||l==="F"?s:null}if(s){dn=Mc(s.nextSibling),i=s.data==="F!";break e}}t8(i)}i=!1}i&&(r=a[0])}}return a=fs(),a.memoizedState=a.baseState=r,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yee,lastRenderedState:r},a.queue=i,a=nte.bind(null,co,i),i.dispatch=a,i=EU(!1),l=NY.bind(null,co,!1,i.queue),i=fs(),s={state:r,dispatch:null,action:e,pending:null},i.queue=s,a=h0e.bind(null,co,s,l,a),s.dispatch=a,i.memoizedState=e,[r,a,!1]}function VJ(e){var r=Qn();return qee(r,_a,e)}function qee(e,r,a){if(r=TY(e,r,Yee)[0],e=M5(HZ)[0],typeof r==="object"&&r!==null&&typeof r.then==="function")try{var i=k2(r)}catch(c){if(c===qk)throw l4;throw c}else i=r;r=Qn();var s=r.queue,l=s.dispatch;return a!==r.memoizedState&&(co.flags|=2048,Dk(9,{destroy:void 0},g0e.bind(null,s,a),null)),[i,l,e]}function g0e(e,r){e.action=r}function WJ(e){var r=Qn(),a=_a;if(a!==null)return qee(r,a,e);Qn(),r=r.memoizedState,a=Qn();var i=a.queue.dispatch;return a.memoizedState=e,[r,i,!1]}function Dk(e,r,a,i){return e={tag:e,create:a,deps:i,inst:r,next:null},r=co.updateQueue,r===null&&(r=c4(),co.updateQueue=r),a=r.lastEffect,a===null?r.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,r.lastEffect=e),e}function Hee(){return Qn().memoizedState}function x5(e,r,a,i){var s=fs();co.flags|=e,s.memoizedState=Dk(1|r,{destroy:void 0},a,i===void 0?null:i)}function d4(e,r,a,i){var s=Qn();i=i===void 0?null:i;var l=s.memoizedState.inst;_a!==null&&i!==null&&LY(i,_a.memoizedState.deps)?s.memoizedState=Dk(r,l,a,i):(co.flags|=e,s.memoizedState=Dk(1|r,l,a,i))}function GJ(e,r){x5(8390656,8,e,r)}function AY(e,r){d4(2048,8,e,r)}function M0e(e){co.flags|=4;var r=co.updateQueue;if(r===null)r=c4(),co.updateQueue=r,r.events=[e];else{var a=r.events;a===null?r.events=[e]:a.push(e)}}function Vee(e){var r=Qn().memoizedState;return M0e({ref:r,nextImpl:e}),function(){if((jo&2)!==0)throw Error(Yt(440));return r.impl.apply(void 0,arguments)}}function Wee(e,r){return d4(4,2,e,r)}function Gee(e,r){return d4(4,4,e,r)}function Kee(e,r){if(typeof r==="function"){e=e();var a=r(e);return function(){typeof a==="function"?a():r(null)}}if(r!==null&&r!==void 0)return e=e(),r.current=e,function(){r.current=null}}function Xee(e,r,a){a=a!==null&&a!==void 0?a.concat([e]):null,d4(4,4,Kee.bind(null,r,e),a)}function EY(){}function Qee(e,r){var a=Qn();r=r===void 0?null:r;var i=a.memoizedState;if(r!==null&&LY(r,i[1]))return i[0];return a.memoizedState=[e,r],e}function Jee(e,r){var a=Qn();r=r===void 0?null:r;var i=a.memoizedState;if(r!==null&&LY(r,i[1]))return i[0];if(i=e(),bz){UM(!0);try{e()}finally{UM(!1)}}return a.memoizedState=[i,r],i}function DY(e,r,a){if(a===void 0||(qZ&1073741824)!==0&&(zo&261930)===0)return e.memoizedState=r;return e.memoizedState=a,e=Ote(),co.lanes|=e,o8|=e,a}function $ee(e,r,a,i){if(Wl(a,r))return a;if(Ek.current!==null)return e=DY(e,a,i),Wl(e,r)||(ui=!0),e;if((qZ&42)===0||(qZ&1073741824)!==0&&(zo&261930)===0)return ui=!0,e.memoizedState=a;return e=Ote(),co.lanes|=e,o8|=e,r}function ete(e,r,a,i,s){var l=Uo.p;Uo.p=l!==0&&8>l?l:8;var c=qr.T,d={};qr.T=d,NY(e,!1,r,a);try{var h=s(),g=qr.S;if(g!==null&&g(d,h),h!==null&&typeof h==="object"&&typeof h.then==="function"){var x=Z0e(h,i);t2(e,r,x,gc(e))}else t2(e,r,i,gc(e))}catch(v){t2(e,r,{then:function(){},status:"rejected",reason:v},gc())}finally{Uo.p=l,c!==null&&d.types!==null&&(c.types=d.types),qr.T=c}}function x0e(){}function OU(e,r,a,i){if(e.tag!==5)throw Error(Yt(476));var s=tte(e).queue;ete(e,s,r,Zz,a===null?x0e:function(){return rte(e),a(i)})}function tte(e){var r=e.memoizedState;if(r!==null)return r;r={memoizedState:Zz,baseState:Zz,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:HZ,lastRenderedState:Zz},next:null};var a={};return r.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:HZ,lastRenderedState:a},next:null},e.memoizedState=r,e=e.alternate,e!==null&&(e.memoizedState=r),r}function rte(e){var r=tte(e);r.next===null&&(r=e.alternate.memoizedState),t2(e,r.next.queue,{},gc())}function OY(){return ff(M2)}function ote(){return Qn().memoizedState}function ate(){return Qn().memoizedState}function v0e(e){for(var r=e.return;r!==null;){switch(r.tag){case 24:case 3:var a=gc();e=gz(a);var i=Mz(r,e,a);i!==null&&(Ws(i,r,a),zA(i,r,a)),r={cache:_Y()},e.payload=r;return}r=r.return}}function y0e(e,r,a){var i=gc();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Z4(e)?ite(r,a):(a=MY(e,r,a,i),a!==null&&(Ws(a,e,i),fte(a,r,i)))}function nte(e,r,a){var i=gc();t2(e,r,a,i)}function t2(e,r,a,i){var s={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Z4(e))ite(r,s);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=r.lastRenderedReducer,l!==null))try{var c=r.lastRenderedState,d=l(c,a);if(s.hasEagerState=!0,s.eagerState=d,Wl(d,c))return s4(e,r,s,0),Ea===null&&f4(),!1}catch(h){}finally{}if(a=MY(e,r,s,i),a!==null)return Ws(a,e,i),fte(a,r,i),!0}return!1}function NY(e,r,a,i){if(i={lane:2,revertLane:WY(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Z4(e)){if(r)throw Error(Yt(479))}else r=MY(e,a,i,2),r!==null&&Ws(r,e,2)}function Z4(e){var r=e.alternate;return e===co||r!==null&&r===co}function ite(e,r){Ck=F5=!0;var a=e.pending;a===null?r.next=r:(r.next=a.next,a.next=r),e.pending=r}function fte(e,r,a){if((a&4194048)!==0){var i=r.lanes;i&=e.pendingLanes,a|=i,r.lanes=a,H$(e,a)}}var m2={readContext:ff,use:u4,useCallback:Pn,useContext:Pn,useEffect:Pn,useImperativeHandle:Pn,useLayoutEffect:Pn,useInsertionEffect:Pn,useMemo:Pn,useReducer:Pn,useRef:Pn,useState:Pn,useDebugValue:Pn,useDeferredValue:Pn,useTransition:Pn,useSyncExternalStore:Pn,useId:Pn,useHostTransitionStatus:Pn,useFormState:Pn,useActionState:Pn,useOptimistic:Pn,useMemoCache:Pn,useCacheRefresh:Pn};m2.useEffectEvent=Pn;var ste={readContext:ff,use:u4,useCallback:function(e,r){return fs().memoizedState=[e,r===void 0?null:r],e},useContext:ff,useEffect:GJ,useImperativeHandle:function(e,r,a){a=a!==null&&a!==void 0?a.concat([e]):null,x5(4194308,4,Kee.bind(null,r,e),a)},useLayoutEffect:function(e,r){return x5(4194308,4,e,r)},useInsertionEffect:function(e,r){x5(4,2,e,r)},useMemo:function(e,r){var a=fs();r=r===void 0?null:r;var i=e();if(bz){UM(!0);try{e()}finally{UM(!1)}}return a.memoizedState=[i,r],i},useReducer:function(e,r,a){var i=fs();if(a!==void 0){var s=a(r);if(bz){UM(!0);try{a(r)}finally{UM(!1)}}}else s=r;return i.memoizedState=i.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},i.queue=e,e=e.dispatch=y0e.bind(null,co,e),[i.memoizedState,e]},useRef:function(e){var r=fs();return e={current:e},r.memoizedState=e},useState:function(e){e=EU(e);var r=e.queue,a=nte.bind(null,co,r);return r.dispatch=a,[e.memoizedState,a]},useDebugValue:EY,useDeferredValue:function(e,r){var a=fs();return DY(a,e,r)},useTransition:function(){var e=EU(!1);return e=ete.bind(null,co,e.queue,!0,!1),fs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,r,a){var i=co,s=fs();if(ko){if(a===void 0)throw Error(Yt(407));a=a()}else{if(a=r(),Ea===null)throw Error(Yt(349));(zo&127)!==0||Eee(i,r,a)}s.memoizedState=a;var l={value:a,getSnapshot:r};return s.queue=l,GJ(Oee.bind(null,i,l,e),[e]),i.flags|=2048,Dk(9,{destroy:void 0},Dee.bind(null,i,l,a,r),null),a},useId:function(){var e=fs(),r=Ea.identifierPrefix;if(ko){var a=tZ,i=eZ;a=(i&~(1<<32-Vl(i)-1)).toString(32)+a,r="_"+r+"R_"+a,a=j5++,0<a&&(r+="H"+a.toString(32)),r+="_"}else a=p0e++,r="_"+r+"r_"+a.toString(32)+"_";return e.memoizedState=r},useHostTransitionStatus:OY,useFormState:HJ,useActionState:HJ,useOptimistic:function(e){var r=fs();r.memoizedState=r.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=a,r=NY.bind(null,co,!0,a),a.dispatch=r,[e,r]},useMemoCache:PY,useCacheRefresh:function(){return fs().memoizedState=v0e.bind(null,co)},useEffectEvent:function(e){var r=fs(),a={impl:e};return r.memoizedState=a,function(){if((jo&2)!==0)throw Error(Yt(440));return a.impl.apply(void 0,arguments)}}},FY={readContext:ff,use:u4,useCallback:Qee,useContext:ff,useEffect:AY,useImperativeHandle:Xee,useInsertionEffect:Wee,useLayoutEffect:Gee,useMemo:Jee,useReducer:M5,useRef:Hee,useState:function(){return M5(HZ)},useDebugValue:EY,useDeferredValue:function(e,r){var a=Qn();return $ee(a,_a.memoizedState,e,r)},useTransition:function(){var e=M5(HZ)[0],r=Qn().memoizedState;return[typeof e==="boolean"?e:k2(e),r]},useSyncExternalStore:Aee,useId:ote,useHostTransitionStatus:OY,useFormState:VJ,useActionState:VJ,useOptimistic:function(e,r){var a=Qn();return jee(a,_a,e,r)},useMemoCache:PY,useCacheRefresh:ate};FY.useEffectEvent=Vee;var lte={readContext:ff,use:u4,useCallback:Qee,useContext:ff,useEffect:AY,useImperativeHandle:Xee,useInsertionEffect:Wee,useLayoutEffect:Gee,useMemo:Jee,useReducer:H6,useRef:Hee,useState:function(){return H6(HZ)},useDebugValue:EY,useDeferredValue:function(e,r){var a=Qn();return _a===null?DY(a,e,r):$ee(a,_a.memoizedState,e,r)},useTransition:function(){var e=H6(HZ)[0],r=Qn().memoizedState;return[typeof e==="boolean"?e:k2(e),r]},useSyncExternalStore:Aee,useId:ote,useHostTransitionStatus:OY,useFormState:WJ,useActionState:WJ,useOptimistic:function(e,r){var a=Qn();if(_a!==null)return jee(a,_a,e,r);return a.baseState=e,[e,a.queue.dispatch]},useMemoCache:PY,useCacheRefresh:ate};lte.useEffectEvent=Vee;function V6(e,r,a,i){r=e.memoizedState,a=a(i,r),a=a===null||a===void 0?r:Zn({},r,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var NU={enqueueSetState:function(e,r,a){e=e._reactInternals;var i=gc(),s=gz(i);s.payload=r,a!==void 0&&a!==null&&(s.callback=a),r=Mz(e,s,i),r!==null&&(Ws(r,e,i),zA(r,e,i))},enqueueReplaceState:function(e,r,a){e=e._reactInternals;var i=gc(),s=gz(i);s.tag=1,s.payload=r,a!==void 0&&a!==null&&(s.callback=a),r=Mz(e,s,i),r!==null&&(Ws(r,e,i),zA(r,e,i))},enqueueForceUpdate:function(e,r){e=e._reactInternals;var a=gc(),i=gz(a);i.tag=2,r!==void 0&&r!==null&&(i.callback=r),r=Mz(e,i,a),r!==null&&(Ws(r,e,a),zA(r,e,a))}};function KJ(e,r,a,i,s,l,c){return e=e.stateNode,typeof e.shouldComponentUpdate==="function"?e.shouldComponentUpdate(i,l,c):r.prototype&&r.prototype.isPureReactComponent?!c2(a,i)||!c2(s,l):!0}function XJ(e,r,a,i){e=r.state,typeof r.componentWillReceiveProps==="function"&&r.componentWillReceiveProps(a,i),typeof r.UNSAFE_componentWillReceiveProps==="function"&&r.UNSAFE_componentWillReceiveProps(a,i),r.state!==e&&NU.enqueueReplaceState(r,r.state,null)}function wz(e,r){var a=r;if("ref"in r){a={};for(var i in r)i!=="ref"&&(a[i]=r[i])}if(e=e.defaultProps){a===r&&(a=Zn({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function _0e(e){P5(e)}function b0e(e){console.error(e)}function w0e(e){P5(e)}function B5(e,r){try{var a=e.onUncaughtError;a(r.value,{componentStack:r.stack})}catch(i){setTimeout(function(){throw i})}}function QJ(e,r,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function FU(e,r,a){return a=gz(a),a.tag=3,a.payload={element:null},a.callback=function(){B5(e,r)},a}function cte(e){return e=gz(e),e.tag=3,e}function ute(e,r,a,i){var s=a.type.getDerivedStateFromError;if(typeof s==="function"){var l=i.value;e.payload=function(){return s(l)},e.callback=function(){QJ(r,a,i)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch==="function"&&(e.callback=function(){QJ(r,a,i),typeof s!=="function"&&(KM===null?KM=new Set([this]):KM.add(this));var d=i.stack;this.componentDidCatch(i.value,{componentStack:d!==null?d:""})})}function z0e(e,r,a,i,s){if(a.flags|=32768,i!==null&&typeof i==="object"&&typeof i.then==="function"){if(r=a.alternate,r!==null&&Yk(r,a,s,!0),a=Gl.current,a!==null){switch(a.tag){case 31:case 13:return hc===null?V5():a.alternate===null&&En===0&&(En=3),a.flags&=-257,a.flags|=65536,a.lanes=s,i===D5?a.flags|=16384:(r=a.updateQueue,r===null?a.updateQueue=new Set([i]):r.add(i),oU(e,i,s)),!1;case 22:return a.flags|=65536,i===D5?a.flags|=16384:(r=a.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=r):(a=r.retryQueue,a===null?r.retryQueue=new Set([i]):a.add(i)),oU(e,i,s)),!1}throw Error(Yt(435,a.tag))}return oU(e,i,s),V5(),!1}if(ko)return r=Gl.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=s,i!==SU&&(e=Error(Yt(422),{cause:i}),d2(pc(e,a)))):(i!==SU&&(r=Error(Yt(423),{cause:i}),d2(pc(r,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,i=pc(i,a),s=FU(e.stateNode,i,s),q6(e,s),En!==4&&(En=2)),!1;var l=Error(Yt(520),{cause:i});if(l=pc(l,a),a2===null?a2=[l]:a2.push(l),En!==4&&(En=2),r===null)return!0;i=pc(i,a),a=r;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=FU(a.stateNode,i,e),q6(a,e),!1;case 1:if(r=a.type,l=a.stateNode,(a.flags&128)===0&&(typeof r.getDerivedStateFromError==="function"||l!==null&&typeof l.componentDidCatch==="function"&&(KM===null||!KM.has(l))))return a.flags|=65536,s&=-s,a.lanes|=s,s=cte(s),ute(s,e,a,i),q6(a,s),!1}a=a.return}while(a!==null);return!1}var jY=Error(Yt(461)),ui=!1;function Ki(e,r,a,i){r.child=e===null?kee(r,null,a,i):_z(r,e.child,a,i)}function JJ(e,r,a,i,s){a=a.render;var l=r.ref;if("ref"in i){var c={};for(var d in i)d!=="ref"&&(c[d]=i[d])}else c=i;if(yz(r),i=kY(e,r,a,c,l,s),d=CY(),e!==null&&!ui)return IY(e,r,s),VZ(e,r,s);return ko&&d&&vY(r),r.flags|=1,Ki(e,r,i,s),r.child}function $J(e,r,a,i,s){if(e===null){var l=a.type;if(typeof l==="function"&&!xY(l)&&l.defaultProps===void 0&&a.compare===null)return r.tag=15,r.type=l,dte(e,r,l,i,s);return e=h5(a.type,null,i,r,r.mode,s),e.ref=r.ref,e.return=r,r.child=e}if(l=e.child,!BY(e,s)){var c=l.memoizedProps;if(a=a.compare,a=a!==null?a:c2,a(c,i)&&e.ref===r.ref)return VZ(e,r,s)}return r.flags|=1,e=jZ(l,i),e.ref=r.ref,e.return=r,r.child=e}function dte(e,r,a,i,s){if(e!==null){var l=e.memoizedProps;if(c2(l,i)&&e.ref===r.ref)if(ui=!1,r.pendingProps=i=l,BY(e,s))(e.flags&131072)!==0&&(ui=!0);else return r.lanes=e.lanes,VZ(e,r,s)}return jU(e,r,a,i,s)}function Zte(e,r,a,i){var s=i.children,l=e!==null?e.memoizedState:null;if(e===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((r.flags&128)!==0){if(l=l!==null?l.baseLanes|a:a,e!==null){i=r.child=e.child;for(s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~l}else i=0,r.child=null;return e$(e,r,l,a,i)}if((a&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},e!==null&&g5(r,l!==null?l.cachePool:null),l!==null?UJ(r,l):TU(),Ree(r);else return i=r.lanes=536870912,e$(e,r,l!==null?l.baseLanes|a:a,a,i)}else l!==null?(g5(r,l.cachePool),UJ(r,l),jM(r),r.memoizedState=null):(e!==null&&g5(r,null),TU(),jM(r));return Ki(e,r,s,a),r.child}function VP(e,r){return e!==null&&e.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function e$(e,r,a,i,s){var l=bY();return l=l===null?null:{parent:ci._currentValue,pool:l},r.memoizedState={baseLanes:a,cachePool:l},e!==null&&g5(r,null),TU(),Ree(r),e!==null&&Yk(e,r,i,!0),r.childLanes=s,null}function v5(e,r){return r=U5({mode:r.mode,children:r.children},e.mode),r.ref=e.ref,e.child=r,r.return=e,r}function t$(e,r,a){return _z(r,e.child,null,a),e=v5(r,r.pendingProps),e.flags|=2,pl(r),r.memoizedState=null,e}function S0e(e,r,a){var i=r.pendingProps,s=(r.flags&128)!==0;if(r.flags&=-129,e===null){if(ko){if(i.mode==="hidden")return e=v5(r,i),r.lanes=536870912,VP(null,e);if(AU(r),(e=dn)?(e=ire(e,mc),e=e!==null&&e.data==="&"?e:null,e!==null&&(r.memoizedState={dehydrated:e,treeContext:e8!==null?{id:eZ,overflow:tZ}:null,retryLane:536870912,hydrationErrors:null},a=yee(e),a.return=r,r.child=a,$i=r,dn=null)):e=null,e===null)throw t8(r);return r.lanes=536870912,null}return v5(r,i)}var l=e.memoizedState;if(l!==null){var c=l.dehydrated;if(AU(r),s)if(r.flags&256)r.flags&=-257,r=t$(e,r,a);else if(r.memoizedState!==null)r.child=e.child,r.flags|=128,r=null;else throw Error(Yt(558));else if(ui||Yk(e,r,a,!1),s=(a&e.childLanes)!==0,ui||s){if(i=Ea,i!==null&&(c=V$(i,a),c!==0&&c!==l.retryLane))throw l.retryLane=c,kz(e,c),Ws(i,e,c),jY;V5(),r=t$(e,r,a)}else e=l.treeContext,dn=Mc(c.nextSibling),$i=r,ko=!0,GM=null,mc=!1,e!==null&&bee(r,e),r=v5(r,i),r.flags|=4096;return r}return e=jZ(e.child,{mode:i.mode,children:i.children}),e.ref=r.ref,r.child=e,e.return=r,e}function y5(e,r){var a=r.ref;if(a===null)e!==null&&e.ref!==null&&(r.flags|=4194816);else{if(typeof a!=="function"&&typeof a!=="object")throw Error(Yt(284));if(e===null||e.ref!==a)r.flags|=4194816}}function jU(e,r,a,i,s){if(yz(r),a=kY(e,r,a,i,void 0,s),i=CY(),e!==null&&!ui)return IY(e,r,s),VZ(e,r,s);return ko&&i&&vY(r),r.flags|=1,Ki(e,r,a,s),r.child}function r$(e,r,a,i,s,l){if(yz(r),r.updateQueue=null,a=Tee(r,i,a,s),Pee(e),i=CY(),e!==null&&!ui)return IY(e,r,l),VZ(e,r,l);return ko&&i&&vY(r),r.flags|=1,Ki(e,r,a,l),r.child}function o$(e,r,a,i,s){if(yz(r),r.stateNode===null){var l=vk,c=a.contextType;typeof c==="object"&&c!==null&&(l=ff(c)),l=new a(i,l),r.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=NU,r.stateNode=l,l._reactInternals=r,l=r.stateNode,l.props=i,l.state=r.memoizedState,l.refs={},zY(r),c=a.contextType,l.context=typeof c==="object"&&c!==null?ff(c):vk,l.state=r.memoizedState,c=a.getDerivedStateFromProps,typeof c==="function"&&(V6(r,a,c,i),l.state=r.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof l.getSnapshotBeforeUpdate==="function"||typeof l.UNSAFE_componentWillMount!=="function"&&typeof l.componentWillMount!=="function"||(c=l.state,typeof l.componentWillMount==="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount==="function"&&l.UNSAFE_componentWillMount(),c!==l.state&&NU.enqueueReplaceState(l,l.state,null),e2(r,i,l,s),jA(),l.state=r.memoizedState),typeof l.componentDidMount==="function"&&(r.flags|=4194308),i=!0}else if(e===null){l=r.stateNode;var d=r.memoizedProps,h=wz(a,d);l.props=h;var g=l.context,x=a.contextType;c=vk,typeof x==="object"&&x!==null&&(c=ff(x));var v=a.getDerivedStateFromProps;x=typeof v==="function"||typeof l.getSnapshotBeforeUpdate==="function",d=r.pendingProps!==d,x||typeof l.UNSAFE_componentWillReceiveProps!=="function"&&typeof l.componentWillReceiveProps!=="function"||(d||g!==c)&&XJ(r,l,i,c),OM=!1;var b=r.memoizedState;l.state=b,e2(r,i,l,s),jA(),g=r.memoizedState,d||b!==g||OM?(typeof v==="function"&&(V6(r,a,v,i),g=r.memoizedState),(h=OM||KJ(r,a,h,i,b,g,c))?(x||typeof l.UNSAFE_componentWillMount!=="function"&&typeof l.componentWillMount!=="function"||(typeof l.componentWillMount==="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount==="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount==="function"&&(r.flags|=4194308)):(typeof l.componentDidMount==="function"&&(r.flags|=4194308),r.memoizedProps=i,r.memoizedState=g),l.props=i,l.state=g,l.context=c,i=h):(typeof l.componentDidMount==="function"&&(r.flags|=4194308),i=!1)}else{l=r.stateNode,RU(e,r),c=r.memoizedProps,x=wz(a,c),l.props=x,v=r.pendingProps,b=l.context,g=a.contextType,h=vk,typeof g==="object"&&g!==null&&(h=ff(g)),d=a.getDerivedStateFromProps,(g=typeof d==="function"||typeof l.getSnapshotBeforeUpdate==="function")||typeof l.UNSAFE_componentWillReceiveProps!=="function"&&typeof l.componentWillReceiveProps!=="function"||(c!==v||b!==h)&&XJ(r,l,i,h),OM=!1,b=r.memoizedState,l.state=b,e2(r,i,l,s),jA();var y=r.memoizedState;c!==v||b!==y||OM||e!==null&&e.dependencies!==null&&E5(e.dependencies)?(typeof d==="function"&&(V6(r,a,d,i),y=r.memoizedState),(x=OM||KJ(r,a,x,i,b,y,h)||e!==null&&e.dependencies!==null&&E5(e.dependencies))?(g||typeof l.UNSAFE_componentWillUpdate!=="function"&&typeof l.componentWillUpdate!=="function"||(typeof l.componentWillUpdate==="function"&&l.componentWillUpdate(i,y,h),typeof l.UNSAFE_componentWillUpdate==="function"&&l.UNSAFE_componentWillUpdate(i,y,h)),typeof l.componentDidUpdate==="function"&&(r.flags|=4),typeof l.getSnapshotBeforeUpdate==="function"&&(r.flags|=1024)):(typeof l.componentDidUpdate!=="function"||c===e.memoizedProps&&b===e.memoizedState||(r.flags|=4),typeof l.getSnapshotBeforeUpdate!=="function"||c===e.memoizedProps&&b===e.memoizedState||(r.flags|=1024),r.memoizedProps=i,r.memoizedState=y),l.props=i,l.state=y,l.context=h,i=x):(typeof l.componentDidUpdate!=="function"||c===e.memoizedProps&&b===e.memoizedState||(r.flags|=4),typeof l.getSnapshotBeforeUpdate!=="function"||c===e.memoizedProps&&b===e.memoizedState||(r.flags|=1024),i=!1)}return l=i,y5(e,r),i=(r.flags&128)!==0,l||i?(l=r.stateNode,a=i&&typeof a.getDerivedStateFromError!=="function"?null:l.render(),r.flags|=1,e!==null&&i?(r.child=_z(r,e.child,null,s),r.child=_z(r,null,a,s)):Ki(e,r,a,s),r.memoizedState=l.state,e=r.child):e=VZ(e,r,s),e}function a$(e,r,a,i){return vz(),r.flags|=256,Ki(e,r,a,i),r.child}var W6={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function G6(e){return{baseLanes:e,cachePool:zee()}}function K6(e,r,a){return e=e!==null?e.childLanes&~a:0,r&&(e|=Yl),e}function pte(e,r,a){var i=r.pendingProps,s=!1,l=(r.flags&128)!==0,c;if((c=l)||(c=e!==null&&e.memoizedState===null?!1:(Kn.current&2)!==0),c&&(s=!0,r.flags&=-129),c=(r.flags&32)!==0,r.flags&=-33,e===null){if(ko){if(s?FM(r):jM(r),(e=dn)?(e=ire(e,mc),e=e!==null&&e.data!=="&"?e:null,e!==null&&(r.memoizedState={dehydrated:e,treeContext:e8!==null?{id:eZ,overflow:tZ}:null,retryLane:536870912,hydrationErrors:null},a=yee(e),a.return=r,r.child=a,$i=r,dn=null)):e=null,e===null)throw t8(r);return rY(e)?r.lanes=32:r.lanes=536870912,null}var d=i.children;if(i=i.fallback,s)return jM(r),s=r.mode,d=U5({mode:"hidden",children:d},s),i=pz(i,s,a,null),d.return=r,i.return=r,d.sibling=i,r.child=d,i=r.child,i.memoizedState=G6(a),i.childLanes=K6(e,c,a),r.memoizedState=W6,VP(null,i);return FM(r),BU(r,d)}var h=e.memoizedState;if(h!==null&&(d=h.dehydrated,d!==null)){if(l)r.flags&256?(FM(r),r.flags&=-257,r=X6(e,r,a)):r.memoizedState!==null?(jM(r),r.child=e.child,r.flags|=128,r=null):(jM(r),d=i.fallback,s=r.mode,i=U5({mode:"visible",children:i.children},s),d=pz(d,s,a,null),d.flags|=2,i.return=r,d.return=r,i.sibling=d,r.child=i,_z(r,e.child,null,a),i=r.child,i.memoizedState=G6(a),i.childLanes=K6(e,c,a),r.memoizedState=W6,r=VP(null,i));else if(FM(r),rY(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var g=c.dgst;c=g,i=Error(Yt(419)),i.stack="",i.digest=c,d2({value:i,source:null,stack:null}),r=X6(e,r,a)}else if(ui||Yk(e,r,a,!1),c=(a&e.childLanes)!==0,ui||c){if(c=Ea,c!==null&&(i=V$(c,a),i!==0&&i!==h.retryLane))throw h.retryLane=i,kz(e,i),Ws(c,e,i),jY;tY(d)||V5(),r=X6(e,r,a)}else tY(d)?(r.flags|=192,r.child=e.child,r=null):(e=h.treeContext,dn=Mc(d.nextSibling),$i=r,ko=!0,GM=null,mc=!1,e!==null&&bee(r,e),r=BU(r,i.children),r.flags|=4096);return r}if(s)return jM(r),d=i.fallback,s=r.mode,h=e.child,g=h.sibling,i=jZ(h,{mode:"hidden",children:i.children}),i.subtreeFlags=h.subtreeFlags&65011712,g!==null?d=jZ(g,d):(d=pz(d,s,a,null),d.flags|=2),d.return=r,i.return=r,i.sibling=d,r.child=i,VP(null,i),i=r.child,d=e.child.memoizedState,d===null?d=G6(a):(s=d.cachePool,s!==null?(h=ci._currentValue,s=s.parent!==h?{parent:h,pool:h}:s):s=zee(),d={baseLanes:d.baseLanes|a,cachePool:s}),i.memoizedState=d,i.childLanes=K6(e,c,a),r.memoizedState=W6,VP(e.child,i);return FM(r),a=e.child,e=a.sibling,a=jZ(a,{mode:"visible",children:i.children}),a.return=r,a.sibling=null,e!==null&&(c=r.deletions,c===null?(r.deletions=[e],r.flags|=16):c.push(e)),r.child=a,r.memoizedState=null,a}function BU(e,r){return r=U5({mode:"visible",children:r},e.mode),r.return=e,e.child=r}function U5(e,r){return e=ml(22,e,null,r),e.lanes=0,e}function X6(e,r,a){return _z(r,e.child,null,a),e=BU(r,r.pendingProps.children),e.flags|=2,r.memoizedState=null,e}function n$(e,r,a){e.lanes|=r;var i=e.alternate;i!==null&&(i.lanes|=r),kU(e.return,r,a)}function Q6(e,r,a,i,s,l){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:s,treeForkCount:l}:(c.isBackwards=r,c.rendering=null,c.renderingStartTime=0,c.last=i,c.tail=a,c.tailMode=s,c.treeForkCount=l)}function mte(e,r,a){var i=r.pendingProps,s=i.revealOrder,l=i.tail;i=i.children;var c=Kn.current,d=(c&2)!==0;if(d?(c=c&1|2,r.flags|=128):c&=1,Ga(Kn,c),Ki(e,r,i,a),i=ko?u2:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=r.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&n$(e,a,r);else if(e.tag===19)n$(e,a,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break e;for(;e.sibling===null;){if(e.return===null||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":a=r.child;for(s=null;a!==null;)e=a.alternate,e!==null&&N5(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=r.child,r.child=null):(s=a.sibling,a.sibling=null),Q6(r,!1,s,a,l,i);break;case"backwards":case"unstable_legacy-backwards":a=null,s=r.child;for(r.child=null;s!==null;){if(e=s.alternate,e!==null&&N5(e)===null){r.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}Q6(r,!0,a,null,l,i);break;case"together":Q6(r,!1,null,null,void 0,i);break;default:r.memoizedState=null}return r.child}function VZ(e,r,a){if(e!==null&&(r.dependencies=e.dependencies),o8|=r.lanes,(a&r.childLanes)===0)if(e!==null){if(Yk(e,r,a,!1),(a&r.childLanes)===0)return null}else return null;if(e!==null&&r.child!==e.child)throw Error(Yt(153));if(r.child!==null){e=r.child,a=jZ(e,e.pendingProps),r.child=a;for(a.return=r;e.sibling!==null;)e=e.sibling,a=a.sibling=jZ(e,e.pendingProps),a.return=r;a.sibling=null}return r.child}function BY(e,r){if((e.lanes&r)!==0)return!0;return e=e.dependencies,e!==null&&E5(e)?!0:!1}function L0e(e,r,a){switch(r.tag){case 3:k5(r,r.stateNode.containerInfo),NM(r,ci,e.memoizedState.cache),vz();break;case 27:case 5:mU(r);break;case 4:k5(r,r.stateNode.containerInfo);break;case 10:NM(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,AU(r),null;break;case 13:var i=r.memoizedState;if(i!==null){if(i.dehydrated!==null)return FM(r),r.flags|=128,null;if((a&r.child.childLanes)!==0)return pte(e,r,a);return FM(r),e=VZ(e,r,a),e!==null?e.sibling:null}FM(r);break;case 19:var s=(e.flags&128)!==0;if(i=(a&r.childLanes)!==0,i||(Yk(e,r,a,!1),i=(a&r.childLanes)!==0),s){if(i)return mte(e,r,a);r.flags|=128}if(s=r.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ga(Kn,Kn.current),i)break;else return null;case 22:return r.lanes=0,Zte(e,r,a,r.pendingProps);case 24:NM(r,ci,e.memoizedState.cache)}return VZ(e,r,a)}function hte(e,r,a){if(e!==null)if(e.memoizedProps!==r.pendingProps)ui=!0;else{if(!BY(e,a)&&(r.flags&128)===0)return ui=!1,L0e(e,r,a);ui=(e.flags&131072)!==0?!0:!1}else ui=!1,ko&&(r.flags&1048576)!==0&&_ee(r,u2,r.index);switch(r.lanes=0,r.tag){case 16:e:{var i=r.pendingProps;if(e=uz(r.elementType),r.type=e,typeof e==="function")xY(e)?(i=wz(e,i),r.tag=1,r=o$(null,r,e,i,a)):(r.tag=0,r=jU(null,r,e,i,a));else{if(e!==void 0&&e!==null){var s=e.$$typeof;if(s===iY){r.tag=11,r=JJ(null,r,e,i,a);break e}else if(s===fY){r.tag=14,r=$J(null,r,e,i,a);break e}}throw r=ZU(e)||e,Error(Yt(306,r,""))}}return r;case 0:return jU(e,r,r.type,r.pendingProps,a);case 1:return i=r.type,s=wz(i,r.pendingProps),o$(e,r,i,s,a);case 3:e:{if(k5(r,r.stateNode.containerInfo),e===null)throw Error(Yt(387));i=r.pendingProps;var l=r.memoizedState;s=l.element,RU(e,r),e2(r,i,null,a);var c=r.memoizedState;if(i=c.cache,NM(r,ci,i),i!==l.cache&&CU(r,[ci],a,!0),jA(),i=c.element,l.isDehydrated)if(l={element:i,isDehydrated:!1,cache:c.cache},r.updateQueue.baseState=l,r.memoizedState=l,r.flags&256){r=a$(e,r,i,a);break e}else if(i!==s){s=pc(Error(Yt(424)),r),d2(s),r=a$(e,r,i,a);break e}else{switch(e=r.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}dn=Mc(e.firstChild),$i=r,ko=!0,GM=null,mc=!0,a=kee(r,null,i,a);for(r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(vz(),i===s){r=VZ(e,r,a);break e}Ki(e,r,i,a)}r=r.child}return r;case 26:return y5(e,r),e===null?(a=z$(r.type,null,r.pendingProps,null))?r.memoizedState=a:ko||(a=r.type,e=r.pendingProps,i=X5(WM.current).createElement(a),i[Qi]=r,i[Xs]=e,lf(i,a,e),Di(i),r.stateNode=i):r.memoizedState=z$(r.type,e.memoizedProps,r.pendingProps,e.memoizedState),null;case 27:return mU(r),e===null&&ko&&(i=r.stateNode=fre(r.type,r.pendingProps,WM.current),$i=r,mc=!0,s=dn,n8(r.type)?(oY=s,dn=Mc(i.firstChild)):dn=s),Ki(e,r,r.pendingProps.children,a),y5(e,r),e===null&&(r.flags|=4194304),r.child;case 5:if(e===null&&ko){if(s=i=dn)i=tze(i,r.type,r.pendingProps,mc),i!==null?(r.stateNode=i,$i=r,dn=Mc(i.firstChild),mc=!1,s=!0):s=!1;s||t8(r)}return mU(r),s=r.type,l=r.pendingProps,c=e!==null?e.memoizedProps:null,i=l.children,$U(s,l)?i=null:c!==null&&$U(s,c)&&(r.flags|=32),r.memoizedState!==null&&(s=kY(e,r,m0e,null,null,a),M2._currentValue=s),y5(e,r),Ki(e,r,i,a),r.child;case 6:if(e===null&&ko){if(e=a=dn)a=rze(a,r.pendingProps,mc),a!==null?(r.stateNode=a,$i=r,dn=null,e=!0):e=!1;e||t8(r)}return null;case 13:return pte(e,r,a);case 4:return k5(r,r.stateNode.containerInfo),i=r.pendingProps,e===null?r.child=_z(r,null,i,a):Ki(e,r,i,a),r.child;case 11:return JJ(e,r,r.type,r.pendingProps,a);case 7:return Ki(e,r,r.pendingProps,a),r.child;case 8:return Ki(e,r,r.pendingProps.children,a),r.child;case 12:return Ki(e,r,r.pendingProps.children,a),r.child;case 10:return i=r.pendingProps,NM(r,r.type,i.value),Ki(e,r,i.children,a),r.child;case 9:return s=r.type._context,i=r.pendingProps.children,yz(r),s=ff(s),i=i(s),r.flags|=1,Ki(e,r,i,a),r.child;case 14:return $J(e,r,r.type,r.pendingProps,a);case 15:return dte(e,r,r.type,r.pendingProps,a);case 19:return mte(e,r,a);case 31:return S0e(e,r,a);case 22:return Zte(e,r,a,r.pendingProps);case 24:return yz(r),i=ff(ci),e===null?(s=bY(),s===null&&(s=Ea,l=_Y(),s.pooledCache=l,l.refCount++,l!==null&&(s.pooledCacheLanes|=a),s=l),r.memoizedState={parent:i,cache:s},zY(r),NM(r,ci,s)):((e.lanes&a)!==0&&(RU(e,r),e2(r,null,null,a),jA()),s=e.memoizedState,l=r.memoizedState,s.parent!==i?(s={parent:i,cache:i},r.memoizedState=s,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=s),NM(r,ci,i)):(i=l.cache,NM(r,ci,i),i!==s.cache&&CU(r,[ci],a,!0))),Ki(e,r,r.pendingProps.children,a),r.child;case 29:throw r.pendingProps}throw Error(Yt(156,r.tag))}function RZ(e){e.flags|=4}function J6(e,r,a,i,s){if(r=(e.mode&32)!==0)r=!1;if(r){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(jte())e.flags|=8192;else throw hz=D5,wY}else e.flags&=-16777217}function i$(e,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!cre(r))if(jte())e.flags|=8192;else throw hz=D5,wY}function i5(e,r){r!==null&&(e.flags|=4),e.flags&16384&&(r=e.tag!==22?Y$():536870912,e.lanes|=r,Ok|=r)}function NP(e,r){if(!ko)switch(e.tailMode){case"hidden":r=e.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?r||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function fn(e){var r=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(r)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=a,r}function k0e(e,r,a){var i=r.pendingProps;switch(yY(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fn(r),null;case 1:return fn(r),null;case 3:if(a=r.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),BZ(ci),Rk(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)fk(r)?RZ(r):e===null||e.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Y6());return fn(r),null;case 26:var{type:s,memoizedState:l}=r;return e===null?(RZ(r),l!==null?(fn(r),i$(r,l)):(fn(r),J6(r,s,null,i,a))):l?l!==e.memoizedState?(RZ(r),fn(r),i$(r,l)):(fn(r),r.flags&=-16777217):(e=e.memoizedProps,e!==i&&RZ(r),fn(r),J6(r,s,e,i,a)),null;case 27:if(C5(r),a=WM.current,s=r.type,e!==null&&r.stateNode!=null)e.memoizedProps!==i&&RZ(r);else{if(!i){if(r.stateNode===null)throw Error(Yt(166));return fn(r),null}e=oZ.current,fk(r)?EJ(r,e):(e=fre(s,i,a),r.stateNode=e,RZ(r))}return fn(r),null;case 5:if(C5(r),s=r.type,e!==null&&r.stateNode!=null)e.memoizedProps!==i&&RZ(r);else{if(!i){if(r.stateNode===null)throw Error(Yt(166));return fn(r),null}if(l=oZ.current,fk(r))EJ(r,l);else{var c=X5(WM.current);switch(l){case 1:l=c.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:l=c.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":l=c.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":l=c.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":l=c.createElement("div"),l.innerHTML="<script></script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof i.is==="string"?c.createElement("select",{is:i.is}):c.createElement("select"),i.multiple?l.multiple=!0:i.size&&(l.size=i.size);break;default:l=typeof i.is==="string"?c.createElement(s,{is:i.is}):c.createElement(s)}}l[Qi]=r,l[Xs]=i;e:for(c=r.child;c!==null;){if(c.tag===5||c.tag===6)l.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===r)break e;for(;c.sibling===null;){if(c.return===null||c.return===r)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r.stateNode=l;e:switch(lf(l,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&RZ(r)}}return fn(r),J6(r,r.type,e===null?null:e.memoizedProps,r.pendingProps,a),null;case 6:if(e&&r.stateNode!=null)e.memoizedProps!==i&&RZ(r);else{if(typeof i!=="string"&&r.stateNode===null)throw Error(Yt(166));if(e=WM.current,fk(r)){if(e=r.stateNode,a=r.memoizedProps,i=null,s=$i,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}e[Qi]=r,e=e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||ore(e.nodeValue,a)?!0:!1,e||t8(r,!0)}else e=X5(e).createTextNode(i),e[Qi]=r,r.stateNode=e}return fn(r),null;case 31:if(a=r.memoizedState,e===null||e.memoizedState!==null){if(i=fk(r),a!==null){if(e===null){if(!i)throw Error(Yt(318));if(e=r.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Yt(557));e[Qi]=r}else vz(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;fn(r),e=!1}else a=Y6(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(r.flags&256)return pl(r),r;return pl(r),null}if((r.flags&128)!==0)throw Error(Yt(558))}return fn(r),null;case 13:if(i=r.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=fk(r),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(Yt(318));if(s=r.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Yt(317));s[Qi]=r}else vz(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;fn(r),s=!1}else s=Y6(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s){if(r.flags&256)return pl(r),r;return pl(r),null}}if(pl(r),(r.flags&128)!==0)return r.lanes=a,r;return a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=r.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),l=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),l!==s&&(i.flags|=2048)),a!==e&&a&&(r.child.flags|=8192),i5(r,r.updateQueue),fn(r),null;case 4:return Rk(),e===null&&tre(r.stateNode.containerInfo),fn(r),null;case 10:return BZ(r.type),fn(r),null;case 19:if(Oi(Kn),i=r.memoizedState,i===null)return fn(r),null;if(s=(r.flags&128)!==0,l=i.rendering,l===null)if(s)NP(i,!1);else{if(En!==0||e!==null&&(e.flags&128)!==0)for(e=r.child;e!==null;){if(l=N5(e),l!==null){r.flags|=128,NP(i,!1),e=l.updateQueue,r.updateQueue=e,i5(r,e),r.subtreeFlags=0,e=a;for(a=r.child;a!==null;)vee(a,e),a=a.sibling;return Ga(Kn,Kn.current&1|2),ko&&EZ(r,i.treeForkCount),r.child}e=e.sibling}i.tail!==null&&ql()>q5&&(r.flags|=128,s=!0,NP(i,!1),r.lanes=4194304)}else{if(!s)if(e=N5(l),e!==null){if(r.flags|=128,s=!0,e=e.updateQueue,r.updateQueue=e,i5(r,e),NP(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!ko)return fn(r),null}else 2*ql()-i.renderingStartTime>q5&&a!==536870912&&(r.flags|=128,s=!0,NP(i,!1),r.lanes=4194304);i.isBackwards?(l.sibling=r.child,r.child=l):(e=i.last,e!==null?e.sibling=l:r.child=l,i.last=l)}if(i.tail!==null)return e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=ql(),e.sibling=null,a=Kn.current,Ga(Kn,s?a&1|2:a&1),ko&&EZ(r,i.treeForkCount),e;return fn(r),null;case 22:case 23:return pl(r),SY(),i=r.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(r.flags|=8192):i&&(r.flags|=8192),i?(a&536870912)!==0&&(r.flags&128)===0&&(fn(r),r.subtreeFlags&6&&(r.flags|=8192)):fn(r),a=r.updateQueue,a!==null&&i5(r,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048),e!==null&&Oi(mz),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),BZ(ci),fn(r),null;case 25:return null;case 30:return null}throw Error(Yt(156,r.tag))}function C0e(e,r){switch(yY(r),r.tag){case 1:return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 3:return BZ(ci),Rk(),e=r.flags,(e&65536)!==0&&(e&128)===0?(r.flags=e&-65537|128,r):null;case 26:case 27:case 5:return C5(r),null;case 31:if(r.memoizedState!==null){if(pl(r),r.alternate===null)throw Error(Yt(340));vz()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 13:if(pl(r),e=r.memoizedState,e!==null&&e.dehydrated!==null){if(r.alternate===null)throw Error(Yt(340));vz()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 19:return Oi(Kn),null;case 4:return Rk(),null;case 10:return BZ(r.type),null;case 22:case 23:return pl(r),SY(),e!==null&&Oi(mz),e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 24:return BZ(ci),null;case 25:return null;default:return null}}function gte(e,r){switch(yY(r),r.tag){case 3:BZ(ci),Rk();break;case 26:case 27:case 5:C5(r);break;case 4:Rk();break;case 31:r.memoizedState!==null&&pl(r);break;case 13:pl(r);break;case 19:Oi(Kn);break;case 10:BZ(r.type);break;case 22:case 23:pl(r),SY(),e!==null&&Oi(mz);break;case 24:BZ(ci)}}function C2(e,r){try{var a=r.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var s=i.next;a=s;do{if((a.tag&e)===e){i=void 0;var l=a.create,c=a.inst;i=l(),c.destroy=i}a=a.next}while(a!==s)}}catch(d){pa(r,r.return,d)}}function r8(e,r,a){try{var i=r.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var l=s.next;i=l;do{if((i.tag&e)===e){var c=i.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,s=r;var h=a,g=d;try{g()}catch(x){pa(s,h,x)}}}i=i.next}while(i!==l)}}catch(x){pa(r,r.return,x)}}function Mte(e){var r=e.updateQueue;if(r!==null){var a=e.stateNode;try{Iee(r,a)}catch(i){pa(e,e.return,i)}}}function xte(e,r,a){a.props=wz(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){pa(e,r,i)}}function r2(e,r){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a==="function"?e.refCleanup=a(i):a.current=i}}catch(s){pa(e,r,s)}}function rZ(e,r){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i==="function")try{i()}catch(s){pa(e,r,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{a(null)}catch(s){pa(e,r,s)}else a.current=null}function vte(e){var{type:r,memoizedProps:a,stateNode:i}=e;try{e:switch(r){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(s){pa(e,e.return,s)}}function $6(e,r,a){try{var i=e.stateNode;K0e(i,e.type,a,r),i[Xs]=r}catch(s){pa(e,e.return,s)}}function yte(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&n8(e.type)||e.tag===4}function eU(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yte(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&n8(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function UU(e,r,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,r?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,r):(r=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,r.appendChild(e),a=a._reactRootContainer,a!==null&&a!==void 0||r.onclick!==null||(r.onclick=NZ));else if(i!==4&&(i===27&&n8(e.type)&&(a=e.stateNode,r=null),e=e.child,e!==null))for(UU(e,r,a),e=e.sibling;e!==null;)UU(e,r,a),e=e.sibling}function Y5(e,r,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,r?a.insertBefore(e,r):a.appendChild(e);else if(i!==4&&(i===27&&n8(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Y5(e,r,a),e=e.sibling;e!==null;)Y5(e,r,a),e=e.sibling}function _te(e){var{stateNode:r,memoizedProps:a}=e;try{for(var i=e.type,s=r.attributes;s.length;)r.removeAttributeNode(s[0]);lf(r,i,a),r[Qi]=e,r[Xs]=a}catch(l){pa(e,e.return,l)}}var DZ=!1,li=!1,tU=!1,f$=typeof WeakSet==="function"?WeakSet:Set,Ti=null;function I0e(e,r){if(e=e.containerInfo,QU=e4,e=dee(e),hY(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var s=i.anchorOffset,l=i.focusNode;i=i.focusOffset;try{a.nodeType,l.nodeType}catch(T){a=null;break e}var c=0,d=-1,h=-1,g=0,x=0,v=e,b=null;t:for(;;){for(var y;;){if(v!==a||s!==0&&v.nodeType!==3||(d=c+s),v!==l||i!==0&&v.nodeType!==3||(h=c+i),v.nodeType===3&&(c+=v.nodeValue.length),(y=v.firstChild)===null)break;b=v,v=y}for(;;){if(v===e)break t;if(b===a&&++g===s&&(d=c),b===l&&++x===i&&(h=c),(y=v.nextSibling)!==null)break;v=b,b=v.parentNode}v=y}a=d===-1||h===-1?null:{start:d,end:h}}else a=null}a=a||{start:0,end:0}}else a=null;JU={focusedElem:e,selectionRange:a},e4=!1;for(Ti=r;Ti!==null;)if(r=Ti,e=r.child,(r.subtreeFlags&1028)!==0&&e!==null)e.return=r,Ti=e;else for(;Ti!==null;){switch(r=Ti,l=r.alternate,e=r.flags,r.tag){case 0:if((e&4)!==0&&(e=r.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&l!==null){e=void 0,a=r,s=l.memoizedProps,l=l.memoizedState,i=a.stateNode;try{var k=wz(a.type,s);e=i.getSnapshotBeforeUpdate(k,l),i.__reactInternalSnapshotBeforeUpdate=e}catch(T){pa(a,a.return,T)}}break;case 3:if((e&1024)!==0){if(e=r.stateNode.containerInfo,a=e.nodeType,a===9)eY(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":eY(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(Yt(163))}if(e=r.sibling,e!==null){e.return=r.return,Ti=e;break}Ti=r.return}}function bte(e,r,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:TZ(e,a),i&4&&C2(5,a);break;case 1:if(TZ(e,a),i&4)if(e=a.stateNode,r===null)try{e.componentDidMount()}catch(c){pa(a,a.return,c)}else{var s=wz(a.type,r.memoizedProps);r=r.memoizedState;try{e.componentDidUpdate(s,r,e.__reactInternalSnapshotBeforeUpdate)}catch(c){pa(a,a.return,c)}}i&64&&Mte(a),i&512&&r2(a,a.return);break;case 3:if(TZ(e,a),i&64&&(e=a.updateQueue,e!==null)){if(r=null,a.child!==null)switch(a.child.tag){case 27:case 5:r=a.child.stateNode;break;case 1:r=a.child.stateNode}try{Iee(e,r)}catch(c){pa(a,a.return,c)}}break;case 27:r===null&&i&4&&_te(a);case 26:case 5:TZ(e,a),r===null&&i&4&&vte(a),i&512&&r2(a,a.return);break;case 12:TZ(e,a);break;case 31:TZ(e,a),i&4&&Ste(e,a);break;case 13:TZ(e,a),i&4&&Lte(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=F0e.bind(null,a),oze(e,a))));break;case 22:if(i=a.memoizedState!==null||DZ,!i){r=r!==null&&r.memoizedState!==null||li,s=DZ;var l=li;DZ=i,(li=r)&&!l?AZ(e,a,(a.subtreeFlags&8772)!==0):TZ(e,a),DZ=s,li=l}break;case 30:break;default:TZ(e,a)}}function wte(e){var r=e.alternate;r!==null&&(e.alternate=null,wte(r)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(r=e.stateNode,r!==null&&cY(r)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var vn=null,Fs=!1;function PZ(e,r,a){for(a=a.child;a!==null;)zte(e,r,a),a=a.sibling}function zte(e,r,a){if(Hl&&typeof Hl.onCommitFiberUnmount==="function")try{Hl.onCommitFiberUnmount(_2,a)}catch(l){}switch(a.tag){case 26:li||rZ(a,r),PZ(e,r,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:li||rZ(a,r);var i=vn,s=Fs;n8(a.type)&&(vn=a.stateNode,Fs=!1),PZ(e,r,a),i2(a.stateNode),vn=i,Fs=s;break;case 5:li||rZ(a,r);case 6:if(i=vn,s=Fs,vn=null,PZ(e,r,a),vn=i,Fs=s,vn!==null)if(Fs)try{(vn.nodeType===9?vn.body:vn.nodeName==="HTML"?vn.ownerDocument.body:vn).removeChild(a.stateNode)}catch(l){pa(a,r,l)}else try{vn.removeChild(a.stateNode)}catch(l){pa(a,r,l)}break;case 18:vn!==null&&(Fs?(e=vn,v$(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Bk(e)):v$(vn,a.stateNode));break;case 4:i=vn,s=Fs,vn=a.stateNode.containerInfo,Fs=!0,PZ(e,r,a),vn=i,Fs=s;break;case 0:case 11:case 14:case 15:r8(2,a,r),li||r8(4,a,r),PZ(e,r,a);break;case 1:li||(rZ(a,r),i=a.stateNode,typeof i.componentWillUnmount==="function"&&xte(a,r,i)),PZ(e,r,a);break;case 21:PZ(e,r,a);break;case 22:li=(i=li)||a.memoizedState!==null,PZ(e,r,a),li=i;break;default:PZ(e,r,a)}}function Ste(e,r){if(r.memoizedState===null&&(e=r.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bk(e)}catch(a){pa(r,r.return,a)}}}function Lte(e,r){if(r.memoizedState===null&&(e=r.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bk(e)}catch(a){pa(r,r.return,a)}}function R0e(e){switch(e.tag){case 31:case 13:case 19:var r=e.stateNode;return r===null&&(r=e.stateNode=new f$),r;case 22:return e=e.stateNode,r=e._retryCache,r===null&&(r=e._retryCache=new f$),r;default:throw Error(Yt(435,e.tag))}}function f5(e,r){var a=R0e(e);r.forEach(function(i){if(!a.has(i)){a.add(i);var s=j0e.bind(null,e,i);i.then(s,s)}})}function Os(e,r){var a=r.deletions;if(a!==null)for(var i=0;i<a.length;i++){var s=a[i],l=e,c=r,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(n8(d.type)){vn=d.stateNode,Fs=!1;break e}break;case 5:vn=d.stateNode,Fs=!1;break e;case 3:case 4:vn=d.stateNode.containerInfo,Fs=!0;break e}d=d.return}if(vn===null)throw Error(Yt(160));zte(l,c,s),vn=null,Fs=!1,l=s.alternate,l!==null&&(l.return=null),s.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)kte(r,e),r=r.sibling}var fu=null;function kte(e,r){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Os(r,e),Ns(e),i&4&&(r8(3,e,e.return),C2(3,e),r8(5,e,e.return));break;case 1:Os(r,e),Ns(e),i&512&&(li||a===null||rZ(a,a.return)),i&64&&DZ&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var s=fu;if(Os(r,e),Ns(e),i&512&&(li||a===null||rZ(a,a.return)),i&4){var l=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(i){case"title":if(l=s.getElementsByTagName("title")[0],!l||l[z2]||l[Qi]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))l=s.createElement(i),s.head.insertBefore(l,s.querySelector("head > title"));lf(l,i,a),l[Qi]=e,Di(l),i=l;break e;case"link":var c=L$("link","href",s).get(i+(a.href||""));if(c){for(var d=0;d<c.length;d++)if(l=c[d],l.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&l.getAttribute("rel")===(a.rel==null?null:a.rel)&&l.getAttribute("title")===(a.title==null?null:a.title)&&l.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){c.splice(d,1);break t}}l=s.createElement(i),lf(l,i,a),s.head.appendChild(l);break;case"meta":if(c=L$("meta","content",s).get(i+(a.content||""))){for(d=0;d<c.length;d++)if(l=c[d],l.getAttribute("content")===(a.content==null?null:""+a.content)&&l.getAttribute("name")===(a.name==null?null:a.name)&&l.getAttribute("property")===(a.property==null?null:a.property)&&l.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&l.getAttribute("charset")===(a.charSet==null?null:a.charSet)){c.splice(d,1);break t}}l=s.createElement(i),lf(l,i,a),s.head.appendChild(l);break;default:throw Error(Yt(468,i))}l[Qi]=e,Di(l),i=l}e.stateNode=i}else k$(s,e.type,e.stateNode);else e.stateNode=S$(s,i,e.memoizedProps);else l!==i?(l===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):l.count--,i===null?k$(s,e.type,e.stateNode):S$(s,i,e.memoizedProps)):i===null&&e.stateNode!==null&&$6(e,e.memoizedProps,a.memoizedProps)}break;case 27:Os(r,e),Ns(e),i&512&&(li||a===null||rZ(a,a.return)),a!==null&&i&4&&$6(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Os(r,e),Ns(e),i&512&&(li||a===null||rZ(a,a.return)),e.flags&32){s=e.stateNode;try{Tk(s,"")}catch(k){pa(e,e.return,k)}}i&4&&e.stateNode!=null&&(s=e.memoizedProps,$6(e,s,a!==null?a.memoizedProps:s)),i&1024&&(tU=!0);break;case 6:if(Os(r,e),Ns(e),i&4){if(e.stateNode===null)throw Error(Yt(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(k){pa(e,e.return,k)}}break;case 3:if(w5=null,s=fu,fu=Q5(r.containerInfo),Os(r,e),fu=s,Ns(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Bk(r.containerInfo)}catch(k){pa(e,e.return,k)}tU&&(tU=!1,Cte(e));break;case 4:i=fu,fu=Q5(e.stateNode.containerInfo),Os(r,e),Ns(e),fu=i;break;case 12:Os(r,e),Ns(e);break;case 31:Os(r,e),Ns(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,f5(e,i)));break;case 13:Os(r,e),Ns(e),e.child.flags&8192&&e.memoizedState!==null!==(a!==null&&a.memoizedState!==null)&&(p4=ql()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,f5(e,i)));break;case 22:s=e.memoizedState!==null;var h=a!==null&&a.memoizedState!==null,g=DZ,x=li;if(DZ=g||s,li=x||h,Os(r,e),li=x,DZ=g,Ns(e),i&8192)e:for(r=e.stateNode,r._visibility=s?r._visibility&-2:r._visibility|1,s&&(a===null||h||DZ||li||dz(e)),a=null,r=e;;){if(r.tag===5||r.tag===26){if(a===null){h=a=r;try{if(l=h.stateNode,s)c=l.style,typeof c.setProperty==="function"?c.setProperty("display","none","important"):c.display="none";else{d=h.stateNode;var v=h.memoizedProps.style,b=v!==void 0&&v!==null&&v.hasOwnProperty("display")?v.display:null;d.style.display=b==null||typeof b==="boolean"?"":(""+b).trim()}}catch(k){pa(h,h.return,k)}}}else if(r.tag===6){if(a===null){h=r;try{h.stateNode.nodeValue=s?"":h.memoizedProps}catch(k){pa(h,h.return,k)}}}else if(r.tag===18){if(a===null){h=r;try{var y=h.stateNode;s?y$(y,!0):y$(h.stateNode,!1)}catch(k){pa(h,h.return,k)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break e;for(;r.sibling===null;){if(r.return===null||r.return===e)break e;a===r&&(a=null),r=r.return}a===r&&(a=null),r.sibling.return=r.return,r=r.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,f5(e,a))));break;case 19:Os(r,e),Ns(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,f5(e,i)));break;case 30:break;case 21:break;default:Os(r,e),Ns(e)}}function Ns(e){var r=e.flags;if(r&2){try{for(var a,i=e.return;i!==null;){if(yte(i)){a=i;break}i=i.return}if(a==null)throw Error(Yt(160));switch(a.tag){case 27:var s=a.stateNode,l=eU(e);Y5(e,l,s);break;case 5:var c=a.stateNode;a.flags&32&&(Tk(c,""),a.flags&=-33);var d=eU(e);Y5(e,d,c);break;case 3:case 4:var h=a.stateNode.containerInfo,g=eU(e);UU(e,g,h);break;default:throw Error(Yt(161))}}catch(x){pa(e,e.return,x)}e.flags&=-3}r&4096&&(e.flags&=-4097)}function Cte(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var r=e;Cte(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),e=e.sibling}}function TZ(e,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)bte(e,r.alternate,r),r=r.sibling}function dz(e){for(e=e.child;e!==null;){var r=e;switch(r.tag){case 0:case 11:case 14:case 15:r8(4,r,r.return),dz(r);break;case 1:rZ(r,r.return);var a=r.stateNode;typeof a.componentWillUnmount==="function"&&xte(r,r.return,a),dz(r);break;case 27:i2(r.stateNode);case 26:case 5:rZ(r,r.return),dz(r);break;case 22:r.memoizedState===null&&dz(r);break;case 30:dz(r);break;default:dz(r)}e=e.sibling}}function AZ(e,r,a){a=a&&(r.subtreeFlags&8772)!==0;for(r=r.child;r!==null;){var i=r.alternate,s=e,l=r,c=l.flags;switch(l.tag){case 0:case 11:case 15:AZ(s,l,a),C2(4,l);break;case 1:if(AZ(s,l,a),i=l,s=i.stateNode,typeof s.componentDidMount==="function")try{s.componentDidMount()}catch(g){pa(i,i.return,g)}if(i=l,s=i.updateQueue,s!==null){var d=i.stateNode;try{var h=s.shared.hiddenCallbacks;if(h!==null)for(s.shared.hiddenCallbacks=null,s=0;s<h.length;s++)Cee(h[s],d)}catch(g){pa(i,i.return,g)}}a&&c&64&&Mte(l),r2(l,l.return);break;case 27:_te(l);case 26:case 5:AZ(s,l,a),a&&i===null&&c&4&&vte(l),r2(l,l.return);break;case 12:AZ(s,l,a);break;case 31:AZ(s,l,a),a&&c&4&&Ste(s,l);break;case 13:AZ(s,l,a),a&&c&4&&Lte(s,l);break;case 22:l.memoizedState===null&&AZ(s,l,a),r2(l,l.return);break;case 30:break;default:AZ(s,l,a)}r=r.sibling}}function UY(e,r){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(e=r.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&L2(a))}function YY(e,r){e=null,r.alternate!==null&&(e=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==e&&(r.refCount++,e!=null&&L2(e))}function Nc(e,r,a,i){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Ite(e,r,a,i),r=r.sibling}function Ite(e,r,a,i){var s=r.flags;switch(r.tag){case 0:case 11:case 15:Nc(e,r,a,i),s&2048&&C2(9,r);break;case 1:Nc(e,r,a,i);break;case 3:Nc(e,r,a,i),s&2048&&(e=null,r.alternate!==null&&(e=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==e&&(r.refCount++,e!=null&&L2(e)));break;case 12:if(s&2048){Nc(e,r,a,i),e=r.stateNode;try{var l=r.memoizedProps,c=l.id,d=l.onPostCommit;typeof d==="function"&&d(c,r.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(h){pa(r,r.return,h)}}else Nc(e,r,a,i);break;case 31:Nc(e,r,a,i);break;case 13:Nc(e,r,a,i);break;case 23:break;case 22:l=r.stateNode,c=r.alternate,r.memoizedState!==null?l._visibility&2?Nc(e,r,a,i):o2(e,r):l._visibility&2?Nc(e,r,a,i):(l._visibility|=2,lk(e,r,a,i,(r.subtreeFlags&10256)!==0||!1)),s&2048&&UY(c,r);break;case 24:Nc(e,r,a,i),s&2048&&YY(r.alternate,r);break;default:Nc(e,r,a,i)}}function lk(e,r,a,i,s){s=s&&((r.subtreeFlags&10256)!==0||!1);for(r=r.child;r!==null;){var l=e,c=r,d=a,h=i,g=c.flags;switch(c.tag){case 0:case 11:case 15:lk(l,c,d,h,s),C2(8,c);break;case 23:break;case 22:var x=c.stateNode;c.memoizedState!==null?x._visibility&2?lk(l,c,d,h,s):o2(l,c):(x._visibility|=2,lk(l,c,d,h,s)),s&&g&2048&&UY(c.alternate,c);break;case 24:lk(l,c,d,h,s),s&&g&2048&&YY(c.alternate,c);break;default:lk(l,c,d,h,s)}r=r.sibling}}function o2(e,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var a=e,i=r,s=i.flags;switch(i.tag){case 22:o2(a,i),s&2048&&UY(i.alternate,i);break;case 24:o2(a,i),s&2048&&YY(i.alternate,i);break;default:o2(a,i)}r=r.sibling}}var WP=8192;function sk(e,r,a){if(e.subtreeFlags&WP)for(e=e.child;e!==null;)Rte(e,r,a),e=e.sibling}function Rte(e,r,a){switch(e.tag){case 26:sk(e,r,a),e.flags&WP&&e.memoizedState!==null&&mze(a,fu,e.memoizedState,e.memoizedProps);break;case 5:sk(e,r,a);break;case 3:case 4:var i=fu;fu=Q5(e.stateNode.containerInfo),sk(e,r,a),fu=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=WP,WP=16777216,sk(e,r,a),WP=i):sk(e,r,a));break;default:sk(e,r,a)}}function Pte(e){var r=e.alternate;if(r!==null&&(e=r.child,e!==null)){r.child=null;do r=e.sibling,e.sibling=null,e=r;while(e!==null)}}function FP(e){var r=e.deletions;if((e.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var i=r[a];Ti=i,Ate(i,e)}Pte(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Tte(e),e=e.sibling}function Tte(e){switch(e.tag){case 0:case 11:case 15:FP(e),e.flags&2048&&r8(9,e,e.return);break;case 3:FP(e);break;case 12:FP(e);break;case 22:var r=e.stateNode;e.memoizedState!==null&&r._visibility&2&&(e.return===null||e.return.tag!==13)?(r._visibility&=-3,_5(e)):FP(e);break;default:FP(e)}}function _5(e){var r=e.deletions;if((e.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var i=r[a];Ti=i,Ate(i,e)}Pte(e)}for(e=e.child;e!==null;){switch(r=e,r.tag){case 0:case 11:case 15:r8(8,r,r.return),_5(r);break;case 22:a=r.stateNode,a._visibility&2&&(a._visibility&=-3,_5(r));break;default:_5(r)}e=e.sibling}}function Ate(e,r){for(;Ti!==null;){var a=Ti;switch(a.tag){case 0:case 11:case 15:r8(8,a,r);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:L2(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,Ti=i;else e:for(a=e;Ti!==null;){i=Ti;var s=i.sibling,l=i.return;if(wte(i),i===a){Ti=null;break e}if(s!==null){s.return=l,Ti=s;break e}Ti=l}}}var P0e={getCacheForType:function(e){var r=ff(ci),a=r.data.get(e);return a===void 0&&(a=e(),r.data.set(e,a)),a},cacheSignal:function(){return ff(ci).controller.signal}},T0e=typeof WeakMap==="function"?WeakMap:Map,jo=0,Ea=null,_o=null,zo=0,da=0,dl=null,qM=!1,Hk=!1,qY=!1,WZ=0,En=0,o8=0,xz=0,HY=0,Yl=0,Ok=0,a2=null,Ys=null,YU=!1,p4=0,Ete=0,q5=1/0,H5=null,KM=null,zi=0,XM=null,Nk=null,UZ=0,qU=0,HU=null,Dte=null,n2=0,VU=null;function gc(){return(jo&2)!==0&&zo!==0?zo&-zo:qr.T!==null?WY():G$()}function Ote(){if(Yl===0)if((zo&536870912)===0||ko){var e=$N;$N<<=1,($N&3932160)===0&&($N=262144),Yl=e}else Yl=536870912;return e=Gl.current,e!==null&&(e.flags|=32),Yl}function Ws(e,r,a){if(e===Ea&&(da===2||da===9)||e.cancelPendingCommit!==null)Fk(e,0),HM(e,zo,Yl,!1);if(o4(e,a),(jo&2)===0||e!==Ea)e===Ea&&((jo&2)===0&&(xz|=a),En===4&&HM(e,zo,Yl,!1)),GZ(e)}function Nte(e,r,a){if((jo&6)!==0)throw Error(Yt(327));var i=!a&&(r&127)===0&&(r&e.expiredLanes)===0||b2(e,r),s=i?D0e(e,r):rU(e,r,!0),l=i;do{if(s===0){Hk&&!i&&HM(e,r,0,!1);break}else{if(a=e.current.alternate,l&&!A0e(a)){s=rU(e,r,!1),l=!1;continue}if(s===2){if(l=r,e.errorRecoveryDisabledLanes&l)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){r=c;e:{var d=e;s=a2;var h=d.current.memoizedState.isDehydrated;if(h&&(Fk(d,c).flags|=256),c=rU(d,c,!1),c!==2){if(qY&&!h){d.errorRecoveryDisabledLanes|=l,xz|=l,s=4;break e}l=Ys,Ys=s,l!==null&&(Ys===null?Ys=l:Ys.push.apply(Ys,l))}s=c}if(l=!1,s!==2)continue}}if(s===1){Fk(e,0),HM(e,r,0,!0);break}e:{switch(i=e,l=s,l){case 0:case 1:throw Error(Yt(345));case 4:if((r&4194048)!==r)break;case 6:HM(i,r,Yl,!qM);break e;case 2:Ys=null;break;case 3:case 5:break;default:throw Error(Yt(329))}if((r&62914560)===r&&(s=p4+300-ql(),10<s)){if(HM(i,r,Yl,!qM),r4(i,0,!0)!==0)break e;UZ=r,i.timeoutHandle=nre(s$.bind(null,i,a,Ys,H5,YU,r,Yl,xz,Ok,qM,l,"Throttled",-0,0),s);break e}s$(i,a,Ys,H5,YU,r,Yl,xz,Ok,qM,l,null,-0,0)}}break}while(1);GZ(e)}function s$(e,r,a,i,s,l,c,d,h,g,x,v,b,y){if(e.timeoutHandle=-1,v=r.subtreeFlags,v&8192||(v&16785408)===16785408){v={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:NZ},Rte(r,l,v);var k=(l&62914560)===l?p4-ql():(l&4194048)===l?Ete-ql():0;if(k=hze(v,k),k!==null){UZ=l,e.cancelPendingCommit=k(c$.bind(null,e,r,l,a,i,s,c,d,h,x,v,null,b,y)),HM(e,l,c,!g);return}}c$(e,r,l,a,i,s,c,d,h)}function A0e(e){for(var r=e;;){var a=r.tag;if((a===0||a===11||a===15)&&r.flags&16384&&(a=r.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var s=a[i],l=s.getSnapshot;s=s.value;try{if(!Wl(l(),s))return!1}catch(c){return!1}}if(a=r.child,r.subtreeFlags&16384&&a!==null)a.return=r,r=a;else{if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function HM(e,r,a,i){r&=~HY,r&=~xz,e.suspendedLanes|=r,e.pingedLanes&=~r,i&&(e.warmLanes|=r),i=e.expirationTimes;for(var s=r;0<s;){var l=31-Vl(s),c=1<<l;i[l]=-1,s&=~c}a!==0&&q$(e,a,r)}function m4(){return(jo&6)===0?(I2(0,!1),!1):!0}function VY(){if(_o!==null){if(da===0)var e=_o.return;else e=_o,FZ=Cz=null,RY(e),kk=null,Z2=0,e=_o;for(;e!==null;)gte(e.alternate,e),e=e.return;_o=null}}function Fk(e,r){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,J0e(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),UZ=0,VY(),Ea=e,_o=a=jZ(e.current,null),zo=r,da=0,dl=null,qM=!1,Hk=b2(e,r),qY=!1,Ok=Yl=HY=xz=o8=En=0,Ys=a2=null,YU=!1,(r&8)!==0&&(r|=r&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=r;0<i;){var s=31-Vl(i),l=1<<s;r|=e[s],i&=~l}return WZ=r,f4(),a}function Fte(e,r){co=null,qr.H=m2,r===qk||r===l4?(r=jJ(),da=3):r===wY?(r=jJ(),da=4):da=r===jY?8:r!==null&&typeof r==="object"&&typeof r.then==="function"?6:1,dl=r,_o===null&&(En=1,B5(e,pc(r,e.current)))}function jte(){var e=Gl.current;return e===null?!0:(zo&4194048)===zo?hc===null?!0:!1:(zo&62914560)===zo||(zo&536870912)!==0?e===hc:!1}function Bte(){var e=qr.H;return qr.H=m2,e===null?m2:e}function Ute(){var e=qr.A;return qr.A=P0e,e}function V5(){En=4,qM||(zo&4194048)!==zo&&Gl.current!==null||(Hk=!0),(o8&134217727)===0&&(xz&134217727)===0||Ea===null||HM(Ea,zo,Yl,!1)}function rU(e,r,a){var i=jo;jo|=2;var s=Bte(),l=Ute();if(Ea!==e||zo!==r)H5=null,Fk(e,r);r=!1;var c=En;e:do try{if(da!==0&&_o!==null){var d=_o,h=dl;switch(da){case 8:VY(),c=6;break e;case 3:case 2:case 9:case 6:Gl.current===null&&(r=!0);var g=da;if(da=0,dl=null,bk(e,d,h,g),a&&Hk){c=0;break e}break;default:g=da,da=0,dl=null,bk(e,d,h,g)}}E0e(),c=En;break}catch(x){Fte(e,x)}while(1);return r&&e.shellSuspendCounter++,FZ=Cz=null,jo=i,qr.H=s,qr.A=l,_o===null&&(Ea=null,zo=0,f4()),c}function E0e(){for(;_o!==null;)Yte(_o)}function D0e(e,r){var a=jo;jo|=2;var i=Bte(),s=Ute();Ea!==e||zo!==r?(H5=null,q5=ql()+500,Fk(e,r)):Hk=b2(e,r);e:do try{if(da!==0&&_o!==null){r=_o;var l=dl;t:switch(da){case 1:da=0,dl=null,bk(e,r,l,1);break;case 2:case 9:if(FJ(l)){da=0,dl=null,l$(r);break}r=function(){da!==2&&da!==9||Ea!==e||(da=7),GZ(e)},l.then(r,r);break e;case 3:da=7;break e;case 4:da=5;break e;case 7:FJ(l)?(da=0,dl=null,l$(r)):(da=0,dl=null,bk(e,r,l,7));break;case 5:var c=null;switch(_o.tag){case 26:c=_o.memoizedState;case 5:case 27:var d=_o;if(c?cre(c):d.stateNode.complete){da=0,dl=null;var h=d.sibling;if(h!==null)_o=h;else{var g=d.return;g!==null?(_o=g,h4(g)):_o=null}break t}}da=0,dl=null,bk(e,r,l,5);break;case 6:da=0,dl=null,bk(e,r,l,6);break;case 8:VY(),En=6;break e;default:throw Error(Yt(462))}}O0e();break}catch(x){Fte(e,x)}while(1);if(FZ=Cz=null,qr.H=i,qr.A=s,jo=a,_o!==null)return 0;return Ea=null,zo=0,f4(),En}function O0e(){for(;_o!==null&&!owe();)Yte(_o)}function Yte(e){var r=hte(e.alternate,e,WZ);e.memoizedProps=e.pendingProps,r===null?h4(e):_o=r}function l$(e){var r=e,a=r.alternate;switch(r.tag){case 15:case 0:r=r$(a,r,r.pendingProps,r.type,void 0,zo);break;case 11:r=r$(a,r,r.pendingProps,r.type.render,r.ref,zo);break;case 5:RY(r);default:gte(a,r),r=_o=vee(r,WZ),r=hte(a,r,WZ)}e.memoizedProps=e.pendingProps,r===null?h4(e):_o=r}function bk(e,r,a,i){FZ=Cz=null,RY(r),kk=null,Z2=0;var s=r.return;try{if(z0e(e,s,r,a,zo)){En=1,B5(e,pc(a,e.current)),_o=null;return}}catch(l){if(s!==null)throw _o=s,l;En=1,B5(e,pc(a,e.current)),_o=null;return}if(r.flags&32768){if(ko||i===1)e=!0;else if(Hk||(zo&536870912)!==0)e=!1;else if(qM=e=!0,i===2||i===9||i===3||i===6)i=Gl.current,i!==null&&i.tag===13&&(i.flags|=16384);qte(r,e)}else h4(r)}function h4(e){var r=e;do{if((r.flags&32768)!==0){qte(r,qM);return}e=r.return;var a=k0e(r.alternate,r,WZ);if(a!==null){_o=a;return}if(r=r.sibling,r!==null){_o=r;return}_o=r=e}while(r!==null);En===0&&(En=5)}function qte(e,r){do{var a=C0e(e.alternate,e);if(a!==null){a.flags&=32767,_o=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!r&&(e=e.sibling,e!==null)){_o=e;return}_o=e=a}while(e!==null);En=6,_o=null}function c$(e,r,a,i,s,l,c,d,h){e.cancelPendingCommit=null;do g4();while(zi!==0);if((jo&6)!==0)throw Error(Yt(327));if(r!==null){if(r===e.current)throw Error(Yt(177));if(l=r.lanes|r.childLanes,l|=gY,Zwe(e,a,l,c,d,h),e===Ea&&(_o=Ea=null,zo=0),Nk=r,XM=e,UZ=a,qU=l,HU=s,Dte=i,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,B0e(I5,function(){return Kte(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||i){i=qr.T,qr.T=null,s=Uo.p,Uo.p=2,c=jo,jo|=4;try{I0e(e,r,a)}finally{jo=c,Uo.p=s,qr.T=i}}zi=1,Hte(),Vte(),Wte()}}function Hte(){if(zi===1){zi=0;var e=XM,r=Nk,a=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||a){a=qr.T,qr.T=null;var i=Uo.p;Uo.p=2;var s=jo;jo|=4;try{kte(r,e);var l=JU,c=dee(e.containerInfo),{focusedElem:d,selectionRange:h}=l;if(c!==d&&d&&d.ownerDocument&&uee(d.ownerDocument.documentElement,d)){if(h!==null&&hY(d)){var{start:g,end:x}=h;if(x===void 0&&(x=g),"selectionStart"in d)d.selectionStart=g,d.selectionEnd=Math.min(x,d.value.length);else{var v=d.ownerDocument||document,b=v&&v.defaultView||window;if(b.getSelection){var y=b.getSelection(),k=d.textContent.length,T=Math.min(h.start,k),U=h.end===void 0?T:Math.min(h.end,k);!y.extend&&T>U&&(c=U,U=T,T=c);var N=PJ(d,T),j=PJ(d,U);if(N&&j&&(y.rangeCount!==1||y.anchorNode!==N.node||y.anchorOffset!==N.offset||y.focusNode!==j.node||y.focusOffset!==j.offset)){var G=v.createRange();G.setStart(N.node,N.offset),y.removeAllRanges(),T>U?(y.addRange(G),y.extend(j.node,j.offset)):(G.setEnd(j.node,j.offset),y.addRange(G))}}}}v=[];for(y=d;y=y.parentNode;)y.nodeType===1&&v.push({element:y,left:y.scrollLeft,top:y.scrollTop});typeof d.focus==="function"&&d.focus();for(d=0;d<v.length;d++){var X=v[d];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}e4=!!QU,JU=QU=null}finally{jo=s,Uo.p=i,qr.T=a}}e.current=r,zi=2}}function Vte(){if(zi===2){zi=0;var e=XM,r=Nk,a=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||a){a=qr.T,qr.T=null;var i=Uo.p;Uo.p=2;var s=jo;jo|=4;try{bte(e,r.alternate,r)}finally{jo=s,Uo.p=i,qr.T=a}}zi=3}}function Wte(){if(zi===4||zi===3){zi=0,awe();var e=XM,r=Nk,a=UZ,i=Dte;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?zi=5:(zi=0,Nk=XM=null,Gte(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(KM=null),lY(a),r=r.stateNode,Hl&&typeof Hl.onCommitFiberRoot==="function")try{Hl.onCommitFiberRoot(_2,r,void 0,(r.current.flags&128)===128)}catch(h){}if(i!==null){r=qr.T,s=Uo.p,Uo.p=2,qr.T=null;try{for(var l=e.onRecoverableError,c=0;c<i.length;c++){var d=i[c];l(d.value,{componentStack:d.stack})}}finally{qr.T=r,Uo.p=s}}(UZ&3)!==0&&g4(),GZ(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===VU?n2++:(n2=0,VU=e):n2=0,I2(0,!1)}}function Gte(e,r){(e.pooledCacheLanes&=r)===0&&(r=e.pooledCache,r!=null&&(e.pooledCache=null,L2(r)))}function g4(){return Hte(),Vte(),Wte(),Kte()}function Kte(){if(zi!==5)return!1;var e=XM,r=qU;qU=0;var a=lY(UZ),i=qr.T,s=Uo.p;try{Uo.p=32>a?32:a,qr.T=null,a=HU,HU=null;var l=XM,c=UZ;if(zi=0,Nk=XM=null,UZ=0,(jo&6)!==0)throw Error(Yt(331));var d=jo;if(jo|=4,Tte(l.current),Ite(l,l.current,c,a),jo=d,I2(0,!1),Hl&&typeof Hl.onPostCommitFiberRoot==="function")try{Hl.onPostCommitFiberRoot(_2,l)}catch(h){}return!0}finally{Uo.p=s,qr.T=i,Gte(e,r)}}function u$(e,r,a){r=pc(a,r),r=FU(e.stateNode,r,2),e=Mz(e,r,2),e!==null&&(o4(e,2),GZ(e))}function pa(e,r,a){if(e.tag===3)u$(e,e,a);else for(;r!==null;){if(r.tag===3){u$(r,e,a);break}else if(r.tag===1){var i=r.stateNode;if(typeof r.type.getDerivedStateFromError==="function"||typeof i.componentDidCatch==="function"&&(KM===null||!KM.has(i))){e=pc(a,e),a=cte(2),i=Mz(r,a,2),i!==null&&(ute(a,i,r,e),o4(i,2),GZ(i));break}}r=r.return}}function oU(e,r,a){var i=e.pingCache;if(i===null){i=e.pingCache=new T0e;var s=new Set;i.set(r,s)}else s=i.get(r),s===void 0&&(s=new Set,i.set(r,s));s.has(a)||(qY=!0,s.add(a),e=N0e.bind(null,e,r,a),r.then(e,e))}function N0e(e,r,a){var i=e.pingCache;i!==null&&i.delete(r),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ea===e&&(zo&a)===a&&(En===4||En===3&&(zo&62914560)===zo&&300>ql()-p4?(jo&2)===0&&Fk(e,0):HY|=a,Ok===zo&&(Ok=0)),GZ(e)}function Xte(e,r){r===0&&(r=Y$()),e=kz(e,r),e!==null&&(o4(e,r),GZ(e))}function F0e(e){var r=e.memoizedState,a=0;r!==null&&(a=r.retryLane),Xte(e,a)}function j0e(e,r){var a=0;switch(e.tag){case 31:case 13:var{stateNode:i,memoizedState:s}=e;s!==null&&(a=s.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(Yt(314))}i!==null&&i.delete(r),Xte(e,a)}function B0e(e,r){return sY(e,r)}var W5=null,ck=null,WU=!1,G5=!1,aU=!1,VM=0;function GZ(e){e!==ck&&e.next===null&&(ck===null?W5=ck=e:ck=ck.next=e),G5=!0,WU||(WU=!0,Y0e())}function I2(e,r){if(!aU&&G5){aU=!0;do{var a=!1;for(var i=W5;i!==null;){if(!r)if(e!==0){var s=i.pendingLanes;if(s===0)var l=0;else{var c=i.suspendedLanes,d=i.pingedLanes;l=(1<<31-Vl(42|e)+1)-1,l&=s&~(c&~d),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(a=!0,d$(i,l))}else l=zo,l=r4(i,i===Ea?l:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(l&3)===0||b2(i,l)||(a=!0,d$(i,l));i=i.next}}while(a);aU=!1}}function U0e(){Qte()}function Qte(){G5=WU=!1;var e=0;VM!==0&&Q0e()&&(e=VM);for(var r=ql(),a=null,i=W5;i!==null;){var s=i.next,l=Jte(i,r);if(l===0)i.next=null,a===null?W5=s:a.next=s,s===null&&(ck=a);else if(a=i,e!==0||(l&3)!==0)G5=!0;i=s}zi!==0&&zi!==5||I2(e,!1),VM!==0&&(VM=0)}function Jte(e,r){for(var{suspendedLanes:a,pingedLanes:i,expirationTimes:s}=e,l=e.pendingLanes&-62914561;0<l;){var c=31-Vl(l),d=1<<c,h=s[c];if(h===-1){if((d&a)===0||(d&i)!==0)s[c]=dwe(d,r)}else h<=r&&(e.expiredLanes|=d);l&=~d}if(r=Ea,a=zo,a=r4(e,e===r?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===r&&(da===2||da===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&A6(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||b2(e,a)){if(r=a&-a,r===e.callbackPriority)return r;switch(i!==null&&A6(i),lY(a)){case 2:case 8:a=B$;break;case 32:a=I5;break;case 268435456:a=U$;break;default:a=I5}return i=$te.bind(null,e),a=sY(a,i),e.callbackPriority=r,e.callbackNode=a,r}return i!==null&&i!==null&&A6(i),e.callbackPriority=2,e.callbackNode=null,2}function $te(e,r){if(zi!==0&&zi!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(g4()&&e.callbackNode!==a)return null;var i=zo;if(i=r4(e,e===Ea?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0)return null;return Nte(e,i,r),Jte(e,ql()),e.callbackNode!=null&&e.callbackNode===a?$te.bind(null,e):null}function d$(e,r){if(g4())return null;Nte(e,r,!0)}function Y0e(){$0e(function(){(jo&6)!==0?sY(j$,U0e):Qte()})}function WY(){if(VM===0){var e=Ak;e===0&&(e=JN,JN<<=1,(JN&261888)===0&&(JN=256)),VM=e}return VM}function Z$(e){return e==null||typeof e==="symbol"||typeof e==="boolean"?null:typeof e==="function"?e:d5(""+e)}function p$(e,r){var a=r.ownerDocument.createElement("input");return a.name=r.name,a.value=r.value,e.id&&a.setAttribute("form",e.id),r.parentNode.insertBefore(a,r),e=new FormData(e),a.parentNode.removeChild(a),e}function q0e(e,r,a,i,s){if(r==="submit"&&a&&a.stateNode===s){var l=Z$((s[Xs]||null).action),c=i.submitter;c&&(r=(r=c[Xs]||null)?Z$(r.formAction):c.getAttribute("formAction"),r!==null&&(l=r,c=null));var d=new a4("action","action",null,i,s);e.push({event:d,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(VM!==0){var h=c?p$(s,c):new FormData(s);OU(a,{pending:!0,data:h,method:s.method,action:l},null,h)}}else typeof l==="function"&&(d.preventDefault(),h=c?p$(s,c):new FormData(s),OU(a,{pending:!0,data:h,method:s.method,action:l},l,h))},currentTarget:s}]})}}for(GP=0;GP<zU.length;GP++)KP=zU[GP],GU=KP.toLowerCase(),KU=KP[0].toUpperCase()+KP.slice(1),cu(GU,"on"+KU);var KP,GU,KU,GP;cu(pee,"onAnimationEnd");cu(mee,"onAnimationIteration");cu(hee,"onAnimationStart");cu("dblclick","onDoubleClick");cu("focusin","onFocus");cu("focusout","onBlur");cu(n0e,"onTransitionRun");cu(i0e,"onTransitionStart");cu(f0e,"onTransitionCancel");cu(gee,"onTransitionEnd");Pk("onMouseEnter",["mouseout","mouseover"]);Pk("onMouseLeave",["mouseout","mouseover"]);Pk("onPointerEnter",["pointerout","pointerover"]);Pk("onPointerLeave",["pointerout","pointerover"]);zz("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));zz("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));zz("onBeforeInput",["compositionend","keypress","textInput","paste"]);zz("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));zz("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));zz("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var h2="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(" "),H0e=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(h2));function ere(e,r){r=(r&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],s=i.event;i=i.listeners;e:{var l=void 0;if(r)for(var c=i.length-1;0<=c;c--){var d=i[c],h=d.instance,g=d.currentTarget;if(d=d.listener,h!==l&&s.isPropagationStopped())break e;l=d,s.currentTarget=g;try{l(s)}catch(x){P5(x)}s.currentTarget=null,l=h}else for(c=0;c<i.length;c++){if(d=i[c],h=d.instance,g=d.currentTarget,d=d.listener,h!==l&&s.isPropagationStopped())break e;l=d,s.currentTarget=g;try{l(s)}catch(x){P5(x)}s.currentTarget=null,l=h}}}}function yo(e,r){var a=r[gU];a===void 0&&(a=r[gU]=new Set);var i=e+"__bubble";a.has(i)||(rre(r,e,2,!1),a.add(i))}function nU(e,r,a){var i=0;r&&(i|=4),rre(a,e,i,r)}var s5="_reactListening"+Math.random().toString(36).slice(2);function tre(e){if(!e[s5]){e[s5]=!0,K$.forEach(function(a){a!=="selectionchange"&&(H0e.has(a)||nU(a,!1,e),nU(a,!0,e))});var r=e.nodeType===9?e:e.ownerDocument;r===null||r[s5]||(r[s5]=!0,nU("selectionchange",!1,r))}}function rre(e,r,a,i){switch(Zre(r)){case 2:var s=yze;break;case 8:s=_ze;break;default:s=QY}a=s.bind(null,r,a,e),s=void 0,!_U||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(s=!0),i?s!==void 0?e.addEventListener(r,a,{capture:!0,passive:s}):e.addEventListener(r,a,!0):s!==void 0?e.addEventListener(r,a,{passive:s}):e.addEventListener(r,a,!1)}function iU(e,r,a,i,s){var l=i;if((r&1)===0&&(r&2)===0&&i!==null)e:for(;;){if(i===null)return;var c=i.tag;if(c===3||c===4){var d=i.stateNode.containerInfo;if(d===s)break;if(c===4)for(c=i.return;c!==null;){var h=c.tag;if((h===3||h===4)&&c.stateNode.containerInfo===s)return;c=c.return}for(;d!==null;){if(c=pk(d),c===null)return;if(h=c.tag,h===5||h===6||h===26||h===27){i=l=c;continue e}d=d.parentNode}}i=i.return}oee(function(){var g=l,x=dY(a),v=[];e:{var b=Mee.get(e);if(b!==void 0){var y=a4,k=e;switch(e){case"keypress":if(p5(a)===0)break e;case"keydown":case"keyup":y=Owe;break;case"focusin":k="focus",y=F6;break;case"focusout":k="blur",y=F6;break;case"beforeblur":case"afterblur":y=F6;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=bJ;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=zwe;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=jwe;break;case pee:case mee:case hee:y=kwe;break;case gee:y=Uwe;break;case"scroll":case"scrollend":y=bwe;break;case"wheel":y=qwe;break;case"copy":case"cut":case"paste":y=Iwe;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=zJ;break;case"toggle":case"beforetoggle":y=Vwe}var T=(r&4)!==0,U=!T&&(e==="scroll"||e==="scrollend"),N=T?b!==null?b+"Capture":null:b;T=[];for(var j=g,G;j!==null;){var X=j;if(G=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||G===null||N===null||(X=s2(j,N),X!=null&&T.push(g2(j,X,G))),U)break;j=j.return}0<T.length&&(b=new y(b,k,null,a,x),v.push({event:b,listeners:T}))}}if((r&7)===0){e:{if(b=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",b&&a!==yU&&(k=a.relatedTarget||a.fromElement)&&(pk(k)||k[w2]))break e;if(y||b){if(b=x.window===x?x:(b=x.ownerDocument)?b.defaultView||b.parentWindow:window,y){if(k=a.relatedTarget||a.toElement,y=g,k=k?pk(k):null,k!==null&&(U=y2(k),T=k.tag,k!==U||T!==5&&T!==27&&T!==6))k=null}else y=null,k=g;if(y!==k){if(T=bJ,X="onMouseLeave",N="onMouseEnter",j="mouse",e==="pointerout"||e==="pointerover")T=zJ,X="onPointerLeave",N="onPointerEnter",j="pointer";if(U=y==null?b:YP(y),G=k==null?b:YP(k),b=new T(X,j+"leave",y,a,x),b.target=U,b.relatedTarget=G,X=null,pk(x)===g&&(T=new T(N,j+"enter",k,a,x),T.target=G,T.relatedTarget=U,X=T),U=X,y&&k)t:{T=V0e,N=y,j=k,G=0;for(X=N;X;X=T(X))G++;X=0;for(var J=j;J;J=T(J))X++;for(;0<G-X;)N=T(N),G--;for(;0<X-G;)j=T(j),X--;for(;G--;){if(N===j||j!==null&&N===j.alternate){T=N;break t}N=T(N),j=T(j)}T=null}else T=null;y!==null&&m$(v,b,y,T,!1),k!==null&&U!==null&&m$(v,U,k,T,!0)}}}e:{if(b=g?YP(g):window,y=b.nodeName&&b.nodeName.toLowerCase(),y==="select"||y==="input"&&b.type==="file")var ee=CJ;else if(kJ(b))if(lee)ee=r0e;else{ee=e0e;var re=$we}else y=b.nodeName,!y||y.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?g&&uY(g.elementType)&&(ee=CJ):ee=t0e;if(ee&&(ee=ee(e,g))){see(v,ee,a,x);break e}re&&re(e,b,g),e==="focusout"&&g&&b.type==="number"&&g.memoizedProps.value!=null&&vU(b,"number",b.value)}switch(re=g?YP(g):window,e){case"focusin":if(kJ(re)||re.contentEditable==="true")gk=re,bU=g,JP=null;break;case"focusout":JP=bU=gk=null;break;case"mousedown":wU=!0;break;case"contextmenu":case"mouseup":case"dragend":wU=!1,TJ(v,a,x);break;case"selectionchange":if(a0e)break;case"keydown":case"keyup":TJ(v,a,x)}var oe;if(mY)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else hk?iee(e,a)&&(fe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(fe="onCompositionStart");if(fe&&(nee&&a.locale!=="ko"&&(hk||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&hk&&(oe=aee()):(YM=x,ZY=("value"in YM)?YM.value:YM.textContent,hk=!0)),re=K5(g,fe),0<re.length&&(fe=new wJ(fe,e,null,a,x),v.push({event:fe,listeners:re}),oe?fe.data=oe:(oe=fee(a),oe!==null&&(fe.data=oe)))),oe=Gwe?Kwe(e,a):Xwe(e,a))fe=K5(g,"onBeforeInput"),0<fe.length&&(re=new wJ("onBeforeInput","beforeinput",null,a,x),v.push({event:re,listeners:fe}),re.data=oe);q0e(v,e,g,a,x)}ere(v,r)})}function g2(e,r,a){return{instance:e,listener:r,currentTarget:a}}function K5(e,r){for(var a=r+"Capture",i=[];e!==null;){var s=e,l=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||l===null||(s=s2(e,a),s!=null&&i.unshift(g2(e,s,l)),s=s2(e,r),s!=null&&i.push(g2(e,s,l))),e.tag===3)return i;e=e.return}return[]}function V0e(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function m$(e,r,a,i,s){for(var l=r._reactName,c=[];a!==null&&a!==i;){var d=a,h=d.alternate,g=d.stateNode;if(d=d.tag,h!==null&&h===i)break;d!==5&&d!==26&&d!==27||g===null||(h=g,s?(g=s2(a,l),g!=null&&c.unshift(g2(a,g,h))):s||(g=s2(a,l),g!=null&&c.push(g2(a,g,h)))),a=a.return}c.length!==0&&e.push({event:r,listeners:c})}var W0e=/\r\n?/g,G0e=/\u0000|\uFFFD/g;function h$(e){return(typeof e==="string"?e:""+e).replace(W0e,`
|
|
10
|
+
`).replace(G0e,"")}function ore(e,r){return r=h$(r),h$(e)===r?!0:!1}function ya(e,r,a,i,s,l){switch(a){case"children":typeof i==="string"?r==="body"||r==="textarea"&&i===""||Tk(e,i):(typeof i==="number"||typeof i==="bigint")&&r!=="body"&&Tk(e,""+i);break;case"className":t5(e,"class",i);break;case"tabIndex":t5(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":t5(e,a,i);break;case"style":ree(e,i,l);break;case"data":if(r!=="object"){t5(e,"data",i);break}case"src":case"href":if(i===""&&(r!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i==="function"||typeof i==="symbol"||typeof i==="boolean"){e.removeAttribute(a);break}i=d5(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i==="function"){e.setAttribute(a,"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 l==="function"&&(a==="formAction"?(r!=="input"&&ya(e,r,"name",s.name,s,null),ya(e,r,"formEncType",s.formEncType,s,null),ya(e,r,"formMethod",s.formMethod,s,null),ya(e,r,"formTarget",s.formTarget,s,null)):(ya(e,r,"encType",s.encType,s,null),ya(e,r,"method",s.method,s,null),ya(e,r,"target",s.target,s,null)));if(i==null||typeof i==="symbol"||typeof i==="boolean"){e.removeAttribute(a);break}i=d5(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=NZ);break;case"onScroll":i!=null&&yo("scroll",e);break;case"onScrollEnd":i!=null&&yo("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!=="object"||!("__html"in i))throw Error(Yt(61));if(a=i.__html,a!=null){if(s.children!=null)throw Error(Yt(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!=="function"&&typeof i!=="symbol";break;case"muted":e.muted=i&&typeof i!=="function"&&typeof i!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i==="function"||typeof i==="boolean"||typeof i==="symbol"){e.removeAttribute("xlink:href");break}a=d5(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!=="function"&&typeof i!=="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);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":i&&typeof i!=="function"&&typeof i!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!=="function"&&typeof i!=="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!=="function"&&typeof i!=="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i==="function"||typeof i==="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":yo("beforetoggle",e),yo("toggle",e),u5(e,"popover",i);break;case"xlinkActuate":IZ(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":IZ(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":IZ(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":IZ(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":IZ(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":IZ(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":IZ(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":IZ(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":IZ(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":u5(e,"is",i);break;case"innerText":case"textContent":break;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=ywe.get(a)||a,u5(e,a,i)}}function XU(e,r,a,i,s,l){switch(a){case"style":ree(e,i,l);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!=="object"||!("__html"in i))throw Error(Yt(61));if(a=i.__html,a!=null){if(s.children!=null)throw Error(Yt(60));e.innerHTML=a}}break;case"children":typeof i==="string"?Tk(e,i):(typeof i==="number"||typeof i==="bigint")&&Tk(e,""+i);break;case"onScroll":i!=null&&yo("scroll",e);break;case"onScrollEnd":i!=null&&yo("scrollend",e);break;case"onClick":i!=null&&(e.onclick=NZ);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!X$.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),r=a.slice(2,s?a.length-7:void 0),l=e[Xs]||null,l=l!=null?l[a]:null,typeof l==="function"&&e.removeEventListener(r,l,s),typeof i==="function")){typeof l!=="function"&&l!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(r,i,s);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):u5(e,a,i)}}}function lf(e,r,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yo("error",e),yo("load",e);var i=!1,s=!1,l;for(l in a)if(a.hasOwnProperty(l)){var c=a[l];if(c!=null)switch(l){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Yt(137,r));default:ya(e,r,l,c,a,null)}}s&&ya(e,r,"srcSet",a.srcSet,a,null),i&&ya(e,r,"src",a.src,a,null);return;case"input":yo("invalid",e);var d=l=c=s=null,h=null,g=null;for(i in a)if(a.hasOwnProperty(i)){var x=a[i];if(x!=null)switch(i){case"name":s=x;break;case"type":c=x;break;case"checked":h=x;break;case"defaultChecked":g=x;break;case"value":l=x;break;case"defaultValue":d=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(Yt(137,r));break;default:ya(e,r,i,x,a,null)}}$$(e,l,d,h,g,c,s,!1);return;case"select":yo("invalid",e),i=c=l=null;for(s in a)if(a.hasOwnProperty(s)&&(d=a[s],d!=null))switch(s){case"value":l=d;break;case"defaultValue":c=d;break;case"multiple":i=d;default:ya(e,r,s,d,a,null)}r=l,a=c,e.multiple=!!i,r!=null?zk(e,!!i,r,!1):a!=null&&zk(e,!!i,a,!0);return;case"textarea":yo("invalid",e),l=s=i=null;for(c in a)if(a.hasOwnProperty(c)&&(d=a[c],d!=null))switch(c){case"value":i=d;break;case"defaultValue":s=d;break;case"children":l=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(Yt(91));break;default:ya(e,r,c,d,a,null)}tee(e,i,s,l);return;case"option":for(h in a)if(a.hasOwnProperty(h)&&(i=a[h],i!=null))switch(h){case"selected":e.selected=i&&typeof i!=="function"&&typeof i!=="symbol";break;default:ya(e,r,h,i,a,null)}return;case"dialog":yo("beforetoggle",e),yo("toggle",e),yo("cancel",e),yo("close",e);break;case"iframe":case"object":yo("load",e);break;case"video":case"audio":for(i=0;i<h2.length;i++)yo(h2[i],e);break;case"image":yo("error",e),yo("load",e);break;case"details":yo("toggle",e);break;case"embed":case"source":case"link":yo("error",e),yo("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(g in a)if(a.hasOwnProperty(g)&&(i=a[g],i!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(Yt(137,r));default:ya(e,r,g,i,a,null)}return;default:if(uY(r)){for(x in a)a.hasOwnProperty(x)&&(i=a[x],i!==void 0&&XU(e,r,x,i,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(i=a[d],i!=null&&ya(e,r,d,i,a,null))}function K0e(e,r,a,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,l=null,c=null,d=null,h=null,g=null,x=null;for(y in a){var v=a[y];if(a.hasOwnProperty(y)&&v!=null)switch(y){case"checked":break;case"value":break;case"defaultValue":h=v;default:i.hasOwnProperty(y)||ya(e,r,y,null,i,v)}}for(var b in i){var y=i[b];if(v=a[b],i.hasOwnProperty(b)&&(y!=null||v!=null))switch(b){case"type":l=y;break;case"name":s=y;break;case"checked":g=y;break;case"defaultChecked":x=y;break;case"value":c=y;break;case"defaultValue":d=y;break;case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(Yt(137,r));break;default:y!==v&&ya(e,r,b,y,i,v)}}xU(e,c,d,h,g,x,l,s);return;case"select":y=c=d=b=null;for(l in a)if(h=a[l],a.hasOwnProperty(l)&&h!=null)switch(l){case"value":break;case"multiple":y=h;default:i.hasOwnProperty(l)||ya(e,r,l,null,i,h)}for(s in i)if(l=i[s],h=a[s],i.hasOwnProperty(s)&&(l!=null||h!=null))switch(s){case"value":b=l;break;case"defaultValue":d=l;break;case"multiple":c=l;default:l!==h&&ya(e,r,s,l,i,h)}r=d,a=c,i=y,b!=null?zk(e,!!a,b,!1):!!i!==!!a&&(r!=null?zk(e,!!a,r,!0):zk(e,!!a,a?[]:"",!1));return;case"textarea":y=b=null;for(d in a)if(s=a[d],a.hasOwnProperty(d)&&s!=null&&!i.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:ya(e,r,d,null,i,s)}for(c in i)if(s=i[c],l=a[c],i.hasOwnProperty(c)&&(s!=null||l!=null))switch(c){case"value":b=s;break;case"defaultValue":y=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(Yt(91));break;default:s!==l&&ya(e,r,c,s,i,l)}eee(e,b,y);return;case"option":for(var k in a)if(b=a[k],a.hasOwnProperty(k)&&b!=null&&!i.hasOwnProperty(k))switch(k){case"selected":e.selected=!1;break;default:ya(e,r,k,null,i,b)}for(h in i)if(b=i[h],y=a[h],i.hasOwnProperty(h)&&b!==y&&(b!=null||y!=null))switch(h){case"selected":e.selected=b&&typeof b!=="function"&&typeof b!=="symbol";break;default:ya(e,r,h,b,i,y)}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 T in a)b=a[T],a.hasOwnProperty(T)&&b!=null&&!i.hasOwnProperty(T)&&ya(e,r,T,null,i,b);for(g in i)if(b=i[g],y=a[g],i.hasOwnProperty(g)&&b!==y&&(b!=null||y!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(Yt(137,r));break;default:ya(e,r,g,b,i,y)}return;default:if(uY(r)){for(var U in a)b=a[U],a.hasOwnProperty(U)&&b!==void 0&&!i.hasOwnProperty(U)&&XU(e,r,U,void 0,i,b);for(x in i)b=i[x],y=a[x],!i.hasOwnProperty(x)||b===y||b===void 0&&y===void 0||XU(e,r,x,b,i,y);return}}for(var N in a)b=a[N],a.hasOwnProperty(N)&&b!=null&&!i.hasOwnProperty(N)&&ya(e,r,N,null,i,b);for(v in i)b=i[v],y=a[v],!i.hasOwnProperty(v)||b===y||b==null&&y==null||ya(e,r,v,b,i,y)}function g$(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function X0e(){if(typeof performance.getEntriesByType==="function"){for(var e=0,r=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var s=a[i],{transferSize:l,initiatorType:c,duration:d}=s;if(l&&d&&g$(c)){c=0,d=s.responseEnd;for(i+=1;i<a.length;i++){var h=a[i],g=h.startTime;if(g>d)break;var x=h.transferSize,v=h.initiatorType;x&&g$(v)&&(h=h.responseEnd,c+=x*(h<d?1:(d-g)/(h-g)))}if(--i,r+=8*(l+c)/(s.duration/1000),e++,10<e)break}}if(0<e)return r/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}var QU=null,JU=null;function X5(e){return e.nodeType===9?e:e.ownerDocument}function M$(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function are(e,r){if(e===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&r==="foreignObject"?0:e}function $U(e,r){return e==="textarea"||e==="noscript"||typeof r.children==="string"||typeof r.children==="number"||typeof r.children==="bigint"||typeof r.dangerouslySetInnerHTML==="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var fU=null;function Q0e(){var e=window.event;if(e&&e.type==="popstate"){if(e===fU)return!1;return fU=e,!0}return fU=null,!1}var nre=typeof setTimeout==="function"?setTimeout:void 0,J0e=typeof clearTimeout==="function"?clearTimeout:void 0,x$=typeof Promise==="function"?Promise:void 0,$0e=typeof queueMicrotask==="function"?queueMicrotask:typeof x$<"u"?function(e){return x$.resolve(null).then(e).catch(eze)}:nre;function eze(e){setTimeout(function(){throw e})}function n8(e){return e==="head"}function v$(e,r){var a=r,i=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(s),Bk(r);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")i2(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,i2(a);for(var l=a.firstChild;l;){var c=l.nextSibling,d=l.nodeName;l[z2]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&l.rel.toLowerCase()==="stylesheet"||a.removeChild(l),l=c}}else a==="body"&&i2(e.ownerDocument.body);a=s}while(a);Bk(r)}function y$(e,r){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?r?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(r?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$")if(e===0)break;else e--;else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function eY(e){var r=e.firstChild;r&&r.nodeType===10&&(r=r.nextSibling);for(;r;){var a=r;switch(r=r.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":eY(a),cY(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function tze(e,r,a,i){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==r.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!i)if(r==="input"&&e.type==="hidden"){var l=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;else if(!e[z2])switch(r){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(l!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=Mc(e.nextSibling),e===null)break}return null}function rze(e,r,a){if(r==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=Mc(e.nextSibling),e===null)return null}return e}function ire(e,r){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r)return null;if(e=Mc(e.nextSibling),e===null)return null}return e}function tY(e){return e.data==="$?"||e.data==="$~"}function rY(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function oze(e,r){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=r;else if(e.data!=="$?"||a.readyState!=="loading")r();else{var i=function(){r(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Mc(e){for(;e!=null;e=e.nextSibling){var r=e.nodeType;if(r===1||r===3)break;if(r===8){if(r=e.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return e}var oY=null;function _$(e){e=e.nextSibling;for(var r=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(r===0)return Mc(e.nextSibling);r--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||r++}e=e.nextSibling}return null}function b$(e){e=e.previousSibling;for(var r=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(r===0)return e;r--}else a!=="/$"&&a!=="/&"||r++}e=e.previousSibling}return null}function fre(e,r,a){switch(r=X5(a),e){case"html":if(e=r.documentElement,!e)throw Error(Yt(452));return e;case"head":if(e=r.head,!e)throw Error(Yt(453));return e;case"body":if(e=r.body,!e)throw Error(Yt(454));return e;default:throw Error(Yt(451))}}function i2(e){for(var r=e.attributes;r.length;)e.removeAttributeNode(r[0]);cY(e)}var xc=new Map,w$=new Set;function Q5(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var KZ=Uo.d;Uo.d={f:aze,r:nze,D:ize,C:fze,L:sze,m:lze,X:uze,S:cze,M:dze};function aze(){var e=KZ.f(),r=m4();return e||r}function nze(e){var r=Uk(e);r!==null&&r.tag===5&&r.type==="form"?rte(r):KZ.r(e)}var Vk=typeof document>"u"?null:document;function sre(e,r,a){var i=Vk;if(i&&typeof r==="string"&&r){var s=dc(r);s='link[rel="'+e+'"][href="'+s+'"]',typeof a==="string"&&(s+='[crossorigin="'+a+'"]'),w$.has(s)||(w$.add(s),e={rel:e,crossOrigin:a,href:r},i.querySelector(s)===null&&(r=i.createElement("link"),lf(r,"link",e),Di(r),i.head.appendChild(r)))}}function ize(e){KZ.D(e),sre("dns-prefetch",e,null)}function fze(e,r){KZ.C(e,r),sre("preconnect",e,r)}function sze(e,r,a){KZ.L(e,r,a);var i=Vk;if(i&&e&&r){var s='link[rel="preload"][as="'+dc(r)+'"]';r==="image"?a&&a.imageSrcSet?(s+='[imagesrcset="'+dc(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(s+='[imagesizes="'+dc(a.imageSizes)+'"]')):s+='[href="'+dc(e)+'"]':s+='[href="'+dc(e)+'"]';var l=s;switch(r){case"style":l=jk(e);break;case"script":l=Wk(e)}xc.has(l)||(e=Zn({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:e,as:r},a),xc.set(l,e),i.querySelector(s)!==null||r==="style"&&i.querySelector(R2(l))||r==="script"&&i.querySelector(P2(l))||(r=i.createElement("link"),lf(r,"link",e),Di(r),i.head.appendChild(r)))}}function lze(e,r){KZ.m(e,r);var a=Vk;if(a&&e){var i=r&&typeof r.as==="string"?r.as:"script",s='link[rel="modulepreload"][as="'+dc(i)+'"][href="'+dc(e)+'"]',l=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=Wk(e)}if(!xc.has(l)&&(e=Zn({rel:"modulepreload",href:e},r),xc.set(l,e),a.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(P2(l)))return}i=a.createElement("link"),lf(i,"link",e),Di(i),a.head.appendChild(i)}}}function cze(e,r,a){KZ.S(e,r,a);var i=Vk;if(i&&e){var s=wk(i).hoistableStyles,l=jk(e);r=r||"default";var c=s.get(l);if(!c){var d={loading:0,preload:null};if(c=i.querySelector(R2(l)))d.loading=5;else{e=Zn({rel:"stylesheet",href:e,"data-precedence":r},a),(a=xc.get(l))&&GY(e,a);var h=c=i.createElement("link");Di(h),lf(h,"link",e),h._p=new Promise(function(g,x){h.onload=g,h.onerror=x}),h.addEventListener("load",function(){d.loading|=1}),h.addEventListener("error",function(){d.loading|=2}),d.loading|=4,b5(c,r,i)}c={type:"stylesheet",instance:c,count:1,state:d},s.set(l,c)}}}function uze(e,r){KZ.X(e,r);var a=Vk;if(a&&e){var i=wk(a).hoistableScripts,s=Wk(e),l=i.get(s);l||(l=a.querySelector(P2(s)),l||(e=Zn({src:e,async:!0},r),(r=xc.get(s))&&KY(e,r),l=a.createElement("script"),Di(l),lf(l,"link",e),a.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},i.set(s,l))}}function dze(e,r){KZ.M(e,r);var a=Vk;if(a&&e){var i=wk(a).hoistableScripts,s=Wk(e),l=i.get(s);l||(l=a.querySelector(P2(s)),l||(e=Zn({src:e,async:!0,type:"module"},r),(r=xc.get(s))&&KY(e,r),l=a.createElement("script"),Di(l),lf(l,"link",e),a.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},i.set(s,l))}}function z$(e,r,a,i){var s=(s=WM.current)?Q5(s):null;if(!s)throw Error(Yt(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(r=jk(a.href),a=wk(s).hoistableStyles,i=a.get(r),i||(i={type:"style",instance:null,count:0,state:null},a.set(r,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=jk(a.href);var l=wk(s).hoistableStyles,c=l.get(e);if(c||(s=s.ownerDocument||s,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,c),(l=s.querySelector(R2(e)))&&!l._p&&(c.instance=l,c.state.loading=5),xc.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},xc.set(e,a),l||Zze(s,e,a,c.state))),r&&i===null)throw Error(Yt(528,""));return c}if(r&&i!==null)throw Error(Yt(529,""));return null;case"script":return r=a.async,a=a.src,typeof a==="string"&&r&&typeof r!=="function"&&typeof r!=="symbol"?(r=Wk(a),a=wk(s).hoistableScripts,i=a.get(r),i||(i={type:"script",instance:null,count:0,state:null},a.set(r,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(Yt(444,e))}}function jk(e){return'href="'+dc(e)+'"'}function R2(e){return'link[rel="stylesheet"]['+e+"]"}function lre(e){return Zn({},e,{"data-precedence":e.precedence,precedence:null})}function Zze(e,r,a,i){e.querySelector('link[rel="preload"][as="style"]['+r+"]")?i.loading=1:(r=e.createElement("link"),i.preload=r,r.addEventListener("load",function(){return i.loading|=1}),r.addEventListener("error",function(){return i.loading|=2}),lf(r,"link",a),Di(r),e.head.appendChild(r))}function Wk(e){return'[src="'+dc(e)+'"]'}function P2(e){return"script[async]"+e}function S$(e,r,a){if(r.count++,r.instance===null)switch(r.type){case"style":var i=e.querySelector('style[data-href~="'+dc(a.href)+'"]');if(i)return r.instance=i,Di(i),i;var s=Zn({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Di(i),lf(i,"style",s),b5(i,a.precedence,e),r.instance=i;case"stylesheet":s=jk(a.href);var l=e.querySelector(R2(s));if(l)return r.state.loading|=4,r.instance=l,Di(l),l;i=lre(a),(s=xc.get(s))&&GY(i,s),l=(e.ownerDocument||e).createElement("link"),Di(l);var c=l;return c._p=new Promise(function(d,h){c.onload=d,c.onerror=h}),lf(l,"link",i),r.state.loading|=4,b5(l,a.precedence,e),r.instance=l;case"script":if(l=Wk(a.src),s=e.querySelector(P2(l)))return r.instance=s,Di(s),s;if(i=a,s=xc.get(l))i=Zn({},a),KY(i,s);return e=e.ownerDocument||e,s=e.createElement("script"),Di(s),lf(s,"link",i),e.head.appendChild(s),r.instance=s;case"void":return null;default:throw Error(Yt(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(i=r.instance,r.state.loading|=4,b5(i,a.precedence,e));return r.instance}function b5(e,r,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,l=s,c=0;c<i.length;c++){var d=i[c];if(d.dataset.precedence===r)l=d;else if(l!==s)break}l?l.parentNode.insertBefore(e,l.nextSibling):(r=a.nodeType===9?a.head:a,r.insertBefore(e,r.firstChild))}function GY(e,r){e.crossOrigin==null&&(e.crossOrigin=r.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=r.referrerPolicy),e.title==null&&(e.title=r.title)}function KY(e,r){e.crossOrigin==null&&(e.crossOrigin=r.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=r.referrerPolicy),e.integrity==null&&(e.integrity=r.integrity)}var w5=null;function L$(e,r,a){if(w5===null){var i=new Map,s=w5=new Map;s.set(a,i)}else s=w5,i=s.get(a),i||(i=new Map,s.set(a,i));if(i.has(e))return i;i.set(e,null),a=a.getElementsByTagName(e);for(s=0;s<a.length;s++){var l=a[s];if(!(l[z2]||l[Qi]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var c=l.getAttribute(r)||"";c=e+c;var d=i.get(c);d?d.push(l):i.set(c,[l])}}return i}function k$(e,r,a){e=e.ownerDocument||e,e.head.insertBefore(a,r==="title"?e.querySelector("head > title"):null)}function pze(e,r,a){if(a===1||r.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof r.precedence!=="string"||typeof r.href!=="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!=="string"||typeof r.href!=="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return e=r.disabled,typeof r.precedence==="string"&&e==null;default:return!0}case"script":if(r.async&&typeof r.async!=="function"&&typeof r.async!=="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src==="string")return!0}return!1}function cre(e){return e.type==="stylesheet"&&(e.state.loading&3)===0?!1:!0}function mze(e,r,a,i){if(a.type==="stylesheet"&&(typeof i.media!=="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=jk(i.href),l=r.querySelector(R2(s));if(l){r=l._p,r!==null&&typeof r==="object"&&typeof r.then==="function"&&(e.count++,e=J5.bind(e),r.then(e,e)),a.state.loading|=4,a.instance=l,Di(l);return}l=r.ownerDocument||r,i=lre(i),(s=xc.get(s))&&GY(i,s),l=l.createElement("link"),Di(l);var c=l;c._p=new Promise(function(d,h){c.onload=d,c.onerror=h}),lf(l,"link",i),a.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,r),(r=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=J5.bind(e),r.addEventListener("load",a),r.addEventListener("error",a))}}var sU=0;function hze(e,r){return e.stylesheets&&e.count===0&&z5(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&z5(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},60000+r);0<e.imgBytes&&sU===0&&(sU=62500*X0e());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&z5(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>sU?50:800)+r);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function J5(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)z5(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $5=null;function z5(e,r){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$5=new Map,r.forEach(gze,e),$5=null,J5.call(e))}function gze(e,r){if(!(r.state.loading&4)){var a=$5.get(e);if(a)var i=a.get(null);else{a=new Map,$5.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<s.length;l++){var c=s[l];if(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")a.set(c.dataset.precedence,c),i=c}i&&a.set(null,i)}s=r.instance,c=s.getAttribute("data-precedence"),l=a.get(c)||i,l===i&&a.set(null,s),a.set(c,s),this.count++,i=J5.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),l?l.parentNode.insertBefore(s,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),r.state.loading|=4}}var M2={$$typeof:OZ,Provider:null,Consumer:null,_currentValue:Zz,_currentValue2:Zz,_threadCount:0};function Mze(e,r,a,i,s,l,c,d,h){this.tag=1,this.containerInfo=e,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=E6(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=E6(0),this.hiddenUpdates=E6(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=l,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=h,this.incompleteTransitions=new Map}function xze(e,r,a,i,s,l,c,d,h,g,x,v){return e=new Mze(e,r,a,c,h,g,x,v,d),r=1,l===!0&&(r|=24),l=ml(3,null,null,r),e.current=l,l.stateNode=e,r=_Y(),r.refCount++,e.pooledCache=r,r.refCount++,l.memoizedState={element:i,isDehydrated:a,cache:r},zY(l),e}function vze(e){if(!e)return vk;return e=vk,e}function ure(e,r,a,i,s,l){s=vze(s),i.context===null?i.context=s:i.pendingContext=s,i=gz(r),i.payload={element:a},l=l===void 0?null:l,l!==null&&(i.callback=l),a=Mz(e,i,r),a!==null&&(Ws(a,e,r),zA(a,e,r))}function C$(e,r){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<r?a:r}}function XY(e,r){C$(e,r),(e=e.alternate)&&C$(e,r)}function dre(e){if(e.tag===13||e.tag===31){var r=kz(e,67108864);r!==null&&Ws(r,e,67108864),XY(e,67108864)}}function I$(e){if(e.tag===13||e.tag===31){var r=gc();r=W$(r);var a=kz(e,r);a!==null&&Ws(a,e,r),XY(e,r)}}var e4=!0;function yze(e,r,a,i){var s=qr.T;qr.T=null;var l=Uo.p;try{Uo.p=2,QY(e,r,a,i)}finally{Uo.p=l,qr.T=s}}function _ze(e,r,a,i){var s=qr.T;qr.T=null;var l=Uo.p;try{Uo.p=8,QY(e,r,a,i)}finally{Uo.p=l,qr.T=s}}function QY(e,r,a,i){if(e4){var s=aY(i);if(s===null)iU(e,r,i,t4,a),R$(e,i);else if(wze(s,e,r,a,i))i.stopPropagation();else if(R$(e,i),r&4&&-1<bze.indexOf(e)){for(;s!==null;){var l=Uk(s);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var c=lz(l.pendingLanes);if(c!==0){var d=l;d.pendingLanes|=2;for(d.entangledLanes|=2;c;){var h=1<<31-Vl(c);d.entanglements[1]|=h,c&=~h}GZ(l),(jo&6)===0&&(q5=ql()+500,I2(0,!1))}}break;case 31:case 13:d=kz(l,2),d!==null&&Ws(d,l,2),m4(),XY(l,2)}if(l=aY(i),l===null&&iU(e,r,i,t4,a),l===s)break;s=l}s!==null&&i.stopPropagation()}else iU(e,r,i,null,a)}}function aY(e){return e=dY(e),JY(e)}var t4=null;function JY(e){if(t4=null,e=pk(e),e!==null){var r=y2(e);if(r===null)e=null;else{var a=r.tag;if(a===13){if(e=E$(r),e!==null)return e;e=null}else if(a===31){if(e=D$(r),e!==null)return e;e=null}else if(a===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;e=null}else r!==e&&(e=null)}}return t4=e,null}function Zre(e){switch(e){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(nwe()){case j$:return 2;case B$:return 8;case I5:case iwe:return 32;case U$:return 268435456;default:return 32}default:return 32}}var nY=!1,QM=null,JM=null,$M=null,x2=new Map,v2=new Map,BM=[],bze="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 R$(e,r){switch(e){case"focusin":case"focusout":QM=null;break;case"dragenter":case"dragleave":JM=null;break;case"mouseover":case"mouseout":$M=null;break;case"pointerover":case"pointerout":x2.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":v2.delete(r.pointerId)}}function jP(e,r,a,i,s,l){if(e===null||e.nativeEvent!==l)return e={blockedOn:r,domEventName:a,eventSystemFlags:i,nativeEvent:l,targetContainers:[s]},r!==null&&(r=Uk(r),r!==null&&dre(r)),e;return e.eventSystemFlags|=i,r=e.targetContainers,s!==null&&r.indexOf(s)===-1&&r.push(s),e}function wze(e,r,a,i,s){switch(r){case"focusin":return QM=jP(QM,e,r,a,i,s),!0;case"dragenter":return JM=jP(JM,e,r,a,i,s),!0;case"mouseover":return $M=jP($M,e,r,a,i,s),!0;case"pointerover":var l=s.pointerId;return x2.set(l,jP(x2.get(l)||null,e,r,a,i,s)),!0;case"gotpointercapture":return l=s.pointerId,v2.set(l,jP(v2.get(l)||null,e,r,a,i,s)),!0}return!1}function pre(e){var r=pk(e.target);if(r!==null){var a=y2(r);if(a!==null){if(r=a.tag,r===13){if(r=E$(a),r!==null){e.blockedOn=r,hJ(e.priority,function(){I$(a)});return}}else if(r===31){if(r=D$(a),r!==null){e.blockedOn=r,hJ(e.priority,function(){I$(a)});return}}else if(r===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function S5(e){if(e.blockedOn!==null)return!1;for(var r=e.targetContainers;0<r.length;){var a=aY(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);yU=i,a.target.dispatchEvent(i),yU=null}else return r=Uk(a),r!==null&&dre(r),e.blockedOn=a,!1;r.shift()}return!0}function P$(e,r,a){S5(e)&&a.delete(r)}function zze(){nY=!1,QM!==null&&S5(QM)&&(QM=null),JM!==null&&S5(JM)&&(JM=null),$M!==null&&S5($M)&&($M=null),x2.forEach(P$),v2.forEach(P$)}function l5(e,r){e.blockedOn===r&&(e.blockedOn=null,nY||(nY=!0,Us(Bs,zze)))}var c5=null;function T$(e){c5!==e&&(c5=e,Us(Bs,function(){c5===e&&(c5=null);for(var r=0;r<e.length;r+=3){var a=e[r],i=e[r+1],s=e[r+2];if(typeof i!=="function")if(JY(i||a)===null)continue;else break;var l=Uk(a);l!==null&&(e.splice(r,3),r-=3,OU(l,{pending:!0,data:s,method:a.method,action:i},i,s))}}))}function Bk(e){function r(h){return l5(h,e)}QM!==null&&l5(QM,e),JM!==null&&l5(JM,e),$M!==null&&l5($M,e),x2.forEach(r),v2.forEach(r);for(var a=0;a<BM.length;a++){var i=BM[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<BM.length&&(a=BM[0],a.blockedOn===null);)pre(a),a.blockedOn===null&&BM.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var s=a[i],l=a[i+1],c=s[Xs]||null;if(typeof l==="function")c||T$(a);else if(c){var d=null;if(l&&l.hasAttribute("formAction")){if(s=l,c=l[Xs]||null)d=c.formAction;else if(JY(s)!==null)continue}else d=c.action;typeof d==="function"?a[i+1]=d:(a.splice(i,3),i-=3),T$(a)}}}function Sze(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(c){return s=c})},focusReset:"manual",scroll:"manual"})}function r(){s!==null&&(s(),s=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var i=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),s!==null&&(s(),s=null)}}}function $Y(e){this._internalRoot=e}e7.prototype.render=$Y.prototype.render=function(e){var r=this._internalRoot;if(r===null)throw Error(Yt(409));var a=r.current,i=gc();ure(a,i,e,r,null,null)};e7.prototype.unmount=$Y.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var r=e.containerInfo;ure(e.current,2,null,e,null,null),m4(),r[w2]=null}};function e7(e){this._internalRoot=e}e7.prototype.unstable_scheduleHydration=function(e){if(e){var r=G$();e={blockedOn:null,target:e,priority:r};for(var a=0;a<BM.length&&r!==0&&r<BM[a].priority;a++);BM.splice(a,0,e),a===0&&pre(e)}};var A$=Zs;if(A$!=="19.2.8")throw Error(Yt(527,A$,"19.2.8"));Uo.findDOMNode=function(e){var r=e._reactInternals;if(r===void 0){if(typeof e.render==="function")throw Error(Yt(188));throw e=Object.keys(e).join(","),Error(Yt(268,e))}return e=Jbe(r),e=e!==null?O$(e):null,e=e===null?null:e.stateNode,e};var Lze={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:qr,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){if(uk=__REACT_DEVTOOLS_GLOBAL_HOOK__,!uk.isDisabled&&uk.supportsFiber)try{_2=uk.inject(Lze),Hl=uk}catch(e){}}var uk;var mre=function(e,r){if(!Qbe(e))throw Error(Yt(299));var a=!1,i="",s=_0e,l=b0e,c=w0e;return r!==null&&r!==void 0&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onUncaughtError!==void 0&&(s=r.onUncaughtError),r.onCaughtError!==void 0&&(l=r.onCaughtError),r.onRecoverableError!==void 0&&(c=r.onRecoverableError)),r=xze(e,1,!1,null,null,a,i,null,s,l,c,Sze),e[w2]=r.current,tre(e),new $Y(r)};hre();S();var Rze={theme:"system",setTheme:()=>null},gre=lt(Rze);function Mre({children:e,defaultTheme:r="system",storageKey:a="vite-ui-theme",...i}){let[s,l]=u(()=>localStorage.getItem(a)||r);m(()=>{let d=window.document.documentElement;if(d.classList.remove("light","dark"),s==="system"){let h=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";d.classList.add(h);return}d.classList.add(s)},[s]);let c={theme:s,setTheme:(d)=>{localStorage.setItem(a,d),l(d)}};return t(gre.Provider,{...i,value:c,children:e})}var xre=()=>{let e=pt(gre);if(e===void 0)throw Error("useTheme must be used within a ThemeProvider");return e};var Pze=/^[\w!#$%&'*.^`|~+-]+$/;var Tze=(e,r,a={})=>{if(!Pze.test(e))throw Error("Invalid cookie name");let i=`${e}=${r}`;if(e.startsWith("__Secure-")&&!a.secure)throw Error("__Secure- Cookie must have Secure attributes");if(e.startsWith("__Host-")){if(!a.secure)throw Error("__Host- Cookie must have Secure attributes");if(a.path!=="/")throw Error('__Host- Cookie must have Path attributes with "/"');if(a.domain)throw Error("__Host- Cookie must not have Domain attributes")}for(let s of["domain","path","sameSite","priority"])if(a[s]&&/[;\r\n]/.test(a[s]))throw Error(`${s} must not contain ";", "\\r", or "\\n"`);if(a&&typeof a.maxAge==="number"&&a.maxAge>=0){if(a.maxAge>34560000)throw Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");i+=`; Max-Age=${a.maxAge|0}`}if(a.domain&&a.prefix!=="host")i+=`; Domain=${a.domain}`;if(a.path)i+=`; Path=${a.path}`;if(a.expires){if(a.expires.getTime()-Date.now()>34560000000)throw Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");i+=`; Expires=${a.expires.toUTCString()}`}if(a.httpOnly)i+="; HttpOnly";if(a.secure)i+="; Secure";if(a.sameSite)i+=`; SameSite=${a.sameSite.charAt(0).toUpperCase()+a.sameSite.slice(1)}`;if(a.priority)i+=`; Priority=${a.priority.charAt(0).toUpperCase()+a.priority.slice(1)}`;if(a.partitioned){if(!a.secure)throw Error("Partitioned Cookie must have Secure attributes");i+="; Partitioned"}return i},vre=(e,r,a)=>(r=encodeURIComponent(r),Tze(e,r,a));var yre=(e,r)=>(e=e.replace(/\/+$/,""),e=e+"/",r=r.replace(/^\/+/,""),e+r),x4=(e,r)=>{for(let[a,i]of Object.entries(r)){let s=new RegExp("/:"+a+"(?:{[^/]+})?\\??(?=/|$)");e=e.replace(s,()=>i?`/${i}`:"")}return e},_re=(e)=>{let r=new URLSearchParams;for(let[a,i]of Object.entries(e)){if(i===void 0)continue;if(Array.isArray(i))for(let s of i){if(s===void 0)continue;r.append(a,s)}else r.set(a,i)}return r},bre=(e,r)=>{switch(r){case"ws":return e.replace(/^http/,"ws");case"http":return e.replace(/^ws/,"http")}},t7=(e)=>{if(/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e))return e.replace(/\/index(?=\?|$)/,"/");return e.replace(/\/index(?=\?|$)/,"")};function M4(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function r7(e,r){if(!M4(e)&&!M4(r))return r;let a={...e};for(let i in r){let s=r[i];if(M4(a[i])&&M4(s))a[i]=r7(a[i],s);else a[i]=s}return a}var wre=(e,r)=>new Proxy(()=>{},{get(i,s){if(typeof s!=="string"||s==="then")return;return wre(e,[...r,s])},apply(i,s,l){return e({path:r,args:l})}}),zre=(e,r)=>{let a=r.toString();return a?`${e}?${a}`:e},Eze=class{url;method;buildSearchParams;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,r,a){this.url=e,this.method=r,this.buildSearchParams=a.buildSearchParams}fetch=async(e,r)=>{if(e){if(e.query)this.queryParams=this.buildSearchParams(e.query);if(e.form){let d=new FormData;for(let[h,g]of Object.entries(e.form)){if(g===void 0)continue;if(Array.isArray(g))for(let x of g){if(x===void 0)continue;d.append(h,x)}else d.append(h,g)}this.rBody=d}if(e.json!==void 0)this.rBody=JSON.stringify(e.json),this.cType="application/json";if(e.param)this.pathParams=e.param}let a=this.method.toUpperCase(),i={...e?.header,...typeof r?.headers==="function"?await r.headers():r?.headers};if(e?.cookie){let d=[];for(let[h,g]of Object.entries(e.cookie)){if(g===void 0)continue;d.push(vre(h,g))}if(d.length>0)i.Cookie=d.join("; ")}if(this.cType)i["Content-Type"]=this.cType;let s=new Headers;for(let[d,h]of Object.entries(i))if(h!==void 0)s.set(d,h);let l=this.url;if(l=t7(l),l=x4(l,this.pathParams),this.queryParams)l=zre(l,this.queryParams);a=this.method.toUpperCase();let c=!(a==="GET"||a==="HEAD");return(r?.fetch||fetch)(l,{body:c?this.rBody:void 0,method:a,headers:s,...r?.init})}},o7=(e,r)=>wre(function a(i){let s=r?.buildSearchParams??_re,l=[...i.path],c=l.slice(-3).reverse();if(c[0]==="toString"){if(c[1]==="name")return c[2]||"";return a.toString()}if(c[0]==="valueOf"){if(c[1]==="name")return c[2]||"";return a}let d="";if(/^\$/.test(c[0])){let v=l.pop();if(v)d=v.replace(/^\$/,"")}let h=l.join("/"),g=yre(e,h);if(d==="url"||d==="path"){let v=g;if(i.args[0]){if(i.args[0].param)v=x4(g,i.args[0].param);if(i.args[0].query)v=zre(v,s(i.args[0].query))}if(v=t7(v),d==="url")return new URL(v);return v.slice(e.replace(/\/+$/,"").length).replace(/^\/?/,"/")}if(d==="ws"){let v=bre(i.args[0]?.param?x4(g,i.args[0].param):g,"ws"),b=new URL(v),y=i.args[0]?.query;if(y)s(y).forEach((U,N)=>{b.searchParams.append(N,U)});return((...T)=>{if(r?.webSocket!==void 0&&typeof r.webSocket==="function")return r.webSocket(...T);return new WebSocket(...T)})(b.toString())}let x=new Eze(g,d,{buildSearchParams:s});if(d){r??={};let v={...i.args[1]},b=r.headers,y=v.headers;if(b&&y)v.headers=async()=>({...typeof b==="function"?await b():b,...typeof y==="function"?await y():y});let k=r7(r,v);return x.fetch(i.args[0],k)}return x},[]);var Sre=(e)=>{let r,a=new Set,i=(g,x)=>{let v=typeof g==="function"?g(r):g;if(!Object.is(v,r)){let b=r;r=(x!=null?x:typeof v!=="object"||v===null)?v:Object.assign({},r,v),a.forEach((y)=>y(r,b))}},s=()=>r,d={setState:i,getState:s,getInitialState:()=>h,subscribe:(g)=>(a.add(g),()=>a.delete(g))},h=r=e(i,s,d);return d},Lre=(e)=>e?Sre(e):Sre;S();var Dze=(e)=>e;function Oze(e,r=Dze){let a=Xn(e.subscribe,P(()=>r(e.getState()),[e,r]),P(()=>r(e.getInitialState()),[e,r]));return mi(a),a}var kre=(e)=>{let r=Lre(e),a=(i)=>Oze(r,i);return Object.assign(a,r),a},Rr=(e)=>e?kre(e):kre;var Cre=(e)=>!!e.dispatchFromDevtools&&typeof e.dispatch==="function",T2=new Map,v4=(e)=>{let r=T2.get(e);if(!r)return{};return Object.fromEntries(Object.entries(r.stores).map(([a,i])=>[a,i.getState()]))},Nze=(e,r,a)=>{if(e===void 0)return{type:"untracked",connection:r.connect(a)};let i=T2.get(a.name);if(i)return{type:"tracked",store:e,...i};let s={connection:r.connect(a),stores:{}};return T2.set(a.name,s),{type:"tracked",store:e,...s}},Fze=(e,r)=>{if(r===void 0)return;let a=T2.get(e);if(!a)return;if(delete a.stores[r],Object.keys(a.stores).length===0)T2.delete(e)},jze=/^at (?:new |async )?(.+?) \(/,Bze=/^([^@]+)@/;function Uze(e){var r,a,i;if(!e)return;let s=e.split(`
|
|
11
|
+
`),l=s.findIndex((d)=>d.includes("api.setState"));if(l<0)return;let c=((r=s[l+1])==null?void 0:r.trim())||"";return((a=jze.exec(c))==null?void 0:a[1])||((i=Bze.exec(c))==null?void 0:i[1])}var Yze=(e,r={})=>(a,i,s)=>{let{enabled:l,anonymousActionType:c,store:d,...h}=r,g;try{g=(l!=null?l:(import.meta.env?import.meta.env.MODE:void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(T){}if(!g)return e(a,i,s);let{connection:x,...v}=Nze(d,g,h),b=!0;s.setState=(T,U,N)=>{let j=a(T,U);if(!b)return j;let G=N===void 0?{type:c||Uze(Error().stack)||"anonymous"}:typeof N==="string"?{type:N}:N;if(d===void 0)return x==null||x.send(G,i()),j;return x==null||x.send({...G,type:`${d}/${G.type}`},{...v4(h.name),[d]:s.getState()}),j},s.devtools={cleanup:()=>{if(x&&typeof x.unsubscribe==="function")x.unsubscribe();Fze(h.name,d)}};let y=(...T)=>{let U=b;b=!1,a(...T),b=U},k=e(s.setState,i,s);if(v.type==="untracked")x==null||x.init(k);else v.stores[v.store]=s,x==null||x.init(Object.fromEntries(Object.entries(v.stores).map(([T,U])=>[T,T===v.store?k:U.getState()])));if(Cre(s)){let T=!1,U=s.dispatch;s.dispatch=(...N)=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&N[0].type==="__setState"&&!T)console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),T=!0;U(...N)}}return x.subscribe((T)=>{var U;switch(T.type){case"ACTION":if(typeof T.payload!=="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return a7(T.payload,(N)=>{if(N.type==="__setState"){if(d===void 0){y(N.state);return}if(Object.keys(N.state).length!==1)console.error(`
|
|
12
|
+
[zustand devtools middleware] Unsupported __setState action format.
|
|
13
|
+
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
|
14
|
+
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
15
|
+
`);let j=N.state[d];if(j===void 0||j===null)return;if(JSON.stringify(s.getState())!==JSON.stringify(j))y(j);return}if(Cre(s))s.dispatch(N)});case"DISPATCH":switch(T.payload.type){case"RESET":if(y(k),d===void 0)return x==null?void 0:x.init(s.getState());return x==null?void 0:x.init(v4(h.name));case"COMMIT":if(d===void 0){x==null||x.init(s.getState());return}return x==null?void 0:x.init(v4(h.name));case"ROLLBACK":return a7(T.state,(N)=>{if(d===void 0){y(N),x==null||x.init(s.getState());return}y(N[d]),x==null||x.init(v4(h.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return a7(T.state,(N)=>{if(d===void 0){y(N);return}if(JSON.stringify(s.getState())!==JSON.stringify(N[d]))y(N[d])});case"IMPORT_STATE":{let{nextLiftedState:N}=T.payload,j=(U=N.computedStates.slice(-1)[0])==null?void 0:U.state;if(!j)return;if(d===void 0)y(j);else y(j[d]);x==null||x.send(null,N);return}case"PAUSE_RECORDING":return b=!b}return}}),k},Ire=Yze,a7=(e,r)=>{let a;try{a=JSON.parse(e)}catch(i){console.error("[zustand devtools middleware] Could not parse the received json",i)}if(a!==void 0)r(a)};function Iz(e,r){let a;try{a=e()}catch(s){return}return{getItem:(s)=>{var l;let c=(h)=>{if(h===null)return null;return JSON.parse(h,r==null?void 0:r.reviver)},d=(l=a.getItem(s))!=null?l:null;if(d instanceof Promise)return d.then(c);return c(d)},setItem:(s,l)=>a.setItem(s,JSON.stringify(l,r==null?void 0:r.replacer)),removeItem:(s)=>a.removeItem(s)}}var n7=(e)=>(r)=>{try{let a=e(r);if(a instanceof Promise)return a;return{then(i){return n7(i)(a)},catch(i){return this}}}catch(a){return{then(i){return this},catch(i){return n7(i)(a)}}}},qze=(e,r)=>(a,i,s)=>{let l={storage:Iz(()=>window.localStorage),partialize:(U)=>U,version:0,merge:(U,N)=>({...N,...U}),...r},c=!1,d=0,h=new Set,g=new Set,x=l.storage;if(!x)return e((...U)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),a(...U)},i,s);let v=()=>{let U=l.partialize({...i()});return x.setItem(l.name,{state:U,version:l.version})},b=s.setState;s.setState=(U,N)=>(b(U,N),v());let y=e((...U)=>(a(...U),v()),i,s);s.getInitialState=()=>y;let k,T=()=>{var U,N;if(!x)return;let j=++d;c=!1,h.forEach((X)=>{var J;return X((J=i())!=null?J:y)});let G=((N=l.onRehydrateStorage)==null?void 0:N.call(l,(U=i())!=null?U:y))||void 0;return n7(x.getItem.bind(x))(l.name).then((X)=>{if(X)if(typeof X.version==="number"&&X.version!==l.version){if(l.migrate){let J=l.migrate(X.state,X.version);if(J instanceof Promise)return J.then((ee)=>[!0,ee]);return[!0,J]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,X.state];return[!1,void 0]}).then((X)=>{var J;if(j!==d)return;let[ee,re]=X;if(k=l.merge(re,(J=i())!=null?J:y),a(k,!0),ee)return v()}).then(()=>{if(j!==d)return;G==null||G(i(),void 0),k=i(),c=!0,g.forEach((X)=>X(k))}).catch((X)=>{if(j!==d)return;G==null||G(void 0,X)})};if(s.persist={setOptions:(U)=>{if(l={...l,...U},U.storage)x=U.storage},clearStorage:()=>{++d,x==null||x.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>T(),hasHydrated:()=>c,onHydrate:(U)=>(h.add(U),()=>{h.delete(U)}),onFinishHydration:(U)=>(g.add(U),()=>{g.delete(U)})},!l.skipHydration)T();return k||y},Gk=qze;var bf=Rr()(Gk((e)=>({user:null,setUser:(r)=>e({user:r}),clearAuth:()=>e({user:null})}),{name:"auth-storage",storage:Iz(()=>localStorage)}));var Hze=async(e,r)=>{let a=await fetch(e,r);if(a.status===401){let i=e.toString();if(!window.location.pathname.includes("/login")&&!window.location.pathname.includes("/signup")&&!window.location.pathname.startsWith("/share/")&&!i.includes("/api/authn"))bf.getState().clearAuth(),window.location.href="/login"}return a},A=o7("/",{fetch:Hze,init:{credentials:"include"}});S();var y4=(...e)=>e.filter((r,a,i)=>Boolean(r)&&r.trim()!==""&&i.indexOf(r)===a).join(" ").trim();var Rre=(e)=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Pre=(e)=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,a,i)=>i?i.toUpperCase():a.toLowerCase());var i7=(e)=>{let r=Pre(e);return r.charAt(0).toUpperCase()+r.slice(1)};S();var _4={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"};var Tre=(e)=>{for(let r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};S();var Vze=lt({});var Are=()=>pt(Vze);var Ere=F(({color:e,size:r,strokeWidth:a,absoluteStrokeWidth:i,className:s="",children:l,iconNode:c,...d},h)=>{let{size:g=24,strokeWidth:x=2,absoluteStrokeWidth:v=!1,color:b="currentColor",className:y=""}=Are()??{},k=i??v?Number(a??x)*24/Number(r??g):a??x;return q("svg",{ref:h,..._4,width:r??g??_4.width,height:r??g??_4.height,stroke:e??b,strokeWidth:k,className:y4("lucide",y,s),...!l&&!Tre(d)&&{"aria-hidden":"true"},...d},[...c.map(([T,U])=>q(T,U)),...Array.isArray(l)?l:[l]])});var I=(e,r)=>{let a=F(({className:i,...s},l)=>q(Ere,{ref:l,iconNode:r,className:y4(`lucide-${Rre(i7(e))}`,`lucide-${e}`,i),...s}));return a.displayName=i7(e),a};var Wze=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],ir=I("circle-check",Wze);var Gze=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],zn=I("cloud-upload",Gze);var Kze=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],i8=I("columns-2",Kze);var Xze=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Sr=I("ellipsis-vertical",Xze);var Qze=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],rr=I("ellipsis",Qze);var Jze=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],O=I("loader-circle",Jze);var $ze=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],f8=I("octagon-x",$ze);var eSe=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Tn=I("rotate-ccw-clock",eSe);var tSe=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 7v7",key:"1x2jlm"}],["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M16 7v9",key:"1hp2iy"}]],Fo=I("square-kanban",tSe);var rSe=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Qr=I("square-pen",rSe);var oSe=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Kr=I("triangle-alert",oSe);var aSe=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],to=I("arrow-right",aSe);var nSe=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],ea=I("arrow-up",nSe);var iSe=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],ta=I("bookmark",iSe);var fSe=[["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"}]],Tt=I("bot",fSe);var sSe=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]],jn=I("calendar",sSe);var lSe=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],A2=I("check-check",lSe);var cSe=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Pe=I("check",cSe);var uSe=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ve=I("chevron-down",uSe);var dSe=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],nn=I("chevron-left",dSe);var ZSe=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Et=I("chevron-right",ZSe);var pSe=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ma=I("chevron-up",pSe);var mSe=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],Rz=I("chevrons-down-up",mSe);var hSe=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Pz=I("chevrons-up-down",hSe);var gSe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],E2=I("circle",gSe);var MSe=[["path",{d:"m12.296 3.464 3.02 3.956",key:"qash78"}],["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z",key:"1h7j8b"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"4lm6w1"}],["path",{d:"m6.18 5.276 3.1 3.899",key:"zjj9t3"}]],D2=I("clapperboard",MSe);var xSe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],er=I("clock",xSe);var vSe=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],ht=I("download",vSe);var ySe=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],qn=I("file-text",ySe);var _Se=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],ar=I("file",_Se);var bSe=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],ka=I("files",bSe);var wSe=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2",key:"1urifu"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],zs=I("folder-clock",wSe);var zSe=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],lr=I("folder",zSe);var SSe=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],js=I("grip-vertical",SSe);var LSe=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ro=I("image",LSe);var kSe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Hn=I("info",kSe);var CSe=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],no=I("layout-grid",CSe);var ISe=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],qs=I("link-2",ISe);var RSe=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Lo=I("list",RSe);var PSe=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],on=I("lock",PSe);var TSe=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],O2=I("log-in",TSe);var ASe=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],hi=I("mail",ASe);var ESe=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],XZ=I("menu",ESe);var DSe=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],xo=I("message-square",DSe);var OSe=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],Ra=I("paperclip",OSe);var NSe=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],de=I("plus",NSe);var FSe=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ut=I("search",FSe);var jSe=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Pa=I("share-2",jSe);var BSe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],So=I("target",BSe);var USe=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],we=I("trash-2",USe);var YSe=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["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"}]],Jo=I("user-check",YSe);var qSe=[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],N2=I("user-plus",qSe);var HSe=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ne=I("x",HSe);S();var Kk=Rr((e)=>({isMobileMenuOpen:!1,activeItem:null,activeItemId:null,openMobileMenu:(r=null)=>e({isMobileMenuOpen:!0,activeItemId:typeof r==="string"?r:null,activeItem:typeof r==="number"?r:null}),closeMobileMenu:()=>e({isMobileMenuOpen:!1,activeItem:null,activeItemId:null}),toggleMobileMenu:()=>e((r)=>({isMobileMenuOpen:!r.isMobileMenuOpen,activeItem:r.isMobileMenuOpen?null:r.activeItem,activeItemId:r.isMobileMenuOpen?null:r.activeItemId})),setActiveItem:(r)=>e({activeItem:r,activeItemId:null}),setActiveItemId:(r)=>e({activeItemId:r})}));function fae(e){var r,a,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(a=fae(e[r]))&&(i&&(i+=" "),i+=a)}else for(a in e)e[a]&&(i&&(i+=" "),i+=a);return i}function b4(){for(var e,r,a=0,i="",s=arguments.length;a<s;a++)(e=arguments[a])&&(r=fae(e))&&(i&&(i+=" "),i+=r);return i}var VSe=(e,r)=>{let a=Array(e.length+r.length);for(let i=0;i<e.length;i++)a[i]=e[i];for(let i=0;i<r.length;i++)a[e.length+i]=r[i];return a},WSe=(e,r)=>({classGroupId:e,validator:r}),Zae=(e=new Map,r=null,a)=>({nextPart:e,validators:r,classGroupId:a});var sae=[];var GSe=(e)=>{let r=XSe(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:(c)=>{if(c.startsWith("[")&&c.endsWith("]"))return KSe(c);let d=c.split("-"),h=d[0]===""&&d.length>1?1:0;return pae(d,h,r)},getConflictingClassGroupIds:(c,d)=>{if(d){let h=i[c],g=a[c];if(h){if(g)return VSe(g,h);return h}return g||sae}return a[c]||sae}}},pae=(e,r,a)=>{if(e.length-r===0)return a.classGroupId;let s=e[r],l=a.nextPart.get(s);if(l){let g=pae(e,r+1,l);if(g)return g}let c=a.validators;if(c===null)return;let d=r===0?e.join("-"):e.slice(r).join("-"),h=c.length;for(let g=0;g<h;g++){let x=c[g];if(x.validator(d))return x.classGroupId}return},KSe=(e)=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let r=e.slice(1,-1),a=r.indexOf(":"),i=r.slice(0,a);return i?"arbitrary.."+i:void 0})(),XSe=(e)=>{let{theme:r,classGroups:a}=e;return QSe(a,r)},QSe=(e,r)=>{let a=Zae();for(let i in e){let s=e[i];s7(s,a,i,r)}return a},s7=(e,r,a,i)=>{let s=e.length;for(let l=0;l<s;l++){let c=e[l];JSe(c,r,a,i)}},JSe=(e,r,a,i)=>{if(typeof e==="string"){$Se(e,r,a);return}if(typeof e==="function"){eLe(e,r,a,i);return}tLe(e,r,a,i)},$Se=(e,r,a)=>{let i=e===""?r:mae(r,e);i.classGroupId=a},eLe=(e,r,a,i)=>{if(rLe(e)){s7(e(i),r,a,i);return}if(r.validators===null)r.validators=[];r.validators.push(WSe(a,e))},tLe=(e,r,a,i)=>{let s=Object.entries(e),l=s.length;for(let c=0;c<l;c++){let[d,h]=s[c];s7(h,mae(r,d),a,i)}},mae=(e,r)=>{let a=e,i=r.split("-"),s=i.length;for(let l=0;l<s;l++){let c=i[l],d=a.nextPart.get(c);if(!d)d=Zae(),a.nextPart.set(c,d);a=d}return a},rLe=(e)=>("isThemeGetter"in e)&&e.isThemeGetter===!0,oLe=(e)=>{if(e<1)return{get:()=>{return},set:()=>{}};let r=0,a=Object.create(null),i=Object.create(null),s=(l,c)=>{if(a[l]=c,r++,r>e)r=0,i=a,a=Object.create(null)};return{get(l){let c=a[l];if(c!==void 0)return c;if((c=i[l])!==void 0)return s(l,c),c},set(l,c){if(l in a)a[l]=c;else s(l,c)}}};var aLe=[],lae=(e,r,a,i,s)=>({modifiers:e,hasImportantModifier:r,baseClassName:a,maybePostfixModifierPosition:i,isExternal:s}),nLe=(e)=>{let{prefix:r,experimentalParseClassName:a}=e,i=(s)=>{let l=[],c=0,d=0,h=0,g,x=s.length;for(let T=0;T<x;T++){let U=s[T];if(c===0&&d===0){if(U===":"){l.push(s.slice(h,T)),h=T+1;continue}if(U==="/"){g=T;continue}}if(U==="[")c++;else if(U==="]")c--;else if(U==="(")d++;else if(U===")")d--}let v=l.length===0?s:s.slice(h),b=v,y=!1;if(v.endsWith("!"))b=v.slice(0,-1),y=!0;else if(v.startsWith("!"))b=v.slice(1),y=!0;let k=g&&g>h?g-h:void 0;return lae(l,y,b,k)};if(r){let s=r+":",l=i;i=(c)=>c.startsWith(s)?l(c.slice(s.length)):lae(aLe,!1,c,void 0,!0)}if(a){let s=i;i=(l)=>a({className:l,parseClassName:s})}return i},iLe=(e)=>{let r=new Map;return e.orderSensitiveModifiers.forEach((a,i)=>{r.set(a,1e6+i)}),(a)=>{let i=[],s=[];for(let l=0;l<a.length;l++){let c=a[l],d=c[0]==="[",h=r.has(c);if(d||h){if(s.length>0)s.sort(),i.push(...s),s=[];i.push(c)}else s.push(c)}if(s.length>0)s.sort(),i.push(...s);return i}},fLe=(e)=>({cache:oLe(e.cacheSize),parseClassName:nLe(e),sortModifiers:iLe(e),postfixLookupClassGroupIds:sLe(e),...GSe(e)}),sLe=(e)=>{let r=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let i=0;i<a.length;i++)r[a[i]]=!0;return r},lLe=/\s+/,cLe=(e,r)=>{let{parseClassName:a,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l,postfixLookupClassGroupIds:c}=r,d=[],h=e.trim().split(lLe),g="";for(let x=h.length-1;x>=0;x-=1){let v=h[x],{isExternal:b,modifiers:y,hasImportantModifier:k,baseClassName:T,maybePostfixModifierPosition:U}=a(v);if(b){g=v+(g.length>0?" "+g:g);continue}let N=!!U,j;if(N){let re=T.substring(0,U);j=i(re);let oe=j&&c[j]?i(T):void 0;if(oe&&oe!==j)j=oe,N=!1}else j=i(T);if(!j){if(!N){g=v+(g.length>0?" "+g:g);continue}if(j=i(T),!j){g=v+(g.length>0?" "+g:g);continue}N=!1}let G=y.length===0?"":y.length===1?y[0]:l(y).join(":"),X=k?G+"!":G,J=X+j;if(d.indexOf(J)>-1)continue;d.push(J);let ee=s(j,N);for(let re=0;re<ee.length;++re){let oe=ee[re];d.push(X+oe)}g=v+(g.length>0?" "+g:g)}return g},uLe=(...e)=>{let r=0,a,i,s="";while(r<e.length)if(a=e[r++]){if(i=hae(a))s&&(s+=" "),s+=i}return s},hae=(e)=>{if(typeof e==="string")return e;let r,a="";for(let i=0;i<e.length;i++)if(e[i]){if(r=hae(e[i]))a&&(a+=" "),a+=r}return a},dLe=(e,...r)=>{let a,i,s,l,c=(h)=>{let g=r.reduce((x,v)=>v(x),e());return a=fLe(g),i=a.cache.get,s=a.cache.set,l=d,d(h)},d=(h)=>{let g=i(h);if(g)return g;let x=cLe(h,a);return s(h,x),x};return l=c,(...h)=>l(uLe(...h))},ZLe=[],Li=(e)=>{let r=(a)=>a[e]||ZLe;return r.isThemeGetter=!0,r},gae=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Mae=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pLe=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,mLe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hLe=/\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$/,gLe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,MLe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xLe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,c8=(e)=>pLe.test(e),Mo=(e)=>!!e&&!Number.isNaN(Number(e)),nZ=(e)=>!!e&&Number.isInteger(Number(e)),f7=(e)=>e.endsWith("%")&&Mo(e.slice(0,-1)),QZ=(e)=>mLe.test(e),xae=()=>!0,vLe=(e)=>hLe.test(e)&&!gLe.test(e),l7=()=>!1,yLe=(e)=>MLe.test(e),_Le=(e)=>xLe.test(e),bLe=(e)=>!Mr(e)&&!Lr(e),wLe=(e)=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),zLe=(e)=>u8(e,_ae,l7),Mr=(e)=>gae.test(e),Tz=(e)=>u8(e,bae,vLe),cae=(e)=>u8(e,TLe,Mo),SLe=(e)=>u8(e,zae,xae),LLe=(e)=>u8(e,wae,l7),uae=(e)=>u8(e,vae,l7),kLe=(e)=>u8(e,yae,_Le),w4=(e)=>u8(e,Sae,yLe),Lr=(e)=>Mae.test(e),X2=(e)=>Az(e,bae),CLe=(e)=>Az(e,wae),dae=(e)=>Az(e,vae),ILe=(e)=>Az(e,_ae),RLe=(e)=>Az(e,yae),z4=(e)=>Az(e,Sae,!0),PLe=(e)=>Az(e,zae,!0),u8=(e,r,a)=>{let i=gae.exec(e);if(i){if(i[1])return r(i[1]);return a(i[2])}return!1},Az=(e,r,a=!1)=>{let i=Mae.exec(e);if(i){if(i[1])return r(i[1]);return a}return!1},vae=(e)=>e==="position"||e==="percentage",yae=(e)=>e==="image"||e==="url",_ae=(e)=>e==="length"||e==="size"||e==="bg-size",bae=(e)=>e==="length",TLe=(e)=>e==="number",wae=(e)=>e==="family-name",zae=(e)=>e==="number"||e==="weight",Sae=(e)=>e==="shadow";var ALe=()=>{let e=Li("color"),r=Li("font"),a=Li("text"),i=Li("font-weight"),s=Li("tracking"),l=Li("leading"),c=Li("breakpoint"),d=Li("container"),h=Li("spacing"),g=Li("radius"),x=Li("shadow"),v=Li("inset-shadow"),b=Li("text-shadow"),y=Li("drop-shadow"),k=Li("blur"),T=Li("perspective"),U=Li("aspect"),N=Li("ease"),j=Li("animate"),G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],J=()=>[...X(),Lr,Mr],ee=()=>["auto","hidden","clip","visible","scroll"],re=()=>["auto","contain","none"],oe=()=>[Lr,Mr,h],fe=()=>[c8,"full","auto",...oe()],be=()=>[nZ,"none","subgrid",Lr,Mr],We=()=>["auto",{span:["full",nZ,Lr,Mr]},nZ,Lr,Mr],Ye=()=>[nZ,"auto",Lr,Mr],Se=()=>["auto","min","max","fr",Lr,Mr],He=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ft=()=>["start","end","center","stretch","center-safe","end-safe"],Je=()=>["auto",...oe()],xt=()=>[c8,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...oe()],Ft=()=>[c8,"screen","full","dvw","lvw","svw","min","max","fit",...oe()],Bt=()=>[c8,"screen","full","lh","dvh","lvh","svh","min","max","fit",...oe()],ie=()=>[e,Lr,Mr],bt=()=>[...X(),dae,uae,{position:[Lr,Mr]}],Wt=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Fe=()=>["auto","cover","contain",ILe,zLe,{size:[Lr,Mr]}],nr=()=>[f7,X2,Tz],fr=()=>["","none","full",g,Lr,Mr],Jt=()=>["",Mo,X2,Tz],Fr=()=>["solid","dashed","dotted","double"],Gt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Xt=()=>[Mo,f7,dae,uae],Ir=()=>["","none",k,Lr,Mr],yr=()=>["none",Mo,Lr,Mr],Tr=()=>["none",Mo,Lr,Mr],pr=()=>[Mo,Lr,Mr],po=()=>[c8,"full",...oe()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[QZ],breakpoint:[QZ],color:[xae],container:[QZ],"drop-shadow":[QZ],ease:["in","out","in-out"],font:[bLe],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[QZ],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[QZ],shadow:[QZ],spacing:["px",Mo],text:[QZ],"text-shadow":[QZ],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",c8,Mr,Lr,U]}],container:["container"],"container-type":[{"@container":["","normal","size",Lr,Mr]}],"container-named":[wLe],columns:[{columns:[Mo,Mr,Lr,d]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"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:J()}],overflow:[{overflow:ee()}],"overflow-x":[{"overflow-x":ee()}],"overflow-y":[{"overflow-y":ee()}],overscroll:[{overscroll:re()}],"overscroll-x":[{"overscroll-x":re()}],"overscroll-y":[{"overscroll-y":re()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:fe()}],"inset-x":[{"inset-x":fe()}],"inset-y":[{"inset-y":fe()}],start:[{"inset-s":fe(),start:fe()}],end:[{"inset-e":fe(),end:fe()}],"inset-bs":[{"inset-bs":fe()}],"inset-be":[{"inset-be":fe()}],top:[{top:fe()}],right:[{right:fe()}],bottom:[{bottom:fe()}],left:[{left:fe()}],visibility:["visible","invisible","collapse"],z:[{z:[nZ,"auto",Lr,Mr]}],basis:[{basis:[c8,"full","auto",d,...oe()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Mo,c8,"auto","initial","none",Mr]}],grow:[{grow:["",Mo,Lr,Mr]}],shrink:[{shrink:["",Mo,Lr,Mr]}],order:[{order:[nZ,"first","last","none",Lr,Mr]}],"grid-cols":[{"grid-cols":be()}],"col-start-end":[{col:We()}],"col-start":[{"col-start":Ye()}],"col-end":[{"col-end":Ye()}],"grid-rows":[{"grid-rows":be()}],"row-start-end":[{row:We()}],"row-start":[{"row-start":Ye()}],"row-end":[{"row-end":Ye()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Se()}],"auto-rows":[{"auto-rows":Se()}],gap:[{gap:oe()}],"gap-x":[{"gap-x":oe()}],"gap-y":[{"gap-y":oe()}],"justify-content":[{justify:[...He(),"normal"]}],"justify-items":[{"justify-items":[...ft(),"normal"]}],"justify-self":[{"justify-self":["auto",...ft()]}],"align-content":[{content:["normal",...He()]}],"align-items":[{items:[...ft(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ft(),{baseline:["","last"]}]}],"place-content":[{"place-content":He()}],"place-items":[{"place-items":[...ft(),"baseline"]}],"place-self":[{"place-self":["auto",...ft()]}],p:[{p:oe()}],px:[{px:oe()}],py:[{py:oe()}],ps:[{ps:oe()}],pe:[{pe:oe()}],pbs:[{pbs:oe()}],pbe:[{pbe:oe()}],pt:[{pt:oe()}],pr:[{pr:oe()}],pb:[{pb:oe()}],pl:[{pl:oe()}],m:[{m:Je()}],mx:[{mx:Je()}],my:[{my:Je()}],ms:[{ms:Je()}],me:[{me:Je()}],mbs:[{mbs:Je()}],mbe:[{mbe:Je()}],mt:[{mt:Je()}],mr:[{mr:Je()}],mb:[{mb:Je()}],ml:[{ml:Je()}],"space-x":[{"space-x":oe()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":oe()}],"space-y-reverse":["space-y-reverse"],size:[{size:xt()}],"inline-size":[{inline:["auto",...Ft()]}],"min-inline-size":[{"min-inline":["auto",...Ft()]}],"max-inline-size":[{"max-inline":["none",...Ft()]}],"block-size":[{block:["auto",...Bt()]}],"min-block-size":[{"min-block":["auto",...Bt()]}],"max-block-size":[{"max-block":["none",...Bt()]}],w:[{w:[d,"screen",...xt()]}],"min-w":[{"min-w":[d,"screen","none",...xt()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...xt()]}],h:[{h:["screen","lh",...xt()]}],"min-h":[{"min-h":["screen","lh","none",...xt()]}],"max-h":[{"max-h":["screen","lh",...xt()]}],"font-size":[{text:["base",a,X2,Tz]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,PLe,SLe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",f7,Mr]}],"font-family":[{font:[CLe,LLe,r]}],"font-features":[{"font-features":[Mr]}],"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:[s,Lr,Mr]}],"line-clamp":[{"line-clamp":[Mo,"none",Lr,cae]}],leading:[{leading:[l,...oe()]}],"list-image":[{"list-image":["none",Lr,Mr]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Lr,Mr]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ie()}],"text-color":[{text:ie()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Fr(),"wavy"]}],"text-decoration-thickness":[{decoration:[Mo,"from-font","auto",Lr,Tz]}],"text-decoration-color":[{decoration:ie()}],"underline-offset":[{"underline-offset":[Mo,"auto",Lr,Mr]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:oe()}],"tab-size":[{tab:[nZ,Lr,Mr]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Lr,Mr]}],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",Lr,Mr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:bt()}],"bg-repeat":[{bg:Wt()}],"bg-size":[{bg:Fe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},nZ,Lr,Mr],radial:["",Lr,Mr],conic:[nZ,Lr,Mr]},RLe,kLe]}],"bg-color":[{bg:ie()}],"gradient-from-pos":[{from:nr()}],"gradient-via-pos":[{via:nr()}],"gradient-to-pos":[{to:nr()}],"gradient-from":[{from:ie()}],"gradient-via":[{via:ie()}],"gradient-to":[{to:ie()}],rounded:[{rounded:fr()}],"rounded-s":[{"rounded-s":fr()}],"rounded-e":[{"rounded-e":fr()}],"rounded-t":[{"rounded-t":fr()}],"rounded-r":[{"rounded-r":fr()}],"rounded-b":[{"rounded-b":fr()}],"rounded-l":[{"rounded-l":fr()}],"rounded-ss":[{"rounded-ss":fr()}],"rounded-se":[{"rounded-se":fr()}],"rounded-ee":[{"rounded-ee":fr()}],"rounded-es":[{"rounded-es":fr()}],"rounded-tl":[{"rounded-tl":fr()}],"rounded-tr":[{"rounded-tr":fr()}],"rounded-br":[{"rounded-br":fr()}],"rounded-bl":[{"rounded-bl":fr()}],"border-w":[{border:Jt()}],"border-w-x":[{"border-x":Jt()}],"border-w-y":[{"border-y":Jt()}],"border-w-s":[{"border-s":Jt()}],"border-w-e":[{"border-e":Jt()}],"border-w-bs":[{"border-bs":Jt()}],"border-w-be":[{"border-be":Jt()}],"border-w-t":[{"border-t":Jt()}],"border-w-r":[{"border-r":Jt()}],"border-w-b":[{"border-b":Jt()}],"border-w-l":[{"border-l":Jt()}],"divide-x":[{"divide-x":Jt()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Jt()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Fr(),"hidden","none"]}],"divide-style":[{divide:[...Fr(),"hidden","none"]}],"border-color":[{border:ie()}],"border-color-x":[{"border-x":ie()}],"border-color-y":[{"border-y":ie()}],"border-color-s":[{"border-s":ie()}],"border-color-e":[{"border-e":ie()}],"border-color-bs":[{"border-bs":ie()}],"border-color-be":[{"border-be":ie()}],"border-color-t":[{"border-t":ie()}],"border-color-r":[{"border-r":ie()}],"border-color-b":[{"border-b":ie()}],"border-color-l":[{"border-l":ie()}],"divide-color":[{divide:ie()}],"outline-style":[{outline:[...Fr(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Mo,Lr,Mr]}],"outline-w":[{outline:["",Mo,X2,Tz]}],"outline-color":[{outline:ie()}],shadow:[{shadow:["","none",x,z4,w4]}],"shadow-color":[{shadow:ie()}],"inset-shadow":[{"inset-shadow":["none",v,z4,w4]}],"inset-shadow-color":[{"inset-shadow":ie()}],"ring-w":[{ring:Jt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ie()}],"ring-offset-w":[{"ring-offset":[Mo,Tz]}],"ring-offset-color":[{"ring-offset":ie()}],"inset-ring-w":[{"inset-ring":Jt()}],"inset-ring-color":[{"inset-ring":ie()}],"text-shadow":[{"text-shadow":["none",b,z4,w4]}],"text-shadow-color":[{"text-shadow":ie()}],opacity:[{opacity:[Mo,Lr,Mr]}],"mix-blend":[{"mix-blend":[...Gt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Gt()}],"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":[Mo]}],"mask-image-linear-from-pos":[{"mask-linear-from":Xt()}],"mask-image-linear-to-pos":[{"mask-linear-to":Xt()}],"mask-image-linear-from-color":[{"mask-linear-from":ie()}],"mask-image-linear-to-color":[{"mask-linear-to":ie()}],"mask-image-t-from-pos":[{"mask-t-from":Xt()}],"mask-image-t-to-pos":[{"mask-t-to":Xt()}],"mask-image-t-from-color":[{"mask-t-from":ie()}],"mask-image-t-to-color":[{"mask-t-to":ie()}],"mask-image-r-from-pos":[{"mask-r-from":Xt()}],"mask-image-r-to-pos":[{"mask-r-to":Xt()}],"mask-image-r-from-color":[{"mask-r-from":ie()}],"mask-image-r-to-color":[{"mask-r-to":ie()}],"mask-image-b-from-pos":[{"mask-b-from":Xt()}],"mask-image-b-to-pos":[{"mask-b-to":Xt()}],"mask-image-b-from-color":[{"mask-b-from":ie()}],"mask-image-b-to-color":[{"mask-b-to":ie()}],"mask-image-l-from-pos":[{"mask-l-from":Xt()}],"mask-image-l-to-pos":[{"mask-l-to":Xt()}],"mask-image-l-from-color":[{"mask-l-from":ie()}],"mask-image-l-to-color":[{"mask-l-to":ie()}],"mask-image-x-from-pos":[{"mask-x-from":Xt()}],"mask-image-x-to-pos":[{"mask-x-to":Xt()}],"mask-image-x-from-color":[{"mask-x-from":ie()}],"mask-image-x-to-color":[{"mask-x-to":ie()}],"mask-image-y-from-pos":[{"mask-y-from":Xt()}],"mask-image-y-to-pos":[{"mask-y-to":Xt()}],"mask-image-y-from-color":[{"mask-y-from":ie()}],"mask-image-y-to-color":[{"mask-y-to":ie()}],"mask-image-radial":[{"mask-radial":[Lr,Mr]}],"mask-image-radial-from-pos":[{"mask-radial-from":Xt()}],"mask-image-radial-to-pos":[{"mask-radial-to":Xt()}],"mask-image-radial-from-color":[{"mask-radial-from":ie()}],"mask-image-radial-to-color":[{"mask-radial-to":ie()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":X()}],"mask-image-conic-pos":[{"mask-conic":[Mo]}],"mask-image-conic-from-pos":[{"mask-conic-from":Xt()}],"mask-image-conic-to-pos":[{"mask-conic-to":Xt()}],"mask-image-conic-from-color":[{"mask-conic-from":ie()}],"mask-image-conic-to-color":[{"mask-conic-to":ie()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:bt()}],"mask-repeat":[{mask:Wt()}],"mask-size":[{mask:Fe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Lr,Mr]}],filter:[{filter:["","none",Lr,Mr]}],blur:[{blur:Ir()}],brightness:[{brightness:[Mo,Lr,Mr]}],contrast:[{contrast:[Mo,Lr,Mr]}],"drop-shadow":[{"drop-shadow":["","none",y,z4,w4]}],"drop-shadow-color":[{"drop-shadow":ie()}],grayscale:[{grayscale:["",Mo,Lr,Mr]}],"hue-rotate":[{"hue-rotate":[Mo,Lr,Mr]}],invert:[{invert:["",Mo,Lr,Mr]}],saturate:[{saturate:[Mo,Lr,Mr]}],sepia:[{sepia:["",Mo,Lr,Mr]}],"backdrop-filter":[{"backdrop-filter":["","none",Lr,Mr]}],"backdrop-blur":[{"backdrop-blur":Ir()}],"backdrop-brightness":[{"backdrop-brightness":[Mo,Lr,Mr]}],"backdrop-contrast":[{"backdrop-contrast":[Mo,Lr,Mr]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Mo,Lr,Mr]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Mo,Lr,Mr]}],"backdrop-invert":[{"backdrop-invert":["",Mo,Lr,Mr]}],"backdrop-opacity":[{"backdrop-opacity":[Mo,Lr,Mr]}],"backdrop-saturate":[{"backdrop-saturate":[Mo,Lr,Mr]}],"backdrop-sepia":[{"backdrop-sepia":["",Mo,Lr,Mr]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":oe()}],"border-spacing-x":[{"border-spacing-x":oe()}],"border-spacing-y":[{"border-spacing-y":oe()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Lr,Mr]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Mo,"initial",Lr,Mr]}],ease:[{ease:["linear","initial",N,Lr,Mr]}],delay:[{delay:[Mo,Lr,Mr]}],animate:[{animate:["none",j,Lr,Mr]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,Lr,Mr]}],"perspective-origin":[{"perspective-origin":J()}],rotate:[{rotate:yr()}],"rotate-x":[{"rotate-x":yr()}],"rotate-y":[{"rotate-y":yr()}],"rotate-z":[{"rotate-z":yr()}],scale:[{scale:Tr()}],"scale-x":[{"scale-x":Tr()}],"scale-y":[{"scale-y":Tr()}],"scale-z":[{"scale-z":Tr()}],"scale-3d":["scale-3d"],skew:[{skew:pr()}],"skew-x":[{"skew-x":pr()}],"skew-y":[{"skew-y":pr()}],transform:[{transform:[Lr,Mr,"","none","gpu","cpu"]}],"transform-origin":[{origin:J()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:po()}],"translate-x":[{"translate-x":po()}],"translate-y":[{"translate-y":po()}],"translate-z":[{"translate-z":po()}],"translate-none":["translate-none"],zoom:[{zoom:[nZ,Lr,Mr]}],accent:[{accent:ie()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ie()}],"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",Lr,Mr]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":ie()}],"scrollbar-track-color":[{"scrollbar-track":ie()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":oe()}],"scroll-mx":[{"scroll-mx":oe()}],"scroll-my":[{"scroll-my":oe()}],"scroll-ms":[{"scroll-ms":oe()}],"scroll-me":[{"scroll-me":oe()}],"scroll-mbs":[{"scroll-mbs":oe()}],"scroll-mbe":[{"scroll-mbe":oe()}],"scroll-mt":[{"scroll-mt":oe()}],"scroll-mr":[{"scroll-mr":oe()}],"scroll-mb":[{"scroll-mb":oe()}],"scroll-ml":[{"scroll-ml":oe()}],"scroll-p":[{"scroll-p":oe()}],"scroll-px":[{"scroll-px":oe()}],"scroll-py":[{"scroll-py":oe()}],"scroll-ps":[{"scroll-ps":oe()}],"scroll-pe":[{"scroll-pe":oe()}],"scroll-pbs":[{"scroll-pbs":oe()}],"scroll-pbe":[{"scroll-pbe":oe()}],"scroll-pt":[{"scroll-pt":oe()}],"scroll-pr":[{"scroll-pr":oe()}],"scroll-pb":[{"scroll-pb":oe()}],"scroll-pl":[{"scroll-pl":oe()}],"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",Lr,Mr]}],fill:[{fill:["none",...ie()]}],"stroke-w":[{stroke:[Mo,X2,Tz,cae]}],stroke:[{stroke:["none",...ie()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Lae=dLe(ALe);function C(...e){return Lae(b4(e))}var kae=(e)=>typeof e==="boolean"?`${e}`:e===0?"0":e,Cae=b4,ps=(e,r)=>(a)=>{var i;if((r===null||r===void 0?void 0:r.variants)==null)return Cae(e,a===null||a===void 0?void 0:a.class,a===null||a===void 0?void 0:a.className);let{variants:s,defaultVariants:l}=r,c=Object.keys(s).map((g)=>{let x=a===null||a===void 0?void 0:a[g],v=l===null||l===void 0?void 0:l[g];if(x===null)return null;let b=kae(x)||kae(v);return s[g][b]}),d=a&&Object.entries(a).reduce((g,x)=>{let[v,b]=x;if(b===void 0)return g;return g[v]=b,g},{}),h=r===null||r===void 0?void 0:(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((g,x)=>{let{class:v,className:b,...y}=x;return Object.entries(y).every((k)=>{let[T,U]=k;return Array.isArray(U)?U.includes({...l,...d}[T]):{...l,...d}[T]===U})?[...g,v,b]:g},[]);return Cae(e,c,h,a===null||a===void 0?void 0:a.class,a===null||a===void 0?void 0:a.className)};S();S();var ELe=Object.defineProperty,vc=(e,r)=>ELe(e,"name",{value:r,configurable:!0});function DLe(e,r){let a=lt(r);a.displayName=e+"Context";let i=vc((l)=>{let{children:c,...d}=l,h=D(()=>d,Object.values(d));return t(a.Provider,{value:h,children:c})},"Provider");i.displayName=e+"Provider";function s(l,c={}){let{optional:d=!1}=c,h=pt(a);if(h)return h;if(r!==void 0)return r;if(d)return;throw Error(`\`${l}\` must be used within \`${e}\``)}return vc(s,"useContext"),[i,s]}vc(DLe,"createContext");function gt(e,r=[]){let a=[];function i(l,c){let d=lt(c);d.displayName=l+"Context";let h=a.length;a=[...a,c];let g=vc((v)=>{let{scope:b,children:y,...k}=v,T=b?.[e]?.[h]||d,U=D(()=>k,Object.values(k));return t(T.Provider,{value:U,children:y})},"Provider");g.displayName=l+"Provider";function x(v,b,y={}){let{optional:k=!1}=y,T=b?.[e]?.[h]||d,U=pt(T);if(U)return U;if(c!==void 0)return c;if(k)return;throw Error(`\`${v}\` must be used within \`${l}\``)}return vc(x,"useContext"),[g,x]}vc(i,"createContext");let s=vc(()=>{let l=a.map((c)=>lt(c));return vc(function(d){let h=d?.[e]||l;return D(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])},"useScope")},"createScope");return s.scopeName=e,[i,Iae(s,...r)]}vc(gt,"createContextScope");function Iae(...e){let r=e[0];if(e.length===1)return r;let a=vc(()=>{let i=e.map((s)=>({useScope:s(),scopeName:s.scopeName}));return vc(function(l){let c=i.reduce((d,{useScope:h,scopeName:g})=>{let v=h(l)[`__scope${g}`];return{...d,...v}},{});return D(()=>({[`__scope${r.scopeName}`]:c}),[c])},"useComposedScopes")},"createScope");return a.scopeName=r.scopeName,a}vc(Iae,"composeContextScopes");S();var OLe=Object.defineProperty,u7=(e,r)=>OLe(e,"name",{value:r,configurable:!0});function c7(e,r){if(typeof e==="function")return e(r);else if(e!==null&&e!==void 0)e.current=r}u7(c7,"setRef");function Rae(...e){return(r)=>{let a=!1,i=e.map((s)=>{let l=c7(s,r);if(!a&&typeof l=="function")a=!0;return l});if(a)return()=>{for(let s=0;s<i.length;s++){let l=i[s];if(typeof l=="function")l();else c7(e[s],null)}}}}u7(Rae,"composeRefs");function ye(...e){return P(Rae(...e),e)}u7(ye,"useComposedRefs");S();var NLe=Object.defineProperty,Xk=(e,r)=>NLe(e,"name",{value:r,configurable:!0}),Pae=!!(typeof window<"u"&&window.document&&window.document.createElement);function Y(e,r,{checkForDefaultPrevented:a=!0}={}){return Xk(function(s){if(e?.(s),a===!1||!s||!s.defaultPrevented)return r?.(s)},"handleEvent")}Xk(Y,"composeEventHandlers");function FLe(e){if(!Pae)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}Xk(FLe,"getOwnerWindow");function d7(e){if(!Pae)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}Xk(d7,"getOwnerDocument");function Tae(e,r=!1){let{activeElement:a}=d7(e);if(!a?.nodeName)return null;if(Aae(a)&&a.contentDocument)return Tae(a.contentDocument.body,r);if(r){let i=a.getAttribute("aria-activedescendant");if(i){let s=d7(a).getElementById(i);if(s)return s}}return a}Xk(Tae,"getActiveElement");function Aae(e){return e.tagName==="IFRAME"}Xk(Aae,"isFrame");S();S();var Pt=globalThis?.document?$e:()=>{};var jLe=Object.defineProperty,BLe=(e,r)=>jLe(e,"name",{value:r,configurable:!0}),ULe=Q[" useId ".trim().toString()]||(()=>{return}),YLe=0;function Er(e){let[r,a]=u(ULe());return Pt(()=>{if(!e)a((i)=>i??String(YLe++))},[e]),e||(r?`radix-${r}`:"")}BLe(Er,"useId");S();var gi=!1;S();S();var qLe=Object.defineProperty,HLe=(e,r)=>qLe(e,"name",{value:r,configurable:!0}),Eae=Q[" useEffectEvent ".trim().toString()],Dae=Q[" useInsertionEffect ".trim().toString()];function Z7(e){if(typeof Eae==="function")return Eae(e);let r=_(()=>{throw Error("Cannot call an event handler while rendering.")});if(typeof Dae==="function")Dae(()=>{r.current=e});else Pt(()=>{r.current=e});return D(()=>(...a)=>r.current?.(...a),[])}HLe(Z7,"useEffectEvent");var VLe=Object.defineProperty,Q2=(e,r)=>VLe(e,"name",{value:r,configurable:!0}),WLe=Q[" useInsertionEffect ".trim().toString()]||Pt;function Lt({prop:e,defaultProp:r,onChange:a=Q2(()=>{},"onChange"),caller:i}){let[s,l,c]=Nae({defaultProp:r,onChange:a}),d=e!==void 0,h=d?e:s;if(gi){let x=_(e!==void 0);m(()=>{let v=x.current;if(v!==d)console.warn(`${i} is changing from ${v?"controlled":"uncontrolled"} to ${d?"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.`);x.current=d},[d,i])}let g=P((x)=>{if(d){let v=Fae(x)?x(e):x;if(v!==e)c.current?.(v)}else l(x)},[d,e,l,c]);return[h,g]}Q2(Lt,"useControllableState");function Nae({defaultProp:e,onChange:r}){let[a,i]=u(e),s=_(a),l=_(r);return WLe(()=>{l.current=r},[r]),m(()=>{if(s.current!==a)l.current?.(a),s.current=a},[a,s]),[a,i,l]}Q2(Nae,"useUncontrolledState");function Fae(e){return typeof e==="function"}Q2(Fae,"isFunction");var Oae=Symbol("RADIX:SYNC_STATE");function GLe(e,r,a,i){let{prop:s,defaultProp:l,onChange:c,caller:d}=r,h=s!==void 0,g=Z7(c);if(gi){let U=_(s!==void 0);m(()=>{let N=U.current;if(N!==h)console.warn(`${d} is changing from ${N?"controlled":"uncontrolled"} to ${h?"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.`);U.current=h},[h,d])}let x=[{...a,state:l}];if(i)x.push(i);let[v,b]=tn((U,N)=>{if(N.type===Oae)return{...U,state:N.state};let j=e(U,N);if(h&&!Object.is(j.state,U.state))g(j.state);return j},...x),y=v.state,k=_(y);m(()=>{if(k.current!==y){if(k.current=y,!h)g(y)}},[y,k,h]);let T=D(()=>{if(s!==void 0)return{...v,state:s};return v},[v,s]);return m(()=>{if(h&&!Object.is(s,v.state))b({type:Oae,state:s})},[s,v.state,h]),[T,b]}Q2(GLe,"useControllableStateReducer");S();S();S();var KLe=Object.defineProperty,uu=(e,r)=>KLe(e,"name",{value:r,configurable:!0});function Ni(e){let r=F((a,i)=>{let{children:s,...l}=a,c=null,d=!1,h=[];if(p7(s)&&typeof S4==="function")s=S4(s._payload);if(nc.forEach(s,(b)=>{if(qae(b)){d=!0;let y=b,k="child"in y.props?y.props.child:y.props.children;if(p7(k)&&typeof S4==="function")k=S4(k._payload);c=XLe(y,k),h.push(c?.props?.children)}else h.push(b)}),c)c=Ou(c,void 0,h);else if(!d&&nc.count(s)===1&&as(s))c=s;let g=c?Yae(c):void 0,x=ye(i,g);if(!c){if(s||s===0)throw Error(d?$Le(e):JLe(e));return s}let v=Uae(l,c.props??{});if(c.type!==In)v.ref=i?x:g;return Ou(c,v)});return r.displayName=`${e}.Slot`,r}uu(Ni,"createSlot");var jae=Ni("Slot"),Bae=Symbol.for("radix.slottable");function m7(e){let r=uu((a)=>("child"in a)?a.children(a.child):a.children,"Slottable");return r.displayName=`${e}.Slottable`,r.__radixId=Bae,r}uu(m7,"createSlottable");var XLe=uu((e,r)=>{if("child"in e.props){let a=e.props.child;if(!as(a))return null;return Ou(a,void 0,e.props.children(a.props.children))}return as(r)?r:null},"getSlottableElementFromSlottable");function Uae(e,r){let a={...r};for(let i in r){let s=e[i],l=r[i];if(/^on[A-Z]/.test(i)){if(s&&l)a[i]=(...d)=>{let h=l(...d);return s(...d),h};else if(s)a[i]=s}else if(i==="style")a[i]={...s,...l};else if(i==="className")a[i]=[s,l].filter(Boolean).join(" ")}return{...e,...a}}uu(Uae,"mergeProps");function Yae(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}uu(Yae,"getElementRef");function qae(e){return as(e)&&typeof e.type==="function"&&"__radixId"in e.type&&e.type.__radixId===Bae}uu(qae,"isSlottable");var QLe=Symbol.for("react.lazy");function p7(e){return e!=null&&typeof e==="object"&&"$$typeof"in e&&e.$$typeof===QLe&&"_payload"in e&&Hae(e._payload)}uu(p7,"isLazyComponent");function Hae(e){return typeof e==="object"&&e!==null&&"then"in e}uu(Hae,"isPromiseLike");var JLe=uu((e)=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),$Le=uu((e)=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),S4=Q[" use ".trim().toString()];var eke=Object.defineProperty,tke=(e,r)=>eke(e,"name",{value:r,configurable:!0}),rke=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=rke.reduce((e,r)=>{let a=Ni(`Primitive.${r}`),i=F((s,l)=>{let{asChild:c,...d}=s,h=c?a:r;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return t(h,{...d,ref:l})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{});function J2(e,r){if(e)rn(()=>e.dispatchEvent(r))}tke(J2,"dispatchDiscreteCustomEvent");S();var oke=Object.defineProperty,ake=(e,r)=>oke(e,"name",{value:r,configurable:!0});function Ko(e){let r=_(e);return m(()=>{r.current=e}),D(()=>(...a)=>r.current?.(...a),[])}ake(Ko,"useCallbackRef");var nke=Object.defineProperty,Fi=(e,r)=>nke(e,"name",{value:r,configurable:!0}),g7="dismissableLayer.update",ike="dismissableLayer.pointerDownOutside",fke="dismissableLayer.focusOutside",Vae,Wae=lt({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),iZ=F(Fi(function(r,a){let{disableOutsidePointerEvents:i=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:h,onDismiss:g,...x}=r,v=pt(Wae),[b,y]=u(null),k=b?.ownerDocument??globalThis?.document,[,T]=u({}),U=ye(a,y),N=Array.from(v.layers),[j]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),G=j?N.indexOf(j):-1,X=b?N.indexOf(b):-1,J=v.layersWithOutsidePointerEventsDisabled.size>0,ee=X>=G,re=_(!1),oe=Gae((Ye)=>{if(c?.(Ye),h?.(Ye),!Ye.defaultPrevented)g?.()},{ownerDocument:k,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:re,dismissableSurfaces:v.dismissableSurfaces,shouldHandlePointerDownOutside:P((Ye)=>{if(!(Ye instanceof Node))return!1;let Se=[...v.branches].some((He)=>He.contains(Ye));return ee&&!Se},[v.branches,ee])}),fe=Kae((Ye)=>{if(s&&re.current)return;let Se=Ye.target;if([...v.branches].some((ft)=>ft.contains(Se)))return;if(d?.(Ye),h?.(Ye),!Ye.defaultPrevented)g?.()},k),be=b?X===N.length-1:!1,We=Ko((Ye)=>{if(Ye.key!=="Escape")return;if(l?.(Ye),!Ye.defaultPrevented&&g)Ye.preventDefault(),g()});return m(()=>{if(!be)return;return k.addEventListener("keydown",We,{capture:!0}),()=>k.removeEventListener("keydown",We,{capture:!0})},[k,be,We]),m(()=>{if(!b)return;if(i){if(v.layersWithOutsidePointerEventsDisabled.size===0)Vae=k.body.style.pointerEvents,k.body.style.pointerEvents="none";v.layersWithOutsidePointerEventsDisabled.add(b)}return v.layers.add(b),M7(),()=>{if(i){if(v.layersWithOutsidePointerEventsDisabled.delete(b),v.layersWithOutsidePointerEventsDisabled.size===0)k.body.style.pointerEvents=Vae}}},[b,k,i,v]),m(()=>()=>{if(!b)return;v.layers.delete(b),v.layersWithOutsidePointerEventsDisabled.delete(b),M7()},[b,v]),m(()=>{let Ye=Fi(()=>T({}),"handleUpdate");return document.addEventListener(g7,Ye),()=>document.removeEventListener(g7,Ye)},[]),t(se.div,{...x,ref:U,style:{pointerEvents:J?ee?"auto":"none":void 0,...r.style},onFocusCapture:Y(r.onFocusCapture,fe.onFocusCapture),onBlurCapture:Y(r.onBlurCapture,fe.onBlurCapture),onPointerDownCapture:Y(r.onPointerDownCapture,oe.onPointerDownCapture)})},"DismissableLayer"));function x7(){let e=pt(Wae),[r,a]=u(null);return m(()=>{if(!r)return;return e.dismissableSurfaces.add(r),()=>{e.dismissableSurfaces.delete(r)}},[r,e.dismissableSurfaces]),a}Fi(x7,"useDismissableLayerSurface");var ske=Fi(()=>!0,"IS_TRUE");function Gae(e,r){let{ownerDocument:a=globalThis?.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:l,shouldHandlePointerDownOutside:c=ske}=r,d=Ko(e),h=_(!1),g=_(!1),x=_(new Map),v=_(()=>{});return m(()=>{function b(){g.current=!1,s.current=!1,x.current.clear()}Fi(b,"resetOutsideInteraction");function y(){return Array.from(x.current.values()).some(Boolean)}Fi(y,"isOutsideInteractionIntercepted");function k(G){if(!g.current)return;let X=G.target;if(!(X instanceof Node&&[...l].some((ee)=>ee.contains(X))))x.current.set(G.type,!0);if(G.type==="click")window.setTimeout(()=>{if(g.current)v.current()},0)}Fi(k,"handleInteractionCapture");function T(G){if(g.current)x.current.set(G.type,!1)}Fi(T,"handleInteractionBubble");let U=Fi((G)=>{if(G.target&&!h.current){let J=function(){a.removeEventListener("click",v.current);let re=y();if(b(),!re)v7(ike,d,ee,{discrete:!0})};var X=J;if(Fi(J,"handleAndDispatchPointerDownOutsideEvent"),!c(G.target)){a.removeEventListener("click",v.current),b(),h.current=!1;return}let ee={originalEvent:G};if(g.current=!0,s.current=i&&G.button===0,x.current.clear(),!i||G.button!==0)J();else a.removeEventListener("click",v.current),v.current=J,a.addEventListener("click",v.current,{once:!0})}else a.removeEventListener("click",v.current),b();h.current=!1},"handlePointerDown"),N=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let G of N)a.addEventListener(G,k,!0),a.addEventListener(G,T);let j=window.setTimeout(()=>{a.addEventListener("pointerdown",U)},0);return()=>{window.clearTimeout(j),a.removeEventListener("pointerdown",U),a.removeEventListener("click",v.current);for(let G of N)a.removeEventListener(G,k,!0),a.removeEventListener(G,T)}},[a,d,i,s,l,c]),{onPointerDownCapture:Fi(()=>h.current=!0,"onPointerDownCapture")}}Fi(Gae,"usePointerDownOutside");function Kae(e,r=globalThis?.document){let a=Ko(e),i=_(!1);return m(()=>{let s=Fi((l)=>{if(l.target&&!i.current)v7(fke,a,{originalEvent:l},{discrete:!1})},"handleFocus");return r.addEventListener("focusin",s),()=>r.removeEventListener("focusin",s)},[r,a]),{onFocusCapture:Fi(()=>i.current=!0,"onFocusCapture"),onBlurCapture:Fi(()=>i.current=!1,"onBlurCapture")}}Fi(Kae,"useFocusOutside");function M7(){let e=new CustomEvent(g7);document.dispatchEvent(e)}Fi(M7,"dispatchUpdate");function v7(e,r,a,{discrete:i}){let s=a.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});if(r)s.addEventListener(e,r,{once:!0});if(i)J2(s,l);else s.dispatchEvent(l)}Fi(v7,"handleAndDispatchCustomEvent");S();var lke=Object.defineProperty,ss=(e,r)=>lke(e,"name",{value:r,configurable:!0}),y7="focusScope.autoFocusOnMount",_7="focusScope.autoFocusOnUnmount",Xae={bubbles:!1,cancelable:!0},d8=F(ss(function(r,a){let{loop:i=!1,trapped:s=!1,onMountAutoFocus:l,onUnmountAutoFocus:c,...d}=r,[h,g]=u(null),x=Ko(l),v=Ko(c),b=_(null),y=ye(a,g),k=_({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m(()=>{if(s){let G=function(re){if(k.paused||!h)return;let oe=re.target;if(h.contains(oe))b.current=oe;else JZ(b.current,{select:!0})},X=function(re){if(k.paused||!h)return;let oe=re.relatedTarget;if(oe===null)return;if(!h.contains(oe))JZ(b.current,{select:!0})},J=function(re){if(document.activeElement!==document.body)return;for(let fe of re)if(fe.removedNodes.length>0)JZ(h)};var U=G,N=X,j=J;ss(G,"handleFocusIn"),ss(X,"handleFocusOut"),ss(J,"handleMutations"),document.addEventListener("focusin",G),document.addEventListener("focusout",X);let ee=new MutationObserver(J);if(h)ee.observe(h,{childList:!0,subtree:!0});return()=>{document.removeEventListener("focusin",G),document.removeEventListener("focusout",X),ee.disconnect()}}},[s,h,k.paused]),m(()=>{if(h){Qae.add(k);let U=document.activeElement;if(!h.contains(U)){let j=new CustomEvent(y7,Xae);if(h.addEventListener(y7,x),h.dispatchEvent(j),!j.defaultPrevented){if(Jae(one(z7(h)),{select:!0}),document.activeElement===U)JZ(h)}}return()=>{h.removeEventListener(y7,x),setTimeout(()=>{let j=new CustomEvent(_7,Xae);if(h.addEventListener(_7,v),h.dispatchEvent(j),!j.defaultPrevented)JZ(U??document.body,{select:!0});h.removeEventListener(_7,v),Qae.remove(k)},0)}}},[h,x,v,k]);let T=P((U)=>{if(!i&&!s)return;if(k.paused)return;let N=U.key==="Tab"&&!U.altKey&&!U.ctrlKey&&!U.metaKey,j=document.activeElement;if(N&&j){let G=U.currentTarget,[X,J]=$ae(G);if(!(X&&J)){if(j===G)U.preventDefault()}else if(!U.shiftKey&&j===J){if(U.preventDefault(),i)JZ(X,{select:!0})}else if(U.shiftKey&&j===X){if(U.preventDefault(),i)JZ(J,{select:!0})}}},[i,s,k.paused]);return t(se.div,{tabIndex:-1,...d,ref:y,onKeyDown:T})},"FocusScope"));function Jae(e,{select:r=!1}={}){let a=document.activeElement;for(let i of e)if(JZ(i,{select:r}),document.activeElement!==a)return}ss(Jae,"focusFirst");function $ae(e){let r=z7(e),a=b7(r,e),i=b7(r.reverse(),e);return[a,i]}ss($ae,"getTabbableEdges");function z7(e){let r=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ss((i)=>{let s=i.tagName==="INPUT"&&i.type==="hidden";if(i.disabled||i.hidden||s)return NodeFilter.FILTER_SKIP;return i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});while(a.nextNode())r.push(a.currentNode);return r}ss(z7,"getTabbableCandidates");function b7(e,r){let a=typeof r.checkVisibility==="function"&&r.checkVisibility({checkVisibilityCSS:!0});for(let i of e)if(!(a?!i.checkVisibility({checkVisibilityCSS:!0}):ene(i,{upTo:r})))return i}ss(b7,"findVisible");function ene(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;while(e){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}ss(ene,"isHidden");function tne(e){return e instanceof HTMLInputElement&&"select"in e}ss(tne,"isSelectableInput");function JZ(e,{select:r=!1}={}){if(e&&e.focus){let a=document.activeElement;if(e.focus({preventScroll:!0}),e!==a&&tne(e)&&r)e.select()}}ss(JZ,"focus");var Qae=rne();function rne(){let e=[];return{add(r){let a=e[0];if(r!==a)a?.pause();e=w7(e,r),e.unshift(r)},remove(r){e=w7(e,r),e[0]?.resume()}}}ss(rne,"createFocusScopesStack");function w7(e,r){let a=[...e],i=a.indexOf(r);if(i!==-1)a.splice(i,1);return a}ss(w7,"arrayRemove");function one(e){return e.filter((r)=>r.tagName!=="A")}ss(one,"removeLinks");S();var cke=Object.defineProperty,uke=(e,r)=>cke(e,"name",{value:r,configurable:!0}),fZ=F(uke(function(r,a){let{container:i,...s}=r,[l,c]=u(!1);Pt(()=>c(!0),[]);let d=i||l&&globalThis?.document?.body;return d?Ji(t(se.div,{...s,ref:a}),d):null},"Portal"));S();S();var dke=Object.defineProperty,$Z=(e,r)=>dke(e,"name",{value:r,configurable:!0});function ane(e,r){return tn((a,i)=>r[a][i]??a,e)}$Z(ane,"useStateMachine");var cr=$Z((e)=>{let{present:r,children:a}=e,i=nne(r),s=typeof a==="function"?a({present:i.isPresent}):nc.only(a),l=ine(i.ref,fne(s));return typeof a==="function"||i.isPresent?Ou(s,{ref:l}):null},"Presence");function nne(e){let[r,a]=u(),i=_(null),s=_(e),l=_("none"),c=_(void 0),d=e?"mounted":"unmounted",[h,g]=ane(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m(()=>{if(h==="mounted")l.current=c.current??Qk(i.current),c.current=void 0;else l.current="none"},[h]),Pt(()=>{let x=i.current,v=s.current;if(v!==e){let y=l.current,k=Qk(x);if(e)c.current=k,g("MOUNT");else if(k==="none"||x?.display==="none")g("UNMOUNT");else if(v&&y!==k)g("ANIMATION_OUT");else g("UNMOUNT");s.current=e}},[e,g]),Pt(()=>{if(r){let x,v=r.ownerDocument.defaultView??window,b=$Z((k)=>{let U=Qk(i.current).includes(CSS.escape(k.animationName));if(k.target===r&&U){if(g("ANIMATION_END"),!s.current){let N=r.style.animationFillMode;r.style.animationFillMode="forwards",x=v.setTimeout(()=>{if(r.style.animationFillMode==="forwards")r.style.animationFillMode=N})}}},"handleAnimationEnd"),y=$Z((k)=>{if(k.target===r)l.current=Qk(i.current)},"handleAnimationStart");return r.addEventListener("animationstart",y),r.addEventListener("animationcancel",b),r.addEventListener("animationend",b),()=>{v.clearTimeout(x),r.removeEventListener("animationstart",y),r.removeEventListener("animationcancel",b),r.removeEventListener("animationend",b)}}else g("ANIMATION_END")},[r,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:P((x)=>{if(x){let v=getComputedStyle(x);i.current=v,c.current=Qk(v)}else i.current=null;a(x)},[])}}$Z(nne,"usePresence");function S7(e,r){if(typeof e==="function")return e(r);else if(e!==null&&e!==void 0)e.current=r}$Z(S7,"setRef");function ine(...e){let r=_(e);return r.current=e,P((a)=>{let i=r.current,s=!1,l=i.map((c)=>{let d=S7(c,a);if(!s&&typeof d==="function")s=!0;return d});if(s)return()=>{for(let c=0;c<l.length;c++){let d=l[c];if(typeof d==="function")d();else S7(i[c],null)}}},[])}$Z(ine,"useStableComposedRefs");function Qk(e){return e?.animationName||"none"}$Z(Qk,"getAnimationName");function fne(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}$Z(fne,"getElementRef");S();var Zke=Object.defineProperty,k7=(e,r)=>Zke(e,"name",{value:r,configurable:!0}),L4=0,Jk=null;function pke(e){return sZ(),e.children}k7(pke,"FocusGuards");function sZ(){m(()=>{if(!Jk)Jk={start:L7(),end:L7()};let{start:e,end:r}=Jk;if(document.body.firstElementChild!==e)document.body.insertAdjacentElement("afterbegin",e);if(document.body.lastElementChild!==r)document.body.insertAdjacentElement("beforeend",r);return L4++,()=>{if(L4===1)Jk?.start.remove(),Jk?.end.remove(),Jk=null;L4=Math.max(0,L4-1)}},[])}k7(sZ,"useFocusGuards");function L7(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}k7(L7,"createFocusGuard");var el=function(){return el=Object.assign||function(r){for(var a,i=1,s=arguments.length;i<s;i++){a=arguments[i];for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l))r[l]=a[l]}return r},el.apply(this,arguments)};function k4(e,r){var a={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0)a[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)if(r.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s]))a[i[s]]=e[i[s]]}return a}function sne(e,r,a){if(a||arguments.length===2){for(var i=0,s=r.length,l;i<s;i++)if(l||!(i in r)){if(!l)l=Array.prototype.slice.call(r,0,i);l[i]=r[i]}}return e.concat(l||Array.prototype.slice.call(r))}S();S();var Ez="right-scroll-bar-position",Dz="width-before-scroll-bar",C7="with-scroll-bars-hidden",I7="--removed-body-scroll-bar-size";S();function C4(e,r){if(typeof e==="function")e(r);else if(e)e.current=r;return e}S();function lne(e,r){var a=u(function(){return{value:e,callback:r,facade:{get current(){return a.value},set current(i){var s=a.value;if(s!==i)a.value=i,a.callback(i,s)}}}})[0];return a.callback=r,a.facade}var mke=typeof window<"u"?$e:m,cne=new WeakMap;function R7(e,r){var a=lne(r||null,function(i){return e.forEach(function(s){return C4(s,i)})});return mke(function(){var i=cne.get(a);if(i){var s=new Set(i),l=new Set(e),c=a.current;s.forEach(function(d){if(!l.has(d))C4(d,null)}),l.forEach(function(d){if(!s.has(d))C4(d,c)})}cne.set(a,e)},[e]),a}function hke(e){return e}function gke(e,r){if(r===void 0)r=hke;var a=[],i=!1,s={read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");if(a.length)return a[a.length-1];return e},useMedium:function(l){var c=r(l,i);return a.push(c),function(){a=a.filter(function(d){return d!==c})}},assignSyncMedium:function(l){i=!0;while(a.length){var c=a;a=[],c.forEach(l)}a={push:function(d){return l(d)},filter:function(){return a}}},assignMedium:function(l){i=!0;var c=[];if(a.length){var d=a;a=[],d.forEach(l),c=a}var h=function(){var x=c;c=[],x.forEach(l)},g=function(){return Promise.resolve().then(h)};g(),a={push:function(x){c.push(x),g()},filter:function(x){return c=c.filter(x),a}}}};return s}function P7(e){if(e===void 0)e={};var r=gke(null);return r.options=el({async:!0,ssr:!1},e),r}S();var une=function(e){var r=e.sideCar,a=k4(e,["sideCar"]);if(!r)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=r.read();if(!i)throw Error("Sidecar medium not found");return q(i,el({},a))};une.isSideCarExport=!0;function T7(e,r){return e.useMedium(r),une}var I4=P7();var A7=function(){return},$2=F(function(e,r){var a=_(null),i=u({onScrollCapture:A7,onWheelCapture:A7,onTouchMoveCapture:A7}),s=i[0],l=i[1],{forwardProps:c,children:d,className:h,removeScrollBar:g,enabled:x,shards:v,sideCar:b,noRelative:y,noIsolation:k,inert:T,allowPinchZoom:U,as:N}=e,j=N===void 0?"div":N,G=e.gapMode,X=k4(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),J=b,ee=R7([a,r]),re=el(el({},X),s);return q(In,null,x&&q(J,{sideCar:I4,removeScrollBar:g,shards:v,noRelative:y,noIsolation:k,inert:T,setCallbacks:l,allowPinchZoom:!!U,lockRef:a,gapMode:G}),c?Ou(nc.only(d),el(el({},re),{ref:ee})):q(j,el({},re,{className:h,ref:ee}),d))});$2.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$2.classNames={fullWidth:Dz,zeroRight:Ez};S();S();S();var dne;var Zne=function(){if(dne)return dne;if(typeof __webpack_nonce__<"u")return __webpack_nonce__;return};function Mke(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=Zne();if(r)e.setAttribute("nonce",r);return e}function xke(e,r){if(e.styleSheet)e.styleSheet.cssText=r;else e.appendChild(document.createTextNode(r))}function vke(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var E7=function(){var e=0,r=null;return{add:function(a){if(e==0){if(r=Mke())xke(r,a),vke(r)}e++},remove:function(){if(e--,!e&&r)r.parentNode&&r.parentNode.removeChild(r),r=null}}};var D7=function(){var e=E7();return function(r,a){m(function(){return e.add(r),function(){e.remove()}},[r&&a])}};var eD=function(){var e=D7(),r=function(a){var{styles:i,dynamic:s}=a;return e(i,s),null};return r};var yke={left:0,top:0,right:0,gap:0},O7=function(e){return parseInt(e||"",10)||0},_ke=function(e){var r=window.getComputedStyle(document.body),a=r[e==="padding"?"paddingLeft":"marginLeft"],i=r[e==="padding"?"paddingTop":"marginTop"],s=r[e==="padding"?"paddingRight":"marginRight"];return[O7(a),O7(i),O7(s)]},N7=function(e){if(e===void 0)e="margin";if(typeof window>"u")return yke;var r=_ke(e),a=document.documentElement.clientWidth,i=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,i-a+r[2]-r[0])}};var bke=eD(),$k="data-scroll-locked",wke=function(e,r,a,i){var{left:s,top:l,right:c,gap:d}=e;if(a===void 0)a="margin";return`
|
|
16
|
+
.`.concat(C7,` {
|
|
17
|
+
overflow: hidden `).concat(i,`;
|
|
18
|
+
padding-right: `).concat(d,"px ").concat(i,`;
|
|
19
|
+
}
|
|
20
|
+
body[`).concat($k,`] {
|
|
21
|
+
overflow: hidden `).concat(i,`;
|
|
22
|
+
overscroll-behavior: contain;
|
|
23
|
+
`).concat([r&&"position: relative ".concat(i,";"),a==="margin"&&`
|
|
24
|
+
padding-left: `.concat(s,`px;
|
|
25
|
+
padding-top: `).concat(l,`px;
|
|
26
|
+
padding-right: `).concat(c,`px;
|
|
27
|
+
margin-left:0;
|
|
28
|
+
margin-top:0;
|
|
29
|
+
margin-right: `).concat(d,"px ").concat(i,`;
|
|
30
|
+
`),a==="padding"&&"padding-right: ".concat(d,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.`).concat(Ez,` {
|
|
34
|
+
right: `).concat(d,"px ").concat(i,`;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.`).concat(Dz,` {
|
|
38
|
+
margin-right: `).concat(d,"px ").concat(i,`;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.`).concat(Ez," .").concat(Ez,` {
|
|
42
|
+
right: 0 `).concat(i,`;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.`).concat(Dz," .").concat(Dz,` {
|
|
46
|
+
margin-right: 0 `).concat(i,`;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
body[`).concat($k,`] {
|
|
50
|
+
`).concat(I7,": ").concat(d,`px;
|
|
51
|
+
}
|
|
52
|
+
`)},pne=function(){var e=parseInt(document.body.getAttribute($k)||"0",10);return isFinite(e)?e:0},zke=function(){m(function(){return document.body.setAttribute($k,(pne()+1).toString()),function(){var e=pne()-1;if(e<=0)document.body.removeAttribute($k);else document.body.setAttribute($k,e.toString())}},[])},F7=function(e){var{noRelative:r,noImportant:a,gapMode:i}=e,s=i===void 0?"margin":i;zke();var l=D(function(){return N7(s)},[s]);return q(bke,{styles:wke(l,!r,s,!a?"!important":"")})};var j7=!1;if(typeof window<"u")try{eR=Object.defineProperty({},"passive",{get:function(){return j7=!0,!0}}),window.addEventListener("test",eR,eR),window.removeEventListener("test",eR,eR)}catch(e){j7=!1}var eR,Oz=j7?{passive:!1}:!1;var Ske=function(e){return e.tagName==="TEXTAREA"},mne=function(e,r){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[r]!=="hidden"&&!(a.overflowY===a.overflowX&&!Ske(e)&&a[r]==="visible")},Lke=function(e){return mne(e,"overflowY")},kke=function(e){return mne(e,"overflowX")},B7=function(e,r){var a=r.ownerDocument,i=r;do{if(typeof ShadowRoot<"u"&&i instanceof ShadowRoot)i=i.host;var s=hne(e,i);if(s){var l=gne(e,i),c=l[1],d=l[2];if(c>d)return!0}i=i.parentNode}while(i&&i!==a.body);return!1},Cke=function(e){var{scrollTop:r,scrollHeight:a,clientHeight:i}=e;return[r,a,i]},Ike=function(e){var{scrollLeft:r,scrollWidth:a,clientWidth:i}=e;return[r,a,i]},hne=function(e,r){return e==="v"?Lke(r):kke(r)},gne=function(e,r){return e==="v"?Cke(r):Ike(r)},Rke=function(e,r){return e==="h"&&r==="rtl"?-1:1},Mne=function(e,r,a,i,s){var l=Rke(e,window.getComputedStyle(r).direction),c=l*i,d=a.target,h=r.contains(d),g=!1,x=c>0,v=0,b=0;do{if(!d)break;var y=gne(e,d),k=y[0],T=y[1],U=y[2],N=T-U-l*k;if(k||N){if(hne(e,d))v+=N,b+=k}var j=d.parentNode;d=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!h&&d!==document.body||h&&(r.contains(d)||r===d));if(x&&(s&&Math.abs(v)<1||!s&&c>v))g=!0;else if(!x&&(s&&Math.abs(b)<1||!s&&-c>b))g=!0;return g};var R4=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xne=function(e){return[e.deltaX,e.deltaY]},vne=function(e){return e&&"current"in e?e.current:e},Pke=function(e,r){return e[0]===r[0]&&e[1]===r[1]},Tke=function(e){return`
|
|
53
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
54
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
55
|
+
`)},Ake=0,tR=[];function yne(e){var r=_([]),a=_([0,0]),i=_(),s=u(Ake++)[0],l=u(eD)[0],c=_(e);m(function(){c.current=e},[e]),m(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var T=sne([e.lockRef.current],(e.shards||[]).map(vne),!0).filter(Boolean);return T.forEach(function(U){return U.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),T.forEach(function(U){return U.classList.remove("allow-interactivity-".concat(s))})}}return},[e.inert,e.lockRef.current,e.shards]);var d=P(function(T,U){if("touches"in T&&T.touches.length===2||T.type==="wheel"&&T.ctrlKey)return!c.current.allowPinchZoom;var N=R4(T),j=a.current,G="deltaX"in T?T.deltaX:j[0]-N[0],X="deltaY"in T?T.deltaY:j[1]-N[1],J,ee=T.target,re=Math.abs(G)>Math.abs(X)?"h":"v";if("touches"in T&&re==="h"&&ee.type==="range")return!1;var oe=window.getSelection(),fe=oe&&oe.anchorNode,be=fe?fe===ee||fe.contains(ee):!1;if(be)return!1;var We=B7(re,ee);if(!We)return!0;if(We)J=re;else J=re==="v"?"h":"v",We=B7(re,ee);if(!We)return!1;if(!i.current&&"changedTouches"in T&&(G||X))i.current=J;if(!J)return!0;var Ye=i.current||J;return Mne(Ye,U,T,Ye==="h"?G:X,!0)},[]),h=P(function(T){var U=T;if(!tR.length||tR[tR.length-1]!==l)return;var N="deltaY"in U?xne(U):R4(U),j=r.current.filter(function(J){return J.name===U.type&&(J.target===U.target||U.target===J.shadowParent)&&Pke(J.delta,N)})[0];if(j&&j.should){if(U.cancelable)U.preventDefault();return}if(!j){var G=(c.current.shards||[]).map(vne).filter(Boolean).filter(function(J){return J.contains(U.target)}),X=G.length>0?d(U,G[0]):!c.current.noIsolation;if(X){if(U.cancelable)U.preventDefault()}}},[]),g=P(function(T,U,N,j){var G={name:T,delta:U,target:N,should:j,shadowParent:Eke(N)};r.current.push(G),setTimeout(function(){r.current=r.current.filter(function(X){return X!==G})},1)},[]),x=P(function(T){a.current=R4(T),i.current=void 0},[]),v=P(function(T){g(T.type,xne(T),T.target,d(T,e.lockRef.current))},[]),b=P(function(T){g(T.type,R4(T),T.target,d(T,e.lockRef.current))},[]);m(function(){return tR.push(l),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:b}),document.addEventListener("wheel",h,Oz),document.addEventListener("touchmove",h,Oz),document.addEventListener("touchstart",x,Oz),function(){tR=tR.filter(function(T){return T!==l}),document.removeEventListener("wheel",h,Oz),document.removeEventListener("touchmove",h,Oz),document.removeEventListener("touchstart",x,Oz)}},[]);var{removeScrollBar:y,inert:k}=e;return q(In,null,k?q(l,{styles:Tke(s)}):null,y?q(F7,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Eke(e){var r=null;while(e!==null){if(e instanceof ShadowRoot)r=e.host,e=e.host;e=e.parentNode}return r}var _ne=T7(I4,yne);var bne=F(function(e,r){return q($2,el({},e,{ref:r,sideCar:_ne}))});bne.classNames=$2.classNames;var fm=bne;var Dke=function(e){if(typeof document>"u")return null;var r=Array.isArray(e)?e[0]:e;return r.ownerDocument.body},rR=new WeakMap,P4=new WeakMap,T4={},U7=0,wne=function(e){return e&&(e.host||wne(e.parentNode))},Oke=function(e,r){return r.map(function(a){if(e.contains(a))return a;var i=wne(a);if(i&&e.contains(i))return i;return console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null}).filter(function(a){return Boolean(a)})},Nke=function(e,r,a,i){var s=Oke(r,Array.isArray(e)?e:[e]);if(!T4[a])T4[a]=new WeakMap;var l=T4[a],c=[],d=new Set,h=new Set(s),g=function(v){if(!v||d.has(v))return;d.add(v),g(v.parentNode)};s.forEach(g);var x=function(v){if(!v||h.has(v))return;Array.prototype.forEach.call(v.children,function(b){if(d.has(b))x(b);else try{var y=b.getAttribute(i),k=y!==null&&y!=="false",T=(rR.get(b)||0)+1,U=(l.get(b)||0)+1;if(rR.set(b,T),l.set(b,U),c.push(b),T===1&&k)P4.set(b,!0);if(U===1)b.setAttribute(a,"true");if(!k)b.setAttribute(i,"true")}catch(N){console.error("aria-hidden: cannot operate on ",b,N)}})};return x(r),d.clear(),U7++,function(){if(c.forEach(function(v){var b=rR.get(v)-1,y=l.get(v)-1;if(rR.set(v,b),l.set(v,y),!b){if(!P4.has(v))v.removeAttribute(i);P4.delete(v)}if(!y)v.removeAttribute(a)}),U7--,!U7)rR=new WeakMap,rR=new WeakMap,P4=new WeakMap,T4={}}},Z8=function(e,r,a){if(a===void 0)a="data-aria-hidden";var i=Array.from(Array.isArray(e)?e:[e]),s=r||Dke(e);if(!s)return function(){return null};return i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),Nke(i,s,a,"aria-hidden")};var Fke=Object.defineProperty,Kl=(e,r)=>Fke(e,"name",{value:r,configurable:!0}),q7="Dialog",[zne,H7]=gt(q7),[jke,du]=zne(q7),V7=Kl((e)=>{let{__scopeDialog:r,children:a,open:i,defaultOpen:s,onOpenChange:l,modal:c=!0}=e,d=_(null),h=_(null),[g,x]=Lt({prop:i,defaultProp:s??!1,onChange:l,caller:q7}),[v,b]=u(0),[y,k]=u(0);return t(jke,{scope:r,triggerRef:d,contentRef:h,contentId:Er(),titleId:Er(),descriptionId:Er(),titlePresent:v>0,descriptionPresent:y>0,setTitleCount:b,setDescriptionCount:k,open:g,onOpenChange:x,onOpenToggle:P(()=>x((T)=>!T),[x]),modal:c,children:a})},"Dialog"),Bke="DialogTrigger",W7=F(Kl(function(r,a){let{__scopeDialog:i,...s}=r,l=du(Bke,i),c=ye(a,l.triggerRef);return t(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":A4(l.open),...s,ref:c,onClick:Y(r.onClick,l.onOpenToggle)})},"DialogTrigger")),Sne="DialogPortal",[Uke,Lne]=zne(Sne,{forceMount:void 0}),G7=Kl((e)=>{let{__scopeDialog:r,forceMount:a,children:i,container:s}=e,l=du(Sne,r);return t(Uke,{scope:r,forceMount:a,children:nc.map(i,(c)=>t(cr,{present:a||l.open,children:t(fZ,{asChild:!0,container:s,children:c})}))})},"DialogPortal"),Y7="DialogOverlay",K7=F(Kl(function(r,a){let i=Lne(Y7,r.__scopeDialog),{forceMount:s=i.forceMount,...l}=r,c=du(Y7,r.__scopeDialog);return c.modal?t(cr,{present:s||c.open,children:t(qke,{...l,ref:a})}):null},"DialogOverlay")),Yke=Ni("DialogOverlay.RemoveScroll"),qke=F(Kl(function(r,a){let{__scopeDialog:i,...s}=r,l=du(Y7,i),c=x7(),d=ye(a,c);return t(fm,{as:Yke,allowPinchZoom:!0,shards:[l.contentRef],children:t(se.div,{"data-state":A4(l.open),...s,ref:d,style:{pointerEvents:"auto",...s.style}})})},"DialogOverlayImpl")),tD="DialogContent",X7=F(Kl(function(r,a){let i=Lne(tD,r.__scopeDialog),{forceMount:s=i.forceMount,...l}=r,c=du(tD,r.__scopeDialog);return t(cr,{present:s||c.open,children:c.modal?t(Hke,{...l,ref:a}):t(Vke,{...l,ref:a})})},"DialogContent")),Hke=F(Kl(function(r,a){let i=du(tD,r.__scopeDialog),s=_(null),l=ye(a,i.contentRef,s);return m(()=>{let c=s.current;if(c)return Z8(c)},[]),t(kne,{...r,ref:l,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:Y(r.onCloseAutoFocus,(c)=>{c.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:Y(r.onPointerDownOutside,(c)=>{let d=c.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;if(d.button===2||h)c.preventDefault()}),onFocusOutside:Y(r.onFocusOutside,(c)=>c.preventDefault())})},"DialogContentModal")),Vke=F(Kl(function(r,a){let i=du(tD,r.__scopeDialog),s=_(!1),l=_(!1);return t(kne,{...r,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:(c)=>{if(r.onCloseAutoFocus?.(c),!c.defaultPrevented){if(!s.current)i.triggerRef.current?.focus();c.preventDefault()}s.current=!1,l.current=!1},onInteractOutside:(c)=>{if(r.onInteractOutside?.(c),!c.defaultPrevented){if(s.current=!0,c.detail.originalEvent.type==="pointerdown")l.current=!0}let d=c.target;if(i.triggerRef.current?.contains(d))c.preventDefault();if(c.detail.originalEvent.type==="focusin"&&l.current)c.preventDefault()}})},"DialogContentNonModal")),kne=F(Kl(function(r,a){let{__scopeDialog:i,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:c,...d}=r,h=du(tD,i);return sZ(),t(L,{children:t(d8,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:l,onUnmountAutoFocus:c,children:t(iZ,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionPresent?h.descriptionId:void 0,"aria-labelledby":h.titlePresent?h.titleId:void 0,"data-state":A4(h.open),...d,ref:a,deferPointerDownOutside:!0,onDismiss:()=>h.onOpenChange(!1)})})})},"DialogContentImpl")),Wke="DialogTitle",Q7=F(Kl(function(r,a){let{__scopeDialog:i,...s}=r,l=du(Wke,i),{setTitleCount:c}=l;return Pt(()=>(c((d)=>d+1),()=>c((d)=>d-1)),[c]),t(se.h2,{id:l.titleId,...s,ref:a})},"DialogTitle")),Gke="DialogDescription",J7=F(Kl(function(r,a){let{__scopeDialog:i,...s}=r,l=du(Gke,i),{setDescriptionCount:c}=l;return Pt(()=>(c((d)=>d+1),()=>c((d)=>d-1)),[c]),t(se.p,{id:l.descriptionId,...s,ref:a})},"DialogDescription")),Kke="DialogClose",rD=F(Kl(function(r,a){let{__scopeDialog:i,...s}=r,l=du(Kke,i);return t(se.button,{type:"button",...s,ref:a,onClick:Y(r.onClick,()=>l.onOpenChange(!1))})},"DialogClose"));function A4(e){return e?"open":"closed"}Kl(A4,"getState");var Xke=Object.defineProperty,pm=(e,r)=>Xke(e,"name",{value:r,configurable:!0}),Qke="AlertDialog",[Jke,hXo]=gt(Qke,[H7]),mm=H7(),$ke=pm((e)=>{let{__scopeAlertDialog:r,...a}=e,i=mm(r);return t(V7,{...i,...a,modal:!0})},"AlertDialog"),gXo=F(pm(function(r,a){let{__scopeAlertDialog:i,...s}=r,l=mm(i);return t(W7,{...l,...s,ref:a})},"AlertDialogTrigger")),eCe=pm((e)=>{let{__scopeAlertDialog:r,...a}=e,i=mm(r);return t(G7,{...i,...a})},"AlertDialogPortal"),tCe=F(pm(function(r,a){let{__scopeAlertDialog:i,...s}=r,l=mm(i);return t(K7,{...l,...s,ref:a})},"AlertDialogOverlay")),rCe="AlertDialogContent",[oCe,aCe]=Jke(rCe),nCe=F(pm(function(r,a){let{__scopeAlertDialog:i,children:s,...l}=r,c=mm(i),d=_(null),h=ye(a,d),g=_(null);return t(oCe,{scope:i,cancelRef:g,children:t(X7,{role:"alertdialog",...c,...l,ref:h,onOpenAutoFocus:Y(l.onOpenAutoFocus,(x)=>{x.preventDefault(),g.current?.focus({preventScroll:!0})}),onPointerDownOutside:(x)=>x.preventDefault(),onInteractOutside:(x)=>x.preventDefault(),children:s})})},"AlertDialogContent")),iCe=F(pm(function(r,a){let{__scopeAlertDialog:i,...s}=r,l=mm(i);return t(Q7,{...l,...s,ref:a})},"AlertDialogTitle")),fCe=F(pm(function(r,a){let{__scopeAlertDialog:i,...s}=r,l=mm(i);return t(J7,{...l,...s,ref:a})},"AlertDialogDescription")),sCe=F(pm(function(r,a){let{__scopeAlertDialog:i,...s}=r,l=mm(i);return t(rD,{...l,...s,ref:a})},"AlertDialogAction")),lCe="AlertDialogCancel",cCe=F(pm(function(r,a){let{__scopeAlertDialog:i,...s}=r,{cancelRef:l}=aCe(lCe,i),c=mm(i),d=ye(a,l);return t(rD,{...c,...s,ref:d})},"AlertDialogCancel")),uCe=$ke;var dCe=eCe,ZCe=tCe,pCe=nCe,mCe=sCe,hCe=cCe,gCe=iCe,MCe=fCe;S();var xCe=Object.defineProperty,hm=(e,r)=>xCe(e,"name",{value:r,configurable:!0}),Ine="Avatar",[vCe,wXo]=gt(Ine),yCe=[0,()=>{return}],[_Ce,Rne]=vCe(Ine),bCe=F(hm(function(r,a){let{__scopeAvatar:i,...s}=r,[l,c]=u("idle"),[d,h]=Tne();return t(_Ce,{scope:i,imageLoadingStatus:l,setImageLoadingStatus:c,imageCount:d,setImageCount:h,children:t(se.span,{...s,ref:a})})},"Avatar")),wCe="AvatarImage",zCe=F(hm(function(r,a){let{__scopeAvatar:i,src:s,onLoadingStatusChange:l,...c}=r,d=Rne(wCe,i);Ane(d.setImageCount);let h=Pne(s,{referrerPolicy:c.referrerPolicy,crossOrigin:c.crossOrigin,loadingStatus:d.imageLoadingStatus,setLoadingStatus:d.setImageLoadingStatus}),g=Ko((v)=>{l?.(v)}),x=_(h);return Pt(()=>{let v=x.current;if(x.current=h,h!==v)g(h)},[h,g]),h==="loaded"?t(se.img,{...c,ref:a,src:s}):null},"AvatarImage")),SCe="AvatarFallback",LCe=F(hm(function(r,a){let{__scopeAvatar:i,delayMs:s,...l}=r,c=Rne(SCe,i),[d,h]=u(s===void 0);return m(()=>{if(s!==void 0){let g=window.setTimeout(()=>h(!0),s);return()=>window.clearTimeout(g)}},[s]),d&&c.imageLoadingStatus!=="loaded"?t(se.span,{...l,ref:a}):null},"AvatarFallback"));function Pne(e,{loadingStatus:r,setLoadingStatus:a,referrerPolicy:i,crossOrigin:s}){return Pt(()=>{if(!e){a("error");return}let l=new window.Image,c=hm((h)=>{let g=h.currentTarget;a(eq(g))},"handleLoad"),d=hm(()=>a("error"),"handleError");if(l.addEventListener("load",c),l.addEventListener("error",d),i)l.referrerPolicy=i;return l.crossOrigin=s??null,l.src=e,a(eq(l)),()=>{l.removeEventListener("load",c),l.removeEventListener("error",d),a("idle")}},[e,s,i,a]),r}hm(Pne,"useImageLoadingStatus");function eq(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}hm(eq,"getImageLoadingStatus");function Tne(){let e=yCe;if(gi){e=u(0);let[r]=e,a=_(!1);m(()=>{if(r>1&&!a.current)a.current=!0,console.warn("Avatar: Only one `Avatar.Image` component should be rendered per `Avatar.Root`, but multiple were detected. This will lead to unexpected behavior.")},[r])}return e}hm(Tne,"useImageCount");function Ane(e){if(gi)m(()=>(e((r)=>r+1),()=>{e((r)=>r-1)}),[e])}hm(Ane,"useUpdateImageCount");S();S();var kCe=Object.defineProperty,CCe=(e,r)=>kCe(e,"name",{value:r,configurable:!0});function Ai(e){let[r,a]=u(void 0);return Pt(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let i=new ResizeObserver((s)=>{if(!Array.isArray(s))return;if(!s.length)return;let l=s[0],c,d;if("borderBoxSize"in l){let h=l.borderBoxSize,g=Array.isArray(h)?h[0]:h;c=g.inlineSize,d=g.blockSize}else c=e.offsetWidth,d=e.offsetHeight;a({width:c,height:d})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else a(void 0)},[e]),r}CCe(Ai,"useSize");var ICe=Object.defineProperty,xm=(e,r)=>ICe(e,"name",{value:r,configurable:!0}),tq="Checkbox",[RCe,EXo]=gt(tq),[PCe,rq]=RCe(tq);function Dne(e){let{__scopeCheckbox:r,checked:a,children:i,defaultChecked:s,disabled:l,form:c,name:d,onCheckedChange:h,required:g,value:x="on",internal_do_not_use_render:v}=e,[b,y]=Lt({prop:a,defaultProp:s??!1,onChange:h,caller:tq}),[k,T]=u(null),[U,N]=u(null),j=_(!1),[G,X]=tn((re)=>re+1,0),J=k?!!c||!!k.closest("form"):!0,ee={checked:b,disabled:l,setChecked:y,control:k,setControl:T,name:d,form:c,value:x,hasConsumerStoppedPropagationRef:j,userInteractionCount:G,onUserInteraction:X,required:g,defaultChecked:gm(s)?!1:s,isFormControl:J,bubbleInput:U,setBubbleInput:N};return t(PCe,{scope:r,...ee,children:One(v)?v(ee):i})}xm(Dne,"CheckboxProvider");var TCe="CheckboxTrigger",ACe=F(xm(function({__scopeCheckbox:r,onKeyDown:a,onClick:i,...s},l){let{control:c,value:d,disabled:h,checked:g,required:x,setControl:v,setChecked:b,hasConsumerStoppedPropagationRef:y,onUserInteraction:k,isFormControl:T,bubbleInput:U}=rq(TCe,r),N=ye(l,v),j=_(g);return m(()=>{let G=c?.form;if(G){let X=xm(()=>b(j.current),"reset");return G.addEventListener("reset",X),()=>G.removeEventListener("reset",X)}},[c,b]),t(se.button,{type:"button",role:"checkbox","aria-checked":gm(g)?"mixed":g,"aria-required":x,"data-state":oq(g),"data-disabled":h?"":void 0,disabled:h,value:d,...s,ref:N,onKeyDown:Y(a,(G)=>{if(G.key==="Enter")G.preventDefault()}),onClick:Y(i,(G)=>{if(k(),b((X)=>gm(X)?!0:!X),U&&T){if(y.current=G.isPropagationStopped(),!y.current)G.stopPropagation()}})})},"CheckboxTrigger")),ECe=F(xm(function(r,a){let{__scopeCheckbox:i,name:s,checked:l,defaultChecked:c,required:d,disabled:h,value:g,onCheckedChange:x,form:v,...b}=r;return t(Dne,{__scopeCheckbox:i,checked:l,defaultChecked:c,disabled:h,required:d,onCheckedChange:x,name:s,form:v,value:g,internal_do_not_use_render:({isFormControl:y})=>o(L,{children:[t(ACe,{...b,ref:a,__scopeCheckbox:i}),y&&t(FCe,{__scopeCheckbox:i})]})})},"Checkbox")),DCe="CheckboxIndicator",OCe=F(xm(function(r,a){let{__scopeCheckbox:i,forceMount:s,...l}=r,c=rq(DCe,i);return t(cr,{present:s||gm(c.checked)||c.checked===!0,children:t(se.span,{"data-state":oq(c.checked),"data-disabled":c.disabled?"":void 0,...l,ref:a,style:{pointerEvents:"none",...r.style}})})},"CheckboxIndicator")),NCe="CheckboxBubbleInput",FCe=F(xm(function({__scopeCheckbox:r,onClick:a,...i},s){let{control:l,hasConsumerStoppedPropagationRef:c,userInteractionCount:d,checked:h,defaultChecked:g,required:x,disabled:v,name:b,value:y,form:k,bubbleInput:T,setBubbleInput:U}=rq(NCe,r),N=ye(s,U),j=Ai(l),G=_(!1),X=_(h),J=_(d);m(()=>{let re=T;if(!re)return;let oe=window.HTMLInputElement.prototype,be=Object.getOwnPropertyDescriptor(oe,"checked").set,We=d!==J.current;J.current=d;let Ye=X.current!==h;X.current=h;let Se=!(We&&c.current);if(Ye&&be){G.current=!We;let He=new Event("click",{bubbles:Se});re.indeterminate=gm(h),be.call(re,gm(h)?!1:h),re.dispatchEvent(He),G.current=!1}},[T,h,c,d]);let ee=_(gm(h)?!1:h);return t(se.input,{type:"checkbox","aria-hidden":!0,defaultChecked:g??ee.current,required:x,disabled:v,name:b,value:y,form:k,...i,tabIndex:-1,ref:N,onClick:Y(a,(re)=>{if(G.current)re.stopPropagation()}),style:{...i.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function One(e){return typeof e==="function"}xm(One,"isFunction");function gm(e){return e==="indeterminate"}xm(gm,"isIndeterminate");function oq(e){return gm(e)?"indeterminate":e?"checked":"unchecked"}xm(oq,"getState");S();S();S();var jCe=Object.defineProperty,ji=(e,r)=>jCe(e,"name",{value:r,configurable:!0});function _i(e){let r=e+"CollectionProvider",[a,i]=gt(r),[s,l]=a(r,{collectionRef:{current:null},itemMap:new Map}),c=ji((T)=>{let{scope:U,children:N}=T,j=_(null),G=_(new Map).current;return t(s,{scope:U,itemMap:G,collectionRef:j,children:N})},"CollectionProvider");c.displayName=r;let d=e+"CollectionSlot",h=Ni(d),g=F((T,U)=>{let{scope:N,children:j}=T,G=l(d,N),X=ye(U,G.collectionRef);return t(h,{ref:X,children:j})});g.displayName=d;let x=e+"CollectionItemSlot",v="data-radix-collection-item",b=Ni(x),y=F((T,U)=>{let{scope:N,children:j,...G}=T,X=_(null),J=ye(U,X),ee=l(x,N);return m(()=>(ee.itemMap.set(X,{ref:X,...G}),()=>void ee.itemMap.delete(X))),t(b,{...{[v]:""},ref:J,children:j})});y.displayName=x;function k(T){let U=l(e+"CollectionConsumer",T);return P(()=>{let j=U.collectionRef.current;if(!j)return[];let G=Array.from(j.querySelectorAll(`[${v}]`));return Array.from(U.itemMap.values()).sort((ee,re)=>G.indexOf(ee.ref.current)-G.indexOf(re.ref.current))},[U.collectionRef,U.itemMap])}return ji(k,"useCollection"),[{Provider:c,Slot:g,ItemSlot:y},k,i]}ji(_i,"createCollection");var Fne=new WeakMap,aq=class e extends Map{static{ji(this,"OrderedDict")}#e;constructor(r){super(r);this.#e=[...super.keys()],Fne.set(this,!0)}set(r,a){if(Fne.get(this))if(this.has(r))this.#e[this.#e.indexOf(r)]=r;else this.#e.push(r);return super.set(r,a),this}insert(r,a,i){let s=this.has(a),l=this.#e.length,c=iq(r),d=c>=0?c:l+c,h=d<0||d>=l?-1:d;if(h===this.size||s&&h===this.size-1||h===-1)return this.set(a,i),this;let g=this.size+(s?0:1);if(c<0)d++;let x=[...this.#e],v,b=!1;for(let y=d;y<g;y++)if(d===y){let k=x[y];if(x[y]===a)k=x[y+1];if(s)this.delete(a);v=this.get(k),this.set(a,i)}else{if(!b&&x[y-1]===a)b=!0;let k=x[b?y:y-1],T=v;v=this.get(k),this.delete(k),this.set(k,T)}return this}with(r,a,i){let s=new e(this);return s.insert(r,a,i),s}before(r){let a=this.#e.indexOf(r)-1;if(a<0)return;return this.entryAt(a)}setBefore(r,a,i){let s=this.#e.indexOf(r);if(s===-1)return this;return this.insert(s,a,i)}after(r){let a=this.#e.indexOf(r);if(a=a===-1||a===this.size-1?-1:a+1,a===-1)return;return this.entryAt(a)}setAfter(r,a,i){let s=this.#e.indexOf(r);if(s===-1)return this;return this.insert(s+1,a,i)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(r){let a=super.delete(r);if(a)this.#e.splice(this.#e.indexOf(r),1);return a}deleteAt(r){let a=this.keyAt(r);if(a!==void 0)return this.delete(a);return!1}at(r){let a=E4(this.#e,r);if(a!==void 0)return this.get(a)}entryAt(r){let a=E4(this.#e,r);if(a!==void 0)return[a,this.get(a)]}indexOf(r){return this.#e.indexOf(r)}keyAt(r){return E4(this.#e,r)}from(r,a){let i=this.indexOf(r);if(i===-1)return;let s=i+a;if(s<0)s=0;if(s>=this.size)s=this.size-1;return this.at(s)}keyFrom(r,a){let i=this.indexOf(r);if(i===-1)return;let s=i+a;if(s<0)s=0;if(s>=this.size)s=this.size-1;return this.keyAt(s)}find(r,a){let i=0;for(let s of this){if(Reflect.apply(r,a,[s,i,this]))return s;i++}return}findIndex(r,a){let i=0;for(let s of this){if(Reflect.apply(r,a,[s,i,this]))return i;i++}return-1}filter(r,a){let i=[],s=0;for(let l of this){if(Reflect.apply(r,a,[l,s,this]))i.push(l);s++}return new e(i)}map(r,a){let i=[],s=0;for(let l of this)i.push([l[0],Reflect.apply(r,a,[l,s,this])]),s++;return new e(i)}reduce(...r){let[a,i]=r,s=0,l=i??this.at(0);for(let c of this){if(s===0&&r.length===1)l=c;else l=Reflect.apply(a,this,[l,c,s,this]);s++}return l}reduceRight(...r){let[a,i]=r,s=i??this.at(-1);for(let l=this.size-1;l>=0;l--){let c=this.at(l);if(l===this.size-1&&r.length===1)s=c;else s=Reflect.apply(a,this,[s,c,l,this])}return s}toSorted(r){let a=[...this.entries()].sort(r);return new e(a)}toReversed(){let r=new e;for(let a=this.size-1;a>=0;a--){let i=this.keyAt(a),s=this.get(i);r.set(i,s)}return r}toSpliced(...r){let a=[...this.entries()];return a.splice(...r),new e(a)}slice(r,a){let i=new e,s=this.size-1;if(r===void 0)return i;if(r<0)r=r+this.size;if(a!==void 0&&a>0)s=a-1;for(let l=r;l<=s;l++){let c=this.keyAt(l),d=this.get(c);i.set(c,d)}return i}every(r,a){let i=0;for(let s of this){if(!Reflect.apply(r,a,[s,i,this]))return!1;i++}return!0}some(r,a){let i=0;for(let s of this){if(Reflect.apply(r,a,[s,i,this]))return!0;i++}return!1}};function E4(e,r){if("at"in Array.prototype)return Array.prototype.at.call(e,r);let a=jne(e,r);return a===-1?void 0:e[a]}ji(E4,"at");function jne(e,r){let a=e.length,i=iq(r),s=i>=0?i:a+i;return s<0||s>=a?-1:s}ji(jne,"toSafeIndex");function iq(e){return e!==e||e===0?0:Math.trunc(e)}ji(iq,"toSafeInteger");function BCe(e){let r=e+"CollectionProvider",[a,i]=gt(r),[s,l]=a(r,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new aq,setItemMap:ji(()=>{return},"setItemMap")}),c=ji(({state:G,...X})=>G?t(h,{...X,state:G}):t(d,{...X}),"CollectionProvider");c.displayName=r;let d=ji((G)=>{let X=U();return t(h,{...G,state:X})},"CollectionInit");d.displayName=r+"Init";let h=ji((G)=>{let{scope:X,children:J,state:ee}=G,re=_(null),[oe,fe]=u(null),be=ye(re,fe),[We,Ye]=ee;return m(()=>{if(!oe)return;let Se=Yne(()=>{});return Se.observe(oe,{childList:!0,subtree:!0}),()=>{Se.disconnect()}},[oe]),t(s,{scope:X,itemMap:We,setItemMap:Ye,collectionRef:be,collectionRefObject:re,collectionElement:oe,children:J})},"CollectionProviderImpl");h.displayName=r+"Impl";let g=e+"CollectionSlot",x=Ni(g),v=F((G,X)=>{let{scope:J,children:ee}=G,re=l(g,J),oe=ye(X,re.collectionRef);return t(x,{ref:oe,children:ee})});v.displayName=g;let b=e+"CollectionItemSlot",y="data-radix-collection-item",k=Ni(b),T=F((G,X)=>{let{scope:J,children:ee,...re}=G,oe=_(null),[fe,be]=u(null),We=ye(X,oe,be),Ye=l(b,J),{setItemMap:Se}=Ye,He=_(re);if(!Bne(He.current,re))He.current=re;let ft=He.current;return m(()=>{let Je=ft;return Se((xt)=>{if(!fe)return xt;if(!xt.has(fe))return xt.set(fe,{...Je,element:fe}),xt.toSorted(nq);return xt.set(fe,{...Je,element:fe}).toSorted(nq)}),()=>{Se((xt)=>{if(!fe||!xt.has(fe))return xt;return xt.delete(fe),new aq(xt)})}},[fe,ft,Se]),t(k,{...{[y]:""},ref:We,children:ee})});T.displayName=b;function U(){return u(new aq)}ji(U,"useInitCollection");function N(G){let{itemMap:X}=l(e+"CollectionConsumer",G);return X}return ji(N,"useCollection"),[{Provider:c,Slot:v,ItemSlot:T},{createCollectionScope:i,useCollection:N,useInitCollection:U}]}ji(BCe,"createCollection");function Bne(e,r){if(e===r)return!0;if(typeof e!=="object"||typeof r!=="object")return!1;if(e==null||r==null)return!1;let a=Object.keys(e),i=Object.keys(r);if(a.length!==i.length)return!1;for(let s of a){if(!Object.prototype.hasOwnProperty.call(r,s))return!1;if(e[s]!==r[s])return!1}return!0}ji(Bne,"shallowEqual");function Une(e,r){return!!(r.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}ji(Une,"isElementPreceding");function nq(e,r){return!e[1].element||!r[1].element?0:Une(e[1].element,r[1].element)?-1:1}ji(nq,"sortByDocumentPosition");function Yne(e){return new MutationObserver((a)=>{for(let i of a)if(i.type==="childList"){e();return}})}ji(Yne,"getChildListObserver");S();var UCe=Object.defineProperty,YCe=(e,r)=>UCe(e,"name",{value:r,configurable:!0}),qCe=lt(void 0);function $n(e){let r=pt(qCe);return e||r||"ltr"}YCe($n,"useDirection");S();var Vne=["top","right","bottom","left"];var{min:lZ,max:Zu,round:aD,floor:nD}=Math,cZ=(e)=>({x:e,y:e}),HCe={left:"right",right:"left",bottom:"top",top:"bottom"};function fq(e,r,a){return Zu(e,lZ(r,a))}function uZ(e,r){return typeof e==="function"?e(r):e}function vm(e){return e.split("-")[0]}function Nz(e){return e.split("-")[1]}function O4(e){return e==="x"?"y":"x"}function N4(e){return e==="y"?"height":"width"}function pu(e){let r=e[0];return r==="t"||r==="b"?"y":"x"}function F4(e){return O4(pu(e))}function Wne(e,r,a){if(a===void 0)a=!1;let i=Nz(e),s=F4(e),l=N4(s),c=s==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";if(r.reference[l]>r.floating[l])c=oD(c);return[c,oD(c)]}function Gne(e){let r=oD(e);return[D4(e),r,D4(r)]}function D4(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var qne=["left","right"],Hne=["right","left"],VCe=["top","bottom"],WCe=["bottom","top"];function GCe(e,r,a){switch(e){case"top":case"bottom":if(a)return r?Hne:qne;return r?qne:Hne;case"left":case"right":return r?VCe:WCe;default:return[]}}function Kne(e,r,a,i){let s=Nz(e),l=GCe(vm(e),a==="start",i);if(s){if(l=l.map((c)=>c+"-"+s),r)l=l.concat(l.map(D4))}return l}function oD(e){let r=vm(e);return HCe[r]+e.slice(r.length)}function KCe(e){var r,a,i,s;return{top:(r=e.top)!=null?r:0,right:(a=e.right)!=null?a:0,bottom:(i=e.bottom)!=null?i:0,left:(s=e.left)!=null?s:0}}function sq(e){return typeof e!=="number"?KCe(e):{top:e,right:e,bottom:e,left:e}}function Fz(e){let{x:r,y:a,width:i,height:s}=e;return{width:i,height:s,top:a,left:r,right:r+i,bottom:a+s,x:r,y:a}}function Xne(e,r,a){let{reference:i,floating:s}=e,l=pu(r),c=F4(r),d=N4(c),h=vm(r),g=l==="y",x=i.x+i.width/2-s.width/2,v=i.y+i.height/2-s.height/2,b=i[d]/2-s[d]/2,y;switch(h){case"top":y={x,y:i.y-s.height};break;case"bottom":y={x,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:v};break;case"left":y={x:i.x-s.width,y:v};break;default:y={x:i.x,y:i.y}}let k=Nz(r);if(k)y[c]+=b*(k==="end"?1:-1)*(a&&g?-1:1);return y}async function $ne(e,r){var a;if(r===void 0)r={};let{x:i,y:s,platform:l,rects:c,elements:d,strategy:h}=e,{boundary:g="clippingAncestors",rootBoundary:x="viewport",elementContext:v="floating",altBoundary:b=!1,padding:y=0}=uZ(r,e),k=sq(y),U=d[b?v==="floating"?"reference":"floating":v],N=Fz(await l.getClippingRect({element:((a=await(l.isElement==null?void 0:l.isElement(U)))!=null?a:!0)?U:U.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:g,rootBoundary:x,strategy:h})),j=v==="floating"?{x:i,y:s,width:c.floating.width,height:c.floating.height}:c.reference,G=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),X=await(l.isElement==null?void 0:l.isElement(G))&&await(l.getScale==null?void 0:l.getScale(G))||{x:1,y:1},J=Fz(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:j,offsetParent:G,strategy:h}):j);return{top:(N.top-J.top+k.top)/X.y,bottom:(J.bottom-N.bottom+k.bottom)/X.y,left:(N.left-J.left+k.left)/X.x,right:(J.right-N.right+k.right)/X.x}}var XCe=50,eie=async(e,r,a)=>{let{placement:i="bottom",strategy:s="absolute",middleware:l=[],platform:c}=a,d=c.detectOverflow?c:{...c,detectOverflow:$ne},h=await(c.isRTL==null?void 0:c.isRTL(r)),g=await c.getElementRects({reference:e,floating:r,strategy:s}),{x,y:v}=Xne(g,i,h),b=i,y=0,k={};for(let T=0;T<l.length;T++){let U=l[T];if(!U)continue;let{name:N,fn:j}=U,{x:G,y:X,data:J,reset:ee}=await j({x,y:v,initialPlacement:i,placement:b,strategy:s,middlewareData:k,rects:g,platform:d,elements:{reference:e,floating:r}});if(x=G!=null?G:x,v=X!=null?X:v,k[N]={...k[N],...J},ee&&y<XCe){if(y++,typeof ee==="object"){if(ee.placement)b=ee.placement;if(ee.rects)g=ee.rects===!0?await c.getElementRects({reference:e,floating:r,strategy:s}):ee.rects;({x,y:v}=Xne(g,b,h))}T=-1}}return{x,y:v,placement:b,strategy:s,middlewareData:k}},tie=(e)=>({name:"arrow",options:e,async fn(r){let{x:a,y:i,placement:s,rects:l,platform:c,elements:d,middlewareData:h}=r,{element:g,padding:x=0}=uZ(e,r)||{};if(g==null)return{};let v=sq(x),b={x:a,y:i},y=F4(s),k=N4(y),T=await c.getDimensions(g),U=y==="y",N=U?"top":"left",j=U?"bottom":"right",G=U?"clientHeight":"clientWidth",X=l.reference[k]+l.reference[y]-b[y]-l.floating[k],J=b[y]-l.reference[y],ee=await(c.getOffsetParent==null?void 0:c.getOffsetParent(g)),re=ee?ee[G]:0;if(!re||!await(c.isElement==null?void 0:c.isElement(ee)))re=d.floating[G]||l.floating[k];let oe=X/2-J/2,fe=re/2-T[k]/2-1,be=lZ(v[N],fe),We=lZ(v[j],fe),Ye=re-T[k]-We,Se=re/2-T[k]/2+oe,He=fq(be,Se,Ye),ft=!h.arrow&&Nz(s)!=null&&Se!==He&&l.reference[k]/2-(Se<be?be:We)-T[k]/2<0,Je=ft?Se<be?Se-be:Se-Ye:0;return{[y]:b[y]+Je,data:{[y]:He,centerOffset:Se-He-Je,...ft&&{alignmentOffset:Je}},reset:ft}}});var rie=function(e){if(e===void 0)e={};return{name:"flip",options:e,async fn(r){var a,i;let{placement:s,middlewareData:l,rects:c,initialPlacement:d,platform:h,elements:g}=r,{mainAxis:x=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:T=!0,...U}=uZ(e,r);if((a=l.arrow)!=null&&a.alignmentOffset)return{};let N=vm(s),j=pu(d),G=vm(d)===d,X=await(h.isRTL==null?void 0:h.isRTL(g.floating)),J=b||(G||!T?[oD(d)]:Gne(d)),ee=k!=="none";if(!b&&ee)J.push(...Kne(d,T,k,X));let re=[d,...J],oe=await h.detectOverflow(r,U),fe=[],be=((i=l.flip)==null?void 0:i.overflows)||[];if(x)fe.push(oe[N]);if(v){let He=Wne(s,c,X);fe.push(oe[He[0]],oe[He[1]])}if(be=[...be,{placement:s,overflows:fe}],!fe.every((He)=>He<=0)){var We,Ye;let He=(((We=l.flip)==null?void 0:We.index)||0)+1,ft=re[He];if(ft){if(!(v==="alignment"?j!==pu(ft):!1)||be.every((Ft)=>pu(Ft.placement)===j?Ft.overflows[0]>0:!0))return{data:{index:He,overflows:be},reset:{placement:ft}}}let Je=(Ye=be.filter((xt)=>xt.overflows[0]<=0).sort((xt,Ft)=>xt.overflows[1]-Ft.overflows[1])[0])==null?void 0:Ye.placement;if(!Je)switch(y){case"bestFit":{var Se;let xt=(Se=be.filter((Ft)=>{if(ee){let Bt=pu(Ft.placement);return Bt===j||Bt==="y"}return!0}).map((Ft)=>[Ft.placement,Ft.overflows.filter((Bt)=>Bt>0).reduce((Bt,ie)=>Bt+ie,0)]).sort((Ft,Bt)=>Ft[1]-Bt[1])[0])==null?void 0:Se[0];if(xt)Je=xt;break}case"initialPlacement":Je=d;break}if(s!==Je)return{reset:{placement:Je}}}return{}}}};function Qne(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function Jne(e){return Vne.some((r)=>e[r]>=0)}var oie=function(e){if(e===void 0)e={};return{name:"hide",options:e,async fn(r){let{rects:a,platform:i}=r,{strategy:s="referenceHidden",...l}=uZ(e,r);switch(s){case"referenceHidden":{let c=await i.detectOverflow(r,{...l,elementContext:"reference"}),d=Qne(c,a.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:Jne(d)}}}case"escaped":{let c=await i.detectOverflow(r,{...l,altBoundary:!0}),d=Qne(c,a.floating);return{data:{escapedOffsets:d,escaped:Jne(d)}}}default:return{}}}}};var aie=new Set(["left","top"]);async function QCe(e,r){let{placement:a,platform:i,elements:s}=e,l=await(i.isRTL==null?void 0:i.isRTL(s.floating)),c=vm(a),d=Nz(a),h=pu(a)==="y",g=aie.has(c)?-1:1,x=l&&h?-1:1,v=uZ(r,e),{mainAxis:b,crossAxis:y,alignmentAxis:k}=typeof v==="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};if(d&&typeof k==="number")y=d==="end"?k*-1:k;return h?{x:y*x,y:b*g}:{x:b*g,y:y*x}}var nie=function(e){if(e===void 0)e=0;return{name:"offset",options:e,async fn(r){var a,i;let{x:s,y:l,placement:c,middlewareData:d}=r,h=await QCe(r,e);if(c===((a=d.offset)==null?void 0:a.placement)&&(i=d.arrow)!=null&&i.alignmentOffset)return{};return{x:s+h.x,y:l+h.y,data:{...h,placement:c}}}}},iie=function(e){if(e===void 0)e={};return{name:"shift",options:e,async fn(r){let{x:a,y:i,placement:s,platform:l}=r,{mainAxis:c=!0,crossAxis:d=!1,limiter:h={fn:(j)=>{let{x:G,y:X}=j;return{x:G,y:X}}},...g}=uZ(e,r),x={x:a,y:i},v=await l.detectOverflow(r,g),b=pu(s),y=O4(b),k=x[y],T=x[b],U=(j,G)=>fq(G+v[j==="y"?"top":"left"],G,G-v[j==="y"?"bottom":"right"]);if(c)k=U(y,k);if(d)T=U(b,T);let N=h.fn({...r,[y]:k,[b]:T});return{...N,data:{x:N.x-a,y:N.y-i,enabled:{[y]:c,[b]:d}}}}}},fie=function(e){if(e===void 0)e={};return{options:e,fn(r){var a,i;let{x:s,y:l,placement:c,rects:d,middlewareData:h}=r,{offset:g=0,mainAxis:x=!0,crossAxis:v=!0}=uZ(e,r),b={x:s,y:l},y=pu(c),k=O4(y),T=b[k],U=b[y],N=uZ(g,r),j=typeof N==="number"?{mainAxis:N,crossAxis:0}:{mainAxis:(a=N.mainAxis)!=null?a:0,crossAxis:(i=N.crossAxis)!=null?i:0};if(x){let J=k==="y"?"height":"width",ee=d.reference[k]-d.floating[J]+j.mainAxis,re=d.reference[k]+d.reference[J]-j.mainAxis;if(T<ee)T=ee;else if(T>re)T=re}if(v){var G,X;let J=k==="y"?"width":"height",ee=aie.has(vm(c)),re=d.reference[y]-d.floating[J]+(ee?((G=h.offset)==null?void 0:G[y])||0:0)+(ee?0:j.crossAxis),oe=d.reference[y]+d.reference[J]+(ee?0:((X=h.offset)==null?void 0:X[y])||0)-(ee?j.crossAxis:0);if(U<re)U=re;else if(U>oe)U=oe}return{[k]:T,[y]:U}}}},sie=function(e){if(e===void 0)e={};return{name:"size",options:e,async fn(r){let{placement:a,rects:i,platform:s,elements:l}=r,{apply:c=()=>{},...d}=uZ(e,r),h=await s.detectOverflow(r,d),g=vm(a),x=Nz(a),v=pu(a)==="y",{width:b,height:y}=i.floating,k,T;if(g==="top"||g==="bottom")k=g,T=x===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right";else T=g,k=x==="end"?"top":"bottom";let U=y-h.top-h.bottom,N=b-h.left-h.right,j=lZ(y-h[k],U),G=lZ(b-h[T],N),X=r.middlewareData.shift,J=!X,ee=j,re=G;if(X!=null&&X.enabled.x)re=N;if(X!=null&&X.enabled.y)ee=U;if(J&&!x)if(v)re=b-2*Zu(h.left,h.right);else ee=y-2*Zu(h.top,h.bottom);await c({...r,availableWidth:re,availableHeight:ee});let oe=await s.getDimensions(l.floating);if(b!==oe.width||y!==oe.height)return{reset:{rects:!0}};return{}}}};function j4(){return typeof window<"u"}function Uz(e){if(cie(e))return(e.nodeName||"").toLowerCase();return"#document"}function ls(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function dZ(e){var r;return(r=(cie(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function cie(e){if(!j4())return!1;return e instanceof Node||e instanceof ls(e).Node}function mu(e){if(!j4())return!1;return e instanceof Element||e instanceof ls(e).Element}function ym(e){if(!j4())return!1;return e instanceof HTMLElement||e instanceof ls(e).HTMLElement}function lie(e){if(!j4()||typeof ShadowRoot>"u")return!1;return e instanceof ShadowRoot||e instanceof ls(e).ShadowRoot}function iD(e){let{overflow:r,overflowX:a,overflowY:i,display:s}=hu(e);return/auto|scroll|overlay|hidden|clip/.test(r+i+a)&&s!=="inline"&&s!=="contents"}function uie(e){return/^(table|td|th)$/.test(Uz(e))}function fD(e){try{if(e.matches(":popover-open"))return!0}catch(r){}try{return e.matches(":modal")}catch(r){return!1}}var JCe=/transform|translate|scale|rotate|perspective|filter/,$Ce=/paint|layout|strict|content/,jz=(e)=>!!e&&e!=="none",lq;function B4(e){let r=mu(e)?hu(e):e;return jz(r.transform)||jz(r.translate)||jz(r.scale)||jz(r.rotate)||jz(r.perspective)||!U4()&&(jz(r.backdropFilter)||jz(r.filter))||JCe.test(r.willChange||"")||$Ce.test(r.contain||"")}function die(e){let r=p8(e);while(ym(r)&&!oR(r)){if(B4(r))return r;else if(fD(r))return null;r=p8(r)}return null}function U4(){if(lq==null)lq=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none");return lq}function oR(e){return/^(html|body|#document)$/.test(Uz(e))}function hu(e){return ls(e).getComputedStyle(e)}function sD(e){if(mu(e))return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop};return{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function p8(e){if(Uz(e)==="html")return e;let r=e.assignedSlot||e.parentNode||lie(e)&&e.host||dZ(e);return lie(r)?r.host:r}function Zie(e){let r=p8(e);if(oR(r))return(e.ownerDocument||e).body;if(ym(r)&&iD(r))return r;return Zie(r)}function Bz(e,r,a){var i;if(r===void 0)r=[];if(a===void 0)a=!0;let s=Zie(e),l=s===((i=e.ownerDocument)==null?void 0:i.body),c=ls(s);if(l){let d=Y4(c);return r.concat(c,c.visualViewport||[],iD(s)?s:[],d&&a?Bz(d):[])}else return r.concat(s,Bz(s,[],a))}function Y4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hie(e){let r=hu(e),a=parseFloat(r.width)||0,i=parseFloat(r.height)||0,s=ym(e),l=s?e.offsetWidth:a,c=s?e.offsetHeight:i,d=aD(a)!==l||aD(i)!==c;if(d)a=l,i=c;return{width:a,height:i,$:d}}function uq(e){return!mu(e)?e.contextElement:e}function aR(e){let r=uq(e);if(!ym(r))return cZ(1);let a=r.getBoundingClientRect(),{width:i,height:s,$:l}=hie(r),c=(l?aD(a.width):a.width)/i,d=(l?aD(a.height):a.height)/s;if(!c||!Number.isFinite(c))c=1;if(!d||!Number.isFinite(d))d=1;return{x:c,y:d}}var eIe=cZ(0);function gie(e){let r=ls(e);if(!U4()||!r.visualViewport)return eIe;return{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function tIe(e,r,a){if(r===void 0)r=!1;return!!a&&r&&a===ls(e)}function Yz(e,r,a,i){if(r===void 0)r=!1;if(a===void 0)a=!1;let s=e.getBoundingClientRect(),l=uq(e),c=cZ(1);if(r)if(i){if(mu(i))c=aR(i)}else c=aR(e);let d=tIe(l,a,i)?gie(l):cZ(0),h=(s.left+d.x)/c.x,g=(s.top+d.y)/c.y,x=s.width/c.x,v=s.height/c.y;if(l&&i){let b=ls(l),y=mu(i)?ls(i):i,k=b,T=Y4(k);while(T&&y!==k){let U=aR(T),N=T.getBoundingClientRect(),j=hu(T),G=N.left+(T.clientLeft+parseFloat(j.paddingLeft))*U.x,X=N.top+(T.clientTop+parseFloat(j.paddingTop))*U.y;h*=U.x,g*=U.y,x*=U.x,v*=U.y,h+=G,g+=X,k=ls(T),T=Y4(k)}}return Fz({width:x,height:v,x:h,y:g})}function q4(e,r){let a=sD(e).scrollLeft;if(!r)return Yz(dZ(e)).left+a;return r.left+a}function Mie(e,r){let a=e.getBoundingClientRect(),i=a.left+r.scrollLeft-q4(e,a),s=a.top+r.scrollTop;return{x:i,y:s}}function rIe(e){let{elements:r,rect:a,offsetParent:i,strategy:s}=e,l=s==="fixed",c=dZ(i),d=r?fD(r.floating):!1;if(i===c||d&&l)return a;let h={scrollLeft:0,scrollTop:0},g=cZ(1),x=cZ(0),v=ym(i);if(v||!l){if(Uz(i)!=="body"||iD(c))h=sD(i);if(v){let y=Yz(i);g=aR(i),x.x=y.x+i.clientLeft,x.y=y.y+i.clientTop}}let b=c&&!v&&!l?Mie(c,h):cZ(0);return{width:a.width*g.x,height:a.height*g.y,x:a.x*g.x-h.scrollLeft*g.x+x.x+b.x,y:a.y*g.y-h.scrollTop*g.y+x.y+b.y}}function oIe(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function aIe(e){let r=sD(e),a=e.ownerDocument.body,i=Zu(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),s=Zu(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),l=-r.scrollLeft+q4(e),c=-r.scrollTop;if(hu(a).direction==="rtl")l+=Zu(e.clientWidth,a.clientWidth)-i;return{width:i,height:s,x:l,y:c}}var nIe=25;function iIe(e,r,a){if(a===void 0)a="viewport";let i=a==="layoutViewport",s=ls(e),l=dZ(e),c=s.visualViewport,{clientWidth:d,clientHeight:h}=l,g=0,x=0;if(c){let b=!U4()||r==="fixed";if(i){if(!b)g=-c.offsetLeft,x=-c.offsetTop}else if(d=c.width,h=c.height,b)g=c.offsetLeft,x=c.offsetTop}if(q4(l)<=0){let b=l.ownerDocument,y=b.body,k=getComputedStyle(y),T=b.compatMode==="CSS1Compat"?parseFloat(k.marginLeft)+parseFloat(k.marginRight)||0:0,U=Math.abs(l.clientWidth-y.clientWidth-T),N=getComputedStyle(l).scrollbarGutter==="stable both-edges"?U/2:U;if(N<=nIe)d-=N}return{width:d,height:h,x:g,y:x}}function fIe(e,r){let a=Yz(e,!0,r==="fixed"),i=a.top+e.clientTop,s=a.left+e.clientLeft,l=aR(e),c=e.clientWidth*l.x,d=e.clientHeight*l.y,h=s*l.x,g=i*l.y;return{width:c,height:d,x:h,y:g}}function pie(e,r,a){let i;if(r==="viewport"||r==="layoutViewport")i=iIe(e,a,r);else if(r==="document")i=aIe(dZ(e));else if(mu(r))i=fIe(r,a);else{let s=gie(e);i={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Fz(i)}function sIe(e,r){let a=r.get(e);if(a)return a;let i=Bz(e,[],!1).filter((d)=>mu(d)&&Uz(d)!=="body"),s=null,l=hu(e).position==="fixed",c=l?p8(e):e;while(mu(c)&&!oR(c)){let d=hu(c),h=B4(c),g=s?s.position:l?"fixed":"";if(!h&&(g==="fixed"||g==="absolute"&&d.position==="static"))i=i.filter((v)=>v!==c);else s=d;c=p8(c)}return r.set(e,i),i}function lIe(e){let{element:r,boundary:a,rootBoundary:i,strategy:s}=e,c=[...a==="clippingAncestors"?fD(r)?[]:sIe(r,this._c):[].concat(a),i],d=pie(r,c[0],s),{top:h,right:g,bottom:x,left:v}=d;for(let b=1;b<c.length;b++){let y=pie(r,c[b],s);h=Zu(y.top,h),g=lZ(y.right,g),x=lZ(y.bottom,x),v=Zu(y.left,v)}return{width:g-v,height:x-h,x:v,y:h}}function cIe(e){let{width:r,height:a}=hie(e);return{width:r,height:a}}function uIe(e,r,a){let i=ym(r),s=dZ(r),l=a==="fixed",c=Yz(e,!0,l,r),d={scrollLeft:0,scrollTop:0},h=cZ(0);if(i||!l){if(Uz(r)!=="body"||iD(s))d=sD(r);if(i){let b=Yz(r,!0,l,r);h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}}if(!i&&s)h.x=q4(s);let g=s&&!i&&!l?Mie(s,d):cZ(0),x=c.left+d.scrollLeft-h.x-g.x,v=c.top+d.scrollTop-h.y-g.y;return{x,y:v,width:c.width,height:c.height}}function cq(e){return hu(e).position==="static"}function mie(e,r){if(!ym(e)||hu(e).position==="fixed")return null;if(r)return r(e);let a=e.offsetParent;if(dZ(e)===a)a=a.ownerDocument.body;return a}function xie(e,r){let a=ls(e);if(fD(e))return a;if(!ym(e)){let s=p8(e);while(s&&!oR(s)){if(mu(s)&&!cq(s))return s;s=p8(s)}return a}let i=mie(e,r);while(i&&uie(i)&&cq(i))i=mie(i,r);if(i&&oR(i)&&cq(i)&&!B4(i))return a;return i||die(e)||a}var dIe=async function(e){let r=this.getOffsetParent||xie,a=this.getDimensions,i=await a(e.floating);return{reference:uIe(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function ZIe(e){return hu(e).direction==="rtl"}var vie={convertOffsetParentRelativeRectToViewportRelativeRect:rIe,getDocumentElement:dZ,getClippingRect:lIe,getOffsetParent:xie,getElementRects:dIe,getClientRects:oIe,getDimensions:cIe,getScale:aR,isElement:mu,isRTL:ZIe};function yie(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function pIe(e,r,a){let i=null,s,l=dZ(e);function c(){var x;clearTimeout(s),(x=i)==null||x.disconnect(),i=null}function d(x,v){if(x===void 0)x=!1;if(v===void 0)v=1;c();let b=e.getBoundingClientRect(),{left:y,top:k,width:T,height:U}=b;if(!x)r();if(!T||!U)return;let N=nD(k),j=nD(l.clientWidth-(y+T)),G=nD(l.clientHeight-(k+U)),X=nD(y),ee={rootMargin:-N+"px "+-j+"px "+-G+"px "+-X+"px",threshold:Zu(0,lZ(1,v))||1},re=!0;function oe(fe){let be=fe[0].intersectionRatio;if(!yie(b,e.getBoundingClientRect()))return d();if(be!==v){if(!re)return d();if(!be)s=setTimeout(()=>{d(!1,0.0000001)},1000);else d(!1,be)}re=!1}try{i=new IntersectionObserver(oe,{...ee,root:l.ownerDocument})}catch(fe){i=new IntersectionObserver(oe,ee)}i.observe(e)}let h=ls(e),g=()=>d(a);return h.addEventListener("resize",g),d(!0),()=>{h.removeEventListener("resize",g),c()}}function dq(e,r,a,i){if(i===void 0)i={};let{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver==="function",layoutShift:d=typeof IntersectionObserver==="function",animationFrame:h=!1}=i,g=uq(e),x=s||l?[...g?Bz(g):[],...r?Bz(r):[]]:[];x.forEach((N)=>{s&&N.addEventListener("scroll",a),l&&N.addEventListener("resize",a)});let v=g&&d?pIe(g,a,l):null,b=-1,y=null;if(c){if(y=new ResizeObserver((N)=>{let[j]=N;if(j&&j.target===g&&y&&r)y.unobserve(r),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var G;(G=y)==null||G.observe(r)});a()}),g&&!h)y.observe(g);if(r)y.observe(r)}let k,T=h?Yz(e):null;if(h)U();function U(){let N=Yz(e);if(T&&!yie(T,N))a();T=N,k=requestAnimationFrame(U)}return a(),()=>{var N;if(x.forEach((j)=>{s&&j.removeEventListener("scroll",a),l&&j.removeEventListener("resize",a)}),v==null||v(),(N=y)==null||N.disconnect(),y=null,h)cancelAnimationFrame(k)}}var _ie=nie;var bie=iie,wie=rie,zie=sie,Sie=oie,Zq=tie;var Lie=fie,pq=(e,r,a)=>{let i=new Map,s=a!=null?a:{},l={...vie,...s.platform,_c:i};return eie(e,r,{...s,platform:l})};S();S();var mIe=typeof document<"u",hIe=function(){},H4=mIe?$e:hIe;function V4(e,r){if(e===r)return!0;if(typeof e!==typeof r)return!1;if(typeof e==="function"&&e.toString()===r.toString())return!0;let a,i,s;if(e&&r&&typeof e==="object"){if(Array.isArray(e)){if(a=e.length,a!==r.length)return!1;for(i=a;i--!==0;)if(!V4(e[i],r[i]))return!1;return!0}if(s=Object.keys(e),a=s.length,a!==Object.keys(r).length)return!1;for(i=a;i--!==0;)if(!{}.hasOwnProperty.call(r,s[i]))return!1;for(i=a;i--!==0;){let l=s[i];if(l==="_owner"&&e.$$typeof)continue;if(!V4(e[l],r[l]))return!1}return!0}return e!==e&&r!==r}function Cie(e){if(typeof window>"u")return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kie(e,r){let a=Cie(e);return Math.round(r*a)/a}function mq(e){let r=_(e);return H4(()=>{r.current=e}),r}function Iie(e){if(e===void 0)e={};let{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:s,elements:{reference:l,floating:c}={},transform:d=!0,whileElementsMounted:h,open:g}=e,[x,v]=u({x:0,y:0,strategy:a,placement:r,middlewareData:{},isPositioned:!1}),[b,y]=u(i);if(!V4(b,i))y(i);let[k,T]=u(null),[U,N]=u(null),j=P((Ft)=>{if(Ft!==ee.current)ee.current=Ft,T(Ft)},[]),G=P((Ft)=>{if(Ft!==re.current)re.current=Ft,N(Ft)},[]),X=l||k,J=c||U,ee=_(null),re=_(null),oe=_(x),fe=h!=null,be=mq(h),We=mq(s),Ye=mq(g),Se=P(()=>{if(!ee.current||!re.current)return;let Ft={placement:r,strategy:a,middleware:b};if(We.current)Ft.platform=We.current;pq(ee.current,re.current,Ft).then((Bt)=>{let ie={...Bt,isPositioned:Ye.current!==!1};if(He.current&&!V4(oe.current,ie))oe.current=ie,rn(()=>{v(ie)})})},[b,r,a,We,Ye]);H4(()=>{if(g===!1&&oe.current.isPositioned)oe.current.isPositioned=!1,v((Ft)=>({...Ft,isPositioned:!1}))},[g]);let He=_(!1);H4(()=>(He.current=!0,()=>{He.current=!1}),[]),H4(()=>{if(X)ee.current=X;if(J)re.current=J;if(X&&J){if(be.current)return be.current(X,J,Se);Se()}},[X,J,Se,be,fe]);let ft=D(()=>({reference:ee,floating:re,setReference:j,setFloating:G}),[j,G]),Je=D(()=>({reference:X,floating:J}),[X,J]),xt=D(()=>{let Ft={position:a,left:0,top:0};if(!Je.floating)return Ft;let Bt=kie(Je.floating,x.x),ie=kie(Je.floating,x.y);if(d)return{...Ft,transform:"translate("+Bt+"px, "+ie+"px)",...Cie(Je.floating)>=1.5&&{willChange:"transform"}};return{position:a,left:Bt,top:ie}},[a,d,Je.floating,x.x,x.y]);return D(()=>({...x,update:Se,refs:ft,elements:Je,floatingStyles:xt}),[x,Se,ft,Je,xt])}var gIe=(e)=>{function r(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:i,padding:s}=typeof e==="function"?e(a):e;if(i&&r(i)){if(i.current!=null)return Zq({element:i.current,padding:s}).fn(a);return{}}if(i)return Zq({element:i,padding:s}).fn(a);return{}}}},Rie=(e,r)=>{let a=_ie(e);return{name:a.name,fn:a.fn,options:[e,r]}},Pie=(e,r)=>{let a=bie(e);return{name:a.name,fn:a.fn,options:[e,r]}},Tie=(e,r)=>({fn:Lie(e).fn,options:[e,r]}),Aie=(e,r)=>{let a=wie(e);return{name:a.name,fn:a.fn,options:[e,r]}},Eie=(e,r)=>{let a=zie(e);return{name:a.name,fn:a.fn,options:[e,r]}};var Die=(e,r)=>{let a=Sie(e);return{name:a.name,fn:a.fn,options:[e,r]}};var Oie=(e,r)=>{let a=gIe(e);return{name:a.name,fn:a.fn,options:[e,r]}};S();var MIe=Object.defineProperty,xIe=(e,r)=>MIe(e,"name",{value:r,configurable:!0}),vIe=F(xIe(function(r,a){let{children:i,width:s=10,height:l=5,...c}=r;return t(se.svg,{...c,ref:a,width:s,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:r.asChild?i:t("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),Nie=vIe;var _Ie=Object.defineProperty,_m=(e,r)=>_Ie(e,"name",{value:r,configurable:!0});var Fie="Popper",[jie,yc]=gt(Fie),[bIe,Bie]=jie(Fie),wIe=_m((e)=>{let{__scopePopper:r,children:a}=e,[i,s]=u(null),[l,c]=u(void 0);return t(bIe,{scope:r,anchor:i,onAnchorChange:s,placementState:l,setPlacementState:c,children:a})},"Popper"),zIe="PopperAnchor",SIe=F(_m(function(r,a){let{__scopePopper:i,virtualRef:s,...l}=r,c=Bie(zIe,i),d=_(null),h=c.onAnchorChange,g=P((T)=>{if(d.current=T,T)h(T)},[h]),x=ye(a,g),v=_(null);m(()=>{if(!s)return;let T=v.current;if(v.current=s.current,T!==v.current)h(v.current)});let b=c.placementState&&W4(c.placementState),y=b?.[0],k=b?.[1];return s?null:t(se.div,{"data-radix-popper-side":y,"data-radix-popper-align":k,...l,ref:x})},"PopperAnchor")),Uie="PopperContent",[LIe,kIe]=jie(Uie),CIe=F(_m(function(r,a){let{__scopePopper:i,side:s="bottom",sideOffset:l=0,align:c="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:x=[],collisionPadding:v=0,sticky:b="partial",hideWhenDetached:y=!1,updatePositionStrategy:k="optimized",onPlaced:T,...U}=r,N=Bie(Uie,i),[j,G]=u(null),X=ye(a,G),[J,ee]=u(null),re=Ai(J),oe=re?.width??0,fe=re?.height??0,be=s+(c!=="center"?"-"+c:""),We=typeof v==="number"?v:{top:0,right:0,bottom:0,left:0,...v},Ye=Array.isArray(x)?x:[x],Se=Ye.length>0,He={padding:We,boundary:Ye.filter(Yie),altBoundary:Se},{refs:ft,floatingStyles:Je,placement:xt,isPositioned:Ft,middlewareData:Bt}=Iie({strategy:"fixed",placement:be,whileElementsMounted:_m((...Xt)=>dq(...Xt,{animationFrame:k==="always"}),"whileElementsMounted"),elements:{reference:N.anchor},middleware:[Rie({mainAxis:l+fe,alignmentAxis:d}),g&&Pie({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?Tie():void 0,...He}),g&&Aie({...He}),Eie({...He,apply:_m(({elements:Xt,rects:Ir,availableWidth:yr,availableHeight:Tr})=>{let{width:pr,height:po}=Ir.reference,lo=Xt.floating.style;lo.setProperty("--radix-popper-available-width",`${yr}px`),lo.setProperty("--radix-popper-available-height",`${Tr}px`),lo.setProperty("--radix-popper-anchor-width",`${pr}px`),lo.setProperty("--radix-popper-anchor-height",`${po}px`)},"apply")}),J&&Oie({element:J,padding:h}),TIe({arrowWidth:oe,arrowHeight:fe}),y&&Die({strategy:"referenceHidden",...He,boundary:Se?He.boundary:void 0})]}),ie=N.setPlacementState;Pt(()=>(ie(xt),()=>{ie(void 0)}),[xt,ie]);let[bt,Wt]=W4(xt),Fe=Ko(T);Pt(()=>{if(Ft)Fe?.()},[Ft,Fe]);let nr=Bt.arrow?.x,fr=Bt.arrow?.y,Jt=Bt.arrow?.centerOffset!==0,[Fr,Gt]=u();return Pt(()=>{if(j)Gt(window.getComputedStyle(j).zIndex)},[j]),t("div",{ref:ft.setFloating,"data-radix-popper-content-wrapper":"",style:{...Je,transform:Ft?Je.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Fr,"--radix-popper-transform-origin":[Bt.transformOrigin?.x,Bt.transformOrigin?.y].join(" "),...Bt.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:r.dir,children:t(LIe,{scope:i,placedSide:bt,placedAlign:Wt,onArrowChange:ee,arrowX:nr,arrowY:fr,shouldHideArrow:Jt,children:t(se.div,{"data-side":bt,"data-align":Wt,...U,ref:X,style:{...U.style,animation:!Ft?"none":U.style?.animation}})})})},"PopperContent")),IIe="PopperArrow",RIe={top:"bottom",right:"left",bottom:"top",left:"right"},PIe=F(_m(function(r,a){let{__scopePopper:i,...s}=r,l=kIe(IIe,i),c=RIe[l.placedSide];return t("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:t(Nie,{...s,ref:a,style:{...s.style,display:"block"}})})},"PopperArrow"));function Yie(e){return e!==null}_m(Yie,"isNotNull");var TIe=_m((e)=>({name:"transformOrigin",options:e,fn(r){let{placement:a,rects:i,middlewareData:s}=r,c=s.arrow?.centerOffset!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[g,x]=W4(a),v={start:"0%",center:"50%",end:"100%"}[x],b=(s.arrow?.x??0)+d/2,y=(s.arrow?.y??0)+h/2,k="",T="";if(g==="bottom")k=c?v:`${b}px`,T=`${-h}px`;else if(g==="top")k=c?v:`${b}px`,T=`${i.floating.height+h}px`;else if(g==="right")k=`${-h}px`,T=c?v:`${y}px`;else if(g==="left")k=`${i.floating.width+h}px`,T=c?v:`${y}px`;return{data:{x:k,y:T}}}}),"transformOrigin");function W4(e){let[r,a="center"]=e.split("-");return[r,a]}_m(W4,"getSideAndAlignFromPlacement");var bm=wIe,m8=SIe,h8=CIe,lD=PIe;S();S();S();var AIe=Object.defineProperty,gq=(e,r)=>AIe(e,"name",{value:r,configurable:!0}),hq=!1;function qie(){let[e,r]=u(hq);return m(()=>{if(!hq)hq=!0,r(!0)},[]),e}gq(qie,"useIsHydrated");var Hie=Q[" useSyncExternalStore ".trim().toString()];function Vie(){return()=>{}}gq(Vie,"subscribe");function Wie(){return Hie(Vie,()=>!0,()=>!1)}gq(Wie,"useIsHydratedModern");var Gie=typeof Hie==="function"?Wie:qie;var EIe=Object.defineProperty,qz=(e,r)=>EIe(e,"name",{value:r,configurable:!0}),Mq="rovingFocusGroup.onEntryFocus",DIe={bubbles:!1,cancelable:!0},K4="RovingFocusGroup",[xq,Kie,OIe]=_i(K4),[NIe,yi]=gt(K4,[OIe]),[FIe,jIe]=NIe(K4),BIe=F(qz(function(r,a){return t(xq.Provider,{scope:r.__scopeRovingFocusGroup,children:t(xq.Slot,{scope:r.__scopeRovingFocusGroup,children:t(UIe,{...r,ref:a})})})},"RovingFocusGroup")),UIe=F(qz(function(r,a){let{__scopeRovingFocusGroup:i,orientation:s,loop:l=!1,dir:c,currentTabStopId:d,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:g,onEntryFocus:x,preventScrollOnEntryFocus:v=!1,...b}=r,y=_(null),k=ye(a,y),T=$n(c),[U,N]=Lt({prop:d,defaultProp:h??null,onChange:g,caller:K4}),[j,G]=u(!1),X=Ko(x),J=Kie(i),ee=_(!1),[re,oe]=u(0);return m(()=>{let fe=y.current;if(fe)return fe.addEventListener(Mq,X),()=>fe.removeEventListener(Mq,X)},[X]),t(FIe,{scope:i,orientation:s,dir:T,loop:l,currentTabStopId:U,onItemFocus:P((fe)=>N(fe),[N]),onItemShiftTab:P(()=>G(!0),[]),onFocusableItemAdd:P(()=>oe((fe)=>fe+1),[]),onFocusableItemRemove:P(()=>oe((fe)=>fe-1),[]),children:t(se.div,{tabIndex:j||re===0?-1:0,"data-orientation":s,...b,ref:k,style:{outline:"none",...r.style},onMouseDown:Y(r.onMouseDown,()=>{ee.current=!0}),onFocus:Y(r.onFocus,(fe)=>{let be=!ee.current;if(fe.target===fe.currentTarget&&be&&!j){let We=new CustomEvent(Mq,DIe);if(fe.currentTarget.dispatchEvent(We),!We.defaultPrevented){let Ye=J().filter((xt)=>xt.focusable),Se=Ye.find((xt)=>xt.active),He=Ye.find((xt)=>xt.id===U),Je=[Se,He,...Ye].filter(Boolean).map((xt)=>xt.ref.current);vq(Je,v)}}ee.current=!1}),onBlur:Y(r.onBlur,()=>G(!1))})})},"RovingFocusGroupImpl")),YIe="RovingFocusGroupItem",qIe=F(qz(function(r,a){let{__scopeRovingFocusGroup:i,focusable:s=!0,active:l=!1,tabStopId:c,children:d,...h}=r,g=Er(),x=c||g,v=jIe(YIe,i),b=v.currentTabStopId===x,y=Kie(i),{onFocusableItemAdd:k,onFocusableItemRemove:T,currentTabStopId:U}=v,N=Gie();return Pt(()=>{if(!N||!s)return;return k(),()=>T()},[N,s,k,T]),m(()=>{if(N||!s)return;return k(),()=>T()},[N,s,k,T]),t(xq.ItemSlot,{scope:i,id:x,focusable:s,active:l,children:t(se.span,{tabIndex:b?0:-1,"data-orientation":v.orientation,...h,ref:a,onMouseDown:Y(r.onMouseDown,(j)=>{if(!s)j.preventDefault();else v.onItemFocus(x)}),onFocus:Y(r.onFocus,()=>v.onItemFocus(x)),onKeyDown:Y(r.onKeyDown,(j)=>{if(j.key==="Tab"&&j.shiftKey){v.onItemShiftTab();return}if(j.target!==j.currentTarget)return;let G=Qie(j,v.orientation,v.dir);if(G!==void 0){if(j.metaKey||j.ctrlKey||j.altKey||j.shiftKey)return;j.preventDefault();let J=y().filter((ee)=>ee.focusable).map((ee)=>ee.ref.current);if(G==="last")J.reverse();else if(G==="prev"||G==="next"){if(G==="prev")J.reverse();let ee=J.indexOf(j.currentTarget);J=v.loop?Jie(J,ee+1):J.slice(ee+1)}setTimeout(()=>vq(J))}}),children:typeof d==="function"?d({isCurrentTabStop:b,hasTabStop:U!=null}):d})})},"RovingFocusGroupItem")),HIe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Xie(e,r){if(r!=="rtl")return e;return e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}qz(Xie,"getDirectionAwareKey");function Qie(e,r,a){let i=Xie(e.key,a);if(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))return;if(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(i))return;return HIe[i]}qz(Qie,"getFocusIntent");function vq(e,r=!1){let a=document.activeElement;for(let i of e){if(i===a)return;if(i.focus({preventScroll:r}),document.activeElement!==a)return}}qz(vq,"focusFirst");function Jie(e,r){return e.map((a,i)=>e[(r+i)%e.length])}qz(Jie,"wrapArray");var vl=BIe,wl=qIe;var VIe=Object.defineProperty,To=(e,r)=>VIe(e,"name",{value:r,configurable:!0}),yq=["Enter"," "],WIe=["ArrowDown","PageUp","Home"],tfe=["ArrowUp","PageDown","End"],GIe=[...WIe,...tfe],KIe={ltr:[...yq,"ArrowRight"],rtl:[...yq,"ArrowLeft"]},XIe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Q4="Menu",[cD,QIe,JIe]=_i(Q4),[Hz,xl]=gt(Q4,[JIe,yc,yi]),J4=yc(),rfe=yi(),[ofe,g8]=Hz(Q4),[$Ie,uD]=Hz(Q4),e1e=To((e)=>{let{__scopeMenu:r,open:a=!1,children:i,dir:s,onOpenChange:l,modal:c=!0}=e,d=J4(r),[h,g]=u(null),x=_(!1),v=Ko(l),b=$n(s);return m(()=>{let y=To(()=>{x.current=!0,document.addEventListener("pointerdown",k,{capture:!0,once:!0}),document.addEventListener("pointermove",k,{capture:!0,once:!0})},"handleKeyDown"),k=To(()=>x.current=!1,"handlePointer");return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",k,{capture:!0}),document.removeEventListener("pointermove",k,{capture:!0})}},[]),m(()=>{if(!a)return;let y=To(()=>v(!1),"handleBlur");return window.addEventListener("blur",y),()=>window.removeEventListener("blur",y)},[a,v]),t(bm,{...d,children:t(ofe,{scope:r,open:a,onOpenChange:v,content:h,onContentChange:g,children:t($Ie,{scope:r,onClose:P(()=>v(!1),[v]),isUsingKeyboardRef:x,dir:b,modal:c,children:i})})})},"Menu"),afe=F(To(function(r,a){let{__scopeMenu:i,...s}=r,l=J4(i);return t(m8,{...l,...s,ref:a})},"MenuAnchor")),nfe="MenuPortal",[t1e,ife]=Hz(nfe,{forceMount:void 0}),r1e=To((e)=>{let{__scopeMenu:r,forceMount:a,children:i,container:s}=e,l=g8(nfe,r);return t(t1e,{scope:r,forceMount:a,children:t(cr,{present:a||l.open,children:t(fZ,{asChild:!0,container:s,children:i})})})},"MenuPortal"),gu="MenuContent",[o1e,bq]=Hz(gu),a1e=F(To(function(r,a){let i=ife(gu,r.__scopeMenu),{forceMount:s=i.forceMount,...l}=r,c=g8(gu,r.__scopeMenu),d=uD(gu,r.__scopeMenu);return t(cD.Provider,{scope:r.__scopeMenu,children:t(cr,{present:s||c.open,children:t(cD.Slot,{scope:r.__scopeMenu,children:d.modal?t(n1e,{...l,ref:a}):t(i1e,{...l,ref:a})})})})},"MenuContent")),n1e=F(To(function(r,a){let i=g8(gu,r.__scopeMenu),s=_(null),l=ye(a,s);return m(()=>{let c=s.current;if(c)return Z8(c)},[]),t(wq,{...r,ref:l,trapFocus:i.open,disableOutsidePointerEvents:i.open,disableOutsideScroll:!0,onFocusOutside:Y(r.onFocusOutside,(c)=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>i.onOpenChange(!1)})},"MenuRootContentModal")),i1e=F(To(function(r,a){let i=g8(gu,r.__scopeMenu);return t(wq,{...r,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>i.onOpenChange(!1)})},"MenuRootContentNonModal")),f1e=Ni("MenuContent.ScrollLock"),wq=F(To(function(r,a){let{__scopeMenu:i,loop:s=!1,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:d,disableOutsidePointerEvents:h,onEntryFocus:g,onEscapeKeyDown:x,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:y,onDismiss:k,disableOutsideScroll:T,...U}=r,N=g8(gu,i),j=uD(gu,i),G=J4(i),X=rfe(i),J=QIe(i),[ee,re]=u(null),oe=_(null),fe=ye(a,oe,N.onContentChange),be=_(0),We=_(""),Ye=_(0),Se=_(null),He=_("right"),ft=_(0),Je=T?fm:In,xt=T?{as:f1e,allowPinchZoom:!0}:void 0,Ft=To((ie)=>{let bt=We.current+ie,Wt=J().filter((Gt)=>!Gt.disabled),Fe=document.activeElement,nr=Wt.find((Gt)=>Gt.ref.current===Fe)?.textValue,fr=Wt.map((Gt)=>Gt.textValue),Jt=pfe(fr,bt,nr),Fr=Wt.find((Gt)=>Gt.textValue===Jt)?.ref.current;if(To(function Gt(Xt){if(We.current=Xt,window.clearTimeout(be.current),Xt!=="")be.current=window.setTimeout(()=>Gt(""),1000)},"updateSearch")(bt),Fr)setTimeout(()=>Fr.focus())},"handleTypeaheadSearch");m(()=>()=>window.clearTimeout(be.current),[]),sZ();let Bt=P((ie)=>He.current===Se.current?.side&&hfe(ie,Se.current?.area),[]);return t(o1e,{scope:i,searchRef:We,onItemEnter:P((ie)=>{if(Bt(ie))ie.preventDefault()},[Bt]),onItemLeave:P((ie)=>{if(Bt(ie))return;oe.current?.focus(),re(null)},[Bt]),onTriggerLeave:P((ie)=>{if(Bt(ie))ie.preventDefault()},[Bt]),pointerGraceTimerRef:Ye,onPointerGraceIntentChange:P((ie)=>{Se.current=ie},[]),children:t(Je,{...xt,children:t(d8,{asChild:!0,trapped:l,onMountAutoFocus:Y(c,(ie)=>{ie.preventDefault(),oe.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:t(iZ,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:x,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:y,onDismiss:k,children:t(vl,{asChild:!0,...X,dir:j.dir,orientation:"vertical",loop:s,currentTabStopId:ee,onCurrentTabStopIdChange:re,onEntryFocus:Y(g,(ie)=>{if(!j.isUsingKeyboardRef.current)ie.preventDefault()}),preventScrollOnEntryFocus:!0,children:t(h8,{role:"menu","aria-orientation":"vertical","data-state":zq(N.open),"data-radix-menu-content":"",dir:j.dir,...G,...U,ref:fe,style:{outline:"none",...U.style},onKeyDown:Y(U.onKeyDown,(ie)=>{let Wt=ie.target.closest("[data-radix-menu-content]")===ie.currentTarget,Fe=ie.ctrlKey||ie.altKey||ie.metaKey,nr=ie.key.length===1;if(Wt){if(ie.key==="Tab")ie.preventDefault();if(!Fe&&nr)Ft(ie.key)}let fr=oe.current;if(ie.target!==fr)return;if(!GIe.includes(ie.key))return;ie.preventDefault();let Fr=J().filter((Gt)=>!Gt.disabled).map((Gt)=>Gt.ref.current);if(tfe.includes(ie.key))Fr.reverse();dfe(Fr)}),onBlur:Y(r.onBlur,(ie)=>{if(!ie.currentTarget.contains(ie.target))window.clearTimeout(be.current),We.current=""}),onPointerMove:Y(r.onPointerMove,nR((ie)=>{let bt=ie.target,Wt=ft.current!==ie.clientX;if(ie.currentTarget.contains(bt)&&Wt){let Fe=ie.clientX>ft.current?"right":"left";He.current=Fe,ft.current=ie.clientX}}))})})})})})})},"MenuContentImpl")),s1e=F(To(function(r,a){let{__scopeMenu:i,...s}=r;return t(se.div,{role:"group",...s,ref:a})},"MenuGroup")),l1e=F(To(function(r,a){let{__scopeMenu:i,...s}=r;return t(se.div,{...s,ref:a})},"MenuLabel")),_q="MenuItem",efe="menu.itemSelect",ffe=F(To(function(r,a){let{disabled:i=!1,onSelect:s,...l}=r,c=_(null),d=uD(_q,r.__scopeMenu),h=bq(_q,r.__scopeMenu),g=ye(a,c),x=_(!1),v=To(()=>{let b=c.current;if(!i&&b){let y=new CustomEvent(efe,{bubbles:!0,cancelable:!0});if(b.addEventListener(efe,(k)=>s?.(k),{once:!0}),J2(b,y),y.defaultPrevented)x.current=!1;else d.onClose()}},"handleSelect");return t(sfe,{...l,ref:g,disabled:i,onClick:Y(r.onClick,v),onPointerDown:(b)=>{r.onPointerDown?.(b),x.current=!0},onPointerUp:Y(r.onPointerUp,(b)=>{if(!x.current)b.currentTarget?.click()}),onKeyDown:Y(r.onKeyDown,(b)=>{if(i||b.target!==b.currentTarget)return;if(h.searchRef.current!==""&&b.key===" ")return;if(yq.includes(b.key))b.currentTarget.click(),b.preventDefault()})})},"MenuItem")),sfe=F(To(function(r,a){let{__scopeMenu:i,disabled:s=!1,textValue:l,...c}=r,d=bq(_q,i),h=rfe(i),g=_(null),x=ye(a,g),[v,b]=u(!1),[y,k]=u("");return m(()=>{let T=g.current;if(T)k((T.textContent??"").trim())},[c.children]),t(cD.ItemSlot,{scope:i,disabled:s,textValue:l??y,children:t(wl,{asChild:!0,...h,focusable:!s,children:t(se.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":s||void 0,"data-disabled":s?"":void 0,...c,ref:x,onPointerMove:Y(r.onPointerMove,nR((T)=>{if(s)d.onItemLeave(T);else if(d.onItemEnter(T),!T.defaultPrevented)T.currentTarget.focus({preventScroll:!0})})),onPointerLeave:Y(r.onPointerLeave,nR((T)=>d.onItemLeave(T))),onFocus:Y(r.onFocus,()=>b(!0)),onBlur:Y(r.onBlur,()=>b(!1))})})})},"MenuItemImpl"));var c1e="MenuRadioGroup",[u1e,d1e]=Hz(c1e,{value:void 0,onValueChange:To(()=>{},"onValueChange")}),Z1e=F(To(function(r,a){let{value:i,onValueChange:s,...l}=r,c=Ko(s);return t(u1e,{scope:r.__scopeMenu,value:i,onValueChange:c,children:t(s1e,{...l,ref:a})})},"MenuRadioGroup")),p1e="MenuRadioItem",m1e=F(To(function(r,a){let{value:i,...s}=r,l=d1e(p1e,r.__scopeMenu),c=i===l.value;return t(h1e,{scope:r.__scopeMenu,checked:c,children:t(ffe,{role:"menuitemradio","aria-checked":c,...s,ref:a,"data-state":Lq(c),onSelect:Y(s.onSelect,()=>l.onValueChange?.(i),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),lfe="MenuItemIndicator",[h1e,g1e]=Hz(lfe,{checked:!1}),M1e=F(To(function(r,a){let{__scopeMenu:i,forceMount:s,...l}=r,c=g1e(lfe,i);return t(cr,{present:s||Sq(c.checked)||c.checked===!0,children:t(se.span,{...l,ref:a,"data-state":Lq(c.checked)})})},"MenuItemIndicator")),x1e=F(To(function(r,a){let{__scopeMenu:i,...s}=r;return t(se.div,{role:"separator","aria-orientation":"horizontal",...s,ref:a})},"MenuSeparator"));var cfe="MenuSub",[v1e,ufe]=Hz(cfe),y1e=To((e)=>{let{__scopeMenu:r,children:a,open:i=!1,onOpenChange:s}=e,l=g8(cfe,r),c=J4(r),[d,h]=u(null),[g,x]=u(null),v=Ko(s);return m(()=>{if(l.open===!1)v(!1);return()=>v(!1)},[l.open,v]),t(bm,{...c,children:t(ofe,{scope:r,open:i,onOpenChange:v,content:g,onContentChange:x,children:t(v1e,{scope:r,contentId:Er(),triggerId:Er(),trigger:d,onTriggerChange:h,children:a})})})},"MenuSub"),X4="MenuSubTrigger",_1e=F(To(function(r,a){let i=g8(X4,r.__scopeMenu),s=uD(X4,r.__scopeMenu),l=ufe(X4,r.__scopeMenu),c=bq(X4,r.__scopeMenu),d=_(null),{pointerGraceTimerRef:h,onPointerGraceIntentChange:g}=c,x={__scopeMenu:r.__scopeMenu},v=P(()=>{if(d.current)window.clearTimeout(d.current);d.current=null},[]);m(()=>v,[v]),m(()=>{let y=h.current;return()=>{window.clearTimeout(y),g(null)}},[h,g]);let b=ye(a,l.onTriggerChange);return t(afe,{asChild:!0,...x,children:t(sfe,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?l.contentId:void 0,"data-state":zq(i.open),...r,ref:b,onClick:(y)=>{if(r.onClick?.(y),r.disabled||y.defaultPrevented)return;if(y.currentTarget.focus(),!i.open)i.onOpenChange(!0)},onPointerMove:Y(r.onPointerMove,nR((y)=>{if(c.onItemEnter(y),y.defaultPrevented)return;if(!r.disabled&&!i.open&&!d.current)c.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{i.onOpenChange(!0),v()},100)})),onPointerLeave:Y(r.onPointerLeave,nR((y)=>{v();let k=i.content?.getBoundingClientRect();if(k){let T=i.content?.dataset.side,U=T==="right",N=U?-5:5,j=k[U?"left":"right"],G=k[U?"right":"left"];c.onPointerGraceIntentChange({area:[{x:y.clientX+N,y:y.clientY},{x:j,y:k.top},{x:G,y:k.top},{x:G,y:k.bottom},{x:j,y:k.bottom}],side:T}),window.clearTimeout(h.current),h.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(y),y.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:Y(r.onKeyDown,(y)=>{if(r.disabled||y.target!==y.currentTarget)return;if(c.searchRef.current!==""&&y.key===" ")return;if(KIe[s.dir].includes(y.key))i.onOpenChange(!0),i.content?.focus(),y.preventDefault()})})})},"MenuSubTrigger")),b1e="MenuSubContent",w1e=F(To(function(r,a){let i=ife(gu,r.__scopeMenu),{forceMount:s=i.forceMount,align:l="start",...c}=r,d=g8(gu,r.__scopeMenu),h=uD(gu,r.__scopeMenu),g=ufe(b1e,r.__scopeMenu),x=_(null),v=ye(a,x);return t(cD.Provider,{scope:r.__scopeMenu,children:t(cr,{present:s||d.open,children:t(cD.Slot,{scope:r.__scopeMenu,children:t(wq,{id:g.contentId,"aria-labelledby":g.triggerId,...c,ref:v,align:l,side:h.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:(b)=>{if(h.isUsingKeyboardRef.current)x.current?.focus();b.preventDefault()},onCloseAutoFocus:(b)=>b.preventDefault(),onFocusOutside:Y(r.onFocusOutside,(b)=>{if(b.target!==g.trigger)d.onOpenChange(!1)}),onEscapeKeyDown:Y(r.onEscapeKeyDown,(b)=>{h.onClose(),b.preventDefault()}),onKeyDown:Y(r.onKeyDown,(b)=>{let y=b.currentTarget.contains(b.target),k=XIe[h.dir].includes(b.key);if(y&&k)d.onOpenChange(!1),g.trigger?.focus(),b.preventDefault()})})})})})},"MenuSubContent"));function zq(e){return e?"open":"closed"}To(zq,"getOpenState");function Sq(e){return e==="indeterminate"}To(Sq,"isIndeterminate");function Lq(e){return Sq(e)?"indeterminate":e?"checked":"unchecked"}To(Lq,"getCheckedState");function dfe(e){let r=document.activeElement;for(let a of e){if(a===r)return;if(a.focus(),document.activeElement!==r)return}}To(dfe,"focusFirst");function Zfe(e,r){return e.map((a,i)=>e[(r+i)%e.length])}To(Zfe,"wrapArray");function pfe(e,r,a){let s=r.length>1&&Array.from(r).every((g)=>g===r[0])?r[0]:r,l=a?e.indexOf(a):-1,c=Zfe(e,Math.max(l,0));if(s.length===1)c=c.filter((g)=>g!==a);let h=c.find((g)=>g.toLowerCase().startsWith(s.toLowerCase()));return h!==a?h:void 0}To(pfe,"getNextMatch");function mfe(e,r){let{x:a,y:i}=e,s=!1;for(let l=0,c=r.length-1;l<r.length;c=l++){let d=r[l],h=r[c],{x:g,y:x}=d,{x:v,y:b}=h;if(x>i!==b>i&&a<(v-g)*(i-x)/(b-x)+g)s=!s}return s}To(mfe,"isPointInPolygon");function hfe(e,r){if(!r)return!1;let a={x:e.clientX,y:e.clientY};return mfe(a,r)}To(hfe,"isPointerInGraceArea");function nR(e){return(r)=>r.pointerType==="mouse"?e(r):void 0}To(nR,"whenMouse");var Xu=e1e,ed=afe,td=r1e,rd=a1e;var gfe=l1e,nd=ffe;var Mfe=Z1e,xfe=m1e,vfe=M1e,od=x1e;var sd=y1e,id=_1e,ad=w1e;S();var S1e=Object.defineProperty,Xl=(e,r)=>S1e(e,"name",{value:r,configurable:!0}),kq="DropdownMenu",[L1e,uJo]=gt(kq,[xl]),Ql=xl(),[k1e,yfe]=L1e(kq),C1e=Xl((e)=>{let{__scopeDropdownMenu:r,children:a,dir:i,open:s,defaultOpen:l,onOpenChange:c,modal:d=!0}=e,h=Ql(r),g=_(null),[x,v]=Lt({prop:s,defaultProp:l??!1,onChange:c,caller:kq});return t(k1e,{scope:r,triggerId:Er(),triggerRef:g,contentId:Er(),open:x,onOpenChange:v,onOpenToggle:P(()=>v((b)=>!b),[v]),modal:d,children:t(Xu,{...h,open:x,onOpenChange:v,dir:i,modal:d,children:a})})},"DropdownMenu"),I1e="DropdownMenuTrigger",R1e=F(Xl(function(r,a){let{__scopeDropdownMenu:i,disabled:s=!1,...l}=r,c=yfe(I1e,i),d=Ql(i),h=ye(a,c.triggerRef);return t(ed,{asChild:!0,...d,children:t(se.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,...l,ref:h,onPointerDown:Y(r.onPointerDown,(g)=>{if(!s&&g.button===0&&g.ctrlKey===!1){if(c.onOpenToggle(),!c.open)g.preventDefault()}}),onKeyDown:Y(r.onKeyDown,(g)=>{if(s)return;if(["Enter"," "].includes(g.key))c.onOpenToggle();if(g.key==="ArrowDown")c.onOpenChange(!0);if(["Enter"," ","ArrowDown"].includes(g.key))g.preventDefault()})})})},"DropdownMenuTrigger")),P1e=Xl((e)=>{let{__scopeDropdownMenu:r,...a}=e,i=Ql(r);return t(td,{...i,...a})},"DropdownMenuPortal"),T1e="DropdownMenuContent",A1e=F(Xl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=yfe(T1e,i),c=Ql(i),d=_(!1);return t(rd,{id:l.contentId,"aria-labelledby":l.triggerId,...c,...s,ref:a,onCloseAutoFocus:Y(r.onCloseAutoFocus,(h)=>{if(!d.current)l.triggerRef.current?.focus();d.current=!1,h.preventDefault()}),onInteractOutside:Y(r.onInteractOutside,(h)=>{let g=h.detail.originalEvent,x=g.button===0&&g.ctrlKey===!0,v=g.button===2||x;if(!l.modal||v)d.current=!0}),style:{...r.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)"}}})},"DropdownMenuContent"));var E1e=F(Xl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Ql(i);return t(gfe,{...l,...s,ref:a})},"DropdownMenuLabel")),D1e=F(Xl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Ql(i);return t(nd,{...l,...s,ref:a})},"DropdownMenuItem"));var O1e=F(Xl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Ql(i);return t(Mfe,{...l,...s,ref:a})},"DropdownMenuRadioGroup")),N1e=F(Xl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Ql(i);return t(xfe,{...l,...s,ref:a})},"DropdownMenuRadioItem")),F1e=F(Xl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Ql(i);return t(vfe,{...l,...s,ref:a})},"DropdownMenuItemIndicator")),j1e=F(Xl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Ql(i);return t(od,{...l,...s,ref:a})},"DropdownMenuSeparator"));var B1e=Xl((e)=>{let{__scopeDropdownMenu:r,children:a,open:i,onOpenChange:s,defaultOpen:l}=e,c=Ql(r),[d,h]=Lt({prop:i,defaultProp:l??!1,onChange:s,caller:"DropdownMenuSub"});return t(sd,{...c,open:d,onOpenChange:h,children:a})},"DropdownMenuSub"),U1e=F(Xl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Ql(i);return t(id,{...l,...s,ref:a})},"DropdownMenuSubTrigger")),Y1e=F(Xl(function(r,a){let{__scopeDropdownMenu:i,...s}=r,l=Ql(i);return t(ad,{...l,...s,ref:a,style:{...r.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)"}}})},"DropdownMenuSubContent")),q1e=C1e,H1e=R1e,_fe=P1e,V1e=A1e;var W1e=E1e,G1e=D1e;var K1e=O1e,X1e=N1e,Q1e=F1e,J1e=j1e;var $1e=B1e,eRe=U1e,tRe=Y1e;S();var rRe=Object.defineProperty,oRe=(e,r)=>rRe(e,"name",{value:r,configurable:!0}),aRe=F(oRe(function(r,a){return t(se.label,{...r,ref:a,onMouseDown:(i)=>{if(i.target.closest("button, input, select, textarea"))return;if(r.onMouseDown?.(i),!i.defaultPrevented&&i.detail>1)i.preventDefault()}})},"Label")),nRe=aRe;S();var iRe=Object.defineProperty,M8=(e,r)=>iRe(e,"name",{value:r,configurable:!0}),Cq="Popover",[zfe,IJo]=gt(Cq,[yc]),Iq=yc(),[fRe,iR]=zfe(Cq),sRe=M8((e)=>{let{__scopePopover:r,children:a,open:i,defaultOpen:s,onOpenChange:l,modal:c=!1}=e,d=Iq(r),h=_(null),[g,x]=u(!1),[v,b]=Lt({prop:i,defaultProp:s??!1,onChange:l,caller:Cq});return t(bm,{...d,children:t(fRe,{scope:r,contentId:Er(),triggerRef:h,open:v,onOpenChange:b,onOpenToggle:P(()=>b((y)=>!y),[b]),hasCustomAnchor:g,onCustomAnchorAdd:P(()=>x(!0),[]),onCustomAnchorRemove:P(()=>x(!1),[]),modal:c,children:a})})},"Popover");var lRe="PopoverTrigger",cRe=F(M8(function(r,a){let{__scopePopover:i,...s}=r,l=iR(lRe,i),c=Iq(i),d=ye(a,l.triggerRef),h=t(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":Rq(l.open),...s,ref:d,onClick:Y(r.onClick,l.onOpenToggle)});return l.hasCustomAnchor?h:t(m8,{asChild:!0,...c,children:h})},"PopoverTrigger")),Sfe="PopoverPortal",[uRe,dRe]=zfe(Sfe,{forceMount:void 0}),ZRe=M8((e)=>{let{__scopePopover:r,forceMount:a,children:i,container:s}=e,l=iR(Sfe,r);return t(uRe,{scope:r,forceMount:a,children:t(cr,{present:a||l.open,children:t(fZ,{asChild:!0,container:s,children:i})})})},"PopoverPortal"),dD="PopoverContent",pRe=F(M8(function(r,a){let i=dRe(dD,r.__scopePopover),{forceMount:s=i.forceMount,...l}=r,c=iR(dD,r.__scopePopover);return t(cr,{present:s||c.open,children:c.modal?t(hRe,{...l,ref:a}):t(gRe,{...l,ref:a})})},"PopoverContent")),mRe=Ni("PopoverContent.RemoveScroll"),hRe=F(M8(function(r,a){let i=iR(dD,r.__scopePopover),s=_(null),l=ye(a,s),c=_(!1);return m(()=>{let d=s.current;if(d)return Z8(d)},[]),t(fm,{as:mRe,allowPinchZoom:!0,children:t(Lfe,{...r,ref:l,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Y(r.onCloseAutoFocus,(d)=>{if(d.preventDefault(),!c.current)i.triggerRef.current?.focus()}),onPointerDownOutside:Y(r.onPointerDownOutside,(d)=>{let h=d.detail.originalEvent,g=h.button===0&&h.ctrlKey===!0,x=h.button===2||g;c.current=x},{checkForDefaultPrevented:!1}),onFocusOutside:Y(r.onFocusOutside,(d)=>d.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),gRe=F(M8(function(r,a){let i=iR(dD,r.__scopePopover),s=_(!1),l=_(!1);return t(Lfe,{...r,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:(c)=>{if(r.onCloseAutoFocus?.(c),!c.defaultPrevented){if(!s.current)i.triggerRef.current?.focus();c.preventDefault()}s.current=!1,l.current=!1},onInteractOutside:(c)=>{if(r.onInteractOutside?.(c),!c.defaultPrevented){if(s.current=!0,c.detail.originalEvent.type==="pointerdown")l.current=!0}let d=c.target;if(i.triggerRef.current?.contains(d))c.preventDefault();if(c.detail.originalEvent.type==="focusin"&&l.current)c.preventDefault()}})},"PopoverContentNonModal")),Lfe=F(M8(function(r,a){let{__scopePopover:i,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:x,onInteractOutside:v,...b}=r,y=iR(dD,i),k=Iq(i);return sZ(),t(d8,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:l,onUnmountAutoFocus:c,children:t(iZ,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:v,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:x,onDismiss:()=>y.onOpenChange(!1),deferPointerDownOutside:!0,children:t(h8,{"data-state":Rq(y.open),role:"dialog",id:y.contentId,...k,...b,ref:a,style:{...b.style,...{"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}})})})},"PopoverContentImpl"));function Rq(e){return e?"open":"closed"}M8(Rq,"getState");var MRe=sRe;var xRe=cRe,vRe=ZRe,yRe=pRe;S();var _Re=Object.defineProperty,wm=(e,r)=>_Re(e,"name",{value:r,configurable:!0}),Cfe="Progress",Aq=100,[bRe,AJo]=gt(Cfe),[wRe,zRe]=bRe(Cfe),SRe=F(wm(function(r,a){let{__scopeProgress:i,value:s=null,max:l,getValueLabel:c=Ife,...d}=r;if((l||l===0)&&!Pq(l))console.error(Rfe(`${l}`,"Progress"));let h=Pq(l)?l:Aq;if(s!==null&&!Tq(s,h))console.error(Pfe(`${s}`,"Progress"));let g=Tq(s,h)?s:null,x=ZD(g)?c(g,h):void 0;return t(wRe,{scope:i,value:g,max:h,children:t(se.div,{"aria-valuemax":h,"aria-valuemin":0,"aria-valuenow":ZD(g)?g:void 0,"aria-valuetext":x,role:"progressbar","data-state":Eq(g,h),"data-value":g??void 0,"data-max":h,...d,ref:a})})},"Progress")),LRe="ProgressIndicator",kRe=F(wm(function(r,a){let{__scopeProgress:i,...s}=r,l=zRe(LRe,i);return t(se.div,{"data-state":Eq(l.value,l.max),"data-value":l.value??void 0,"data-max":l.max,...s,ref:a})},"ProgressIndicator"));function Ife(e,r){return`${Math.round(e/r*100)}%`}wm(Ife,"defaultGetValueLabel");function Eq(e,r){return e==null?"indeterminate":e===r?"complete":"loading"}wm(Eq,"getProgressState");function ZD(e){return typeof e==="number"}wm(ZD,"isNumber");function Pq(e){return ZD(e)&&!isNaN(e)&&e>0}wm(Pq,"isValidMaxNumber");function Tq(e,r){return ZD(e)&&!isNaN(e)&&e<=r&&e>=0}wm(Tq,"isValidValueNumber");function Rfe(e,r){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Aq}\`.`}wm(Rfe,"getInvalidMaxError");function Pfe(e,r){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be:
|
|
56
|
+
- a positive number
|
|
57
|
+
- less than the value passed to \`max\` (or ${Aq} if no \`max\` prop is set)
|
|
58
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
59
|
+
|
|
60
|
+
Defaulting to \`null\`.`}wm(Pfe,"getInvalidValueError");var CRe=SRe,IRe=kRe;S();var RRe=Object.defineProperty,PRe=(e,r)=>RRe(e,"name",{value:r,configurable:!0});function bi(e,[r,a]){return Math.min(a,Math.max(r,e))}PRe(bi,"clamp");S();var TRe=Object.defineProperty,bo=(e,r)=>TRe(e,"name",{value:r,configurable:!0});function Afe(e,r){return tn((a,i)=>r[a][i]??a,e)}bo(Afe,"useStateMachine");var Efe="ScrollArea",[Dfe,VJo]=gt(Efe),[ARe,_c]=Dfe(Efe),ERe=F(bo(function(r,a){let{__scopeScrollArea:i,type:s="hover",dir:l,scrollHideDelay:c=600,...d}=r,[h,g]=u(null),[x,v]=u(null),[b,y]=u(null),[k,T]=u(null),[U,N]=u(null),[j,G]=u(0),[X,J]=u(0),[ee,re]=u(!1),[oe,fe]=u(!1),be=ye(a,g),We=$n(l);return t(ARe,{scope:i,type:s,dir:We,scrollHideDelay:c,scrollArea:h,viewport:x,onViewportChange:v,content:b,onContentChange:y,scrollbarX:k,onScrollbarXChange:T,scrollbarXEnabled:ee,onScrollbarXEnabledChange:re,scrollbarY:U,onScrollbarYChange:N,scrollbarYEnabled:oe,onScrollbarYEnabledChange:fe,onCornerWidthChange:G,onCornerHeightChange:J,children:t(se.div,{dir:We,...d,ref:be,style:{position:"relative","--radix-scroll-area-corner-width":j+"px","--radix-scroll-area-corner-height":X+"px",...r.style}})})},"ScrollArea")),DRe="ScrollAreaViewport",ORe=F(bo(function(r,a){let{__scopeScrollArea:i,children:s,nonce:l,...c}=r,d=_c(DRe,i),h=_(null),g=ye(a,h,d.onViewportChange);return o(L,{children:[t(NRe,{nonce:l}),t(se.div,{"data-radix-scroll-area-viewport":"",...c,ref:g,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...r.style},children:t("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})},"ScrollAreaViewport")),NRe=Un(bo(function({nonce:r}){return t("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:r})},"ScrollAreaViewportStyle"),(e,r)=>e.nonce===r.nonce),Sm="ScrollAreaScrollbar",FRe=F(bo(function(r,a){let{forceMount:i,...s}=r,l=_c(Sm,r.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:d}=l,h=r.orientation==="horizontal";return m(()=>(h?c(!0):d(!0),()=>{h?c(!1):d(!1)}),[h,c,d]),l.type==="hover"?t(jRe,{...s,ref:a,forceMount:i}):l.type==="scroll"?t(BRe,{...s,ref:a,forceMount:i}):l.type==="auto"?t(Ofe,{...s,ref:a,forceMount:i}):l.type==="always"?t(Nq,{...s,ref:a,"data-state":"visible"}):null},"ScrollAreaScrollbar")),jRe=F(bo(function(r,a){let{forceMount:i,...s}=r,l=_c(Sm,r.__scopeScrollArea),[c,d]=u(!1);return m(()=>{let h=l.scrollArea,g=0;if(h){let x=bo(()=>{window.clearTimeout(g),d(!0)},"handlePointerEnter"),v=bo(()=>{g=window.setTimeout(()=>d(!1),l.scrollHideDelay)},"handlePointerLeave");return h.addEventListener("pointerenter",x),h.addEventListener("pointerleave",v),()=>{window.clearTimeout(g),h.removeEventListener("pointerenter",x),h.removeEventListener("pointerleave",v)}}},[l.scrollArea,l.scrollHideDelay]),t(cr,{present:i||c,children:t(Ofe,{"data-state":c?"visible":"hidden",...s,ref:a})})},"ScrollAreaScrollbarHover")),BRe=F(bo(function(r,a){let{forceMount:i,...s}=r,l=_c(Sm,r.__scopeScrollArea),c=r.orientation==="horizontal",d=hD(()=>g("SCROLL_END"),100),[h,g]=Afe("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return m(()=>{if(h==="idle"){let x=window.setTimeout(()=>g("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(x)}},[h,l.scrollHideDelay,g]),m(()=>{let x=l.viewport,v=c?"scrollLeft":"scrollTop";if(x){let b=x[v],y=bo(()=>{let k=x[v];if(b!==k)g("SCROLL"),d();b=k},"handleScroll");return x.addEventListener("scroll",y),()=>x.removeEventListener("scroll",y)}},[l.viewport,c,g,d]),t(cr,{present:i||h!=="hidden",children:t(Nq,{"data-state":h==="hidden"?"hidden":"visible",...s,ref:a,onPointerEnter:Y(r.onPointerEnter,()=>g("POINTER_ENTER")),onPointerLeave:Y(r.onPointerLeave,()=>g("POINTER_LEAVE"))})})},"ScrollAreaScrollbarScroll")),Ofe=F(bo(function(r,a){let i=_c(Sm,r.__scopeScrollArea),{forceMount:s,...l}=r,[c,d]=u(!1),h=r.orientation==="horizontal",g=hD(()=>{if(i.viewport){let x=i.viewport.offsetWidth<i.viewport.scrollWidth,v=i.viewport.offsetHeight<i.viewport.scrollHeight;d(h?x:v)}},10);return Vz(i.viewport,g),Vz(i.content,g),t(cr,{present:s||c,children:t(Nq,{"data-state":c?"visible":"hidden",...l,ref:a})})},"ScrollAreaScrollbarAuto")),Nq=F(bo(function(r,a){let{orientation:i="vertical",...s}=r,l=_c(Sm,r.__scopeScrollArea),c=_(null),d=_(0),[h,g]=u({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),x=Fq(h.viewport,h.content),v={...s,sizes:h,onSizesChange:g,hasThumb:Boolean(x>0&&x<1),onThumbChange:bo((y)=>c.current=y,"onThumbChange"),onThumbPointerUp:bo(()=>d.current=0,"onThumbPointerUp"),onThumbPointerDown:bo((y)=>d.current=y,"onThumbPointerDown")};function b(y,k){return Bfe(y,d.current,h,k)}if(bo(b,"getScrollPosition"),i==="horizontal")return t(URe,{...v,ref:a,onThumbPositionChange:()=>{if(l.viewport&&c.current){let y=l.viewport.scrollLeft,k=Oq(y,h,l.dir);c.current.style.transform=`translate3d(${k}px, 0, 0)`}},onWheelScroll:(y)=>{if(l.viewport)l.viewport.scrollLeft=y},onDragScroll:(y)=>{if(l.viewport)l.viewport.scrollLeft=b(y,l.dir)}});if(i==="vertical")return t(YRe,{...v,ref:a,onThumbPositionChange:()=>{if(l.viewport&&c.current){let y=l.viewport.scrollTop,k=Oq(y,h);c.current.style.transform=`translate3d(0, ${k}px, 0)`}},onWheelScroll:(y)=>{if(l.viewport)l.viewport.scrollTop=y},onDragScroll:(y)=>{if(l.viewport)l.viewport.scrollTop=b(y)}});return null},"ScrollAreaScrollbarVisible")),URe=F(bo(function(r,a){let{sizes:i,onSizesChange:s,...l}=r,c=_c(Sm,r.__scopeScrollArea),[d,h]=u(),g=_(null),x=ye(a,g,c.onScrollbarXChange);return m(()=>{if(g.current)h(getComputedStyle(g.current))},[g]),t(Ffe,{"data-orientation":"horizontal",...l,ref:x,sizes:i,style:{bottom:0,left:c.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:c.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":mD(i)+"px",...r.style},onThumbPointerDown:(v)=>r.onThumbPointerDown(v.x),onDragScroll:(v)=>r.onDragScroll(v.x),onWheelScroll:(v,b)=>{if(c.viewport){let y=c.viewport.scrollLeft+v.deltaX;if(r.onWheelScroll(y),Bq(y,b))v.preventDefault()}},onResize:()=>{if(g.current&&c.viewport&&d)s({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:g.current.clientWidth,paddingStart:pD(d.paddingLeft),paddingEnd:pD(d.paddingRight)}})}})},"ScrollAreaScrollbarX")),YRe=F(bo(function(r,a){let{sizes:i,onSizesChange:s,...l}=r,c=_c(Sm,r.__scopeScrollArea),[d,h]=u(),g=_(null),x=ye(a,g,c.onScrollbarYChange);return m(()=>{if(g.current)h(getComputedStyle(g.current))},[g]),t(Ffe,{"data-orientation":"vertical",...l,ref:x,sizes:i,style:{top:0,right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":mD(i)+"px",...r.style},onThumbPointerDown:(v)=>r.onThumbPointerDown(v.y),onDragScroll:(v)=>r.onDragScroll(v.y),onWheelScroll:(v,b)=>{if(c.viewport){let y=c.viewport.scrollTop+v.deltaY;if(r.onWheelScroll(y),Bq(y,b))v.preventDefault()}},onResize:()=>{if(g.current&&c.viewport&&d)s({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:g.current.clientHeight,paddingStart:pD(d.paddingTop),paddingEnd:pD(d.paddingBottom)}})}})},"ScrollAreaScrollbarY")),[qRe,Nfe]=Dfe(Sm),Ffe=F(bo(function(r,a){let{__scopeScrollArea:i,sizes:s,hasThumb:l,onThumbChange:c,onThumbPointerUp:d,onThumbPointerDown:h,onThumbPositionChange:g,onDragScroll:x,onWheelScroll:v,onResize:b,...y}=r,k=_c(Sm,i),[T,U]=u(null),N=ye(a,U),j=_(null),G=_(""),X=k.viewport,J=s.content-s.viewport,ee=Ko(v),re=Ko(g),oe=hD(b,10);function fe(be){if(j.current){let We=be.clientX-j.current.left,Ye=be.clientY-j.current.top;x({x:We,y:Ye})}}return bo(fe,"handleDragScroll"),m(()=>{let be=bo((We)=>{let Ye=We.target;if(T?.contains(Ye))ee(We,J)},"handleWheel");return document.addEventListener("wheel",be,{passive:!1}),()=>document.removeEventListener("wheel",be,{passive:!1})},[X,T,J,ee]),m(re,[s,re]),Vz(T,oe),Vz(k.content,oe),t(qRe,{scope:i,scrollbar:T,hasThumb:l,onThumbChange:Ko(c),onThumbPointerUp:Ko(d),onThumbPositionChange:re,onThumbPointerDown:Ko(h),children:t(se.div,{...y,ref:N,style:{position:"absolute",...y.style},onPointerDown:Y(r.onPointerDown,(be)=>{if(be.button===0){if(be.target.setPointerCapture(be.pointerId),j.current=T.getBoundingClientRect(),G.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",k.viewport)k.viewport.style.scrollBehavior="auto";fe(be)}}),onPointerMove:Y(r.onPointerMove,fe),onPointerUp:Y(r.onPointerUp,(be)=>{let We=be.target;if(We.hasPointerCapture(be.pointerId))We.releasePointerCapture(be.pointerId);if(document.body.style.webkitUserSelect=G.current,k.viewport)k.viewport.style.scrollBehavior="";j.current=null})})})},"ScrollAreaScrollbarImpl")),Dq="ScrollAreaThumb",HRe=F(bo(function(r,a){let{forceMount:i,...s}=r,l=Nfe(Dq,r.__scopeScrollArea);return t(cr,{present:i||l.hasThumb,children:t(VRe,{ref:a,...s})})},"ScrollAreaThumb")),VRe=F(bo(function(r,a){let{__scopeScrollArea:i,style:s,...l}=r,c=_c(Dq,i),d=Nfe(Dq,i),{onThumbPositionChange:h}=d,g=ye(a,d.onThumbChange),x=_(void 0),v=hD(()=>{if(x.current)x.current(),x.current=void 0},100);return m(()=>{let b=c.viewport;if(b){let y=bo(()=>{if(v(),!x.current){let k=KRe(b,h);x.current=k,h()}},"handleScroll");return h(),b.addEventListener("scroll",y),()=>b.removeEventListener("scroll",y)}},[c.viewport,v,h]),t(se.div,{"data-state":d.hasThumb?"visible":"hidden",...l,ref:g,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:Y(r.onPointerDownCapture,(b)=>{let k=b.target.getBoundingClientRect(),T=b.clientX-k.left,U=b.clientY-k.top;d.onThumbPointerDown({x:T,y:U})}),onPointerUp:Y(r.onPointerUp,d.onThumbPointerUp)})},"ScrollAreaThumbImpl")),jfe="ScrollAreaCorner",WRe=F(bo(function(r,a){let i=_c(jfe,r.__scopeScrollArea),s=Boolean(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&s?t(GRe,{...r,ref:a}):null},"ScrollAreaCorner")),GRe=F(bo(function(r,a){let{__scopeScrollArea:i,...s}=r,l=_c(jfe,i),[c,d]=u(0),[h,g]=u(0),x=Boolean(c&&h),{onCornerWidthChange:v,onCornerHeightChange:b}=l;return Vz(l.scrollbarX,()=>{let y=l.scrollbarX?.offsetHeight||0;l.onCornerHeightChange(y),g(y)}),Vz(l.scrollbarY,()=>{let y=l.scrollbarY?.offsetWidth||0;l.onCornerWidthChange(y),d(y)}),m(()=>()=>{v(0),b(0)},[v,b]),x?t(se.div,{...s,ref:a,style:{width:c,height:h,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null},"ScrollAreaCornerImpl"));function pD(e){return e?parseInt(e,10):0}bo(pD,"toInt");function Fq(e,r){let a=e/r;return isNaN(a)?0:a}bo(Fq,"getThumbRatio");function mD(e){let r=Fq(e.viewport,e.content),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-a)*r;return Math.max(i,18)}bo(mD,"getThumbSize");function Bfe(e,r,a,i="ltr"){let s=mD(a),l=s/2,c=r||l,d=s-c,h=a.scrollbar.paddingStart+c,g=a.scrollbar.size-a.scrollbar.paddingEnd-d,x=a.content-a.viewport,v=i==="ltr"?[0,x]:[x*-1,0];return jq([h,g],v)(e)}bo(Bfe,"getScrollPositionFromPointer");function Oq(e,r,a="ltr"){let i=mD(r),s=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=r.scrollbar.size-s,c=r.content-r.viewport,d=l-i,h=a==="ltr"?[0,c]:[c*-1,0],g=bi(e,h);return jq([0,c],[0,d])(g)}bo(Oq,"getThumbOffsetFromScroll");function jq(e,r){return(a)=>{if(e[0]===e[1]||r[0]===r[1])return r[0];let i=(r[1]-r[0])/(e[1]-e[0]);return r[0]+i*(a-e[0])}}bo(jq,"linearScale");function Bq(e,r){return e>0&&e<r}bo(Bq,"isScrollingWithinScrollbarBounds");var KRe=bo((e,r=()=>{})=>{let a={left:e.scrollLeft,top:e.scrollTop},i=0;return bo(function s(){let l={left:e.scrollLeft,top:e.scrollTop},c=a.left!==l.left,d=a.top!==l.top;if(c||d)r();a=l,i=window.requestAnimationFrame(s)},"loop")(),()=>window.cancelAnimationFrame(i)},"addUnlinkedScrollListener");function hD(e,r){let a=Ko(e),i=_(0);return m(()=>()=>window.clearTimeout(i.current),[]),P(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(a,r)},[a,r])}bo(hD,"useDebounceCallback");function Vz(e,r){let a=Ko(r);Pt(()=>{let i=0;if(e){let s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(a)});return s.observe(e),()=>{window.cancelAnimationFrame(i),s.unobserve(e)}}},[e,a])}bo(Vz,"useResizeObserver");var XRe=ERe,QRe=ORe;var JRe=WRe;S();S();var $Re=Object.defineProperty,ePe=(e,r)=>$Re(e,"name",{value:r,configurable:!0});function Lc(e){let r=_({value:e,previous:e});return D(()=>{if(r.current.value!==e)r.current.previous=r.current.value,r.current.value=e;return r.current.previous},[e])}ePe(Lc,"usePrevious");S();var tPe=Object.defineProperty,rPe=(e,r)=>tPe(e,"name",{value:r,configurable:!0}),Uq=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"}),oPe=F(rPe(function(r,a){return t(se.span,{...r,ref:a,style:{...Uq,...r.style}})},"VisuallyHidden")),Yfe=oPe;var nPe=Object.defineProperty,Do=(e,r)=>nPe(e,"name",{value:r,configurable:!0}),iPe=[" ","Enter","ArrowUp","ArrowDown"],fPe=[" ","Enter"],fR="Select",[eF,tF,sPe]=_i(fR),[Gz,x$o]=gt(fR,[sPe,yc]),qq=yc(),[lPe,x8]=Gz(fR),[cPe,uPe]=Gz(fR);function Gfe(e){let{__scopeSelect:r,children:a,open:i,defaultOpen:s,onOpenChange:l,value:c,defaultValue:d,onValueChange:h,dir:g,name:x,autoComplete:v,disabled:b,required:y,form:k,internal_do_not_use_render:T}=e,U=qq(r),[N,j]=u(null),[G,X]=u(null),[J,ee]=u(!1),re=$n(g),[oe,fe]=Lt({prop:i,defaultProp:s??!1,onChange:l,caller:fR}),[be,We]=Lt({prop:c,defaultProp:d,onChange:h,caller:fR}),Ye=_(null),Se=_(be);m(()=>{let Wt=k?N?.ownerDocument.getElementById(k):N?.form;if(Wt instanceof HTMLFormElement){let Fe=Do(()=>We(Se.current),"reset");return Wt.addEventListener("reset",Fe),()=>Wt.removeEventListener("reset",Fe)}},[k,N,We]);let He=N?!!k||!!N.closest("form"):!0,[ft,Je]=u(new Set),xt=Er(),Ft=Array.from(ft).map((Wt)=>Wt.props.value).join(";"),Bt=P((Wt)=>{Je((Fe)=>new Set(Fe).add(Wt))},[]),ie=P((Wt)=>{Je((Fe)=>{let nr=new Set(Fe);return nr.delete(Wt),nr})},[]),bt={required:y,trigger:N,onTriggerChange:j,valueNode:G,onValueNodeChange:X,valueNodeHasChildren:J,onValueNodeHasChildrenChange:ee,contentId:xt,value:be,onValueChange:We,open:oe,onOpenChange:fe,dir:re,triggerPointerDownPosRef:Ye,disabled:b,name:x,autoComplete:v,form:k,nativeOptions:ft,nativeSelectKey:Ft,isFormControl:He};return t(bm,{...U,children:t(lPe,{scope:r,...bt,children:t(eF.Provider,{scope:r,children:t(cPe,{scope:r,onNativeOptionAdd:Bt,onNativeOptionRemove:ie,children:Jfe(T)?T(bt):a})})})})}Do(Gfe,"SelectProvider");var dPe=Do((e)=>{let{__scopeSelect:r,children:a,...i}=e;return t(Gfe,{__scopeSelect:r,...i,internal_do_not_use_render:({isFormControl:s})=>o(L,{children:[a,s?t(NPe,{__scopeSelect:r}):null]})})},"Select"),ZPe="SelectTrigger",pPe=F(Do(function(r,a){let{__scopeSelect:i,disabled:s=!1,...l}=r,c=qq(i),d=x8(ZPe,i),h=d.disabled||s,g=ye(a,d.onTriggerChange),x=tF(i),v=_("touch"),[b,y,k]=Vq((U)=>{let N=x().filter((X)=>!X.disabled),j=N.find((X)=>X.value===d.value),G=Wq(N,U,j);if(G!==void 0)d.onValueChange(G.value)}),T=Do((U)=>{if(!h)d.onOpenChange(!0),k();if(U)d.triggerPointerDownPosRef.current={x:Math.round(U.pageX),y:Math.round(U.pageY)}},"handleOpen");return t(m8,{asChild:!0,...c,children:t(se.button,{type:"button",role:"combobox","aria-controls":d.open?d.contentId:void 0,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":gD(d.value)?"":void 0,...l,ref:g,onClick:Y(l.onClick,(U)=>{if(U.currentTarget.focus(),v.current!=="mouse")T(U)}),onPointerDown:Y(l.onPointerDown,(U)=>{v.current=U.pointerType;let N=U.target;if(N.hasPointerCapture(U.pointerId))N.releasePointerCapture(U.pointerId);if(U.button===0&&U.ctrlKey===!1&&U.pointerType==="mouse")T(U),U.preventDefault()}),onKeyDown:Y(l.onKeyDown,(U)=>{let N=b.current!=="";if(!(U.ctrlKey||U.altKey||U.metaKey)&&U.key.length===1)y(U.key);if(N&&U.key===" ")return;if(iPe.includes(U.key))T(),U.preventDefault()})})})},"SelectTrigger")),mPe="SelectValue",hPe=F(Do(function(r,a){let{__scopeSelect:i,className:s,style:l,children:c,placeholder:d="",...h}=r,g=x8(mPe,i),{onValueNodeHasChildrenChange:x}=g,v=c!==void 0,b=ye(a,g.onValueNodeChange);Pt(()=>{x(v)},[x,v]);let y=gD(g.value);return t(se.span,{...h,asChild:y?!1:h.asChild,ref:b,style:{pointerEvents:"none"},children:t(In,{children:y?d:c},y?"placeholder":"value")})},"SelectValue")),gPe=F(Do(function(r,a){let{__scopeSelect:i,children:s,...l}=r;return t(se.span,{"aria-hidden":!0,...l,ref:a,children:s||"▼"})},"SelectIcon")),MPe="SelectPortal",[xPe,vPe]=Gz(MPe,{forceMount:void 0}),yPe=Do((e)=>{let{__scopeSelect:r,forceMount:a,...i}=e;return t(xPe,{scope:e.__scopeSelect,forceMount:a,children:t(fZ,{asChild:!0,...i})})},"SelectPortal"),Wz="SelectContent",_Pe=F(Do(function(r,a){let i=vPe(Wz,r.__scopeSelect),{forceMount:s=i.forceMount,...l}=r,c=x8(Wz,r.__scopeSelect),[d,h]=u();return Pt(()=>{h(new DocumentFragment)},[]),t(cr,{present:s||c.open,children:({present:g})=>g?t(zPe,{...l,ref:a}):t(bPe,{...l,fragment:d})})},"SelectContent")),bPe=F(Do(function(r,a){let{__scopeSelect:i,children:s,fragment:l}=r;if(!l)return null;return Ji(t(Kfe,{scope:i,children:t(eF.Slot,{scope:i,children:t("div",{ref:a,children:s})})}),l)},"SelectContentFragment")),Mu=10,[Kfe,Kz]=Gz(Wz),wPe=Ni("SelectContent.RemoveScroll"),zPe=F(Do(function(r,a){let{__scopeSelect:i}=r,{position:s="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:c,onPointerDownOutside:d,side:h,sideOffset:g,align:x,alignOffset:v,arrowPadding:b,collisionBoundary:y,collisionPadding:k,sticky:T,hideWhenDetached:U,avoidCollisions:N,...j}=r,G=x8(Wz,i),[X,J]=u(null),[ee,re]=u(null),oe=ye(a,J),[fe,be]=u(null),[We,Ye]=u(null),Se=tF(i),[He,ft]=u(!1),Je=_(!1);m(()=>{if(X)return Z8(X)},[X]),sZ();let xt=P((Gt)=>{let[Xt,...Ir]=Se().map((pr)=>pr.ref.current),[yr]=Ir.slice(-1),Tr=document.activeElement;for(let pr of Gt){if(pr===Tr)return;if(pr?.scrollIntoView({block:"nearest"}),pr===Xt&&ee)ee.scrollTop=0;if(pr===yr&&ee)ee.scrollTop=ee.scrollHeight;if(pr?.focus(),document.activeElement!==Tr)return}},[Se,ee]),Ft=P(()=>xt([fe,X]),[xt,fe,X]);m(()=>{if(He)Ft()},[He,Ft]);let{onOpenChange:Bt,triggerPointerDownPosRef:ie}=G;m(()=>{if(X){let Gt={x:0,y:0},Xt=Do((yr)=>{Gt={x:Math.abs(Math.round(yr.pageX)-(ie.current?.x??0)),y:Math.abs(Math.round(yr.pageY)-(ie.current?.y??0))}},"handlePointerMove"),Ir=Do((yr)=>{if(Gt.x<=10&&Gt.y<=10)yr.preventDefault();else if(!yr.composedPath().includes(X))Bt(!1);document.removeEventListener("pointermove",Xt),ie.current=null},"handlePointerUp");if(ie.current!==null)document.addEventListener("pointermove",Xt),document.addEventListener("pointerup",Ir,{capture:!0,once:!0});return()=>{document.removeEventListener("pointermove",Xt),document.removeEventListener("pointerup",Ir,{capture:!0})}}},[X,Bt,ie]),m(()=>{let Gt=Do(()=>Bt(!1),"close");return window.addEventListener("blur",Gt),window.addEventListener("resize",Gt),()=>{window.removeEventListener("blur",Gt),window.removeEventListener("resize",Gt)}},[Bt]);let[bt,Wt]=Vq((Gt)=>{let Xt=Se().filter((Tr)=>!Tr.disabled),Ir=Xt.find((Tr)=>Tr.ref.current===document.activeElement),yr=Wq(Xt,Gt,Ir);if(yr)setTimeout(()=>yr.ref.current?.focus())}),Fe=P((Gt,Xt,Ir)=>{let yr=!Je.current&&!Ir;if(G.value!==void 0&&G.value===Xt||yr){if(be(Gt),yr)Je.current=!0}},[G.value]),nr=P(()=>X?.focus(),[X]),fr=P((Gt,Xt,Ir)=>{let yr=!Je.current&&!Ir;if(G.value!==void 0&&G.value===Xt||yr)Ye(Gt)},[G.value]),Jt=s==="popper"?qfe:SPe,Fr=Jt===qfe?{side:h,sideOffset:g,align:x,alignOffset:v,arrowPadding:b,collisionBoundary:y,collisionPadding:k,sticky:T,hideWhenDetached:U,avoidCollisions:N}:{};return t(Kfe,{scope:i,content:X,viewport:ee,onViewportChange:re,itemRefCallback:Fe,selectedItem:fe,onItemLeave:nr,itemTextRefCallback:fr,focusSelectedItem:Ft,selectedItemText:We,position:s,isPositioned:He,searchRef:bt,children:t(fm,{as:wPe,allowPinchZoom:!0,children:t(d8,{asChild:!0,trapped:G.open,onMountAutoFocus:(Gt)=>{Gt.preventDefault()},onUnmountAutoFocus:Y(l,(Gt)=>{G.trigger?.focus({preventScroll:!0}),Gt.preventDefault()}),children:t(iZ,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:(Gt)=>Gt.preventDefault(),onDismiss:()=>G.onOpenChange(!1),children:t(Jt,{role:"listbox",id:G.contentId,"data-state":G.open?"open":"closed",dir:G.dir,onContextMenu:(Gt)=>Gt.preventDefault(),...j,...Fr,onPlaced:()=>ft(!0),ref:oe,style:{display:"flex",flexDirection:"column",outline:"none",...j.style},onKeyDown:Y(j.onKeyDown,(Gt)=>{let Xt=Gt.ctrlKey||Gt.altKey||Gt.metaKey;if(Gt.key==="Tab")Gt.preventDefault();if(!Xt&&Gt.key.length===1)Wt(Gt.key);if(["ArrowUp","ArrowDown","Home","End"].includes(Gt.key)){let yr=Se().filter((Tr)=>!Tr.disabled).map((Tr)=>Tr.ref.current);if(["ArrowUp","End"].includes(Gt.key))yr=yr.slice().reverse();if(["ArrowUp","ArrowDown"].includes(Gt.key)){let Tr=Gt.target,pr=yr.indexOf(Tr);yr=yr.slice(pr+1)}setTimeout(()=>xt(yr)),Gt.preventDefault()}})})})})})})},"SelectContentImpl")),SPe=F(Do(function(r,a){let{__scopeSelect:i,onPlaced:s,...l}=r,c=x8(Wz,i),d=Kz(Wz,i),[h,g]=u(null),[x,v]=u(null),b=ye(a,v),y=tF(i),k=_(!1),T=_(!0),{viewport:U,selectedItem:N,selectedItemText:j,focusSelectedItem:G}=d,X=P(()=>{if(c.trigger&&c.valueNode&&h&&x&&U&&N&&j){let oe=c.trigger.getBoundingClientRect(),fe=x.getBoundingClientRect(),be=c.valueNode.getBoundingClientRect(),We=j.getBoundingClientRect();if(c.dir!=="rtl"){let Tr=We.left-fe.left,pr=be.left-Tr,po=oe.left-pr,lo=oe.width+po,xa=Math.max(lo,fe.width),sr=window.innerWidth-Mu,mo=bi(pr,[Mu,Math.max(Mu,sr-xa)]);h.style.minWidth=lo+"px",h.style.left=mo+"px"}else{let Tr=fe.right-We.right,pr=window.innerWidth-be.right-Tr,po=window.innerWidth-oe.right-pr,lo=oe.width+po,xa=Math.max(lo,fe.width),sr=window.innerWidth-Mu,mo=bi(pr,[Mu,Math.max(Mu,sr-xa)]);h.style.minWidth=lo+"px",h.style.right=mo+"px"}let Ye=y(),Se=window.innerHeight-Mu*2,He=U.scrollHeight,ft=window.getComputedStyle(x),Je=parseInt(ft.borderTopWidth,10),xt=parseInt(ft.paddingTop,10),Ft=parseInt(ft.borderBottomWidth,10),Bt=parseInt(ft.paddingBottom,10),ie=Je+xt+He+Bt+Ft,bt=Math.min(N.offsetHeight*5,ie),Wt=window.getComputedStyle(U),Fe=parseInt(Wt.paddingTop,10),nr=parseInt(Wt.paddingBottom,10),fr=oe.top+oe.height/2-Mu,Jt=Se-fr,Fr=N.offsetHeight/2,Gt=N.offsetTop+Fr,Xt=Je+xt+Gt,Ir=ie-Xt;if(Xt<=fr){let Tr=Ye.length>0&&N===Ye[Ye.length-1].ref.current;h.style.bottom="0px";let pr=x.clientHeight-U.offsetTop-U.offsetHeight,po=Math.max(Jt,Fr+(Tr?nr:0)+pr+Ft),lo=Xt+po;h.style.height=lo+"px"}else{let Tr=Ye.length>0&&N===Ye[0].ref.current;h.style.top="0px";let po=Math.max(fr,Je+U.offsetTop+(Tr?Fe:0)+Fr)+Ir;h.style.height=po+"px",U.scrollTop=Xt-fr+U.offsetTop}h.style.margin=`${Mu}px 0`,h.style.minHeight=bt+"px",h.style.maxHeight=Se+"px",s?.(),requestAnimationFrame(()=>k.current=!0)}},[y,c.trigger,c.valueNode,h,x,U,N,j,c.dir,s]);Pt(()=>X(),[X]);let[J,ee]=u();Pt(()=>{if(x)ee(window.getComputedStyle(x).zIndex)},[x]);let re=P((oe)=>{if(oe&&T.current===!0)X(),G?.(),T.current=!1},[X,G]);return t(LPe,{scope:i,contentWrapper:h,shouldExpandOnScrollRef:k,onScrollButtonChange:re,children:t("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:J},children:t(se.div,{...l,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})},"SelectItemAlignedPosition")),qfe=F(Do(function(r,a){let{__scopeSelect:i,align:s="start",collisionPadding:l=Mu,...c}=r,d=qq(i);return t(h8,{...d,...c,ref:a,align:s,collisionPadding:l,style:{boxSizing:"border-box",...c.style,...{"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}})},"SelectPopperPosition")),[LPe,Hq]=Gz(Wz,{}),Hfe="SelectViewport",kPe=F(Do(function(r,a){let{__scopeSelect:i,nonce:s,...l}=r,c=Kz(Hfe,i),d=Hq(Hfe,i),h=ye(a,c.onViewportChange),g=_(0);return o(L,{children:[t("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),t(eF.Slot,{scope:i,children:t(se.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:Y(l.onScroll,(x)=>{let v=x.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:y}=d;if(y?.current&&b){let k=Math.abs(g.current-v.scrollTop);if(k>0){let T=window.innerHeight-Mu*2,U=parseFloat(b.style.minHeight),N=parseFloat(b.style.height),j=Math.max(U,N);if(j<T){let G=j+k,X=Math.min(T,G),J=G-X;if(b.style.height=X+"px",b.style.bottom==="0px")v.scrollTop=J>0?J:0,b.style.justifyContent="flex-end"}}}g.current=v.scrollTop})})})]})},"SelectViewport")),CPe="SelectGroup",[v$o,y$o]=Gz(CPe);var Yq="SelectItem",[IPe,Xfe]=Gz(Yq),RPe=F(Do(function(r,a){let{__scopeSelect:i,value:s,disabled:l=!1,textValue:c,...d}=r,h=x8(Yq,i),g=Kz(Yq,i),x=h.value===s,[v,b]=u(c??""),[y,k]=u(!1),T=Ko((X)=>g.itemRefCallback?.(X,s,l)),U=ye(a,T),N=Er(),j=_("touch"),G=Do(()=>{if(!l)h.onValueChange(s),h.onOpenChange(!1)},"handleSelect");return t(IPe,{scope:i,value:s,disabled:l,textId:N,isSelected:x,onItemTextChange:P((X)=>{b((J)=>J||(X?.textContent??"").trim())},[]),children:t(eF.ItemSlot,{scope:i,value:s,disabled:l,textValue:v,children:t(se.div,{role:"option","aria-labelledby":N,"data-highlighted":y?"":void 0,"aria-selected":x&&y,"data-state":x?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...d,ref:U,onFocus:Y(d.onFocus,()=>k(!0)),onBlur:Y(d.onBlur,()=>k(!1)),onClick:Y(d.onClick,()=>{if(j.current!=="mouse")G()}),onPointerUp:Y(d.onPointerUp,()=>{if(j.current==="mouse")G()}),onPointerDown:Y(d.onPointerDown,(X)=>{j.current=X.pointerType}),onPointerMove:Y(d.onPointerMove,(X)=>{if(j.current=X.pointerType,l)g.onItemLeave?.();else if(j.current==="mouse")X.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Y(d.onPointerLeave,(X)=>{if(X.currentTarget===document.activeElement)g.onItemLeave?.()}),onKeyDown:Y(d.onKeyDown,(X)=>{if(l||X.target!==X.currentTarget)return;if(g.searchRef?.current!==""&&X.key===" ")return;if(fPe.includes(X.key))G();if(X.key===" ")X.preventDefault()})})})})},"SelectItem")),$4="SelectItemText",PPe=F(Do(function(r,a){let{__scopeSelect:i,className:s,style:l,...c}=r,d=x8($4,i),h=Kz($4,i),g=Xfe($4,i),x=uPe($4,i),[v,b]=u(null),y=Ko((G)=>h.itemTextRefCallback?.(G,g.value,g.disabled)),k=ye(a,b,g.onItemTextChange,y),T=v?.textContent,U=D(()=>t("option",{value:g.value,disabled:g.disabled,children:T},g.value),[g.disabled,g.value,T]),{onNativeOptionAdd:N,onNativeOptionRemove:j}=x;return Pt(()=>(N(U),()=>j(U)),[N,j,U]),o(L,{children:[t(se.span,{id:g.textId,...c,ref:k}),g.isSelected&&d.valueNode&&!d.valueNodeHasChildren&&!gD(d.value)?Ji(c.children,d.valueNode):null]})},"SelectItemText")),TPe="SelectItemIndicator",APe=F(Do(function(r,a){let{__scopeSelect:i,...s}=r;return Xfe(TPe,i).isSelected?t(se.span,{"aria-hidden":!0,...s,ref:a}):null},"SelectItemIndicator")),Vfe="SelectScrollUpButton",EPe=F(Do(function(r,a){let i=Kz(Vfe,r.__scopeSelect),s=Hq(Vfe,r.__scopeSelect),[l,c]=u(!1),d=ye(a,s.onScrollButtonChange);return Pt(()=>{if(i.viewport&&i.isPositioned){let g=function(){let v=x.scrollTop>0;c(v)};var h=g;Do(g,"handleScroll");let x=i.viewport;return g(),x.addEventListener("scroll",g),()=>x.removeEventListener("scroll",g)}},[i.viewport,i.isPositioned]),l?t(Qfe,{...r,ref:d,onAutoScroll:()=>{let{viewport:h,selectedItem:g}=i;if(h&&g)h.scrollTop=h.scrollTop-g.offsetHeight}}):null},"SelectScrollUpButton")),Wfe="SelectScrollDownButton",DPe=F(Do(function(r,a){let i=Kz(Wfe,r.__scopeSelect),s=Hq(Wfe,r.__scopeSelect),[l,c]=u(!1),d=ye(a,s.onScrollButtonChange);return Pt(()=>{if(i.viewport&&i.isPositioned){let g=function(){let v=x.scrollHeight-x.clientHeight,b=Math.ceil(x.scrollTop)<v;c(b)};var h=g;Do(g,"handleScroll");let x=i.viewport;return g(),x.addEventListener("scroll",g),()=>x.removeEventListener("scroll",g)}},[i.viewport,i.isPositioned]),l?t(Qfe,{...r,ref:d,onAutoScroll:()=>{let{viewport:h,selectedItem:g}=i;if(h&&g)h.scrollTop=h.scrollTop+g.offsetHeight}}):null},"SelectScrollDownButton")),Qfe=F(Do(function(r,a){let{__scopeSelect:i,onAutoScroll:s,...l}=r,c=Kz("SelectScrollButton",i),d=_(null),h=tF(i),g=P(()=>{if(d.current!==null)window.clearInterval(d.current),d.current=null},[]);return m(()=>()=>g(),[g]),Pt(()=>{h().find((v)=>v.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),t(se.div,{"aria-hidden":!0,...l,ref:a,style:{flexShrink:0,...l.style},onPointerDown:Y(l.onPointerDown,()=>{if(d.current===null)d.current=window.setInterval(s,50)}),onPointerMove:Y(l.onPointerMove,()=>{if(c.onItemLeave?.(),d.current===null)d.current=window.setInterval(s,50)}),onPointerLeave:Y(l.onPointerLeave,()=>{g()})})},"SelectScrollButtonImpl"));var OPe="SelectBubbleInput",NPe=F(Do(function({__scopeSelect:r,...a},i){let s=x8(OPe,r),{value:l,onValueChange:c,required:d,disabled:h,name:g,autoComplete:x,form:v}=s,{nativeOptions:b,nativeSelectKey:y}=s,k=_(null),T=ye(i,k),U=l??"",N=Lc(U),j=Array.from(b).some((G)=>(G.props.value??"")==="");return m(()=>{let G=k.current;if(!G)return;let X=window.HTMLSelectElement.prototype,ee=Object.getOwnPropertyDescriptor(X,"value").set;if(N!==U&&ee){let re=new Event("change",{bubbles:!0});ee.call(G,U),G.dispatchEvent(re)}},[N,U]),o(se.select,{"aria-hidden":!0,required:d,tabIndex:-1,name:g,autoComplete:x,disabled:h,form:v,onChange:(G)=>c(G.target.value),...a,style:{...Uq,...a.style},ref:T,defaultValue:U,children:[gD(l)&&!j?t("option",{value:""}):null,Array.from(b)]},y)},"SelectBubbleInput"));function Jfe(e){return typeof e==="function"}Do(Jfe,"isFunction");function gD(e){return e===""||e===void 0}Do(gD,"shouldShowPlaceholder");function Vq(e){let r=Ko(e),a=_(""),i=_(0),s=P((c)=>{let d=a.current+c;r(d),Do(function h(g){if(a.current=g,window.clearTimeout(i.current),g!=="")i.current=window.setTimeout(()=>h(""),1000)},"updateSearch")(d)},[r]),l=P(()=>{a.current="",window.clearTimeout(i.current)},[]);return m(()=>()=>window.clearTimeout(i.current),[]),[a,s,l]}Do(Vq,"useTypeaheadSearch");function Wq(e,r,a){let s=r.length>1&&Array.from(r).every((g)=>g===r[0])?r[0]:r,l=a?e.indexOf(a):-1,c=$fe(e,Math.max(l,0));if(s.length===1)c=c.filter((g)=>g!==a);let h=c.find((g)=>g.textValue.toLowerCase().startsWith(s.toLowerCase()));return h!==a?h:void 0}Do(Wq,"findNextItem");function $fe(e,r){return e.map((a,i)=>e[(r+i)%e.length])}Do($fe,"wrapArray");S();var FPe=Object.defineProperty,rse=(e,r)=>FPe(e,"name",{value:r,configurable:!0}),tse="horizontal",jPe=["horizontal","vertical"],BPe=F(rse(function(r,a){let{decorative:i,orientation:s=tse,...l}=r,c=ose(s)?s:tse,h=i?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return t(se.div,{"data-orientation":c,...h,...l,ref:a})},"Separator"));function ose(e){return jPe.includes(e)}rse(ose,"isValidOrientation");var UPe=BPe;S();var YPe=Object.defineProperty,v8=(e,r)=>YPe(e,"name",{value:r,configurable:!0}),Gq="Switch",[qPe,R$o]=gt(Gq),[HPe,Kq]=qPe(Gq);function nse(e){let{__scopeSwitch:r,checked:a,children:i,defaultChecked:s,disabled:l,form:c,name:d,onCheckedChange:h,required:g,value:x="on",internal_do_not_use_render:v}=e,[b,y]=Lt({prop:a,defaultProp:s??!1,onChange:h,caller:Gq}),[k,T]=u(null),[U,N]=u(null),j=_(!1),[G,X]=tn((re)=>re+1,0),J=k?!!c||!!k.closest("form"):!0,ee={checked:b,setChecked:y,disabled:l,control:k,setControl:T,name:d,form:c,value:x,hasConsumerStoppedPropagationRef:j,userInteractionCount:G,onUserInteraction:X,required:g,defaultChecked:s,isFormControl:J,bubbleInput:U,setBubbleInput:N};return t(HPe,{scope:r,...ee,children:ise(v)?v(ee):i})}v8(nse,"SwitchProvider");var VPe="SwitchTrigger",WPe=F(v8(function({__scopeSwitch:r,onClick:a,...i},s){let{control:l,form:c,value:d,disabled:h,checked:g,required:x,setControl:v,setChecked:b,hasConsumerStoppedPropagationRef:y,onUserInteraction:k,isFormControl:T,bubbleInput:U}=Kq(VPe,r),N=ye(s,v),j=_(g);return m(()=>{let G=c?l?.ownerDocument.getElementById(c):l?.form;if(G instanceof HTMLFormElement){let X=v8(()=>b(j.current),"reset");return G.addEventListener("reset",X),()=>G.removeEventListener("reset",X)}},[l,c,b]),t(se.button,{type:"button",role:"switch","aria-checked":g,"aria-required":x,"data-state":Xq(g),"data-disabled":h?"":void 0,disabled:h,value:d,...i,ref:N,onClick:Y(a,(G)=>{if(k(),b((X)=>!X),U&&T){if(y.current=G.isPropagationStopped(),!y.current)G.stopPropagation()}})})},"SwitchTrigger")),GPe=F(v8(function(r,a){let{__scopeSwitch:i,name:s,checked:l,defaultChecked:c,required:d,disabled:h,value:g,onCheckedChange:x,form:v,...b}=r;return t(nse,{__scopeSwitch:i,checked:l,defaultChecked:c,disabled:h,required:d,onCheckedChange:x,name:s,form:v,value:g,internal_do_not_use_render:({isFormControl:y})=>o(L,{children:[t(WPe,{...b,ref:a,__scopeSwitch:i}),y&&t(JPe,{__scopeSwitch:i})]})})},"Switch")),KPe="SwitchThumb",XPe=F(v8(function(r,a){let{__scopeSwitch:i,...s}=r,l=Kq(KPe,i);return t(se.span,{"data-state":Xq(l.checked),"data-disabled":l.disabled?"":void 0,...s,ref:a})},"SwitchThumb")),QPe="SwitchBubbleInput",JPe=F(v8(function({__scopeSwitch:r,onClick:a,...i},s){let{control:l,hasConsumerStoppedPropagationRef:c,userInteractionCount:d,checked:h,defaultChecked:g,required:x,disabled:v,name:b,value:y,form:k,bubbleInput:T,setBubbleInput:U}=Kq(QPe,r),N=ye(s,U),j=Ai(l),G=_(!1),X=_(h),J=_(d);m(()=>{let re=T;if(!re)return;let oe=window.HTMLInputElement.prototype,be=Object.getOwnPropertyDescriptor(oe,"checked").set,We=d!==J.current;J.current=d;let Ye=X.current!==h;X.current=h;let Se=!(We&&c.current);if(Ye&&be){G.current=!We;let He=new Event("click",{bubbles:Se});be.call(re,h),re.dispatchEvent(He),G.current=!1}},[T,h,c,d]);let ee=_(h);return t(se.input,{type:"checkbox","aria-hidden":!0,defaultChecked:g??ee.current,required:x,disabled:v,name:b,value:y,form:k,...i,tabIndex:-1,ref:N,onClick:Y(a,(re)=>{if(G.current)re.stopPropagation()}),style:{...i.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function ise(e){return typeof e==="function"}v8(ise,"isFunction");function Xq(e){return e?"checked":"unchecked"}v8(Xq,"getState");S();var $Pe=Object.defineProperty,sR=(e,r)=>$Pe(e,"name",{value:r,configurable:!0}),Qq="Tabs",[eTe,B$o]=gt(Qq,[yi]),sse=yi(),[tTe,Jq]=eTe(Qq),rTe=F(sR(function(r,a){let{__scopeTabs:i,value:s,onValueChange:l,defaultValue:c,orientation:d="horizontal",dir:h,activationMode:g="automatic",...x}=r,v=$n(h),[b,y]=Lt({prop:s,onChange:l,defaultProp:c??"",caller:Qq});return t(tTe,{scope:i,baseId:Er(),value:b,onValueChange:y,orientation:d,dir:v,activationMode:g,children:t(se.div,{dir:v,"data-orientation":d,...x,ref:a})})},"Tabs")),oTe="TabsList",aTe=F(sR(function(r,a){let{__scopeTabs:i,loop:s=!0,...l}=r,c=Jq(oTe,i),d=sse(i);return t(vl,{asChild:!0,...d,orientation:c.orientation,dir:c.dir,loop:s,children:t(se.div,{role:"tablist","aria-orientation":c.orientation,...l,ref:a})})},"TabsList")),nTe="TabsTrigger",iTe=F(sR(function(r,a){let{__scopeTabs:i,value:s,disabled:l=!1,...c}=r,d=Jq(nTe,i),h=sse(i),g=$q(d.baseId,s),x=e9(d.baseId,s),v=s===d.value;return t(wl,{asChild:!0,...h,focusable:!l,active:v,children:t(se.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":x,"data-state":v?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:g,...c,ref:a,onMouseDown:Y(r.onMouseDown,(b)=>{if(!l&&b.button===0&&b.ctrlKey===!1)d.onValueChange(s);else b.preventDefault()}),onKeyDown:Y(r.onKeyDown,(b)=>{if(l||b.target!==b.currentTarget)return;if([" ","Enter"].includes(b.key))d.onValueChange(s)}),onFocus:Y(r.onFocus,()=>{let b=d.activationMode!=="manual";if(!v&&!l&&b)d.onValueChange(s)})})})},"TabsTrigger")),fTe="TabsContent",sTe=F(sR(function(r,a){let{__scopeTabs:i,value:s,forceMount:l,children:c,...d}=r,h=Jq(fTe,i),g=$q(h.baseId,s),x=e9(h.baseId,s),v=s===h.value,b=_(v);return m(()=>{let y=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(y)},[]),t(cr,{present:l||v,children:({present:y})=>t(se.div,{"data-state":v?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":g,hidden:!y,id:x,tabIndex:0,...d,ref:a,style:{...r.style,animationDuration:b.current?"0s":void 0},children:y&&c})})},"TabsContent"));function $q(e,r){return`${e}-trigger-${r}`}sR($q,"makeTriggerId");function e9(e,r){return`${e}-content-${r}`}sR(e9,"makeContentId");var lTe=rTe,cTe=aTe,uTe=iTe,dTe=sTe;S();var ZTe=Object.defineProperty,ki=(e,r)=>ZTe(e,"name",{value:r,configurable:!0}),[o9,tea]=gt("Tooltip",[yc]),rF=yc(),pTe="TooltipProvider",mTe=700,t9="tooltip.open",[hTe,a9]=o9(pTe),gTe=ki((e)=>{let{__scopeTooltip:r,delayDuration:a=mTe,skipDelayDuration:i=300,disableHoverableContent:s=!1,children:l}=e,c=_(!0),d=_(!1),h=_(0);return m(()=>{let g=h.current;return()=>window.clearTimeout(g)},[]),t(hTe,{scope:r,isOpenDelayedRef:c,delayDuration:a,onOpen:P(()=>{if(i<=0)return;window.clearTimeout(h.current),c.current=!1},[i]),onClose:P(()=>{if(i<=0)return;window.clearTimeout(h.current),h.current=window.setTimeout(()=>c.current=!0,i)},[i]),isPointerInTransitRef:d,onPointerInTransitChange:P((g)=>{d.current=g},[]),disableHoverableContent:s,children:l})},"TooltipProvider"),r9="Tooltip",[MTe,xD]=o9(r9),xTe=ki((e)=>{let{__scopeTooltip:r,children:a,open:i,defaultOpen:s,onOpenChange:l,disableHoverableContent:c,delayDuration:d}=e,h=a9(r9,e.__scopeTooltip),g=rF(r),[x,v]=u(null),[b,y]=u(void 0),k=Er(),T=_(0),U=c??h.disableHoverableContent,N=d??h.delayDuration,j=_(!1),[G,X]=Lt({prop:i,defaultProp:s??!1,onChange:ki((be)=>{if(be)h.onOpen(),document.dispatchEvent(new CustomEvent(t9));else h.onClose();l?.(be)},"onChange"),caller:r9}),J=D(()=>G?j.current?"delayed-open":"instant-open":"closed",[G]),ee=P(()=>{window.clearTimeout(T.current),T.current=0,j.current=!1,X(!0)},[X]),re=P(()=>{window.clearTimeout(T.current),T.current=0,X(!1)},[X]),oe=P(()=>{window.clearTimeout(T.current),T.current=window.setTimeout(()=>{j.current=!0,X(!0),T.current=0},N)},[N,X]);return m(()=>()=>{if(T.current)window.clearTimeout(T.current),T.current=0},[]),t(bm,{...g,children:t(MTe,{scope:r,contentId:b??k,setContentId:y,open:G,stateAttribute:J,trigger:x,onTriggerChange:v,onTriggerEnter:P(()=>{if(h.isOpenDelayedRef.current)oe();else ee()},[h.isOpenDelayedRef,oe,ee]),onTriggerLeave:P(()=>{if(U)re();else window.clearTimeout(T.current),T.current=0},[re,U]),onOpen:ee,onClose:re,disableHoverableContent:U,children:a})})},"Tooltip"),cse="TooltipTrigger",vTe=F(ki(function(r,a){let{__scopeTooltip:i,...s}=r,l=xD(cse,i),c=a9(cse,i),d=rF(i),h=_(null),g=ye(a,h,l.onTriggerChange),x=_(!1),v=_(!1),b=P(()=>x.current=!1,[]);return m(()=>()=>document.removeEventListener("pointerup",b),[b]),t(m8,{asChild:!0,...d,children:t(se.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...s,ref:g,onPointerMove:Y(r.onPointerMove,(y)=>{if(y.pointerType==="touch")return;if(!v.current&&!c.isPointerInTransitRef.current)l.onTriggerEnter(),v.current=!0}),onPointerLeave:Y(r.onPointerLeave,()=>{l.onTriggerLeave(),v.current=!1}),onPointerDown:Y(r.onPointerDown,()=>{if(l.open)l.onClose();x.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:Y(r.onFocus,()=>{if(!x.current)l.onOpen()}),onBlur:Y(r.onBlur,l.onClose),onClick:Y(r.onClick,l.onClose)})})},"TooltipTrigger")),use="TooltipPortal",[yTe,_Te]=o9(use,{forceMount:void 0}),bTe=ki((e)=>{let{__scopeTooltip:r,forceMount:a,children:i,container:s}=e,l=xD(use,r);return t(yTe,{scope:r,forceMount:a,children:t(cr,{present:a||l.open,children:t(fZ,{asChild:!0,container:s,children:i})})})},"TooltipPortal"),MD="TooltipContent",wTe=F(ki(function(r,a){let i=_Te(MD,r.__scopeTooltip),{forceMount:s=i.forceMount,side:l="top",...c}=r,d=xD(MD,r.__scopeTooltip);return t(cr,{present:s||d.open,children:d.disableHoverableContent?t(dse,{side:l,...c,ref:a}):t(zTe,{side:l,...c,ref:a})})},"TooltipContent")),zTe=F(ki(function(r,a){let i=xD(MD,r.__scopeTooltip),s=a9(MD,r.__scopeTooltip),l=_(null),c=ye(a,l),[d,h]=u(null),{trigger:g,onClose:x}=i,v=l.current,{onPointerInTransitChange:b}=s,y=P(()=>{h(null),b(!1)},[b]),k=P((T,U)=>{let N=T.currentTarget,j={x:T.clientX,y:T.clientY},G=Zse(j,N.getBoundingClientRect()),X=pse(j,G),J=mse(U.getBoundingClientRect()),ee=gse([...X,...J]);h(ee),b(!0)},[b]);return m(()=>()=>y(),[y]),m(()=>{if(g&&v){let T=ki((N)=>k(N,v),"handleTriggerLeave"),U=ki((N)=>k(N,g),"handleContentLeave");return g.addEventListener("pointerleave",T),v.addEventListener("pointerleave",U),()=>{g.removeEventListener("pointerleave",T),v.removeEventListener("pointerleave",U)}}},[g,v,k,y]),m(()=>{if(d){let T=ki((U)=>{let N=U.target,j={x:U.clientX,y:U.clientY},G=g?.contains(N)||v?.contains(N),X=!hse(j,d);if(G)y();else if(X)y(),x()},"handleTrackPointerGrace");return document.addEventListener("pointermove",T),()=>document.removeEventListener("pointermove",T)}},[g,v,d,x,y]),t(dse,{...r,ref:c})},"TooltipContentHoverable")),STe=m7("TooltipContent"),dse=F(ki(function(r,a){let{__scopeTooltip:i,children:s,"aria-label":l,id:c,onEscapeKeyDown:d,onPointerDownOutside:h,...g}=r,x=xD(MD,i),v=rF(i),{onClose:b}=x;m(()=>(document.addEventListener(t9,b),()=>document.removeEventListener(t9,b)),[b]),m(()=>{if(x.trigger){let k=ki((T)=>{if(T.target instanceof Node&&T.target.contains(x.trigger))b()},"handleScroll");return window.addEventListener("scroll",k,{capture:!0}),()=>window.removeEventListener("scroll",k,{capture:!0})}},[x.trigger,b]);let{setContentId:y}=x;return Pt(()=>(y(c),()=>{y(void 0)}),[c,y]),t(iZ,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:(k)=>k.preventDefault(),onDismiss:b,children:o(h8,{"data-state":x.stateAttribute,role:l?void 0:"tooltip",id:l?void 0:x.contentId,...v,...g,ref:a,style:{...g.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:[t(STe,{children:s}),l?t(Yfe,{id:x.contentId,role:"tooltip",children:l}):null]})})},"TooltipContentImpl")),LTe=F(ki(function(r,a){let{__scopeTooltip:i,...s}=r,l=rF(i);return t(lD,{...l,...s,ref:a})},"TooltipArrow"));function Zse(e,r){let a=Math.abs(r.top-e.y),i=Math.abs(r.bottom-e.y),s=Math.abs(r.right-e.x),l=Math.abs(r.left-e.x);switch(Math.min(a,i,s,l)){case l:return"left";case s:return"right";case a:return"top";case i:return"bottom";default:throw Error("unreachable")}}ki(Zse,"getExitSideFromRect");function pse(e,r,a=5){let i=[];switch(r){case"top":i.push({x:e.x-a,y:e.y+a},{x:e.x+a,y:e.y+a});break;case"bottom":i.push({x:e.x-a,y:e.y-a},{x:e.x+a,y:e.y-a});break;case"left":i.push({x:e.x+a,y:e.y-a},{x:e.x+a,y:e.y+a});break;case"right":i.push({x:e.x-a,y:e.y-a},{x:e.x-a,y:e.y+a});break}return i}ki(pse,"getPaddedExitPoints");function mse(e){let{top:r,right:a,bottom:i,left:s}=e;return[{x:s,y:r},{x:a,y:r},{x:a,y:i},{x:s,y:i}]}ki(mse,"getPointsFromRect");function hse(e,r){let{x:a,y:i}=e,s=!1;for(let l=0,c=r.length-1;l<r.length;c=l++){let d=r[l],h=r[c],{x:g,y:x}=d,{x:v,y:b}=h;if(x>i!==b>i&&a<(v-g)*(i-x)/(b-x)+g)s=!s}return s}ki(hse,"isPointInPolygon");function gse(e){let r=e.slice();return r.sort((a,i)=>{if(a.x<i.x)return-1;else if(a.x>i.x)return 1;else if(a.y<i.y)return-1;else if(a.y>i.y)return 1;else return 0}),Mse(r)}ki(gse,"getHull");function Mse(e){if(e.length<=1)return e.slice();let r=[];for(let i=0;i<e.length;i++){let s=e[i];while(r.length>=2){let l=r[r.length-1],c=r[r.length-2];if((l.x-c.x)*(s.y-c.y)>=(l.y-c.y)*(s.x-c.x))r.pop();else break}r.push(s)}r.pop();let a=[];for(let i=e.length-1;i>=0;i--){let s=e[i];while(a.length>=2){let l=a[a.length-1],c=a[a.length-2];if((l.x-c.x)*(s.y-c.y)>=(l.y-c.y)*(s.x-c.x))a.pop();else break}a.push(s)}if(a.pop(),r.length===1&&a.length===1&&r[0].x===a[0].x&&r[0].y===a[0].y)return r;else return r.concat(a)}ki(Mse,"getHullPresorted");var kTe=gTe,CTe=xTe,ITe=vTe,RTe=bTe,PTe=wTe,TTe=LTe;var oF=ps("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap cursor-pointer transition-colors outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{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:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 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 gap-1.5 rounded-md 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 E({className:e,variant:r="default",size:a="default",asChild:i=!1,...s}){let l=i?jae:"button";return t(l,{"data-slot":"button","data-variant":r,"data-size":a,className:C(oF({variant:r,size:a,className:e})),...s})}function sn({delayDuration:e=0,...r}){return t(kTe,{"data-slot":"tooltip-provider",delayDuration:e,...r})}function an({...e}){return t(CTe,{"data-slot":"tooltip",...e})}function ln({...e}){return t(ITe,{"data-slot":"tooltip-trigger",...e})}function cn({className:e,sideOffset:r=0,children:a,...i}){return t(RTe,{children:o(PTe,{"data-slot":"tooltip-content",sideOffset:r,className:C("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...i,children:[a,t(TTe,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}function Ce({className:e,size:r="default",...a}){return t(bCe,{"data-slot":"avatar","data-size":r,className:C("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",e),...a})}function Ie({className:e,...r}){return t(zCe,{"data-slot":"avatar-image",className:C("aspect-square size-full",e),...r})}function Te({className:e,...r}){return t(LCe,{"data-slot":"avatar-fallback",className:C("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),...r})}function ge({...e}){return t(q1e,{"data-slot":"dropdown-menu",...e})}function ra({...e}){return t(_fe,{"data-slot":"dropdown-menu-portal",...e})}function Ae({...e}){return t(H1e,{"data-slot":"dropdown-menu-trigger",...e})}function _e({className:e,sideOffset:r=4,...a}){return t(_fe,{children:t(V1e,{"data-slot":"dropdown-menu-content",sideOffset:r,className:C("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 bg-popover p-1 text-popover-foreground shadow-md 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...a})})}function K({className:e,inset:r,variant:a="default",...i}){return t(G1e,{"data-slot":"dropdown-menu-item","data-inset":r,"data-variant":a,className:C("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!",e),...i})}function Zc({...e}){return t(K1e,{"data-slot":"dropdown-menu-radio-group",...e})}function vi({className:e,children:r,...a}){return o(X1e,{"data-slot":"dropdown-menu-radio-item",className:C("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a,children:[t("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t(Q1e,{children:t(E2,{className:"size-2 fill-current"})})}),r]})}function Wr({className:e,inset:r,...a}){return t(W1e,{"data-slot":"dropdown-menu-label","data-inset":r,className:C("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...a})}function Vt({className:e,...r}){return t(J1e,{"data-slot":"dropdown-menu-separator",className:C("-mx-1 my-1 h-px bg-border",e),...r})}function ms({...e}){return t($1e,{"data-slot":"dropdown-menu-sub",...e})}function hs({className:e,inset:r,children:a,...i}){return o(eRe,{"data-slot":"dropdown-menu-sub-trigger","data-inset":r,className:C("flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...i,children:[a,t(Et,{className:"ml-auto size-4"})]})}function gs({className:e,...r}){return t(tRe,{"data-slot":"dropdown-menu-sub-content",className:C("z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...r})}S();function ATe(e){let r=e.match(/teams\/([^/]+)/);if(r)return{teamId:r[1]};let a=e.match(/projects\/([^/]+)/);if(a)return{projectId:a[1]};return{}}function As(){let[e,r]=u(),a=nz({select:(c)=>c.location.pathname}),{teamId:i,projectId:s}=ATe(a),{data:l}=Z({queryKey:["projects",s,"team"],queryFn:async()=>{let c=await A.api.projects[":projectId"].team.$get({param:{projectId:s}});if(!c.ok)throw Error("failed to fetch project team");return await c.json()},enabled:!!s});return m(()=>{if(i)r(i);else if(l?.teamId)r(l.teamId)},[i,l]),e}var aF=Object.create(null),vD=(e)=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?aF:globalThis),Cm=new Proxy(aF,{get(e,r){return vD()[r]??aF[r]},has(e,r){return r in vD()||r in aF},set(e,r,a){let i=vD(!0);return i[r]=a,!0},deleteProperty(e,r){if(!r)return!1;let a=vD(!0);return delete a[r],!0},ownKeys(){let e=vD(!0);return Object.keys(e)}});var ETe=typeof process<"u"&&process.env&&"production"||"";function y8(e,r){if(typeof process<"u"&&process.env)return process.env[e]??r;if(typeof Deno<"u")return Deno.env.get(e)??r;if(typeof Bun<"u")return Bun.env[e]??r;return r}var DTe=Object.freeze({get BETTER_AUTH_SECRET(){return y8("BETTER_AUTH_SECRET")},get AUTH_SECRET(){return y8("AUTH_SECRET")},get BETTER_AUTH_TELEMETRY(){return y8("BETTER_AUTH_TELEMETRY")},get BETTER_AUTH_TELEMETRY_ID(){return y8("BETTER_AUTH_TELEMETRY_ID")},get NODE_ENV(){return y8("NODE_ENV","development")},get PACKAGE_VERSION(){return y8("PACKAGE_VERSION","0.0.0")},get BETTER_AUTH_TELEMETRY_ENDPOINT(){return y8("BETTER_AUTH_TELEMETRY_ENDPOINT","")}});function OTe(){let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");if(e===void 0)return Object.isExtensible(Error);return Object.prototype.hasOwnProperty.call(e,"writable")?e.writable:e.set!==void 0}function NTe(e){let r=e.split(`
|
|
61
|
+
at `);if(r.length<=1)return e;return r.splice(1,1),r.join(`
|
|
62
|
+
at `)}function FTe(e,r){class a extends e{#e;constructor(...i){if(OTe()){let l=Error.stackTraceLimit;Error.stackTraceLimit=0;super(...i);Error.stackTraceLimit=l}else super(...i);let s=Error().stack;if(s)this.#e=NTe(s.replace(/^Error/,this.name))}get errorStack(){return this.#e}}return Object.defineProperty(a.prototype,"constructor",{get(){return r},enumerable:!1,configurable:!0}),a}var jTe={OK:200,CREATED:201,ACCEPTED:202,NO_CONTENT:204,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,TEMPORARY_REDIRECT:307,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTHENTICATION_REQUIRED:407,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,"I'M_A_TEAPOT":418,MISDIRECTED_REQUEST:421,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,TOO_EARLY:425,UPGRADE_REQUIRED:426,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,UNAVAILABLE_FOR_LEGAL_REASONS:451,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,VARIANT_ALSO_NEGOTIATES:506,INSUFFICIENT_STORAGE:507,LOOP_DETECTED:508,NOT_EXTENDED:510,NETWORK_AUTHENTICATION_REQUIRED:511},BTe=class extends Error{constructor(e="INTERNAL_SERVER_ERROR",r=void 0,a={},i=typeof e==="number"?e:jTe[e]){super(r?.message,r?.cause?{cause:r.cause}:void 0);this.status=e,this.body=r,this.headers=a,this.statusCode=i,this.name="APIError",this.status=e,this.headers=a,this.statusCode=i,this.body=r}};var UTe=FTe(BTe,Error);var lR=class extends Error{constructor(e,r){super(e,r);this.name="BetterAuthError",this.message=e,this.stack=""}};function YTe(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new lR(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function qTe(e){try{let r=new URL(e);if(r.protocol!=="http:"&&r.protocol!=="https:")throw new lR(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(r){if(r instanceof lR)throw r;throw new lR(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:r})}}function yD(e,r="/api/auth"){if(qTe(e),YTe(e))return e;let a=e.replace(/\/+$/,"");if(!r||r==="/")return a;return r=r.startsWith("/")?r:`/${r}`,`${a}${r}`}function vse(e,r){if(!e||e.trim()==="")return!1;if(r==="proto")return e==="http"||e==="https";if(r==="host"){if([/\.\./,/\0/,/[\s]/,/^[.]/,/[<>'"]/,/javascript:/i,/file:/i,/data:/i].some((a)=>a.test(e)))return!1;return/^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*(:[0-9]{1,5})?$/.test(e)||/^(\d{1,3}\.){3}\d{1,3}(:[0-9]{1,5})?$/.test(e)||/^\[[0-9a-fA-F:]+\](:[0-9]{1,5})?$/.test(e)||/^localhost(:[0-9]{1,5})?$/i.test(e)}return!1}function yse(e,r,a,i,s){if(e)return yD(e,r);if(i!==!1){let d=Cm.BETTER_AUTH_URL||Cm.NEXT_PUBLIC_BETTER_AUTH_URL||Cm.PUBLIC_BETTER_AUTH_URL||Cm.NUXT_PUBLIC_BETTER_AUTH_URL||Cm.NUXT_PUBLIC_AUTH_URL||(Cm.BASE_URL!=="/"?Cm.BASE_URL:void 0);if(d)return yD(d,r)}let l=a?.headers.get("x-forwarded-host"),c=a?.headers.get("x-forwarded-proto");if(l&&c&&s){if(vse(c,"proto")&&vse(l,"host"))try{return yD(`${c}://${l}`,r)}catch(d){}}if(a){let d=HTe(a.url);if(!d)throw new lR("Could not get origin from request. Please provide a valid base URL.");return yD(d,r)}if(typeof window<"u"&&window.location)return yD(window.location.origin,r)}function HTe(e){try{let r=new URL(e);return r.origin==="null"?null:r.origin}catch{return null}}var VTe={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},WTe=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,_se={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},GTe=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function KTe(e){return e instanceof Date&&!isNaN(e.getTime())}function XTe(e){let r=GTe.exec(e);if(!r)return null;let[,a,i,s,l,c,d,h,g,x,v]=r,b=new Date(Date.UTC(parseInt(a,10),parseInt(i,10)-1,parseInt(s,10),parseInt(l,10),parseInt(c,10),parseInt(d,10),h?parseInt(h.padEnd(3,"0"),10):0));if(g){let y=(parseInt(x,10)*60+parseInt(v,10))*(g==="+"?-1:1);b.setUTCMinutes(b.getUTCMinutes()+y)}return KTe(b)?b:null}function QTe(e,r={}){let{strict:a=!1,warnings:i=!1,reviver:s,parseDates:l=!0}=r;if(typeof e!=="string")return e;let c=e.trim();if(c.length>0&&c[0]==='"'&&c.endsWith('"')&&!c.slice(1,-1).includes('"'))return c.slice(1,-1);let d=c.toLowerCase();if(d.length<=9&&d in _se)return _se[d];if(!WTe.test(c)){if(a)throw SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(VTe).some(([h,g])=>{let x=g.test(c);if(x&&i)console.warn(`[better-json] Detected potential prototype pollution attempt using ${h} pattern`);return x})&&a)throw Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(c,(g,x)=>{if(g==="__proto__"||g==="constructor"&&x&&typeof x==="object"&&"prototype"in x){if(i)console.warn(`[better-json] Dropping "${g}" key to prevent prototype pollution`);return}if(l&&typeof x==="string"){let v=XTe(x);if(v)return v}return s?s(g,x):x})}catch(h){if(a)throw h;return e}}function bse(e,r={strict:!0}){return QTe(e,r)}var wse={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect){if(typeof window<"u"&&window.location){if(window.location)try{window.location.href=e.data.url}catch{}}}}}};var xu=[],_8=0,nF=null,iF=4,JTe=globalThis.nanostoresGlobal||={epoch:0},$Te=()=>{let e;for(_8=0;_8<xu.length;_8+=iF)try{xu[_8](xu[_8+1].value,xu[_8+2],xu[_8+3])}catch(r){e=r}if(xu.length=0,e)throw e};var _D=(e)=>{let r=[],a={eq:Object.is,get(){if(!a.lc)a.listen(()=>{})();return a.value},init:e,lc:0,listen(i){return a.lc=r.push(i),()=>{for(let l=_8+iF;l<xu.length;)if(xu[l]===i)xu.splice(l,iF);else l+=iF;let s=r.indexOf(i);if(~s){if(r.splice(s,1),!--a.lc)a.off()}}},notify(i,s){JTe.epoch++;let l=!xu.length&&!nF;for(let c of r){if(nF?.has(c))continue;nF?.add(c),xu.push(c,a,i,nF?void 0:s)}if(l)$Te()},off(){},set(i){let s=a.value;if(!a.eq(s,i))a.value=i,a.notify(s)},subscribe(i){let s=a.listen(i);return i(a.value),s},value:e};return a};var eAe=5,fF=6,sF=10,tAe=(e,r,a,i)=>{if(e.events=e.events||{},!e.events[a+sF])e.events[a+sF]=i((s)=>{e.events[a].reduceRight((l,c)=>(c(l),l),{shared:{},...s})});return e.events[a]=e.events[a]||[],e.events[a].push(r),()=>{let s=e.events[a],l=s.indexOf(r);if(s.splice(l,1),!s.length)delete e.events[a],e.events[a+sF](),delete e.events[a+sF]}};var zse=1000,bD=(e,r)=>tAe(e,(i)=>{let s=r(i);if(s)e.events[fF].push(s)},eAe,(i)=>{let s=e.listen;e.listen=(...c)=>{if(!e.lc&&!e.active)e.active=!0,i();return s(...c)};let l=e.off;return e.events[fF]=[],e.off=()=>{l(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let c of e.events[fF])c();e.events[fF]=[]}},zse)},()=>{e.listen=s,e.off=l}});function n9(e,r){let a=rAe(r),i=e;for(let s of a){if(i==null)return;i=i[s]}return i}var Sse=/(.*)\[(\d+)\]/;function rAe(e){return e.split(".").flatMap((r)=>Lse(r))}function Lse(e){if(Sse.test(e)){let[,r,a]=e.match(Sse);return[...Lse(r),a]}return[e]}function i9(e,r,a){let i=new Set(r);return e.listen((s,l,c)=>{if(c===void 0?r.some((d)=>l===void 0||s[d]!==l[d]||n9(s,d)!==n9(l,d)):i.has(c)||i.has(c.split(/\.|\[/)[0]))a(s,l,c)})}var oAe=()=>typeof window>"u",kse=(e,r,a,i)=>{let s=_D({data:null,error:null,isPending:!0,isRefetching:!1,refetch:(d)=>l(d)}),l=async(d)=>new Promise((h)=>{let g=typeof i==="function"?i({data:s.get().data,error:s.get().error,isPending:s.get().isPending}):i;a(r,{...g,query:{...g?.query,...d?.query},async onSuccess(x){s.set({data:x.data,error:null,isPending:!1,isRefetching:!1,refetch:s.value.refetch}),await g?.onSuccess?.(x)},async onError(x){let{request:v}=x,b=typeof v.retry==="number"?v.retry:v.retry?.attempts,y=v.retryAttempt||0;if(b&&y<b)return;let k=x.error.status===401;s.set({error:x.error,data:k?null:s.get().data,isPending:!1,isRefetching:!1,refetch:s.value.refetch}),await g?.onError?.(x)},async onRequest(x){let v=s.get();s.set({isPending:v.data===null,data:v.data,error:null,isRefetching:!0,refetch:s.value.refetch}),await g?.onRequest?.(x)}}).catch((x)=>{s.set({error:x,data:s.get().data,isPending:!1,isRefetching:!1,refetch:s.value.refetch})}).finally(()=>{h(void 0)})});e=Array.isArray(e)?e:[e];let c=!1;for(let d of e)d.subscribe(async()=>{if(oAe())return;if(c)await l();else bD(s,()=>{let h=setTimeout(async()=>{if(!c)c=!0,await l()},0);return()=>{s.off(),d.off(),clearTimeout(h)}})});return s};var f9=Symbol.for("better-auth:broadcast-channel"),aAe=()=>Math.floor(Date.now()/1000),nAe=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(typeof window>"u")return;try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:aAe()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};let e=(r)=>{if(r.key!==this.name)return;let a=JSON.parse(r.newValue??"{}");if(a?.event!=="session"||!a?.data)return;this.listeners.forEach((i)=>i(a))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function lF(e="better-auth.message"){if(!globalThis[f9])globalThis[f9]=new nAe(e);return globalThis[f9]}var s9=Symbol.for("better-auth:focus-manager"),iAe=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach((r)=>r(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};let e=()=>{if(document.visibilityState==="visible")this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function l9(){if(!globalThis[s9])globalThis[s9]=new iAe;return globalThis[s9]}var c9=Symbol.for("better-auth:online-manager"),fAe=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach((r)=>r(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};let e=()=>this.setOnline(!0),r=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",r,!1)}}};function cF(){if(!globalThis[c9])globalThis[c9]=new fAe;return globalThis[c9]}var cR=()=>Math.floor(Date.now()/1000);function Cse(e){if(typeof e==="object"&&e!==null&&"data"in e&&"error"in e)return e;return{data:e,error:null}}var sAe=5;function Ise(e){let{sessionAtom:r,sessionSignal:a,$fetch:i,options:s={}}=e,l=s.sessionOptions?.refetchInterval??0,c=s.sessionOptions?.refetchOnWindowFocus??!0,d=s.sessionOptions?.refetchWhenOffline??!1,h={lastSync:0,lastSessionRequest:0,cachedSession:void 0},g=()=>d||cF().isOnline,x=(j)=>{if(!g())return;if(j?.event==="storage"){h.lastSync=cR(),a.set(!a.get());return}let G=r.get(),X=()=>{h.lastSessionRequest=cR(),i("/get-session").then(async(J)=>{let{data:ee,error:re}=Cse(J);if(ee?.needsRefresh)try{let fe=await i("/get-session",{method:"POST"});({data:ee,error:re}=Cse(fe))}catch{}let oe=ee?.session&&ee?.user?ee:null;r.set({...G,data:oe,error:re}),h.lastSync=cR(),a.set(!a.get())}).catch(()=>{})};if(j?.event==="poll"){X();return}if(j?.event==="visibilitychange"){if(cR()-h.lastSessionRequest<sAe)return;h.lastSessionRequest=cR()}if(j?.event==="visibilitychange"){X();return}if(G?.data===null||G?.data===void 0)h.lastSync=cR(),a.set(!a.get())},v=(j)=>{lF().post({event:"session",data:{trigger:j},clientId:Math.random().toString(36).substring(7)})},b=()=>{if(l&&l>0)h.pollInterval=setInterval(()=>{if(r.get()?.data)x({event:"poll"})},l*1000)},y=()=>{h.unsubscribeBroadcast=lF().subscribe(()=>{x({event:"storage"})})},k=()=>{if(!c)return;h.unsubscribeFocus=l9().subscribe(()=>{x({event:"visibilitychange"})})},T=()=>{h.unsubscribeOnline=cF().subscribe((j)=>{if(j)x({event:"visibilitychange"})})};return{init:()=>{b(),y(),k(),T(),lF().setup(),l9().setup(),cF().setup()},cleanup:()=>{if(h.pollInterval)clearInterval(h.pollInterval),h.pollInterval=void 0;if(h.unsubscribeBroadcast)h.unsubscribeBroadcast(),h.unsubscribeBroadcast=void 0;if(h.unsubscribeFocus)h.unsubscribeFocus(),h.unsubscribeFocus=void 0;if(h.unsubscribeOnline)h.unsubscribeOnline(),h.unsubscribeOnline=void 0;h.lastSync=0,h.lastSessionRequest=0,h.cachedSession=void 0},triggerRefetch:x,broadcastSessionUpdate:v}}function Rse(e,r){let a=_D(!1),i=kse(a,"/get-session",e,{method:"GET"}),s=()=>{};return bD(i,()=>{let l=Ise({sessionAtom:i,sessionSignal:a,$fetch:e,options:r});return l.init(),s=l.broadcastSessionUpdate,()=>{l.cleanup()}}),{session:i,$sessionSignal:a,broadcastSessionUpdate:(l)=>s(l)}}function u9(e){if(e===null||typeof e!=="object")return!1;let r=Object.getPrototypeOf(e);if(r!==null&&r!==Object.prototype&&Object.getPrototypeOf(r)!==null)return!1;if(Symbol.iterator in e)return!1;if(Symbol.toStringTag in e)return Object.prototype.toString.call(e)==="[object Module]";return!0}function d9(e,r,a=".",i){if(!u9(r))return d9(e,{},a,i);let s={...r};for(let l of Object.keys(e)){if(l==="__proto__"||l==="constructor")continue;let c=e[l];if(c===null||c===void 0)continue;if(i&&i(s,l,c,a))continue;if(Array.isArray(c)&&Array.isArray(s[l]))s[l]=[...c,...s[l]];else if(u9(c)&&u9(s[l]))s[l]=d9(c,s[l],(a?`${a}.`:"")+l.toString(),i);else s[l]=c}return s}function Z9(e){return(...r)=>r.reduce((a,i)=>d9(a,i,"",e),{})}var Pse=Z9(),xra=Z9((e,r,a)=>{if(e[r]!==void 0&&typeof a==="function")return e[r]=a(e[r]),!0}),vra=Z9((e,r,a)=>{if(Array.isArray(e[r])&&typeof a==="function")return e[r]=a(e[r]),!0});var{defineProperty:lAe,defineProperties:cAe,getOwnPropertyDescriptors:uAe,getOwnPropertySymbols:Tse}=Object,dAe=Object.prototype.hasOwnProperty,ZAe=Object.prototype.propertyIsEnumerable,Ase=(e,r,a)=>(r in e)?lAe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,vu=(e,r)=>{for(var a in r||(r={}))if(dAe.call(r,a))Ase(e,a,r[a]);if(Tse){for(var a of Tse(r))if(ZAe.call(r,a))Ase(e,a,r[a])}return e},ZZ=(e,r)=>cAe(e,uAe(r)),pAe=class extends Error{constructor(e,r,a){super(r||e.toString(),{cause:a});this.status=e,this.statusText=r,this.error=a,Error.captureStackTrace(this,this.constructor)}},mAe=async(e,r)=>{var a,i,s,l,c,d;let h=r||{},g={onRequest:[r==null?void 0:r.onRequest],onResponse:[r==null?void 0:r.onResponse],onSuccess:[r==null?void 0:r.onSuccess],onError:[r==null?void 0:r.onError],onRetry:[r==null?void 0:r.onRetry]};if(!r||!(r==null?void 0:r.plugins))return{url:e,options:h,hooks:g};for(let x of(r==null?void 0:r.plugins)||[]){if(x.init){let v=await((a=x.init)==null?void 0:a.call(x,e.toString(),r));h=v.options||h,e=v.url}g.onRequest.push((i=x.hooks)==null?void 0:i.onRequest),g.onResponse.push((s=x.hooks)==null?void 0:s.onResponse),g.onSuccess.push((l=x.hooks)==null?void 0:l.onSuccess),g.onError.push((c=x.hooks)==null?void 0:c.onError),g.onRetry.push((d=x.hooks)==null?void 0:d.onRetry)}return{url:e,options:h,hooks:g}},Ese=class{constructor(e){this.options=e}shouldAttemptRetry(e,r){if(this.options.shouldRetry)return Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(r));return Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},hAe=class{constructor(e){this.options=e}shouldAttemptRetry(e,r){if(this.options.shouldRetry)return Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(r));return Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function gAe(e){if(typeof e==="number")return new Ese({type:"linear",attempts:e,delay:1000});switch(e.type){case"linear":return new Ese(e);case"exponential":return new hAe(e);default:throw Error("Invalid retry strategy")}}var MAe=async(e)=>{let r={},a=async(i)=>typeof i==="function"?await i():i;if(e==null?void 0:e.auth){if(e.auth.type==="Bearer"){let i=await a(e.auth.token);if(!i)return r;r.authorization=`Bearer ${i}`}else if(e.auth.type==="Basic"){let[i,s]=await Promise.all([a(e.auth.username),a(e.auth.password)]);if(!i||!s)return r;r.authorization=`Basic ${btoa(`${i}:${s}`)}`}else if(e.auth.type==="Custom"){let[i,s]=await Promise.all([a(e.auth.prefix),a(e.auth.value)]);if(!s)return r;r.authorization=`${i!=null?i:""} ${s}`}}return r},xAe=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function vAe(e){let r=e.headers.get("content-type"),a=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!r)return"json";let i=r.split(";").shift()||"";if(xAe.test(i))return"json";if(a.has(i)||i.startsWith("text/"))return"text";return"blob"}function yAe(e){try{return JSON.parse(e),!0}catch(r){return!1}}function p9(e){if(e===void 0)return!1;let r=typeof e;if(r==="string"||r==="number"||r==="boolean"||r===null)return!0;if(r!=="object")return!1;if(Array.isArray(e))return!0;if(e.buffer)return!1;return e.constructor&&e.constructor.name==="Object"||typeof e.toJSON==="function"}function Dse(e){try{return JSON.parse(e)}catch(r){return e}}function Ose(e){return typeof e==="function"}function _Ae(e){if(e==null?void 0:e.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&Ose(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&Ose(window.fetch))return window.fetch;throw Error("No fetch implementation found")}async function bAe(e){let r=new Headers(e==null?void 0:e.headers),a=await MAe(e);for(let[i,s]of Object.entries(a||{}))r.set(i,s);if(!r.has("content-type")){let i=wAe(e==null?void 0:e.body);if(i)r.set("content-type",i)}return r}function wAe(e){if(p9(e))return"application/json";return null}function zAe(e){if(!(e==null?void 0:e.body))return null;let r=new Headers(e==null?void 0:e.headers);if(p9(e.body)&&!r.has("content-type")){for(let[a,i]of Object.entries(e==null?void 0:e.body))if(i instanceof Date)e.body[a]=i.toISOString();return JSON.stringify(e.body)}if(r.has("content-type")&&r.get("content-type")==="application/x-www-form-urlencoded"){if(p9(e.body))return new URLSearchParams(e.body).toString();return e.body}return e.body}function SAe(e,r){var a;if(r==null?void 0:r.method)return r.method.toUpperCase();if(e.startsWith("@")){let i=(a=e.split("@")[1])==null?void 0:a.split("/")[0];if(!Nse.includes(i))return(r==null?void 0:r.body)?"POST":"GET";return i.toUpperCase()}return(r==null?void 0:r.body)?"POST":"GET"}function LAe(e,r){let a;if(!(e==null?void 0:e.signal)&&(e==null?void 0:e.timeout))a=setTimeout(()=>r==null?void 0:r.abort(),e==null?void 0:e.timeout);return{abortTimeout:a,clearTimeout:()=>{if(a)clearTimeout(a)}}}var kAe=class e extends Error{constructor(r,a){super(a||JSON.stringify(r,null,2));this.issues=r,Object.setPrototypeOf(this,e.prototype)}};async function uF(e,r){let a=await e["~standard"].validate(r);if(a.issues)throw new kAe(a.issues);return a.value}var Nse=["get","post","put","patch","delete"];var CAe=(e)=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(r,a){var i,s,l,c;let d=((s=(i=e.plugins)==null?void 0:i.find((h)=>{var g;return((g=h.schema)==null?void 0:g.config)?r.startsWith(h.schema.config.baseURL||"")||r.startsWith(h.schema.config.prefix||""):!1}))==null?void 0:s.schema)||e.schema;if(d){let h=r;if((l=d.config)==null?void 0:l.prefix){if(h.startsWith(d.config.prefix)){if(h=h.replace(d.config.prefix,""),d.config.baseURL)r=r.replace(d.config.prefix,d.config.baseURL)}}if((c=d.config)==null?void 0:c.baseURL){if(h.startsWith(d.config.baseURL))h=h.replace(d.config.baseURL,"")}let g=d.schema[h];if(g){let x=ZZ(vu({},a),{method:g.method,output:g.output});if(!(a==null?void 0:a.disableValidation))x=ZZ(vu({},x),{body:g.input?await uF(g.input,a==null?void 0:a.body):a==null?void 0:a.body,params:g.params?await uF(g.params,a==null?void 0:a.params):a==null?void 0:a.params,query:g.query?await uF(g.query,a==null?void 0:a.query):a==null?void 0:a.query});return{url:r,options:x}}}return{url:r,options:a}}}),Fse=(e)=>{async function r(a,i){let s=ZZ(vu(vu({},e),i),{plugins:[...(e==null?void 0:e.plugins)||[],CAe(e||{}),...(i==null?void 0:i.plugins)||[]]});if(e==null?void 0:e.catchAllError)try{return await m9(a,s)}catch(l){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:l}}}return await m9(a,s)}return r};function IAe(e,r){let{baseURL:a,params:i,query:s}=r||{query:{},params:{},baseURL:""},l=e.startsWith("http")?e.split("/").slice(0,3).join("/"):a||"";if(e.startsWith("@")){let v=e.toString().split("@")[1].split("/")[0];if(Nse.includes(v))e=e.replace(`@${v}/`,"/")}if(!l.endsWith("/"))l+="/";let[c,d]=e.replace(l,"").split("?"),h=new URLSearchParams(d);for(let[v,b]of Object.entries(s||{})){if(b==null)continue;let y;if(typeof b==="string")y=b;else if(Array.isArray(b)){for(let k of b)h.append(v,k);continue}else y=JSON.stringify(b);h.set(v,y)}if(i)if(Array.isArray(i)){let v=c.split("/").filter((b)=>b.startsWith(":"));for(let[b,y]of v.entries()){let k=i[b];c=c.replace(y,k)}}else for(let[v,b]of Object.entries(i))c=c.replace(`:${v}`,String(b));if(c=c.split("/").map(encodeURIComponent).join("/"),c.startsWith("/"))c=c.slice(1);let g=h.toString();if(g=g.length>0?`?${g}`.replace(/\+/g,"%20"):"",!l.startsWith("http"))return`${l}${c}${g}`;return new URL(`${c}${g}`,l)}var m9=async(e,r)=>{var a,i,s,l,c,d,h,g;let{hooks:x,url:v,options:b}=await mAe(e,r),y=_Ae(b),k=new AbortController,T=(a=b.signal)!=null?a:k.signal,U=IAe(v,b),N=zAe(b),j=await bAe(b),G=SAe(v,b),X=ZZ(vu({},b),{url:U,headers:j,body:N,method:G,signal:T});for(let Se of x.onRequest)if(Se){let He=await Se(X);if(typeof He==="object"&&He!==null)X=He}if("pipeTo"in X&&typeof X.pipeTo==="function"||typeof((i=r==null?void 0:r.body)==null?void 0:i.pipe)==="function"){if(!("duplex"in X))X.duplex="half"}let{clearTimeout:J}=LAe(b,k),ee=await y(X.url,X);J();let re={response:ee,request:X};for(let Se of x.onResponse)if(Se){let He=await Se(ZZ(vu({},re),{response:((s=r==null?void 0:r.hookOptions)==null?void 0:s.cloneResponse)?ee.clone():ee}));if(He instanceof Response)ee=He;else if(typeof He==="object"&&He!==null)ee=He.response}if(ee.ok){if(X.method==="HEAD")return{data:"",error:null};let He=vAe(ee),ft={data:null,response:ee,request:X};if(He==="json"||He==="text"){let Je=await ee.text(),xt=(l=X.jsonParser)!=null?l:Dse;ft.data=await xt(Je)}else ft.data=await ee[He]();if(X==null?void 0:X.output){if(X.output&&!X.disableValidation)ft.data=await uF(X.output,ft.data)}for(let Je of x.onSuccess)if(Je)await Je(ZZ(vu({},ft),{response:((c=r==null?void 0:r.hookOptions)==null?void 0:c.cloneResponse)?ee.clone():ee}));if(r==null?void 0:r.throw)return ft.data;return{data:ft.data,error:null}}let oe=(d=r==null?void 0:r.jsonParser)!=null?d:Dse,fe=await ee.text(),be=yAe(fe),We=be?await oe(fe):null,Ye={response:ee,responseText:fe,request:X,error:ZZ(vu({},We),{status:ee.status,statusText:ee.statusText})};for(let Se of x.onError)if(Se)await Se(ZZ(vu({},Ye),{response:((h=r==null?void 0:r.hookOptions)==null?void 0:h.cloneResponse)?ee.clone():ee}));if(r==null?void 0:r.retry){let Se=gAe(r.retry),He=(g=r.retryAttempt)!=null?g:0;if(await Se.shouldAttemptRetry(He,ee)){for(let Je of x.onRetry)if(Je)await Je(re);let ft=Se.getDelay(He);return await new Promise((Je)=>setTimeout(Je,ft)),await m9(e,ZZ(vu({},r),{retryAttempt:He+1}))}}if(r==null?void 0:r.throw)throw new pAe(ee.status,ee.statusText,be?We:fe);return{data:null,error:ZZ(vu({},We),{status:ee.status,statusText:ee.statusText})}};var RAe=(e)=>{if(typeof process>"u")return;let r=e??"/api/auth";if(process.env.NEXT_PUBLIC_AUTH_URL)return process.env.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(process.env.NEXTAUTH_URL)try{return process.env.NEXTAUTH_URL}catch{}if(process.env.VERCEL_URL)try{let a=process.env.VERCEL_URL.startsWith("http")?"":"https://";return`${new URL(`${a}${process.env.VERCEL_URL}`).origin}${r}`}catch{}}},jse=(e,r)=>{let a="credentials"in Request.prototype,i=yse(e?.baseURL,e?.basePath,void 0,r)??RAe(e?.basePath)??"/api/auth",s=e?.plugins?.flatMap((J)=>J.fetchPlugins).filter((J)=>J!==void 0)||[],l={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:c,onError:d,onRequest:h,onResponse:g,...x}=e?.fetchOptions||{},v=Fse({baseURL:i,...a?{credentials:"include"}:{},method:"GET",jsonParser(J){if(!J)return null;return bse(J,{strict:!1})},customFetchImpl:fetch,...x,plugins:[l,...x.plugins||[],...e?.disableDefaultFetchPlugins?[]:[wse],...s]}),{$sessionSignal:b,session:y,broadcastSessionUpdate:k}=Rse(v,e),T=e?.plugins||[],U={},N={$sessionSignal:b,session:y},j={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},G=[{signal:"$sessionSignal",matcher(J){return J==="/sign-out"||J==="/update-user"||J==="/update-session"||J==="/sign-up/email"||J==="/sign-in/email"||J==="/delete-user"||J==="/verify-email"||J==="/revoke-sessions"||J==="/revoke-session"||J==="/revoke-other-sessions"||J==="/change-email"||J==="/change-password"},callback(J){if(J==="/sign-out")k("signout");else if(J==="/update-user"||J==="/update-session")k("updateUser")}}];for(let J of T){if(J.getAtoms)Object.assign(N,J.getAtoms?.(v));if(J.pathMethods)Object.assign(j,J.pathMethods);if(J.atomListeners)G.push(...J.atomListeners)}let X={notify:(J)=>{N[J].set(!N[J].get())},listen:(J,ee)=>{N[J].subscribe(ee)},atoms:N};for(let J of T)if(J.getActions)U=Pse(J.getActions?.(v,X,e)??{},U);return{get baseURL(){return i},pluginsActions:U,pluginsAtoms:N,pluginPathMethods:j,atomListeners:G,$fetch:v,$store:X}};function Bse(e){return typeof e==="object"&&e!==null&&"get"in e&&typeof e.get==="function"&&"lc"in e&&typeof e.lc==="number"}function PAe(e,r,a){let i=r[e],{fetchOptions:s,query:l,...c}=a||{};if(i)return i;if(s?.method)return s.method;if(c&&Object.keys(c).length>0)return"POST";return"GET"}function Use(e,r,a,i,s){function l(c=[]){return new Proxy(function(){},{get(d,h){if(typeof h!=="string")return;if(h==="then"||h==="catch"||h==="finally")return;let g=[...c,h],x=e;for(let v of g)if(x&&typeof x==="object"&&v in x)x=x[v];else{x=void 0;break}if(typeof x==="function")return x;if(Bse(x))return x;return l(g)},apply:async(d,h,g)=>{let x="/"+c.map((j)=>j.replace(/[A-Z]/g,(G)=>`-${G.toLowerCase()}`)).join("/"),v=g[0]||{},b=g[1]||{},{query:y,fetchOptions:k,...T}=v,U={...b,...k},N=PAe(x,a,v);return await r(x,{...U,body:N==="GET"?void 0:{...T,...U?.body||{}},query:y||U?.query,method:N,async onSuccess(j){if(await U?.onSuccess?.(j),!s||U.disableSignal)return;let G=s.filter((J)=>J.matcher(x));if(!G.length)return;let X=new Set;for(let J of G){let ee=i[J.signal];if(!ee)return;if(X.has(J.signal))continue;X.add(J.signal);let re=ee.get();setTimeout(()=>{ee.set(!re)},10),J.callback?.(x)}}})}})}return l()}S();function Yse(e,r={}){let a=_(e.get()),{keys:i,deps:s=[e,i]}=r,l=P((d)=>{let h=(g)=>{if(a.current===g)return;a.current=g,d()};if(h(e.value),i?.length)return i9(e,i,h);return e.listen(h)},s),c=()=>a.current;return Xn(l,c,c)}function qse(e){return e.charAt(0).toUpperCase()+e.slice(1)}function TAe(e){return`use${qse(e)}`}function Hse(e){let{pluginPathMethods:r,pluginsActions:a,pluginsAtoms:i,$fetch:s,$store:l,atomListeners:c}=jse(e),d={};for(let[h,g]of Object.entries(i))d[TAe(h)]=()=>Yse(g);return Use({...a,...d,$fetch:s,$store:l},s,r,i,c)}var AAe=Hse({baseURL:window.location.origin}),{signIn:h9,signUp:Vse,useSession:Vra,signOut:Wse,resetPassword:Mm}=AAe;var Gse="0.5.3";var ZF={};var ole=["en","zh"];var v9=["cookie","globalVariable","baseLocale"],Kse=[],y9=[{pattern:":protocol://:domain(.*)::port?/:path(.*)?",localized:[["zh",":protocol://:domain(.*)::port?/zh/:path(.*)?"],["en",":protocol://:domain(.*)::port?/:path(.*)?"]]}];var pF=void 0;var Qz=typeof window>"u",p=void 0;var ale=!0,nle=!1,ile=!0,EAe=!1,_9=!0,fle=!1;globalThis.__paraglide=globalThis.__paraglide??{};globalThis.__paraglide.ssr=globalThis.__paraglide.ssr??{};var mF,Xse=!1,n=()=>{if(p!==void 0)return p;if(pF){let a=pF?.getStore()?.locale;if(a)return a}let e=v9;if(!Qz&&typeof window<"u"&&window.location?.href)e=Zle(window.location.href);let r=DAe(e,typeof window<"u"?window.location?.href:void 0);if(r){if(!Xse)mF=r,Xse=!0,Na(r,{reload:!1});return r}throw Error("No locale found. Read the docs https://paraglidejs.com/errors#no-locale-found")};function DAe(e,r){let a;for(let i of e){if(ale&&i==="cookie")a=BAe();else if(i==="baseLocale")a="en";else if(nle&&i==="url"&&!Qz&&typeof r==="string")a=cle(r);else if(ile&&i==="globalVariable"&&mF!==void 0)a=mF;else if(EAe&&i==="preferredLanguage"&&!Qz)a=UAe();else if(fle&&i==="localStorage"&&!Qz)a=localStorage.getItem("PARAGLIDE_LOCALE")??void 0;else if(ple(i)&&_F.has(i)){let l=_F.get(i);if(l){let c=l.getLocale();if(c instanceof Promise)continue;if(c!==void 0)return lle(c)}}let s=b8(a);if(s)return s}return}var OAe=(e)=>{if(e)window.location.href=e;else window.location.reload()},Na=(e,r)=>{let a={reload:!0,...r};if(p!==void 0&&e!==p&&a.reload===!1)console.warn(`Paraglide: setLocale(${JSON.stringify(e)}, { reload: false }) cannot switch away from the statically built locale ${JSON.stringify(p)}. A document navigation is required; reload has been forced to true.`),a.reload=!0;let i;try{i=n()}catch{}let s=[],l=void 0,c=v9;if(!Qz&&typeof window<"u"&&window.location?.href)c=Zle(window.location.href);for(let h of c)if(ile&&h==="globalVariable")mF=e;else if(ale&&h==="cookie"){if(Qz||typeof document>"u"||typeof window>"u")continue;let g=`PARAGLIDE_LOCALE=${e}; path=/; max-age=34560000`;document.cookie=g,x9()}else if(h==="baseLocale")continue;else if(nle&&h==="url"&&typeof window<"u")l=qAe(window.location.href,{locale:e}).href;else if(fle&&h==="localStorage"&&typeof window<"u")localStorage.setItem("PARAGLIDE_LOCALE",e);else if(ple(h)&&_F.has(h)){let g=_F.get(h);if(g){let x=g.setLocale(e);if(x instanceof Promise)x=x.catch((v)=>{throw Error(`Custom strategy "${h}" setLocale failed.`,{cause:v})}),s.push(x)}}let d=()=>{if(!Qz&&a.reload&&window.location&&e!==i)OAe(l)};if(s.length)return Promise.all(s).then(()=>{d()});d();return};var sle=()=>{if(pF)return pF.getStore()?.origin??"http://fallback.com";else if(typeof window<"u")return window.location.origin;return"http://fallback.com"};function b8(e){if(typeof e!=="string")return;let r=e.toLowerCase();for(let a of ole)if(a.toLowerCase()===r)return a;return}function lle(e){let r=b8(e);if(r)return r;throw Error(`Invalid locale: ${e}. Expected one of: ${ole.join(", ")}`)}function bc(e){return e}function uR(e,r){return e.exec(r.href)}var NAe="PARAGLIDE_LOCALE".replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),FAe=new RegExp(`(?:^|;\\s*)${NAe}=([^;]*)`),b9=Symbol(),wD=b9;function x9(){wD=b9}function jAe(){if(typeof queueMicrotask==="function")queueMicrotask(x9);else Promise.resolve().then(x9)}function BAe(){if(typeof document>"u")return;if(wD!==b9)return wD;let r=document.cookie.match(FAe)?.[1];return wD=b8(r),jAe(),wD}function UAe(){if(!navigator?.languages?.length)return;let e=navigator.languages.map((r)=>({fullTag:r,baseTag:r.split("-")[0]}));for(let r of e){let a=b8(r.fullTag);if(a)return a;let i=b8(r.baseTag);if(i)return i}return}var Qse,Jse;function cle(e){let r=typeof e==="string"?e:e.href;if(Qse===r)return Jse;let a;if(_9){let i=typeof e==="string"?new URL(e,"http://example.com"):new URL(e);a=YAe(bc(i))}else{let i=bc(typeof e==="string"?new URL(e):new URL(e));for(let s of y9){for(let[l,c]of s.localized)if(uR(new ZF(c,i.href),i)){a=l;break}if(a)break}}return Qse=r,Jse=a,a}function YAe(e){let a=new URL(e,"http://example.com").pathname.split("/").filter(Boolean);return b8(a[0])||"en"}function qAe(e,r){let a=r?.locale?lle(r?.locale):n();if(_9)return HAe(e,a);let i=typeof e==="string"?new URL(e):e,s=i;for(let l of y9){let c=XAe(s,a,l);if(c!==void 0)return c;for(let[,h]of l.localized){let g=uR(xF(h,s),s);if(!g)continue;let x=l.localized.find(([b])=>b===a)?.[1];if(!x)continue;let v=gF(x,MF(g),s.origin);return bc(hF(v,g))}let d=uR(xF(l.pattern,s),s);if(d){let h=l.localized.find(([g])=>g===a)?.[1];if(h){let g=gF(h,MF(d),s.origin);return bc(hF(g,d))}}}return i}function HAe(e,r){let a=bc(typeof e==="string"?new URL(e,sle()):new URL(e));if(cle(a)===r)return bc(a);let s=a.pathname.split("/").filter(Boolean);if(s.length>0&&b8(s[0]))s.shift();if(r==="en")a.pathname="/"+s.join("/");else a.pathname="/"+r+"/"+s.join("/");return bc(a)}function VAe(e){if(_9)return WAe(e);let r=typeof e==="string"?new URL(e):e,a=r;for(let i of y9){let s=QAe(a,i);if(s!==void 0)return s;for(let[,c]of i.localized){let d=uR(xF(c,a),a);if(d){let h=MF(d),g=gF(i.pattern,h,a.origin);return bc(hF(g,d))}}let l=uR(xF(i.pattern,a),a);if(l){let c=gF(i.pattern,MF(l),a.origin);return bc(hF(c,l))}}return r}function WAe(e){let r=bc(typeof e==="string"?new URL(e,sle()):new URL(e)),a=r.pathname.split("/").filter(Boolean);if(a.length>0&&b8(a[0]))r.pathname="/"+a.slice(1).join("/");return bc(r)}function hF(e,r){if(r.protocol.groups["0"])e.protocol=r.protocol.groups["0"]??"";if(r.hostname.groups["0"])e.hostname=r.hostname.groups["0"]??"";if(r.username.groups["0"])e.username=r.username.groups["0"]??"";if(r.password.groups["0"])e.password=r.password.groups["0"]??"";if(r.port.groups["0"])e.port=r.port.groups["0"]??"";if(r.pathname.groups["0"])e.pathname=r.pathname.groups["0"]??"";if(r.search.groups["0"])e.search=r.search.groups["0"]??"";if(r.hash.groups["0"])e.hash=r.hash.groups["0"]??"";return e}function gF(e,r,a){let l=e.replace(/(https?:\/\/[^:/]+):(\d+)(\/|$)/g,(c,d,h,g)=>`${d}#PORT-${h}#${g}`).replace(/\{([^{}]*)\}([?+*]?)/g,(c,d,h)=>{if(h==="?")return d;return d}).replace(/(\/?):([a-zA-Z0-9_]+)(\([^)]*\))?([?+*]?)/g,(c,d,h,g,x)=>{let v=r[h];if(v===null)return"";if(x==="?")return v!==void 0?`${d}${v}`:"";if(x==="+"||x==="*"){if(v===void 0&&x==="+")throw Error(`Missing value for "${h}" (one or more required)`);return v?`${d}${v}`:""}if(v===void 0)throw Error(`Missing value for "${h}"`);return`${d}${v}`});return l=l.replace(/#PORT-(\d+)#/g,":$1"),new URL(l,a)}function MF(e){return{...e.hash.groups,...e.hostname.groups,...e.password.groups,...e.pathname.groups,...e.port.groups,...e.protocol.groups,...e.search.groups,...e.username.groups}}var Xz=new Map,GAe=128,KAe=/^(?:[A-Za-z][A-Za-z\d+.-]*|:[A-Za-z][A-Za-z\d_-]*):\/\//;function xF(e,r){let a=KAe.test(e),i=e.startsWith("/");if(!a&&!i)return new ZF(e,r.href);let s=a?e:JSON.stringify([r.origin,e]),l=Xz.get(s);if(l!==void 0)return Xz.delete(s),Xz.set(s,l),l;let c=new ZF(e,r.href);if(Xz.size>=GAe){let d=Xz.keys().next().value;if(d!==void 0)Xz.delete(d)}return Xz.set(s,c),c}var dF=new WeakMap;function XAe(e,r,a){let i=ule(a);if(i===null)return;for(let l of i.localized){let c=vF(l.pattern,e);if(c===void 0)continue;let d=i.localized.find((h)=>h.locale===r)?.pattern;if(d===void 0)continue;return yF(d,c,e)}let s=vF(i.base,e);if(s!==void 0){let l=i.localized.find((c)=>c.locale===r)?.pattern;if(l!==void 0)return yF(l,s,e)}return}function QAe(e,r){let a=ule(r);if(a===null)return;for(let s of a.localized){let l=vF(s.pattern,e);if(l!==void 0)return yF(a.base,l,e)}let i=vF(a.base,e);if(i!==void 0)return yF(a.base,i,e);return}function ule(e){let r=dF.get(e);if(r!==void 0)return r;let a=$se(e.pattern);if(a===void 0)return dF.set(e,null),null;let i=[];for(let[l,c]of e.localized){let d=$se(c);if(d===void 0||d.pathMode!==a.pathMode)return dF.set(e,null),null;i.push({locale:l,pattern:d})}let s={base:a,localized:i};return dF.set(e,s),s}function $se(e){let r=e.match(/\/:path(?:\(\.\*\)(?:\?)?|\*)$/);if(r===null||r.index===void 0)return;let a=e.slice(0,r.index),i=JAe(a);if(i===void 0)return;let s=r[0].endsWith("*")?"segments":r[0].endsWith("?")?"catch-all-optional":"catch-all-required";return{...i,pathMode:s}}function JAe(e){if(e===""||e.startsWith("/")){if(g9(e))return;return{protocol:void 0,hostname:void 0,port:void 0,pathnamePrefix:M9(e),pathMode:"catch-all-optional"}}let r=e.match(/^:protocol:\/\/([^/]+)(\/.*)?$/),a=e.match(/^([A-Za-z][A-Za-z\d+.-]*):\/\/([^/]+)(\/.*)?$/);if(r!==null){let d=(r[1]??"").match(/^([^:(){}?*+]+)(?::(\d+))?$/);if(d===null||r[2]!==void 0&&g9(r[2]))return;return{protocol:void 0,hostname:(d[1]??"").toLowerCase(),port:d[2],pathnamePrefix:M9(r[2]??""),pathMode:"catch-all-optional"}}if(a===null)return;let i=a[2]??"",s=a[3],l=i.match(/^([^:(){}?*+]+)(?::(\d+))?$/);if(l===null||s!==void 0&&g9(s))return;return{protocol:`${a[1]}:`,hostname:(l[1]??"").toLowerCase(),port:$Ae(l[2],`${a[1]}:`),pathnamePrefix:M9(s??""),pathMode:"catch-all-optional"}}function $Ae(e,r){if(e==="80"&&r==="http:")return"";if(e==="443"&&r==="https:")return"";return e}function g9(e){return/[:(){}?*+]/.test(e)}function M9(e){if(e===""||e==="/")return"/";return e.endsWith("/")?e.slice(0,-1):e}function vF(e,r){if(e.protocol!==void 0&&e.protocol!==r.protocol)return;if(e.hostname!==void 0&&e.hostname!==r.hostname.toLowerCase())return;if(e.hostname!==void 0){if((e.port??dle(e.protocol??r.protocol))!==r.port)return}let a=e.pathnamePrefix;if(a==="/"){if(r.pathname.startsWith("//"))return;if(e.pathMode==="segments")return ele(r.pathname)?r.pathname:void 0;return r.pathname}if(r.pathname===a)return e.pathMode==="catch-all-required"?void 0:"";if(r.pathname.startsWith(`${a}/`)){let i=r.pathname.slice(a.length);if(i.startsWith("//"))return;if(e.pathMode==="segments"&&!ele(i))return;return i}return}function ele(e){return e.length>1&&!e.endsWith("/")&&!e.includes("//")}function dle(e){if(e==="http:")return"";if(e==="https:")return"";return""}function yF(e,r,a){let i=new URL(a.href);if(e.protocol!==void 0)i.protocol=e.protocol;if(e.hostname!==void 0)i.hostname=e.hostname,i.port=e.port??dle(i.protocol);return i.pathname=e2e(e.pathnamePrefix,r),i}function e2e(e,r){if(e==="/")return r===""?"/":r;if(r==="")return e;return`${e}${r.startsWith("/")?r:`/${r}`}`}var tle,rle;function t2e(e){if(Kse.length===0)return;let r=typeof e==="string"?e:e.href;if(tle===r)return rle;let a=bc(new URL(r,"http://example.com")),i=VAe(a),s=i.href===a.href?[a]:[a,i],l;for(let c of s){for(let d of Kse){let h=new ZF(d.match,c.href);if(uR(h,c)){l=d;break}}if(l)break}return tle=r,rle=l,l}function Zle(e){let r=t2e(e);if(r&&r.exclude!==!0&&Array.isArray(r.strategy))return r.strategy;return v9}var _F=new Map;function ple(e){return typeof e==="string"&&/^custom-[A-Za-z0-9_-]+$/.test(e)}var r2e=()=>"Access Denied",o2e=()=>"访问被拒绝",qA=(e={},r={})=>{if((p??r.locale??n())==="zh")return o2e(e);return r2e(e)};var a2e=()=>"Action",n2e=()=>"操作",HA=(e={},r={})=>{if((p??r.locale??n())==="zh")return n2e(e);return a2e(e)};var i2e=()=>"Actions",f2e=()=>"操作",$A=(e={},r={})=>{if((p??r.locale??n())==="zh")return f2e(e);return i2e(e)};var s2e=()=>"Active",l2e=()=>"启用",GA=(e={},r={})=>{if((p??r.locale??n())==="zh")return l2e(e);return s2e(e)};var c2e=()=>"active",u2e=()=>"个激活",VA=(e={},r={})=>{if((p??r.locale??n())==="zh")return u2e(e);return c2e(e)};var d2e=()=>"Activity",Z2e=()=>"活动",p2e=(e={},r={})=>{if((p??r.locale??n())==="zh")return Z2e(e);return d2e(e)};var m2e=()=>"Activity Notifications",h2e=()=>"活动通知",QA=(e={},r={})=>{if((p??r.locale??n())==="zh")return h2e(e);return m2e(e)};var g2e=()=>"Receive in-app updates for comments, uploads, and automated background analysis tasks inside this project.",M2e=()=>"接收此项目中评论、上传及自动后台分析任务的应用内通知。",KA=(e={},r={})=>{if((p??r.locale??n())==="zh")return M2e(e);return g2e(e)};var x2e=()=>"Add",v2e=()=>"添加",Ef=(e={},r={})=>{if((p??r.locale??n())==="zh")return v2e(e);return x2e(e)};var y2e=()=>"Add Assets",_2e=()=>"添加资产",mle=(e={},r={})=>{if((p??r.locale??n())==="zh")return _2e(e);return y2e(e)};var b2e=()=>"+ Add condition",w2e=()=>"+ 添加条件",WA=(e={},r={})=>{if((p??r.locale??n())==="zh")return w2e(e);return b2e(e)};var z2e=()=>"Add Domain",S2e=()=>"添加域名",YA=(e={},r={})=>{if((p??r.locale??n())==="zh")return S2e(e);return z2e(e)};var L2e=()=>"Add your first AI provider to get started.",k2e=()=>"添加您的第一个 AI 提供商以开始使用。",JA=(e={},r={})=>{if((p??r.locale??n())==="zh")return k2e(e);return L2e(e)};var C2e=()=>"Add Image Block",I2e=()=>"添加图片块",km=(e={},r={})=>{if((p??r.locale??n())==="zh")return I2e(e);return C2e(e)};var R2e=()=>"Add MCP Server",P2e=()=>"添加 MCP 服务",Cf=(e={},r={})=>{if((p??r.locale??n())==="zh")return P2e(e);return R2e(e)};var T2e=()=>"Add an MCP server to extend your AI agent tools.",A2e=()=>"添加 MCP 服务以扩展 AI Agent 的工具能力。",XA=(e={},r={})=>{if((p??r.locale??n())==="zh")return A2e(e);return T2e(e)};var E2e=()=>"Add Members from Other Projects",D2e=()=>"从其他项目添加成员",e0=(e={},r={})=>{if((p??r.locale??n())==="zh")return D2e(e);return E2e(e)};var O2e=()=>"Project-scoped members who currently do not have access to this project.",N2e=()=>"当前无权访问此项目的项目成员。",t0=(e={},r={})=>{if((p??r.locale??n())==="zh")return N2e(e);return O2e(e)};var F2e=()=>"Add Model",j2e=()=>"添加模型",ld=(e={},r={})=>{if((p??r.locale??n())==="zh")return j2e(e);return F2e(e)};var B2e=()=>"Add New Provider",U2e=()=>"添加新提供商",r0=(e={},r={})=>{if((p??r.locale??n())==="zh")return U2e(e);return B2e(e)};var Y2e=()=>"Add New Skill",q2e=()=>"添加新技能",n0=(e={},r={})=>{if((p??r.locale??n())==="zh")return q2e(e);return Y2e(e)};var H2e=()=>"Add option",V2e=()=>"添加选项",cd=(e={},r={})=>{if((p??r.locale??n())==="zh")return V2e(e);return H2e(e)};var W2e=(e)=>`Add options: ${e?.name}`,G2e=(e)=>`添加选项:${e?.name}`,Rm=(e,r={})=>{if((p??r.locale??n())==="zh")return G2e(e);return W2e(e)};var K2e=()=>"Add Provider",X2e=()=>"添加提供商",Pm=(e={},r={})=>{if((p??r.locale??n())==="zh")return X2e(e);return K2e(e)};var Q2e=()=>"Add Quota",J2e=()=>"添加配额",Nm=(e={},r={})=>{if((p??r.locale??n())==="zh")return J2e(e);return Q2e(e)};var $2e=()=>"Add reaction",eEe=()=>"添加回应",o0=(e={},r={})=>{if((p??r.locale??n())==="zh")return eEe(e);return $2e(e)};var tEe=()=>"Add Skill",rEe=()=>"添加技能",s0=(e={},r={})=>{if((p??r.locale??n())==="zh")return rEe(e);return tEe(e)};var oEe=()=>"Add a skill via GitHub URL or upload a ZIP file to get started.",aEe=()=>"通过 GitHub URL 添加技能或上传 ZIP 文件以开始使用。",i0=(e={},r={})=>{if((p??r.locale??n())==="zh")return aEe(e);return oEe(e)};var nEe=()=>"Customize Team Member Role",iEe=()=>"自定义团队成员在项目的角色",a0=(e={},r={})=>{if((p??r.locale??n())==="zh")return iEe(e);return nEe(e)};var fEe=()=>"Team members already have access to all projects with their default team role. Set a custom role for this specific project here.",sEe=()=>"团队成员默认使用其团队角色访问所有项目。您可以在此为其设置独立的项目角色。",l0=(e={},r={})=>{if((p??r.locale??n())==="zh")return sEe(e);return fEe(e)};var lEe=()=>"Add Text Block",cEe=()=>"添加文本块",If=(e={},r={})=>{if((p??r.locale??n())==="zh")return cEe(e);return lEe(e)};var uEe=()=>"Add to Project",dEe=()=>"添加到项目",c0=(e={},r={})=>{if((p??r.locale??n())==="zh")return dEe(e);return uEe(e)};var ZEe=()=>"Add to Share Links",pEe=()=>"添加到分享链接",Dm=(e={},r={})=>{if((p??r.locale??n())==="zh")return pEe(e);return ZEe(e)};var mEe=()=>"Add Variable",hEe=()=>"添加变量",u0=(e={},r={})=>{if((p??r.locale??n())==="zh")return hEe(e);return mEe(e)};var gEe=(e)=>`Added ${e?.name} successfully`,MEe=(e)=>`已成功添加 ${e?.name}`,Om=(e,r={})=>{if((p??r.locale??n())==="zh")return MEe(e);return gEe(e)};var xEe=()=>"Agent Avatar",vEe=()=>"智能体头像",d0=(e={},r={})=>{if((p??r.locale??n())==="zh")return vEe(e);return xEe(e)};var yEe=()=>"Agent created successfully",_Ee=()=>"智能体创建成功",f0=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Ee(e);return yEe(e)};var bEe=()=>"Agent deleted successfully",wEe=()=>"智能体删除成功",p0=(e={},r={})=>{if((p??r.locale??n())==="zh")return wEe(e);return bEe(e)};var zEe=()=>"Step-by-step execution trace of the agent's background tasks and tool calls.",SEe=()=>"智能体后台任务和工具调用的逐步执行跟踪。",m0=(e={},r={})=>{if((p??r.locale??n())==="zh")return SEe(e);return zEe(e)};var LEe=()=>"This agent is managed by the server environment configuration and cannot be modified or deleted.",kEe=()=>"此智能体由服务器环境配置管理,无法进行修改或删除。",h0=(e={},r={})=>{if((p??r.locale??n())==="zh")return kEe(e);return LEe(e)};var CEe=()=>"Agent Name",IEe=()=>"智能体名称",g0=(e={},r={})=>{if((p??r.locale??n())==="zh")return IEe(e);return CEe(e)};var REe=()=>"e.g., Support Assistant",PEe=()=>"例如:支持助手",A0=(e={},r={})=>{if((p??r.locale??n())==="zh")return PEe(e);return REe(e)};var TEe=()=>"Read-only",AEe=()=>"只读",_0=(e={},r={})=>{if((p??r.locale??n())==="zh")return AEe(e);return TEe(e)};var EEe=()=>"Agent Sandbox",DEe=()=>"智能体沙箱",y0=(e={},r={})=>{if((p??r.locale??n())==="zh")return DEe(e);return EEe(e)};var OEe=()=>"Agent Sandbox Settings",NEe=()=>"智能体沙箱设置",b0=(e={},r={})=>{if((p??r.locale??n())==="zh")return NEe(e);return OEe(e)};var FEe=()=>"Agent Session Logs",jEe=()=>"智能体会话日志",v0=(e={},r={})=>{if((p??r.locale??n())==="zh")return jEe(e);return FEe(e)};var BEe=()=>"Agent Soul (Personality)",UEe=()=>"智能体灵魂(个性)",w0=(e={},r={})=>{if((p??r.locale??n())==="zh")return UEe(e);return BEe(e)};var YEe=()=>"Describe the agent's personality, tone, and behavior...",qEe=()=>"描述智能体的个性、语调和行为...",x0=(e={},r={})=>{if((p??r.locale??n())==="zh")return qEe(e);return YEe(e)};var HEe=()=>"Allows the agent to run terminal/shell commands in a highly isolated environment.",VEe=()=>"允许智能体在高度隔离的环境中运行终端/命令行命令。",S0=(e={},r={})=>{if((p??r.locale??n())==="zh")return VEe(e);return HEe(e)};var WEe=()=>"Sandboxed Terminal",GEe=()=>"沙箱终端",E0=(e={},r={})=>{if((p??r.locale??n())==="zh")return GEe(e);return WEe(e)};var KEe=()=>"Allows the agent to create files in Shumai, either by uploading a local file or by providing the file name and content directly.",XEe=()=>"允许智能体在 Shumai 中创建文件,既可以通过上传本地文件,也可以直接提供文件名和内容。",C0=(e={},r={})=>{if((p??r.locale??n())==="zh")return XEe(e);return KEe(e)};var QEe=()=>"Create File",JEe=()=>"创建文件",Fm=(e={},r={})=>{if((p??r.locale??n())==="zh")return JEe(e);return QEe(e)};var $Ee=()=>"Allows the agent to create new folders in Shumai.",eDe=()=>"允许智能体在 Shumai 中创建新文件夹。",I0=(e={},r={})=>{if((p??r.locale??n())==="zh")return eDe(e);return $Ee(e)};var tDe=()=>"Create Folder",rDe=()=>"创建文件夹",Lm=(e={},r={})=>{if((p??r.locale??n())==="zh")return rDe(e);return tDe(e)};var oDe=()=>"Allows the agent to upload and stack a new version of an existing file in Shumai.",aDe=()=>"允许智能体在 Shumai 中为已有文件上传并叠加新版本。",T0=(e={},r={})=>{if((p??r.locale??n())==="zh")return aDe(e);return oDe(e)};var nDe=()=>"Create Version",iDe=()=>"创建版本",Zm=(e={},r={})=>{if((p??r.locale??n())==="zh")return iDe(e);return nDe(e)};var fDe=()=>"Allows the agent to delete a single file or folder in Shumai.",sDe=()=>"允许智能体在 Shumai 中删除单个文件或文件夹。",M0=(e={},r={})=>{if((p??r.locale??n())==="zh")return sDe(e);return fDe(e)};var lDe=()=>"Delete Asset",cDe=()=>"删除资产",Bm=(e={},r={})=>{if((p??r.locale??n())==="zh")return cDe(e);return lDe(e)};var uDe=()=>"Allows the agent to generate images from prompts and reference images using configured AI image models.",dDe=()=>"允许智能体使用已配置的 AI 图片模型根据提示词和参考图片生成图片。",k0=(e={},r={})=>{if((p??r.locale??n())==="zh")return dDe(e);return uDe(e)};var ZDe=()=>"Generate Image",pDe=()=>"生成图片",Um=(e={},r={})=>{if((p??r.locale??n())==="zh")return pDe(e);return ZDe(e)};var mDe=()=>"Allows the agent to generate videos from text, images, or frame sequences using configured AI video models.",hDe=()=>"允许智能体使用已配置的 AI 视频模型根据提示词、图片或首尾帧生成视频。",R0=(e={},r={})=>{if((p??r.locale??n())==="zh")return hDe(e);return mDe(e)};var gDe=()=>"Generate Video",MDe=()=>"生成视频",zm=(e={},r={})=>{if((p??r.locale??n())==="zh")return MDe(e);return gDe(e)};var xDe=()=>"Allows the agent to list folders and browse files in Shumai.",vDe=()=>"允许智能体列出文件夹并浏览 Shumai 中的文件。",P0=(e={},r={})=>{if((p??r.locale??n())==="zh")return vDe(e);return xDe(e)};var yDe=()=>"Browse Shumai",_De=()=>"浏览 Shumai",jm=(e={},r={})=>{if((p??r.locale??n())==="zh")return _De(e);return yDe(e)};var bDe=()=>"Allows the agent to move one or more assets to another folder in Shumai.",wDe=()=>"允许智能体将一个或多个资产移动到 Shumai 中的其他文件夹。",N0=(e={},r={})=>{if((p??r.locale??n())==="zh")return wDe(e);return bDe(e)};var zDe=()=>"Move Assets",SDe=()=>"移动资产",qm=(e={},r={})=>{if((p??r.locale??n())==="zh")return SDe(e);return zDe(e)};var LDe=()=>"Allows the agent to view and inspect images, video frames, and document pages.",kDe=()=>"允许智能体查看和分析图片、视频画面和文档页面。",D0=(e={},r={})=>{if((p??r.locale??n())==="zh")return kDe(e);return LDe(e)};var CDe=()=>"Read Asset",IDe=()=>"读取资源",Hm=(e={},r={})=>{if((p??r.locale??n())==="zh")return IDe(e);return CDe(e)};var RDe=()=>"Allows the agent to load and read skill definitions to perform specialized actions.",PDe=()=>"允许智能体加载和读取技能定义以执行特定操作。",O0=(e={},r={})=>{if((p??r.locale??n())==="zh")return PDe(e);return RDe(e)};var TDe=()=>"Read Skills",ADe=()=>"读取技能",F0=(e={},r={})=>{if((p??r.locale??n())==="zh")return ADe(e);return TDe(e)};var EDe=()=>"Allows the agent to rename an existing file or folder in Shumai.",DDe=()=>"允许智能体在 Shumai 中重命名现有的文件或文件夹。",L0=(e={},r={})=>{if((p??r.locale??n())==="zh")return DDe(e);return EDe(e)};var ODe=()=>"Rename Asset",NDe=()=>"重命名资产",$m=(e={},r={})=>{if((p??r.locale??n())==="zh")return NDe(e);return ODe(e)};var FDe=()=>"Tools",jDe=()=>"工具",Z0=(e={},r={})=>{if((p??r.locale??n())==="zh")return jDe(e);return FDe(e)};var BDe=()=>"Configure which tools the agent is permitted to use.",UDe=()=>"配置允许智能体使用的工具。",B0=(e={},r={})=>{if((p??r.locale??n())==="zh")return UDe(e);return BDe(e)};var YDe=()=>"Agent Type",qDe=()=>"智能体类型",U0=(e={},r={})=>{if((p??r.locale??n())==="zh")return qDe(e);return YDe(e)};var HDe=()=>"Autofill",VDe=()=>"自动填充",Gm=(e={},r={})=>{if((p??r.locale??n())==="zh")return VDe(e);return HDe(e)};var WDe=()=>"Chat",GDe=()=>"对话",Vm=(e={},r={})=>{if((p??r.locale??n())==="zh")return GDe(e);return WDe(e)};var KDe=()=>"Embedding",XDe=()=>"嵌入",Qm=(e={},r={})=>{if((p??r.locale??n())==="zh")return XDe(e);return KDe(e)};var QDe=()=>"Agent updated successfully",JDe=()=>"智能体更新成功",Km=(e={},r={})=>{if((p??r.locale??n())==="zh")return JDe(e);return QDe(e)};var $De=()=>"Agents",eOe=()=>"智能体",z0=(e={},r={})=>{if((p??r.locale??n())==="zh")return eOe(e);return $De(e)};var tOe=()=>"Manage AI agents and their personalities.",rOe=()=>"管理 AI 智能体及其个性。",j0=(e={},r={})=>{if((p??r.locale??n())==="zh")return rOe(e);return tOe(e)};var oOe=()=>"AGENTS.md",aOe=()=>"AGENTS.md",q0=(e={},r={})=>{if((p??r.locale??n())==="zh")return aOe(e);return oOe(e)};var nOe=()=>"Loading AGENTS.md...",iOe=()=>"正在加载 AGENTS.md...",H0=(e={},r={})=>{if((p??r.locale??n())==="zh")return iOe(e);return nOe(e)};var fOe=()=>`Give AI agents instructions and context for this project or folder.
|
|
63
|
+
|
|
64
|
+
Shumai automatically loads this file, along with AGENTS.md files from parent folders up to the project level, whenever an agent works here.
|
|
65
|
+
|
|
66
|
+
Use it to define things like:
|
|
67
|
+
- What this project or folder contains
|
|
68
|
+
- Rules the agent should follow
|
|
69
|
+
- Terminology, style, or workflow
|
|
70
|
+
- How metadata and autofill should be generated`,sOe=()=>`为在此项目或文件夹中工作的 AI Agent 提供指引和上下文。
|
|
71
|
+
|
|
72
|
+
当 Agent 在此处工作时,Shumai 会自动加载此文件以及向上追溯至项目根目录各级父文件夹中的 AGENTS.md 文件。
|
|
73
|
+
|
|
74
|
+
您可以用它来定义:
|
|
75
|
+
- 此项目或文件夹包含的内容
|
|
76
|
+
- Agent 应当遵守的规则
|
|
77
|
+
- 术语、风格或工作流规范
|
|
78
|
+
- 元数据和自动填充的生成方式`,$0=(e={},r={})=>{if((p??r.locale??n())==="zh")return sOe(e);return fOe(e)};var lOe=()=>"Only team owners can edit this file.",cOe=()=>"只有团队所有者可以修改此文件。",Wm=(e={},r={})=>{if((p??r.locale??n())==="zh")return cOe(e);return lOe(e)};var uOe=()=>"Failed to save",dOe=()=>"保存失败",G0=(e={},r={})=>{if((p??r.locale??n())==="zh")return dOe(e);return uOe(e)};var ZOe=()=>"AI",pOe=()=>"AI",V0=(e={},r={})=>{if((p??r.locale??n())==="zh")return pOe(e);return ZOe(e)};var mOe=()=>"AI Agents",hOe=()=>"AI 智能体",Q0=(e={},r={})=>{if((p??r.locale??n())==="zh")return hOe(e);return mOe(e)};var gOe=()=>"AI Providers",MOe=()=>"AI 提供商",K0=(e={},r={})=>{if((p??r.locale??n())==="zh")return MOe(e);return gOe(e)};var xOe=()=>"AI Token Usage",vOe=()=>"AI Token 用量",W0=(e={},r={})=>{if((p??r.locale??n())==="zh")return vOe(e);return xOe(e)};var yOe=()=>"Monitor AI token consumption and estimated costs for your team and members.",_Oe=()=>"查看并监控团队及成员的 AI Token 消耗与预估费用。",Y0=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Oe(e);return yOe(e)};var bOe=()=>"All",wOe=()=>"全部",zOe=(e={},r={})=>{if((p??r.locale??n())==="zh")return wOe(e);return bOe(e)};var SOe=()=>"All Collections",LOe=()=>"所有媒体合集",J0=(e={},r={})=>{if((p??r.locale??n())==="zh")return LOe(e);return SOe(e)};var kOe=(e)=>`All Collections (${e?.count})`,COe=(e)=>`所有媒体合集 (${e?.count})`,IOe=(e,r={})=>{if((p??r.locale??n())==="zh")return COe(e);return kOe(e)};var ROe=()=>"All comments",POe=()=>"所有评论",Tf=(e={},r={})=>{if((p??r.locale??n())==="zh")return POe(e);return ROe(e)};var TOe=()=>"All",AOe=()=>"全部",X0=(e={},r={})=>{if((p??r.locale??n())==="zh")return AOe(e);return TOe(e)};var EOe=()=>"All Projects",DOe=()=>"所有项目",OOe=(e={},r={})=>{if((p??r.locale??n())==="zh")return DOe(e);return EOe(e)};var NOe=()=>"All Share Links",FOe=()=>"所有分享链接",e_=(e={},r={})=>{if((p??r.locale??n())==="zh")return FOe(e);return NOe(e)};var jOe=(e)=>`All Share Links (${e?.count})`,BOe=(e)=>`所有分享链接 (${e?.count})`,UOe=(e,r={})=>{if((p??r.locale??n())==="zh")return BOe(e);return jOe(e)};var YOe=()=>"All Tasks",qOe=()=>"所有任务",Ym=(e={},r={})=>{if((p??r.locale??n())==="zh")return qOe(e);return YOe(e)};var HOe=()=>"Allow download",VOe=()=>"允许下载",t_=(e={},r={})=>{if((p??r.locale??n())==="zh")return VOe(e);return HOe(e)};var WOe=()=>"Visitors can download files from this share link",GOe=()=>"访客可以从该分享链接下载文件",r_=(e={},r={})=>{if((p??r.locale??n())==="zh")return GOe(e);return WOe(e)};var KOe=()=>"Allowed Domains",XOe=()=>"允许的域名",n_=(e={},r={})=>{if((p??r.locale??n())==="zh")return XOe(e);return KOe(e)};var QOe=()=>"Already have an account? ",JOe=()=>"已有账户?",hle=(e={},r={})=>{if((p??r.locale??n())==="zh")return JOe(e);return QOe(e)};var $Oe=()=>"An unknown error occurred",eNe=()=>"发生了未知错误",ud=(e={},r={})=>{if((p??r.locale??n())==="zh")return eNe(e);return $Oe(e)};var tNe=()=>"API Key",rNe=()=>"API 密钥",dd=(e={},r={})=>{if((p??r.locale??n())==="zh")return rNe(e);return tNe(e)};var oNe=()=>"You can provide a literal value (e.g. sk-...) or an Environment variable name (e.g. MY_API_KEY).",aNe=()=>"您可以提供一个字面值(例如 sk-...)或环境变量名称(例如 MY_API_KEY)。",Jm=(e={},r={})=>{if((p??r.locale??n())==="zh")return aNe(e);return oNe(e)};var nNe=(e)=>`Enter an API key or an environment variable name (e.g. ${e?.envKey}). Leave empty to restore default environment variable.`,iNe=(e)=>`输入 API 密钥或环境变量名(例如 ${e?.envKey})。留空将恢复默认环境变量。`,o_=(e,r={})=>{if((p??r.locale??n())==="zh")return iNe(e);return nNe(e)};var fNe=(e)=>`Leave empty to use default env var (${e?.envKey})`,sNe=(e)=>`留空以使用默认环境变量 (${e?.envKey})`,s_=(e,r={})=>{if((p??r.locale??n())==="zh")return sNe(e);return fNe(e)};var lNe=()=>"Enter API Key or Environment Variable",cNe=()=>"输入 API 密钥或环境变量",Xm=(e={},r={})=>{if((p??r.locale??n())==="zh")return cNe(e);return lNe(e)};var uNe=()=>"API token generated successfully",dNe=()=>"API 令牌生成成功",i_=(e={},r={})=>{if((p??r.locale??n())==="zh")return dNe(e);return uNe(e)};var ZNe=()=>"API token revoked successfully",pNe=()=>"API 令牌已成功撤销",a_=(e={},r={})=>{if((p??r.locale??n())==="zh")return pNe(e);return ZNe(e)};var mNe=()=>"API Tokens",hNe=()=>"API 令牌",eh=(e={},r={})=>{if((p??r.locale??n())==="zh")return hNe(e);return mNe(e)};var gNe=()=>"Generate and manage API tokens. These tokens allow you or your agents to run terminal commands via shumai-cli.",MNe=()=>"生成和管理 API 令牌。这些令牌允许您或您的智能体通过 shumai-cli 运行终端命令。",l_=(e={},r={})=>{if((p??r.locale??n())==="zh")return MNe(e);return gNe(e)};var xNe=()=>"Appearance",vNe=()=>"外观",Mf=(e={},r={})=>{if((p??r.locale??n())==="zh")return vNe(e);return xNe(e)};var yNe=()=>"Appearance",_Ne=()=>"外观",th=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Ne(e);return yNe(e)};var bNe=()=>"Manage visual appearance and interface display settings for your team.",wNe=()=>"管理团队的视觉外观与界面显示设置。",rh=(e={},r={})=>{if((p??r.locale??n())==="zh")return wNe(e);return bNe(e)};var zNe=()=>"Appearance settings updated",SNe=()=>"外观设置已更新",c_=(e={},r={})=>{if((p??r.locale??n())==="zh")return SNe(e);return zNe(e)};var LNe=()=>"Apply and Close",kNe=()=>"应用并关闭",u_=(e={},r={})=>{if((p??r.locale??n())==="zh")return kNe(e);return LNe(e)};var CNe=()=>"Approve",INe=()=>"批准",d_=(e={},r={})=>{if((p??r.locale??n())==="zh")return INe(e);return CNe(e)};var RNe=()=>"Are you absolutely sure?",PNe=()=>"你确定要这样做吗?",fd=(e={},r={})=>{if((p??r.locale??n())==="zh")return PNe(e);return RNe(e)};var TNe=()=>"Are you absolutely sure?",ANe=()=>"确定要执行此操作吗?",f_=(e={},r={})=>{if((p??r.locale??n())==="zh")return ANe(e);return TNe(e)};var ENe=()=>"Ascending",DNe=()=>"升序",kf=(e={},r={})=>{if((p??r.locale??n())==="zh")return DNe(e);return ENe(e)};var ONe=()=>"Asset linked to task",NNe=()=>"资产已关联到任务",gle=(e={},r={})=>{if((p??r.locale??n())==="zh")return NNe(e);return ONe(e)};var FNe=()=>"Asset unlinked from task",jNe=()=>"资产已取消关联",Mle=(e={},r={})=>{if((p??r.locale??n())==="zh")return jNe(e);return FNe(e)};var BNe=()=>"Assets",UNe=()=>"资源",p_=(e={},r={})=>{if((p??r.locale??n())==="zh")return UNe(e);return BNe(e)};var YNe=()=>"Assets added to context:",qNe=()=>"已添加至上下文的资源:",m_=(e={},r={})=>{if((p??r.locale??n())==="zh")return qNe(e);return YNe(e)};var HNe=()=>"Assets & Statuses",VNe=()=>"素材与状态",h_=(e={},r={})=>{if((p??r.locale??n())==="zh")return VNe(e);return HNe(e)};var WNe=()=>"Manage notifications related to file uploads and metadata field status updates.",GNe=()=>"管理与文件上传和元数据字段状态更新相关的通知。",g_=(e={},r={})=>{if((p??r.locale??n())==="zh")return GNe(e);return WNe(e)};var KNe=()=>"Assignee",XNe=()=>"负责人",nh=(e={},r={})=>{if((p??r.locale??n())==="zh")return XNe(e);return KNe(e)};var QNe=()=>"@Mentions",JNe=()=>"@提及",A_=(e={},r={})=>{if((p??r.locale??n())==="zh")return JNe(e);return QNe(e)};var $Ne=()=>"Attach files",e5e=()=>"附加文件",__=(e={},r={})=>{if((p??r.locale??n())==="zh")return e5e(e);return $Ne(e)};var t5e=()=>"Attachments",r5e=()=>"附件",y_=(e={},r={})=>{if((p??r.locale??n())==="zh")return r5e(e);return t5e(e)};var o5e=()=>"Audit Logs",a5e=()=>"审计日志",Rf=(e={},r={})=>{if((p??r.locale??n())==="zh")return a5e(e);return o5e(e)};var n5e=()=>"View and monitor all audit logs of team actions.",i5e=()=>"查看并监控团队操作的所有审计日志。",b_=(e={},r={})=>{if((p??r.locale??n())==="zh")return i5e(e);return n5e(e)};var f5e=()=>"Join our community of developers and designers.",s5e=()=>"加入我们的开发者和设计师社区。",l5e=(e={},r={})=>{if((p??r.locale??n())==="zh")return s5e(e);return f5e(e)};var c5e=()=>"Upload and index your files, enrich them with custom metadata schemas, draw annotations directly on media, and gather instant feedback — all in one modern workspace built for creators.",u5e=()=>"上传您的创意资产,添加各种类型的自定义元数据,直接在图片或视频上绘制标注和添加评论,——这一切都在Shumai,一个为创作者打造的一站式平台上完成。",d5e=(e={},r={})=>{if((p??r.locale??n())==="zh")return u5e(e);return c5e(e)};var Z5e=()=>"Custom metadata schemas & drawing canvas reviews",p5e=()=>"自定义元数据模式 & 画布标注审阅",m5e=(e={},r={})=>{if((p??r.locale??n())==="zh")return p5e(e);return Z5e(e)};var h5e=()=>"Frictionless team workspaces & secure sharing",g5e=()=>"无缝团队工作区 & 安全分享",M5e=(e={},r={})=>{if((p??r.locale??n())==="zh")return g5e(e);return h5e(e)};var x5e=()=>"Instant asset uploads & high-fidelity media players",v5e=()=>"即时资产上传 & 高保真媒体播放器",y5e=(e={},r={})=>{if((p??r.locale??n())==="zh")return v5e(e);return x5e(e)};var _5e=()=>"One workspace for all your creative assets.",b5e=()=>"一站式创意资产管理协作平台。",w5e=(e={},r={})=>{if((p??r.locale??n())==="zh")return b5e(e);return _5e(e)};var z5e=()=>"Autofill Agent",S5e=()=>"自动填充智能体",v_=(e={},r={})=>{if((p??r.locale??n())==="zh")return S5e(e);return z5e(e)};var L5e=()=>"Autofill Source",k5e=()=>"自动填充来源",pd=(e={},r={})=>{if((p??r.locale??n())==="zh")return k5e(e);return L5e(e)};var C5e=()=>"Content",I5e=()=>"文件内容",Bc=(e={},r={})=>{if((p??r.locale??n())==="zh")return I5e(e);return C5e(e)};var R5e=()=>"Fields marked as 'Content' are automatically analyzed and extracted from the asset's visual or textual content after upload. Note: A team owner must first create and enable an Autofill Agent in team settings for content extraction to run.",P5e=()=>"设置为“文件内容”的字段将在文件上传后,由 AI 自动分析并从文件的视觉或文本内容中提取填写。注意:需要团队 Owner 先在设置中创建并启用“Autofill Agent”(自动填充 Agent),上传后才会触发内容提取。",w_=(e={},r={})=>{if((p??r.locale??n())==="zh")return P5e(e);return R5e(e)};var T5e=()=>"Example: Image subject category, visual color palette, document summary, auto-detected language.",A5e=()=>"示例:图片类别、主色调、文档摘要、自动识别语言。",x_=(e={},r={})=>{if((p??r.locale??n())==="zh")return A5e(e);return T5e(e)};var E5e=()=>"Creation Context",D5e=()=>"创建上下文",Uc=(e={},r={})=>{if((p??r.locale??n())==="zh")return D5e(e);return E5e(e)};var O5e=()=>"Fields marked as 'Creation Context' capture details available at creation time (such as generation prompt, model, or provider). If an asset is created by a Shumai AI Agent, the agent will automatically populate these fields upon creation (without needing an Autofill Agent enabled). If uploaded manually by a human user, the user must enter these values manually.",N5e=()=>"设置为“创建上下文”的字段用于记录生成资产时的上下文信息(如 Prompt、模型或供应商)。若文件由 Shumai AI Agent 生成/创建,Agent 会在创建时刻自动填入这些字段(无需启用 Autofill Agent);若由真实用户手动上传,则需用户手动填写,不会自动提取。",S_=(e={},r={})=>{if((p??r.locale??n())==="zh")return N5e(e);return O5e(e)};var F5e=()=>"Example: Generation prompt, AI model name, LLM provider, sampler seed parameters.",j5e=()=>"示例:生成 Prompt、AI 模型名称、LLM 供应商、采样种子参数。",E_=(e={},r={})=>{if((p??r.locale??n())==="zh")return j5e(e);return F5e(e)};var B5e=()=>"Understand how each autofill source option works and when to use it.",U5e=()=>"了解每种自动填充来源的工作方式及适用场景。",C_=(e={},r={})=>{if((p??r.locale??n())==="zh")return U5e(e);return B5e(e)};var Y5e=()=>"Autofill Source Guide",q5e=()=>"自动填充来源说明",Pf=(e={},r={})=>{if((p??r.locale??n())==="zh")return q5e(e);return Y5e(e)};var H5e=()=>"None",V5e=()=>"无",zc=(e={},r={})=>{if((p??r.locale??n())==="zh")return V5e(e);return H5e(e)};var W5e=()=>"Metadata fields marked as 'None' will not be automatically populated by AI. They are meant for manual user entry.",G5e=()=>"设置为“无”的字段不会由 AI 自动填充,需由用户手动填写。",I_=(e={},r={})=>{if((p??r.locale??n())==="zh")return G5e(e);return W5e(e)};var K5e=()=>"Example: Internal tags, manual notes, status tracking flags.",X5e=()=>"示例:内部标签、手动备注、状态标记。",T_=(e={},r={})=>{if((p??r.locale??n())==="zh")return X5e(e);return K5e(e)};var Q5e=()=>"Avatar",J5e=()=>"头像",M_=(e={},r={})=>{if((p??r.locale??n())==="zh")return J5e(e);return Q5e(e)};var $5e=()=>"Avatar removed successfully",e4e=()=>"头像已移除",k_=(e={},r={})=>{if((p??r.locale??n())==="zh")return e4e(e);return $5e(e)};var t4e=()=>"Avatar Source",r4e=()=>"头像来源",R_=(e={},r={})=>{if((p??r.locale??n())==="zh")return r4e(e);return t4e(e)};var o4e=()=>"Avatar updated successfully",a4e=()=>"头像更新成功",P_=(e={},r={})=>{if((p??r.locale??n())==="zh")return a4e(e);return o4e(e)};var n4e=()=>"Back to Chat",i4e=()=>"返回聊天",N_=(e={},r={})=>{if((p??r.locale??n())==="zh")return i4e(e);return n4e(e)};var f4e=()=>"Base URL (Optional)",s4e=()=>"基础 URL(可选)",oh=(e={},r={})=>{if((p??r.locale??n())==="zh")return s4e(e);return f4e(e)};var l4e=()=>"Bash Match Wildcard",c4e=()=>"Bash 命令通配符",D_=(e={},r={})=>{if((p??r.locale??n())==="zh")return c4e(e);return l4e(e)};var u4e=()=>"e.g. * or npm*",d4e=()=>"例如 * 或 npm*",O_=(e={},r={})=>{if((p??r.locale??n())==="zh")return d4e(e);return u4e(e)};var Z4e=()=>"Best match",p4e=()=>"最佳匹配",F_=(e={},r={})=>{if((p??r.locale??n())==="zh")return p4e(e);return Z4e(e)};var m4e=()=>"Generates a single optimal resolution matching the source quality.",h4e=()=>"生成与源质量匹配的单一最优分辨率。",L_=(e={},r={})=>{if((p??r.locale??n())==="zh")return h4e(e);return m4e(e)};var g4e=()=>"Cache Read Cost (1M)",M4e=()=>"缓存读取成本(每百万)",Z_=(e={},r={})=>{if((p??r.locale??n())==="zh")return M4e(e);return g4e(e)};var x4e=()=>"Cache Read Tokens",v4e=()=>"缓存读取 Token",sh=(e={},r={})=>{if((p??r.locale??n())==="zh")return v4e(e);return x4e(e)};var y4e=()=>"Cache Write Cost (1M)",_4e=()=>"缓存写入成本(每百万)",B_=(e={},r={})=>{if((p??r.locale??n())==="zh")return _4e(e);return y4e(e)};var b4e=()=>"Calling Tool:",w4e=()=>"调用工具:",Nf=(e={},r={})=>{if((p??r.locale??n())==="zh")return w4e(e);return b4e(e)};var z4e=()=>"Cancel",S4e=()=>"取消",De=(e={},r={})=>{if((p??r.locale??n())==="zh")return S4e(e);return z4e(e)};var L4e=()=>"Only team owners, task reporters, or assignees can change task status",k4e=()=>"只有负责人、报告人或被指派人可以更改任务状态",U_=(e={},r={})=>{if((p??r.locale??n())==="zh")return k4e(e);return L4e(e)};var C4e=()=>"Change",I4e=()=>"更改",z_=(e={},r={})=>{if((p??r.locale??n())==="zh")return I4e(e);return C4e(e)};var R4e=()=>"Change time format",P4e=()=>"更改时间格式",j_=(e={},r={})=>{if((p??r.locale??n())==="zh")return P4e(e);return R4e(e)};var T4e=()=>"Chat Agents",A4e=()=>"对话智能体",q_=(e={},r={})=>{if((p??r.locale??n())==="zh")return A4e(e);return T4e(e)};var E4e=()=>"Drag and drop files or folders here to add them to chatbot context",D4e=()=>"拖拽文件或文件夹到此处以添加到聊天机器人上下文",ih=(e={},r={})=>{if((p??r.locale??n())==="zh")return D4e(e);return E4e(e)};var O4e=()=>"简体中文 (Chinese)",N4e=()=>"简体中文 (Chinese)",H_=(e={},r={})=>{if((p??r.locale??n())==="zh")return N4e(e);return O4e(e)};var F4e=()=>"Clear Custom Key",j4e=()=>"清除自定义密钥",$_=(e={},r={})=>{if((p??r.locale??n())==="zh")return j4e(e);return F4e(e)};var B4e=()=>"Clear",U4e=()=>"清除",G_=(e={},r={})=>{if((p??r.locale??n())==="zh")return U4e(e);return B4e(e)};var Y4e=()=>"Clear search",q4e=()=>"清除搜索",V_=(e={},r={})=>{if((p??r.locale??n())==="zh")return q4e(e);return Y4e(e)};var H4e=()=>"Click to copy link",V4e=()=>"点击复制链接",Q_=(e={},r={})=>{if((p??r.locale??n())==="zh")return V4e(e);return H4e(e)};var W4e=()=>"Close",G4e=()=>"关闭",Da=(e={},r={})=>{if((p??r.locale??n())==="zh")return G4e(e);return W4e(e)};var K4e=()=>"collection",X4e=()=>"媒体合集",Q4e=(e={},r={})=>{if((p??r.locale??n())==="zh")return X4e(e);return K4e(e)};var J4e=()=>"Collection created",$4e=()=>"媒体合集已创建",eFe=(e={},r={})=>{if((p??r.locale??n())==="zh")return $4e(e);return J4e(e)};var tFe=()=>"Collection deleted",rFe=()=>"媒体合集已删除",oFe=(e={},r={})=>{if((p??r.locale??n())==="zh")return rFe(e);return tFe(e)};var aFe=()=>"Collection Name",nFe=()=>"媒体合集名称",K_=(e={},r={})=>{if((p??r.locale??n())==="zh")return nFe(e);return aFe(e)};var iFe=()=>"Collection renamed",fFe=()=>"媒体合集已重命名",sFe=(e={},r={})=>{if((p??r.locale??n())==="zh")return fFe(e);return iFe(e)};var lFe=()=>"Collection saved",cFe=()=>"媒体合集已保存",W_=(e={},r={})=>{if((p??r.locale??n())==="zh")return cFe(e);return lFe(e)};var uFe=()=>"Collections",dFe=()=>"媒体合集",ZFe=(e={},r={})=>{if((p??r.locale??n())==="zh")return dFe(e);return uFe(e)};var pFe=()=>"Color",mFe=()=>"颜色",Y_=(e={},r={})=>{if((p??r.locale??n())==="zh")return mFe(e);return pFe(e)};var hFe=()=>"Write a comment...",gFe=()=>"写下评论...",MFe=(e={},r={})=>{if((p??r.locale??n())==="zh")return gFe(e);return hFe(e)};var xFe=()=>"Comment Replies",vFe=()=>"评论回复",J_=(e={},r={})=>{if((p??r.locale??n())==="zh")return vFe(e);return xFe(e)};var yFe=()=>"Comments",_Fe=()=>"评论",md=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Fe(e);return yFe(e)};var bFe=()=>"Comments & Replies",wFe=()=>"评论与回复",X_=(e={},r={})=>{if((p??r.locale??n())==="zh")return wFe(e);return bFe(e)};var zFe=()=>"Control notification preferences when other users comment on assets you collaborate on or mention you.",SFe=()=>"控制其他用户对您协作的素材评论或提及您时的通知偏好。",ey=(e={},r={})=>{if((p??r.locale??n())==="zh")return SFe(e);return zFe(e)};var LFe=()=>"Compare Versions",kFe=()=>"对比版本",CFe=(e={},r={})=>{if((p??r.locale??n())==="zh")return kFe(e);return LFe(e)};var IFe=()=>"Configure your AI agent's personality and capabilities.",RFe=()=>"配置 AI 智能体的个性和功能。",ty=(e={},r={})=>{if((p??r.locale??n())==="zh")return RFe(e);return IFe(e)};var PFe=()=>"Configure your new project workspace and appearance.",TFe=()=>"配置您的新项目工作区和外观。",ry=(e={},r={})=>{if((p??r.locale??n())==="zh")return TFe(e);return PFe(e)};var AFe=()=>"Configure authentication and model details for your AI provider.",EFe=()=>"配置 AI 提供商的身份验证和模型详情。",ah=(e={},r={})=>{if((p??r.locale??n())==="zh")return EFe(e);return AFe(e)};var DFe=(e)=>`Configure Skill: ${e?.name}`,OFe=(e)=>`配置技能:${e?.name}`,ny=(e,r={})=>{if((p??r.locale??n())==="zh")return OFe(e);return DFe(e)};var NFe=()=>"Configured AI Providers",FFe=()=>"已配置的 AI 提供商",oy=(e={},r={})=>{if((p??r.locale??n())==="zh")return FFe(e);return NFe(e)};var jFe=()=>"Confirm",BFe=()=>"确认",na=(e={},r={})=>{if((p??r.locale??n())==="zh")return BFe(e);return jFe(e)};var UFe=()=>"Are you sure you want to delete this field?",YFe=()=>"确定要删除此字段吗?",sy=(e={},r={})=>{if((p??r.locale??n())==="zh")return YFe(e);return UFe(e)};var qFe=()=>"Confirm Download",HFe=()=>"确认下载",lh=(e={},r={})=>{if((p??r.locale??n())==="zh")return HFe(e);return qFe(e)};var VFe=()=>"Confirm Password",WFe=()=>"确认密码",iy=(e={},r={})=>{if((p??r.locale??n())==="zh")return WFe(e);return VFe(e)};var GFe=()=>"Confirm new password",KFe=()=>"确认新密码",ay=(e={},r={})=>{if((p??r.locale??n())==="zh")return KFe(e);return GFe(e)};var XFe=()=>"Contains drawing annotations",QFe=()=>"包含标注绘图",ly=(e={},r={})=>{if((p??r.locale??n())==="zh")return QFe(e);return XFe(e)};var JFe=()=>"Context Window (tokens)",$Fe=()=>"上下文窗口(令牌数)",cy=(e={},r={})=>{if((p??r.locale??n())==="zh")return $Fe(e);return JFe(e)};var e3e=()=>"Copied!",t3e=()=>"已复制!",uy=(e={},r={})=>{if((p??r.locale??n())==="zh")return t3e(e);return e3e(e)};var r3e=()=>"Copied API token to clipboard",o3e=()=>"已将 API 令牌复制到剪贴板",dy=(e={},r={})=>{if((p??r.locale??n())==="zh")return o3e(e);return r3e(e)};var a3e=()=>"Copied name and download link to clipboard",n3e=()=>"已复制名称和下载链接到剪贴板",fy=(e={},r={})=>{if((p??r.locale??n())==="zh")return n3e(e);return a3e(e)};var i3e=()=>"Copied to clipboard",f3e=()=>"已复制到剪贴板",py=(e={},r={})=>{if((p??r.locale??n())==="zh")return f3e(e);return i3e(e)};var s3e=()=>"Copy",l3e=()=>"复制",my=(e={},r={})=>{if((p??r.locale??n())==="zh")return l3e(e);return s3e(e)};var c3e=()=>"Copy optimized image to clipboard",u3e=()=>"复制优化图片到剪贴板",hy=(e={},r={})=>{if((p??r.locale??n())==="zh")return u3e(e);return c3e(e)};var d3e=()=>"Copy Link",Z3e=()=>"复制链接",gy=(e={},r={})=>{if((p??r.locale??n())==="zh")return Z3e(e);return d3e(e)};var p3e=()=>"Copy name and download link",m3e=()=>"复制名称和下载链接",Df=(e={},r={})=>{if((p??r.locale??n())==="zh")return m3e(e);return p3e(e)};var h3e=()=>"Copy to",g3e=()=>"复制到",ch=(e={},r={})=>{if((p??r.locale??n())==="zh")return g3e(e);return h3e(e)};var M3e=()=>"Cost",x3e=()=>"费用",uh=(e={},r={})=>{if((p??r.locale??n())==="zh")return x3e(e);return M3e(e)};var v3e=(e)=>`$${e?.input}/1M in · $${e?.output}/1M out`,y3e=(e)=>`$${e?.input}/1M 输入 · $${e?.output}/1M 输出`,dh=(e,r={})=>{if((p??r.locale??n())==="zh")return y3e(e);return v3e(e)};var _3e=()=>"10000+ Assets",b3e=()=>"10000+ 资源",Ay=(e={},r={})=>{if((p??r.locale??n())==="zh")return b3e(e);return _3e(e)};var w3e=()=>"10000+ Folders",z3e=()=>"10000+ 文件夹",_y=(e={},r={})=>{if((p??r.locale??n())==="zh")return z3e(e);return w3e(e)};var S3e=()=>"Cover Preview",L3e=()=>"封面预览",yy=(e={},r={})=>{if((p??r.locale??n())==="zh")return L3e(e);return S3e(e)};var k3e=()=>"Create",C3e=()=>"创建",jc=(e={},r={})=>{if((p??r.locale??n())==="zh")return C3e(e);return k3e(e)};var I3e=()=>"Create Account",R3e=()=>"创建账户",P3e=(e={},r={})=>{if((p??r.locale??n())==="zh")return R3e(e);return I3e(e)};var T3e=()=>"Create Agent",A3e=()=>"创建智能体",by=(e={},r={})=>{if((p??r.locale??n())==="zh")return A3e(e);return T3e(e)};var E3e=()=>"Create your first goal to organize related tasks.",D3e=()=>"创建第一个目标来组织相关任务。",vy=(e={},r={})=>{if((p??r.locale??n())==="zh")return D3e(e);return E3e(e)};var O3e=()=>"Create Goal",N3e=()=>"创建目标",wy=(e={},r={})=>{if((p??r.locale??n())==="zh")return N3e(e);return O3e(e)};var F3e=()=>"Create New Project",j3e=()=>"创建新项目",xy=(e={},r={})=>{if((p??r.locale??n())==="zh")return j3e(e);return F3e(e)};var B3e=()=>"Create New Template",U3e=()=>"创建新模板",fh=(e={},r={})=>{if((p??r.locale??n())==="zh")return U3e(e);return B3e(e)};var Y3e=()=>"Create new version",q3e=()=>"创建新版本",Sy=(e={},r={})=>{if((p??r.locale??n())==="zh")return q3e(e);return Y3e(e)};var H3e=()=>"Create one now",V3e=()=>"立即创建",Ey=(e={},r={})=>{if((p??r.locale??n())==="zh")return V3e(e);return H3e(e)};var W3e=()=>"Create Project",G3e=()=>"创建项目",Of=(e={},r={})=>{if((p??r.locale??n())==="zh")return G3e(e);return W3e(e)};var K3e=()=>"Create Quota Rule",X3e=()=>"创建配额规则",Cy=(e={},r={})=>{if((p??r.locale??n())==="zh")return X3e(e);return K3e(e)};var Q3e=()=>"Set up a new resource quota to prevent unexpected usage.",J3e=()=>"设置新的资源配额以防止意外的超量使用。",Iy=(e={},r={})=>{if((p??r.locale??n())==="zh")return J3e(e);return Q3e(e)};var $3e=()=>"Create Share Link",eje=()=>"创建分享链接",ph=(e={},r={})=>{if((p??r.locale??n())==="zh")return eje(e);return $3e(e)};var tje=()=>"Create Task",rje=()=>"创建任务",Ff=(e={},r={})=>{if((p??r.locale??n())==="zh")return rje(e);return tje(e)};var oje=()=>"Create Time",aje=()=>"创建时间",Ty=(e={},r={})=>{if((p??r.locale??n())==="zh")return aje(e);return oje(e)};var nje=(e)=>`Create ${e?.type} Agent`,ije=(e)=>`创建${e?.type}智能体`,My=(e,r={})=>{if((p??r.locale??n())==="zh")return ije(e);return nje(e)};var fje=()=>"Created At",sje=()=>"创建时间",ky=(e={},r={})=>{if((p??r.locale??n())==="zh")return sje(e);return fje(e)};var lje=()=>"Created by Agent",cje=()=>"由智能体创建",Ry=(e={},r={})=>{if((p??r.locale??n())==="zh")return cje(e);return lje(e)};var uje=(e)=>`${e?.time} by ${e?.author}`,dje=(e)=>`${e?.time} 由 ${e?.author} 创建`,Py=(e,r={})=>{if((p??r.locale??n())==="zh")return dje(e);return uje(e)};var Zje=()=>"Created Date",pje=()=>"创建日期",Lf=(e={},r={})=>{if((p??r.locale??n())==="zh")return pje(e);return Zje(e)};var mje=()=>"Creating account...",hje=()=>"创建账户中...",gje=(e={},r={})=>{if((p??r.locale??n())==="zh")return hje(e);return mje(e)};var Mje=()=>"Creator",xje=()=>"创建者",qc=(e={},r={})=>{if((p??r.locale??n())==="zh")return xje(e);return Mje(e)};var vje=()=>"Current Custom Avatar",yje=()=>"当前自定义头像",Ny=(e={},r={})=>{if((p??r.locale??n())==="zh")return yje(e);return vje(e)};var _je=()=>"Current Project",bje=()=>"当前项目",wje=(e={},r={})=>{if((p??r.locale??n())==="zh")return bje(e);return _je(e)};var zje=()=>"Custom Fields",Sje=()=>"自定义字段",Dy=(e={},r={})=>{if((p??r.locale??n())==="zh")return Sje(e);return zje(e)};var Lje=()=>"Custom Model...",kje=()=>"自定义模型...",Oy=(e={},r={})=>{if((p??r.locale??n())==="zh")return kje(e);return Lje(e)};var Cje=()=>"Dark",Ije=()=>"深色",Rje=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ije(e);return Cje(e)};var Pje=()=>"Dashboard",Tje=()=>"仪表板",mh=(e={},r={})=>{if((p??r.locale??n())==="zh")return Tje(e);return Pje(e)};var Aje=()=>"MMMM d, yyyy",Eje=()=>"yyyy年M月d日",Dje=(e={},r={})=>{if((p??r.locale??n())==="zh")return Eje(e);return Aje(e)};var Oje=()=>"One month ago",Nje=()=>"一个月前",Fy=(e={},r={})=>{if((p??r.locale??n())==="zh")return Nje(e);return Oje(e)};var Fje=()=>"One month from now",jje=()=>"一个月后",Ly=(e={},r={})=>{if((p??r.locale??n())==="zh")return jje(e);return Fje(e)};var Bje=()=>"One week ago",Uje=()=>"一周前",Zy=(e={},r={})=>{if((p??r.locale??n())==="zh")return Uje(e);return Bje(e)};var Yje=()=>"One week from now",qje=()=>"一周后",By=(e={},r={})=>{if((p??r.locale??n())==="zh")return qje(e);return Yje(e)};var Hje=()=>"Today",Vje=()=>"今天",Uy=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vje(e);return Hje(e)};var Wje=()=>"Tomorrow",Gje=()=>"明天",zy=(e={},r={})=>{if((p??r.locale??n())==="zh")return Gje(e);return Wje(e)};var Kje=()=>"Date type",Xje=()=>"日期类型",jy=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xje(e);return Kje(e)};var Qje=()=>"Yesterday",Jje=()=>"昨天",qy=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jje(e);return Qje(e)};var $je=(e)=>`${e?.count}d`,eBe=(e)=>`${e?.count}天`,hh=(e,r={})=>{if((p??r.locale??n())==="zh")return eBe(e);return $je(e)};var tBe=(e)=>`Default: ${e?.envKey}`,rBe=(e)=>`默认:${e?.envKey}`,Hy=(e,r={})=>{if((p??r.locale??n())==="zh")return rBe(e);return tBe(e)};var oBe=()=>"Default Value",aBe=()=>"默认值",$y=(e={},r={})=>{if((p??r.locale??n())==="zh")return aBe(e);return oBe(e)};var nBe=()=>"Delete",iBe=()=>"删除",ct=(e={},r={})=>{if((p??r.locale??n())==="zh")return iBe(e);return nBe(e)};var fBe=()=>"Delete Agent",sBe=()=>"删除智能体",Gy=(e={},r={})=>{if((p??r.locale??n())==="zh")return sBe(e);return fBe(e)};var lBe=(e)=>`This action cannot be undone. This will permanently delete the agent "${e?.name}" and remove all its data from our servers.`,cBe=(e)=>`此操作无法撤销。这将永久删除智能体 "${e?.name}" 并从服务器上删除其所有数据。`,Vy=(e,r={})=>{if((p??r.locale??n())==="zh")return cBe(e);return lBe(e)};var uBe=()=>"Deleted items can be recovered for 30 days before being permanently deleted.",dBe=()=>"已删除的项目可在 30 天内恢复,之后将被永久删除。",Hc=(e={},r={})=>{if((p??r.locale??n())==="zh")return dBe(e);return uBe(e)};var ZBe=()=>"Delete Asset?",pBe=()=>"删除资源?",$c=(e={},r={})=>{if((p??r.locale??n())==="zh")return pBe(e);return ZBe(e)};var mBe=()=>"Delete Collection?",hBe=()=>"删除媒体合集?",gBe=(e={},r={})=>{if((p??r.locale??n())==="zh")return hBe(e);return mBe(e)};var MBe=()=>"Delete Comment?",xBe=()=>"删除评论?",gh=(e={},r={})=>{if((p??r.locale??n())==="zh")return xBe(e);return MBe(e)};var vBe=()=>"Are you sure you want to delete this comment? This action cannot be undone.",yBe=()=>"您确定要删除这条评论吗?此操作将无法撤回。",Ah=(e={},r={})=>{if((p??r.locale??n())==="zh")return yBe(e);return vBe(e)};var _Be=(e)=>`Are you sure you want to delete this ${e?.type}? This action cannot be undone.`,bBe=(e)=>`确定要删除此${e?.type}吗?此操作无法撤销。`,wBe=(e,r={})=>{if((p??r.locale??n())==="zh")return bBe(e);return _Be(e)};var zBe=()=>"Delete field",SBe=()=>"删除字段",Qy=(e={},r={})=>{if((p??r.locale??n())==="zh")return SBe(e);return zBe(e)};var LBe=()=>"Delete Folder?",kBe=()=>"删除文件夹?",CBe=(e={},r={})=>{if((p??r.locale??n())==="zh")return kBe(e);return LBe(e)};var IBe=()=>"Delete Goal",RBe=()=>"删除目标",Ky=(e={},r={})=>{if((p??r.locale??n())==="zh")return RBe(e);return IBe(e)};var PBe=(e)=>`Are you sure you want to delete goal "${e?.title}"? Associated tasks will remain but will no longer be linked to this goal.`,TBe=(e)=>`确定要删除目标"${e?.title}"吗?关联的任务仍将保留,但不再关联此目标。`,Wy=(e,r={})=>{if((p??r.locale??n())==="zh")return TBe(e);return PBe(e)};var ABe=()=>"Delete MCP Server",EBe=()=>"删除 MCP 服务",Yy=(e={},r={})=>{if((p??r.locale??n())==="zh")return EBe(e);return ABe(e)};var DBe=(e)=>`This action cannot be undone. This will permanently delete the MCP server "${e?.name}".`,OBe=(e)=>`此操作无法撤销。这将永久删除 MCP 服务 "${e?.name}"。`,Jy=(e,r={})=>{if((p??r.locale??n())==="zh")return OBe(e);return DBe(e)};var NBe=(e)=>`This action cannot be undone. This will permanently delete the model "${e?.name}".`,FBe=(e)=>`此操作无法撤销。这将永久删除模型 "${e?.name}"。`,Xy=(e,r={})=>{if((p??r.locale??n())==="zh")return FBe(e);return NBe(e)};var jBe=()=>"delete",BBe=()=>"delete",eb=(e={},r={})=>{if((p??r.locale??n())==="zh")return BBe(e);return jBe(e)};var UBe=(e)=>`This action cannot be undone. This will permanently delete the project "${e?.name}" and all its assets.`,YBe=(e)=>`此操作无法撤销。这将永久删除项目 "${e?.name}" 及其所有资产。`,tb=(e,r={})=>{if((p??r.locale??n())==="zh")return YBe(e);return UBe(e)};var qBe=(e)=>`This action cannot be undone. This will permanently delete the provider "${e?.name}" and all associated model configurations.`,HBe=(e)=>`此操作无法撤销。这将永久删除提供商 "${e?.name}" 及所有关联的模型配置。`,rb=(e,r={})=>{if((p??r.locale??n())==="zh")return HBe(e);return qBe(e)};var VBe=()=>"Delete Quota",WBe=()=>"删除配额",Zf=(e={},r={})=>{if((p??r.locale??n())==="zh")return WBe(e);return VBe(e)};var GBe=()=>"Are you sure you want to delete this quota rule? This action cannot be undone.",KBe=()=>"确定要删除此配额规则吗?此操作无法撤销。",_h=(e={},r={})=>{if((p??r.locale??n())==="zh")return KBe(e);return GBe(e)};var XBe=()=>"Delete Session",QBe=()=>"删除会话",nb=(e={},r={})=>{if((p??r.locale??n())==="zh")return QBe(e);return XBe(e)};var JBe=()=>"Are you sure you want to delete this chat session?",$Be=()=>"您确定要删除此会话记录吗?",ob=(e={},r={})=>{if((p??r.locale??n())==="zh")return $Be(e);return JBe(e)};var e6e=()=>"Delete Share Link?",t6e=()=>"删除分享链接?",r6e=(e={},r={})=>{if((p??r.locale??n())==="zh")return t6e(e);return e6e(e)};var o6e=(e)=>`This action cannot be undone. This will permanently delete the skill "${e?.name}" and all its configurations.`,a6e=(e)=>`此操作无法撤销。这将永久删除技能 "${e?.name}" 及其所有配置。`,sb=(e,r={})=>{if((p??r.locale??n())==="zh")return a6e(e);return o6e(e)};var n6e=()=>"Delete Task",i6e=()=>"删除任务",ib=(e={},r={})=>{if((p??r.locale??n())==="zh")return i6e(e);return n6e(e)};var f6e=(e)=>`Are you sure you want to delete task "${e?.title}"? This action cannot be undone.`,s6e=(e)=>`确定要删除任务"${e?.title}"吗?此操作无法撤销。`,ab=(e,r={})=>{if((p??r.locale??n())==="zh")return s6e(e);return f6e(e)};var l6e=()=>"Deleted",c6e=()=>"已删除",lb=(e={},r={})=>{if((p??r.locale??n())==="zh")return c6e(e);return l6e(e)};var u6e=()=>"Deleting...",d6e=()=>"删除中...",cb=(e={},r={})=>{if((p??r.locale??n())==="zh")return d6e(e);return u6e(e)};var Z6e=()=>"Demo Access:",p6e=()=>"演示访问:",m6e=(e={},r={})=>{if((p??r.locale??n())==="zh")return p6e(e);return Z6e(e)};var h6e=()=>'This demo account is a read-only "Reviewer" role user.',g6e=()=>'该演示账户为只读 "Reviewer" 角色用户。',M6e=(e={},r={})=>{if((p??r.locale??n())==="zh")return g6e(e);return h6e(e)};var x6e=()=>"Descending",v6e=()=>"降序",Bf=(e={},r={})=>{if((p??r.locale??n())==="zh")return v6e(e);return x6e(e)};var y6e=()=>"Description",_6e=()=>"描述",Sl=(e={},r={})=>{if((p??r.locale??n())==="zh")return _6e(e);return y6e(e)};var b6e=()=>"Optional, used for AI autofill",w6e=()=>"可选,用于 AI 自动填充",hd=(e={},r={})=>{if((p??r.locale??n())==="zh")return w6e(e);return b6e(e)};var z6e=()=>"Generate and manage API keys for developers and automated workflows.",S6e=()=>"为开发者和自动化工作流生成和管理 API 密钥。",ub=(e={},r={})=>{if((p??r.locale??n())==="zh")return S6e(e);return z6e(e)};var L6e=()=>"Developer Settings",k6e=()=>"开发者设置",db=(e={},r={})=>{if((p??r.locale??n())==="zh")return k6e(e);return L6e(e)};var C6e=()=>"Disable Timestamp",I6e=()=>"禁用时间戳",fb=(e={},r={})=>{if((p??r.locale??n())==="zh")return I6e(e);return C6e(e)};var R6e=()=>"Disabled",P6e=()=>"已禁用",Uf=(e={},r={})=>{if((p??r.locale??n())==="zh")return P6e(e);return R6e(e)};var T6e=()=>"Display Name (Optional)",A6e=()=>"显示名称(可选)",pb=(e={},r={})=>{if((p??r.locale??n())==="zh")return A6e(e);return T6e(e)};var E6e=()=>"Domain already exists",D6e=()=>"域名已存在",mb=(e={},r={})=>{if((p??r.locale??n())==="zh")return D6e(e);return E6e(e)};var O6e=()=>"Done",N6e=()=>"完成",F6e=(e={},r={})=>{if((p??r.locale??n())==="zh")return N6e(e);return O6e(e)};var j6e=()=>"Download",B6e=()=>"下载",gr=(e={},r={})=>{if((p??r.locale??n())==="zh")return B6e(e);return j6e(e)};var U6e=(e)=>`This download will include ${e?.count} file(s).`,Y6e=(e)=>`此下载将包含 ${e?.count} 个文件。`,yh=(e,r={})=>{if((p??r.locale??n())==="zh")return Y6e(e);return U6e(e)};var q6e=()=>"Download original file",H6e=()=>"下载原始文件",hb=(e={},r={})=>{if((p??r.locale??n())==="zh")return H6e(e);return q6e(e)};var V6e=()=>"Download original image",W6e=()=>"下载原始图片",gb=(e={},r={})=>{if((p??r.locale??n())==="zh")return W6e(e);return V6e(e)};var G6e=()=>"Due Date",K6e=()=>"截止日期",gd=(e={},r={})=>{if((p??r.locale??n())==="zh")return K6e(e);return G6e(e)};var X6e=()=>"Edit",Q6e=()=>"编辑",Ab=(e={},r={})=>{if((p??r.locale??n())==="zh")return Q6e(e);return X6e(e)};var J6e=()=>"Edit Goal",$6e=()=>"编辑目标",bh=(e={},r={})=>{if((p??r.locale??n())==="zh")return $6e(e);return J6e(e)};var eUe=(e)=>`Edit ${e?.name}`,tUe=(e)=>`编辑 ${e?.name}`,vh=(e,r={})=>{if((p??r.locale??n())==="zh")return tUe(e);return eUe(e)};var rUe=()=>"Edit MCP Server",oUe=()=>"编辑 MCP 服务",_b=(e={},r={})=>{if((p??r.locale??n())==="zh")return oUe(e);return rUe(e)};var aUe=()=>"Edit Model",nUe=()=>"编辑模型",wh=(e={},r={})=>{if((p??r.locale??n())==="zh")return nUe(e);return aUe(e)};var iUe=()=>"Edit Quota Rule",fUe=()=>"编辑配额规则",yb=(e={},r={})=>{if((p??r.locale??n())==="zh")return fUe(e);return iUe(e)};var sUe=()=>"Configure resource limits, target scopes, and evaluation periods.",lUe=()=>"配置资源上限、目标范围以及评估周期。",bb=(e={},r={})=>{if((p??r.locale??n())==="zh")return lUe(e);return sUe(e)};var cUe=()=>"Edit Task",uUe=()=>"编辑任务",dUe=(e={},r={})=>{if((p??r.locale??n())==="zh")return uUe(e);return cUe(e)};var ZUe=()=>"Edit Watermark",pUe=()=>"编辑水印",vb=(e={},r={})=>{if((p??r.locale??n())==="zh")return pUe(e);return ZUe(e)};var mUe=()=>"Editor",hUe=()=>"创作者",Hs=(e={},r={})=>{if((p??r.locale??n())==="zh")return hUe(e);return mUe(e)};var gUe=()=>"Email",MUe=()=>"邮箱",zf=(e={},r={})=>{if((p??r.locale??n())==="zh")return MUe(e);return gUe(e)};var xUe=()=>"Email Address",vUe=()=>"邮箱地址",xle=(e={},r={})=>{if((p??r.locale??n())==="zh")return vUe(e);return xUe(e)};var yUe=()=>"john@example.com",_Ue=()=>"zhangsan@example.com",wb=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Ue(e);return yUe(e)};var bUe=()=>"Email address is managed by authentication provider.",wUe=()=>"邮箱地址由认证提供商管理。",xb=(e={},r={})=>{if((p??r.locale??n())==="zh")return wUe(e);return bUe(e)};var zUe=()=>"Email Notifications",SUe=()=>"邮件通知",xh=(e={},r={})=>{if((p??r.locale??n())==="zh")return SUe(e);return zUe(e)};var LUe=()=>"Configure SMTP settings for sending email notifications to team members.",kUe=()=>"配置用于向团队成员发送邮件通知的 SMTP 设置。",Sb=(e={},r={})=>{if((p??r.locale??n())==="zh")return kUe(e);return LUe(e)};var CUe=()=>"Email settings saved successfully",IUe=()=>"邮件设置已保存",Sh=(e={},r={})=>{if((p??r.locale??n())==="zh")return IUe(e);return CUe(e)};var RUe=()=>"Embedding Agent",PUe=()=>"嵌入智能体",Eb=(e={},r={})=>{if((p??r.locale??n())==="zh")return PUe(e);return RUe(e)};var TUe=()=>"All items in the recently deleted folder will be permanently removed both from the database and from storage. This action cannot be undone.",AUe=()=>"回收站中的所有项目将从数据库和存储中永久删除。此操作无法撤销。",Cb=(e={},r={})=>{if((p??r.locale??n())==="zh")return AUe(e);return TUe(e)};var EUe=()=>"Empty Trash?",DUe=()=>"清空回收站?",Ib=(e={},r={})=>{if((p??r.locale??n())==="zh")return DUe(e);return EUe(e)};var OUe=()=>"Enable Email Notifications",NUe=()=>"启用邮件通知",Tb=(e={},r={})=>{if((p??r.locale??n())==="zh")return NUe(e);return OUe(e)};var FUe=()=>"Send email notifications for comments, mentions, uploads, and other team activity.",jUe=()=>"当有评论、提及、上传及其他团队活动时发送邮件通知。",Mb=(e={},r={})=>{if((p??r.locale??n())==="zh")return jUe(e);return FUe(e)};var BUe=()=>"Please create and enable an embedding agent in the team settings to use semantic search.",UUe=()=>"请在团队设置中创建并启用嵌入智能体以使用语义搜索。",kb=(e={},r={})=>{if((p??r.locale??n())==="zh")return UUe(e);return BUe(e)};var YUe=()=>"Enable Network Sandbox",qUe=()=>"启用网络沙箱",Rb=(e={},r={})=>{if((p??r.locale??n())==="zh")return qUe(e);return YUe(e)};var HUe=()=>"Enable Timestamp",VUe=()=>"启用时间戳",Pb=(e={},r={})=>{if((p??r.locale??n())==="zh")return VUe(e);return HUe(e)};var WUe=()=>"Enabled",GUe=()=>"已启用",jf=(e={},r={})=>{if((p??r.locale??n())==="zh")return GUe(e);return WUe(e)};var KUe=()=>"English",XUe=()=>"English",Nb=(e={},r={})=>{if((p??r.locale??n())==="zh")return XUe(e);return KUe(e)};var QUe=()=>"Enter a value",JUe=()=>"输入一个值",Db=(e={},r={})=>{if((p??r.locale??n())==="zh")return JUe(e);return QUe(e)};var $Ue=()=>"Enter custom model ID",eYe=()=>"输入自定义模型 ID",Ob=(e={},r={})=>{if((p??r.locale??n())==="zh")return eYe(e);return $Ue(e)};var tYe=()=>"Enter MCP Server ID",rYe=()=>"输入 MCP 服务 ID",Eh=(e={},r={})=>{if((p??r.locale??n())==="zh")return rYe(e);return tYe(e)};var oYe=()=>"Enter new name",aYe=()=>"输入新名称",Ad=(e={},r={})=>{if((p??r.locale??n())==="zh")return aYe(e);return oYe(e)};var nYe=()=>"Enter password",iYe=()=>"请输入密码",Fb=(e={},r={})=>{if((p??r.locale??n())==="zh")return iYe(e);return nYe(e)};var fYe=()=>"Enter template name...",sYe=()=>"请输入模板名称...",Ch=(e={},r={})=>{if((p??r.locale??n())==="zh")return sYe(e);return fYe(e)};var lYe=()=>"Enter your details",cYe=()=>"输入您的信息",Lb=(e={},r={})=>{if((p??r.locale??n())==="zh")return cYe(e);return lYe(e)};var uYe=()=>"Enter your name",dYe=()=>"请输入您的名称",Zb=(e={},r={})=>{if((p??r.locale??n())==="zh")return dYe(e);return uYe(e)};var ZYe=()=>"Entry ID",pYe=()=>"条目 ID",_d=(e={},r={})=>{if((p??r.locale??n())==="zh")return pYe(e);return ZYe(e)};var mYe=()=>"If left empty, the value will be read from the host machine's environment.",hYe=()=>"如果留空,将从主机的环境中读取值。",Bb=(e={},r={})=>{if((p??r.locale??n())==="zh")return hYe(e);return mYe(e)};var gYe=()=>"Error",MYe=()=>"错误",Mn=(e={},r={})=>{if((p??r.locale??n())==="zh")return MYe(e);return gYe(e)};var xYe=(e)=>`Error: ${e?.message}`,vYe=(e)=>`错误:${e?.message}`,$s=(e,r={})=>{if((p??r.locale??n())==="zh")return vYe(e);return xYe(e)};var yYe=()=>"Essentials",_Ye=()=>"基本信息",Ub=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Ye(e);return yYe(e)};var bYe=()=>"Exact date...",wYe=()=>"精确日期...",zb=(e={},r={})=>{if((p??r.locale??n())==="zh")return wYe(e);return bYe(e)};var zYe=()=>"Exit compare",SYe=()=>"退出对比",jb=(e={},r={})=>{if((p??r.locale??n())==="zh")return SYe(e);return zYe(e)};var LYe=()=>"Expiration Date",kYe=()=>"过期日期",qb=(e={},r={})=>{if((p??r.locale??n())==="zh")return kYe(e);return LYe(e)};var CYe=()=>"Export Comments",IYe=()=>"导出评论",Hb=(e={},r={})=>{if((p??r.locale??n())==="zh")return IYe(e);return CYe(e)};var RYe=()=>"Failed to create collection",PYe=()=>"创建媒体合集失败",TYe=(e={},r={})=>{if((p??r.locale??n())==="zh")return PYe(e);return RYe(e)};var AYe=()=>"Failed to create field",EYe=()=>"创建字段失败",qf=(e={},r={})=>{if((p??r.locale??n())==="zh")return EYe(e);return AYe(e)};var DYe=()=>"Failed to create project",OYe=()=>"创建项目失败",$b=(e={},r={})=>{if((p??r.locale??n())==="zh")return OYe(e);return DYe(e)};var NYe=()=>"Failed to create share link",FYe=()=>"创建分享链接失败",jYe=(e={},r={})=>{if((p??r.locale??n())==="zh")return FYe(e);return NYe(e)};var BYe=()=>"Failed to delete collection",UYe=()=>"删除媒体合集失败",YYe=(e={},r={})=>{if((p??r.locale??n())==="zh")return UYe(e);return BYe(e)};var qYe=()=>"Failed to delete field",HYe=()=>"删除字段失败",Gb=(e={},r={})=>{if((p??r.locale??n())==="zh")return HYe(e);return qYe(e)};var VYe=()=>"Failed to delete folder",WYe=()=>"删除文件夹失败",GYe=(e={},r={})=>{if((p??r.locale??n())==="zh")return WYe(e);return VYe(e)};var KYe=()=>"Failed to delete share link",XYe=()=>"删除分享链接失败",QYe=(e={},r={})=>{if((p??r.locale??n())==="zh")return XYe(e);return KYe(e)};var JYe=()=>"Failed to fetch collections",$Ye=()=>"获取媒体合集失败",e7e=(e={},r={})=>{if((p??r.locale??n())==="zh")return $Ye(e);return JYe(e)};var t7e=()=>"Failed to fetch fields",r7e=()=>"获取字段列表失败",Vb=(e={},r={})=>{if((p??r.locale??n())==="zh")return r7e(e);return t7e(e)};var o7e=()=>"Failed to fetch files",a7e=()=>"获取文件失败",Qb=(e={},r={})=>{if((p??r.locale??n())==="zh")return a7e(e);return o7e(e)};var n7e=()=>"Failed to fetch folders",i7e=()=>"获取文件夹失败",Kb=(e={},r={})=>{if((p??r.locale??n())==="zh")return i7e(e);return n7e(e)};var f7e=()=>"Failed to fetch share link",s7e=()=>"获取分享链接失败",Wb=(e={},r={})=>{if((p??r.locale??n())==="zh")return s7e(e);return f7e(e)};var l7e=()=>"Failed to fetch share links",c7e=()=>"获取分享链接失败",u7e=(e={},r={})=>{if((p??r.locale??n())==="zh")return c7e(e);return l7e(e)};var d7e=()=>"Failed to load settings.",Z7e=()=>"加载设置失败。",Xo=(e={},r={})=>{if((p??r.locale??n())==="zh")return Z7e(e);return d7e(e)};var p7e=()=>"Failed to remove",m7e=()=>"移除失败",Yb=(e={},r={})=>{if((p??r.locale??n())==="zh")return m7e(e);return p7e(e)};var h7e=()=>"Failed to remove avatar",g7e=()=>"移除头像失败",Jb=(e={},r={})=>{if((p??r.locale??n())==="zh")return g7e(e);return h7e(e)};var M7e=()=>"Failed to rename collection",x7e=()=>"重命名媒体合集失败",v7e=(e={},r={})=>{if((p??r.locale??n())==="zh")return x7e(e);return M7e(e)};var y7e=()=>"Failed to rename folder",_7e=()=>"重命名文件夹失败",b7e=(e={},r={})=>{if((p??r.locale??n())==="zh")return _7e(e);return y7e(e)};var w7e=()=>"Failed to rename share link",z7e=()=>"重命名分享链接失败",S7e=(e={},r={})=>{if((p??r.locale??n())==="zh")return z7e(e);return w7e(e)};var L7e=()=>"Failed to save collection",k7e=()=>"保存媒体合集失败",Xb=(e={},r={})=>{if((p??r.locale??n())==="zh")return k7e(e);return L7e(e)};var C7e=(e)=>`Failed to add ${e?.name}`,I7e=(e)=>`添加 ${e?.name} 失败`,Ih=(e,r={})=>{if((p??r.locale??n())==="zh")return I7e(e);return C7e(e)};var R7e=()=>"Failed to add model",P7e=()=>"添加模型失败",ev=(e={},r={})=>{if((p??r.locale??n())==="zh")return P7e(e);return R7e(e)};var T7e=()=>"Failed to create quota rule",A7e=()=>"创建配额规则失败",Th=(e={},r={})=>{if((p??r.locale??n())==="zh")return A7e(e);return T7e(e)};var E7e=()=>"Failed to delete",D7e=()=>"删除失败",Oa=(e={},r={})=>{if((p??r.locale??n())==="zh")return D7e(e);return E7e(e)};var O7e=()=>"Failed to delete quota rule",N7e=()=>"删除配额规则失败",yd=(e={},r={})=>{if((p??r.locale??n())==="zh")return N7e(e);return O7e(e)};var F7e=()=>"Failed to export comments",j7e=()=>"导出评论失败",tv=(e={},r={})=>{if((p??r.locale??n())==="zh")return j7e(e);return F7e(e)};var B7e=()=>"Failed to fetch folder children",U7e=()=>"获取子文件夹失败",Y7e=(e={},r={})=>{if((p??r.locale??n())==="zh")return U7e(e);return B7e(e)};var q7e=()=>"Failed to generate invite link",H7e=()=>"生成邀请链接失败",rv=(e={},r={})=>{if((p??r.locale??n())==="zh")return H7e(e);return q7e(e)};var V7e=()=>"Failed to generate token",W7e=()=>"生成令牌失败",nv=(e={},r={})=>{if((p??r.locale??n())==="zh")return W7e(e);return V7e(e)};var G7e=()=>"Failed to install skill",K7e=()=>"安装技能失败",ov=(e={},r={})=>{if((p??r.locale??n())==="zh")return K7e(e);return G7e(e)};var X7e=()=>"Failed to load email settings",Q7e=()=>"加载邮件设置失败",Mh=(e={},r={})=>{if((p??r.locale??n())==="zh")return Q7e(e);return X7e(e)};var J7e=()=>"Failed to load quota usage",$7e=()=>"加载配额使用量失败",kh=(e={},r={})=>{if((p??r.locale??n())==="zh")return $7e(e);return J7e(e)};var eqe=()=>"Failed to post comment",tqe=()=>"发送评论失败",sv=(e={},r={})=>{if((p??r.locale??n())==="zh")return tqe(e);return eqe(e)};var rqe=()=>"Failed to prepare download links",oqe=()=>"准备下载链接失败",vle=(e={},r={})=>{if((p??r.locale??n())==="zh")return oqe(e);return rqe(e)};var aqe=()=>"Failed to remove member",nqe=()=>"移除成员失败",iv=(e={},r={})=>{if((p??r.locale??n())==="zh")return nqe(e);return aqe(e)};var iqe=()=>"Failed to remove version",fqe=()=>"移除版本失败",sqe=(e={},r={})=>{if((p??r.locale??n())==="zh")return fqe(e);return iqe(e)};var lqe=()=>"Failed to rename",cqe=()=>"重命名失败",av=(e={},r={})=>{if((p??r.locale??n())==="zh")return cqe(e);return lqe(e)};var uqe=()=>"Failed to reorder versions",dqe=()=>"版本重新排序失败",Zqe=(e={},r={})=>{if((p??r.locale??n())==="zh")return dqe(e);return uqe(e)};var pqe=()=>"Failed to reset quota usage",mqe=()=>"重置配额使用量失败",Rh=(e={},r={})=>{if((p??r.locale??n())==="zh")return mqe(e);return pqe(e)};var hqe=()=>"Failed to revoke token",gqe=()=>"撤销令牌失败",lv=(e={},r={})=>{if((p??r.locale??n())==="zh")return gqe(e);return hqe(e)};var Mqe=()=>"Failed to save email settings",xqe=()=>"保存邮件设置失败",Hf=(e={},r={})=>{if((p??r.locale??n())==="zh")return xqe(e);return Mqe(e)};var vqe=()=>"Failed to send test email",yqe=()=>"发送测试邮件失败",Ph=(e={},r={})=>{if((p??r.locale??n())==="zh")return yqe(e);return vqe(e)};var _qe=()=>"Failed to update member role",bqe=()=>"更新成员角色失败",cv=(e={},r={})=>{if((p??r.locale??n())==="zh")return bqe(e);return _qe(e)};var wqe=()=>"Failed to update notification settings",zqe=()=>"更新通知设置失败",Nh=(e={},r={})=>{if((p??r.locale??n())==="zh")return zqe(e);return wqe(e)};var Sqe=()=>"Failed to update permission",Lqe=()=>"更新权限失败",El=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lqe(e);return Sqe(e)};var kqe=()=>"Failed to update provider",Cqe=()=>"更新提供商失败",uv=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cqe(e);return kqe(e)};var Iqe=()=>"Failed to update quota rule",Rqe=()=>"更新配额规则失败",bd=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rqe(e);return Iqe(e)};var Pqe=()=>"Failed to update sandbox settings",Tqe=()=>"更新沙箱设置失败",Dh=(e={},r={})=>{if((p??r.locale??n())==="zh")return Tqe(e);return Pqe(e)};var Aqe=()=>"Failed to upload",Eqe=()=>"上传失败",dv=(e={},r={})=>{if((p??r.locale??n())==="zh")return Eqe(e);return Aqe(e)};var Dqe=()=>"(Failed to upload)",Oqe=()=>"(上传失败)",fv=(e={},r={})=>{if((p??r.locale??n())==="zh")return Oqe(e);return Dqe(e)};var Nqe=()=>"Failed to update",Fqe=()=>"更新失败",wi=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fqe(e);return Nqe(e)};var jqe=()=>"Failed to update appearance settings",Bqe=()=>"更新外观设置失败",Oh=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bqe(e);return jqe(e)};var Uqe=()=>"Failed to update avatar",Yqe=()=>"头像更新失败",pv=(e={},r={})=>{if((p??r.locale??n())==="zh")return Yqe(e);return Uqe(e)};var qqe=()=>"Failed to update field",Hqe=()=>"更新字段失败",Cl=(e={},r={})=>{if((p??r.locale??n())==="zh")return Hqe(e);return qqe(e)};var Vqe=()=>"Failed to update fields order",Wqe=()=>"更新字段排序失败",$f=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wqe(e);return Vqe(e)};var Gqe=()=>"Failed to update language",Kqe=()=>"语言更新失败",mv=(e={},r={})=>{if((p??r.locale??n())==="zh")return Kqe(e);return Gqe(e)};var Xqe=()=>"Failed to update profile",Qqe=()=>"更新个人资料失败",hv=(e={},r={})=>{if((p??r.locale??n())==="zh")return Qqe(e);return Xqe(e)};var Jqe=()=>"Failed to update project",$qe=()=>"更新项目失败",gv=(e={},r={})=>{if((p??r.locale??n())==="zh")return $qe(e);return Jqe(e)};var e9e=()=>"Failed to update project notification settings",t9e=()=>"更新项目通知设置失败",Av=(e={},r={})=>{if((p??r.locale??n())==="zh")return t9e(e);return e9e(e)};var r9e=()=>"Failed to update settings",o9e=()=>"更新设置失败",vd=(e={},r={})=>{if((p??r.locale??n())==="zh")return o9e(e);return r9e(e)};var a9e=()=>"Failed to upload file",n9e=()=>"上传文件失败",Gc=(e={},r={})=>{if((p??r.locale??n())==="zh")return n9e(e);return a9e(e)};var i9e=()=>"FFmpeg Threads",f9e=()=>"FFmpeg 线程数",_v=(e={},r={})=>{if((p??r.locale??n())==="zh")return f9e(e);return i9e(e)};var s9e=()=>"Maximum number of CPU threads used by FFmpeg during transcoding. Set to 0 for Auto.",l9e=()=>"FFmpeg 转码时使用的最大 CPU 线程数。设置为 0 表示自动。",yv=(e={},r={})=>{if((p??r.locale??n())==="zh")return l9e(e);return s9e(e)};var c9e=()=>"Field",u9e=()=>"字段",Gf=(e={},r={})=>{if((p??r.locale??n())==="zh")return u9e(e);return c9e(e)};var d9e=()=>"Created At",Z9e=()=>"创建时间",bv=(e={},r={})=>{if((p??r.locale??n())==="zh")return Z9e(e);return d9e(e)};var p9e=()=>"Field created successfully",m9e=()=>"字段创建成功",vv=(e={},r={})=>{if((p??r.locale??n())==="zh")return m9e(e);return p9e(e)};var h9e=()=>"Field deleted successfully",g9e=()=>"字段删除成功",wv=(e={},r={})=>{if((p??r.locale??n())==="zh")return g9e(e);return h9e(e)};var M9e=()=>"Field Name",x9e=()=>"字段名称",Vf=(e={},r={})=>{if((p??r.locale??n())==="zh")return x9e(e);return M9e(e)};var v9e=()=>"e.g. Status",y9e=()=>"例如:状态",xv=(e={},r={})=>{if((p??r.locale??n())==="zh")return y9e(e);return v9e(e)};var _9e=()=>"Size",b9e=()=>"大小",Sv=(e={},r={})=>{if((p??r.locale??n())==="zh")return b9e(e);return _9e(e)};var w9e=()=>"Field Type",z9e=()=>"字段类型",Qf=(e={},r={})=>{if((p??r.locale??n())==="zh")return z9e(e);return w9e(e)};var S9e=()=>"Updated At",L9e=()=>"更新时间",Ev=(e={},r={})=>{if((p??r.locale??n())==="zh")return L9e(e);return S9e(e)};var k9e=()=>"Field updated successfully",C9e=()=>"字段更新成功",Cv=(e={},r={})=>{if((p??r.locale??n())==="zh")return C9e(e);return k9e(e)};var I9e=()=>"Fields",R9e=()=>"字段",Fa=(e={},r={})=>{if((p??r.locale??n())==="zh")return R9e(e);return I9e(e)};var P9e=()=>"File size exceeds the 1MB limit",T9e=()=>"文件大小不能超过 1MB",Iv=(e={},r={})=>{if((p??r.locale??n())==="zh")return T9e(e);return P9e(e)};var A9e=()=>"File not found.",E9e=()=>"文件未找到。",Fh=(e={},r={})=>{if((p??r.locale??n())==="zh")return E9e(e);return A9e(e)};var D9e=(e)=>`${e?.uploaded} / ${e?.total} files`,O9e=(e)=>`${e?.uploaded} / ${e?.total} 个文件`,yle=(e,r={})=>{if((p??r.locale??n())==="zh")return O9e(e);return D9e(e)};var N9e=()=>"Filesystem Restriction",F9e=()=>"文件系统限制",Tv=(e={},r={})=>{if((p??r.locale??n())==="zh")return F9e(e);return N9e(e)};var j9e=()=>"Sandboxed shell commands can read workspace files except sensitive environment, certificate, and key files. They can write to the project's .pi folder and the system temporary directory, plus a few runtime-managed system paths. These filesystem rules are currently hardcoded for security.",B9e=()=>"沙箱 Shell 命令可以读取工作区文件,但环境变量、证书和密钥等敏感文件除外;可以写入项目的 .pi 文件夹和系统临时目录,以及少量由运行时管理的系统路径。这些文件系统规则目前出于安全考虑已硬编码。",Mv=(e={},r={})=>{if((p??r.locale??n())==="zh")return B9e(e);return j9e(e)};var U9e=()=>"and",Y9e=()=>"且",kv=(e={},r={})=>{if((p??r.locale??n())==="zh")return Y9e(e);return U9e(e)};var q9e=()=>"Filter by Action",H9e=()=>"按操作筛选",Rv=(e={},r={})=>{if((p??r.locale??n())==="zh")return H9e(e);return q9e(e)};var V9e=()=>"Filter by User",W9e=()=>"按用户筛选",Pv=(e={},r={})=>{if((p??r.locale??n())==="zh")return W9e(e);return V9e(e)};var G9e=()=>"Search tasks in this status...",K9e=()=>"搜索此状态下的任务...",X9e=(e={},r={})=>{if((p??r.locale??n())==="zh")return K9e(e);return G9e(e)};var Q9e=()=>"Where",J9e=()=>"条件",Nv=(e={},r={})=>{if((p??r.locale??n())==="zh")return J9e(e);return Q9e(e)};var $9e=()=>"Filters",eHe=()=>"筛选条件",Dv=(e={},r={})=>{if((p??r.locale??n())==="zh")return eHe(e);return $9e(e)};var tHe=()=>"You will be the owner of the default workspace as the first user!",rHe=()=>"作为第一位用户,您将成为默认工作空间的拥有者!",oHe=(e={},r={})=>{if((p??r.locale??n())==="zh")return rHe(e);return tHe(e)};var aHe=()=>"Fit",nHe=()=>"适应窗口",Kf=(e={},r={})=>{if((p??r.locale??n())==="zh")return nHe(e);return aHe(e)};var iHe=()=>"Folder",fHe=()=>"文件夹",sHe=(e={},r={})=>{if((p??r.locale??n())==="zh")return fHe(e);return iHe(e)};var lHe=()=>"Folder deleted",cHe=()=>"文件夹已删除",uHe=(e={},r={})=>{if((p??r.locale??n())==="zh")return cHe(e);return lHe(e)};var dHe=()=>"Selected folder files will be prepared for download.",ZHe=()=>"所选文件夹中的文件将被准备下载。",Lh=(e={},r={})=>{if((p??r.locale??n())==="zh")return ZHe(e);return dHe(e)};var pHe=()=>"Folder name",mHe=()=>"文件夹名称",Zh=(e={},r={})=>{if((p??r.locale??n())==="zh")return mHe(e);return pHe(e)};var hHe=()=>"Folder renamed",gHe=()=>"文件夹已重命名",MHe=(e={},r={})=>{if((p??r.locale??n())==="zh")return gHe(e);return hHe(e)};var xHe=()=>"Folder hierarchy will be flattened. All nested files will be downloaded directly into your default download folder.",vHe=()=>"文件夹层级将被扁平化。所有嵌套文件将直接下载到您的默认下载文件夹中。",Bh=(e={},r={})=>{if((p??r.locale??n())==="zh")return vHe(e);return xHe(e)};var yHe=()=>"Assets",_He=()=>"资产",_le=(e={},r={})=>{if((p??r.locale??n())==="zh")return _He(e);return yHe(e)};var bHe=()=>"Font Size",wHe=()=>"字体大小",Ov=(e={},r={})=>{if((p??r.locale??n())==="zh")return wHe(e);return bHe(e)};var zHe=()=>"Format",SHe=()=>"格式",Fv=(e={},r={})=>{if((p??r.locale??n())==="zh")return SHe(e);return zHe(e)};var LHe=()=>"Frames",kHe=()=>"帧数",Lv=(e={},r={})=>{if((p??r.locale??n())==="zh")return kHe(e);return LHe(e)};var CHe=()=>"From address is required",IHe=()=>"必须提供发件人地址",Zv=(e={},r={})=>{if((p??r.locale??n())==="zh")return IHe(e);return CHe(e)};var RHe=()=>"Fullscreen",PHe=()=>"全屏",wd=(e={},r={})=>{if((p??r.locale??n())==="zh")return PHe(e);return RHe(e)};var THe=()=>"General",AHe=()=>"通用",Bv=(e={},r={})=>{if((p??r.locale??n())==="zh")return AHe(e);return THe(e)};var EHe=()=>"General Comments",DHe=()=>"普通评论",Uv=(e={},r={})=>{if((p??r.locale??n())==="zh")return DHe(e);return EHe(e)};var OHe=()=>"General Settings",NHe=()=>"通用设置",Uh=(e={},r={})=>{if((p??r.locale??n())==="zh")return NHe(e);return OHe(e)};var FHe=()=>"View your personal information and team role.",jHe=()=>"查看您的个人信息和团队角色。",zv=(e={},r={})=>{if((p??r.locale??n())==="zh")return jHe(e);return FHe(e)};var BHe=()=>"Generate",UHe=()=>"生成",jv=(e={},r={})=>{if((p??r.locale??n())==="zh")return UHe(e);return BHe(e)};var YHe=()=>"Generate Link",qHe=()=>"生成链接",qv=(e={},r={})=>{if((p??r.locale??n())==="zh")return qHe(e);return YHe(e)};var HHe=()=>"GitHub Repository URL",VHe=()=>"GitHub 仓库 URL",Hv=(e={},r={})=>{if((p??r.locale??n())==="zh")return VHe(e);return HHe(e)};var WHe=()=>"Example: https://github.com/google/gemini-cli",GHe=()=>"示例:https://github.com/google/gemini-cli",$v=(e={},r={})=>{if((p??r.locale??n())==="zh")return GHe(e);return WHe(e)};var KHe=()=>"Global API Protocol",XHe=()=>"全局 API 协议",zh=(e={},r={})=>{if((p??r.locale??n())==="zh")return XHe(e);return KHe(e)};var QHe=()=>"Go to Login",JHe=()=>"前往登录",Wf=(e={},r={})=>{if((p??r.locale??n())==="zh")return JHe(e);return QHe(e)};var $He=()=>"Goal created",eVe=()=>"目标已创建",Gv=(e={},r={})=>{if((p??r.locale??n())==="zh")return eVe(e);return $He(e)};var tVe=()=>"Goal deleted",rVe=()=>"目标已删除",Vv=(e={},r={})=>{if((p??r.locale??n())==="zh")return rVe(e);return tVe(e)};var oVe=()=>"Goal Description",aVe=()=>"目标描述",Qv=(e={},r={})=>{if((p??r.locale??n())==="zh")return aVe(e);return oVe(e)};var nVe=()=>"Describe the desired outcome and success criteria...",iVe=()=>"描述预期成果和衡量标准...",Kv=(e={},r={})=>{if((p??r.locale??n())==="zh")return iVe(e);return nVe(e)};var fVe=()=>"Goal Title",sVe=()=>"目标标题",Wv=(e={},r={})=>{if((p??r.locale??n())==="zh")return sVe(e);return fVe(e)};var lVe=()=>"e.g. Q3 Launch Deliverables",cVe=()=>"例如:Q3 发布交付物",Yv=(e={},r={})=>{if((p??r.locale??n())==="zh")return cVe(e);return lVe(e)};var uVe=()=>"Goal updated",dVe=()=>"目标已更新",Jv=(e={},r={})=>{if((p??r.locale??n())==="zh")return dVe(e);return uVe(e)};var ZVe=()=>"Goals",pVe=()=>"目标",xd=(e={},r={})=>{if((p??r.locale??n())==="zh")return pVe(e);return ZVe(e)};var mVe=()=>"Connection failed",hVe=()=>"连接失败",Sd=(e={},r={})=>{if((p??r.locale??n())==="zh")return hVe(e);return mVe(e)};var gVe=()=>"Connected successfully",MVe=()=>"连接成功",jh=(e={},r={})=>{if((p??r.locale??n())==="zh")return MVe(e);return gVe(e)};var xVe=()=>"Configured via environment variables (Read-only)",vVe=()=>"已通过环境变量配置(只读)",Xv=(e={},r={})=>{if((p??r.locale??n())==="zh")return vVe(e);return xVe(e)};var yVe=()=>"Password",_Ve=()=>"密码",ew=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Ve(e);return yVe(e)};var bVe=()=>"Leave blank to keep existing password",wVe=()=>"留空以保留当前密码",tw=(e={},r={})=>{if((p??r.locale??n())==="zh")return wVe(e);return bVe(e)};var zVe=()=>"Server URL",SVe=()=>"服务地址",rw=(e={},r={})=>{if((p??r.locale??n())==="zh")return SVe(e);return zVe(e)};var LVe=()=>"e.g. http://localhost:3000",kVe=()=>"例如 http://localhost:3000",nw=(e={},r={})=>{if((p??r.locale??n())==="zh")return kVe(e);return LVe(e)};var CVe=()=>"Gotenberg Document Converter",IVe=()=>"Gotenberg 文档转换服务",ow=(e={},r={})=>{if((p??r.locale??n())==="zh")return IVe(e);return CVe(e)};var RVe=()=>"Configure the external Gotenberg service for converting Office documents, Markdown, and HTML to PDF.",PVe=()=>"配置用于将 Office 文档、Markdown 及 HTML 转换为 PDF 的外部 Gotenberg 服务。",sw=(e={},r={})=>{if((p??r.locale??n())==="zh")return PVe(e);return RVe(e)};var TVe=()=>"Test Connection",AVe=()=>"测试连接",iw=(e={},r={})=>{if((p??r.locale??n())==="zh")return AVe(e);return TVe(e)};var EVe=()=>"Testing...",DVe=()=>"正在测试...",aw=(e={},r={})=>{if((p??r.locale??n())==="zh")return DVe(e);return EVe(e)};var OVe=()=>"Username",NVe=()=>"用户名",lw=(e={},r={})=>{if((p??r.locale??n())==="zh")return NVe(e);return OVe(e)};var FVe=()=>"Grid",jVe=()=>"网格",cw=(e={},r={})=>{if((p??r.locale??n())==="zh")return jVe(e);return FVe(e)};var BVe=()=>"Groups",UVe=()=>"分组",uw=(e={},r={})=>{if((p??r.locale??n())==="zh")return UVe(e);return BVe(e)};var YVe=()=>"Hardware Acceleration",qVe=()=>"硬件加速",dw=(e={},r={})=>{if((p??r.locale??n())==="zh")return qVe(e);return YVe(e)};var HVe=()=>"Auto Detect",VVe=()=>"自动检测",fw=(e={},r={})=>{if((p??r.locale??n())==="zh")return VVe(e);return HVe(e)};var WVe=()=>"Automatically probes and uses GPU/Hardware acceleration (NVENC, QSV, VA-API, AMF, VideoToolbox). If hardware acceleration is unsupported on the host, video transcoding may fail.",GVe=()=>"自动检测并使用 GPU/硬件加速(NVENC、QSV、VA-API、AMF、VideoToolbox)。若宿主硬件不支持加速,视频转码可能会失败。",pw=(e={},r={})=>{if((p??r.locale??n())==="zh")return GVe(e);return WVe(e)};var KVe=()=>"Disabled (Software)",XVe=()=>"已禁用 (软件编码)",mw=(e={},r={})=>{if((p??r.locale??n())==="zh")return XVe(e);return KVe(e)};var QVe=()=>"Uses software libx264 encoder with constant rate factor (CRF).",JVe=()=>"使用 CPU 的 libx264 软件编码器及 CRF 恒定画质模式。",hw=(e={},r={})=>{if((p??r.locale??n())==="zh")return JVe(e);return QVe(e)};var $Ve=()=>"Configure hardware-accelerated video encoding to offload workloads to GPUs, or use CPU software encoding.",eWe=()=>"配置硬件加速视频编码以将工作负载分流至 GPU,或使用 CPU 软件编码。",gw=(e={},r={})=>{if((p??r.locale??n())==="zh")return eWe(e);return $Ve(e)};var tWe=()=>"HDR",rWe=()=>"HDR",Vc=(e={},r={})=>{if((p??r.locale??n())==="zh")return rWe(e);return tWe(e)};var oWe=()=>"Hide Agent",aWe=()=>"隐藏 Agent",Aw=(e={},r={})=>{if((p??r.locale??n())==="zh")return aWe(e);return oWe(e)};var nWe=()=>"Hide the AGENTS.md button, agent-chat sidebar, and chatbot trigger button across the entire team.",iWe=()=>"在整个团队中隐藏 AGENTS.md 按钮、Agent 聊天侧边栏和触发按钮。",_w=(e={},r={})=>{if((p??r.locale??n())==="zh")return iWe(e);return nWe(e)};var fWe=()=>"Hide Chatbot",sWe=()=>"隐藏聊天机器人",lWe=(e={},r={})=>{if((p??r.locale??n())==="zh")return sWe(e);return fWe(e)};var cWe=()=>"History",uWe=()=>"历史记录",qh=(e={},r={})=>{if((p??r.locale??n())==="zh")return uWe(e);return cWe(e)};var dWe=()=>"Resolution Ladders",ZWe=()=>"分辨率阶梯",yw=(e={},r={})=>{if((p??r.locale??n())==="zh")return ZWe(e);return dWe(e)};var pWe=()=>"Select the target resolutions to generate for HLS streaming. Ladders are only generated up to the source video resolution.",mWe=()=>"选择 HLS 流媒体生成的目标分辨率。仅会生成不超过原始视频分辨率的分辨率阶梯。",bw=(e={},r={})=>{if((p??r.locale??n())==="zh")return mWe(e);return pWe(e)};var hWe=()=>"HLS Streaming",gWe=()=>"HLS 流媒体",vw=(e={},r={})=>{if((p??r.locale??n())==="zh")return gWe(e);return hWe(e)};var MWe=()=>"Enable HTTP Live Streaming (HLS) with adaptive bitrate ladders for smooth video playback.",xWe=()=>"启用自适应码率阶梯的 HTTP Live Streaming (HLS),带来流畅的视频流播放体验。",ww=(e={},r={})=>{if((p??r.locale??n())==="zh")return xWe(e);return MWe(e)};var vWe=()=>"Home",yWe=()=>"主页",_We=(e={},r={})=>{if((p??r.locale??n())==="zh")return yWe(e);return vWe(e)};var bWe=()=>"Image Asset",wWe=()=>"图片资源",xw=(e={},r={})=>{if((p??r.locale??n())==="zh")return wWe(e);return bWe(e)};var zWe=(e)=>`${e?.count} enabled`,SWe=(e)=>`${e?.count} 个已启用`,Sw=(e,r={})=>{if((p??r.locale??n())==="zh")return SWe(e);return zWe(e)};var LWe=()=>"[Image Object]",kWe=()=>"[图片对象]",Yf=(e={},r={})=>{if((p??r.locale??n())==="zh")return kWe(e);return LWe(e)};var CWe=()=>"Image Size",IWe=()=>"图片大小",Ew=(e={},r={})=>{if((p??r.locale??n())==="zh")return IWe(e);return CWe(e)};var RWe=()=>"Image / Video Generation",PWe=()=>"图像与视频生成",Hh=(e={},r={})=>{if((p??r.locale??n())==="zh")return PWe(e);return RWe(e)};var TWe=()=>"Import a skill from a local ZIP archive or a GitHub repository.",AWe=()=>"从本地 ZIP 压缩包或 GitHub 仓库导入技能。",Cw=(e={},r={})=>{if((p??r.locale??n())==="zh")return AWe(e);return TWe(e)};var EWe=()=>"Input Cost (1M)",DWe=()=>"输入成本(每百万)",Iw=(e={},r={})=>{if((p??r.locale??n())==="zh")return DWe(e);return EWe(e)};var OWe=()=>"Input Tokens",NWe=()=>"输入 Token",$h=(e={},r={})=>{if((p??r.locale??n())==="zh")return NWe(e);return OWe(e)};var FWe=()=>"Install",jWe=()=>"安装",Tw=(e={},r={})=>{if((p??r.locale??n())==="zh")return jWe(e);return FWe(e)};var BWe=()=>"Integrations",UWe=()=>"集成",Gh=(e={},r={})=>{if((p??r.locale??n())==="zh")return UWe(e);return BWe(e)};var YWe=()=>"Configure third-party service integrations for media rendering and document processing.",qWe=()=>"配置用于媒体渲染与文档处理的第三方服务集成。",Mw=(e={},r={})=>{if((p??r.locale??n())==="zh")return qWe(e);return YWe(e)};var HWe=()=>"Invalid credentials",VWe=()=>"凭证无效",ble=(e={},r={})=>{if((p??r.locale??n())==="zh")return VWe(e);return HWe(e)};var WWe=()=>"Invalid email address",GWe=()=>"无效的邮箱地址",wle=(e={},r={})=>{if((p??r.locale??n())==="zh")return GWe(e);return WWe(e)};var KWe=()=>"Invalid or missing reset token.",XWe=()=>"无效或缺失的重置令牌。",Jf=(e={},r={})=>{if((p??r.locale??n())==="zh")return XWe(e);return KWe(e)};var QWe=()=>"Please contact your administrator to generate a new password reset link.",JWe=()=>"请联系管理员生成新的密码重置链接。",kw=(e={},r={})=>{if((p??r.locale??n())==="zh")return JWe(e);return QWe(e)};var $We=(e)=>`${e?.inviterName} invited you to join ${e?.targetName} as ${e?.role}.`,eGe=(e)=>`${e?.inviterName} 邀请您加入 ${e?.targetName},角色为 ${e?.role}。`,tGe=(e,r={})=>{if((p??r.locale??n())==="zh")return eGe(e);return $We(e)};var rGe=()=>"Invite link copied to clipboard",oGe=()=>"邀请链接已复制到剪贴板",Rw=(e={},r={})=>{if((p??r.locale??n())==="zh")return oGe(e);return rGe(e)};var aGe=()=>"Invite New Member",nGe=()=>"邀请新成员",Pw=(e={},r={})=>{if((p??r.locale??n())==="zh")return nGe(e);return aGe(e)};var iGe=()=>"Item ID",fGe=()=>"条目 ID",Nw=(e={},r={})=>{if((p??r.locale??n())==="zh")return fGe(e);return iGe(e)};var sGe=()=>"Kanban",lGe=()=>"看板",cGe=(e={},r={})=>{if((p??r.locale??n())==="zh")return lGe(e);return sGe(e)};var uGe=()=>"Kanban Comments",dGe=()=>"看板评论",Dw=(e={},r={})=>{if((p??r.locale??n())==="zh")return dGe(e);return uGe(e)};var ZGe=()=>"Manage notifications for Kanban board tasks and comments.",pGe=()=>"管理看板任务和评论相关的通知偏好。",Ow=(e={},r={})=>{if((p??r.locale??n())==="zh")return pGe(e);return ZGe(e)};var mGe=()=>"Kanban Notifications",hGe=()=>"看板通知",Fw=(e={},r={})=>{if((p??r.locale??n())==="zh")return hGe(e);return mGe(e)};var gGe=()=>"Kanban Tasks",MGe=()=>"看板任务",Lw=(e={},r={})=>{if((p??r.locale??n())==="zh")return MGe(e);return gGe(e)};var xGe=()=>"Language Settings",vGe=()=>"语言设置",Zw=(e={},r={})=>{if((p??r.locale??n())==="zh")return vGe(e);return xGe(e)};var yGe=()=>"Language updated successfully",_Ge=()=>"语言更新成功",Bw=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Ge(e);return yGe(e)};var bGe=()=>"Light",wGe=()=>"浅色",zGe=(e={},r={})=>{if((p??r.locale??n())==="zh")return wGe(e);return bGe(e)};var SGe=()=>"Link copied to clipboard",LGe=()=>"链接已复制到剪贴板",Uw=(e={},r={})=>{if((p??r.locale??n())==="zh")return LGe(e);return SGe(e)};var kGe=()=>"Link to Task",CGe=()=>"关联到任务",IGe=(e={},r={})=>{if((p??r.locale??n())==="zh")return CGe(e);return kGe(e)};var RGe=()=>"Link Visibility",PGe=()=>"链接可见性",zw=(e={},r={})=>{if((p??r.locale??n())==="zh")return PGe(e);return RGe(e)};var TGe=(e)=>`${e?.count} assets`,AGe=(e)=>`${e?.count} 个资产`,jw=(e,r={})=>{if((p??r.locale??n())==="zh")return AGe(e);return TGe(e)};var EGe=()=>"Linked Tasks",DGe=()=>"关联任务",Xf=(e={},r={})=>{if((p??r.locale??n())==="zh")return DGe(e);return EGe(e)};var OGe=()=>"List",NGe=()=>"列表",qw=(e={},r={})=>{if((p??r.locale??n())==="zh")return NGe(e);return OGe(e)};var FGe=()=>"Load Template",jGe=()=>"加载模板",Hw=(e={},r={})=>{if((p??r.locale??n())==="zh")return jGe(e);return FGe(e)};var BGe=()=>"Loading...",UGe=()=>"加载中...",Ed=(e={},r={})=>{if((p??r.locale??n())==="zh")return UGe(e);return BGe(e)};var YGe=()=>"Loading collection...",qGe=()=>"正在加载媒体合集...",Vh=(e={},r={})=>{if((p??r.locale??n())==="zh")return qGe(e);return YGe(e)};var HGe=()=>"Loading models...",VGe=()=>"正在加载模型...",$w=(e={},r={})=>{if((p??r.locale??n())==="zh")return VGe(e);return HGe(e)};var WGe=()=>"Loading more...",GGe=()=>"加载更多...",Gw=(e={},r={})=>{if((p??r.locale??n())==="zh")return GGe(e);return WGe(e)};var KGe=()=>"Log out",XGe=()=>"退出登录",QGe=(e={},r={})=>{if((p??r.locale??n())==="zh")return XGe(e);return KGe(e)};var JGe=()=>"Logging in...",$Ge=()=>"登录中...",zle=(e={},r={})=>{if((p??r.locale??n())==="zh")return $Ge(e);return JGe(e)};var eKe=()=>"Login",tKe=()=>"登录",Sle=(e={},r={})=>{if((p??r.locale??n())==="zh")return tKe(e);return eKe(e)};var rKe=()=>"Login as demo user",oKe=()=>"以演示用户登录",aKe=(e={},r={})=>{if((p??r.locale??n())==="zh")return oKe(e);return rKe(e)};var nKe=()=>"Login here",iKe=()=>"在此登录",fKe=(e={},r={})=>{if((p??r.locale??n())==="zh")return iKe(e);return nKe(e)};var sKe=()=>"Enter your credentials to access your account.",lKe=()=>"输入您的凭证以访问您的账户。",cKe=(e={},r={})=>{if((p??r.locale??n())==="zh")return lKe(e);return sKe(e)};var uKe=()=>"Loop",dKe=()=>"循环",Vw=(e={},r={})=>{if((p??r.locale??n())==="zh")return dKe(e);return uKe(e)};var ZKe=()=>"Manage environment variables for this skill instance.",pKe=()=>"管理此技能实例的环境变量。",Qw=(e={},r={})=>{if((p??r.locale??n())==="zh")return pKe(e);return ZKe(e)};var mKe=()=>"Manage Fields",hKe=()=>"管理字段",ep=(e={},r={})=>{if((p??r.locale??n())==="zh")return hKe(e);return mKe(e)};var gKe=()=>"Manage and update your project workspace configurations.",MKe=()=>"管理和更新您的项目工作区配置。",Kw=(e={},r={})=>{if((p??r.locale??n())==="zh")return MKe(e);return gKe(e)};var xKe=()=>"Manage versions",vKe=()=>"管理版本",tp=(e={},r={})=>{if((p??r.locale??n())==="zh")return vKe(e);return xKe(e)};var yKe=()=>"Manage versions",_Ke=()=>"管理版本",bKe=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Ke(e);return yKe(e)};var wKe=()=>"Mark all as read",zKe=()=>"全部标记为已读",SKe=(e={},r={})=>{if((p??r.locale??n())==="zh")return zKe(e);return wKe(e)};var LKe=()=>"Mark as complete",kKe=()=>"标记为已完成",Ww=(e={},r={})=>{if((p??r.locale??n())==="zh")return kKe(e);return LKe(e)};var CKe=()=>"Mark as incomplete",IKe=()=>"标记为未完成",Yw=(e={},r={})=>{if((p??r.locale??n())==="zh")return IKe(e);return CKe(e)};var RKe=()=>"Markup is not supported for this file type",PKe=()=>"此文件类型不支持标注",rp=(e={},r={})=>{if((p??r.locale??n())==="zh")return PKe(e);return RKe(e)};var TKe=(e)=>`Matched ${e?.count} items`,AKe=(e)=>`匹配了 ${e?.count} 项`,Jw=(e,r={})=>{if((p??r.locale??n())==="zh")return AKe(e);return TKe(e)};var EKe=()=>"Max Output Tokens",DKe=()=>"最大输出令牌数",Xw=(e={},r={})=>{if((p??r.locale??n())==="zh")return DKe(e);return EKe(e)};var OKe=(e)=>`max ${e?.count}`,NKe=(e)=>`最大 ${e?.count}`,ex=(e,r={})=>{if((p??r.locale??n())==="zh")return NKe(e);return OKe(e)};var FKe=()=>"Auto-Detect (Default)",jKe=()=>"自动检测 (默认)",tx=(e={},r={})=>{if((p??r.locale??n())==="zh")return jKe(e);return FKe(e)};var BKe=()=>"Bearer Token",UKe=()=>"Bearer 令牌",rx=(e={},r={})=>{if((p??r.locale??n())==="zh")return UKe(e);return BKe(e)};var YKe=()=>"Failed to authenticate MCP server",qKe=()=>"MCP 服务身份验证失败",np=(e={},r={})=>{if((p??r.locale??n())==="zh")return qKe(e);return YKe(e)};var HKe=()=>"None",VKe=()=>"无",nx=(e={},r={})=>{if((p??r.locale??n())==="zh")return VKe(e);return HKe(e)};var WKe=()=>"OAuth 2.0",GKe=()=>"OAuth 2.0",ox=(e={},r={})=>{if((p??r.locale??n())==="zh")return GKe(e);return WKe(e)};var KKe=()=>"MCP server authenticated successfully",XKe=()=>"MCP 服务身份验证成功",Qh=(e={},r={})=>{if((p??r.locale??n())==="zh")return XKe(e);return KKe(e)};var QKe=()=>"Authentication Type",JKe=()=>"身份验证类型",sx=(e={},r={})=>{if((p??r.locale??n())==="zh")return JKe(e);return QKe(e)};var $Ke=()=>"Bearer Token",eXe=()=>"Bearer 令牌",ix=(e={},r={})=>{if((p??r.locale??n())==="zh")return eXe(e);return $Ke(e)};var tXe=()=>"All Direct",rXe=()=>"全部直连",ax=(e={},r={})=>{if((p??r.locale??n())==="zh")return rXe(e);return tXe(e)};var oXe=()=>"All Off",aXe=()=>"全部关闭",lx=(e={},r={})=>{if((p??r.locale??n())==="zh")return aXe(e);return oXe(e)};var nXe=()=>"All Proxy",iXe=()=>"全部代理",cx=(e={},r={})=>{if((p??r.locale??n())==="zh")return iXe(e);return nXe(e)};var fXe=()=>"Connect Account",sXe=()=>"连接账号",Kh=(e={},r={})=>{if((p??r.locale??n())==="zh")return sXe(e);return fXe(e)};var lXe=()=>"Disconnect Auth",cXe=()=>"断开身份验证",Wh=(e={},r={})=>{if((p??r.locale??n())==="zh")return cXe(e);return lXe(e)};var uXe=()=>"Client ID",dXe=()=>"Client ID",ux=(e={},r={})=>{if((p??r.locale??n())==="zh")return dXe(e);return uXe(e)};var ZXe=()=>"Client Secret",pXe=()=>"Client Secret",dx=(e={},r={})=>{if((p??r.locale??n())==="zh")return pXe(e);return ZXe(e)};var mXe=()=>"Grant Type",hXe=()=>"授权模式 (Grant Type)",fx=(e={},r={})=>{if((p??r.locale??n())==="zh")return hXe(e);return mXe(e)};var gXe=()=>"Scope",MXe=()=>"作用域 (Scope)",px=(e={},r={})=>{if((p??r.locale??n())==="zh")return MXe(e);return gXe(e)};var xXe=()=>"Refresh Server",vXe=()=>"刷新服务器",Yh=(e={},r={})=>{if((p??r.locale??n())==="zh")return vXe(e);return xXe(e)};var yXe=()=>"Server refreshed",_Xe=()=>"服务器已刷新",mx=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Xe(e);return yXe(e)};var bXe=()=>"Name and description are auto-detected from the server after connecting.",wXe=()=>"连接后将自动从服务端获取名称和描述。",Jh=(e={},r={})=>{if((p??r.locale??n())==="zh")return wXe(e);return bXe(e)};var zXe=()=>"Server Instructions",SXe=()=>"服务器说明",hx=(e={},r={})=>{if((p??r.locale??n())==="zh")return SXe(e);return zXe(e)};var LXe=()=>"Server Name",kXe=()=>"服务名称",gx=(e={},r={})=>{if((p??r.locale??n())==="zh")return kXe(e);return LXe(e)};var CXe=()=>"Endpoint URL",IXe=()=>"Endpoint URL",Xh=(e={},r={})=>{if((p??r.locale??n())==="zh")return IXe(e);return CXe(e)};var RXe=()=>"MCP Servers",PXe=()=>"MCP 服务",Qc=(e={},r={})=>{if((p??r.locale??n())==="zh")return PXe(e);return RXe(e)};var TXe=()=>"Configure Model Context Protocol (MCP) servers and tools for your team.",AXe=()=>"为团队配置 Model Context Protocol (MCP) 服务与工具。",Cd=(e={},r={})=>{if((p??r.locale??n())==="zh")return AXe(e);return TXe(e)};var EXe=()=>"Connected",DXe=()=>"已连接",Ax=(e={},r={})=>{if((p??r.locale??n())==="zh")return DXe(e);return EXe(e)};var OXe=()=>"Failed",NXe=()=>"连接失败",_x=(e={},r={})=>{if((p??r.locale??n())==="zh")return NXe(e);return OXe(e)};var FXe=()=>"Needs Authentication",jXe=()=>"需要身份验证",eg=(e={},r={})=>{if((p??r.locale??n())==="zh")return jXe(e);return FXe(e)};var BXe=()=>"Not Connected",UXe=()=>"未连接",yx=(e={},r={})=>{if((p??r.locale??n())==="zh")return UXe(e);return BXe(e)};var YXe=()=>"Direct",qXe=()=>"直连",bx=(e={},r={})=>{if((p??r.locale??n())==="zh")return qXe(e);return YXe(e)};var HXe=()=>"Off",VXe=()=>"关闭",vx=(e={},r={})=>{if((p??r.locale??n())==="zh")return VXe(e);return HXe(e)};var WXe=()=>"Proxy",GXe=()=>"代理",wx=(e={},r={})=>{if((p??r.locale??n())==="zh")return GXe(e);return WXe(e)};var KXe=()=>"MCP Tools",XXe=()=>"MCP 工具",xx=(e={},r={})=>{if((p??r.locale??n())==="zh")return XXe(e);return KXe(e)};var QXe=(e)=>`${e?.count} Tools`,JXe=(e)=>`${e?.count} 个工具`,Sx=(e,r={})=>{if((p??r.locale??n())==="zh")return JXe(e);return QXe(e)};var $Xe=()=>"Configure how MCP tools are exposed to the agent. Proxy mode keeps context usage low by hiding tools behind an MCP proxy, while Direct mode exposes selected tools as native agent tools for better discovery and faster access. Use Direct mode for frequently used or critical tools, and keep large MCP servers behind the proxy to avoid unnecessary context overhead.",eQe=()=>"配置 MCP 工具向 Agent 的暴露方式。代理模式通过 MCP 代理隐匿工具,以保持较低的上下文占用;直连模式将选定工具直接作为 Agent 原生工具暴露,便于更好地发现与更快地调用。建议对高频或关键工具使用直连模式,对于大型 MCP 服务保持代理模式以避免不必要的上下文开销。",Ex=(e={},r={})=>{if((p??r.locale??n())==="zh")return eQe(e);return $Xe(e)};var tQe=()=>"Transport Protocol",rQe=()=>"传输协议",Cx=(e={},r={})=>{if((p??r.locale??n())==="zh")return rQe(e);return tQe(e)};var oQe=()=>"Configure providers and enabled models for built-in image and video generation tools.",aQe=()=>"配置内置图像和视频生成工具的提供商与已启用模型。",Ix=(e={},r={})=>{if((p??r.locale??n())==="zh")return aQe(e);return oQe(e)};var nQe=()=>"Media is not available.",iQe=()=>"媒体不可用。",Tx=(e={},r={})=>{if((p??r.locale??n())==="zh")return iQe(e);return nQe(e)};var fQe=()=>"Media processing failed",sQe=()=>"媒体处理失败",tg=(e={},r={})=>{if((p??r.locale??n())==="zh")return sQe(e);return fQe(e)};var lQe=()=>"An error occurred while processing this media file. You can still download the original file.",cQe=()=>"处理此媒体文件时发生错误。您仍可以下载原始文件。",rg=(e={},r={})=>{if((p??r.locale??n())==="zh")return cQe(e);return lQe(e)};var uQe=()=>"Media Providers",dQe=()=>"媒体提供商",Mx=(e={},r={})=>{if((p??r.locale??n())==="zh")return dQe(e);return uQe(e)};var ZQe=()=>"Configure API keys for built-in media generation providers. Providers can use environment variables or custom keys.",pQe=()=>"为内置媒体生成提供商配置 API 密钥。提供商可以使用环境变量或自定义密钥。",kx=(e={},r={})=>{if((p??r.locale??n())==="zh")return pQe(e);return ZQe(e)};var mQe=()=>"Image",hQe=()=>"图像",op=(e={},r={})=>{if((p??r.locale??n())==="zh")return hQe(e);return mQe(e)};var gQe=()=>"Video",MQe=()=>"视频",sp=(e={},r={})=>{if((p??r.locale??n())==="zh")return MQe(e);return gQe(e)};var xQe=()=>"Member removed",vQe=()=>"成员已移除",Rx=(e={},r={})=>{if((p??r.locale??n())==="zh")return vQe(e);return xQe(e)};var yQe=()=>"Member role updated",_Qe=()=>"成员角色已更新",Px=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Qe(e);return yQe(e)};var bQe=()=>"Members",wQe=()=>"成员",Nx=(e={},r={})=>{if((p??r.locale??n())==="zh")return wQe(e);return bQe(e)};var zQe=()=>"Members",SQe=()=>"成员",Dx=(e={},r={})=>{if((p??r.locale??n())==="zh")return SQe(e);return zQe(e)};var LQe=()=>"Message...",kQe=()=>"发送消息...",Ox=(e={},r={})=>{if((p??r.locale??n())==="zh")return kQe(e);return LQe(e)};var CQe=()=>"Model",IQe=()=>"模型",Fx=(e={},r={})=>{if((p??r.locale??n())==="zh")return IQe(e);return CQe(e)};var RQe=()=>"Model created successfully",PQe=()=>"模型创建成功",Lx=(e={},r={})=>{if((p??r.locale??n())==="zh")return PQe(e);return RQe(e)};var TQe=()=>"Model deleted successfully",AQe=()=>"模型删除成功",Zx=(e={},r={})=>{if((p??r.locale??n())==="zh")return AQe(e);return TQe(e)};var EQe=()=>"Model ID",DQe=()=>"模型 ID",ng=(e={},r={})=>{if((p??r.locale??n())==="zh")return DQe(e);return EQe(e)};var OQe=()=>"Model ID already exists for this provider",NQe=()=>"此提供商已存在该模型 ID",Bx=(e={},r={})=>{if((p??r.locale??n())==="zh")return NQe(e);return OQe(e)};var FQe=()=>"e.g., gpt-4o, claude-3-5-sonnet-20241022",jQe=()=>"例如:gpt-4o, claude-3-5-sonnet-20241022",Ux=(e={},r={})=>{if((p??r.locale??n())==="zh")return jQe(e);return FQe(e)};var BQe=()=>"Model is required",UQe=()=>"模型为必填项",zx=(e={},r={})=>{if((p??r.locale??n())==="zh")return UQe(e);return BQe(e)};var YQe=()=>"e.g., GPT-4o",qQe=()=>"例如:GPT-4o",jx=(e={},r={})=>{if((p??r.locale??n())==="zh")return qQe(e);return YQe(e)};var HQe=()=>"Model updated successfully",VQe=()=>"模型更新成功",qx=(e={},r={})=>{if((p??r.locale??n())==="zh")return VQe(e);return HQe(e)};var WQe=()=>"Models",GQe=()=>"模型列表",Id=(e={},r={})=>{if((p??r.locale??n())==="zh")return GQe(e);return WQe(e)};var KQe=()=>"Models Configuration",XQe=()=>"模型配置",Hx=(e={},r={})=>{if((p??r.locale??n())==="zh")return XQe(e);return KQe(e)};var QQe=()=>"More options",JQe=()=>"更多选项",ip=(e={},r={})=>{if((p??r.locale??n())==="zh")return JQe(e);return QQe(e)};var $Qe=()=>"Move to",eJe=()=>"移动到",og=(e={},r={})=>{if((p??r.locale??n())==="zh")return eJe(e);return $Qe(e)};var tJe=(e)=>`Moving ${e?.count} item(s)`,rJe=(e)=>`正在移动 ${e?.count} 个项目`,$x=(e,r={})=>{if((p??r.locale??n())==="zh")return rJe(e);return tJe(e)};var oJe=()=>"MP4 Transcoding",aJe=()=>"MP4 转码",Gx=(e={},r={})=>{if((p??r.locale??n())==="zh")return aJe(e);return oJe(e)};var nJe=()=>"Generate web-compatible MP4 files for file downloads and standard video playback.",iJe=()=>"生成适用于文件下载和标准视频播放的 Web 兼容 MP4 文件。",Vx=(e={},r={})=>{if((p??r.locale??n())==="zh")return iJe(e);return nJe(e)};var fJe=()=>"Multi resolutions",sJe=()=>"多分辨率",Qx=(e={},r={})=>{if((p??r.locale??n())==="zh")return sJe(e);return fJe(e)};var lJe=()=>"Generates selected resolutions up to the source quality.",cJe=()=>"生成选中的不超过源质量的分辨率。",Kx=(e={},r={})=>{if((p??r.locale??n())==="zh")return cJe(e);return lJe(e)};var uJe=()=>"My Tasks",dJe=()=>"我的任务",Wx=(e={},r={})=>{if((p??r.locale??n())==="zh")return dJe(e);return uJe(e)};var ZJe=(e)=>`${e?.count} Assets`,pJe=(e)=>`${e?.count} 个资源`,ap=(e,r={})=>{if((p??r.locale??n())==="zh")return pJe(e);return ZJe(e)};var mJe=(e)=>`${e?.count} assets selected`,hJe=(e)=>`已选择 ${e?.count} 个资产`,gJe=(e,r={})=>{if((p??r.locale??n())==="zh")return hJe(e);return mJe(e)};var MJe=(e)=>`${e?.count} Asset`,xJe=(e)=>`${e?.count} 个资源`,lp=(e,r={})=>{if((p??r.locale??n())==="zh")return xJe(e);return MJe(e)};var vJe=(e)=>`${e?.count} days ago`,yJe=(e)=>`${e?.count} 天前`,Lle=(e,r={})=>{if((p??r.locale??n())==="zh")return yJe(e);return vJe(e)};var _Je=(e)=>`${e?.count} day ago`,bJe=(e)=>`${e?.count} 天前`,kle=(e,r={})=>{if((p??r.locale??n())==="zh")return bJe(e);return _Je(e)};var wJe=(e)=>`${e?.count} days left before permanent deletion`,zJe=(e)=>`永久删除前还剩 ${e?.count} 天`,sg=(e,r={})=>{if((p??r.locale??n())==="zh")return zJe(e);return wJe(e)};var SJe=(e)=>`${e?.count} day left before permanent deletion`,LJe=(e)=>`永久删除前还剩 ${e?.count} 天`,ig=(e,r={})=>{if((p??r.locale??n())==="zh")return LJe(e);return SJe(e)};var kJe=(e)=>`${e?.count} Folders`,CJe=(e)=>`${e?.count} 个文件夹`,cp=(e,r={})=>{if((p??r.locale??n())==="zh")return CJe(e);return kJe(e)};var IJe=(e)=>`${e?.count} Folder`,RJe=(e)=>`${e?.count} 个文件夹`,up=(e,r={})=>{if((p??r.locale??n())==="zh")return RJe(e);return IJe(e)};var PJe=(e)=>`${e?.count} Items`,TJe=(e)=>`${e?.count} 个项目`,ag=(e,r={})=>{if((p??r.locale??n())==="zh")return TJe(e);return PJe(e)};var AJe=(e)=>`${e?.count} Item`,EJe=(e)=>`${e?.count} 个项目`,lg=(e,r={})=>{if((p??r.locale??n())==="zh")return EJe(e);return AJe(e)};var DJe=(e)=>`${e?.count} Models`,OJe=(e)=>`${e?.count} 个模型`,Yx=(e,r={})=>{if((p??r.locale??n())==="zh")return OJe(e);return DJe(e)};var NJe=(e)=>`${e?.count} tasks`,FJe=(e)=>`${e?.count} 个任务`,jJe=(e,r={})=>{if((p??r.locale??n())==="zh")return FJe(e);return NJe(e)};var BJe=(e)=>`${e?.count} task`,UJe=(e)=>`${e?.count} 个任务`,YJe=(e,r={})=>{if((p??r.locale??n())==="zh")return UJe(e);return BJe(e)};var qJe=()=>"Name",HJe=()=>"名称",Il=(e={},r={})=>{if((p??r.locale??n())==="zh")return HJe(e);return qJe(e)};var VJe=()=>"Name is required",WJe=()=>"名称为必填项",Jx=(e={},r={})=>{if((p??r.locale??n())==="zh")return WJe(e);return VJe(e)};var GJe=()=>"John Doe",KJe=()=>"张三",Xx=(e={},r={})=>{if((p??r.locale??n())==="zh")return KJe(e);return GJe(e)};var XJe=()=>"You need at least one project in your team to upload skills.",QJe=()=>"您的团队中至少需要一个项目才能上传技能。",eS=(e={},r={})=>{if((p??r.locale??n())==="zh")return QJe(e);return XJe(e)};var JJe=()=>"Network Sandbox",$Je=()=>"网络沙箱",tS=(e={},r={})=>{if((p??r.locale??n())==="zh")return $Je(e);return JJe(e)};var e$e=()=>"Configure domain access controls for the sandboxed agent.",t$e=()=>"配置沙箱智能体的域名访问控制。",rS=(e={},r={})=>{if((p??r.locale??n())==="zh")return t$e(e);return e$e(e)};var r$e=()=>"Network Sandbox is currently OFF. All outbound network requests from agent scripts are permitted without restrictions.",o$e=()=>"网络沙箱目前处于关闭状态。智能体脚本的所有出站网络请求均不受限制。",nS=(e={},r={})=>{if((p??r.locale??n())==="zh")return o$e(e);return r$e(e)};var a$e=()=>"When enabled, network requests from the agent are restricted to allowed domains. When disabled, all network requests are permitted.",n$e=()=>"启用后,智能体的网络请求将受限于允许的域名列表。禁用时,允许所有网络请求。",oS=(e={},r={})=>{if((p??r.locale??n())==="zh")return n$e(e);return a$e(e)};var i$e=()=>"New Chat",f$e=()=>"开启新会话",cg=(e={},r={})=>{if((p??r.locale??n())==="zh")return f$e(e);return i$e(e)};var s$e=()=>"New Field",l$e=()=>"新建字段",sS=(e={},r={})=>{if((p??r.locale??n())==="zh")return l$e(e);return s$e(e)};var c$e=()=>"New Field",u$e=()=>"新字段",iS=(e={},r={})=>{if((p??r.locale??n())==="zh")return u$e(e);return c$e(e)};var d$e=()=>"New Folder",Z$e=()=>"新建文件夹",Tl=(e={},r={})=>{if((p??r.locale??n())==="zh")return Z$e(e);return d$e(e)};var p$e=()=>"New Goal",m$e=()=>"新建目标",ug=(e={},r={})=>{if((p??r.locale??n())==="zh")return m$e(e);return p$e(e)};var h$e=()=>"New",g$e=()=>"新建",aS=(e={},r={})=>{if((p??r.locale??n())==="zh")return g$e(e);return h$e(e)};var M$e=()=>"New Option",x$e=()=>"新选项",Td=(e={},r={})=>{if((p??r.locale??n())==="zh")return x$e(e);return M$e(e)};var v$e=()=>"New Password",y$e=()=>"新密码",lS=(e={},r={})=>{if((p??r.locale??n())==="zh")return y$e(e);return v$e(e)};var _$e=()=>"Enter new password",b$e=()=>"输入新密码",cS=(e={},r={})=>{if((p??r.locale??n())==="zh")return b$e(e);return _$e(e)};var w$e=()=>"Next file",z$e=()=>"下一个文件",dg=(e={},r={})=>{if((p??r.locale??n())==="zh")return z$e(e);return w$e(e)};var S$e=()=>"Next Page",L$e=()=>"下一页",uS=(e={},r={})=>{if((p??r.locale??n())==="zh")return L$e(e);return S$e(e)};var k$e=()=>"Don't have an account? ",C$e=()=>"还没有账户?",I$e=(e={},r={})=>{if((p??r.locale??n())==="zh")return C$e(e);return k$e(e)};var R$e=()=>"No activity recorded yet",P$e=()=>"暂无活动记录",T$e=(e={},r={})=>{if((p??r.locale??n())==="zh")return P$e(e);return R$e(e)};var A$e=(e)=>`No ${e?.type} agents found`,E$e=(e)=>`未找到${e?.type}智能体`,dS=(e,r={})=>{if((p??r.locale??n())==="zh")return E$e(e);return A$e(e)};var D$e=()=>"No API tokens found. Generate one above to get started.",O$e=()=>"未找到 API 令牌。请在上方生成一个以开始使用。",fS=(e={},r={})=>{if((p??r.locale??n())==="zh")return O$e(e);return D$e(e)};var N$e=()=>"No assets in this folder",F$e=()=>"此文件夹中没有资产",j$e=(e={},r={})=>{if((p??r.locale??n())==="zh")return F$e(e);return N$e(e)};var B$e=()=>"No audit logs found",U$e=()=>"未找到审计日志",pS=(e={},r={})=>{if((p??r.locale??n())==="zh")return U$e(e);return B$e(e)};var Y$e=()=>"No chat agents found. Please create a Chat Agent below first.",q$e=()=>"未找到聊天智能体。请先在下方创建聊天智能体。",mS=(e={},r={})=>{if((p??r.locale??n())==="zh")return q$e(e);return Y$e(e)};var H$e=()=>"No collections created yet.",V$e=()=>"暂无媒体合集。",hS=(e={},r={})=>{if((p??r.locale??n())==="zh")return V$e(e);return H$e(e)};var W$e=()=>"No comments yet",G$e=()=>"暂无评论",fg=(e={},r={})=>{if((p??r.locale??n())==="zh")return G$e(e);return W$e(e)};var K$e=()=>"No custom domains allowed",X$e=()=>"没有自定义允许域名",gS=(e={},r={})=>{if((p??r.locale??n())==="zh")return X$e(e);return K$e(e)};var Q$e=()=>"No description provided.",J$e=()=>"暂无描述。",pg=(e={},r={})=>{if((p??r.locale??n())==="zh")return J$e(e);return Q$e(e)};var $$e=()=>'No environment variables found. Click "Add Variable" to create one.',eet=()=>'未找到环境变量。点击"添加变量"创建一个。',AS=(e={},r={})=>{if((p??r.locale??n())==="zh")return eet(e);return $$e(e)};var tet=()=>"No fields found",ret=()=>"未找到字段",_S=(e={},r={})=>{if((p??r.locale??n())==="zh")return ret(e);return tet(e)};var oet=()=>"No folder selected",aet=()=>"未选择文件夹",net=(e={},r={})=>{if((p??r.locale??n())==="zh")return aet(e);return oet(e)};var iet=()=>"No Folder Structure",fet=()=>"无文件夹结构",mg=(e={},r={})=>{if((p??r.locale??n())==="zh")return fet(e);return iet(e)};var set=()=>"No goals yet",cet=()=>"暂无目标",yS=(e={},r={})=>{if((p??r.locale??n())==="zh")return cet(e);return set(e)};var uet=()=>"No chat history found.",det=()=>"暂无历史会话记录",bS=(e={},r={})=>{if((p??r.locale??n())==="zh")return det(e);return uet(e)};var Zet=()=>"No item selected",pet=()=>"未选择项目",vS=(e={},r={})=>{if((p??r.locale??n())==="zh")return pet(e);return Zet(e)};var met=()=>"No tasks linked to this asset",het=()=>"该资产暂无关联任务",get=(e={},r={})=>{if((p??r.locale??n())==="zh")return het(e);return met(e)};var Met=()=>"No logs found for this session.",xet=()=>"未找到此会话的日志。",wS=(e={},r={})=>{if((p??r.locale??n())==="zh")return xet(e);return Met(e)};var vet=()=>"No matches found",yet=()=>"未找到匹配结果",hg=(e={},r={})=>{if((p??r.locale??n())==="zh")return yet(e);return vet(e)};var _et=()=>"No matching tasks found",bet=()=>"未找到匹配的任务",Cle=(e={},r={})=>{if((p??r.locale??n())==="zh")return bet(e);return _et(e)};var wet=()=>"No MCP servers configured",zet=()=>"暂未配置 MCP 服务",gg=(e={},r={})=>{if((p??r.locale??n())==="zh")return zet(e);return wet(e)};var Let=()=>"No models found",ket=()=>"未找到模型",Md=(e={},r={})=>{if((p??r.locale??n())==="zh")return ket(e);return Let(e)};var Cet=()=>"No notifications",Iet=()=>"暂无通知",Ret=(e={},r={})=>{if((p??r.locale??n())==="zh")return Iet(e);return Cet(e)};var Pet=()=>"No options found",Tet=()=>"未找到选项",Ag=(e={},r={})=>{if((p??r.locale??n())==="zh")return Tet(e);return Pet(e)};var Aet=()=>"No pending domains requiring approval",Eet=()=>"没有待审核的域名",xS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Eet(e);return Aet(e)};var Det=()=>"No project selected",Oet=()=>"未选择项目",Ile=(e={},r={})=>{if((p??r.locale??n())==="zh")return Oet(e);return Det(e)};var Net=()=>"No Providers Configured",Fet=()=>"暂无已配置的提供商",SS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fet(e);return Net(e)};var jet=()=>"No providers found",Bet=()=>"未找到提供商",ES=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bet(e);return jet(e)};var Uet=()=>"Set limits on AI tokens, costs, skill executions, and agent tool calls to manage team usage.",Yet=()=>"为 AI Token、费用、MCP 服务和智能体工具调用设置限制,以便管理团队的使用情况。",dp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Yet(e);return Uet(e)};var qet=()=>"No resource quotas configured",Het=()=>"暂未配置资源配额",fp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Het(e);return qet(e)};var Vet=()=>"No recently viewed files",Wet=()=>"暂无最近浏览文件",pp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wet(e);return Vet(e)};var Get=()=>"Files you view in this project will appear here.",Ket=()=>"您在此项目中查看的文件将显示在此处。",mp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ket(e);return Get(e)};var Xet=()=>"No records matched your criteria",Qet=()=>"没有记录匹配您的条件",CS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Qet(e);return Xet(e)};var Jet=()=>"No related assets linked",$et=()=>"暂无关联资产",ett=(e={},r={})=>{if((p??r.locale??n())==="zh")return $et(e);return Jet(e)};var ttt=()=>"No sessions found",rtt=()=>"未找到会话",IS=(e={},r={})=>{if((p??r.locale??n())==="zh")return rtt(e);return ttt(e)};var ott=()=>"No share links created yet.",att=()=>"暂无分享链接。",TS=(e={},r={})=>{if((p??r.locale??n())==="zh")return att(e);return ott(e)};var ntt=()=>"No skills available.",itt=()=>"暂无可用技能。",MS=(e={},r={})=>{if((p??r.locale??n())==="zh")return itt(e);return ntt(e)};var ftt=()=>"No skills installed",stt=()=>"暂无已安装的技能",kS=(e={},r={})=>{if((p??r.locale??n())==="zh")return stt(e);return ftt(e)};var ltt=()=>"No tasks in this column",ctt=()=>"该列暂无任务",RS=(e={},r={})=>{if((p??r.locale??n())==="zh")return ctt(e);return ltt(e)};var utt=()=>"No saved templates",dtt=()=>"没有保存的模板",PS=(e={},r={})=>{if((p??r.locale??n())==="zh")return dtt(e);return utt(e)};var Ztt=()=>"No tools found matching your search.",ptt=()=>"未找到符合搜索条件的工具。",NS=(e={},r={})=>{if((p??r.locale??n())==="zh")return ptt(e);return Ztt(e)};var mtt=()=>"Upload files in the project view to track progress here.",htt=()=>"在项目视图中上传文件以在此处跟踪进度。",gtt=(e={},r={})=>{if((p??r.locale??n())==="zh")return htt(e);return mtt(e)};var Mtt=()=>"No uploads yet",xtt=()=>"暂无上传",vtt=(e={},r={})=>{if((p??r.locale??n())==="zh")return xtt(e);return Mtt(e)};var ytt=()=>"No versions found",_tt=()=>"暂无版本",btt=(e={},r={})=>{if((p??r.locale??n())==="zh")return _tt(e);return ytt(e)};var wtt=()=>"No watermark blocks added yet",ztt=()=>"尚未添加水印块",DS=(e={},r={})=>{if((p??r.locale??n())==="zh")return ztt(e);return wtt(e)};var Stt=()=>"Notification",Ltt=()=>"通知",OS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ltt(e);return Stt(e)};var ktt=(e)=>`${e?.creator} commented on ${e?.asset}`,Ctt=(e)=>`${e?.creator} 评论了 ${e?.asset}`,Itt=(e,r={})=>{if((p??r.locale??n())==="zh")return Ctt(e);return ktt(e)};var Rtt=(e)=>`New notification from ${e?.creator}`,Ptt=(e)=>`来自 ${e?.creator} 的新通知`,Ttt=(e,r={})=>{if((p??r.locale??n())==="zh")return Ptt(e);return Rtt(e)};var Att=(e)=>`${e?.user} joined ${e?.project}`,Ett=(e)=>`${e?.user} 加入了 ${e?.project}`,Dtt=(e,r={})=>{if((p??r.locale??n())==="zh")return Ett(e);return Att(e)};var Ott=(e)=>`${e?.user} joined ${e?.team}`,Ntt=(e)=>`${e?.user} 加入了 ${e?.team}`,Ftt=(e,r={})=>{if((p??r.locale??n())==="zh")return Ntt(e);return Ott(e)};var jtt=(e)=>`${e?.creator} assigned you to task ${e?.task}`,Btt=(e)=>`${e?.creator} 将任务 ${e?.task} 分配给了你`,Utt=(e,r={})=>{if((p??r.locale??n())==="zh")return Btt(e);return jtt(e)};var Ytt=(e)=>`${e?.creator} commented on task ${e?.task}`,qtt=(e)=>`${e?.creator} 评论了任务 ${e?.task}`,Htt=(e,r={})=>{if((p??r.locale??n())==="zh")return qtt(e);return Ytt(e)};var Vtt=(e)=>`${e?.creator} created task ${e?.task}`,Wtt=(e)=>`${e?.creator} 创建了任务 ${e?.task}`,Gtt=(e,r={})=>{if((p??r.locale??n())==="zh")return Wtt(e);return Vtt(e)};var Ktt=(e)=>`${e?.creator} deleted task ${e?.task}`,Xtt=(e)=>`${e?.creator} 删除了任务 ${e?.task}`,Qtt=(e,r={})=>{if((p??r.locale??n())==="zh")return Xtt(e);return Ktt(e)};var Jtt=(e)=>`${e?.creator} updated status of task ${e?.task}`,$tt=(e)=>`${e?.creator} 更新了任务 ${e?.task} 的状态`,ert=(e,r={})=>{if((p??r.locale??n())==="zh")return $tt(e);return Jtt(e)};var trt=(e)=>`${e?.creator} updated task ${e?.task}`,rrt=(e)=>`${e?.creator} 更新了任务 ${e?.task}`,ort=(e,r={})=>{if((p??r.locale??n())==="zh")return rrt(e);return trt(e)};var art=(e)=>`${e?.creator} mentioned you in ${e?.asset}`,nrt=(e)=>`${e?.creator} 在 ${e?.asset} 中提及了你`,irt=(e,r={})=>{if((p??r.locale??n())==="zh")return nrt(e);return art(e)};var frt=(e)=>`${e?.creator} mentioned you in task ${e?.task}`,srt=(e)=>`${e?.creator} 在任务 ${e?.task} 中提及了你`,lrt=(e,r={})=>{if((p??r.locale??n())==="zh")return srt(e);return frt(e)};var crt=(e)=>`${e?.creator} replied to a comment on ${e?.asset}`,urt=(e)=>`${e?.creator} 回复了 ${e?.asset} 上的评论`,drt=(e,r={})=>{if((p??r.locale??n())==="zh")return urt(e);return crt(e)};var Zrt=()=>"Notification Settings",prt=()=>"通知设置",FS=(e={},r={})=>{if((p??r.locale??n())==="zh")return prt(e);return Zrt(e)};var mrt=()=>"Notification settings updated",hrt=()=>"通知设置已更新",LS=(e={},r={})=>{if((p??r.locale??n())==="zh")return hrt(e);return mrt(e)};var grt=(e)=>`${e?.creator} updated status of ${e?.asset}`,Mrt=(e)=>`${e?.creator} 更新了 ${e?.asset} 的状态`,xrt=(e,r={})=>{if((p??r.locale??n())==="zh")return Mrt(e);return grt(e)};var vrt=(e)=>`${e?.creator} uploaded ${e?.asset} to ${e?.project}`,yrt=(e)=>`${e?.creator} 将 ${e?.asset} 上传到 ${e?.project}`,_rt=(e,r={})=>{if((p??r.locale??n())==="zh")return yrt(e);return vrt(e)};var brt=()=>"Notifications",wrt=()=>"通知",_g=(e={},r={})=>{if((p??r.locale??n())==="zh")return wrt(e);return brt(e)};var zrt=()=>"Configure your personal notification preferences for this team.",Srt=()=>"配置您在此团队的个人通知偏好。",ZS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Srt(e);return zrt(e)};var Lrt=()=>"Only team owners can access the dashboard.",krt=()=>"只有团队所有者才能访问仪表盘。",BS=(e={},r={})=>{if((p??r.locale??n())==="zh")return krt(e);return Lrt(e)};var Crt=()=>"Only .zip files are supported.",Irt=()=>"仅支持 .zip 文件。",US=(e={},r={})=>{if((p??r.locale??n())==="zh")return Irt(e);return Crt(e)};var Rrt=()=>"Opacity",Prt=()=>"透明度",zS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Prt(e);return Rrt(e)};var Trt=()=>"Open a supported file to add markup",Art=()=>"打开支持的文件以添加标注",jS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Art(e);return Trt(e)};var Ert=()=>"Open Share Link",Drt=()=>"打开分享链接",qS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Drt(e);return Ert(e)};var Ort=()=>"Operator",Nrt=()=>"运算符",HS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Nrt(e);return Ort(e)};var Frt=()=>"contains",jrt=()=>"包含",$S=(e={},r={})=>{if((p??r.locale??n())==="zh")return jrt(e);return Frt(e)};var Brt=()=>"does not contain",Urt=()=>"不包含",GS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Urt(e);return Brt(e)};var Yrt=()=>"has all of",qrt=()=>"含有全部",VS=(e={},r={})=>{if((p??r.locale??n())==="zh")return qrt(e);return Yrt(e)};var Hrt=()=>"has any of",Vrt=()=>"含有其中之一",QS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vrt(e);return Hrt(e)};var Wrt=()=>"has none of",Grt=()=>"不含有其中任何",KS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Grt(e);return Wrt(e)};var Krt=()=>"is",Xrt=()=>"是",Ml=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xrt(e);return Krt(e)};var Qrt=()=>"is after",Jrt=()=>"在之后",WS=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jrt(e);return Qrt(e)};var $rt=()=>"is any of",eot=()=>"是其中之一",YS=(e={},r={})=>{if((p??r.locale??n())==="zh")return eot(e);return $rt(e)};var tot=()=>"is before",rot=()=>"在之前",JS=(e={},r={})=>{if((p??r.locale??n())==="zh")return rot(e);return tot(e)};var oot=()=>"is empty",aot=()=>"为空",kl=(e={},r={})=>{if((p??r.locale??n())==="zh")return aot(e);return oot(e)};var not=()=>"is exactly",iot=()=>"完全匹配",XS=(e={},r={})=>{if((p??r.locale??n())==="zh")return iot(e);return not(e)};var fot=()=>"is none of",sot=()=>"不在其中",eE=(e={},r={})=>{if((p??r.locale??n())==="zh")return sot(e);return fot(e)};var lot=()=>"is not",cot=()=>"不是",kd=(e={},r={})=>{if((p??r.locale??n())==="zh")return cot(e);return lot(e)};var uot=()=>"is not empty",dot=()=>"不为空",Rl=(e={},r={})=>{if((p??r.locale??n())==="zh")return dot(e);return uot(e)};var Zot=()=>"is on or after",pot=()=>"在当天或之后",tE=(e={},r={})=>{if((p??r.locale??n())==="zh")return pot(e);return Zot(e)};var mot=()=>"is on or before",hot=()=>"在当天或之前",rE=(e={},r={})=>{if((p??r.locale??n())==="zh")return hot(e);return mot(e)};var got=()=>"is within",Mot=()=>"在范围内",nE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Mot(e);return got(e)};var xot=()=>"Option name",vot=()=>"选项名称",hp=(e={},r={})=>{if((p??r.locale??n())==="zh")return vot(e);return xot(e)};var yot=()=>"Optional default value...",_ot=()=>"可选默认值...",oE=(e={},r={})=>{if((p??r.locale??n())==="zh")return _ot(e);return yot(e)};var bot=()=>"Options",wot=()=>"选项",Rd=(e={},r={})=>{if((p??r.locale??n())==="zh")return wot(e);return bot(e)};var zot=()=>"OR",Sot=()=>"或",yg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Sot(e);return zot(e)};var Lot=()=>"Order",kot=()=>"顺序",gp=(e={},r={})=>{if((p??r.locale??n())==="zh")return kot(e);return Lot(e)};var Cot=()=>"Original",Iot=()=>"原始",La=(e={},r={})=>{if((p??r.locale??n())==="zh")return Iot(e);return Cot(e)};var Rot=()=>"Other Uploads",Pot=()=>"其他上传",sE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Pot(e);return Rot(e)};var Tot=()=>"Output Cost (1M)",Aot=()=>"输出成本(每百万)",iE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Aot(e);return Tot(e)};var Eot=()=>"Output Tokens",Dot=()=>"输出 Token",bg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Dot(e);return Eot(e)};var Oot=()=>"Override the default endpoint.",Not=()=>"覆盖默认端点。",vg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Not(e);return Oot(e)};var Fot=()=>"Do you want to override the existing skill?",jot=()=>"你想覆盖现有技能吗?",aE=(e={},r={})=>{if((p??r.locale??n())==="zh")return jot(e);return Fot(e)};var Bot=()=>"Overwrite Existing Template",Uot=()=>"覆盖现有模板",wg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Uot(e);return Bot(e)};var Yot=()=>"Owner",qot=()=>"管理员",Kc=(e={},r={})=>{if((p??r.locale??n())==="zh")return qot(e);return Yot(e)};var Hot=()=>"Package Upload",Vot=()=>"包上传",lE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vot(e);return Hot(e)};var Wot=()=>"Packages must contain a SKILL.md",Got=()=>"包必须包含 SKILL.md",cE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Got(e);return Wot(e)};var Kot=(e)=>`Page ${e?.current} of ${e?.total}`,Xot=(e)=>`第 ${e?.current} / ${e?.total} 页`,uE=(e,r={})=>{if((p??r.locale??n())==="zh")return Xot(e);return Kot(e)};var Qot=(e)=>`Page ${e?.page}`,Jot=(e)=>`第 ${e?.page} 页`,xg=(e,r={})=>{if((p??r.locale??n())==="zh")return Jot(e);return Qot(e)};var $ot=()=>"Parameters",eat=()=>"参数",dE=(e={},r={})=>{if((p??r.locale??n())==="zh")return eat(e);return $ot(e)};var tat=()=>"Parent Tasks",rat=()=>"前置任务",Sg=(e={},r={})=>{if((p??r.locale??n())==="zh")return rat(e);return tat(e)};var oat=()=>"Password",aat=()=>"密码",Ap=(e={},r={})=>{if((p??r.locale??n())==="zh")return aat(e);return oat(e)};var nat=()=>"Password is required",iat=()=>"密码为必填项",fat=(e={},r={})=>{if((p??r.locale??n())==="zh")return iat(e);return nat(e)};var sat=()=>"Password must be at least 3 characters",lat=()=>"密码至少需要 3 个字符",_p=(e={},r={})=>{if((p??r.locale??n())==="zh")return lat(e);return sat(e)};var cat=()=>"At least 3 characters",uat=()=>"至少 3 个字符",dat=(e={},r={})=>{if((p??r.locale??n())==="zh")return uat(e);return cat(e)};var Zat=()=>"Your password",pat=()=>"请输入密码",mat=(e={},r={})=>{if((p??r.locale??n())==="zh")return pat(e);return Zat(e)};var hat=()=>"Password Protected",gat=()=>"密码保护",fE=(e={},r={})=>{if((p??r.locale??n())==="zh")return gat(e);return hat(e)};var Mat=()=>"Password reset successfully!",xat=()=>"密码重置成功!",pE=(e={},r={})=>{if((p??r.locale??n())==="zh")return xat(e);return Mat(e)};var vat=()=>"You will be redirected to the login page shortly.",yat=()=>"您将很快被重定向到登录页面。",mE=(e={},r={})=>{if((p??r.locale??n())==="zh")return yat(e);return vat(e)};var _at=()=>"Passwords do not match",bat=()=>"两次输入的密码不一致",hE=(e={},r={})=>{if((p??r.locale??n())==="zh")return bat(e);return _at(e)};var wat=()=>"Pending Domain Approvals",zat=()=>"待审核域名",gE=(e={},r={})=>{if((p??r.locale??n())==="zh")return zat(e);return wat(e)};var Sat=()=>"These domains were blocked during agent execution. You can approve them to allow future network requests, or delete them from this list.",Lat=()=>"这些域名在智能体执行期间被阻止。您可以批准它们以允许将来的网络请求,或从此列表中删除它们。",AE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lat(e);return Sat(e)};var kat=()=>"All Users",Cat=()=>"所有成员",Za=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cat(e);return kat(e)};var Iat=()=>"Owner & Editor",Rat=()=>"管理员与编辑",Ba=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rat(e);return Iat(e)};var Pat=()=>"Owner Only",Tat=()=>"仅管理员",Ua=(e={},r={})=>{if((p??r.locale??n())==="zh")return Tat(e);return Pat(e)};var Aat=()=>"Personal Info",Eat=()=>"个人信息",_E=(e={},r={})=>{if((p??r.locale??n())==="zh")return Eat(e);return Aat(e)};var Dat=()=>"Manage your profile name and avatar image.",Oat=()=>"管理您的个人资料名称和头像图片。",yE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Oat(e);return Dat(e)};var Nat=()=>"Personal Settings",Fat=()=>"个人设置",bE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fat(e);return Nat(e)};var jat=()=>"Playback Speed",Bat=()=>"播放速度",vE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bat(e);return jat(e)};var Uat=()=>"Position and resize",Yat=()=>"定位和调整大小",wE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Yat(e);return Uat(e)};var qat=()=>"Position X (%)",Hat=()=>"水平位置 (%)",xE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Hat(e);return qat(e)};var Vat=()=>"Position Y (%)",Wat=()=>"垂直位置 (%)",SE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wat(e);return Vat(e)};var Gat=()=>"Preparing...",Kat=()=>"准备中...",EE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Kat(e);return Gat(e)};var Xat=()=>"Preparing Download",Qat=()=>"正在准备下载",Eg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Qat(e);return Xat(e)};var Jat=()=>"Preparing download links...",$at=()=>"正在准备下载链接...",Cg=(e={},r={})=>{if((p??r.locale??n())==="zh")return $at(e);return Jat(e)};var ent=()=>"Preset Avatar Option",tnt=()=>"预设头像选项",CE=(e={},r={})=>{if((p??r.locale??n())==="zh")return tnt(e);return ent(e)};var rnt=()=>"Previous file",ont=()=>"上一个文件",Ig=(e={},r={})=>{if((p??r.locale??n())==="zh")return ont(e);return rnt(e)};var ant=()=>"Previous Page",nnt=()=>"上一页",yp=(e={},r={})=>{if((p??r.locale??n())==="zh")return nnt(e);return ant(e)};var int=()=>"Pricing ($ per 1M tokens)",fnt=()=>"计费(每百万令牌美元)",IE=(e={},r={})=>{if((p??r.locale??n())==="zh")return fnt(e);return int(e)};var snt=()=>"High",lnt=()=>"高",cnt=(e={},r={})=>{if((p??r.locale??n())==="zh")return lnt(e);return snt(e)};var unt=()=>"Low",dnt=()=>"低",Znt=(e={},r={})=>{if((p??r.locale??n())==="zh")return dnt(e);return unt(e)};var pnt=()=>"Medium",mnt=()=>"中",hnt=(e={},r={})=>{if((p??r.locale??n())==="zh")return mnt(e);return pnt(e)};var gnt=()=>"Urgent",Mnt=()=>"紧急",xnt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Mnt(e);return gnt(e)};var vnt=()=>"Processing...",ynt=()=>"处理中...",TE=(e={},r={})=>{if((p??r.locale??n())==="zh")return ynt(e);return vnt(e)};var _nt=()=>"Processing failed",bnt=()=>"处理失败",Tg=(e={},r={})=>{if((p??r.locale??n())==="zh")return bnt(e);return _nt(e)};var wnt=()=>"(Processing failed)",znt=()=>"(处理失败)",ME=(e={},r={})=>{if((p??r.locale??n())==="zh")return znt(e);return wnt(e)};var Snt=()=>"Processing package...",Lnt=()=>"正在处理包...",kE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lnt(e);return Snt(e)};var knt=()=>"Profile updated successfully",Cnt=()=>"个人资料更新成功",Mg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cnt(e);return knt(e)};var Int=()=>"project",Rnt=()=>"项目",RE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rnt(e);return Int(e)};var Pnt=()=>"Project Cover",Tnt=()=>"项目封面",PE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Tnt(e);return Pnt(e)};var Ant=()=>"Project ID",Ent=()=>"项目 ID",NE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ent(e);return Ant(e)};var Dnt=()=>"Project Member",Ont=()=>"项目成员",bp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ont(e);return Dnt(e)};var Nnt=()=>"Project-scoped member roles are managed within individual project settings",Fnt=()=>"项目成员的角色需在具体的项目设置中管理",DE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fnt(e);return Nnt(e)};var jnt=()=>"Project Members",Bnt=()=>"项目成员",OE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bnt(e);return jnt(e)};var Unt=()=>"Project Name",Ynt=()=>"项目名称",FE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ynt(e);return Unt(e)};var qnt=()=>"A clear, concise name to identify your project space.",Hnt=()=>"简洁明了的名称,用于标识您的项目空间。",LE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Hnt(e);return qnt(e)};var Vnt=()=>"e.g. Acme Marketing, Q3 Product Launch...",Wnt=()=>"例如:品牌营销、第三季度产品发布...",ZE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wnt(e);return Vnt(e)};var Gnt=()=>"Project notification settings updated",Knt=()=>"项目通知设置已更新",BE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Knt(e);return Gnt(e)};var Xnt=()=>"Project Preferences",Qnt=()=>"项目偏好设置",UE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Qnt(e);return Xnt(e)};var Jnt=()=>"Project Settings",$nt=()=>"项目设置",kg=(e={},r={})=>{if((p??r.locale??n())==="zh")return $nt(e);return Jnt(e)};var eit=()=>"Projects",tit=()=>"项目",zE=(e={},r={})=>{if((p??r.locale??n())==="zh")return tit(e);return eit(e)};var rit=()=>"Please provide your name and email to add a comment.",oit=()=>"请提供您的姓名和邮箱以添加评论。",jE=(e={},r={})=>{if((p??r.locale??n())==="zh")return oit(e);return rit(e)};var ait=()=>"Provider",nit=()=>"提供商",qE=(e={},r={})=>{if((p??r.locale??n())==="zh")return nit(e);return ait(e)};var iit=()=>"Provider created successfully",fit=()=>"提供商创建成功",HE=(e={},r={})=>{if((p??r.locale??n())==="zh")return fit(e);return iit(e)};var sit=()=>"Provider deleted successfully",lit=()=>"提供商删除成功",$E=(e={},r={})=>{if((p??r.locale??n())==="zh")return lit(e);return sit(e)};var cit=()=>"Provider is required",uit=()=>"提供商为必填项",GE=(e={},r={})=>{if((p??r.locale??n())==="zh")return uit(e);return cit(e)};var dit=()=>"Provider Name",Zit=()=>"提供商名称",Rg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Zit(e);return dit(e)};var pit=()=>"Provider name is required",mit=()=>"提供商名称为必填项",Pg=(e={},r={})=>{if((p??r.locale??n())==="zh")return mit(e);return pit(e)};var hit=()=>"Provider name must be unique",git=()=>"提供商名称必须唯一",Ng=(e={},r={})=>{if((p??r.locale??n())==="zh")return git(e);return hit(e)};var Mit=()=>"e.g., My OpenAI",xit=()=>"例如:我的 OpenAI",Dg=(e={},r={})=>{if((p??r.locale??n())==="zh")return xit(e);return Mit(e)};var vit=()=>"This provider is not configured. Configure an API key in the API Key tab before using these models.",yit=()=>"此提供商尚未配置。在使用这些模型前,请在 API 密钥标签页中配置密钥。",VE=(e={},r={})=>{if((p??r.locale??n())==="zh")return yit(e);return vit(e)};var _it=()=>"Configured (Custom)",bit=()=>"已配置(自定义)",Og=(e={},r={})=>{if((p??r.locale??n())==="zh")return bit(e);return _it(e)};var wit=()=>"Configured (Environment)",zit=()=>"已配置(环境变量)",Fg=(e={},r={})=>{if((p??r.locale??n())==="zh")return zit(e);return wit(e)};var Sit=()=>"Not Configured",Lit=()=>"未配置",Lg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lit(e);return Sit(e)};var kit=()=>"Provider updated successfully",Cit=()=>"提供商更新成功",Zg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cit(e);return kit(e)};var Iit=()=>"Providers",Rit=()=>"提供商",QE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rit(e);return Iit(e)};var Pit=()=>"Configure AI providers and their models for this team.",Tit=()=>"为此团队配置 AI 提供商及其模型。",KE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Tit(e);return Pit(e)};var Ait=()=>"Public Link",Eit=()=>"公开链接",WE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Eit(e);return Ait(e)};var Dit=()=>"Quality",Oit=()=>"画质",Bg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Oit(e);return Dit(e)};var Nit=()=>"Auto",Fit=()=>"自动",Pl=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fit(e);return Nit(e)};var jit=()=>"Querying database...",Bit=()=>"正在查询数据库...",YE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bit(e);return jit(e)};var Uit=()=>"Quota available",Yit=()=>"配额可用",Ug=(e={},r={})=>{if((p??r.locale??n())==="zh")return Yit(e);return Uit(e)};var qit=()=>"Supports wildcards (*). Examples: git *, npm test, curl *, python script.py (use * for all commands)",Hit=()=>"支持通配符 (*)。示例:git *、npm test、curl *、python script.py(使用 * 匹配所有命令)",JE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Hit(e);return qit(e)};var Vit=()=>"Collapse quota rule",Wit=()=>"收起配额规则",XE=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wit(e);return Vit(e)};var Git=()=>"Quota rule created successfully",Kit=()=>"配额规则创建成功",eC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Kit(e);return Git(e)};var Xit=()=>"Monitor live quota usage and reset individual usage windows.",Qit=()=>"在仪表盘中监控实时配额使用情况,并重置单个使用窗口。",tC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Qit(e);return Xit(e)};var Jit=()=>"Quota rule deleted successfully",$it=()=>"配额规则删除成功",zg=(e={},r={})=>{if((p??r.locale??n())==="zh")return $it(e);return Jit(e)};var eft=()=>"Disabled",tft=()=>"已禁用",vp=(e={},r={})=>{if((p??r.locale??n())==="zh")return tft(e);return eft(e)};var rft=()=>"Enabled",oft=()=>"已启用",rC=(e={},r={})=>{if((p??r.locale??n())==="zh")return oft(e);return rft(e)};var aft=()=>"Expand quota rule",nft=()=>"展开配额规则",nC=(e={},r={})=>{if((p??r.locale??n())==="zh")return nft(e);return aft(e)};var ift=()=>"Limit",fft=()=>"上限",oC=(e={},r={})=>{if((p??r.locale??n())==="zh")return fft(e);return ift(e)};var sft=()=>"e.g. 100000",lft=()=>"例如 100000",sC=(e={},r={})=>{if((p??r.locale??n())==="zh")return lft(e);return sft(e)};var cft=()=>"No usage records found",uft=()=>"暂无使用记录",iC=(e={},r={})=>{if((p??r.locale??n())==="zh")return uft(e);return cft(e)};var dft=()=>"Period Window",Zft=()=>"周期窗口",aC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Zft(e);return dft(e)};var pft=()=>"1 Day",mft=()=>"1 天",wp=(e={},r={})=>{if((p??r.locale??n())==="zh")return mft(e);return pft(e)};var hft=()=>"1 Hour",gft=()=>"1 小时",xp=(e={},r={})=>{if((p??r.locale??n())==="zh")return gft(e);return hft(e)};var Mft=()=>"5 Hours",xft=()=>"5 小时",Sp=(e={},r={})=>{if((p??r.locale??n())==="zh")return xft(e);return Mft(e)};var vft=()=>"7 Days",yft=()=>"7 天",Ep=(e={},r={})=>{if((p??r.locale??n())==="zh")return yft(e);return vft(e)};var _ft=(e)=>`Refreshes in ${e?.time}`,bft=(e)=>`${e?.time} 后重置`,jg=(e,r={})=>{if((p??r.locale??n())==="zh")return bft(e);return _ft(e)};var wft=()=>"Remaining",zft=()=>"剩余额度",lC=(e={},r={})=>{if((p??r.locale??n())==="zh")return zft(e);return wft(e)};var Sft=()=>"Quota usage reset successfully",Lft=()=>"配额使用量重置成功",cC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lft(e);return Sft(e)};var kft=()=>"Reset Usage",Cft=()=>"重置使用量",qg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cft(e);return kft(e)};var Ift=(e)=>`Reset usage for ${e?.target}? Consumption will be cleared and a new quota window will start now.`,Rft=(e)=>`确定要重置 ${e?.target} 的使用量吗?当前消耗将被清零,并立即开始新的配额周期。`,uC=(e,r={})=>{if((p??r.locale??n())==="zh")return Rft(e);return Ift(e)};var Pft=()=>"Resource",Tft=()=>"资源类型",dC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Tft(e);return Pft(e)};var Aft=()=>"Agent Bash Calls",Eft=()=>"智能体 Bash 执行次数",Pd=(e={},r={})=>{if((p??r.locale??n())==="zh")return Eft(e);return Aft(e)};var Dft=()=>"AI Cost ($)",Oft=()=>"AI 费用 ($)",Nd=(e={},r={})=>{if((p??r.locale??n())==="zh")return Oft(e);return Dft(e)};var Nft=()=>"MCP Server Calls",Fft=()=>"MCP 服务调用次数",Dd=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fft(e);return Nft(e)};var jft=()=>"Agent Tool Calls",Bft=()=>"智能体工具调用次数",Od=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bft(e);return jft(e)};var Uft=()=>"AI Tokens",Yft=()=>"AI Token 总量",Fd=(e={},r={})=>{if((p??r.locale??n())==="zh")return Yft(e);return Uft(e)};var qft=()=>"Role Shared Pool",Hft=()=>"角色共享配额池",fC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Hft(e);return qft(e)};var Vft=()=>"Scope",Wft=()=>"范围",pC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wft(e);return Vft(e)};var Gft=()=>"Target Mode",Kft=()=>"目标模式",mC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Kft(e);return Gft(e)};var Xft=()=>"All Members",Qft=()=>"所有成员",Ld=(e={},r={})=>{if((p??r.locale??n())==="zh")return Qft(e);return Xft(e)};var Jft=()=>"Shared pooled limit across all matching members",$ft=()=>"所有符合条件的成员共同享有总配额上限",hC=(e={},r={})=>{if((p??r.locale??n())==="zh")return $ft(e);return Jft(e)};var est=()=>"Each Member",tst=()=>"每个成员",Zd=(e={},r={})=>{if((p??r.locale??n())==="zh")return tst(e);return est(e)};var rst=()=>"Individual limit for each matching member",ost=()=>"为每个符合条件的成员分别设定独立的配额上限",gC=(e={},r={})=>{if((p??r.locale??n())==="zh")return ost(e);return rst(e)};var ast=()=>"Selected Members",nst=()=>"指定成员",Bd=(e={},r={})=>{if((p??r.locale??n())==="zh")return nst(e);return ast(e)};var ist=()=>"Individual limit for selected users",fst=()=>"为选定的成员分别设定独立的配额上限",AC=(e={},r={})=>{if((p??r.locale??n())==="zh")return fst(e);return ist(e)};var sst=()=>"Role-based",lst=()=>"按角色",Cp=(e={},r={})=>{if((p??r.locale??n())==="zh")return lst(e);return sst(e)};var cst=()=>"Entire Team",ust=()=>"整个团队",Nl=(e={},r={})=>{if((p??r.locale??n())==="zh")return ust(e);return cst(e)};var dst=()=>"Search members...",Zst=()=>"搜索成员...",Ip=(e={},r={})=>{if((p??r.locale??n())==="zh")return Zst(e);return dst(e)};var pst=(e)=>`${e?.count} members selected`,mst=(e)=>`已选择 ${e?.count} 位成员`,_C=(e,r={})=>{if((p??r.locale??n())==="zh")return mst(e);return pst(e)};var hst=()=>"Quota status updated",gst=()=>"配额状态已更新",yC=(e={},r={})=>{if((p??r.locale??n())==="zh")return gst(e);return hst(e)};var Mst=(e)=>`Match: ${e?.value}`,xst=(e)=>`匹配:${e?.value}`,bC=(e,r={})=>{if((p??r.locale??n())==="zh")return xst(e);return Mst(e)};var vst=(e)=>`Server: ${e?.value}`,yst=(e)=>`服务:${e?.value}`,vC=(e,r={})=>{if((p??r.locale??n())==="zh")return yst(e);return vst(e)};var _st=(e)=>`Tool: ${e?.value}`,bst=(e)=>`工具:${e?.value}`,wC=(e,r={})=>{if((p??r.locale??n())==="zh")return bst(e);return _st(e)};var wst=()=>"Team Shared Pool",zst=()=>"团队共享配额池",xC=(e={},r={})=>{if((p??r.locale??n())==="zh")return zst(e);return wst(e)};var Sst=()=>"Select a specific agent tool to configure its quota limit",Lst=()=>"选择特定的智能体工具以配置其配额限制",SC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lst(e);return Sst(e)};var kst=()=>"Quota rule updated successfully",Cst=()=>"配额规则更新成功",EC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cst(e);return kst(e)};var Ist=()=>"Quotas",Rst=()=>"配额",Ud=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rst(e);return Ist(e)};var Pst=(e)=>`${e?.others} reacted with ${e?.emoji}`,Tst=(e)=>`${e?.others} 回应了 ${e?.emoji}`,CC=(e,r={})=>{if((p??r.locale??n())==="zh")return Tst(e);return Pst(e)};var Ast=(e)=>`You reacted with ${e?.emoji}`,Est=(e)=>`你回应了 ${e?.emoji}`,IC=(e,r={})=>{if((p??r.locale??n())==="zh")return Est(e);return Ast(e)};var Dst=(e)=>`You and ${e?.others} reacted with ${e?.emoji}`,Ost=(e)=>`你和 ${e?.others} 回应了 ${e?.emoji}`,TC=(e,r={})=>{if((p??r.locale??n())==="zh")return Ost(e);return Dst(e)};var Nst=()=>"Ready to Search",Fst=()=>"准备搜索",MC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fst(e);return Nst(e)};var jst=()=>"Reasoning Support",Bst=()=>"推理支持",Tp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bst(e);return jst(e)};var Ust=()=>"Recently Deleted",Yst=()=>"最近删除",Hg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Yst(e);return Ust(e)};var qst=()=>"Items are automatically deleted after 30 days.",Hst=()=>"项目将在 30 天后自动删除。",Mp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Hst(e);return qst(e)};var Vst=()=>"Recently Viewed",Wst=()=>"最近浏览",$g=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wst(e);return Vst(e)};var Gst=()=>"This page displays the 100 most recent files you viewed in this project.",Kst=()=>"此页面显示您最近在当前项目中查看过的 100 个文件。",kC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Kst(e);return Gst(e)};var Xst=()=>"Registration Disabled",Qst=()=>"注册已关闭",Jst=(e={},r={})=>{if((p??r.locale??n())==="zh")return Qst(e);return Xst(e)};var $st=()=>"Public registration is currently disabled. You will need an invite code to join this team.",elt=()=>"公开注册目前已关闭。您需要邀请码才能加入此团队。",tlt=(e={},r={})=>{if((p??r.locale??n())==="zh")return elt(e);return $st(e)};var rlt=()=>"Related Assets",olt=()=>"关联资产",alt=(e={},r={})=>{if((p??r.locale??n())==="zh")return olt(e);return rlt(e)};var nlt=()=>"Remove",ilt=()=>"移除",Dl=(e={},r={})=>{if((p??r.locale??n())==="zh")return ilt(e);return nlt(e)};var flt=()=>"Remove Cover",slt=()=>"移除封面",RC=(e={},r={})=>{if((p??r.locale??n())==="zh")return slt(e);return flt(e)};var llt=()=>"Remove from context",clt=()=>"从上下文中移除",PC=(e={},r={})=>{if((p??r.locale??n())==="zh")return clt(e);return llt(e)};var ult=()=>"Remove from Share",dlt=()=>"从分享中移除",kp=(e={},r={})=>{if((p??r.locale??n())==="zh")return dlt(e);return ult(e)};var Zlt=()=>"Remove from stack",plt=()=>"从版本堆栈中移除",mlt=(e={},r={})=>{if((p??r.locale??n())==="zh")return plt(e);return Zlt(e)};var hlt=()=>"Remove Member",glt=()=>"移除成员",NC=(e={},r={})=>{if((p??r.locale??n())==="zh")return glt(e);return hlt(e)};var Mlt=(e)=>`Are you sure you want to remove ${e?.name} from this ${e?.type}? This action cannot be undone.`,xlt=(e)=>`确定要从此${e?.type}中移除 ${e?.name} 吗?此操作无法撤销。`,DC=(e,r={})=>{if((p??r.locale??n())==="zh")return xlt(e);return Mlt(e)};var vlt=()=>"Removed from share",ylt=()=>"已从分享中移除",OC=(e={},r={})=>{if((p??r.locale??n())==="zh")return ylt(e);return vlt(e)};var _lt=()=>"Rename",blt=()=>"重命名",Zo=(e={},r={})=>{if((p??r.locale??n())==="zh")return blt(e);return _lt(e)};var wlt=()=>"Rename Collection",zlt=()=>"重命名媒体合集",Slt=(e={},r={})=>{if((p??r.locale??n())==="zh")return zlt(e);return wlt(e)};var Llt=()=>"Rename Folder",klt=()=>"重命名文件夹",Clt=(e={},r={})=>{if((p??r.locale??n())==="zh")return klt(e);return Llt(e)};var Ilt=()=>"Rename Share Link",Rlt=()=>"重命名分享链接",Plt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rlt(e);return Ilt(e)};var Tlt=()=>"Renamed successfully",Alt=()=>"重命名成功",FC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Alt(e);return Tlt(e)};var Elt=()=>"Reply",Dlt=()=>"回复",LC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Dlt(e);return Elt(e)};var Olt=()=>"Reply...",Nlt=()=>"回复...",ZC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Nlt(e);return Olt(e)};var Flt=(e)=>`reply to: ${e?.message}`,jlt=(e)=>`回复:${e?.message}`,BC=(e,r={})=>{if((p??r.locale??n())==="zh")return jlt(e);return Flt(e)};var Blt=()=>"Reporter / Reviewer",Ult=()=>"报告人 / 审核人",Gg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ult(e);return Blt(e)};var Ylt=()=>"Reset",qlt=()=>"重置",UC=(e={},r={})=>{if((p??r.locale??n())==="zh")return qlt(e);return Ylt(e)};var Hlt=()=>"Reset Password",Vlt=()=>"重置密码",Vg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vlt(e);return Hlt(e)};var Wlt=()=>"Enter your new password below.",Glt=()=>"请在下方输入您的新密码。",zC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Glt(e);return Wlt(e)};var Klt=()=>"Resetting password...",Xlt=()=>"正在重置密码...",jC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xlt(e);return Klt(e)};var Qlt=()=>"Resolving all files and folders. Please wait...",Jlt=()=>"正在解析所有文件和文件夹,请稍候...",Qg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jlt(e);return Qlt(e)};var $lt=()=>"Resource Quotas",ect=()=>"资源配额",Kg=(e={},r={})=>{if((p??r.locale??n())==="zh")return ect(e);return $lt(e)};var tct=()=>"Manage and limit resource usage across team members, roles, and AI operations.",rct=()=>"管理并限制团队成员、角色以及 AI 操作的资源使用。",Wg=(e={},r={})=>{if((p??r.locale??n())==="zh")return rct(e);return tct(e)};var oct=()=>"Restore",act=()=>"恢复",Rp=(e={},r={})=>{if((p??r.locale??n())==="zh")return act(e);return oct(e)};var nct=()=>"Reviewer",ict=()=>"评审员",Gs=(e={},r={})=>{if((p??r.locale??n())==="zh")return ict(e);return nct(e)};var fct=()=>"Role",sct=()=>"角色",qC=(e={},r={})=>{if((p??r.locale??n())==="zh")return sct(e);return fct(e)};var lct=()=>"Agent",cct=()=>"智能体",HC=(e={},r={})=>{if((p??r.locale??n())==="zh")return cct(e);return lct(e)};var uct=()=>"Thinking",dct=()=>"思考中",Pp=(e={},r={})=>{if((p??r.locale??n())==="zh")return dct(e);return uct(e)};var Zct=()=>"User",pct=()=>"用户",Yg=(e={},r={})=>{if((p??r.locale??n())==="zh")return pct(e);return Zct(e)};var mct=()=>"Rotation",hct=()=>"旋转角度",$C=(e={},r={})=>{if((p??r.locale??n())==="zh")return hct(e);return mct(e)};var gct=()=>"Configure security and network restrictions for the AI agent.",Mct=()=>"配置 AI 智能体的安全和网络限制。",GC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Mct(e);return gct(e)};var xct=()=>"Sandbox settings updated",vct=()=>"沙箱设置已更新",VC=(e={},r={})=>{if((p??r.locale??n())==="zh")return vct(e);return xct(e)};var yct=()=>"Save",_ct=()=>"保存",Gn=(e={},r={})=>{if((p??r.locale??n())==="zh")return _ct(e);return yct(e)};var bct=()=>"Save & Send Test Email",wct=()=>"保存并发送测试邮件",QC=(e={},r={})=>{if((p??r.locale??n())==="zh")return wct(e);return bct(e)};var zct=()=>"Save as collection",Sct=()=>"保存为媒体合集",KC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Sct(e);return zct(e)};var Lct=()=>"Save Changes",kct=()=>"保存更改",Vs=(e={},r={})=>{if((p??r.locale??n())==="zh")return kct(e);return Lct(e)};var Cct=()=>"Save Watermark",Ict=()=>"保存水印",WC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ict(e);return Cct(e)};var Rct=()=>"Saved",Pct=()=>"已保存",Jg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Pct(e);return Rct(e)};var Tct=()=>"Saving...",Act=()=>"保存中...",Xg=(e={},r={})=>{if((p??r.locale??n())==="zh")return Act(e);return Tct(e)};var Ect=()=>"Saving...",Dct=()=>"保存中...",Np=(e={},r={})=>{if((p??r.locale??n())==="zh")return Dct(e);return Ect(e)};var Oct=()=>"Search",Nct=()=>"搜索",YC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Nct(e);return Oct(e)};var Fct=()=>"Search",jct=()=>"搜索",JC=(e={},r={})=>{if((p??r.locale??n())==="zh")return jct(e);return Fct(e)};var Bct=()=>"Search records by content...",Uct=()=>"按内容搜索记录...",XC=(e={},r={})=>{if((p??r.locale??n())==="zh")return Uct(e);return Bct(e)};var Yct=()=>"Search records by name...",qct=()=>"按名称搜索记录...",eI=(e={},r={})=>{if((p??r.locale??n())==="zh")return qct(e);return Yct(e)};var Hct=()=>"Search",Vct=()=>"搜索",tI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vct(e);return Hct(e)};var Wct=()=>"Search emoji",Gct=()=>"搜索表情",rI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Gct(e);return Wct(e)};var Kct=()=>"Search failed",Xct=()=>"搜索失败",eA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xct(e);return Kct(e)};var Qct=()=>"Search fields",Jct=()=>"搜索字段",nI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jct(e);return Qct(e)};var $ct=()=>"Search Item ID...",eut=()=>"搜索条目 ID...",oI=(e={},r={})=>{if((p??r.locale??n())==="zh")return eut(e);return $ct(e)};var tut=()=>"Search models by ID or name...",rut=()=>"按 ID 或名称搜索模型...",Dp=(e={},r={})=>{if((p??r.locale??n())==="zh")return rut(e);return tut(e)};var out=()=>"Search options...",aut=()=>"搜索选项...",tA=(e={},r={})=>{if((p??r.locale??n())==="zh")return aut(e);return out(e)};var nut=()=>"Search providers...",iut=()=>"搜索提供商...",rA=(e={},r={})=>{if((p??r.locale??n())==="zh")return iut(e);return nut(e)};var fut=()=>"Search Results",sut=()=>"搜索结果",sI=(e={},r={})=>{if((p??r.locale??n())==="zh")return sut(e);return fut(e)};var lut=()=>"Search tasks...",cut=()=>"搜索任务...",uut=(e={},r={})=>{if((p??r.locale??n())==="zh")return cut(e);return lut(e)};var dut=()=>"Security",Zut=()=>"安全",iI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Zut(e);return dut(e)};var put=()=>"Select a Team",mut=()=>"选择团队",hut=(e={},r={})=>{if((p??r.locale??n())==="zh")return mut(e);return put(e)};var gut=()=>"Select Actions",Mut=()=>"选择操作",aI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Mut(e);return gut(e)};var xut=()=>"Select Agent",vut=()=>"选择智能体",zd=(e={},r={})=>{if((p??r.locale??n())==="zh")return vut(e);return xut(e)};var yut=()=>"Select API Protocol",_ut=()=>"选择 API 协议",nA=(e={},r={})=>{if((p??r.locale??n())==="zh")return _ut(e);return yut(e)};var but=()=>"Select an asset to view details",wut=()=>"选择资产查看详情",lI=(e={},r={})=>{if((p??r.locale??n())==="zh")return wut(e);return but(e)};var zut=()=>"Select Assets",Sut=()=>"选择资产",Lut=(e={},r={})=>{if((p??r.locale??n())==="zh")return Sut(e);return zut(e)};var kut=()=>"Select a block to edit its properties",Cut=()=>"选择一个水印块以编辑其属性",cI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cut(e);return kut(e)};var Iut=()=>"Select Current Folder",Rut=()=>"选择当前文件夹",Put=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rut(e);return Iut(e)};var Tut=()=>"Select field",Aut=()=>"选择字段",uI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Aut(e);return Tut(e)};var Eut=()=>"Select a field to edit options",Dut=()=>"选择一个字段以编辑选项",dI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Dut(e);return Eut(e)};var Out=()=>"Select field type",Nut=()=>"选择字段类型",fI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Nut(e);return Out(e)};var Fut=()=>"Select a file to view its details and comments.",jut=()=>"选择一个文件以查看其详情和评论。",pI=(e={},r={})=>{if((p??r.locale??n())==="zh")return jut(e);return Fut(e)};var But=()=>"Select Language",Uut=()=>"选择语言",mI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Uut(e);return But(e)};var Yut=()=>"Select MCP Server",qut=()=>"选择 MCP 服务",oA=(e={},r={})=>{if((p??r.locale??n())==="zh")return qut(e);return Yut(e)};var Hut=()=>"Select Members",Vut=()=>"选择成员",sA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vut(e);return Hut(e)};var Wut=()=>"Select Model",Gut=()=>"选择模型",hI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Gut(e);return Wut(e)};var Kut=()=>"Select option",Xut=()=>"选择选项",gI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xut(e);return Kut(e)};var Qut=()=>"Select options...",Jut=()=>"选择选项...",AI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jut(e);return Qut(e)};var $ut=()=>"Select parent tasks...",edt=()=>"选择前置任务...",tdt=(e={},r={})=>{if((p??r.locale??n())==="zh")return edt(e);return $ut(e)};var rdt=()=>"Select your preferred display language.",odt=()=>"选择您首选的显示语言。",_I=(e={},r={})=>{if((p??r.locale??n())==="zh")return odt(e);return rdt(e)};var adt=()=>"Select Project",ndt=()=>"选择项目",w9=(e={},r={})=>{if((p??r.locale??n())==="zh")return ndt(e);return adt(e)};var idt=()=>"Select Provider",fdt=()=>"选择提供商",yI=(e={},r={})=>{if((p??r.locale??n())==="zh")return fdt(e);return idt(e)};var sdt=()=>"Select Target Folder",ldt=()=>"选择目标文件夹",Op=(e={},r={})=>{if((p??r.locale??n())==="zh")return ldt(e);return sdt(e)};var cdt=()=>"You are a member of multiple teams. Please select one to continue.",udt=()=>"您是多个团队的成员,请选择一个以继续。",ddt=(e={},r={})=>{if((p??r.locale??n())==="zh")return udt(e);return cdt(e)};var Zdt=()=>"Select template to overwrite",pdt=()=>"选择要覆盖的模板",iA=(e={},r={})=>{if((p??r.locale??n())==="zh")return pdt(e);return Zdt(e)};var mdt=()=>"Select Tool",hdt=()=>"选择工具",aA=(e={},r={})=>{if((p??r.locale??n())==="zh")return hdt(e);return mdt(e)};var gdt=()=>"Select type",Mdt=()=>"选择类型",bI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Mdt(e);return gdt(e)};var xdt=()=>"Select User",vdt=()=>"选择用户",vI=(e={},r={})=>{if((p??r.locale??n())==="zh")return vdt(e);return xdt(e)};var ydt=()=>"Select Users",_dt=()=>"选择用户",wI=(e={},r={})=>{if((p??r.locale??n())==="zh")return _dt(e);return ydt(e)};var bdt=()=>"Select ZIP file",wdt=()=>"选择 ZIP 文件",xI=(e={},r={})=>{if((p??r.locale??n())==="zh")return wdt(e);return bdt(e)};var zdt=()=>"Semantic Search",Sdt=()=>"语义搜索",SI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Sdt(e);return zdt(e)};var Ldt=()=>"Semantic search results will be ordered by their relevance to the search query text, but won't be strictly filtered. If you need accurate filtering, please add filter conditions to control that.",kdt=()=>"语义搜索结果将按与搜索查询文本的相关性排序,但不会严格筛选。如果需要精确筛选,请添加筛选条件来控制。",EI=(e={},r={})=>{if((p??r.locale??n())==="zh")return kdt(e);return Ldt(e)};var Cdt=()=>"* Semantic search requires an enabled embedding agent.",Idt=()=>"* 语义搜索需要启用嵌入智能体。",CI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Idt(e);return Cdt(e)};var Rdt=()=>"Semantic search using media intelligence might be slow...",Pdt=()=>"使用媒体智能的语义搜索可能较慢...",II=(e={},r={})=>{if((p??r.locale??n())==="zh")return Pdt(e);return Rdt(e)};var Tdt=()=>"Send Test Email",Adt=()=>"发送测试邮件",lA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Adt(e);return Tdt(e)};var Edt=()=>`Sender email address, for example: "Shumai <noreply@example.com>". Make sure to use an address you're allowed to send emails from.`,Ddt=()=>"发件人邮箱地址,例如:“Shumai <noreply@example.com>”。请确保使用您有权使用的邮箱地址进行发送。",TI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ddt(e);return Edt(e)};var Odt=()=>"From Address",Ndt=()=>"发件人地址",cA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ndt(e);return Odt(e)};var Fdt=()=>`Sender email address, for example: "Shumai <noreply@example.com>". Make sure to use an address you're allowed to send emails from.`,jdt=()=>"发件人邮箱地址,例如:“Shumai <noreply@example.com>”。请确保使用您有权使用的邮箱地址进行发送。",MI=(e={},r={})=>{if((p??r.locale??n())==="zh")return jdt(e);return Fdt(e)};var Bdt=()=>"Reply-To Address",Udt=()=>"回复地址",kI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Udt(e);return Bdt(e)};var Ydt=()=>"Optional address where replies to notifications should be directed.",qdt=()=>"通知邮件回复时指向的可选邮箱地址。",RI=(e={},r={})=>{if((p??r.locale??n())==="zh")return qdt(e);return Ydt(e)};var Hdt=()=>"Sender Information",Vdt=()=>"发件人信息",PI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vdt(e);return Hdt(e)};var Wdt=()=>"Session Name",Gdt=()=>"会话名称",NI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Gdt(e);return Wdt(e)};var Kdt=()=>"The session might have been initialized but has not produced any entries yet.",Xdt=()=>"该会话可能已初始化但尚未产生任何条目。",DI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xdt(e);return Kdt(e)};var Qdt=()=>"Session Type",Jdt=()=>"会话类型",OI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jdt(e);return Qdt(e)};var $dt=()=>"Chat",eZt=()=>"对话",FI=(e={},r={})=>{if((p??r.locale??n())==="zh")return eZt(e);return $dt(e)};var tZt=()=>"Comment",rZt=()=>"评论",LI=(e={},r={})=>{if((p??r.locale??n())==="zh")return rZt(e);return tZt(e)};var oZt=()=>"Naming",aZt=()=>"命名",ZI=(e={},r={})=>{if((p??r.locale??n())==="zh")return aZt(e);return oZt(e)};var nZt=()=>"Sessions",iZt=()=>"会话列表",uA=(e={},r={})=>{if((p??r.locale??n())==="zh")return iZt(e);return nZt(e)};var fZt=()=>"View and inspect all agent sessions created within the team.",sZt=()=>"查看并检查团队内创建的所有 Agent 会话。",BI=(e={},r={})=>{if((p??r.locale??n())==="zh")return sZt(e);return fZt(e)};var lZt=()=>"Set Role",cZt=()=>"设置角色",UI=(e={},r={})=>{if((p??r.locale??n())==="zh")return cZt(e);return lZt(e)};var uZt=()=>"Settings",dZt=()=>"设置",Fp=(e={},r={})=>{if((p??r.locale??n())==="zh")return dZt(e);return uZt(e)};var ZZt=()=>"Settings updated",pZt=()=>"设置已更新",za=(e={},r={})=>{if((p??r.locale??n())==="zh")return pZt(e);return ZZt(e)};var mZt=()=>"share link",hZt=()=>"分享链接",gZt=(e={},r={})=>{if((p??r.locale??n())==="zh")return hZt(e);return mZt(e)};var MZt=()=>"Share link created",xZt=()=>"分享链接已创建",vZt=(e={},r={})=>{if((p??r.locale??n())==="zh")return xZt(e);return MZt(e)};var yZt=()=>"Share link deleted",_Zt=()=>"分享链接已删除",bZt=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Zt(e);return yZt(e)};var wZt=()=>"Share link renamed",zZt=()=>"分享链接已重命名",SZt=(e={},r={})=>{if((p??r.locale??n())==="zh")return zZt(e);return wZt(e)};var LZt=()=>"Share link status updated",kZt=()=>"分享链接状态已更新",zI=(e={},r={})=>{if((p??r.locale??n())==="zh")return kZt(e);return LZt(e)};var CZt=()=>"Share Links",IZt=()=>"分享链接",RZt=(e={},r={})=>{if((p??r.locale??n())==="zh")return IZt(e);return CZt(e)};var PZt=()=>"Show Chatbot",TZt=()=>"显示聊天机器人",AZt=(e={},r={})=>{if((p??r.locale??n())==="zh")return TZt(e);return PZt(e)};var EZt=()=>"Shumai Agent",DZt=()=>"数脉智能体",jI=(e={},r={})=>{if((p??r.locale??n())==="zh")return DZt(e);return EZt(e)};var OZt=()=>"Sign up",NZt=()=>"注册",Rle=(e={},r={})=>{if((p??r.locale??n())==="zh")return NZt(e);return OZt(e)};var FZt=()=>"Signup failed",jZt=()=>"注册失败",BZt=(e={},r={})=>{if((p??r.locale??n())==="zh")return jZt(e);return FZt(e)};var UZt=()=>"Start building and organizing your space.",YZt=()=>"开始构建和整理您的空间。",qZt=(e={},r={})=>{if((p??r.locale??n())==="zh")return YZt(e);return UZt(e)};var HZt=()=>"Permission",VZt=()=>"权限",Lp=(e={},r={})=>{if((p??r.locale??n())==="zh")return VZt(e);return HZt(e)};var WZt=()=>"Skills",GZt=()=>"技能",dA=(e={},r={})=>{if((p??r.locale??n())==="zh")return GZt(e);return WZt(e)};var KZt=(e)=>`${e?.count} Skills`,XZt=(e)=>`${e?.count} 个技能`,qI=(e,r={})=>{if((p??r.locale??n())==="zh")return XZt(e);return KZt(e)};var QZt=()=>"Add, update and configure AI skills for the team.",JZt=()=>"为团队添加、更新和配置 AI 技能。",HI=(e={},r={})=>{if((p??r.locale??n())==="zh")return JZt(e);return QZt(e)};var $Zt=()=>"Skills Management",ept=()=>"技能管理",fA=(e={},r={})=>{if((p??r.locale??n())==="zh")return ept(e);return $Zt(e)};var tpt=()=>"Extend your chatbot's capabilities with custom skills.",rpt=()=>"使用自定义技能扩展聊天机器人的功能。",$I=(e={},r={})=>{if((p??r.locale??n())==="zh")return rpt(e);return tpt(e)};var opt=()=>"SMTP Host",apt=()=>"SMTP 主机",GI=(e={},r={})=>{if((p??r.locale??n())==="zh")return apt(e);return opt(e)};var npt=()=>"e.g. smtp.example.com",ipt=()=>"例如 smtp.example.com",VI=(e={},r={})=>{if((p??r.locale??n())==="zh")return ipt(e);return npt(e)};var fpt=()=>"SMTP Host is required",spt=()=>"必须提供 SMTP 主机",QI=(e={},r={})=>{if((p??r.locale??n())==="zh")return spt(e);return fpt(e)};var lpt=()=>"Ignore Certificate Errors",cpt=()=>"忽略证书错误",KI=(e={},r={})=>{if((p??r.locale??n())==="zh")return cpt(e);return lpt(e)};var upt=()=>"Allow self-signed or unverified SSL/TLS certificates.",dpt=()=>"允许自签名或未验证的 SSL/TLS 证书。",WI=(e={},r={})=>{if((p??r.locale??n())==="zh")return dpt(e);return upt(e)};var Zpt=()=>"Password",ppt=()=>"密码",YI=(e={},r={})=>{if((p??r.locale??n())==="zh")return ppt(e);return Zpt(e)};var mpt=()=>"•••••••• (Leave blank to keep current)",hpt=()=>"••••••••(留空以保持当前密码)",JI=(e={},r={})=>{if((p??r.locale??n())==="zh")return hpt(e);return mpt(e)};var gpt=()=>"Enter SMTP password",Mpt=()=>"输入 SMTP 密码",XI=(e={},r={})=>{if((p??r.locale??n())==="zh")return Mpt(e);return gpt(e)};var xpt=()=>"SMTP Port",vpt=()=>"SMTP 端口",eT=(e={},r={})=>{if((p??r.locale??n())==="zh")return vpt(e);return xpt(e)};var ypt=()=>"SSL / TLS (SMTPS)",_pt=()=>"SSL / TLS (SMTPS)",tT=(e={},r={})=>{if((p??r.locale??n())==="zh")return _pt(e);return ypt(e)};var bpt=()=>"Connect directly over SSL/TLS (commonly used with port 465).",wpt=()=>"直接使用 SSL/TLS 连接(通常用于 465 端口)。",rT=(e={},r={})=>{if((p??r.locale??n())==="zh")return wpt(e);return bpt(e)};var zpt=()=>"SMTP Server Settings",Spt=()=>"SMTP 服务器设置",nT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Spt(e);return zpt(e)};var Lpt=()=>"Username",kpt=()=>"用户名",oT=(e={},r={})=>{if((p??r.locale??n())==="zh")return kpt(e);return Lpt(e)};var Cpt=()=>"e.g. user@example.com",Ipt=()=>"例如 user@example.com",sT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ipt(e);return Cpt(e)};var Rpt=()=>"Some downloads could not be started",Ppt=()=>"部分下载无法启动",Tpt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ppt(e);return Rpt(e)};var Apt=()=>"A → Z",Ept=()=>"A → Z",Wc=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ept(e);return Apt(e)};var Dpt=()=>"Sort by",Opt=()=>"排序",Ol=(e={},r={})=>{if((p??r.locale??n())==="zh")return Opt(e);return Dpt(e)};var Npt=()=>"Created",Fpt=()=>"创建时间",iT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fpt(e);return Npt(e)};var jpt=()=>"Custom",Bpt=()=>"自定义",Zp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bpt(e);return jpt(e)};var Upt=()=>"Date Created",Ypt=()=>"创建日期",Bp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ypt(e);return Upt(e)};var qpt=()=>"Date Modified",Hpt=()=>"修改日期",aT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Hpt(e);return qpt(e)};var Vpt=()=>"Largest → Smallest",Wpt=()=>"最大 → 最小",Up=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wpt(e);return Vpt(e)};var Gpt=()=>"Name",Kpt=()=>"名称",Fl=(e={},r={})=>{if((p??r.locale??n())==="zh")return Kpt(e);return Gpt(e)};var Xpt=()=>"Newest → Oldest",Qpt=()=>"最新 → 最旧",Yc=(e={},r={})=>{if((p??r.locale??n())==="zh")return Qpt(e);return Xpt(e)};var Jpt=()=>"Oldest → Newest",$pt=()=>"最旧 → 最新",Jc=(e={},r={})=>{if((p??r.locale??n())==="zh")return $pt(e);return Jpt(e)};var emt=()=>"Size",tmt=()=>"大小",zp=(e={},r={})=>{if((p??r.locale??n())==="zh")return tmt(e);return emt(e)};var rmt=()=>"Smallest → Largest",omt=()=>"最小 → 最大",jp=(e={},r={})=>{if((p??r.locale??n())==="zh")return omt(e);return rmt(e)};var amt=()=>"Updated",nmt=()=>"更新时间",lT=(e={},r={})=>{if((p??r.locale??n())==="zh")return nmt(e);return amt(e)};var imt=()=>"Z → A",fmt=()=>"Z → A",Xc=(e={},r={})=>{if((p??r.locale??n())==="zh")return fmt(e);return imt(e)};var smt=(e)=>`Sorted by ${e?.field}`,lmt=(e)=>`按${e?.field}排序`,cT=(e,r={})=>{if((p??r.locale??n())==="zh")return lmt(e);return smt(e)};var cmt=()=>"Sorted by",umt=()=>"排序方式",uT=(e={},r={})=>{if((p??r.locale??n())==="zh")return umt(e);return cmt(e)};var dmt=()=>"Standard Time",Zmt=()=>"标准时间",dT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Zmt(e);return dmt(e)};var pmt=()=>"Start Date",mmt=()=>"开始日期",jd=(e={},r={})=>{if((p??r.locale??n())==="zh")return mmt(e);return pmt(e)};var hmt=()=>"Start Download",gmt=()=>"开始下载",pA=(e={},r={})=>{if((p??r.locale??n())==="zh")return gmt(e);return hmt(e)};var Mmt=(e)=>`Starting download of ${e?.count} files. Please allow multiple downloads if prompted by your browser.`,xmt=(e)=>`正在开始下载 ${e?.count} 个文件。如果浏览器提示,请允许多个下载。`,vmt=(e,r={})=>{if((p??r.locale??n())==="zh")return xmt(e);return Mmt(e)};var ymt=()=>"Blocked",_mt=()=>"已受阻",mA=(e={},r={})=>{if((p??r.locale??n())==="zh")return _mt(e);return ymt(e)};var bmt=()=>"Done",wmt=()=>"已完成",zmt=(e={},r={})=>{if((p??r.locale??n())==="zh")return wmt(e);return bmt(e)};var Smt=()=>"In Progress",Lmt=()=>"进行中",kmt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lmt(e);return Smt(e)};var Cmt=()=>"In Review",Imt=()=>"审核中",Rmt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Imt(e);return Cmt(e)};var Pmt=()=>"Ready",Tmt=()=>"就绪",Amt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Tmt(e);return Pmt(e)};var Emt=()=>"To Do",Dmt=()=>"待办",Omt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Dmt(e);return Emt(e)};var Nmt=()=>"Status Updates",Fmt=()=>"状态更新",fT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fmt(e);return Nmt(e)};var jmt=()=>"Switch version",Bmt=()=>"切换版本",qd=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bmt(e);return jmt(e)};var Umt=()=>"Sync Providers",Ymt=()=>"同步提供商",pT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ymt(e);return Umt(e)};var qmt=(e)=>`Add Selected (${e?.count})`,Hmt=(e)=>`添加所选 (${e?.count})`,mT=(e,r={})=>{if((p??r.locale??n())==="zh")return Hmt(e);return qmt(e)};var Vmt=()=>"Adding...",Wmt=()=>"正在添加...",hT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wmt(e);return Vmt(e)};var Gmt=()=>"Checking for updates...",Kmt=()=>"正在检查更新...",gT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Kmt(e);return Gmt(e)};var Xmt=()=>"Collapse All",Qmt=()=>"全部折叠",AT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Qmt(e);return Xmt(e)};var Jmt=(e)=>`${e?.count}k ctx`,$mt=(e)=>`${e?.count}k 上下文`,_T=(e,r={})=>{if((p??r.locale??n())==="zh")return $mt(e);return Jmt(e)};var eht=()=>"Deselect All",tht=()=>"取消全选",yT=(e={},r={})=>{if((p??r.locale??n())==="zh")return tht(e);return eht(e)};var rht=()=>"Select the new providers and models you want to add. Existing providers, custom endpoints, API keys, and model configurations will never be deleted or modified.",oht=()=>"选择您希望添加的新提供商和模型。现有的提供商、自定义端点、API 密钥和模型配置绝不会被删除或修改。",bT=(e={},r={})=>{if((p??r.locale??n())==="zh")return oht(e);return rht(e)};var aht=()=>"Sync Providers & Models",nht=()=>"同步提供商与模型",vT=(e={},r={})=>{if((p??r.locale??n())==="zh")return nht(e);return aht(e)};var iht=()=>"Existing Provider",fht=()=>"现有提供商",wT=(e={},r={})=>{if((p??r.locale??n())==="zh")return fht(e);return iht(e)};var sht=()=>"Expand All",lht=()=>"全部展开",xT=(e={},r={})=>{if((p??r.locale??n())==="zh")return lht(e);return sht(e)};var cht=(e)=>`${e?.count} new models`,uht=(e)=>`${e?.count} 个新模型`,ST=(e,r={})=>{if((p??r.locale??n())==="zh")return uht(e);return cht(e)};var dht=()=>"New Provider",Zht=()=>"新提供商",ET=(e={},r={})=>{if((p??r.locale??n())==="zh")return Zht(e);return dht(e)};var pht=()=>"reasoning",mht=()=>"深度思考",CT=(e={},r={})=>{if((p??r.locale??n())==="zh")return mht(e);return pht(e)};var hht=()=>"Filter new providers or models...",ght=()=>"筛选新提供商或模型...",IT=(e={},r={})=>{if((p??r.locale??n())==="zh")return ght(e);return hht(e)};var Mht=()=>"Select All",xht=()=>"全选",TT=(e={},r={})=>{if((p??r.locale??n())==="zh")return xht(e);return Mht(e)};var vht=(e)=>`${e?.modelCount} models selected across ${e?.providerCount} providers`,yht=(e)=>`已选 ${e?.modelCount} 个模型,分布在 ${e?.providerCount} 个提供商中`,MT=(e,r={})=>{if((p??r.locale??n())==="zh")return yht(e);return vht(e)};var _ht=(e)=>`Successfully added ${e?.modelCount} models across ${e?.providerCount} providers.`,bht=(e)=>`已成功添加 ${e?.providerCount} 个提供商中的 ${e?.modelCount} 个模型。`,kT=(e,r={})=>{if((p??r.locale??n())==="zh")return bht(e);return _ht(e)};var wht=()=>"All providers and models are already up to date.",zht=()=>"所有提供商和模型均已是最新状态。",RT=(e={},r={})=>{if((p??r.locale??n())==="zh")return zht(e);return wht(e)};var Sht=()=>"System",Lht=()=>"跟随系统",kht=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lht(e);return Sht(e)};var Cht=()=>"Target Folder",Iht=()=>"目标文件夹",qp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Iht(e);return Cht(e)};var Rht=()=>"Task created",Pht=()=>"任务已创建",PT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Pht(e);return Rht(e)};var Tht=()=>"Task deleted successfully",Aht=()=>"任务已成功删除",NT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Aht(e);return Tht(e)};var Eht=()=>"Description",Dht=()=>"任务描述",hA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Dht(e);return Eht(e)};var Oht=()=>"Add details, acceptance criteria, or context...",Nht=()=>"添加详细说明、验收标准或背景信息...",gA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Nht(e);return Oht(e)};var Fht=()=>"Priority",jht=()=>"优先级",AA=(e={},r={})=>{if((p??r.locale??n())==="zh")return jht(e);return Fht(e)};var Bht=()=>"Task Title",Uht=()=>"任务标题",_A=(e={},r={})=>{if((p??r.locale??n())==="zh")return Uht(e);return Bht(e)};var Yht=()=>"What needs to be done?",qht=()=>"需要完成什么任务?",yA=(e={},r={})=>{if((p??r.locale??n())==="zh")return qht(e);return Yht(e)};var Hht=()=>"Agent Task",Vht=()=>"智能体任务",Hd=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vht(e);return Hht(e)};var Wht=()=>"Executed autonomously by an AI agent",Ght=()=>"由 AI 智能体自主执行",bA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ght(e);return Wht(e)};var Kht=()=>"team",Xht=()=>"团队",$d=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xht(e);return Kht(e)};var Qht=()=>"Team AI Settings",Jht=()=>"团队 AI 设置",DT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Jht(e);return Qht(e)};var $ht=()=>"Team Attributes",egt=()=>"团队属性",OT=(e={},r={})=>{if((p??r.locale??n())==="zh")return egt(e);return $ht(e)};var tgt=()=>"Team",rgt=()=>"团队",FT=(e={},r={})=>{if((p??r.locale??n())==="zh")return rgt(e);return tgt(e)};var ogt=()=>"Team Member",agt=()=>"团队成员",Hp=(e={},r={})=>{if((p??r.locale??n())==="zh")return agt(e);return ogt(e)};var ngt=()=>"Team Members",igt=()=>"团队成员",LT=(e={},r={})=>{if((p??r.locale??n())==="zh")return igt(e);return ngt(e)};var fgt=()=>"Team Settings",sgt=()=>"团队设置",ZT=(e={},r={})=>{if((p??r.locale??n())==="zh")return sgt(e);return fgt(e)};var lgt=()=>"Team Tasks",cgt=()=>"团队任务",BT=(e={},r={})=>{if((p??r.locale??n())==="zh")return cgt(e);return lgt(e)};var ugt=()=>"Team",dgt=()=>"团队",UT=(e={},r={})=>{if((p??r.locale??n())==="zh")return dgt(e);return ugt(e)};var Zgt=()=>"Template deleted successfully",pgt=()=>"模板删除成功",zT=(e={},r={})=>{if((p??r.locale??n())==="zh")return pgt(e);return Zgt(e)};var mgt=()=>"Template Name",hgt=()=>"模板名称",jT=(e={},r={})=>{if((p??r.locale??n())==="zh")return hgt(e);return mgt(e)};var ggt=()=>"Template saved successfully",Mgt=()=>"模板保存成功",qT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Mgt(e);return ggt(e)};var xgt=()=>"Template updated successfully",vgt=()=>"模板更新成功",HT=(e={},r={})=>{if((p??r.locale??n())==="zh")return vgt(e);return xgt(e)};var ygt=()=>"Test email sent successfully",_gt=()=>"测试邮件发送成功",$T=(e={},r={})=>{if((p??r.locale??n())==="zh")return _gt(e);return ygt(e)};var bgt=()=>"Text Content",wgt=()=>"文本内容",GT=(e={},r={})=>{if((p??r.locale??n())==="zh")return wgt(e);return bgt(e)};var zgt=()=>"Theme",Sgt=()=>"主题",Lgt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Sgt(e);return zgt(e)};var kgt=()=>"Disable",Cgt=()=>"禁用",VT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cgt(e);return kgt(e)};var Igt=()=>"High",Rgt=()=>"高",QT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rgt(e);return Igt(e)};var Pgt=()=>"Thinking Level",Tgt=()=>"思考级别",KT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Tgt(e);return Pgt(e)};var Agt=()=>"Low",Egt=()=>"低",WT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Egt(e);return Agt(e)};var Dgt=()=>"Medium",Ogt=()=>"中",YT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ogt(e);return Dgt(e)};var Ngt=()=>"Thinking...",Fgt=()=>"思考中...",JT=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fgt(e);return Ngt(e)};var jgt=()=>"This folder is empty",Bgt=()=>"此文件夹为空",$p=(e={},r={})=>{if((p??r.locale??n())==="zh")return Bgt(e);return jgt(e)};var Ugt=()=>"Auto",Ygt=()=>"自动",vA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Ygt(e);return Ugt(e)};var qgt=(e)=>`${e?.count} threads`,Hgt=(e)=>`${e?.count} 线程`,XT=(e,r={})=>{if((p??r.locale??n())==="zh")return Hgt(e);return qgt(e)};var Vgt=()=>"Timecode",Wgt=()=>"时间码",e1=(e={},r={})=>{if((p??r.locale??n())==="zh")return Wgt(e);return Vgt(e)};var Ggt=()=>"Timestamp",Kgt=()=>"时间戳",t1=(e={},r={})=>{if((p??r.locale??n())==="zh")return Kgt(e);return Ggt(e)};var Xgt=()=>"Today",Qgt=()=>"今天",Ple=(e={},r={})=>{if((p??r.locale??n())==="zh")return Qgt(e);return Xgt(e)};var Jgt=(e)=>`Today ${e?.time}`,$gt=(e)=>`今天 ${e?.time}`,eMt=(e,r={})=>{if((p??r.locale??n())==="zh")return $gt(e);return Jgt(e)};var tMt=()=>"Toggle Annotation",rMt=()=>"切换标注",r1=(e={},r={})=>{if((p??r.locale??n())==="zh")return rMt(e);return tMt(e)};var oMt=()=>"Checked",aMt=()=>"已选中",n1=(e={},r={})=>{if((p??r.locale??n())==="zh")return aMt(e);return oMt(e)};var nMt=()=>"Unchecked",iMt=()=>"未选中",o1=(e={},r={})=>{if((p??r.locale??n())==="zh")return iMt(e);return nMt(e)};var fMt=()=>"Token",sMt=()=>"令牌",s1=(e={},r={})=>{if((p??r.locale??n())==="zh")return sMt(e);return fMt(e)};var lMt=()=>"Token Name",cMt=()=>"令牌名称",i1=(e={},r={})=>{if((p??r.locale??n())==="zh")return cMt(e);return lMt(e)};var uMt=()=>"e.g. My CLI token",dMt=()=>"例如:我的 CLI 令牌",a1=(e={},r={})=>{if((p??r.locale??n())==="zh")return dMt(e);return uMt(e)};var ZMt=()=>"tokens",pMt=()=>"令牌",wA=(e={},r={})=>{if((p??r.locale??n())==="zh")return pMt(e);return ZMt(e)};var mMt=()=>"Arguments",hMt=()=>"参数",Gp=(e={},r={})=>{if((p??r.locale??n())==="zh")return hMt(e);return mMt(e)};var gMt=()=>"Parameters",MMt=()=>"参数列表",l1=(e={},r={})=>{if((p??r.locale??n())==="zh")return MMt(e);return gMt(e)};var xMt=(e)=>`Tool Result: ${e?.name}`,vMt=(e)=>`工具结果:${e?.name}`,Vp=(e,r={})=>{if((p??r.locale??n())==="zh")return vMt(e);return xMt(e)};var yMt=()=>"Total Tokens",_Mt=()=>"总 Token",xA=(e={},r={})=>{if((p??r.locale??n())==="zh")return _Mt(e);return yMt(e)};var bMt=()=>"Transcode Policy",wMt=()=>"转码策略",c1=(e={},r={})=>{if((p??r.locale??n())==="zh")return wMt(e);return bMt(e)};var zMt=()=>"When HLS is disabled, both playback and download use MP4. When HLS is enabled, playback uses HLS streaming while download uses MP4. Note that enabling HLS may significantly increase storage usage.",SMt=()=>"未启用 HLS 时,播放和下载均使用 MP4。启用 HLS 后,播放将使用 HLS 自适应流,而下载使用 MP4。请注意,启用 HLS 可能会显著增加存储空间占用。",u1=(e={},r={})=>{if((p??r.locale??n())==="zh")return SMt(e);return zMt(e)};var LMt=()=>"Transcoding Failed",kMt=()=>"转码失败",d1=(e={},r={})=>{if((p??r.locale??n())==="zh")return kMt(e);return LMt(e)};var CMt=()=>"Trash emptied successfully",IMt=()=>"回收站已清空",f1=(e={},r={})=>{if((p??r.locale??n())==="zh")return IMt(e);return CMt(e)};var RMt=(e)=>`Try adjusting your search for "${e?.query}"`,PMt=(e)=>`请尝试调整搜索 "${e?.query}"`,p1=(e,r={})=>{if((p??r.locale??n())==="zh")return PMt(e);return RMt(e)};var TMt=()=>"Try adjusting spelling or removing filter rows.",AMt=()=>"请尝试调整拼写或移除筛选条件。",m1=(e={},r={})=>{if((p??r.locale??n())==="zh")return AMt(e);return TMt(e)};var EMt=()=>"Connection failed",DMt=()=>"连接失败",Gd=(e={},r={})=>{if((p??r.locale??n())==="zh")return DMt(e);return EMt(e)};var OMt=()=>"Connected successfully",NMt=()=>"连接成功",SA=(e={},r={})=>{if((p??r.locale??n())==="zh")return NMt(e);return OMt(e)};var FMt=()=>"Configured via environment variables (Read-only)",jMt=()=>"已通过环境变量配置(只读)",h1=(e={},r={})=>{if((p??r.locale??n())==="zh")return jMt(e);return FMt(e)};var BMt=()=>"Password",UMt=()=>"密码",g1=(e={},r={})=>{if((p??r.locale??n())==="zh")return UMt(e);return BMt(e)};var YMt=()=>"Leave blank to keep existing password",qMt=()=>"留空以保留当前密码",A1=(e={},r={})=>{if((p??r.locale??n())==="zh")return qMt(e);return YMt(e)};var HMt=()=>"Server URL",VMt=()=>"服务地址",_1=(e={},r={})=>{if((p??r.locale??n())==="zh")return VMt(e);return HMt(e)};var WMt=()=>"e.g. http://localhost:3001",GMt=()=>"例如 http://localhost:3001",y1=(e={},r={})=>{if((p??r.locale??n())==="zh")return GMt(e);return WMt(e)};var KMt=()=>"3D Turntable Renderer",XMt=()=>"3D 转盘渲染服务",b1=(e={},r={})=>{if((p??r.locale??n())==="zh")return XMt(e);return KMt(e)};var QMt=()=>"Configure the external Blender turntable-renderer service for generating 3D asset previews and videos.",JMt=()=>"配置用于生成 3D 资产预览图与转盘视频的外部 Blender 渲染服务。",v1=(e={},r={})=>{if((p??r.locale??n())==="zh")return JMt(e);return QMt(e)};var $Mt=()=>"Test Connection",e8t=()=>"测试连接",w1=(e={},r={})=>{if((p??r.locale??n())==="zh")return e8t(e);return $Mt(e)};var t8t=()=>"Testing...",r8t=()=>"正在测试...",x1=(e={},r={})=>{if((p??r.locale??n())==="zh")return r8t(e);return t8t(e)};var o8t=()=>"Username",a8t=()=>"用户名",S1=(e={},r={})=>{if((p??r.locale??n())==="zh")return a8t(e);return o8t(e)};var n8t=()=>"Type a message...",i8t=()=>"输入消息...",E1=(e={},r={})=>{if((p??r.locale??n())==="zh")return i8t(e);return n8t(e)};var f8t=()=>"Type **delete** to confirm:",s8t=()=>"输入 **delete** 以确认:",C1=(e={},r={})=>{if((p??r.locale??n())==="zh")return s8t(e);return f8t(e)};var l8t=()=>"Type:",c8t=()=>"类型:",I1=(e={},r={})=>{if((p??r.locale??n())==="zh")return c8t(e);return l8t(e)};var u8t=()=>"Type your query above and click the Search button to display results.",d8t=()=>"在上方输入查询内容并点击搜索按钮以显示结果。",T1=(e={},r={})=>{if((p??r.locale??n())==="zh")return d8t(e);return u8t(e)};var Z8t=()=>"Unassigned",p8t=()=>"未指派",_s=(e={},r={})=>{if((p??r.locale??n())==="zh")return p8t(e);return Z8t(e)};var m8t=()=>"Unknown",h8t=()=>"未知",An=(e={},r={})=>{if((p??r.locale??n())==="zh")return h8t(e);return m8t(e)};var g8t=()=>"unknown asset",M8t=()=>"未知资源",x8t=(e={},r={})=>{if((p??r.locale??n())==="zh")return M8t(e);return g8t(e)};var v8t=()=>"Unknown Date",y8t=()=>"未知日期",_8t=(e={},r={})=>{if((p??r.locale??n())==="zh")return y8t(e);return v8t(e)};var b8t=()=>"unknown project",w8t=()=>"未知项目",z8t=(e={},r={})=>{if((p??r.locale??n())==="zh")return w8t(e);return b8t(e)};var S8t=()=>"unknown task",L8t=()=>"未知任务",k8t=(e={},r={})=>{if((p??r.locale??n())==="zh")return L8t(e);return S8t(e)};var C8t=()=>"unknown team",I8t=()=>"未知团队",R8t=(e={},r={})=>{if((p??r.locale??n())==="zh")return I8t(e);return C8t(e)};var P8t=()=>"Unknown User",T8t=()=>"未知用户",Ll=(e={},r={})=>{if((p??r.locale??n())==="zh")return T8t(e);return P8t(e)};var A8t=()=>"Unlink Asset",E8t=()=>"取消关联资产",D8t=(e={},r={})=>{if((p??r.locale??n())==="zh")return E8t(e);return A8t(e)};var O8t=()=>"Unlink Task",N8t=()=>"取消关联",F8t=(e={},r={})=>{if((p??r.locale??n())==="zh")return N8t(e);return O8t(e)};var j8t=()=>"Unread",B8t=()=>"未读",U8t=(e={},r={})=>{if((p??r.locale??n())==="zh")return B8t(e);return j8t(e)};var Y8t=()=>"Untitled Collection",q8t=()=>"未命名媒体合集",EA=(e={},r={})=>{if((p??r.locale??n())==="zh")return q8t(e);return Y8t(e)};var H8t=()=>"Untitled Session",V8t=()=>"未命名会话",Qp=(e={},r={})=>{if((p??r.locale??n())==="zh")return V8t(e);return H8t(e)};var W8t=()=>"Untitled Upload",G8t=()=>"未命名上传",K8t=(e={},r={})=>{if((p??r.locale??n())==="zh")return G8t(e);return W8t(e)};var X8t=()=>"Updated",Q8t=()=>"更新于",M1=(e={},r={})=>{if((p??r.locale??n())==="zh")return Q8t(e);return X8t(e)};var J8t=()=>"Updated",$8t=()=>"更新于",CA=(e={},r={})=>{if((p??r.locale??n())==="zh")return $8t(e);return J8t(e)};var ext=()=>"Upload",txt=()=>"上传",k1=(e={},r={})=>{if((p??r.locale??n())==="zh")return txt(e);return ext(e)};var rxt=()=>"Upload cover",oxt=()=>"上传封面",R1=(e={},r={})=>{if((p??r.locale??n())==="zh")return oxt(e);return rxt(e)};var axt=()=>"Drag and drop, or browse. Recommended 1:1 (400×400px).",nxt=()=>"拖放或浏览文件。推荐比例 1:1(400×400像素)。",P1=(e={},r={})=>{if((p??r.locale??n())==="zh")return nxt(e);return axt(e)};var ixt=()=>"Upload File",fxt=()=>"上传文件",Kp=(e={},r={})=>{if((p??r.locale??n())==="zh")return fxt(e);return ixt(e)};var sxt=()=>"Upload Folder",lxt=()=>"上传文件夹",Wp=(e={},r={})=>{if((p??r.locale??n())==="zh")return lxt(e);return sxt(e)};var cxt=()=>"Upload Image",uxt=()=>"上传图片",Yp=(e={},r={})=>{if((p??r.locale??n())==="zh")return uxt(e);return cxt(e)};var dxt=()=>"Upload Watermark Image",Zxt=()=>"上传水印图片",N1=(e={},r={})=>{if((p??r.locale??n())==="zh")return Zxt(e);return dxt(e)};var pxt=()=>"Drag and drop, or browse. Max 1MB.",mxt=()=>"拖放或浏览文件。最大 1MB。",D1=(e={},r={})=>{if((p??r.locale??n())==="zh")return mxt(e);return pxt(e)};var hxt=()=>"Uploading...",gxt=()=>"上传中...",eu=(e={},r={})=>{if((p??r.locale??n())==="zh")return gxt(e);return hxt(e)};var Mxt=()=>"Uploading",xxt=()=>"上传中",vxt=(e={},r={})=>{if((p??r.locale??n())==="zh")return xxt(e);return Mxt(e)};var yxt=()=>"Uploads",_xt=()=>"上传管理",bxt=(e={},r={})=>{if((p??r.locale??n())==="zh")return _xt(e);return yxt(e)};var wxt=()=>"Usage",zxt=()=>"用量",O1=(e={},r={})=>{if((p??r.locale??n())==="zh")return zxt(e);return wxt(e)};var Sxt=()=>"User",Lxt=()=>"用户",F1=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lxt(e);return Sxt(e)};var kxt=(e)=>`${e?.user} via ${e?.agent}`,Cxt=(e)=>`${e?.user} 通过 ${e?.agent}`,tu=(e,r={})=>{if((p??r.locale??n())==="zh")return Cxt(e);return kxt(e)};var Ixt=()=>"Variable Name",Rxt=()=>"变量名称",L1=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rxt(e);return Ixt(e)};var Pxt=(e)=>`Version ${e?.version}`,Txt=(e)=>`版本 ${e?.version}`,Axt=(e,r={})=>{if((p??r.locale??n())==="zh")return Txt(e);return Pxt(e)};var Ext=()=>"Version removed from stack",Dxt=()=>"已从版本堆栈中移除版本",Oxt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Dxt(e);return Ext(e)};var Nxt=()=>"Version order updated",Fxt=()=>"版本顺序已更新",jxt=(e={},r={})=>{if((p??r.locale??n())==="zh")return Fxt(e);return Nxt(e)};var Bxt=(e)=>`${e?.count} enabled`,Uxt=(e)=>`${e?.count} 个已启用`,Z1=(e,r={})=>{if((p??r.locale??n())==="zh")return Uxt(e);return Bxt(e)};var Yxt=()=>"Resolution Ladders",qxt=()=>"分辨率阶梯",B1=(e={},r={})=>{if((p??r.locale??n())==="zh")return qxt(e);return Yxt(e)};var Hxt=()=>"Select the target resolutions to generate for MP4 transcoding. Resolutions are only generated up to the source video resolution.",Vxt=()=>"选择 MP4 转码的目标分辨率。仅生成不超过原始视频分辨率的分辨率阶梯。",U1=(e={},r={})=>{if((p??r.locale??n())==="zh")return Vxt(e);return Hxt(e)};var Wxt=()=>"Video Transcoding",Gxt=()=>"视频转码",IA=(e={},r={})=>{if((p??r.locale??n())==="zh")return Gxt(e);return Wxt(e)};var Kxt=()=>"Manage your team's video transcoding configurations.",Xxt=()=>"管理团队的视频转码配置。",z1=(e={},r={})=>{if((p??r.locale??n())==="zh")return Xxt(e);return Kxt(e)};var Qxt=(e)=>`(${e?.count} visible)`,Jxt=(e)=>`(${e?.count} 个可见)`,j1=(e,r={})=>{if((p??r.locale??n())==="zh")return Jxt(e);return Qxt(e)};var $xt=()=>"Watermark",evt=()=>"水印",TA=(e={},r={})=>{if((p??r.locale??n())==="zh")return evt(e);return $xt(e)};var tvt=()=>"Watermark disabled",rvt=()=>"水印已禁用",q1=(e={},r={})=>{if((p??r.locale??n())==="zh")return rvt(e);return tvt(e)};var ovt=()=>"Watermark Editor",avt=()=>"水印编辑器",H1=(e={},r={})=>{if((p??r.locale??n())==="zh")return avt(e);return ovt(e)};var nvt=()=>"Templates",ivt=()=>"水印模板",$1=(e={},r={})=>{if((p??r.locale??n())==="zh")return ivt(e);return nvt(e)};var fvt=()=>"Transcoding watermark media...",svt=()=>"水印媒体转码处理中...",G1=(e={},r={})=>{if((p??r.locale??n())==="zh")return svt(e);return fvt(e)};var lvt=()=>"Watermark updated successfully",cvt=()=>"水印更新成功",V1=(e={},r={})=>{if((p??r.locale??n())==="zh")return cvt(e);return lvt(e)};var uvt=()=>"Welcome Back",dvt=()=>"欢迎回来",Zvt=(e={},r={})=>{if((p??r.locale??n())==="zh")return dvt(e);return uvt(e)};var pvt=()=>"When someone comments on a task",mvt=()=>"当有人在任务中发表评论时",Q1=(e={},r={})=>{if((p??r.locale??n())==="zh")return mvt(e);return pvt(e)};var hvt=()=>"When tasks are created, assigned, updated, or deleted",gvt=()=>"当任务被创建、分配、更新或删除时",K1=(e={},r={})=>{if((p??r.locale??n())==="zh")return gvt(e);return hvt(e)};var Mvt=()=>"When other users upload assets",xvt=()=>"当其他用户上传素材时",W1=(e={},r={})=>{if((p??r.locale??n())==="zh")return xvt(e);return Mvt(e)};var vvt=()=>"When someone changes an asset's status",yvt=()=>"当有人更改素材的状态时",Y1=(e={},r={})=>{if((p??r.locale??n())==="zh")return yvt(e);return vvt(e)};var _vt=()=>"When someone comments on an asset",bvt=()=>"当有人评论素材时",J1=(e={},r={})=>{if((p??r.locale??n())==="zh")return bvt(e);return _vt(e)};var wvt=()=>"When someone @mentions you in a comment",zvt=()=>"当有人在评论中 @提及你时",X1=(e={},r={})=>{if((p??r.locale??n())==="zh")return zvt(e);return wvt(e)};var Svt=()=>"When someone replies to your comment",Lvt=()=>"当有人回复你的评论时",eM=(e={},r={})=>{if((p??r.locale??n())==="zh")return Lvt(e);return Svt(e)};var kvt=()=>"When you upload assets",Cvt=()=>"当你上传素材时",tM=(e={},r={})=>{if((p??r.locale??n())==="zh")return Cvt(e);return kvt(e)};var Ivt=()=>"Yesterday",Rvt=()=>"昨天",Tle=(e={},r={})=>{if((p??r.locale??n())==="zh")return Rvt(e);return Ivt(e)};var Pvt=(e)=>`Yesterday ${e?.time}`,Tvt=(e)=>`昨天 ${e?.time}`,Avt=(e,r={})=>{if((p??r.locale??n())==="zh")return Tvt(e);return Pvt(e)};var Evt=()=>"Your Uploads",Dvt=()=>"你的上传",rM=(e={},r={})=>{if((p??r.locale??n())==="zh")return Dvt(e);return Evt(e)};var Ovt=()=>"Zoom In",Nvt=()=>"放大",Jp=(e={},r={})=>{if((p??r.locale??n())==="zh")return Nvt(e);return Ovt(e)};var Fvt=()=>"Zoom Out",jvt=()=>"缩小",Xp=(e={},r={})=>{if((p??r.locale??n())==="zh")return jvt(e);return Fvt(e)};var Bvt=(e)=>o("svg",{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",...e,children:[t("path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}),t("path",{d:"M9 18c-4.51 2-5-2-7-2"})]});function Ale(){let{clearAuth:e}=bf(),r=As(),a=(g)=>{if(!g)return"";switch(g.toLowerCase()){case"owner":return Kc();case"editor":return Hs();case"reviewer":return Gs();default:return g}},{data:i}=Z({queryKey:["teams",r,"me"],queryFn:async()=>{let g=await A.api.teams[":teamId"].me.$get({param:{teamId:r}});if(!g.ok)throw Error("Failed to fetch me");return await g.json()},enabled:!!r}),{setTheme:s,theme:l}=xre(),c=Re(),d=async()=>{await Wse(),e(),c({to:"/login"})},h=(g)=>{if(!g)return"U";let x=g.split(" ");if(x.length>1)return`${x[0][0]}${x[x.length-1][0]}`.toUpperCase();return g.substring(0,2).toUpperCase()};return o(ge,{children:[t(Ae,{asChild:!0,children:o(Ce,{className:"rounded-lg w-10 h-10 cursor-pointer",children:[i?.image&&t(Ie,{src:i.image,alt:i.name,className:"object-cover rounded-lg w-10 h-10"}),t(Te,{className:"rounded-lg bg-primary/40 text-foreground",children:h(i?.name)})]})}),o(_e,{className:"w-56",align:"end",forceMount:!0,children:[i&&o(L,{children:[t(Wr,{className:"font-normal",children:o("div",{className:"flex flex-col space-y-1",children:[t("p",{className:"text-sm font-medium leading-none",children:i.name}),t("p",{className:"text-xs leading-none text-muted-foreground",children:a(i.role)})]})}),t(Vt,{})]}),o(ms,{children:[t(hs,{children:Lgt()}),t(ra,{children:o(gs,{children:[o(K,{className:"justify-between flex items-center",onClick:()=>s("light"),children:[t("span",{children:zGe()}),l==="light"&&t(Pe,{className:"size-4"})]}),o(K,{className:"justify-between flex items-center",onClick:()=>s("dark"),children:[t("span",{children:Rje()}),l==="dark"&&t(Pe,{className:"size-4"})]}),o(K,{className:"justify-between flex items-center",onClick:()=>s("system"),children:[t("span",{children:kht()}),l==="system"&&t(Pe,{className:"size-4"})]})]})})]}),t(Vt,{}),t(K,{onClick:()=>c({to:"/teams/$teamId/settings",params:{teamId:r}}),disabled:!r,children:Fp()}),t(Vt,{}),t(K,{className:"text-red-500 focus:text-red-500",onClick:d,children:QGe()}),t(Vt,{}),o(K,{className:"text-xs text-muted-foreground flex items-center gap-2 cursor-pointer focus:bg-accent focus:text-accent-foreground justify-center bg-accent border",onClick:()=>window.open("https://github.com/shumaiOne/shumai","_blank","noopener,noreferrer"),children:[t(Bvt,{className:"size-3.5"}),t("span",{children:Axt({version:Gse})})]})]})]})}var Jz=()=>null,Ele=({children:e,hideMobileButton:r=!1,defaultMobileContent:a})=>{let{isMobileMenuOpen:i,activeItem:s,setActiveItem:l,toggleMobileMenu:c,closeMobileMenu:d}=Kk(),h=nz({select:(T)=>T.location.pathname}),g=D(()=>nc.toArray(e).filter((T)=>as(T)&&T.type===Jz),[e]),x=_(h);m(()=>{if(x.current!==h)x.current=h,d()},[h,d]);let v=s!==null?g[s]?.props:null,b=v??(i?a:null),y=Boolean(v||i&&a),k=(T)=>{let U=g[T];if(!U.props.children){l(null),U.props.onItemClick?.();return}if(s===T)l(null);else{if(U&&U.props.onItemClick)U.props.onItemClick();l(T)}};return o(L,{children:[!r&&t(E,{variant:"ghost",size:"icon",onClick:c,className:"md:hidden fixed top-4 left-4 z-50 rounded-md bg-sidebar/50 backdrop-blur-sm text-sidebar-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring","aria-label":"Open navigation menu","aria-expanded":i,children:t(XZ,{})}),i&&t("div",{onClick:d,className:"fixed inset-0 bg-black/60 z-30 md:hidden","aria-hidden":"true"}),s!==null&&t("div",{onClick:()=>l(null),className:"hidden md:block fixed inset-0 bg-black/20 z-30","aria-hidden":"true"}),o("aside",{className:`fixed inset-y-0 left-0 z-40 flex transition-transform duration-300 ease-in-out ${i?"translate-x-0":"-translate-x-full"} md:translate-x-0`,children:[t("div",{className:"absolute bottom-0 w-full h-[70dvh] bg-linear-to-t from-sidebar-primary/10 to-transparent"}),o("nav",{className:"w-16 bg-card border-r border-sidebar-border flex flex-col items-center pb-4 pt-0 space-y-2 flex-shrink-0",children:[t("div",{className:"flex-1 w-full flex flex-col items-center gap-5 pt-1",children:t(sn,{children:g.map((T,U)=>{let N=Boolean(T.props.active||s===U);return o(an,{children:[t(ln,{asChild:!0,children:o(E,{variant:"ghost",size:"icon-lg",onClick:()=>k(U),"aria-label":T.props.label,"aria-expanded":s===U,className:`relative w-12 h-12 [&_svg:not([class*='size-'])]:size-6 transition-colors duration-200 ${N?"text-sidebar-primary hover:bg-sidebar-accent hover:text-sidebar-primary":"text-sidebar-foreground/60 hover:text-sidebar-foreground hover:bg-sidebar-accent"}`,children:[T.props.icon,T.props.badge]})}),t(cn,{side:"right",children:t("p",{children:T.props.label})})]},T.props.label)})})}),t("div",{className:"mt-auto w-full flex flex-col items-center pb-2",children:t(Ale,{})})]}),t("div",{className:C("transition-all duration-300 ease-in-out bg-sidebar/95 backdrop-blur-sm shadow-lg overflow-hidden",y?"w-[calc(100vw-4rem)] border-r border-sidebar-border":"w-0",v?"md:w-100 md:border-r md:border-sidebar-border":"md:w-0 md:border-r-0"),children:t("div",{className:"w-[calc(100vw-4rem)] md:w-100 h-full flex flex-col",children:b&&o(L,{children:[o("header",{className:"h-16 flex items-center justify-between px-4 font-bold text-lg border-b border-sidebar-border flex-shrink-0",children:[t("h2",{className:"truncate",children:b.label}),t(E,{variant:"ghost",size:"icon",onClick:d,className:"h-8 w-8 text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Close navigation menu",children:t(Ne,{className:"h-5 w-5"})})]}),t("div",{className:"flex-1 overflow-y-auto p-2",children:b.children})]})})})]})]})};function Xe({...e}){return t(uCe,{"data-slot":"alert-dialog",...e})}function Uvt({...e}){return t(dCe,{"data-slot":"alert-dialog-portal",...e})}function Yvt({className:e,...r}){return t(ZCe,{"data-slot":"alert-dialog-overlay",className:C("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...r})}function et({className:e,size:r="default",...a}){return o(Uvt,{children:[t(Yvt,{}),t(pCe,{"data-slot":"alert-dialog-content","data-size":r,className:C("group/alert-dialog-content 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 bg-background p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[size=default]:sm:max-w-lg",e),...a})]})}function tt({className:e,...r}){return t("div",{"data-slot":"alert-dialog-header",className:C("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...r})}function rt({className:e,...r}){return t("div",{"data-slot":"alert-dialog-footer",className:C("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...r})}function nt({className:e,...r}){return t(gCe,{"data-slot":"alert-dialog-title",className:C("text-lg font-semibold sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...r})}function ot({className:e,...r}){return t(MCe,{"data-slot":"alert-dialog-description",className:C("text-sm text-muted-foreground",e),...r})}function st({className:e,variant:r="default",size:a="default",...i}){return t(E,{variant:r,size:a,asChild:!0,children:t(mCe,{"data-slot":"alert-dialog-action",className:C(e),...i})})}function it({className:e,variant:r="outline",size:a="default",...i}){return t(E,{variant:r,size:a,asChild:!0,children:t(hCe,{"data-slot":"alert-dialog-cancel",className:C(e),...i})})}function ue({...e}){return t(V7,{"data-slot":"dialog",...e})}function MA({...e}){return t(W7,{"data-slot":"dialog-trigger",...e})}function qvt({...e}){return t(G7,{"data-slot":"dialog-portal",...e})}function Hvt({className:e,...r}){return t(K7,{"data-slot":"dialog-overlay",className:C("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...r})}function ae({className:e,children:r,showCloseButton:a=!0,...i}){return o(qvt,{"data-slot":"dialog-portal",children:[t(Hvt,{}),o(X7,{"data-slot":"dialog-content",className:C("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 bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",e),...i,children:[r,a&&o(rD,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[t(Ne,{}),t("span",{className:"sr-only",children:"Close"})]})]})]})}function pe({className:e,...r}){return t("div",{"data-slot":"dialog-header",className:C("flex flex-col gap-2 text-center sm:text-left",e),...r})}function qe({className:e,showCloseButton:r=!1,children:a,...i}){return o("div",{"data-slot":"dialog-footer",className:C("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...i,children:[a,r&&t(rD,{asChild:!0,children:t(E,{variant:"outline",children:"Close"})})]})}function le({className:e,...r}){return t(Q7,{"data-slot":"dialog-title",className:C("text-lg leading-none font-semibold",e),...r})}function Mt({className:e,...r}){return t(J7,{"data-slot":"dialog-description",className:C("text-sm text-muted-foreground",e),...r})}function z({className:e,type:r,...a}){return t("input",{type:r,"data-slot":"input",className:C("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...a})}function ce({className:e,children:r,...a}){return o(XRe,{"data-slot":"scroll-area",className:C("relative",e),...a,children:[t(QRe,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:r}),t(bF,{}),t(JRe,{})]})}function bF({className:e,orientation:r="vertical",...a}){return t(FRe,{"data-slot":"scroll-area-scrollbar",orientation:r,className:C("flex touch-none p-px transition-colors select-none",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...a,children:t(HRe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}var ut=Rr()(Gk((e,r)=>({teamId:null,projectTeamMap:{},setTeamId:(a)=>e({teamId:a}),ensureTeamIdForProject:async(a)=>{let i=r();if(i.projectTeamMap[a]){let s=i.projectTeamMap[a];if(i.teamId!==s)e({teamId:s});return s}try{let s=await A.api.projects[":projectId"].team.$get({param:{projectId:a}});if(!s.ok)throw Error("failed to fetch project team");let l=await s.json();if(l&&l.teamId)return e((c)=>({teamId:l.teamId,projectTeamMap:{...c.projectTeamMap,[a]:l.teamId}})),l.teamId}catch(s){console.error("Failed to fetch team ID for project",a,s)}return null}}),{name:"team-context-storage",storage:Iz(()=>localStorage)}));S();function Ot(e){let r=ut((i)=>i.teamId),{data:a}=Z({queryKey:e?["projects",e,"me"]:["teams",r,"me"],queryFn:async()=>{if(e){let i=await A.api.projects[":projectId"].me.$get({param:{projectId:e}});if(!i.ok)throw Error("Failed to fetch project me");return await i.json()}else{if(!r)return null;let i=await A.api.teams[":teamId"].me.$get({param:{teamId:r}});if(!i.ok)throw Error("Failed to fetch team me");return await i.json()}},enabled:e?!!e:!!r});return D(()=>({role:a?.role,canEdit:a?.role==="owner"||a?.role==="editor",canAdmin:a?.role==="owner"}),[a?.role])}S();var Vvt=Symbol.for("preact-signals");function LF(){if(!(Am>1)){var e,r=!1;(function(){var s=zF;zF=void 0;while(s!==void 0){var l=s.S;if(l.v===s.v){for(var c=l.t;c!==void 0;c=c.x)if(c.i===s.i)c.i=l.i}s=s.o}})();while(SD!==void 0){var a=SD;SD=void 0,wF++;while(a!==void 0){var i=a.u;if(a.u=void 0,a.f&=-3,!(8&a.f)&&Ole(a))try{a.c()}catch(s){if(!r)e=s,r=!0}a=i}}if(wF=0,Am--,r)throw e}else Am--}function Qo(e){if(Am>0)return e();z9=++Wvt,Am++;try{return e()}finally{LF()}}var zD,wn=void 0;function vo(e){var r=wn,a=zD;wn=void 0,zD=void 0;try{return e()}finally{wn=r,zD=a}}var SD=void 0,Am=0,wF=0,Wvt=0,z9=0,zF=void 0,SF=0;function Dle(e){if(wn!==void 0){var r=e.n;if(r===void 0||r.t!==wn){if(r={i:0,S:e,p:wn.s,n:void 0,t:wn,e:void 0,x:void 0,r},wn.s!==void 0)wn.s.n=r;if(wn.s=r,e.n=r,32&wn.f)e.S(r);return r}else if(r.i===-1){if(r.i=0,r.n!==void 0){if(r.n.p=r.p,r.p!==void 0)r.p.n=r.n;r.p=wn.s,r.n=void 0,wn.s.n=r,wn.s=r}return r}}}function wf(e,r){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=r==null?void 0:r.watched,this.Z=r==null?void 0:r.unwatched,this.name=r==null?void 0:r.name}wf.prototype.brand=Vvt;wf.prototype.h=function(){return!0};wf.prototype.S=function(e){var r=this,a=this.t;if(a!==e&&e.e===void 0)if(e.x=a,this.t=e,a!==void 0)a.e=e;else vo(function(){var i;(i=r.W)==null||i.call(r)})};wf.prototype.U=function(e){var r=this;if(this.t!==void 0){var{e:a,x:i}=e;if(a!==void 0)a.x=i,e.e=void 0;if(i!==void 0)i.e=a,e.x=void 0;if(e===this.t){if(this.t=i,i===void 0)vo(function(){var s;(s=r.Z)==null||s.call(r)})}}};wf.prototype.subscribe=function(e){var r=this;return Ii(function(){var a=r.value;vo(function(){return e(a)})},{name:"sub"})};wf.prototype.valueOf=function(){return this.value};wf.prototype.toString=function(){return this.value+""};wf.prototype.toJSON=function(){return this.value};wf.prototype.peek=function(){var e=this;return vo(function(){return e.value})};Object.defineProperty(wf.prototype,"value",{get:function(){var e=Dle(this);if(e!==void 0)e.i=this.i;return this.v},set:function(e){if(e!==this.v){if(wF>100)throw Error("Cycle detected");(function(a){if(Am!==0&&wF===0){if(a.l!==z9)a.l=z9,zF={S:a,v:a.v,i:a.i,o:zF}}})(this),this.v=e,this.i++,SF++,Am++;try{for(var r=this.t;r!==void 0;r=r.x)r.t.N()}finally{LF()}}}});function pZ(e,r){return new wf(e,r)}function Ole(e){for(var r=e.s;r!==void 0;r=r.n)if(r.S.i!==r.i||!r.S.h()||r.S.i!==r.i)return!0;return!1}function Nle(e){for(var r=e.s;r!==void 0;r=r.n){var a=r.S.n;if(a!==void 0)r.r=a;if(r.S.n=r,r.i=-1,r.n===void 0){e.s=r;break}}}function Fle(e){var r=e.s,a=void 0;while(r!==void 0){var i=r.p;if(r.i===-1){if(r.S.U(r),i!==void 0)i.n=r.n;if(r.n!==void 0)r.n.p=i}else a=r;if(r.S.n=r.r,r.r!==void 0)r.r=void 0;r=i}e.s=a}function $z(e,r){wf.call(this,void 0,r),this.x=e,this.s=void 0,this.g=SF-1,this.f=4}$z.prototype=new wf;$z.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32)return!0;if(this.f&=-5,this.g===SF)return!0;if(this.g=SF,this.f|=1,this.i>0&&!Ole(this))return this.f&=-2,!0;var e=wn;try{Nle(this),wn=this;var r=this.x();if(16&this.f||this.v!==r||this.i===0)this.v=r,this.f&=-17,this.i++}catch(a){this.v=a,this.f|=16,this.i++}return wn=e,Fle(this),this.f&=-2,!0};$z.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var r=this.s;r!==void 0;r=r.n)r.S.S(r)}wf.prototype.S.call(this,e)};$z.prototype.U=function(e){if(this.t!==void 0){if(wf.prototype.U.call(this,e),this.t===void 0){this.f&=-33;for(var r=this.s;r!==void 0;r=r.n)r.S.U(r)}}};$z.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty($z.prototype,"value",{get:function(){if(1&this.f)throw Error("Cycle detected");var e=Dle(this);if(this.h(),e!==void 0)e.i=this.i;if(16&this.f)throw this.v;return this.v}});function S9(e,r){return new $z(e,r)}function jle(e){var r=e.m;if(e.m=void 0,typeof r=="function"){Am++;var a=wn;wn=void 0;try{r()}catch(i){throw e.f&=-2,e.f|=8,L9(e),i}finally{wn=a,LF()}}}function L9(e){for(var r=e.s;r!==void 0;r=r.n)r.S.U(r);e.x=void 0,e.s=void 0,jle(e)}function Gvt(e){if(wn!==this)throw Error("Out-of-order effect");if(Fle(this),wn=e,this.f&=-2,8&this.f)L9(this);LF()}function dR(e,r){if(this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=r==null?void 0:r.name,zD)zD.push(this)}dR.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(this.x===void 0)return;var r=this.x();if(typeof r=="function")this.m=r}finally{e()}};dR.prototype.S=function(){if(1&this.f)throw Error("Cycle detected");this.f|=1,this.f&=-9,jle(this),Nle(this),Am++;var e=wn;return wn=this,Gvt.bind(this,e)};dR.prototype.N=function(){if(!(2&this.f))this.f|=2,this.u=SD,SD=this};dR.prototype.d=function(){if(this.f|=8,!(1&this.f))L9(this)};dR.prototype.dispose=function(){this.d()};function Ii(e,r){var a=new dR(e,r);try{a.c()}catch(s){throw a.d(),s}var i=a.d.bind(a);return i[Symbol.dispose]=i,i}var{create:Kvt,defineProperty:N9,defineProperties:Xvt,getOwnPropertyDescriptor:Qvt,getOwnPropertyDescriptors:Jvt,getOwnPropertySymbols:Ble}=Object,$vt=Object.prototype.hasOwnProperty,eyt=Object.prototype.propertyIsEnumerable,Yle=(e,r)=>(r=Symbol[e])?r:Symbol.for("Symbol."+e),ZR=(e)=>{throw TypeError(e)},P9=(e,r,a)=>(r in e)?N9(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,tyt=(e,r)=>{for(var a in r||(r={}))if($vt.call(r,a))P9(e,a,r[a]);if(Ble){for(var a of Ble(r))if(eyt.call(r,a))P9(e,a,r[a])}return e},ryt=(e,r)=>Xvt(e,Jvt(r)),Ule=(e,r)=>N9(e,"name",{value:r,configurable:!0}),oyt=(e)=>{var r;return[,,,Kvt((r=e==null?void 0:e[Yle("metadata")])!=null?r:null)]},qle=["class","method","getter","setter","accessor","field","value","get","set"],LD=(e)=>e!==void 0&&typeof e!=="function"?ZR("Function expected"):e,ayt=(e,r,a,i,s)=>({kind:qle[e],name:r,metadata:i,addInitializer:(l)=>a._?ZR("Already initialized"):s.push(LD(l||null))}),Hle=(e,r)=>P9(r,Yle("metadata"),e[3]),eL=(e,r,a,i)=>{for(var s=0,l=e[r>>1],c=l&&l.length;s<c;s++)r&1?l[s].call(a):i=l[s].call(a,i);return i},pR=(e,r,a,i,s,l)=>{var c,d,h,g,x,v=r&7,b=!!(r&8),y=!!(r&16),k=v>3?e.length+1:v?b?1:2:0,T=qle[v+5],U=v>3&&(e[k-1]=[]),N=e[k]||(e[k]=[]),j=v&&(!y&&!b&&(s=s.prototype),v<5&&(v>3||!y)&&Qvt(v<4?s:{get[a](){return wc(this,l)},set[a](X){return w8(this,l,X)}},a));v?y&&v<4&&Ule(l,(v>2?"set ":v>1?"get ":"")+a):Ule(s,a);for(var G=i.length-1;G>=0;G--){if(g=ayt(v,a,h={},e[3],N),v){if(g.static=b,g.private=y,x=g.access={has:y?(X)=>nyt(s,X):(X)=>(a in X)},v^3)x.get=y?(X)=>(v^1?wc:iyt)(X,s,v^4?l:j.get):(X)=>X[a];if(v>2)x.set=y?(X,J)=>w8(X,s,J,v^4?l:j.set):(X,J)=>X[a]=J}if(d=(0,i[G])(v?v<4?y?l:j[T]:v>4?void 0:{get:j.get,set:j.set}:s,g),h._=1,v^4||d===void 0)LD(d)&&(v>4?U.unshift(d):v?y?l=d:j[T]=d:s=d);else if(typeof d!=="object"||d===null)ZR("Object expected");else LD(c=d.get)&&(j.get=c),LD(c=d.set)&&(j.set=c),LD(c=d.init)&&U.unshift(c)}return v||Hle(e,s),j&&N9(s,a,j),y?v^4?l:j:s},F9=(e,r,a)=>r.has(e)||ZR("Cannot "+a),nyt=(e,r)=>Object(r)!==r?ZR('Cannot use the "in" operator on this value'):e.has(r),wc=(e,r,a)=>(F9(e,r,"read from private field"),a?a.call(e):r.get(e)),kD=(e,r,a)=>r.has(e)?ZR("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,a),w8=(e,r,a,i)=>(F9(e,r,"write to private field"),i?i.call(e,a):r.set(e,a),a),iyt=(e,r,a)=>(F9(e,r,"access private method"),a);function mR(e,r){if(r){let a;return S9(()=>{let i=e();if(i&&a&&r(a,i))return a;return a=i,i})}return S9(e)}function cf(e,r){if(Object.is(e,r))return!0;if(e===null||r===null)return!1;if(typeof e==="function"&&typeof r==="function")return e===r;if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(let a of e)if(!r.has(a))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;return!e.some((i,s)=>!cf(i,r[s]))}if(typeof e==="object"&&typeof r==="object"){let a=Object.keys(e),i=Object.keys(r);if(a.length!==i.length)return!1;return!a.some((l)=>!cf(e[l],r[l]))}return!1}function Ro({get:e},r){return{init(a){return pZ(a)},get(){return e.call(this).value},set(a){let i=e.call(this);if(i.peek()===a)return;i.value=a}}}function pn(e,r){let a=new WeakMap;return function(){let i=a.get(this);if(!i)i=mR(e.bind(this)),a.set(this,i);return i.value}}function k9(e=!0){return function(r,a){a.addInitializer(function(){let i=a.kind==="field"?this:a.static?this:Object.getPrototypeOf(this),s=Object.getOwnPropertyDescriptor(i,a.name);if(s)Object.defineProperty(i,a.name,ryt(tyt({},s),{enumerable:e}))})}}function rL(...e){let r=e.map((a)=>Ii(a));return()=>r.forEach((a)=>a())}var Vle,Wle,Gle,Kle,Xle,Qle,cs,j9,C9,T9,A9,Sf,B9,I9,Jle,E9,U9,R9,D9,O9;Qle=[Ro],Xle=[Ro],Kle=[Ro],Gle=[k9()],Wle=[k9()],Vle=[k9()];var mZ=class{constructor(e,r=Object.is){this.defaultValue=e,this.equals=r,eL(cs,5,this),kD(this,Sf),kD(this,j9,eL(cs,8,this)),eL(cs,11,this),kD(this,B9,eL(cs,12,this)),eL(cs,15,this),kD(this,U9,eL(cs,16,this)),eL(cs,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return wc(this,Sf,D9)}get initial(){return wc(this,Sf,T9)}get previous(){return wc(this,Sf,Jle)}set current(e){let r=vo(()=>wc(this,Sf,D9));if(e&&r&&this.equals(r,e))return;Qo(()=>{if(!wc(this,Sf,T9))w8(this,Sf,e,A9);w8(this,Sf,r,E9),w8(this,Sf,e,O9)})}reset(e=this.defaultValue){Qo(()=>{w8(this,Sf,void 0,E9),w8(this,Sf,e,A9),w8(this,Sf,e,O9)})}};cs=oyt(null);j9=new WeakMap;Sf=new WeakSet;B9=new WeakMap;U9=new WeakMap;C9=pR(cs,20,"#initial",Qle,Sf,j9),T9=C9.get,A9=C9.set;I9=pR(cs,20,"#previous",Xle,Sf,B9),Jle=I9.get,E9=I9.set;R9=pR(cs,20,"#current",Kle,Sf,U9),D9=R9.get,O9=R9.set;pR(cs,2,"current",Gle,mZ);pR(cs,2,"initial",Wle,mZ);pR(cs,2,"previous",Vle,mZ);Hle(cs,mZ);function kF(e){return vo(()=>{let r={};for(let a in e)r[a]=e[a];return r})}var tL,$le=class{constructor(){kD(this,tL,new WeakMap)}get(e,r){var a;return e?(a=wc(this,tL).get(e))==null?void 0:a.get(r):void 0}set(e,r,a){var i;if(!e)return;if(!wc(this,tL).has(e))wc(this,tL).set(e,new Map);return(i=wc(this,tL).get(e))==null?void 0:i.set(r,a)}clear(e){var r;return e?(r=wc(this,tL).get(e))==null?void 0:r.clear():void 0}};tL=new WeakMap;var{create:fyt,defineProperty:W9,getOwnPropertyDescriptor:syt,getOwnPropertySymbols:ece}=Object,lyt=Object.prototype.hasOwnProperty,cyt=Object.prototype.propertyIsEnumerable,oce=(e,r)=>(r=Symbol[e])?r:Symbol.for("Symbol."+e),hR=(e)=>{throw TypeError(e)},tce=Math.pow,Y9=(e,r,a)=>(r in e)?W9(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,uyt=(e,r)=>{for(var a in r||(r={}))if(lyt.call(r,a))Y9(e,a,r[a]);if(ece){for(var a of ece(r))if(cyt.call(r,a))Y9(e,a,r[a])}return e},rce=(e,r)=>W9(e,"name",{value:r,configurable:!0}),dyt=(e)=>{var r;return[,,,fyt((r=e==null?void 0:e[oce("metadata")])!=null?r:null)]},ace=["class","method","getter","setter","accessor","field","value","get","set"],CD=(e)=>e!==void 0&&typeof e!=="function"?hR("Function expected"):e,Zyt=(e,r,a,i,s)=>({kind:ace[e],name:r,metadata:i,addInitializer:(l)=>a._?hR("Already initialized"):s.push(CD(l||null))}),nce=(e,r)=>Y9(r,oce("metadata"),e[3]),pyt=(e,r,a,i)=>{for(var s=0,l=e[r>>1],c=l&&l.length;s<c;s++)r&1?l[s].call(a):i=l[s].call(a,i);return i},ice=(e,r,a,i,s,l)=>{var c,d,h,g,x,v=r&7,b=!!(r&8),y=!!(r&16),k=v>3?e.length+1:v?b?1:2:0,T=ace[v+5],U=v>3&&(e[k-1]=[]),N=e[k]||(e[k]=[]),j=v&&(!y&&!b&&(s=s.prototype),v<5&&(v>3||!y)&&syt(v<4?s:{get[a](){return q9(this,l)},set[a](X){return H9(this,l,X)}},a));v?y&&v<4&&rce(l,(v>2?"set ":v>1?"get ":"")+a):rce(s,a);for(var G=i.length-1;G>=0;G--){if(g=Zyt(v,a,h={},e[3],N),v){if(g.static=b,g.private=y,x=g.access={has:y?(X)=>myt(s,X):(X)=>(a in X)},v^3)x.get=y?(X)=>(v^1?q9:gyt)(X,s,v^4?l:j.get):(X)=>X[a];if(v>2)x.set=y?(X,J)=>H9(X,s,J,v^4?l:j.set):(X,J)=>X[a]=J}if(d=(0,i[G])(v?v<4?y?l:j[T]:v>4?void 0:{get:j.get,set:j.set}:s,g),h._=1,v^4||d===void 0)CD(d)&&(v>4?U.unshift(d):v?y?l=d:j[T]=d:s=d);else if(typeof d!=="object"||d===null)hR("Object expected");else CD(c=d.get)&&(j.get=c),CD(c=d.set)&&(j.set=c),CD(c=d.init)&&U.unshift(c)}return v||nce(e,s),j&&W9(s,a,j),y?v^4?l:j:s},G9=(e,r,a)=>r.has(e)||hR("Cannot "+a),myt=(e,r)=>Object(r)!==r?hR('Cannot use the "in" operator on this value'):e.has(r),q9=(e,r,a)=>(G9(e,r,"read from private field"),a?a.call(e):r.get(e)),hyt=(e,r,a)=>r.has(e)?hR("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,a),H9=(e,r,a,i)=>(G9(e,r,"write to private field"),i?i.call(e,a):r.set(e,a),a),gyt=(e,r,a)=>(G9(e,r,"access private method"),a),Af=class e{constructor(r,a){this.x=r,this.y=a}static delta(r,a){return new e(r.x-a.x,r.y-a.y)}static distance(r,a){return Math.hypot(r.x-a.x,r.y-a.y)}static equals(r,a){return r.x===a.x&&r.y===a.y}static from({x:r,y:a}){return new e(r,a)}},tl=class e{constructor(r,a,i,s){this.left=r,this.top=a,this.width=i,this.height=s,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(r,a){let{top:i,left:s,width:l,height:c,scale:d}=this,h=new e(s+r,i+a,l,c);return h.scale=uyt({},d),h}get boundingRectangle(){let{width:r,height:a,left:i,top:s,right:l,bottom:c}=this;return{width:r,height:a,left:i,top:s,right:l,bottom:c}}get center(){let{left:r,top:a,right:i,bottom:s}=this;return new Af((r+i)/2,(a+s)/2)}get area(){let{width:r,height:a}=this;return r*a}equals(r){if(!(r instanceof e))return!1;let{left:a,top:i,width:s,height:l}=this;return a===r.left&&i===r.top&&s===r.width&&l===r.height}containsPoint(r){let{top:a,left:i,bottom:s,right:l}=this;return a<=r.y&&r.y<=s&&i<=r.x&&r.x<=l}intersectionArea(r){if(r instanceof e)return Myt(this,r);return 0}intersectionRatio(r){let{area:a}=this,i=this.intersectionArea(r);return i/(r.area+a-i)}get bottom(){let{top:r,height:a}=this;return r+a}get right(){let{left:r,width:a}=this;return r+a}get aspectRatio(){let{width:r,height:a}=this;return r/a}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:r,left:a,width:i,height:s}){return new e(a,r,i,s)}static delta(r,a,i={x:"center",y:"center"}){let s=(l,c)=>{let d=i[c],h=c==="x"?l.left:l.top,g=c==="x"?l.width:l.height;if(d=="start")return h;if(d=="end")return h+g;return h+g/2};return Af.delta({x:s(r,"x"),y:s(r,"y")},{x:s(a,"x"),y:s(a,"y")})}static intersectionRatio(r,a){return e.from(r).intersectionRatio(e.from(a))}};function Myt(e,r){let a=Math.max(r.top,e.top),i=Math.max(r.left,e.left),s=Math.min(r.left+r.width,e.left+e.width),l=Math.min(r.top+r.height,e.top+e.height),c=s-i,d=l-a;if(i<s&&a<l)return c*d;return 0}var fce,sce,V9,CF,ID,RD=class extends(V9=mZ,sce=[pn],fce=[pn],V9){constructor(e){let r=Af.from(e);super(r,(a,i)=>Af.equals(a,i));pyt(ID,5,this),hyt(this,CF,0),this.velocity={x:0,y:0}}get delta(){return Af.delta(this.current,this.initial)}get direction(){let{current:e,previous:r}=this;if(!r)return null;let a={x:e.x-r.x,y:e.y-r.y};if(!a.x&&!a.y)return null;if(Math.abs(a.x)>Math.abs(a.y))return a.x>0?"right":"left";return a.y>0?"down":"up"}get current(){return super.current}set current(e){let{current:r}=this,a=Af.from(e),i={x:a.x-r.x,y:a.y-r.y},s=Date.now(),l=s-q9(this,CF),c=(d)=>Math.round(d/l*100);Qo(()=>{H9(this,CF,s),this.velocity={x:c(i.x),y:c(i.y)},super.current=a})}reset(e=this.defaultValue){super.reset(Af.from(e)),this.velocity={x:0,y:0}}};ID=dyt(V9);CF=new WeakMap;ice(ID,2,"delta",sce,RD);ice(ID,2,"direction",fce,RD);nce(ID,RD);function IF({x:e,y:r},a){let i=Math.abs(e),s=Math.abs(r);if(typeof a==="number")return Math.sqrt(tce(i,2)+tce(s,2))>a;if("x"in a&&"y"in a)return i>a.x&&s>a.y;if("x"in a)return i>a.x;if("y"in a)return s>a.y;return!1}var lce=((e)=>(e.Horizontal="x",e.Vertical="y",e))(lce||{}),K9=Object.values(lce);var{create:xyt,defineProperty:eH,defineProperties:vyt,getOwnPropertyDescriptor:yyt,getOwnPropertyDescriptors:_yt,getOwnPropertySymbols:OF}=Object,dce=Object.prototype.hasOwnProperty,Zce=Object.prototype.propertyIsEnumerable,pce=(e,r)=>(r=Symbol[e])?r:Symbol.for("Symbol."+e),_R=(e)=>{throw TypeError(e)},Q9=(e,r,a)=>(r in e)?eH(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,tH=(e,r)=>{for(var a in r||(r={}))if(dce.call(r,a))Q9(e,a,r[a]);if(OF){for(var a of OF(r))if(Zce.call(r,a))Q9(e,a,r[a])}return e},rH=(e,r)=>vyt(e,_yt(r)),cce=(e,r)=>eH(e,"name",{value:r,configurable:!0}),mce=(e,r)=>{var a={};for(var i in e)if(dce.call(e,i)&&r.indexOf(i)<0)a[i]=e[i];if(e!=null&&OF){for(var i of OF(e))if(r.indexOf(i)<0&&Zce.call(e,i))a[i]=e[i]}return a},bR=(e)=>{var r;return[,,,xyt((r=e==null?void 0:e[pce("metadata")])!=null?r:null)]},hce=["class","method","getter","setter","accessor","field","value","get","set"],PD=(e)=>e!==void 0&&typeof e!=="function"?_R("Function expected"):e,byt=(e,r,a,i,s)=>({kind:hce[e],name:r,metadata:i,addInitializer:(l)=>a._?_R("Already initialized"):s.push(PD(l||null))}),aL=(e,r)=>Q9(r,pce("metadata"),e[3]),ho=(e,r,a,i)=>{for(var s=0,l=e[r>>1],c=l&&l.length;s<c;s++)r&1?l[s].call(a):i=l[s].call(a,i);return i},Oo=(e,r,a,i,s,l)=>{var c,d,h,g,x,v=r&7,b=!!(r&8),y=!!(r&16),k=v>3?e.length+1:v?b?1:2:0,T=hce[v+5],U=v>3&&(e[k-1]=[]),N=e[k]||(e[k]=[]),j=v&&(!y&&!b&&(s=s.prototype),v<5&&(v>3||!y)&&yyt(v<4?s:{get[a](){return Jn(this,l)},set[a](X){return Jl(this,l,X)}},a));v?y&&v<4&&cce(l,(v>2?"set ":v>1?"get ":"")+a):cce(s,a);for(var G=i.length-1;G>=0;G--){if(g=byt(v,a,h={},e[3],N),v){if(g.static=b,g.private=y,x=g.access={has:y?(X)=>wyt(s,X):(X)=>(a in X)},v^3)x.get=y?(X)=>(v^1?Jn:gce)(X,s,v^4?l:j.get):(X)=>X[a];if(v>2)x.set=y?(X,J)=>Jl(X,s,J,v^4?l:j.set):(X,J)=>X[a]=J}if(d=(0,i[G])(v?v<4?y?l:j[T]:v>4?void 0:{get:j.get,set:j.set}:s,g),h._=1,v^4||d===void 0)PD(d)&&(v>4?U.unshift(d):v?y?l=d:j[T]=d:s=d);else if(typeof d!=="object"||d===null)_R("Object expected");else PD(c=d.get)&&(j.get=c),PD(c=d.set)&&(j.set=c),PD(c=d.init)&&U.unshift(c)}return v||aL(e,s),j&&eH(s,a,j),y?v^4?l:j:s},oH=(e,r,a)=>r.has(e)||_R("Cannot "+a),wyt=(e,r)=>Object(r)!==r?_R('Cannot use the "in" operator on this value'):e.has(r),Jn=(e,r,a)=>(oH(e,r,"read from private field"),a?a.call(e):r.get(e)),ma=(e,r,a)=>r.has(e)?_R("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,a),Jl=(e,r,a,i)=>(oH(e,r,"write to private field"),i?i.call(e,a):r.set(e,a),a),gce=(e,r,a)=>(oH(e,r,"access private method"),a);function Mce(e,r){return{plugin:e,options:r}}function oa(e){return(r)=>Mce(e,r)}function yR(e){if(typeof e==="function")return{plugin:e,options:void 0};return e}var xce,ED,aH,PF;xce=[Ro];var Bi=class{constructor(e,r){this.manager=e,this.options=r,ma(this,aH,ho(ED,8,this,!1)),ho(ED,11,this),ma(this,PF,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return vo(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){let r=Ii(e.bind(this));return Jn(this,PF).add(r),r}destroy(){Jn(this,PF).forEach((e)=>e())}static configure(e){return Mce(this,e)}};ED=bR(null);aH=new WeakMap;PF=new WeakMap;Oo(ED,4,"disabled",xce,Bi,aH);aL(ED,Bi);var wR=class extends Bi{},TF,X9=class{constructor(e){this.manager=e,this.instances=new Map,ma(this,TF,[])}get values(){return Array.from(this.instances.values())}set values(e){let r=e.map(yR).reduce((i,s)=>{let l=i.find(({plugin:c})=>c===s.plugin);if(l)return l.options=s.options,i;return[...i,s]},[]),a=r.map(({plugin:i})=>i);for(let i of Jn(this,TF))if(!a.includes(i)){if(i.prototype instanceof wR)continue;this.unregister(i)}for(let{plugin:i,options:s}of r)this.register(i,s);Jl(this,TF,a)}get(e){return this.instances.get(e)}register(e,r){let a=this.instances.get(e);if(a){if(a.options!==r)a.options=r;return a}let i=new e(this.manager,r);return this.instances.set(e,i),i}unregister(e){let r=this.instances.get(e);if(r)r.destroy(),this.instances.delete(e)}destroy(){for(let e of this.instances.values())e.destroy();this.instances.clear()}};TF=new WeakMap;function zyt(e,r){if(e.priority===r.priority){if(e.type===r.type)return r.value-e.value;return r.type-e.type}return r.priority-e.priority}var RF=[],gR,MR,Syt=class extends Bi{constructor(e){super(e);ma(this,gR),ma(this,MR),this.computeCollisions=this.computeCollisions.bind(this),Jl(this,MR,pZ(RF)),this.destroy=rL(()=>{let r=this.computeCollisions(),a=vo(()=>this.manager.dragOperation.position.current);if(r!==RF){let i=Jn(this,gR);if(Jl(this,gR,a),i&&a.x==i.x&&a.y==i.y)return}else Jl(this,gR,void 0);Jn(this,MR).value=r},()=>{let{dragOperation:r}=this.manager;if(r.status.initialized)this.forceUpdate()})}forceUpdate(e=!0){vo(()=>{if(e)Jn(this,MR).value=this.computeCollisions();else Jl(this,gR,void 0)})}computeCollisions(e,r){let{registry:a,dragOperation:i}=this.manager,{source:s,shape:l,status:c}=i;if(!c.initialized||!l)return RF;let d=[],h=[];for(let g of e!=null?e:a.droppables){if(g.disabled)continue;if(s&&!g.accepts(s))continue;let x=r!=null?r:g.collisionDetector;if(!x)continue;h.push(g),g.shape;let v=vo(()=>x({droppable:g,dragOperation:i}));if(v){if(g.collisionPriority!=null)v.priority=g.collisionPriority;d.push(v)}}if(h.length===0)return RF;return d.sort(zyt),d}get collisions(){return Jn(this,MR).value}};gR=new WeakMap;MR=new WeakMap;var vce,yce,_ce,nH,bce,yu,iH,vR,fH,sH;_ce=[Ro],yce=[Ro],vce=[Ro];var oM=class e{constructor(r,a){ma(this,iH,ho(yu,8,this)),ho(yu,11,this),ma(this,vR),ma(this,fH,ho(yu,12,this)),ho(yu,15,this),ma(this,sH,ho(yu,16,this)),ho(yu,19,this);let{effects:i,id:s,data:l={},disabled:c=!1,register:d=!0}=r,h=s;if(Jl(this,vR,pZ(s)),this.manager=a,this.data=l,this.disabled=c,this.effects=()=>{var g;return[()=>{let{id:x,manager:v}=this;if(x===h)return;return h=x,v==null||v.registry.register(this),()=>v==null?void 0:v.registry.unregister(this)},...(g=i==null?void 0:i())!=null?g:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),a&&d)queueMicrotask(this.register)}get id(){var r,a;let i=Jn(this,vR).value;return(a=(r=e.pendingIdChanges)==null?void 0:r.get(this))!=null?a:i}set id(r){var a,i;let s=(i=(a=e.pendingIdChanges)==null?void 0:a.get(this))!=null?i:Jn(this,vR).peek();if(r===s)return;if(!e.pendingIdChanges)e.pendingIdChanges=new Map,queueMicrotask(()=>{var l;return gce(l=e,nH,bce).call(l)});e.pendingIdChanges.set(this,r)}register(){var r;return(r=this.manager)==null?void 0:r.registry.register(this)}unregister(){var r;(r=this.manager)==null||r.registry.unregister(this)}destroy(){var r;(r=this.manager)==null||r.registry.unregister(this)}};yu=bR(null);nH=new WeakSet;bce=function(){let e=oM.pendingIdChanges;if(oM.pendingIdChanges=null,e)Qo(()=>{for(let[r,a]of e)Jn(r,vR).value=a})};iH=new WeakMap;vR=new WeakMap;fH=new WeakMap;sH=new WeakMap;Oo(yu,4,"manager",_ce,oM,iH);Oo(yu,4,"data",yce,oM,fH);Oo(yu,4,"disabled",vce,oM,sH);ma(oM,nH);aL(yu,oM);oM.pendingIdChanges=null;var NF=oM,uce=class{constructor(){this.map=pZ(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,r)=>{let a=this.map.peek(),i=a.get(e),s=()=>this.unregister(e,r);if(i===r)return s;if(i){if(i.id===e){let d=this.cleanupFunctions.get(i);d==null||d(),this.cleanupFunctions.delete(i)}}let l=new Map(a);for(let[d,h]of a)if(h===r&&d!==e){l.delete(d);break}l.set(e,r),this.map.value=l;let c=rL(...r.effects());return this.cleanupFunctions.set(r,c),s},this.unregister=(e,r)=>{let a=this.map.peek();if(a.get(e)!==r)return;let i=this.cleanupFunctions.get(r);i==null||i(),this.cleanupFunctions.delete(r);let s=new Map(a);s.delete(e),this.map.value=s}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(let e of this){let r=this.cleanupFunctions.get(e);r==null||r(),e.destroy()}this.map.value=new Map}},wce,zce,Sce,Lce,kce,Cce,J9,us,lH,cH,uH,_u=class extends(J9=NF,Cce=[Ro],kce=[Ro],Lce=[Ro],Sce=[pn],zce=[pn],wce=[pn],J9){constructor(e,r){var a=e,{modifiers:i,type:s,sensors:l,plugins:c,effects:d}=a,h=mce(a,["modifiers","type","sensors","plugins","effects"]);super(rH(tH({},h),{effects:()=>{var g;return[...(g=d==null?void 0:d())!=null?g:[],()=>{let{manager:x,plugins:v}=this;if(!x||!v)return;for(let b of v){let{plugin:y}=yR(b);x.registry.plugins.register(y)}}]}}),r);ho(us,5,this),ma(this,lH,ho(us,8,this)),ho(us,11,this),ma(this,cH,ho(us,12,this)),ho(us,15,this),ma(this,uH,ho(us,16,this,this.isDragSource?"dragging":"idle")),ho(us,19,this),this.type=s,this.sensors=l,this.modifiers=i,this.alignment=h.alignment,this.plugins=c}pluginConfig(e){if(!this.plugins)return;for(let r of this.plugins){let a=yR(r);if(a.plugin===e)return a.options}return}get isDropping(){return this.status==="dropping"&&this.isDragSource}get isDragging(){return this.status==="dragging"&&this.isDragSource}get isDragSource(){var e,r;return((r=(e=this.manager)==null?void 0:e.dragOperation.source)==null?void 0:r.id)===this.id}};us=bR(J9);lH=new WeakMap;cH=new WeakMap;uH=new WeakMap;Oo(us,4,"type",Cce,_u,lH);Oo(us,4,"modifiers",kce,_u,cH);Oo(us,4,"status",Lce,_u,uH);Oo(us,2,"isDropping",Sce,_u);Oo(us,2,"isDragging",zce,_u);Oo(us,2,"isDragSource",wce,_u);aL(us,_u);var Ice,Rce,Pce,Tce,Ace,Ece,$9,Ri,dH,ZH,pH,mH,hH,bu=class extends($9=NF,Ece=[Ro],Ace=[Ro],Tce=[Ro],Pce=[Ro],Rce=[Ro],Ice=[pn],$9){constructor(e,r){var a=e,{accept:i,collisionDetector:s,collisionPriority:l,type:c}=a,d=mce(a,["accept","collisionDetector","collisionPriority","type"]);super(d,r);ho(Ri,5,this),ma(this,dH,ho(Ri,8,this)),ho(Ri,11,this),ma(this,ZH,ho(Ri,12,this)),ho(Ri,15,this),ma(this,pH,ho(Ri,16,this)),ho(Ri,19,this),ma(this,mH,ho(Ri,20,this)),ho(Ri,23,this),ma(this,hH,ho(Ri,24,this)),ho(Ri,27,this),this.accept=i,this.collisionDetector=s,this.collisionPriority=l,this.type=c}accepts(e){let{accept:r}=this;if(!r)return!0;if(typeof r==="function")return r(e);if(!e.type)return!1;if(Array.isArray(r))return r.includes(e.type);return e.type===r}get isDropTarget(){var e,r;return((r=(e=this.manager)==null?void 0:e.dragOperation.target)==null?void 0:r.id)===this.id}};Ri=bR($9);dH=new WeakMap;ZH=new WeakMap;pH=new WeakMap;mH=new WeakMap;hH=new WeakMap;Oo(Ri,4,"accept",Ece,bu,dH);Oo(Ri,4,"type",Ace,bu,ZH);Oo(Ri,4,"collisionDetector",Tce,bu,pH);Oo(Ri,4,"collisionPriority",Pce,bu,mH);Oo(Ri,4,"shape",Rce,bu,hH);Oo(Ri,2,"isDropTarget",Ice,bu);aL(Ri,bu);var Lyt=class{constructor(){this.registry=new Map}addEventListener(e,r){let{registry:a}=this,i=new Set(a.get(e));return i.add(r),a.set(e,i),()=>this.removeEventListener(e,r)}removeEventListener(e,r){let{registry:a}=this,i=new Set(a.get(e));i.delete(r),a.set(e,i)}dispatch(e,...r){let{registry:a}=this,i=a.get(e);if(!i)return;for(let s of i)s(...r)}},kyt=class extends Lyt{constructor(e){super();this.manager=e}dispatch(e,r){let a=[r,this.manager];super.dispatch(e,...a)}};function AF(e,r=!0){let a=!1;return rH(tH({},e),{cancelable:r,get defaultPrevented(){return a},preventDefault(){if(!r)return;a=!0}})}var Cyt=class extends wR{constructor(e){super(e);let r=(i,s)=>i.map(({id:l})=>l).join("")===s.map(({id:l})=>l).join(""),a=[];this.destroy=rL(()=>{let{dragOperation:i,collisionObserver:s}=e;if(i.status.initializing)a=[],s.enable()},()=>{let{collisionObserver:i,monitor:s}=e,{collisions:l}=i;if(i.isDisabled())return;if(NF.pendingIdChanges)return;let c=AF({collisions:l});if(s.dispatch("collision",c),c.defaultPrevented)return;if(r(l,a))return;else a=l;let[d]=l;vo(()=>{var h;if((d==null?void 0:d.id)!==((h=e.dragOperation.target)==null?void 0:h.id))i.disable(),e.actions.setDropTarget(d==null?void 0:d.id).then(()=>{i.enable()})})})}},hZ=((e)=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(hZ||{}),gZ=((e)=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(gZ||{}),Dce,Oce,Nce,Fce,jce,Bce,Uce,Sc,gH;Uce=[Ro],Bce=[pn],jce=[pn],Fce=[pn],Nce=[pn],Oce=[pn],Dce=[pn];var aM=class{constructor(){ho(Sc,5,this),ma(this,gH,ho(Sc,8,this,"idle")),ho(Sc,11,this)}get current(){return this.value}get idle(){return this.value==="idle"}get initializing(){return this.value==="initializing"}get initialized(){let{value:e}=this;return e!=="idle"&&e!=="initialization-pending"}get dragging(){return this.value==="dragging"}get dropped(){return this.value==="dropped"}set(e){this.value=e}};Sc=bR(null);gH=new WeakMap;Oo(Sc,4,"value",Uce,aM,gH);Oo(Sc,2,"current",Bce,aM);Oo(Sc,2,"idle",jce,aM);Oo(Sc,2,"initializing",Fce,aM);Oo(Sc,2,"initialized",Nce,aM);Oo(Sc,2,"dragging",Oce,aM);Oo(Sc,2,"dropped",Dce,aM);aL(Sc,aM);var Iyt=class{constructor(e){this.manager=e}setDragSource(e){let{dragOperation:r}=this.manager;r.sourceIdentifier=typeof e==="string"||typeof e==="number"?e:e.id}setDropTarget(e){return vo(()=>{let{dragOperation:r}=this.manager,a=e!=null?e:null;if(r.targetIdentifier===a)return Promise.resolve(!1);r.targetIdentifier=a;let i=AF({operation:r.snapshot()});if(r.status.dragging)this.manager.monitor.dispatch("dragover",i);return this.manager.renderer.rendering.then(()=>i.defaultPrevented)})}start(e){return vo(()=>{let{dragOperation:r}=this.manager;if(e.source!=null)this.setDragSource(e.source);if(!r.source)throw Error("Cannot start a drag operation without a drag source");if(!r.status.idle)throw Error("Cannot start a drag operation while another is active");let i=new AbortController,{event:s,coordinates:l}=e;Qo(()=>{r.status.set("initialization-pending"),r.shape=null,r.canceled=!1,r.activatorEvent=s!=null?s:null,r.position.reset(l)});let c=AF({operation:r.snapshot()});if(this.manager.monitor.dispatch("beforedragstart",c),c.defaultPrevented)return r.reset(),i.abort(),i;return r.status.set("initializing"),r.controller=i,this.manager.renderer.rendering.then(()=>{if(i.signal.aborted)return;let{status:d}=r;if(d.current!=="initializing")return;Qo(()=>{r.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:s,operation:r.snapshot(),cancelable:!1})})}),i})}move(e){return vo(()=>{var r,a;let{dragOperation:i}=this.manager,{status:s,controller:l}=i;if(!s.dragging||!l||l.signal.aborted)return;let c=AF({nativeEvent:e.event,operation:i.snapshot(),by:e.by,to:e.to},(r=e.cancelable)!=null?r:!0);if((a=e.propagate)!=null?a:!0)this.manager.monitor.dispatch("dragmove",c);queueMicrotask(()=>{var d,h,g,x,v;if(c.defaultPrevented)return;let b=(v=e.to)!=null?v:{x:i.position.current.x+((h=(d=e.by)==null?void 0:d.x)!=null?h:0),y:i.position.current.y+((x=(g=e.by)==null?void 0:g.y)!=null?x:0)};i.position.current=b})})}stop(e={}){return vo(()=>{var r,a;let{dragOperation:i}=this.manager,{controller:s}=i;if(!s||s.signal.aborted)return;let l,c=()=>{let h={resume:()=>{},abort:()=>{}};return l=new Promise((g,x)=>{h.resume=g,h.abort=x}),h};s.abort();let d=()=>{this.manager.renderer.rendering.then(()=>{i.status.set("dropped");let h=vo(()=>{var x;return((x=i.source)==null?void 0:x.status)==="dropping"}),g=()=>{if(i.controller===s)i.controller=void 0;i.reset()};if(h){let{source:x}=i,v=Ii(()=>{if((x==null?void 0:x.status)==="idle")v(),g()})}else this.manager.renderer.rendering.then(g)})};if(i.canceled=(r=e.canceled)!=null?r:!1,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:i.snapshot(),canceled:(a=e.canceled)!=null?a:!1,suspend:c}),l)l.then(d).catch(()=>i.reset());else d()})}},oL=class extends Bi{constructor(e,r){super(e,r);this.manager=e,this.options=r}},Yce=class extends AbortController{constructor(e,r){super();this.constraints=e,this.onActivate=r,this.activated=!1;for(let a of e!=null?e:[])a.controller=this}onEvent(e){var r;if(this.activated)return;if((r=this.constraints)==null?void 0:r.length)for(let a of this.constraints)a.onEvent(e);else this.activate(e)}activate(e){if(this.activated)return;this.activated=!0,this.onActivate(e)}abort(e){this.activated=!1,super.abort(e)}},EF,MH=class{constructor(e){this.options=e,ma(this,EF)}set controller(e){Jl(this,EF,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var r;(r=Jn(this,EF))==null||r.activate(e)}};EF=new WeakMap;var Vd=class extends Bi{constructor(e,r){super(e,r);this.manager=e,this.options=r}apply(e){return e.transform}},Ryt=class{constructor(e){this.draggables=new uce,this.droppables=new uce,this.plugins=new X9(e),this.sensors=new X9(e),this.modifiers=new X9(e)}register(e,r){if(e instanceof _u)return this.draggables.register(e.id,e);if(e instanceof bu)return this.droppables.register(e.id,e);if(e.prototype instanceof Vd)return this.modifiers.register(e,r);if(e.prototype instanceof oL)return this.sensors.register(e,r);if(e.prototype instanceof Bi)return this.plugins.register(e,r);throw Error("Invalid instance type")}unregister(e){if(e instanceof NF){if(e instanceof _u)return this.draggables.unregister(e.id,e);if(e instanceof bu)return this.droppables.unregister(e.id,e);return()=>{}}if(e.prototype instanceof Vd)return this.modifiers.unregister(e);if(e.prototype instanceof oL)return this.sensors.unregister(e);if(e.prototype instanceof Bi)return this.plugins.unregister(e);throw Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}},qce,Hce,Vce,Wce,Gce,Kce,Xce,Qce,Jce,TD,DF,xR,Dn,xH,vH,yH,_H,bH,AD;Jce=[pn],Qce=[Ro],Xce=[Ro],Kce=[Ro],Gce=[Ro],Wce=[Ro],Vce=[pn],Hce=[pn],qce=[pn];var wu=class{constructor(e){ho(Dn,5,this),ma(this,TD),ma(this,DF),ma(this,xR,new mZ(void 0,(r,a)=>r&&a?r.equals(a):r===a)),this.status=new aM,ma(this,xH,ho(Dn,8,this,!1)),ho(Dn,11,this),ma(this,vH,ho(Dn,12,this,null)),ho(Dn,15,this),ma(this,yH,ho(Dn,16,this,null)),ho(Dn,19,this),ma(this,_H,ho(Dn,20,this,null)),ho(Dn,23,this),ma(this,bH,ho(Dn,24,this,[])),ho(Dn,27,this),this.position=new RD({x:0,y:0}),ma(this,AD,{x:0,y:0}),Jl(this,TD,e)}get shape(){let{current:e,initial:r,previous:a}=Jn(this,xR);if(!e||!r)return null;return{current:e,initial:r,previous:a}}set shape(e){if(!e)Jn(this,xR).reset();else Jn(this,xR).current=e}get source(){var e;let r=this.sourceIdentifier;if(r==null)return null;let a=Jn(this,TD).registry.draggables.get(r);if(a)Jl(this,DF,a);return(e=a!=null?a:Jn(this,DF))!=null?e:null}get target(){var e;let r=this.targetIdentifier;return r!=null?(e=Jn(this,TD).registry.droppables.get(r))!=null?e:null:null}get transform(){let{x:e,y:r}=this.position.delta,a={x:e,y:r};for(let i of this.modifiers)a=i.apply(rH(tH({},this.snapshot()),{transform:a}));return Jl(this,AD,a),a}snapshot(){return vo(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:Jn(this,AD),shape:this.shape?kF(this.shape):null,position:kF(this.position),status:kF(this.status),canceled:this.canceled}))}reset(){Qo(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,Jn(this,xR).reset(),this.position.reset({x:0,y:0}),Jl(this,AD,{x:0,y:0}),this.modifiers=[]})}};Dn=bR(null);TD=new WeakMap;DF=new WeakMap;xR=new WeakMap;xH=new WeakMap;vH=new WeakMap;yH=new WeakMap;_H=new WeakMap;bH=new WeakMap;AD=new WeakMap;Oo(Dn,2,"shape",Jce,wu);Oo(Dn,4,"canceled",Qce,wu,xH);Oo(Dn,4,"activatorEvent",Xce,wu,vH);Oo(Dn,4,"sourceIdentifier",Kce,wu,yH);Oo(Dn,4,"targetIdentifier",Gce,wu,_H);Oo(Dn,4,"modifiers",Wce,wu,bH);Oo(Dn,2,"source",Vce,wu);Oo(Dn,2,"target",Hce,wu);Oo(Dn,2,"transform",qce,wu);aL(Dn,wu);var Pyt={get rendering(){return Promise.resolve()}};function ds(e,r){if(typeof e==="function")return e(r);return e!=null?e:r}var $ce=class{constructor(e){this.destroy=()=>{if(!this.dragOperation.status.idle)this.actions.stop({canceled:!0});this.dragOperation.modifiers.forEach((v)=>v.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};var r;let a=e!=null?e:{},i=ds(a.plugins,[]),s=ds(a.sensors,[]),l=ds(a.modifiers,[]),c=(r=a.renderer)!=null?r:Pyt,d=new kyt(this),h=new Ryt(this);this.registry=h,this.monitor=d,this.renderer=c,this.actions=new Iyt(this),this.dragOperation=new wu(this),this.collisionObserver=new Syt(this),this.plugins=[Cyt,...i],this.modifiers=l,this.sensors=s;let{destroy:g}=this,x=rL(()=>{var v,b,y;let k=vo(()=>this.dragOperation.modifiers),T=this.modifiers;for(let U of k)if(!T.includes(U))U.destroy();this.dragOperation.modifiers=(y=(b=(v=this.dragOperation.source)==null?void 0:v.modifiers)==null?void 0:b.map((U)=>{let{plugin:N,options:j}=yR(U);return new N(this,j)}))!=null?y:T});this.destroy=()=>{x(),g()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}};var iue=(e)=>{throw TypeError(e)},SH=(e,r,a)=>r.has(e)||iue("Cannot "+a),go=(e,r,a)=>(SH(e,r,"read from private field"),r.get(e)),rl=(e,r,a)=>r.has(e)?iue("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,a),$l=(e,r,a,i)=>(SH(e,r,"write to private field"),r.set(e,a),a),fue=(e,r,a)=>(SH(e,r,"access private method"),a);function WF(e){if(!e)return!1;if(e instanceof KeyframeEffect)return!0;return"getKeyframes"in e&&typeof e.getKeyframes==="function"}function LH(e,r){let a=e.getAnimations(),i=null;for(let s of a){if(s.playState!=="running")continue;let{effect:l}=s,d=(WF(l)?l.getKeyframes():[]).filter(r);if(d.length>0)i=[d[d.length-1],s]}return i}function GF(e){let{width:r,height:a,top:i,left:s,bottom:l,right:c}=e.getBoundingClientRect();return{width:r,height:a,top:i,left:s,bottom:l,right:c}}function kH(e){let r=Object.prototype.toString.call(e);return r==="[object Window]"||r==="[object global]"}function UD(e){return"nodeType"in e}function Ms(e){var r,a,i;if(!e)return window;if(kH(e))return e;if(!UD(e))return window;if("defaultView"in e)return(r=e.defaultView)!=null?r:window;return(i=(a=e.ownerDocument)==null?void 0:a.defaultView)!=null?i:window}function KF(e){let{Document:r}=Ms(e);return e instanceof r||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function nM(e){if(!e||kH(e))return!1;return e instanceof Ms(e).HTMLElement||"namespaceURI"in e&&typeof e.namespaceURI==="string"&&e.namespaceURI.endsWith("html")}function sue(e){return e instanceof Ms(e).SVGElement||"namespaceURI"in e&&typeof e.namespaceURI==="string"&&e.namespaceURI.endsWith("svg")}function sL(e){if(!e)return document;if(kH(e))return e.document;if(!UD(e))return document;if(KF(e))return e;if(nM(e)||sue(e))return e.ownerDocument;return document}function Tyt(e){var r,a,i,s;let{documentElement:l}=sL(e),c=Ms(e).visualViewport,d=(r=c==null?void 0:c.width)!=null?r:l.clientWidth,h=(a=c==null?void 0:c.height)!=null?a:l.clientHeight,g=(i=c==null?void 0:c.offsetTop)!=null?i:0,x=(s=c==null?void 0:c.offsetLeft)!=null?s:0;return{top:g,left:x,right:x+d,bottom:g+h,width:d,height:h}}function Ayt(e,r){if(Eyt(e)&&e.open===!1)return!1;let{overflow:a,overflowX:i,overflowY:s}=getComputedStyle(e);return a==="visible"&&i==="visible"&&s==="visible"}function Eyt(e){return e.tagName==="DETAILS"}function SR(e,r=e.getBoundingClientRect(),a=0){var i,s,l,c,d;let h=r,{ownerDocument:g}=e,x=(i=g.defaultView)!=null?i:window,v=e.parentElement;while(v&&v!==g.documentElement){if(!Ayt(v)){let G=v.getBoundingClientRect(),X=a*(G.bottom-G.top),J=a*(G.right-G.left),ee=a*(G.bottom-G.top),re=a*(G.right-G.left);h={top:Math.max(h.top,G.top-X),right:Math.min(h.right,G.right+J),bottom:Math.min(h.bottom,G.bottom+ee),left:Math.max(h.left,G.left-re),width:0,height:0},h.width=h.right-h.left,h.height=h.bottom-h.top}v=v.parentElement}let b=x.visualViewport,y=(s=b==null?void 0:b.offsetTop)!=null?s:0,k=(l=b==null?void 0:b.offsetLeft)!=null?l:0,T=(c=b==null?void 0:b.width)!=null?c:x.innerWidth,U=(d=b==null?void 0:b.height)!=null?d:x.innerHeight,N=a*U,j=a*T;if(h={top:Math.max(h.top,y-N),right:Math.min(h.right,k+T+j),bottom:Math.min(h.bottom,y+U+N),left:Math.max(h.left,k-j),width:0,height:0},h.width=h.right-h.left,h.height=h.bottom-h.top,h.width<0)h.width=0;if(h.height<0)h.height=0;return h}function lL(e){return{x:e.clientX,y:e.clientY}}var lue=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function YF(e=document,r=new Set){if(r.has(e))return[];r.add(e);let a=[e];for(let i of Array.from(e.querySelectorAll("iframe, frame")))try{let s=i.contentDocument;if(s&&!r.has(s))a.push(...YF(s,r))}catch(s){}try{let i=e.defaultView;if(i&&i!==window.top){let s=i.parent;if(s&&s.document&&s.document!==e)a.push(...YF(s.document,r))}}catch(i){}return a}function XF(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function CH(){var e,r;let a=XF()?window.visualViewport:null;return{x:(e=a==null?void 0:a.offsetLeft)!=null?e:0,y:(r=a==null?void 0:a.offsetTop)!=null?r:0}}function QF(e){if(!e||!UD(e))return!1;return e instanceof Ms(e).ShadowRoot}function YD(e){if(e&&UD(e)){let r=e.getRootNode();if(QF(r))return r;else if(r instanceof Document)return r}return sL(e)}function qD(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function cue(e){let a=e.cloneNode(!0),i=Array.from(e.querySelectorAll("input, textarea, select, canvas, [contenteditable]"));return Array.from(a.querySelectorAll("input, textarea, select, canvas, [contenteditable]")).forEach((l,c)=>{let d=i[c];if(eue(l)&&eue(d)){if(l.type!=="file")l.value=d.value;if(l.type==="radio"&&l.name)l.name=`Cloned__${l.name}`}if(tue(l)&&tue(d)&&d.width>0&&d.height>0){let h=l.getContext("2d");h==null||h.drawImage(d,0,0)}}),a}function eue(e){return"value"in e}function tue(e){return e.tagName==="CANVAS"}function IH(e,{x:r,y:a}){let i=e.elementFromPoint(r,a);if(Dyt(i)){let{contentDocument:s}=i;if(s){let{left:l,top:c}=i.getBoundingClientRect();return IH(s,{x:r-l,y:a-c})}}return i}function Dyt(e){return(e==null?void 0:e.tagName)==="IFRAME"}var HD=new WeakMap;function uue(e){return e.closest(`
|
|
79
|
+
input:not([disabled]),
|
|
80
|
+
select:not([disabled]),
|
|
81
|
+
textarea:not([disabled]),
|
|
82
|
+
button:not([disabled]),
|
|
83
|
+
a[href],
|
|
84
|
+
[contenteditable]:not([contenteditable="false"])
|
|
85
|
+
`)}var RH=class{constructor(){this.entries=new Set,this.clear=()=>{for(let e of this.entries){let[r,{type:a,listener:i,options:s}]=e;r.removeEventListener(a,i,s)}this.entries.clear()}}bind(e,r){let a=Array.isArray(e)?e:[e],i=Array.isArray(r)?r:[r],s=[];for(let c of a)for(let d of i){let{type:h,listener:g,options:x}=d,v=[c,d];c.addEventListener(h,g,x),this.entries.add(v),s.push(v)}let l=this.entries;return function(){for(let d of s){let[h,{type:g,listener:x,options:v}]=d;h.removeEventListener(g,x,v),l.delete(d)}}}};function fL(e){let r=e==null?void 0:e.ownerDocument.defaultView;if(r&&r.self!==r.parent)return r.frameElement}function Oyt(e){let r=new Set,a=fL(e);while(a)r.add(a),a=fL(a);return r}function Nyt(e,r){let a=setTimeout(e,r);return()=>clearTimeout(a)}function due(e,r){let a=()=>performance.now(),i,s;return function(...l){let c=this;if(!s)e.apply(c,l),s=a();else i==null||i(),i=Nyt(()=>{e.apply(c,l),s=a()},r-(a()-s))}}function Fyt(e,r){if(e===r)return!0;if(!e||!r)return!1;return e.top==r.top&&e.left==r.left&&e.right==r.right&&e.bottom==r.bottom}function jyt(e,r=e.getBoundingClientRect()){let{width:a,height:i}=SR(e,r);return a>0&&i>0}var Byt=lue?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},BF,Uyt=class extends Byt{constructor(e){super((r)=>{if(!go(this,BF)){$l(this,BF,!0);return}e(r,this)});rl(this,BF,!1)}};BF=new WeakMap;var rue=Array.from({length:100},(e,r)=>r/100),Zue=75,nL,qF,z8,iL,DD,uf,jD,OD,HF,pue,mue,hue=class{constructor(e,r,a={debug:!1,skipInitial:!1}){this.element=e,this.callback=r,rl(this,HF),this.disconnect=()=>{var l,c,d;$l(this,jD,!0),(l=go(this,z8))==null||l.disconnect(),(c=go(this,iL))==null||c.disconnect(),go(this,DD).disconnect(),(d=go(this,uf))==null||d.remove()},rl(this,nL,!0),rl(this,qF),rl(this,z8),rl(this,iL),rl(this,DD),rl(this,uf),rl(this,jD,!1),rl(this,OD,due(()=>{var l,c,d;let{element:h}=this;if((l=go(this,iL))==null||l.disconnect(),go(this,jD)||!go(this,nL)||!h.isConnected)return;let g=(c=h.ownerDocument)!=null?c:document,{innerHeight:x,innerWidth:v}=(d=g.defaultView)!=null?d:window,b=h.getBoundingClientRect(),y=SR(h,b),{top:k,left:T,bottom:U,right:N}=y,j=-Math.floor(k),G=-Math.floor(T),X=-Math.floor(v-N),J=-Math.floor(x-U),ee=`${j}px ${X}px ${J}px ${G}px`;this.boundingClientRect=b,$l(this,iL,new IntersectionObserver((re)=>{let[oe]=re,{intersectionRect:fe}=oe;if((oe.intersectionRatio!==1?oe.intersectionRatio:tl.intersectionRatio(fe,SR(h)))!==1)go(this,OD).call(this)},{threshold:rue,rootMargin:ee,root:g})),go(this,iL).observe(h),fue(this,HF,pue).call(this)},Zue)),this.boundingClientRect=e.getBoundingClientRect(),$l(this,nL,jyt(e,this.boundingClientRect));let i=!0;this.callback=(l)=>{if(i){if(i=!1,a.skipInitial)return}r(l)};let s=e.ownerDocument;if(a==null?void 0:a.debug)$l(this,uf,document.createElement("div")),go(this,uf).style.background="rgba(0,0,0,0.15)",go(this,uf).style.position="fixed",go(this,uf).style.pointerEvents="none",s.body.appendChild(go(this,uf));if($l(this,DD,new IntersectionObserver((l)=>{var c,d;let h=l[l.length-1],{boundingClientRect:g,isIntersecting:x}=h,{width:v,height:b}=g,y=go(this,nL);if($l(this,nL,x),!v&&!b)return;if(y&&!x){if((c=go(this,iL))==null||c.disconnect(),this.callback(null),(d=go(this,z8))==null||d.disconnect(),$l(this,z8,void 0),go(this,uf))go(this,uf).style.visibility="hidden"}else go(this,OD).call(this);if(x&&!go(this,z8))$l(this,z8,new Uyt(go(this,OD))),go(this,z8).observe(e)},{threshold:rue,root:s})),go(this,nL)&&!a.skipInitial)this.callback(this.boundingClientRect);go(this,DD).observe(e)}};nL=new WeakMap;qF=new WeakMap;z8=new WeakMap;iL=new WeakMap;DD=new WeakMap;uf=new WeakMap;jD=new WeakMap;OD=new WeakMap;HF=new WeakSet;pue=function(){if(go(this,jD))return;if(fue(this,HF,mue).call(this),Fyt(this.boundingClientRect,go(this,qF)))return;this.callback(this.boundingClientRect),$l(this,qF,this.boundingClientRect)};mue=function(){if(go(this,uf)){let{top:e,left:r,width:a,height:i}=SR(this.element);go(this,uf).style.overflow="hidden",go(this,uf).style.visibility="visible",go(this,uf).style.top=`${Math.floor(e)}px`,go(this,uf).style.left=`${Math.floor(r)}px`,go(this,uf).style.width=`${Math.floor(a)}px`,go(this,uf).style.height=`${Math.floor(i)}px`}};var FF=new WeakMap,jF=new WeakMap;function Yyt(e,r){let a=FF.get(e);if(!a)a={disconnect:new hue(e,(s)=>{let l=FF.get(e);if(!l)return;l.callbacks.forEach((c)=>c(s))},{skipInitial:!0}).disconnect,callbacks:new Set};return a.callbacks.add(r),FF.set(e,a),()=>{if(a.callbacks.delete(r),a.callbacks.size===0)FF.delete(e),a.disconnect()}}function qyt(e,r){let a=new Set;for(let i of e){let s=Yyt(i,r);a.add(s)}return()=>a.forEach((i)=>i())}function Hyt(e,r){var a;let i=e.ownerDocument;if(!jF.has(i)){let c=new AbortController,d=new Set;document.addEventListener("scroll",(h)=>d.forEach((g)=>g(h)),{capture:!0,passive:!0,signal:c.signal}),jF.set(i,{disconnect:()=>c.abort(),listeners:d})}let{listeners:s,disconnect:l}=(a=jF.get(i))!=null?a:{};if(!s||!l)return()=>{};return s.add(r),()=>{if(s.delete(r),s.size===0)l(),jF.delete(i)}}var ND,FD,UF,zH,gue=class{constructor(e,r,a){this.callback=r,rl(this,ND),rl(this,FD,!1),rl(this,UF),rl(this,zH,due((c)=>{if(go(this,FD))return;if(!c.target)return;if("contains"in c.target&&typeof c.target.contains==="function"){for(let d of go(this,UF))if(c.target.contains(d)){this.callback(go(this,ND).boundingClientRect);break}}},Zue));let i=Oyt(e),s=qyt(i,r),l=Hyt(e,go(this,zH));$l(this,UF,i),$l(this,ND,new hue(e,r,a)),this.disconnect=()=>{if(go(this,FD))return;$l(this,FD,!0),s(),l(),go(this,ND).disconnect()}}};ND=new WeakMap;FD=new WeakMap;UF=new WeakMap;zH=new WeakMap;function JF(e){return"showPopover"in e&&"hidePopover"in e&&typeof e.showPopover==="function"&&typeof e.hidePopover==="function"}function cL(e){try{if(JF(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open"))e.showPopover()}catch(r){}}function oue(e){if(!lue||!e)return!1;return e===sL(e).scrollingElement}function Mue(e){var r,a;let i=Ms(e),s=oue(e)?Tyt(e):GF(e),l=i.visualViewport,c=oue(e)?{height:(r=l==null?void 0:l.height)!=null?r:i.innerHeight,width:(a=l==null?void 0:l.width)!=null?a:i.innerWidth}:{height:e.clientHeight,width:e.clientWidth},d={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-c.width,y:e.scrollHeight-c.height}},h=d.current.y<=0,g=d.current.x<=0,x=d.current.y>=d.max.y,v=d.current.x>=d.max.x;return{rect:s,position:d,isTop:h,isLeft:g,isBottom:x,isRight:v}}function xue(e,r){let{isTop:a,isBottom:i,isLeft:s,isRight:l,position:c}=Mue(e),{x:d,y:h}=r!=null?r:{x:0,y:0},g=!a&&c.current.y+h>0,x=!i&&c.current.y+h<c.max.y,v=!s&&c.current.x+d>0,b=!l&&c.current.x+d<c.max.x;return{top:g,bottom:x,left:v,right:b,x:v||b,y:g||x}}var PH=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:r,resolvers:a}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(let i of r)i();for(let i of a)i()}}schedule(e){if(this.tasks.add(e),!this.pending)this.pending=!0,this.scheduler(this.flush);return new Promise((r)=>this.resolvers.add(r))}},VD=new PH((e)=>{if(typeof requestAnimationFrame==="function")requestAnimationFrame(e);else e()}),Vyt=new PH((e)=>setTimeout(e,50)),VF=new Map,Wyt=VF.clear.bind(VF);function kc(e,r=!1){if(!r)return aue(e);let a=VF.get(e);if(a)return a;return a=aue(e),VF.set(e,a),Vyt.schedule(Wyt),a}function aue(e){return Ms(e).getComputedStyle(e)}function Gyt(e,r=kc(e,!0)){return r.position==="fixed"||r.position==="sticky"}function Kyt(e,r=kc(e,!0)){let a=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((s)=>{let l=r[s];return typeof l==="string"?a.test(l):!1})}var Xyt={excludeElement:!0,escapeShadowDOM:!0};function $F(e,r=Xyt){let{limit:a,excludeElement:i,escapeShadowDOM:s}=r,l=new Set;function c(d){if(a!=null&&l.size>=a)return l;if(!d)return l;if(KF(d)&&d.scrollingElement!=null&&!l.has(d.scrollingElement))return l.add(d.scrollingElement),l;if(s&&QF(d))return c(d.host);if(!nM(d)){if(sue(d))return c(d.parentElement);return l}if(l.has(d))return l;let h=kc(d,!0);if(i&&d===e);else if(Kyt(d,h))l.add(d);if(Gyt(d,h)){let{scrollingElement:g}=d.ownerDocument;if(g)l.add(g);return l}return c(d.parentNode)}if(!e)return l;return c(e)}function uL(e,r=window.frameElement){let a={x:0,y:0,scaleX:1,scaleY:1};if(!e)return a;let i=fL(e);while(i){if(i===r)return a;let s=GF(i),{x:l,y:c}=Qyt(i,s);a.x=a.x+s.left,a.y=a.y+s.top,a.scaleX=a.scaleX*l,a.scaleY=a.scaleY*c,i=fL(i)}return a}function Qyt(e,r=GF(e)){let a=Math.round(r.width),i=Math.round(r.height);if(nM(e))return{x:a/e.offsetWidth,y:i/e.offsetHeight};let s=kc(e,!0);return{x:(parseFloat(s.width)||a)/a,y:(parseFloat(s.height)||i)/i}}function Jyt(e){if(!e||e==="none")return null;let r=e.split(" "),a=parseFloat(r[0]),i=parseFloat(r[1]);if(isNaN(a)&&isNaN(i))return null;return{x:isNaN(a)?i:a,y:isNaN(i)?a:i}}function LR(e){if(!e||e==="none")return null;let[r,a,i="0"]=e.split(" "),s={x:parseFloat(r),y:parseFloat(a),z:parseInt(i,10)};if(isNaN(s.x)&&isNaN(s.y))return null;return{x:isNaN(s.x)?0:s.x,y:isNaN(s.y)?0:s.y,z:isNaN(s.z)?0:s.z}}function WD(e){var r,a,i,s,l,c,d,h,g;let{scale:x,transform:v,translate:b}=e,y=Jyt(x),k=LR(b),T=$yt(v);if(!T&&!y&&!k)return null;let U={x:(r=y==null?void 0:y.x)!=null?r:1,y:(a=y==null?void 0:y.y)!=null?a:1},N={x:(i=k==null?void 0:k.x)!=null?i:0,y:(s=k==null?void 0:k.y)!=null?s:0},j={x:(l=T==null?void 0:T.x)!=null?l:0,y:(c=T==null?void 0:T.y)!=null?c:0,scaleX:(d=T==null?void 0:T.scaleX)!=null?d:1,scaleY:(h=T==null?void 0:T.scaleY)!=null?h:1};return{x:N.x+j.x,y:N.y+j.y,z:(g=k==null?void 0:k.z)!=null?g:0,scaleX:U.x*j.scaleX,scaleY:U.y*j.scaleY}}function $yt(e){if(e.startsWith("matrix3d(")){let r=e.slice(9,-1).split(/, /);return{x:+r[12],y:+r[13],scaleX:+r[0],scaleY:+r[5]}}else if(e.startsWith("matrix(")){let r=e.slice(7,-1).split(/, /);return{x:+r[4],y:+r[5],scaleX:+r[0],scaleY:+r[3]}}return null}var ec=((e)=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(ec||{}),e_t={x:0.2,y:0.2},t_t={x:10,y:10};function vue(e,r,a,i=25,s=e_t,l=t_t){let{x:c,y:d}=r,{rect:h,isTop:g,isBottom:x,isLeft:v,isRight:b}=Mue(e),y=uL(e),k=kc(e,!0),T=WD(k),U=T!==null?(T==null?void 0:T.scaleX)<0:!1,N=T!==null?(T==null?void 0:T.scaleY)<0:!1,j=new tl(h.left*y.scaleX+y.x,h.top*y.scaleY+y.y,h.width*y.scaleX,h.height*y.scaleY),G={x:0,y:0},X={x:0,y:0},J={height:j.height*s.y,width:j.width*s.x};if(J.height>0&&(!g||N&&!x)&&d<=j.top+J.height&&(a==null?void 0:a.y)!==1&&c>=j.left-l.x&&c<=j.right+l.x)G.y=N?1:-1,X.y=i*Math.abs((j.top+J.height-d)/J.height);else if(J.height>0&&(!x||N&&!g)&&d>=j.bottom-J.height&&(a==null?void 0:a.y)!==-1&&c>=j.left-l.x&&c<=j.right+l.x)G.y=N?-1:1,X.y=i*Math.abs((j.bottom-J.height-d)/J.height);if(J.width>0&&(!b||U&&!v)&&c>=j.right-J.width&&(a==null?void 0:a.x)!==-1&&d>=j.top-l.y&&d<=j.bottom+l.y)G.x=U?-1:1,X.x=i*Math.abs((j.right-J.width-c)/J.width);else if(J.width>0&&(!v||U&&!b)&&c<=j.left+J.width&&(a==null?void 0:a.x)!==1&&d>=j.top-l.y&&d<=j.bottom+l.y)G.x=U?1:-1,X.x=i*Math.abs((j.left+J.width-c)/J.width);return{direction:G,speed:X}}function e3(e,{block:r="nearest",inline:a="nearest"}={}){if(!nM(e))return;let i=$F(e),s=[];for(let l of i){if(!nM(l))continue;let{top:c,left:d}=r_t(e,l),h=c,g=d;for(let x of s)h-=x.scrollTop,g-=x.scrollLeft;if(r!=="none"){let x=h<l.scrollTop,v=h+e.offsetHeight>l.scrollTop+l.clientHeight;if(x!==v)if(r==="center")l.scrollTop=h-l.clientHeight/2+e.offsetHeight/2;else if(x)l.scrollTop=h;else l.scrollTop=h+e.offsetHeight-l.clientHeight}if(a!=="none"){let x=g<l.scrollLeft,v=g+e.offsetWidth>l.scrollLeft+l.clientWidth;if(x!==v)if(a==="center")l.scrollLeft=g-l.clientWidth/2+e.offsetWidth/2;else if(x)l.scrollLeft=g;else l.scrollLeft=g+e.offsetWidth-l.clientWidth}s.push(l)}}function nue(e){let r=0,a=0,i=e;while(i){r+=i.offsetTop,a+=i.offsetLeft;let s=i.offsetParent;if(!nM(s))break;r+=s.clientTop,a+=s.clientLeft,i=s}return{top:r,left:a}}function r_t(e,r){let a=nue(e),i=nue(r);return{top:a.top-i.top-r.clientTop,left:a.left-i.left-r.clientLeft}}function o_t(e,r,a){let{scaleX:i,scaleY:s,x:l,y:c}=r,d=e.left+l+(1-i)*parseFloat(a),h=e.top+c+(1-s)*parseFloat(a.slice(a.indexOf(" ")+1)),g=i?e.width*i:e.width,x=s?e.height*s:e.height;return{width:g,height:x,top:h,right:d+g,bottom:h+x,left:d}}function a_t(e,r,a){let{scaleX:i,scaleY:s,x:l,y:c}=r,d=e.left-l-(1-i)*parseFloat(a),h=e.top-c-(1-s)*parseFloat(a.slice(a.indexOf(" ")+1)),g=i?e.width/i:e.width,x=s?e.height/s:e.height;return{width:g,height:x,top:h,right:d+g,bottom:h+x,left:d}}function t3({element:e,keyframes:r,options:a}){return e.animate(r,a).finished}function TH(e,r=kc(e).translate,a=!0){if(a){let i=LH(e,(s)=>("translate"in s));if(i){let{translate:s=""}=i[0];if(typeof s==="string"){let l=LR(s);if(l)return l}}}if(r){let i=LR(r);if(i)return i}return{x:0,y:0,z:0}}var n_t=new PH((e)=>setTimeout(e,0)),BD=new Map,i_t=BD.clear.bind(BD);function f_t(e){let r=e.ownerDocument,a=BD.get(r);if(a)return a;a=r.getAnimations(),BD.set(r,a),n_t.schedule(i_t);let i=a.filter((s)=>WF(s.effect)&&s.effect.target===e);return BD.set(e,i),a}function s_t(e,r){let a=f_t(e).filter((i)=>{var s,l;if(WF(i.effect)){let{target:c}=i.effect;if((l=c&&((s=r.isValidTarget)==null?void 0:s.call(r,c)))!=null?l:!0)return i.effect.getKeyframes().some((h)=>{for(let g of r.properties)if(h[g])return!0})}}).map((i)=>{let{effect:s,currentTime:l}=i,c=s==null?void 0:s.getComputedTiming().duration;if(i.pending||i.playState==="finished")return;if(typeof c=="number"&&typeof l=="number"&&l<c)return i.currentTime=c,()=>{i.currentTime=l}});if(a.length>0)return()=>a.forEach((i)=>i==null?void 0:i())}var Cc=class extends tl{constructor(e,r={}){var a,i,s,l;let{frameTransform:c=uL(e),ignoreTransforms:d,getBoundingClientRect:h=GF}=r,g=s_t(e,{properties:["transform","translate","scale","width","height"],isValidTarget:(J)=>(J!==e||XF())&&J.contains(e)}),x=h(e),{top:v,left:b,width:y,height:k}=x,T,U=kc(e),N=WD(U),j={x:(a=N==null?void 0:N.scaleX)!=null?a:1,y:(i=N==null?void 0:N.scaleY)!=null?i:1},G=l_t(e,U);if(g==null||g(),N){if(T=a_t(x,N,U.transformOrigin),d||G)v=T.top,b=T.left,y=T.width,k=T.height}let X={width:(s=T==null?void 0:T.width)!=null?s:y,height:(l=T==null?void 0:T.height)!=null?l:k};if(G&&!d&&T){let J=o_t(T,G,U.transformOrigin);v=J.top,b=J.left,y=J.width,k=J.height,j.x=G.scaleX,j.y=G.scaleY}if(c){if(!d)b*=c.scaleX,y*=c.scaleX,v*=c.scaleY,k*=c.scaleY;b+=c.x,v+=c.y}super(b,v,y,k);this.scale=j,this.intrinsicWidth=X.width,this.intrinsicHeight=X.height}};function l_t(e,r){let a=e.getAnimations();if(!a.length)return null;let i,s,l,c=!1;for(let d of a){if(d.playState!=="running")continue;let h=WF(d.effect)?d.effect.getKeyframes():[],g=h[h.length-1];if(!g)continue;let{transform:x,translate:v,scale:b}=g;if(typeof x==="string"&&x)i=x,c=!0;if(typeof v==="string"&&v)s=v,c=!0;if(typeof b==="string"&&b)l=b,c=!0}if(!c)return null;return WD({transform:i!=null?i:r.transform,translate:s!=null?s:r.translate,scale:l!=null?l:r.scale})}function zR(e){return"style"in e&&typeof e.style==="object"&&e.style!==null&&"setProperty"in e.style&&"removeProperty"in e.style&&typeof e.style.setProperty==="function"&&typeof e.style.removeProperty==="function"}var yue=class{constructor(e){this.element=e,this.initial=new Map}set(e,r=""){let{element:a}=this;if(!zR(a))return;for(let[i,s]of Object.entries(e)){let l=`${r}${i}`;if(!this.initial.has(l))this.initial.set(l,a.style.getPropertyValue(l));a.style.setProperty(l,typeof s==="string"?s:`${s}px`)}}remove(e,r=""){let{element:a}=this;if(!zR(a))return;for(let i of e){let s=`${r}${i}`;a.style.removeProperty(s)}}reset(){let{element:e}=this;if(!zR(e))return;for(let[r,a]of this.initial)e.style.setProperty(r,a);if(e.getAttribute("style")==="")e.removeAttribute("style")}};function S8(e){if(!e)return!1;return e instanceof Ms(e).Element||UD(e)&&e.nodeType===Node.ELEMENT_NODE}function dL(e){if(!e)return!1;let{KeyboardEvent:r}=Ms(e.target);return e instanceof r}function _ue(e){if(!e)return!1;let{PointerEvent:r}=Ms(e.target);return e instanceof r}function bue(e){if(!S8(e))return!1;let{tagName:r}=e;return r==="INPUT"||r==="TEXTAREA"||c_t(e)}function c_t(e){return e.hasAttribute("contenteditable")&&e.getAttribute("contenteditable")!=="false"}var wH={};function r3(e){let r=wH[e]==null?0:wH[e]+1;return wH[e]=r,`${e}-${r}`}var u_t=({dragOperation:e,droppable:r})=>{let a=e.position.current;if(!a)return null;let{id:i}=r;if(!r.shape)return null;if(r.shape.containsPoint(a)){let s=Af.distance(r.shape.center,a);return{id:i,value:1/s,type:gZ.PointerIntersection,priority:hZ.High}}return null},d_t=({dragOperation:e,droppable:r})=>{let{shape:a}=e;if(!r.shape||!(a==null?void 0:a.current))return null;let i=a.current.intersectionArea(r.shape);if(i){let{position:s}=e,l=Af.distance(r.shape.center,s.current),d=i/(a.current.area+r.shape.area-i)/l;return{id:r.id,value:d,type:gZ.ShapeIntersection,priority:hZ.Normal}}return null},o3=(e)=>{var r;return(r=u_t(e))!=null?r:d_t(e)},wue=(e)=>{let{dragOperation:r,droppable:a}=e,{shape:i,position:s}=r;if(!a.shape)return null;let l=i?tl.from(i.current.boundingRectangle).corners:void 0,d=tl.from(a.shape.boundingRectangle).corners.reduce((h,g,x)=>{var v;return h+Af.distance(Af.from(g),(v=l==null?void 0:l[x])!=null?v:s.current)},0)/4;return{id:a.id,value:1/d,type:gZ.Collision,priority:hZ.Normal}};var{create:Z_t,defineProperty:WH,defineProperties:p_t,getOwnPropertyDescriptor:m_t,getOwnPropertyDescriptors:h_t,getOwnPropertySymbols:i3}=Object,Tue=Object.prototype.hasOwnProperty,Aue=Object.prototype.propertyIsEnumerable,Eue=(e,r)=>(r=Symbol[e])?r:Symbol.for("Symbol."+e),AR=(e)=>{throw TypeError(e)},DH=(e,r,a)=>(r in e)?WH(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,eO=(e,r)=>{for(var a in r||(r={}))if(Tue.call(r,a))DH(e,a,r[a]);if(i3){for(var a of i3(r))if(Aue.call(r,a))DH(e,a,r[a])}return e},GH=(e,r)=>p_t(e,h_t(r)),zue=(e,r)=>WH(e,"name",{value:r,configurable:!0}),Due=(e,r)=>{var a={};for(var i in e)if(Tue.call(e,i)&&r.indexOf(i)<0)a[i]=e[i];if(e!=null&&i3){for(var i of i3(e))if(r.indexOf(i)<0&&Aue.call(e,i))a[i]=e[i]}return a},ER=(e)=>{var r;return[,,,Z_t((r=e==null?void 0:e[Eue("metadata")])!=null?r:null)]},Oue=["class","method","getter","setter","accessor","field","value","get","set"],KD=(e)=>e!==void 0&&typeof e!=="function"?AR("Function expected"):e,g_t=(e,r,a,i,s)=>({kind:Oue[e],name:r,metadata:i,addInitializer:(l)=>a._?AR("Already initialized"):s.push(KD(l||null))}),gL=(e,r)=>DH(r,Eue("metadata"),e[3]),Pi=(e,r,a,i)=>{for(var s=0,l=e[r>>1],c=l&&l.length;s<c;s++)r&1?l[s].call(a):i=l[s].call(a,i);return i},Ic=(e,r,a,i,s,l)=>{var c,d,h,g,x,v=r&7,b=!!(r&8),y=!!(r&16),k=v>3?e.length+1:v?b?1:2:0,T=Oue[v+5],U=v>3&&(e[k-1]=[]),N=e[k]||(e[k]=[]),j=v&&(!y&&!b&&(s=s.prototype),v<5&&(v>3||!y)&&m_t(v<4?s:{get[a](){return Ka(this,l)},set[a](X){return xs(this,l,X)}},a));v?y&&v<4&&zue(l,(v>2?"set ":v>1?"get ":"")+a):zue(s,a);for(var G=i.length-1;G>=0;G--){if(g=g_t(v,a,h={},e[3],N),v){if(g.static=b,g.private=y,x=g.access={has:y?(X)=>M_t(s,X):(X)=>(a in X)},v^3)x.get=y?(X)=>(v^1?Ka:hL)(X,s,v^4?l:j.get):(X)=>X[a];if(v>2)x.set=y?(X,J)=>xs(X,s,J,v^4?l:j.set):(X,J)=>X[a]=J}if(d=(0,i[G])(v?v<4?y?l:j[T]:v>4?void 0:{get:j.get,set:j.set}:s,g),h._=1,v^4||d===void 0)KD(d)&&(v>4?U.unshift(d):v?y?l=d:j[T]=d:s=d);else if(typeof d!=="object"||d===null)AR("Object expected");else KD(c=d.get)&&(j.get=c),KD(c=d.set)&&(j.set=c),KD(c=d.init)&&U.unshift(c)}return v||gL(e,s),j&&WH(s,a,j),y?v^4?l:j:s},KH=(e,r,a)=>r.has(e)||AR("Cannot "+a),M_t=(e,r)=>Object(r)!==r?AR('Cannot use the "in" operator on this value'):e.has(r),Ka=(e,r,a)=>(KH(e,r,"read from private field"),a?a.call(e):r.get(e)),ei=(e,r,a)=>r.has(e)?AR("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,a),xs=(e,r,a,i)=>(KH(e,r,"write to private field"),i?i.call(e,a):r.set(e,a),a),hL=(e,r,a)=>(KH(e,r,"access private method"),a),Sue={role:"button",roleDescription:"draggable"},x_t="dnd-kit-description",v_t="dnd-kit-announcement",y_t={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},__t={dragstart({operation:{source:e}}){if(!e)return;return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:r}}){if(!e||e.id===(r==null?void 0:r.id))return;if(r)return`Draggable item ${e.id} was moved over droppable target ${r.id}.`;return`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:r},canceled:a}){if(!e)return;if(a)return`Dragging was cancelled. Draggable item ${e.id} was dropped.`;if(r)return`Draggable item ${e.id} was dropped over droppable target ${r.id}`;return`Draggable item ${e.id} was dropped.`}};function b_t(e){let r=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(r)}function w_t(e,r){let a=document.createElement("div");return a.id=e,a.style.setProperty("display","none"),a.textContent=r,a}function z_t(e){let r=document.createElement("div");return r.id=e,r.setAttribute("role","status"),r.setAttribute("aria-live","polite"),r.setAttribute("aria-atomic","true"),r.style.setProperty("position","fixed"),r.style.setProperty("width","1px"),r.style.setProperty("height","1px"),r.style.setProperty("margin","-1px"),r.style.setProperty("border","0"),r.style.setProperty("padding","0"),r.style.setProperty("overflow","hidden"),r.style.setProperty("clip","rect(0 0 0 0)"),r.style.setProperty("clip-path","inset(100%)"),r.style.setProperty("white-space","nowrap"),r}var S_t=["dragover","dragmove"],L_t=class extends Bi{constructor(e,r){super(e);let{id:a,idPrefix:{description:i=x_t,announcement:s=v_t}={},announcements:l=__t,screenReaderInstructions:c=y_t,debounce:d=500}=r!=null?r:{},h=a?`${i}-${a}`:r3(i),g=a?`${s}-${a}`:r3(s),x,v,b,y,k=(J=y)=>{if(!b||!J)return;if((b==null?void 0:b.nodeValue)!==J)b.nodeValue=J},T=()=>VD.schedule(k),U=k_t(T,d),N=Object.entries(l).map(([J,ee])=>this.manager.monitor.addEventListener(J,(re,oe)=>{let fe=b;if(!fe)return;let be=ee==null?void 0:ee(re,oe);if(be&&fe.nodeValue!==be)if(y=be,S_t.includes(J))U();else T(),U.cancel()})),j=()=>{let J=[];if(!(x==null?void 0:x.isConnected))x=w_t(h,c.draggable),J.push(x);if(!(v==null?void 0:v.isConnected))v=z_t(g),b=document.createTextNode(""),v.appendChild(b),J.push(v);if(J.length>0)document.body.append(...J)},G=new Set;function X(){for(let J of G)J()}this.registerEffect(()=>{var J;G.clear();for(let ee of this.manager.registry.draggables.value){let re=(J=ee.handle)!=null?J:ee.element;if(re){if(!x||!v)G.add(j);if((!b_t(re)||XF())&&!re.hasAttribute("tabindex"))G.add(()=>re.setAttribute("tabindex","0"));if(!re.hasAttribute("role")&&re.tagName.toLowerCase()!=="button")G.add(()=>re.setAttribute("role",Sue.role));if(!re.hasAttribute("aria-roledescription"))G.add(()=>re.setAttribute("aria-roledescription",Sue.roleDescription));if(!re.hasAttribute("aria-describedby"))G.add(()=>re.setAttribute("aria-describedby",h));for(let fe of["aria-pressed","aria-grabbed"]){let be=String(ee.isDragging);if(re.getAttribute(fe)!==be)G.add(()=>re.setAttribute(fe,be))}let oe=String(ee.disabled);if(re.getAttribute("aria-disabled")!==oe)G.add(()=>re.setAttribute("aria-disabled",oe))}}if(G.size>0)VD.schedule(X)}),this.destroy=()=>{super.destroy(),x==null||x.remove(),v==null||v.remove(),N.forEach((J)=>J())}}};function k_t(e,r){let a,i=()=>{clearTimeout(a),a=setTimeout(e,r)};return i.cancel=()=>clearTimeout(a),i}var f3=new Map,Nue,Fue,jue,Bue,OH,JD,iM,XH,PR,Uue,Yue,que,Hue,R8=class extends(OH=wR,Bue=[Ro],jue=[pn],Fue=[pn],Nue=[pn],OH){constructor(r,a){super(r,a);Pi(iM,5,this),ei(this,PR),ei(this,JD,new Set),ei(this,XH,Pi(iM,8,this,new Set)),Pi(iM,11,this),this.registerEffect(hL(this,PR,Uue))}register(r){return Ka(this,JD).add(r),()=>{Ka(this,JD).delete(r)}}addRoot(r){return vo(()=>{let a=new Set(this.additionalRoots);a.add(r),this.additionalRoots=a}),()=>{vo(()=>{let a=new Set(this.additionalRoots);a.delete(r),this.additionalRoots=a})}}get sourceRoot(){var r;let{source:a}=this.manager.dragOperation;return YD((r=a==null?void 0:a.element)!=null?r:null)}get targetRoot(){var r;let{target:a}=this.manager.dragOperation;return YD((r=a==null?void 0:a.element)!=null?r:null)}get roots(){let{status:r}=this.manager.dragOperation;if(r.initializing||r.initialized){let a=[this.sourceRoot,this.targetRoot].filter((i)=>i!=null);return new Set([...a,...this.additionalRoots])}return new Set}};iM=ER(OH);JD=new WeakMap;XH=new WeakMap;PR=new WeakSet;Uue=function(){let{roots:e}=this,r=[];for(let a of e)for(let i of Ka(this,JD))r.push(hL(this,PR,Yue).call(this,a,i));return()=>{for(let a of r)a()}};Yue=function(e,r){let a=f3.get(e);if(!a)a=new Map,f3.set(e,a);let i=a.get(r);if(!i){let l=KF(e)?hL(this,PR,que).call(this,e,a,r):hL(this,PR,Hue).call(this,e,a,r);if(!l)return()=>{};i=l,a.set(r,i)}i.refCount++;let s=!1;return()=>{if(s)return;if(s=!0,i.refCount--,i.refCount===0)i.cleanup()}};que=function(e,r,a){var i;let s=e.createElement("style"),{nonce:l}=(i=this.options)!=null?i:{};if(l)s.setAttribute("nonce",l);s.textContent=a,e.head.prepend(s);let c=new MutationObserver((d)=>{for(let h of d)for(let g of Array.from(h.removedNodes))if(g===s){e.head.prepend(s);return}});return c.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{if(c.disconnect(),s.remove(),r.delete(a),r.size===0)f3.delete(e)}}};Hue=function(e,r,a){"adoptedStyleSheets"in e&&Array.isArray(e.adoptedStyleSheets);let i=e.ownerDocument.defaultView,{CSSStyleSheet:s}=i!=null?i:{};if(!s)return null;let l=new s;return l.replaceSync(a),e.adoptedStyleSheets.push(l),{refCount:0,cleanup:()=>{var c;if(QF(e)&&((c=e.host)==null?void 0:c.isConnected)){let d=e.adoptedStyleSheets.indexOf(l);if(d!==-1)e.adoptedStyleSheets.splice(d,1)}if(r.delete(a),r.size===0)f3.delete(e)}}};Ic(iM,4,"additionalRoots",Bue,R8,XH);Ic(iM,2,"sourceRoot",jue,R8);Ic(iM,2,"targetRoot",Fue,R8);Ic(iM,2,"roots",Nue,R8);gL(iM,R8);R8.configure=oa(R8);var u3=R8,C_t=class extends Bi{constructor(e,r){super(e,r);this.manager=e;let{cursor:a="grabbing"}=r!=null?r:{},i=e.registry.plugins.get(u3),s=i==null?void 0:i.register(`* { cursor: ${a} !important; }`);if(s){let l=this.destroy.bind(this);this.destroy=()=>{s(),l()}}}},aO="data-dnd-",NH=`${aO}dropping`,df="--dnd-",MZ=`${aO}dragging`,s3=`${aO}placeholder`,I_t=[MZ,s3,"popover","aria-pressed","aria-grabbing"],R_t=["view-transition-name"],P_t=`
|
|
86
|
+
:is(:root,:host) [${MZ}] {
|
|
87
|
+
position: fixed !important;
|
|
88
|
+
pointer-events: none !important;
|
|
89
|
+
touch-action: none;
|
|
90
|
+
z-index: calc(infinity);
|
|
91
|
+
will-change: translate;
|
|
92
|
+
top: var(${df}top, 0px) !important;
|
|
93
|
+
left: var(${df}left, 0px) !important;
|
|
94
|
+
right: unset !important;
|
|
95
|
+
bottom: unset !important;
|
|
96
|
+
width: var(${df}width, auto);
|
|
97
|
+
max-width: var(${df}width, auto);
|
|
98
|
+
height: var(${df}height, auto);
|
|
99
|
+
max-height: var(${df}height, auto);
|
|
100
|
+
transform: var(${df}transform, none) !important;
|
|
101
|
+
transition: var(${df}transition) !important;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:is(:root,:host) [${s3}] {
|
|
105
|
+
transition: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:is(:root,:host) [${s3}='hidden'] {
|
|
109
|
+
visibility: hidden;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
[${MZ}] * {
|
|
113
|
+
pointer-events: none !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
[${MZ}]:not([${NH}]) {
|
|
117
|
+
translate: var(${df}translate) !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
[${MZ}][style*='${df}scale'] {
|
|
121
|
+
scale: var(${df}scale) !important;
|
|
122
|
+
transform-origin: var(${df}transform-origin) !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@layer dnd-kit {
|
|
126
|
+
:where([${MZ}][popover]) {
|
|
127
|
+
overflow: visible;
|
|
128
|
+
background: unset;
|
|
129
|
+
border: unset;
|
|
130
|
+
margin: unset;
|
|
131
|
+
padding: unset;
|
|
132
|
+
color: inherit;
|
|
133
|
+
|
|
134
|
+
&:is(input, button) {
|
|
135
|
+
border: revert;
|
|
136
|
+
background: revert;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
[${MZ}]::backdrop, [${aO}overlay]:not([${MZ}]) {
|
|
141
|
+
display: none;
|
|
142
|
+
visibility: hidden;
|
|
143
|
+
}
|
|
144
|
+
`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function T_t(e,r="hidden"){return vo(()=>{let{element:a,manager:i}=e;if(!a||!i)return;let s=A_t(a,i.registry.droppables),l=[],c=cue(a),{remove:d}=c;return E_t(s,c,l),D_t(c,r),c.remove=()=>{l.forEach((h)=>h()),d.call(c)},c})}function A_t(e,r){let a=new Map;for(let i of r){if(!i.element)continue;if(e===i.element||e.contains(i.element)){let s=`${aO}${r3("dom-id")}`;i.element.setAttribute(s,""),a.set(i,s)}}return a}function E_t(e,r,a){for(let[i,s]of e){if(!i.element)continue;let l=`[${s}]`,c=r.matches(l)?r:r.querySelector(l);if(i.element.removeAttribute(s),!c)continue;let d=i.element;i.proxy=c,c.removeAttribute(s),HD.set(d,c),a.push(()=>{HD.delete(d),i.proxy=void 0})}}function D_t(e,r="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(s3,r)}function Vue(e,r){if(e===r)return!0;return fL(e)===fL(r)}function Lue(e){let{target:r}=e;if("newState"in e&&e.newState==="closed"&&S8(r)&&r.hasAttribute("popover"))requestAnimationFrame(()=>cL(r))}function FH(e){return e.tagName==="TR"}function O_t(e,r,a){let i=new MutationObserver((s)=>{let l=!1;for(let c of s){if(c.target!==e){l=!0;continue}if(c.type!=="attributes")continue;let d=c.attributeName;if(d.startsWith("aria-")||I_t.includes(d))continue;let h=e.getAttribute(d);if(d==="style"){if(zR(e)&&zR(r)){let g=e.style;for(let x of Array.from(r.style))if(g.getPropertyValue(x)==="")r.style.removeProperty(x);for(let x of Array.from(g)){if(R_t.includes(x)||x.startsWith(df))continue;let v=g.getPropertyValue(x);r.style.setProperty(x,v)}}}else if(h!==null)r.setAttribute(d,h);else r.removeAttribute(d)}if(l&&a)r.replaceChildren(...e.cloneNode(!0).childNodes)});return i.observe(e,{attributes:!0,subtree:!0,childList:!0}),i}function N_t(e,r,a){let i=new MutationObserver((s)=>{for(let l of s){if(l.addedNodes.length===0)continue;for(let c of Array.from(l.addedNodes)){if(c.contains(e)&&e.nextElementSibling!==r){e.insertAdjacentElement("afterend",r),cL(a);return}if(c.contains(r)&&r.previousElementSibling!==e){r.insertAdjacentElement("beforebegin",e),cL(a);return}}}if(e.isConnected&&r.isConnected&&e.nextElementSibling!==r)e.insertAdjacentElement("afterend",r),cL(a)});return i.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),i}function F_t(e){return new ResizeObserver(()=>{var r,a,i;let s=new Cc(e.placeholder,{frameTransform:e.frameTransform,ignoreTransforms:!0}),l=(r=e.transformOrigin)!=null?r:{x:1,y:1},c=(e.width-s.width)*l.x+e.delta.x,d=(e.height-s.height)*l.y+e.delta.y,h=CH();if(e.styles.set({width:s.width-e.widthOffset,height:s.height-e.heightOffset,top:e.top+d+h.y,left:e.left+c+h.x},df),(a=e.getElementMutationObserver())==null||a.takeRecords(),FH(e.element)&&FH(e.placeholder)){let T=Array.from(e.element.cells),U=Array.from(e.placeholder.cells);if(!e.getSavedCellWidths())e.setSavedCellWidths(T.map((N)=>N.style.width));for(let[N,j]of T.entries()){let G=U[N];j.style.width=`${G.getBoundingClientRect().width}px`}}let g=(i=e.getTranslate())!=null?i:{x:0,y:0},x=e.left+c+h.x+g.x,v=e.top+d+h.y+g.y,b=s.width-e.widthOffset,y=s.height-e.heightOffset,k=e.frameTransform;e.dragOperation.shape=new tl(x*k.scaleX+k.x,v*k.scaleY+k.y,b*k.scaleX,y*k.scaleY)})}var j_t=250,B_t="ease";function U_t(e){var r,a,i,s;let{animation:l}=e;if(typeof l==="function"){let j=l({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});Promise.resolve(j).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)});return}let{duration:c=j_t,easing:d=B_t}=l!=null?l:{};cL(e.feedbackElement);let[,h]=(r=LH(e.feedbackElement,(j)=>("translate"in j)))!=null?r:[];h==null||h.pause();let g=(a=e.placeholder)!=null?a:e.element,x={frameTransform:Vue(e.feedbackElement,g)?null:void 0},v=new Cc(e.feedbackElement,x),b=(i=LR(kc(e.feedbackElement).translate))!=null?i:e.translate,y=new Cc(g,x),k=tl.delta(v,y,e.alignment),T={x:b.x-k.x,y:b.y-k.y},U=Math.round(v.intrinsicHeight)!==Math.round(y.intrinsicHeight)?{minHeight:[`${v.intrinsicHeight}px`,`${y.intrinsicHeight}px`],maxHeight:[`${v.intrinsicHeight}px`,`${y.intrinsicHeight}px`]}:{},N=Math.round(v.intrinsicWidth)!==Math.round(y.intrinsicWidth)?{minWidth:[`${v.intrinsicWidth}px`,`${y.intrinsicWidth}px`],maxWidth:[`${v.intrinsicWidth}px`,`${y.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},df),e.feedbackElement.setAttribute(NH,""),(s=e.getElementMutationObserver())==null||s.takeRecords(),t3({element:e.feedbackElement,keyframes:GH(eO(eO({},U),N),{translate:[`${b.x}px ${b.y}px 0`,`${T.x}px ${T.y}px 0`]}),options:{duration:qD(Ms(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?c:0,easing:d}}).then(()=>{e.feedbackElement.removeAttribute(NH),h==null||h.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}var Wue,jH,tO,QH,n3,Gue,Kue,TR=class extends(jH=Bi,Wue=[Ro],jH){constructor(r,a){super(r,a);ei(this,n3),ei(this,QH,Pi(tO,8,this)),Pi(tO,11,this),this.state={initial:{},current:{}};let i=r.registry.plugins.get(u3),s=i==null?void 0:i.register(P_t);if(s){let l=this.destroy.bind(this);this.destroy=()=>{s(),l()}}this.registerEffect(hL(this,n3,Gue).bind(this,i)),this.registerEffect(hL(this,n3,Kue))}};tO=ER(jH);QH=new WeakMap;n3=new WeakSet;Gue=function(e){let{overlay:r}=this;if(!r||!e)return;let a=YD(r);if(!a)return;return e.addRoot(a)};Kue=function(){var e,r,a,i,s,l,c;let{state:d,manager:h,options:g}=this,{dragOperation:x}=h,{position:v,source:b,status:y}=x;if(y.idle){d.current={},d.initial={};return}if(!b)return;let{element:k}=b,T=b.pluginConfig(TR),U=(r=(e=T==null?void 0:T.feedback)!=null?e:g==null?void 0:g.feedback)!=null?r:"default",N=typeof U==="function"?U(b,h):U;if(!k||N==="none"||!y.initialized||y.initializing)return;let{initial:j}=d,G=(a=this.overlay)!=null?a:k,X=uL(G),J=uL(k),ee=!Vue(k,G),re=new Cc(k,{frameTransform:ee?J:null,ignoreTransforms:!ee}),oe={x:J.scaleX/X.scaleX,y:J.scaleY/X.scaleY},{width:fe,height:be,top:We,left:Ye}=re;if(ee)fe=fe/oe.x,be=be/oe.y;let Se=new yue(G),He=kc(k),{transition:ft,translate:Je,boxSizing:xt,paddingBlockStart:Ft,paddingBlockEnd:Bt,paddingInlineStart:ie,paddingInlineEnd:bt,borderInlineStartWidth:Wt,borderInlineEndWidth:Fe,borderBlockStartWidth:nr,borderBlockEndWidth:fr}=He,Jt=ft.split(",").filter((zt)=>!/^\s*(transform|translate|scale)\b/.test(zt)).join(","),Fr=WD(He),Gt=He.transform,Xt=N==="clone",Ir=xt==="content-box",yr=Ir?parseInt(ie)+parseInt(bt)+parseInt(Wt)+parseInt(Fe):0,Tr=Ir?parseInt(Ft)+parseInt(Bt)+parseInt(nr)+parseInt(fr):0,pr=N!=="move"&&!this.overlay?T_t(b,Xt?"clone":"hidden"):null,po=vo(()=>dL(h.dragOperation.activatorEvent));if(!j.translate){if(this.overlay&&Fr)j.translate={x:Fr.x,y:Fr.y};else if(Je!=="none"){let zt=LR(Je);if(zt)j.translate=zt}}if(!j.transformOrigin){let zt=vo(()=>v.current),qt=Ye+((i=Fr==null?void 0:Fr.x)!=null?i:0),Nr=We+((s=Fr==null?void 0:Fr.y)!=null?s:0);j.transformOrigin={x:(zt.x-qt*X.scaleX-X.x)/(fe*X.scaleX),y:(zt.y-Nr*X.scaleY-X.y)/(be*X.scaleY)}}let{transformOrigin:lo}=j,xa=We*X.scaleY+X.y,sr=Ye*X.scaleX+X.x;if(!j.coordinates){if(j.coordinates={x:sr,y:xa},oe.x!==1||oe.y!==1){let{scaleX:zt,scaleY:qt}=J,{x:Nr,y:Br}=lo;j.coordinates.x+=(fe*zt-fe)*Nr,j.coordinates.y+=(be*qt-be)*Br}}if(!j.dimensions)j.dimensions={width:fe,height:be};if(!j.frameTransform)j.frameTransform=X;let mo={x:j.coordinates.x-sr,y:j.coordinates.y-xa},uo={width:(j.dimensions.width*j.frameTransform.scaleX-fe*X.scaleX)*lo.x,height:(j.dimensions.height*j.frameTransform.scaleY-be*X.scaleY)*lo.y},No={x:mo.x/X.scaleX+uo.width,y:mo.y/X.scaleY+uo.height},hn={left:Ye+No.x,top:We+No.y};G.setAttribute(MZ,"true");let Vo=vo(()=>x.transform),Wn=(l=j.translate)!=null?l:{x:0,y:0},xn=Vo.x*X.scaleX+Wn.x,Gi=Vo.y*X.scaleY+Wn.y,Ge=CH();if(Se.set({width:fe-yr,height:be-Tr,top:hn.top+Ge.y,left:hn.left+Ge.x,translate:`${xn}px ${Gi}px 0`,transform:this.overlay?"none":Gt,transition:Jt?`${Jt}, translate 0ms linear`:"translate 0ms linear",scale:ee?`${oe.x} ${oe.y}`:"","transform-origin":`${lo.x*100}% ${lo.y*100}%`},df),pr){if(k.insertAdjacentElement("afterend",pr),g==null?void 0:g.rootElement)(typeof g.rootElement==="function"?g.rootElement(b):g.rootElement).appendChild(k)}if(JF(G)){if(!G.hasAttribute("popover"))G.setAttribute("popover","manual");cL(G),G.addEventListener("beforetoggle",Lue)}let Rt,hr,Ur,$r=F_t({placeholder:pr,element:k,feedbackElement:G,frameTransform:X,transformOrigin:lo,width:fe,height:be,top:We,left:Ye,widthOffset:yr,heightOffset:Tr,delta:No,styles:Se,dragOperation:x,getTranslate:()=>d.current.translate,getElementMutationObserver:()=>Rt,getSavedCellWidths:()=>Ur,setSavedCellWidths:(zt)=>{Ur=zt}}),Wo=new Cc(G);vo(()=>x.shape=Wo);let Va=Ms(G),Ee=(zt)=>{this.manager.actions.stop({event:zt})},Oe=qD(Va);if(po)Va.addEventListener("resize",Ee);if(vo(()=>b.status)==="idle")requestAnimationFrame(()=>b.status="dragging");if(pr)$r.observe(pr),Rt=O_t(k,pr,Xt),hr=N_t(k,pr,G);let je=(c=h.dragOperation.source)==null?void 0:c.id,Zt=()=>{var zt;if(!po||je==null)return;let qt=h.registry.draggables.get(je),Nr=(zt=qt==null?void 0:qt.handle)!=null?zt:qt==null?void 0:qt.element;if(nM(Nr))Nr.focus()},St=()=>{if(Rt==null||Rt.disconnect(),hr==null||hr.disconnect(),$r.disconnect(),Va.removeEventListener("resize",Ee),JF(G))G.removeEventListener("beforetoggle",Lue),G.removeAttribute("popover");G.removeAttribute(MZ),Se.reset();let zt=()=>{var qt;if(Ur&&FH(k)){let ua=Array.from(k.cells);for(let[tr,Go]of ua.entries())Go.style.width=(qt=Ur[tr])!=null?qt:""}b.status="idle";let Nr=d.current.translate!=null,Br=x.status.dragging;if(pr&&(!Br&&Nr||pr.parentElement!==G.parentElement)&&G.isConnected)pr.replaceWith(G);pr==null||pr.remove()};if(G===this.overlay)setTimeout(zt,0);else zt()},jt=g==null?void 0:g.dropAnimation,or=this,Dt=rL(()=>{var zt,qt,Nr;let{transform:Br,status:ua}=x;if(!Br.x&&!Br.y&&!d.current.translate)return;if(ua.dragging){let tr=(zt=j.translate)!=null?zt:{x:0,y:0},Go={x:Br.x/X.scaleX+tr.x,y:Br.y/X.scaleY+tr.y},va=d.current.translate,ni=vo(()=>x.modifiers),vf=vo(()=>{var yf;return(yf=x.shape)==null?void 0:yf.current}),Aa=g==null?void 0:g.keyboardTransition,os=po&&!Oe&&Aa!==null?`${(qt=Aa==null?void 0:Aa.duration)!=null?qt:250}ms ${(Nr=Aa==null?void 0:Aa.easing)!=null?Nr:"cubic-bezier(0.25, 1, 0.5, 1)"}`:"0ms linear";if(Se.set({transition:Jt?`${Jt}, translate ${os}`:`translate ${os}`,translate:`${Go.x}px ${Go.y}px 0`},df),Rt==null||Rt.takeRecords(),vf&&vf!==Wo&&va&&!ni.length){let yf=Af.delta(Go,va);x.shape=tl.from(vf.boundingRectangle).translate(yf.x*X.scaleX,yf.y*X.scaleY)}else x.shape=new Cc(G);d.current.translate=Go}},function(){if(x.status.dropped){this.dispose(),b.status="dropping";let zt=(T==null?void 0:T.dropAnimation)!==void 0?T.dropAnimation:or.dropAnimation!==void 0?or.dropAnimation:jt,qt=d.current.translate,Nr=qt!=null;if(!qt&&k!==G)qt={x:0,y:0};if(!qt||zt===null){St();return}h.renderer.rendering.then(()=>{U_t({source:b,element:k,feedbackElement:G,placeholder:pr,translate:qt,moved:Nr,transition:ft,alignment:b.alignment,styles:Se,animation:zt!=null?zt:void 0,getElementMutationObserver:()=>Rt,cleanup:St,restoreFocus:Zt})})}});return()=>{St(),Dt()}};Ic(tO,4,"overlay",Wue,TR,QH);gL(tO,TR);TR.configure=oa(TR);var ys=TR,GD=!0,Y_t=!1,Xue,Que,Jue,$ue,k8,JH,$H;$ue=(Jue=[Ro],ec.Forward),Que=(Xue=[Ro],ec.Reverse);var rO=class{constructor(){ei(this,JH,Pi(k8,8,this,GD)),Pi(k8,11,this),ei(this,$H,Pi(k8,12,this,GD)),Pi(k8,15,this)}isLocked(e){if(e===ec.Idle)return!1;if(e==null)return this[ec.Forward]===GD&&this[ec.Reverse]===GD;return this[e]===GD}unlock(e){if(e===ec.Idle)return;this[e]=Y_t}};k8=ER(null);JH=new WeakMap;$H=new WeakMap;Ic(k8,4,$ue,Jue,rO,JH);Ic(k8,4,Que,Xue,rO,$H);gL(k8,rO);var q_t=[ec.Forward,ec.Reverse],kue=class{constructor(){this.x=new rO,this.y=new rO}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},H_t=class extends Bi{constructor(e){super(e);let r=pZ(new kue),a=null;this.signal=r,Ii(()=>{let{status:i}=e.dragOperation;if(!i.initialized){a=null,r.value=new kue;return}let{delta:s}=e.dragOperation.position;if(a){let l={x:Cue(s.x,a.x),y:Cue(s.y,a.y)},c=r.peek();Qo(()=>{for(let d of K9)for(let h of q_t)if(l[d]===h)c[d].unlock(h);r.value=c})}a=s})}get current(){return this.signal.peek()}};function Cue(e,r){return Math.sign(e-r)}var ede,BH,oO,eV,L8,UH,DR=class extends(BH=wR,ede=[Ro],BH){constructor(e){super(e);ei(this,eV,Pi(oO,8,this,!1)),Pi(oO,11,this),ei(this,L8),ei(this,UH,()=>{if(!Ka(this,L8))return;let{element:l,by:c}=Ka(this,L8);if(c.y)l.scrollTop+=c.y;if(c.x)l.scrollLeft+=c.x}),this.scroll=(l,c)=>{var d;if(this.disabled)return!1;let h=this.getScrollableElements();if(!h)return xs(this,L8,void 0),!1;let{position:g}=this.manager.dragOperation,x=g==null?void 0:g.current;if(x){let{by:v}=l!=null?l:{},b=v?{x:Iue(v.x),y:Iue(v.y)}:void 0,y=b?void 0:this.scrollIntentTracker.current;if(y==null?void 0:y.isLocked())return!1;for(let k of h){let T=xue(k,v);if(T.x||T.y){let{speed:U,direction:N}=vue(k,x,b,c==null?void 0:c.acceleration,c==null?void 0:c.threshold);if(y){for(let j of K9)if(y[j].isLocked(N[j]))U[j]=0,N[j]=0}if(N.x||N.y){let{x:j,y:G}=v!=null?v:N,X=j*U.x,J=G*U.y;if(X||J){let ee=(d=Ka(this,L8))==null?void 0:d.by;if(this.autoScrolling&&ee){if(ee.x&&!X||ee.y&&!J)continue}return xs(this,L8,{element:k,by:{x:X,y:J}}),VD.schedule(Ka(this,UH)),!0}}}}}return xs(this,L8,void 0),!1};let r=null,a=null,i=mR(()=>{let{position:l,source:c}=e.dragOperation;if(!l)return null;let d=IH(YD(c==null?void 0:c.element),l.current);if(d)r=d;return d!=null?d:r}),s=mR(()=>{let l=i.value,{documentElement:c}=sL(l);if(!l||l===c){let{target:d}=e.dragOperation,h=d==null?void 0:d.element;if(h){let g=$F(h,{excludeElement:!1});return a=g,g}}if(l){let d=$F(l,{excludeElement:!1});if(this.autoScrolling&&a&&d.size<(a==null?void 0:a.size))return a;return a=d,d}return a=null,null},cf);this.getScrollableElements=()=>s.value,this.scrollIntentTracker=new H_t(e),this.destroy=e.monitor.addEventListener("dragmove",(l)=>{if(this.disabled||l.defaultPrevented||!dL(e.dragOperation.activatorEvent)||!l.by)return;if(this.scroll({by:l.by}))l.preventDefault()})}};oO=ER(BH);eV=new WeakMap;L8=new WeakMap;UH=new WeakMap;Ic(oO,4,"autoScrolling",ede,DR,eV);gL(oO,DR);function Iue(e){if(e>0)return ec.Forward;if(e<0)return ec.Reverse;return ec.Idle}var V_t=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:r,resolvers:a}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(let i of r)i();for(let i of a)i()}}schedule(e){if(this.tasks.add(e),!this.pending)this.pending=!0,this.scheduler(this.flush);return new Promise((r)=>this.resolvers.add(r))}},W_t=new V_t((e)=>{if(typeof requestAnimationFrame==="function")requestAnimationFrame(e);else e()}),G_t=10,YH=class extends Bi{constructor(r,a){super(r,a);let i=r.registry.plugins.get(DR);if(!i)throw Error("AutoScroller plugin depends on Scroller plugin");this.destroy=Ii(()=>{var s,l,c;if(this.disabled)return;let{position:d,status:h}=r.dragOperation;if(h.dragging){let g={acceleration:(s=this.options)==null?void 0:s.acceleration,threshold:typeof((l=this.options)==null?void 0:l.threshold)==="number"?{x:this.options.threshold,y:this.options.threshold}:(c=this.options)==null?void 0:c.threshold};if(i.scroll(void 0,g)){i.autoScrolling=!0;let v=setInterval(()=>W_t.schedule(()=>i.scroll(void 0,g)),G_t);return()=>{clearInterval(v)}}else i.autoScrolling=!1}})}};YH.configure=oa(YH);var tde=YH,Rue={capture:!0,passive:!0},XD,K_t=class extends wR{constructor(e){super(e);ei(this,XD),this.handleScroll=()=>{if(Ka(this,XD)==null)xs(this,XD,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),xs(this,XD,void 0)},50))};let{dragOperation:r}=this.manager;this.destroy=Ii(()=>{var a,i,s;if(r.status.dragging){let c=(s=(i=(a=r.source)==null?void 0:a.element)==null?void 0:i.ownerDocument)!=null?s:document;return c.addEventListener("scroll",this.handleScroll,Rue),()=>{c.removeEventListener("scroll",this.handleScroll,Rue)}}})}};XD=new WeakMap;var X_t="* { user-select: none !important; -webkit-user-select: none !important; }",Q_t=class extends Bi{constructor(e){super(e);this.manager=e;let r=e.registry.plugins.get(u3),a=r==null?void 0:r.register(X_t);if(this.destroy=Ii(()=>{let{dragOperation:i}=this.manager;if(i.status.initialized)return AH(),document.addEventListener("selectionchange",AH,{capture:!0}),()=>{document.removeEventListener("selectionchange",AH,{capture:!0})}}),a){let i=this.destroy.bind(this);this.destroy=()=>{a(),i()}}}};function AH(){var e;(e=document.getSelection())==null||e.removeAllRanges()}var QD=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,r){var a;let i=(a=r.handle)!=null?a:r.element;return e.target!==i}}),CR,l3=class extends oL{constructor(r,a){super(r);this.manager=r,this.options=a,ei(this,CR,[]),this.listeners=new RH,this.handleSourceKeyDown=(i,s,l)=>{if(this.disabled||i.defaultPrevented)return;if(!S8(i.target))return;if(s.disabled)return;let{keyboardCodes:c=QD.keyboardCodes,preventActivation:d=QD.preventActivation}=l!=null?l:{};if(!c.start.includes(i.code))return;if(!this.manager.dragOperation.status.idle)return;if(d==null?void 0:d(i,s))return;this.handleStart(i,s,l)}}bind(r,a=this.options){return Ii(()=>{var s;let l=(s=r.handle)!=null?s:r.element,c=(d)=>{if(dL(d))this.handleSourceKeyDown(d,r,a)};if(l)return l.addEventListener("keydown",c),()=>{l.removeEventListener("keydown",c)}})}handleStart(r,a,i){let{element:s}=a;if(!s)throw Error("Source draggable does not have an associated element");r.preventDefault(),r.stopImmediatePropagation(),e3(s);let{center:l}=new Cc(s);if(this.manager.actions.start({event:r,coordinates:{x:l.x,y:l.y},source:a}).signal.aborted)return this.cleanup();this.sideEffects();let d=sL(s),h=[this.listeners.bind(d,[{type:"keydown",listener:(g)=>this.handleKeyDown(g,a,i),options:{capture:!0}}])];Ka(this,CR).push(...h)}handleKeyDown(r,a,i){let{keyboardCodes:s=QD.keyboardCodes}=i!=null?i:{};if(kR(r,[...s.end,...s.cancel])){r.preventDefault();let l=kR(r,s.cancel);this.handleEnd(r,l);return}if(kR(r,s.up))this.handleMove("up",r);else if(kR(r,s.down))this.handleMove("down",r);if(kR(r,s.left))this.handleMove("left",r);else if(kR(r,s.right))this.handleMove("right",r)}handleEnd(r,a){this.manager.actions.stop({event:r,canceled:a}),this.cleanup()}handleMove(r,a){var i,s;let{shape:l}=this.manager.dragOperation,c=a.shiftKey?5:1,d={x:0,y:0},h=(s=(i=this.options)==null?void 0:i.offset)!=null?s:QD.offset;if(typeof h==="number")h={x:h,y:h};if(!l)return;switch(r){case"up":d={x:0,y:-h.y*c};break;case"down":d={x:0,y:h.y*c};break;case"left":d={x:-h.x*c,y:0};break;case"right":d={x:h.x*c,y:0};break}if(d.x||d.y)a.preventDefault(),this.manager.actions.move({event:a,by:d})}sideEffects(){let r=this.manager.registry.plugins.get(tde);if((r==null?void 0:r.disabled)===!1)r.disable(),Ka(this,CR).push(()=>{r.enable()})}cleanup(){Ka(this,CR).forEach((r)=>r()),xs(this,CR,[])}destroy(){this.cleanup(),this.listeners.clear()}};CR=new WeakMap;l3.configure=oa(l3);l3.defaults=QD;var es=l3;function kR(e,r){return r.includes(e.code)}var ZL,J_t=class extends MH{constructor(){super(...arguments);ei(this,ZL)}onEvent(e){switch(e.type){case"pointerdown":xs(this,ZL,lL(e));break;case"pointermove":if(!Ka(this,ZL))return;let{x:r,y:a}=lL(e),i={x:r-Ka(this,ZL).x,y:a-Ka(this,ZL).y},{tolerance:s}=this.options;if(s&&IF(i,s)){this.abort();return}if(IF(i,this.options.value))this.activate(e);break;case"pointerup":this.abort();break}}abort(){xs(this,ZL,void 0)}};ZL=new WeakMap;var IR,pL,$_t=class extends MH{constructor(){super(...arguments);ei(this,IR),ei(this,pL)}onEvent(e){switch(e.type){case"pointerdown":xs(this,pL,lL(e)),xs(this,IR,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!Ka(this,pL))return;let{x:r,y:a}=lL(e),i={x:r-Ka(this,pL).x,y:a-Ka(this,pL).y};if(IF(i,this.options.tolerance))this.abort();break;case"pointerup":this.abort();break}}abort(){if(Ka(this,IR))clearTimeout(Ka(this,IR)),xs(this,pL,void 0),xs(this,IR,void 0)}};IR=new WeakMap;pL=new WeakMap;var Dr=class{};Dr.Delay=$_t;Dr.Distance=J_t;var qH=Object.freeze({activationConstraints(e,r){var a;let{pointerType:i,target:s}=e;if(i==="mouse"&&S8(s)&&(r.handle===s||((a=r.handle)==null?void 0:a.contains(s))))return;if(i==="touch")return[new Dr.Delay({value:250,tolerance:5})];if(bue(s)&&!e.defaultPrevented)return[new Dr.Delay({value:200,tolerance:0})];return[new Dr.Delay({value:200,tolerance:10}),new Dr.Distance({value:5})]},preventActivation(e,r){var a;let{target:i}=e;if(i===r.element)return!1;if(i===r.handle)return!1;if(!S8(i))return!1;if((a=r.handle)==null?void 0:a.contains(i))return!1;let s=uue(i);if(s===r.element)return!1;return Boolean(s)}}),RR,c3=class extends oL{constructor(r,a){super(r);this.manager=r,this.options=a,ei(this,RR,new Set),this.listeners=new RH,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{let{event:i,coordinates:s}=this.latest;if(!i||!s)return;this.manager.actions.move({event:i,to:s})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(r,a,i=this.options){let{activationConstraints:s=qH.activationConstraints}=i!=null?i:{};return typeof s==="function"?s(r,a):s}bind(r,a=this.options){return Ii(()=>{var s;let l=new AbortController,{signal:c}=l,d=(g)=>{if(_ue(g))this.handlePointerDown(g,r,a)},h=[(s=r.handle)!=null?s:r.element];if(a==null?void 0:a.activatorElements)if(Array.isArray(a.activatorElements))h=a.activatorElements;else h=a.activatorElements(r);for(let g of h){if(!g)continue;rbt(g.ownerDocument.defaultView),g.addEventListener("pointerdown",d,{signal:c})}return()=>l.abort()})}handlePointerDown(r,a,i){if(this.disabled||!r.isPrimary||r.button!==0||!S8(r.target)||a.disabled||ebt(r)||!this.manager.dragOperation.status.idle)return;let{preventActivation:s=qH.preventActivation}=i!=null?i:{};if(s==null?void 0:s(r,a))return;let{target:l}=r,c=nM(l)&&l.draggable&&l.getAttribute("draggable")==="true",d=uL(a.element),{x:h,y:g}=lL(r);this.initialCoordinates={x:h*d.scaleX+d.x,y:g*d.scaleY+d.y};let x=this.activationConstraints(r,a,i);r.sensor=this;let v=new Yce(x,(T)=>this.handleStart(a,T));v.signal.onabort=()=>this.handleCancel(r),v.onEvent(r),this.controller=v;let b=YF(),y=this.listeners.bind(b,[{type:"pointermove",listener:(T)=>this.handlePointerMove(T,a)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:c?this.handleCancel:a3,options:{capture:!0}}]),k=()=>{y(),this.initialCoordinates=void 0};Ka(this,RR).add(k)}handlePointerMove(r,a){var i,s;if(((i=this.controller)==null?void 0:i.activated)===!1){(s=this.controller)==null||s.onEvent(r);return}if(this.manager.dragOperation.status.dragging){let l=lL(r),c=uL(a.element);l.x=l.x*c.scaleX+c.x,l.y=l.y*c.scaleY+c.y,r.preventDefault(),r.stopPropagation(),this.latest.event=r,this.latest.coordinates=l,VD.schedule(this.handleMove)}}handlePointerUp(r){let{status:a}=this.manager.dragOperation;if(!a.idle){r.preventDefault(),r.stopPropagation();let i=!a.initialized;this.manager.actions.stop({event:r,canceled:i})}this.cleanup()}handleKeyDown(r){if(r.key==="Escape")r.preventDefault(),this.handleCancel(r)}handleStart(r,a){let{manager:i,initialCoordinates:s}=this;if(!s||!i.dragOperation.status.idle)return;if(a.defaultPrevented)return;if(i.actions.start({coordinates:s,event:a,source:r}).signal.aborted)return this.cleanup();a.preventDefault();let d=sL(a.target).body;try{d.setPointerCapture(a.pointerId)}catch(x){this.handleCancel(a);return}let h=S8(a.target)?[a.target,d]:d,g=this.listeners.bind(h,[{type:"touchmove",listener:a3,options:{passive:!1}},{type:"click",listener:a3},{type:"contextmenu",listener:a3},{type:"keydown",listener:this.handleKeyDown}]);Ka(this,RR).add(g)}handleCancel(r){let{dragOperation:a}=this.manager;if(a.status.initialized)this.manager.actions.stop({event:r,canceled:!0});this.cleanup()}cleanup(){let{controller:r}=this;if(this.controller=void 0,r&&!r.signal.aborted)r.abort();this.latest={event:void 0,coordinates:void 0},Ka(this,RR).forEach((a)=>a()),Ka(this,RR).clear()}destroy(){this.cleanup(),this.listeners.clear()}};RR=new WeakMap;c3.configure=oa(c3);c3.defaults=qH;var _n=c3;function ebt(e){return"sensor"in e}function a3(e){e.preventDefault()}function tbt(){}var Pue=new WeakSet;function rbt(e){if(!e||Pue.has(e))return;e.addEventListener("touchmove",tbt,{capture:!1,passive:!1}),Pue.add(e)}var mL={modifiers:[],plugins:[L_t,tde,C_t,ys,Q_t],sensors:[_n,es]},tV=class extends $ce{constructor(e={}){let r=ds(e.plugins,mL.plugins),a=ds(e.sensors,mL.sensors),i=ds(e.modifiers,mL.modifiers);super(GH(eO({},e),{plugins:[K_t,DR,u3,...r],sensors:a,modifiers:i}))}},rde,ode,HH,C8,rV,oV,ML=class extends(HH=_u,ode=[Ro],rde=[Ro],HH){constructor(e,r){var a=e,{element:i,effects:s=()=>[],handle:l}=a,c=Due(a,["element","effects","handle"]);super(eO({effects:()=>[...s(),()=>{var d,h;let{manager:g}=this;if(!g)return;let v=((h=(d=this.sensors)==null?void 0:d.map(yR))!=null?h:[...g.sensors]).map((b)=>{let y=b instanceof oL?b:g.registry.register(b.plugin),k=b instanceof oL?void 0:b.options;return y.bind(this,k)});return function(){v.forEach((y)=>y())}}]},c),r);ei(this,rV,Pi(C8,8,this)),Pi(C8,11,this),ei(this,oV,Pi(C8,12,this)),Pi(C8,15,this),this.element=i,this.handle=l}};C8=ER(HH);rV=new WeakMap;oV=new WeakMap;Ic(C8,4,"handle",ode,ML,rV);Ic(C8,4,"element",rde,ML,oV);gL(C8,ML);var ade,nde,VH,I8,aV,EH,ide,fde,$D,nV,OR=class extends(VH=bu,nde=[Ro],ade=[Ro],VH){constructor(e,r){var a=e,{element:i,effects:s=()=>[]}=a,l=Due(a,["element","effects"]);let{collisionDetector:c=o3}=l,d=(g)=>{let{manager:x,element:v}=this;if(!v||g===null){this.shape=void 0;return}if(!x)return;let b=new Cc(v),y=vo(()=>this.shape);if(b&&(y==null?void 0:y.equals(b)))return y;return this.shape=b,b},h=pZ(!1);super(GH(eO({},l),{collisionDetector:c,effects:()=>[...s(),()=>{let{element:g,manager:x}=this;if(!x)return;let{dragOperation:v}=x,{source:b}=v;h.value=Boolean(b&&v.status.initialized&&g&&!this.disabled&&this.accepts(b))},()=>{let{element:g}=this;if(h.value&&g){let x=new gue(g,d);return()=>{x.disconnect(),this.shape=void 0}}},()=>{var g;if((g=this.manager)==null?void 0:g.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),r);ei(this,$D),ei(this,aV,Pi(I8,8,this)),Pi(I8,11,this),ei(this,nV,Pi(I8,12,this)),Pi(I8,15,this),this.element=i,this.refreshShape=()=>d()}set element(e){xs(this,$D,e,fde)}get element(){var e;return(e=this.proxy)!=null?e:Ka(this,$D,ide)}};I8=ER(VH);aV=new WeakMap;$D=new WeakSet;nV=new WeakMap;EH=Ic(I8,20,"#element",nde,$D,aV),ide=EH.get,fde=EH.set;Ic(I8,4,"proxy",ade,OR,nV);gL(I8,OR);S();function obt(e){return e!=null&&typeof e==="object"&&"current"in e}function zu(e){var r;if(e==null)return;if(obt(e))return(r=e.current)!=null?r:void 0;return e}var abt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fM=abt?$e:m;function sde(){let e=u(0)[1];return P(()=>{e((r)=>r+1)},[e])}function nbt(e,r=!1){let a=_(e.peek()),i=_(!1),s=sde();return fM(()=>Ii(()=>{let l=a.current,c=e.value;if(l!==c){if(a.current=c,!i.current)return;if(r)rn(s);else s()}}),[e,r,s]),{get value(){return i.current=!0,e.peek()}}}function d3(e,r=[],a=!1){let i=_(e);return i.current=e,nbt(D(()=>mR(()=>i.current()),r),a)}function NR(e,r){let a=_(new Map),i=sde();return fM(()=>{if(!e){a.current.clear();return}return Ii(()=>{var s;let l=!1,c=!1;for(let d of a.current){let[h]=d,g=vo(()=>d[1]),x=e[h];if(g!==x)l=!0,a.current.set(h,x),c=(s=r==null?void 0:r(h,g,x))!=null?s:!1}if(l)if(c)queueMicrotask(()=>rn(i));else i()})},[e]),D(()=>e?new Proxy(e,{get(s,l){let c=s[l];return a.current.set(l,c),c}}):e,[e])}function lde(e,r){e()}function xL(e){let r=_(e);return fM(()=>{r.current=e},[e]),r}function qo(e,r,a=m,i=Object.is){let s=_(e);a(()=>{let l=s.current;if(!i(e,l))s.current=e,r(e,l)},[r,e])}function P8(e,r){let a=_(zu(e));fM(()=>{let i=zu(e);if(i!==a.current)a.current=i,r(i)})}var{defineProperty:ibt,defineProperties:fbt,getOwnPropertyDescriptors:sbt,getOwnPropertySymbols:p3}=Object,ude=Object.prototype.hasOwnProperty,dde=Object.prototype.propertyIsEnumerable,cde=(e,r,a)=>(r in e)?ibt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,Zde=(e,r)=>{for(var a in r||(r={}))if(ude.call(r,a))cde(e,a,r[a]);if(p3){for(var a of p3(r))if(dde.call(r,a))cde(e,a,r[a])}return e},pde=(e,r)=>fbt(e,sbt(r)),lbt=(e,r)=>{var a={};for(var i in e)if(ude.call(e,i)&&r.indexOf(i)<0)a[i]=e[i];if(e!=null&&p3){for(var i of p3(e))if(r.indexOf(i)<0&&dde.call(e,i))a[i]=e[i]}return a},cbt=new tV,sV=lt(cbt),ubt=Un(F(({children:e},r)=>{let[a,i]=u(0),s=_(null),l=_(null),c=D(()=>({renderer:{get rendering(){var d;return(d=s.current)!=null?d:Promise.resolve()}},trackRendering(d){if(!s.current)s.current=new Promise((h)=>{l.current=h});UL(()=>{d(),i((h)=>h+1)})}}),[]);return fM(()=>{var d;(d=l.current)==null||d.call(l),s.current=null},[e,a]),Vr(r,()=>c),null})),iV=[void 0,cf];function Vn(e){var r=e,{children:a,onCollision:i,onBeforeDragStart:s,onDragStart:l,onDragMove:c,onDragOver:d,onDragEnd:h}=r,g=lbt(r,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);let x=_(null),{plugins:v,modifiers:b,sensors:y}=g,k=ds(v,mL.plugins),T=ds(y,mL.sensors),U=ds(b,mL.modifiers),N=xL(s),j=xL(l),G=xL(d),X=xL(c),J=xL(h),ee=xL(i),re=dbt(()=>{var oe;return(oe=g.manager)!=null?oe:new tV(g)});return m(()=>{if(!x.current)throw Error("Renderer not found");let{renderer:oe,trackRendering:fe}=x.current,{monitor:be}=re;re.renderer=oe;let We=[be.addEventListener("beforedragstart",(Ye)=>{let Se=N.current;if(Se)fe(()=>Se(Ye,re))}),be.addEventListener("dragstart",(Ye)=>{var Se;return(Se=j.current)==null?void 0:Se.call(j,Ye,re)}),be.addEventListener("dragover",(Ye)=>{let Se=G.current;if(Se)fe(()=>Se(Ye,re))}),be.addEventListener("dragmove",(Ye)=>{let Se=X.current;if(Se)fe(()=>Se(Ye,re))}),be.addEventListener("dragend",(Ye)=>{let Se=J.current;if(Se)fe(()=>Se(Ye,re))}),be.addEventListener("collision",(Ye)=>{var Se;return(Se=ee.current)==null?void 0:Se.call(ee,Ye,re)})];return()=>We.forEach((Ye)=>Ye())},[re]),qo(k,()=>re&&(re.plugins=k),...iV),qo(T,()=>re&&(re.sensors=T),...iV),qo(U,()=>re&&(re.modifiers=U),...iV),o(sV.Provider,{value:re,children:[t(ubt,{ref:x,children:a}),a]})}function dbt(e){let r=_(null);if(!r.current)r.current=e();return uN(()=>()=>{var a;return(a=r.current)==null?void 0:a.destroy()},[]),r.current}function lV(){return pt(sV)}function m3(e){var r;let a=(r=lV())!=null?r:void 0,[i]=u(()=>e(a));if(i.manager!==a)i.manager=a;return fM(i.register,[a,i]),i}function bs(e){let{disabled:r,data:a,element:i,handle:s,id:l,modifiers:c,sensors:d,plugins:h}=e,g=m3((v)=>new ML(pde(Zde({},e),{register:!1,handle:zu(s),element:zu(i)}),v)),x=NR(g,Zbt);return qo(l,()=>g.id=l),P8(s,(v)=>g.handle=v),P8(i,(v)=>g.element=v),qo(a,()=>a&&(g.data=a)),qo(r,()=>g.disabled=r===!0),qo(d,()=>g.sensors=d,void 0,cf),qo(c,()=>g.modifiers=c,void 0,cf),qo(h,()=>g.plugins=h,void 0,cf),qo(e.alignment,()=>g.alignment=e.alignment),{draggable:x,get isDragging(){return x.isDragging},get isDropping(){return x.isDropping},get isDragSource(){return x.isDragSource},handleRef:P((v)=>{g.handle=v!=null?v:void 0},[g]),ref:P((v)=>{var b,y;if(!v&&((b=g.element)==null?void 0:b.isConnected)&&!((y=g.manager)==null?void 0:y.dragOperation.status.idle))return;g.element=v!=null?v:void 0},[g])}}function Zbt(e,r,a){if(e==="isDragSource"&&!a&&r)return!0;return!1}function ru({children:e,className:r,dropAnimation:a,style:i,tag:s,disabled:l}){var c;let d=_(null),h=lV(),g=(c=d3(()=>h==null?void 0:h.dragOperation.source,[h]).value)!=null?c:null,x=typeof l==="function"?l(g):l;m(()=>{if(!d.current||!h||x)return;let y=h.plugins.find((k)=>k instanceof ys);if(!y)return;return y.overlay=d.current,()=>{y.overlay=void 0}},[h,x]),m(()=>{if(!h)return;let y=h.plugins.find((k)=>k instanceof ys);if(!y)return;return y.dropAnimation=a,()=>{y.dropAnimation=void 0}},[h,a]);let v=D(()=>{if(!h)return null;let y=new Proxy(h.registry,{get(k,T){if(T==="register"||T==="unregister")return pbt;return k[T]}});return new Proxy(h,{get(k,T){if(T==="registry")return y;return k[T]}})},[h]);return t(sV.Provider,{value:v,children:q(s||"div",{ref:d,className:r,style:i,"data-dnd-overlay":!0},b())});function b(){if(!g||x)return null;if(typeof e==="function")return t(mbt,{source:g,children:e});return e}}function pbt(){return()=>{}}function mbt({children:e,source:r}){return e(NR(r))}var{create:hbt,defineProperty:mde,getOwnPropertyDescriptor:gbt}=Object,hde=(e,r)=>(r=Symbol[e])?r:Symbol.for("Symbol."+e),h3=(e)=>{throw TypeError(e)},Mbt=(e,r,a)=>(r in e)?mde(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,xbt=(e)=>{var r;return[,,,hbt((r=e==null?void 0:e[hde("metadata")])!=null?r:null)]},gde=["class","method","getter","setter","accessor","field","value","get","set"],Mde=(e)=>e!==void 0&&typeof e!=="function"?h3("Function expected"):e,vbt=(e,r,a,i,s)=>({kind:gde[e],name:r,metadata:i,addInitializer:(l)=>a._?h3("Already initialized"):s.push(Mde(l||null))}),ybt=(e,r)=>Mbt(r,hde("metadata"),e[3]),_bt=(e,r,a,i)=>{for(var s=0,l=e[r>>1],c=l&&l.length;s<c;s++)l[s].call(a);return i},xde=(e,r,a,i,s,l)=>{var c,d,h,g,x=r&7,v=!1,b=!1,y=2,k=gde[x+5],T=e[y]||(e[y]=[]),U=(s=s.prototype,gbt(s,a));for(var N=i.length-1;N>=0;N--)h=vbt(x,a,d={},e[3],T),h.static=v,h.private=b,g=h.access={has:(j)=>(a in j)},g.get=(j)=>j[a],c=(0,i[N])(U[k],h),d._=1,Mde(c)&&(U[k]=c);return U&&mde(s,a,U),s},vde=(e,r,a)=>r.has(e)||h3("Cannot "+a),bbt=(e,r,a)=>(vde(e,r,"read from private field"),r.get(e)),wbt=(e,r,a)=>r.has(e)?h3("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,a),zbt=(e,r,a,i)=>(vde(e,r,"write to private field"),r.set(e,a),a),vL=class e{constructor(r,a){this.x=r,this.y=a}static delta(r,a){return new e(r.x-a.x,r.y-a.y)}static distance(r,a){return Math.hypot(r.x-a.x,r.y-a.y)}static equals(r,a){return r.x===a.x&&r.y===a.y}static from({x:r,y:a}){return new e(r,a)}},yde,_de,fV,Z3,nO,cV=class extends(fV=mZ,_de=[pn],yde=[pn],fV){constructor(e){let r=vL.from(e);super(r,(a,i)=>vL.equals(a,i));_bt(nO,5,this),wbt(this,Z3,0),this.velocity={x:0,y:0}}get delta(){return vL.delta(this.current,this.initial)}get direction(){let{current:e,previous:r}=this;if(!r)return null;let a={x:e.x-r.x,y:e.y-r.y};if(!a.x&&!a.y)return null;if(Math.abs(a.x)>Math.abs(a.y))return a.x>0?"right":"left";return a.y>0?"down":"up"}get current(){return super.current}set current(e){let{current:r}=this,a=vL.from(e),i={x:a.x-r.x,y:a.y-r.y},s=Date.now(),l=s-bbt(this,Z3),c=(d)=>Math.round(d/l*100);Qo(()=>{zbt(this,Z3,s),this.velocity={x:c(i.x),y:c(i.y)},super.current=a})}reset(e=this.defaultValue){super.reset(vL.from(e)),this.velocity={x:0,y:0}}};nO=xbt(fV);Z3=new WeakMap;xde(nO,2,"delta",_de,cV);xde(nO,2,"direction",yde,cV);ybt(nO,cV);var bde=((e)=>(e.Horizontal="x",e.Vertical="y",e))(bde||{});Object.values(bde);var Sbt=({dragOperation:e,droppable:r})=>{let a=e.position.current;if(!a)return null;let{id:i}=r;if(!r.shape)return null;if(r.shape.containsPoint(a)){let s=vL.distance(r.shape.center,a);return{id:i,value:1/s,type:gZ.PointerIntersection,priority:hZ.High}}return null},Lbt=({dragOperation:e,droppable:r})=>{let{shape:a}=e;if(!r.shape||!(a==null?void 0:a.current))return null;let i=a.current.intersectionArea(r.shape);if(i){let{position:s}=e,l=vL.distance(r.shape.center,s.current),d=i/(a.current.area+r.shape.area-i)/l;return{id:r.id,value:d,type:gZ.ShapeIntersection,priority:hZ.Normal}}return null},kbt=(e)=>{var r;return(r=Sbt(e))!=null?r:Lbt(e)};function Or(e){let{collisionDetector:r,data:a,disabled:i,element:s,id:l,accept:c,type:d}=e,h=m3((x)=>new OR(pde(Zde({},e),{register:!1,element:zu(s)}),x)),g=NR(h);return qo(l,()=>h.id=l),P8(s,(x)=>h.element=x),qo(c,()=>h.accept=c,void 0,cf),qo(r,()=>h.collisionDetector=r!=null?r:kbt),qo(a,()=>a&&(h.data=a)),qo(i,()=>h.disabled=i===!0),qo(d,()=>h.type=d),{droppable:g,get isDropTarget(){return g.isDropTarget},ref:P((x)=>{var v,b;if(!x&&((v=h.element)==null?void 0:v.isConnected)&&!((b=h.manager)==null?void 0:b.dragOperation.status.idle))return;h.element=x!=null?x:void 0},[h])}}function Qd(){let e=lV(),r=d3(()=>e==null?void 0:e.dragOperation.source,[e]),a=d3(()=>e==null?void 0:e.dragOperation.target,[e]);return{get source(){return r.value},get target(){return a.value}}}S();S();S();S();var uV=new Map,g3=new WeakMap,wde=0,Cbt;function Ibt(e){if(!e)return"0";if(g3.has(e))return g3.get(e);return wde+=1,g3.set(e,wde.toString()),g3.get(e)}function Rbt(e){return Object.keys(e).sort().filter((r)=>e[r]!==void 0).map((r)=>`${r}_${r==="root"?Ibt(e.root):e[r]}`).toString()}function Pbt(e){let r=Rbt(e),a=uV.get(r);if(!a){let i=new Map,s,l=new IntersectionObserver((c)=>{c.forEach((d)=>{var h;let g=d.isIntersecting&&s.some((x)=>d.intersectionRatio>=x);if(e.trackVisibility&&typeof d.isVisible>"u")d.isVisible=g;[...(h=i.get(d.target))!=null?h:[]].forEach((x)=>{x(g,d)})})},e);s=l.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),a={id:r,observer:l,elements:i},uV.set(r,a)}return a}function Tbt(e,r,a={},i=Cbt){if(typeof window.IntersectionObserver>"u"&&i!==void 0){let g=e.getBoundingClientRect();return r(i,{isIntersecting:i,target:e,intersectionRatio:typeof a.threshold==="number"?a.threshold:0,time:0,boundingClientRect:g,intersectionRect:g,rootBounds:g}),()=>{}}let{id:s,observer:l,elements:c}=Pbt(a),d=c.get(e)||[];if(!c.has(e))c.set(e,d);d.push(r),l.observe(e);let h=!1;return function(){if(h)return;if(h=!0,d.splice(d.indexOf(r),1),d.length===0)c.delete(e),l.unobserve(e);if(c.size===0)l.disconnect(),uV.delete(s)}}var dV=Reflect.get(Q,"useInsertionEffect"),Abt=dV!=null?dV:m;function Ebt(e){return(e==null?void 0:e.startsWith("19."))||!1}var zde=Ebt(Zs);function Dbt(e,{threshold:r,root:a,rootMargin:i,scrollMargin:s,trackVisibility:l,delay:c,fallbackInView:d,skip:h,triggerOnce:g}){let x=_(e),v=_({node:null,stop:void 0,owner:null});if(!dV)x.current=e;return Abt(()=>{x.current=e},[e]),P(function b(y){let k=v.current;if(!y&&k.owner!==b)return;if(y===k.node)return k.owner=b,zde?k.stop:void 0;let T=k.stop;if(k.stop=void 0,T==null||T(),!y||h){k.node=null,k.owner=y?b:null;return}k.node=y,k.owner=b;let U,N;function j(){if(U==null||U(),k.stop===j)k.node=null,k.stop=void 0}if(k.stop=j,U=Tbt(y,(G,X)=>{if(x.current(G,X,N),N=G,g&&G)j()},{threshold:r,root:a,rootMargin:i,scrollMargin:s,trackVisibility:l,delay:c},d),k.stop!==j)U();return zde?k.stop:void 0},[Array.isArray(r)?r.toString():r,a,i,s,l,c,d,h,g])}var Obt=typeof window>"u"?m:$e;function Nt({threshold:e,delay:r,trackVisibility:a,rootMargin:i,scrollMargin:s,root:l,triggerOnce:c,skip:d,initialInView:h,fallbackInView:g,onChange:x}={}){let v=_(h),[b,y]=u({inView:!!h,entry:void 0}),k=Dbt((j,G)=>{let X=v.current;if(v.current=j,X===void 0&&!j)return;y({inView:j,entry:G}),x==null||x(j,G)},{threshold:e,root:l,rootMargin:i,scrollMargin:s,trackVisibility:a,delay:r,fallbackInView:g,skip:d,triggerOnce:c}),T=_({node:null,reset:!1}),U=P(function(G){if(G)T.current.node=G,T.current.reset=!1;else if(T.current.node)T.current.node=null,T.current.reset=!0;let X=k(G);if(!X)return;return()=>{if(X(),T.current.node===G)T.current.node=null,T.current.reset=!0}},[k]);Obt(()=>{if(!T.current.reset)return;if(T.current.reset=!1,c||d)return;y({inView:!!h,entry:void 0}),v.current=h});let N=[U,b.inView,b.entry];return N.ref=N[0],N.inView=N[1],N.entry=N[2],N}S();function Nbt(e){if(!e||typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}var Fbt=(e)=>{switch(e){case"success":return Ubt;case"info":return qbt;case"warning":return Ybt;case"error":return Hbt;default:return null}},jbt=Array(12).fill(0),Bbt=({visible:e,className:r})=>q("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":e},q("div",{className:"sonner-spinner"},jbt.map((a,i)=>q("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),Ubt=q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},q("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"})),Ybt=q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},q("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"})),qbt=q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},q("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"})),Hbt=q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},q("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"})),Vbt=q("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","aria-hidden":"true"},q("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),q("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Wbt=()=>{let[e,r]=u(document.hidden);return m(()=>{let a=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",a),()=>document.removeEventListener("visibilitychange",a)},[]),e},Gbt=1,Kbt=100,Sde=(e)=>{var r;return typeof(e==null?void 0:e.id)==="number"||(e==null?void 0:(r=e.id)==null?void 0:r.length)>0?e.id:Gbt++};class Cde{constructor(){this.subscribe=(e)=>(this.subscribers.push(e),this.getActiveToasts().forEach((r)=>e(r)),()=>{let r=this.subscribers.indexOf(e);this.subscribers.splice(r,1)}),this.publish=(e)=>{this.subscribers.forEach((r)=>r(e))},this.addToast=(e)=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-Kbt;if(e<=0)return;this.toasts=this.toasts.filter((r)=>{if(e>0&&this.dismissedToasts.has(r.id))return this.dismissedToasts.delete(r.id),e--,!1;return!0})},this.create=(e)=>{let{message:r,...a}=e,i=Sde(e),s=this.pendingDismissals.get(i);if(s!==void 0)cancelAnimationFrame(s),this.pendingDismissals.delete(i),this.dismissedToasts.delete(i);let l=this.dismissedToasts.has(i),c=e.dismissible===void 0?!0:e.dismissible;if(l)this.dismissedToasts.delete(i),this.toasts=this.toasts.filter((h)=>h.id!==i);if(l?void 0:this.toasts.find((h)=>h.id===i))this.toasts=this.toasts.map((h)=>{if(h.id===i)return this.publish({...h,...e,id:i,title:r}),{...h,...e,id:i,dismissible:c,title:r};return h});else this.addToast({title:r,...a,dismissible:c,id:i});return i},this.dismiss=(e)=>{if(e===void 0||e===null)return this.getActiveToasts().forEach((a)=>{this.dismissedToasts.add(a.id),this.subscribers.forEach((i)=>i({id:a.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let r=this.pendingDismissals.get(e);if(r!==void 0)cancelAnimationFrame(r);return this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach((a)=>a({id:e,dismiss:!0}))})),e},this.message=(e,r)=>this.create({...r,message:e,type:void 0}),this.error=(e,r)=>this.create({...r,message:e,type:"error"}),this.success=(e,r)=>this.create({...r,type:"success",message:e}),this.info=(e,r)=>this.create({...r,type:"info",message:e}),this.warning=(e,r)=>this.create({...r,type:"warning",message:e}),this.loading=(e,r)=>this.create({...r,type:"loading",message:e}),this.promise=(e,r)=>{if(!r)return;let a=void 0;if(r.loading!==void 0)a=this.create({...r,promise:e,type:"loading",message:r.loading,description:typeof r.description!=="function"?r.description:void 0});let i=Promise.resolve(e instanceof Function?e():e),s=a!==void 0,l,c=i.then(async(h)=>{if(l=["resolve",h],as(h))s=!1,this.create({id:a,type:"default",message:h});else if(Qbt(h)&&!h.ok){s=!1;let x=typeof r.error==="function"?await r.error(`HTTP error! status: ${h.status}`):r.error,v=typeof r.description==="function"?await r.description(`HTTP error! status: ${h.status}`):r.description,y=typeof x==="object"&&!as(x)?x:{message:x};this.create({id:a,type:"error",description:v,...y})}else if(h instanceof Error){s=!1;let x=typeof r.error==="function"?await r.error(h):r.error,v=typeof r.description==="function"?await r.description(h):r.description,y=typeof x==="object"&&!as(x)?x:{message:x};this.create({id:a,type:"error",description:v,...y})}else if(r.success!==void 0){s=!1;let x=typeof r.success==="function"?await r.success(h):r.success,v=typeof r.description==="function"?await r.description(h):r.description,y=typeof x==="object"&&!as(x)?x:{message:x};this.create({id:a,type:"success",description:v,...y})}}).catch(async(h)=>{if(l=["reject",h],r.error!==void 0){s=!1;let g=typeof r.error==="function"?await r.error(h):r.error,x=typeof r.description==="function"?await r.description(h):r.description,b=typeof g==="object"&&!as(g)?g:{message:g};this.create({id:a,type:"error",description:x,...b})}}).finally(()=>{if(s)this.dismiss(a),a=void 0;r.finally==null||r.finally.call(r)}),d=()=>new Promise((h,g)=>c.then(()=>l[0]==="reject"?g(l[1]):h(l[1])).catch(g));if(typeof a!=="string"&&typeof a!=="number")return{unwrap:d};else return Object.assign(a,{unwrap:d})},this.custom=(e,r)=>{let a=Sde(r);return this.create({...r,jsx:e(a),id:a,type:void 0}),a},this.getActiveToasts=()=>this.toasts.filter((e)=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}}var ol=new Cde,Xbt=(e,r)=>ol.message(e,r),Qbt=(e)=>e&&typeof e==="object"&&("ok"in e)&&typeof e.ok==="boolean"&&("status"in e)&&typeof e.status==="number",Jbt=Xbt,$bt=()=>ol.toasts,ewt=()=>ol.getActiveToasts(),M=Object.assign(Jbt,{success:ol.success,info:ol.info,warning:ol.warning,error:ol.error,custom:ol.custom,message:ol.message,promise:ol.promise,dismiss:ol.dismiss,loading:ol.loading},{getHistory:$bt,getToasts:ewt});Nbt("[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;flex:1;min-width:0}[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(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);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]{-webkit-user-select:none;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 M3(e){return e.label!==void 0}var twt=3,rwt="24px",owt="16px",Lde=4000,awt=356,nwt=14,iwt=45,fwt=200;function xZ(...e){return e.filter(Boolean).join(" ")}function swt(e){let[r,a]=e.split("-"),i=[];if(r)i.push(r);if(a)i.push(a);return i}var lwt=(e)=>{var r,a,i,s,l,c,d,h,g;let{invert:x,toast:v,unstyled:b,interacting:y,setHeights:k,visibleToasts:T,heights:U,index:N,toasts:j,expanded:G,removeToast:X,defaultRichColors:J,closeButton:ee,style:re,cancelButtonStyle:oe,actionButtonStyle:fe,className:be="",descriptionClassName:We="",duration:Ye,position:Se,gap:He,expandByDefault:ft,classNames:Je,icons:xt,closeButtonAriaLabel:Ft="Close toast"}=e,[Bt,ie]=u(null),[bt,Wt]=u(null),[Fe,nr]=u(!1),[fr,Jt]=u(!1),[Fr,Gt]=u(!1),[Xt,Ir]=u(!1),[yr,Tr]=u(!1),[pr,po]=u(0),[lo,xa]=u(0),sr=_(v.duration||Ye||Lde),mo=_(null),uo=_(null),No=N===0,hn=N+1<=T,Vo=v.type,Wn=Vo!=null?Vo:"default",xn=v.dismissible!==!1,Gi=v.className||"",Ge=v.descriptionClassName||"",Rt=D(()=>U.findIndex((tr)=>tr.toastId===v.id)||0,[U,v.id]),hr=D(()=>{var tr;return(tr=v.closeButton)!=null?tr:ee},[v.closeButton,ee]),Ur=D(()=>v.duration||Ye||Lde,[v.duration,Ye]),$r=_(0),Wo=_(0),Va=_(0),Ee=_(null),[Oe,je]=Se.split("-"),Zt=D(()=>U.reduce((tr,Go,va)=>{if(va>=Rt)return tr;return tr+Go.height},0),[U,Rt]),St=Wbt(),jt=D(()=>{var tr;return(tr=e.swipeDirections)!=null?tr:swt(Se)},[e.swipeDirections,Se]),or=v.invert||x,Dt=Vo==="loading";Wo.current=D(()=>Rt*He+Zt,[Rt,Zt]),m(()=>{sr.current=Ur},[Ur]),m(()=>{nr(!0)},[]),m(()=>{let tr=uo.current;if(tr){let Go=tr.getBoundingClientRect().height;return xa(Go),k((va)=>[{toastId:v.id,height:Go,position:v.position},...va]),()=>k((va)=>va.filter((ni)=>ni.toastId!==v.id))}},[k,v.id]),$e(()=>{if(!Fe)return;let tr=uo.current,Go=tr.style.height;tr.style.height="auto";let va=tr.getBoundingClientRect().height;tr.style.height=Go,xa(va),k((ni)=>{if(!ni.find((Aa)=>Aa.toastId===v.id))return[{toastId:v.id,height:va,position:v.position},...ni];else return ni.map((Aa)=>Aa.toastId===v.id?{...Aa,height:va}:Aa)})},[Fe,v.title,v.description,k,v.id,v.jsx,v.action,v.cancel]);let zt=P(()=>{Jt(!0),po(Wo.current),k((tr)=>tr.filter((Go)=>Go.toastId!==v.id)),setTimeout(()=>{X(v)},fwt)},[v,X,k,Wo]);m(()=>{if(v.promise&&Vo==="loading"||v.duration===1/0||v.type==="loading")return;let tr,Go=()=>{if(Va.current<$r.current){let ni=new Date().getTime()-$r.current;sr.current=sr.current-ni}Va.current=new Date().getTime()},va=()=>{if(sr.current===1/0)return;$r.current=new Date().getTime(),tr=setTimeout(()=>{v.onAutoClose==null||v.onAutoClose.call(v,v),zt()},sr.current)};if(G||y||St)Go();else va();return()=>clearTimeout(tr)},[G,y,v,Vo,St,zt]),m(()=>{if(v.delete)zt(),v.onDismiss==null||v.onDismiss.call(v,v)},[zt,v.delete]);function qt(){var tr;if(xt==null?void 0:xt.loading){var Go;return q("div",{className:xZ(Je==null?void 0:Je.loader,v==null?void 0:(Go=v.classNames)==null?void 0:Go.loader,"sonner-loader"),"data-visible":Vo==="loading"},xt.loading)}return q(Bbt,{className:xZ(Je==null?void 0:Je.loader,v==null?void 0:(tr=v.classNames)==null?void 0:tr.loader),visible:Vo==="loading"})}let Nr=v.icon||(xt==null?void 0:xt[Vo])||Fbt(Vo);var Br,ua;return q("li",{tabIndex:0,ref:uo,className:xZ(be,Gi,Je==null?void 0:Je.toast,v==null?void 0:(r=v.classNames)==null?void 0:r.toast,Je==null?void 0:Je[Wn],v==null?void 0:(a=v.classNames)==null?void 0:a[Wn]),"data-sonner-toast":"","data-rich-colors":(Br=v.richColors)!=null?Br:J,"data-styled":!Boolean(v.jsx||v.unstyled||b),"data-mounted":Fe,"data-promise":Boolean(v.promise),"data-swiped":yr,"data-removed":fr,"data-visible":hn,"data-y-position":Oe,"data-x-position":je,"data-index":N,"data-front":No,"data-swiping":Fr,"data-dismissible":xn,"data-type":Vo,"data-invert":or,"data-swipe-out":Xt,"data-swipe-direction":bt,"data-expanded":Boolean(G||ft&&Fe),"data-testid":v.testId,style:{"--index":N,"--toasts-before":N,"--z-index":j.length-N,"--offset":`${fr?pr:Wo.current}px`,"--initial-height":ft?"auto":`${lo}px`,...re,...v.style},onDragEnd:()=>{Gt(!1),ie(null),Ee.current=null},onPointerDown:(tr)=>{if(tr.button===2)return;if(Dt||!xn)return;if(mo.current=new Date,po(Wo.current),tr.target.setPointerCapture(tr.pointerId),tr.target.tagName==="BUTTON")return;Gt(!0),Ee.current={x:tr.clientX,y:tr.clientY}},onPointerUp:()=>{var tr,Go,va;if(Xt||!xn)return;Ee.current=null;let ni=Number(((tr=uo.current)==null?void 0:tr.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),vf=Number(((Go=uo.current)==null?void 0:Go.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Aa=new Date().getTime()-((va=mo.current)==null?void 0:va.getTime()),os=Bt==="x"?ni:vf,yf=Math.abs(os)/Aa;if((Bt==="x"?jt.includes(ni>0?"right":"left"):jt.includes(vf>0?"bottom":"top"))&&(Math.abs(os)>=iwt||yf>0.11)){if(po(Wo.current),v.onDismiss==null||v.onDismiss.call(v,v),Bt==="x")Wt(ni>0?"right":"left");else Wt(vf>0?"down":"up");zt(),Ir(!0);return}else{var Du,xB;(Du=uo.current)==null||Du.style.setProperty("--swipe-amount-x","0px"),(xB=uo.current)==null||xB.style.setProperty("--swipe-amount-y","0px")}Tr(!1),Gt(!1),ie(null)},onPointerMove:(tr)=>{var Go,va,ni;if(!Ee.current||!xn)return;if(((Go=window.getSelection())==null?void 0:Go.toString().length)>0)return;let Aa=tr.clientY-Ee.current.y,os=tr.clientX-Ee.current.x;if(!Bt&&(Math.abs(os)>1||Math.abs(Aa)>1))ie(Math.abs(os)>Math.abs(Aa)?"x":"y");let yf={x:0,y:0},MB=(Du)=>1/(1.5+Math.abs(Du)/20);if(Bt==="y"){if(jt.includes("top")||jt.includes("bottom"))if(jt.includes("top")&&Aa<0||jt.includes("bottom")&&Aa>0)yf.y=Aa;else{let Du=Aa*MB(Aa);yf.y=Math.abs(Du)<Math.abs(Aa)?Du:Aa}}else if(Bt==="x"){if(jt.includes("left")||jt.includes("right"))if(jt.includes("left")&&os<0||jt.includes("right")&&os>0)yf.x=os;else{let Du=os*MB(os);yf.x=Math.abs(Du)<Math.abs(os)?Du:os}}if(Math.abs(yf.x)>0||Math.abs(yf.y)>0)Tr(!0);(va=uo.current)==null||va.style.setProperty("--swipe-amount-x",`${yf.x}px`),(ni=uo.current)==null||ni.style.setProperty("--swipe-amount-y",`${yf.y}px`)}},hr&&!v.jsx&&Vo!=="loading"?q("button",{"aria-label":Ft,"data-disabled":Dt,"data-close-button":!0,onClick:Dt||!xn?()=>{}:()=>{zt(),v.onDismiss==null||v.onDismiss.call(v,v)},className:xZ(Je==null?void 0:Je.closeButton,v==null?void 0:(i=v.classNames)==null?void 0:i.closeButton)},(ua=xt==null?void 0:xt.close)!=null?ua:Vbt):null,(Vo||v.icon||v.promise)&&v.icon!==null&&((xt==null?void 0:xt[Vo])!==null||v.icon)?q("div",{"data-icon":"",className:xZ(Je==null?void 0:Je.icon,v==null?void 0:(s=v.classNames)==null?void 0:s.icon)},Vo==="loading"?v.icon||qt():v.promise?qt():null,Vo!=="loading"?Nr:null):null,q("div",{"data-content":"",className:xZ(Je==null?void 0:Je.content,v==null?void 0:(l=v.classNames)==null?void 0:l.content)},q("div",{"data-title":"",className:xZ(Je==null?void 0:Je.title,v==null?void 0:(c=v.classNames)==null?void 0:c.title)},v.jsx?v.jsx:typeof v.title==="function"?v.title():v.title),v.description?q("div",{"data-description":"",className:xZ(We,Ge,Je==null?void 0:Je.description,v==null?void 0:(d=v.classNames)==null?void 0:d.description)},typeof v.description==="function"?v.description():v.description):null),as(v.cancel)?v.cancel:v.cancel&&M3(v.cancel)?q("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||oe,onClick:(tr)=>{if(!M3(v.cancel))return;if(!xn)return;v.cancel.onClick==null||v.cancel.onClick.call(v.cancel,tr),zt()},className:xZ(Je==null?void 0:Je.cancelButton,v==null?void 0:(h=v.classNames)==null?void 0:h.cancelButton)},v.cancel.label):null,as(v.action)?v.action:v.action&&M3(v.action)?q("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||fe,onClick:(tr)=>{if(!M3(v.action))return;if(v.action.onClick==null||v.action.onClick.call(v.action,tr),tr.defaultPrevented)return;zt()},className:xZ(Je==null?void 0:Je.actionButton,v==null?void 0:(g=v.classNames)==null?void 0:g.actionButton)},v.action.label):null)};function kde(){if(typeof window>"u")return"ltr";if(typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");if(e==="auto"||!e)return window.getComputedStyle(document.documentElement).direction;return e}function cwt(e,r){let a={};return[e,r].forEach((i,s)=>{let l=s===1,c=l?"--mobile-offset":"--offset",d=l?owt:rwt;function h(g){["top","right","bottom","left"].forEach((x)=>{a[`${c}-${x}`]=typeof g==="number"?`${g}px`:g})}if(typeof i==="number"||typeof i==="string")h(i);else if(typeof i==="object")["top","right","bottom","left"].forEach((g)=>{if(i[g]===void 0)a[`${c}-${g}`]=d;else a[`${c}-${g}`]=typeof i[g]==="number"?`${i[g]}px`:i[g]});else h(d)}),a}var Ide=F(function(r,a){let{id:i,invert:s,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:d,closeButton:h,className:g,offset:x,mobileOffset:v,theme:b="light",richColors:y,duration:k,style:T,visibleToasts:U=twt,toastOptions:N,dir:j=kde(),gap:G=nwt,icons:X,customAriaLabel:J,containerAriaLabel:ee="Notifications"}=r,[re,oe]=u([]),fe=D(()=>{if(i)return re.filter((nr)=>nr.toasterId===i);return re.filter((nr)=>!nr.toasterId)},[re,i]),be=D(()=>Array.from(new Set([l].concat(fe.filter((nr)=>nr.position).map((nr)=>nr.position)))),[fe,l]),[We,Ye]=u([]),[Se,He]=u(!1),[ft,Je]=u(!1),[xt,Ft]=u(b!=="system"?b:typeof window<"u"?window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":"light"),Bt=_(null),ie=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),bt=_(null),Wt=_(!1),Fe=P((nr)=>{oe((fr)=>{var Jt;if(!((Jt=fr.find((Fr)=>Fr.id===nr.id))==null?void 0:Jt.delete))ol.dismiss(nr.id);return fr.filter(({id:Fr})=>Fr!==nr.id)})},[]);return m(()=>ol.subscribe((nr)=>{if(nr.dismiss){requestAnimationFrame(()=>{oe((fr)=>fr.map((Jt)=>Jt.id===nr.id?{...Jt,delete:!0}:Jt))});return}setTimeout(()=>{rn(()=>{oe((fr)=>{let Jt=fr.findIndex((Fr)=>Fr.id===nr.id);if(Jt!==-1)return[...fr.slice(0,Jt),{...fr[Jt],...nr},...fr.slice(Jt+1)];return[nr,...fr]})})})}),[]),m(()=>{if(b!=="system"){Ft(b);return}if(b==="system")if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)Ft("dark");else Ft("light");if(typeof window>"u")return;let nr=window.matchMedia("(prefers-color-scheme: dark)");try{nr.addEventListener("change",({matches:fr})=>{if(fr)Ft("dark");else Ft("light")})}catch(fr){nr.addListener(({matches:Jt})=>{try{if(Jt)Ft("dark");else Ft("light")}catch(Fr){console.error(Fr)}})}},[b]),m(()=>{if(re.length<=1)He(!1)},[re]),m(()=>{let nr=(fr)=>{var Jt;if(c.length>0&&c.every((Xt)=>fr[Xt]||fr.code===Xt)){var Gt;He(!0),(Gt=Bt.current)==null||Gt.focus()}if(fr.code==="Escape"&&(document.activeElement===Bt.current||((Jt=Bt.current)==null?void 0:Jt.contains(document.activeElement))))He(!1)};return document.addEventListener("keydown",nr),()=>document.removeEventListener("keydown",nr)},[c]),m(()=>{if(Bt.current)return()=>{if(bt.current)bt.current.focus({preventScroll:!0}),bt.current=null,Wt.current=!1}},[Bt.current]),q("section",{ref:a,"aria-label":J!=null?J:`${ee} ${ie}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},be.map((nr,fr)=>{var Jt;let[Fr,Gt]=nr.split("-");if(!fe.length)return null;return q("ol",{key:nr,dir:j==="auto"?kde():j,tabIndex:-1,ref:Bt,className:g,"data-sonner-toaster":!0,"data-sonner-theme":xt,"data-y-position":Fr,"data-x-position":Gt,style:{"--front-toast-height":`${((Jt=We[0])==null?void 0:Jt.height)||0}px`,"--width":`${awt}px`,"--gap":`${G}px`,...T,...cwt(x,v)},onBlur:(Xt)=>{if(Wt.current&&!Xt.currentTarget.contains(Xt.relatedTarget)){if(Wt.current=!1,bt.current)bt.current.focus({preventScroll:!0}),bt.current=null}},onFocus:(Xt)=>{if(Xt.target instanceof HTMLElement&&Xt.target.dataset.dismissible==="false")return;if(!Wt.current)Wt.current=!0,bt.current=Xt.relatedTarget},onMouseEnter:()=>He(!0),onMouseMove:()=>He(!0),onMouseLeave:()=>{if(!ft)He(!1)},onDragEnd:()=>He(!1),onPointerDown:(Xt)=>{if(Xt.target instanceof HTMLElement&&Xt.target.dataset.dismissible==="false")return;Je(!0)},onPointerUp:()=>Je(!1)},fe.filter((Xt)=>!Xt.position&&fr===0||Xt.position===nr).map((Xt,Ir)=>{var yr,Tr;return q(lwt,{key:Xt.id,icons:X,index:Ir,toast:Xt,defaultRichColors:y,duration:(yr=N==null?void 0:N.duration)!=null?yr:k,className:N==null?void 0:N.className,descriptionClassName:N==null?void 0:N.descriptionClassName,invert:s,visibleToasts:U,closeButton:(Tr=N==null?void 0:N.closeButton)!=null?Tr:h,interacting:ft,position:nr,style:N==null?void 0:N.style,unstyled:N==null?void 0:N.unstyled,classNames:N==null?void 0:N.classNames,cancelButtonStyle:N==null?void 0:N.cancelButtonStyle,actionButtonStyle:N==null?void 0:N.actionButtonStyle,closeButtonAriaLabel:N==null?void 0:N.closeButtonAriaLabel,removeToast:Fe,toasts:fe.filter((pr)=>pr.position==Xt.position),heights:We.filter((pr)=>pr.position==Xt.position),setHeights:Ye,expandByDefault:d,gap:G,expanded:Se,swipeDirections:r.swipeDirections})}))}))});function vr({teamId:e,projectId:r,projectName:a,rootFolderId:i,dragState:s,onSelect:l,selectedFolderId:c,hideCollections:d,hideShares:h,hideRecentlyDeleted:g,hideRecents:x,ancestorFolders:v}){let b=Re(),y=V(),{canEdit:k}=Ot(r),T=Mi({from:"/projects/$projectId/recently-deleted",shouldThrow:!1}),U=Mi({from:"/projects/$projectId/recents",shouldThrow:!1}),[N,j]=u(!0),[G,X]=u(!0),[J,ee]=u(!0),{data:re,fetchNextPage:oe,hasNextPage:fe,isFetchingNextPage:be}=mt({queryKey:["shares",r],queryFn:async({pageParam:Oe})=>{let je=await A.api.projects[":projectId"].shares.$get({param:{projectId:r},query:{first:"20",after:Oe}});if(!je.ok)throw Error(u7e());return await je.json()},initialPageParam:"",getNextPageParam:(Oe)=>Oe.pageInfo?.cursor||void 0,enabled:!!r}),{data:We,fetchNextPage:Ye,hasNextPage:Se,isFetchingNextPage:He}=mt({queryKey:["collections",r],queryFn:async({pageParam:Oe})=>{let je=await A.api.projects[":projectId"].collections.$get({param:{projectId:r},query:{first:"20",after:Oe}});if(!je.ok)throw Error(e7e());return await je.json()},initialPageParam:"",getNextPageParam:(Oe)=>Oe.pageInfo?.cursor||void 0,enabled:!!r}),{ref:ft,inView:Je}=Nt(),{ref:xt,inView:Ft}=Nt();m(()=>{if(Je&&Se&&!He)Ye()},[Je,Se,He,Ye]),m(()=>{if(Ft&&fe&&!be)oe()},[Ft,fe,be,oe]);let Bt=D(()=>We?.pages.flatMap((Oe)=>Oe.data)||[],[We]),ie=D(()=>re?.pages.flatMap((Oe)=>Oe.data)||[],[re]),{mutate:bt}=B({mutationFn:async()=>{let Oe=await A.api.projects[":projectId"].collections.$post({param:{projectId:r},json:{name:EA(),filter:{sourceFolderId:i,searchFilter:{conditions:[],recursively:!0}}}});if(!Oe.ok)throw Error(TYe());return await Oe.json()},onSuccess:(Oe)=>{y.invalidateQueries({queryKey:["collections",r]}),M.success(eFe()),b({to:"/projects/$projectId/collections/$collectionId",params:{projectId:r,collectionId:Oe.id}})},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}}),{mutate:Wt}=B({mutationFn:async()=>{let Oe=await A.api.projects[":projectId"].shares.$post({param:{projectId:r},json:{name:new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}});if(!Oe.ok)throw Error(jYe());return await Oe.json()},onSuccess:(Oe)=>{y.invalidateQueries({queryKey:["shares",r]}),M.success(vZt()),b({to:"/projects/$projectId/shares/$shareId",params:{projectId:r,shareId:Oe.id}})},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}}),Fe=ul({from:"/projects/$projectId/collections/$collectionId",shouldThrow:!1}),nr=ul({from:"/projects/$projectId/shares/$shareId",shouldThrow:!1}),fr=ul({from:"/projects/$projectId/folders/$folderId",shouldThrow:!1}),[Jt,Fr]=u(null),[Gt,Xt]=u("collection"),[Ir,yr]=u(""),[Tr,pr]=u(!1),[po,lo]=u(null),[xa,sr]=u("collection"),[mo,uo]=u(!1),{mutate:No}=B({mutationFn:async({id:Oe,name:je})=>{let Zt=await A.api.folders[":folderId"].$put({param:{folderId:Oe},json:{name:je}});if(!Zt.ok)throw Error(b7e());return await Zt.json()},onSuccess:()=>{y.invalidateQueries({queryKey:["search",e]}),y.invalidateQueries({queryKey:["folders"]}),M.success(MHe()),pr(!1)},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}}),{mutate:hn}=B({mutationFn:async(Oe)=>{if(!(await A.api.folders.$delete({json:{ids:[Oe]}})).ok)throw Error(GYe());return Oe},onSuccess:(Oe)=>{if(y.invalidateQueries({queryKey:["search",e]}),y.invalidateQueries({queryKey:["folders"]}),M.success(uHe()),uo(!1),fr?.folderId===Oe)b({to:"/projects/$projectId",params:{projectId:r}})},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}}),[Vo,Wn]=u(!1),[xn,Gi]=u(!1),[Ge,Rt]=u([]),hr=async(Oe)=>{Wn(!0),Gi(!0),Rt([]);try{let je=await A.api.files["download-links"].$post({json:{ids:[Oe]}});if(!je.ok)throw Error(vle());let Zt=await je.json();Rt(Zt.files)}catch(je){M.error(vle()),Wn(!1),console.error(je)}finally{Gi(!1)}},Ur=()=>{let Oe=[...Ge];if(Wn(!1),Oe.length===0)return;M.info(vmt({count:Oe.length}),{duration:5000});let je=(St)=>new Promise((jt)=>setTimeout(jt,St));(async()=>{for(let jt=0;jt<Oe.length;jt+=5){let or=Oe.slice(jt,jt+5);for(let Dt of or){let zt=document.createElement("a");zt.href=Dt.url,zt.download=Dt.name,zt.target="_blank",document.body.appendChild(zt),zt.click(),zt.remove()}await je(1000)}})().catch((St)=>{console.error("Background downloads failed:",St),M.error(Tpt())})},{mutate:$r}=B({mutationFn:async({id:Oe,name:je})=>{let Zt=await A.api.collections[":collectionId"].$patch({param:{collectionId:Oe},json:{name:je}});if(!Zt.ok)throw Error(v7e());return await Zt.json()},onSuccess:()=>{y.invalidateQueries({queryKey:["collections",r]}),M.success(sFe()),pr(!1)},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}}),{mutate:Wo}=B({mutationFn:async(Oe)=>{let je=await A.api.collections[":collectionId"].$delete({param:{collectionId:Oe}});if(!je.ok)throw Error(YYe());return await je.json()},onSuccess:(Oe,je)=>{if(y.invalidateQueries({queryKey:["collections",r]}),M.success(oFe()),uo(!1),Fe?.collectionId===je)b({to:"/projects/$projectId",params:{projectId:r}})},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}}),{mutate:Va}=B({mutationFn:async({id:Oe,name:je})=>{let Zt=await A.api.shares[":shareId"].$put({param:{shareId:Oe},json:{name:je}});if(!Zt.ok)throw Error(S7e());return await Zt.json()},onSuccess:()=>{y.invalidateQueries({queryKey:["shares",r]}),M.success(SZt()),pr(!1)},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}}),{mutate:Ee}=B({mutationFn:async(Oe)=>{if(!(await A.api.shares[":shareId"].$delete({param:{shareId:Oe}})).ok)throw Error(QYe());return Oe},onSuccess:(Oe)=>{if(y.invalidateQueries({queryKey:["shares",r]}),M.success(bZt()),uo(!1),nr?.shareId===Oe)b({to:"/projects/$projectId",params:{projectId:r}})},onError:(Oe)=>{M.error(`Error: ${Oe.message}`)}});return o("div",{className:"flex flex-col h-full overflow-hidden p-3 gap-4 bg-background",children:[o("div",{className:C("flex flex-col overflow-hidden transition-all duration-300 ease-in-out border-b border-border pb-4",N?"flex-1 min-h-[50%] h-full":"flex-none h-[44px] max-h-[44px]"),children:[t("header",{className:"group flex items-center justify-between px-2 mb-1 flex-none",children:o("div",{className:"flex-1 flex items-center gap-1.5 cursor-pointer select-none text-muted-foreground hover:text-foreground transition-colors",onClick:()=>j(!N),children:[t("h3",{className:"text-xs font-semibold uppercase tracking-wider",children:_le()}),N?t(Rz,{className:"h-3.5 w-3.5 opacity-0 group-hover:opacity-100 transition-opacity duration-200"}):t(Pz,{className:"h-3.5 w-3.5 opacity-0 group-hover:opacity-100 transition-opacity duration-200"})]})}),t(ce,{className:C("flex-1 min-h-0 transition-all duration-300 ease-in-out [&>div>div]:block!",N?"opacity-100 visible pointer-events-auto":"opacity-0 invisible pointer-events-none h-0"),children:o("div",{className:"space-y-0.5 pr-3",children:[!x&&o("div",{className:C("group flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",U&&"bg-sidebar-accent text-sidebar-accent-foreground font-medium"),onClick:()=>b({to:"/projects/$projectId/recents",params:{projectId:r}}),children:[t("div",{className:"flex h-4 w-4 items-center justify-center",children:t(zs,{className:"h-4 w-4 text-sidebar-primary"})}),t("span",{className:"flex-1 truncate text-sidebar-foreground",children:$g()})]}),t(Rde,{teamId:e,projectId:r,folder:{id:i,name:a,type:"folder",sizeByte:0,fileCount:0,status:"processed",createdAt:"",updatedAt:""},level:0,isRoot:!0,dragState:s,onSelect:l,selectedFolderId:c,canEdit:k,onRenameTrigger:(Oe,je)=>{Fr(Oe),Xt("folder"),yr(je),pr(!0)},onDeleteTrigger:(Oe)=>{lo(Oe),sr("folder"),uo(!0)},onDownloadTrigger:(Oe)=>{hr(Oe)},ancestorFolders:v},i),k&&!g&&o("div",{className:C("group flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",T&&"bg-sidebar-accent text-sidebar-accent-foreground font-medium"),onClick:()=>b({to:"/projects/$projectId/recently-deleted",params:{projectId:r}}),children:[t("div",{className:"flex h-4 w-4 items-center justify-center",children:t(we,{className:"h-4 w-4 text-sidebar-primary"})}),t("span",{className:"flex-1 truncate text-sidebar-foreground",children:Hg()})]})]})})]}),!d&&o("div",{className:C("flex flex-col overflow-hidden transition-all duration-300 ease-in-out border-b border-border pb-4",G?"flex-1 min-h-0 h-full":"flex-none h-[44px] max-h-[44px]"),children:[o("header",{className:"group flex items-center justify-between px-2 mb-1 flex-none",children:[o("div",{className:"flex-1 flex items-center gap-1.5 cursor-pointer select-none text-muted-foreground hover:text-foreground transition-colors",onClick:()=>X(!G),children:[t("h3",{className:"text-xs font-semibold uppercase tracking-wider",children:ZFe()}),G?t(Rz,{className:"h-3.5 w-3.5 opacity-0 group-hover:opacity-100 transition-opacity duration-200"}):t(Pz,{className:"h-3.5 w-3.5 opacity-0 group-hover:opacity-100 transition-opacity duration-200"})]}),k&&t("button",{"data-testid":"create-collection",onClick:()=>bt(),className:"text-muted-foreground hover:text-foreground flex-none",children:t(de,{className:"h-3.5 w-3.5"})})]}),t(ce,{className:C("flex-1 min-h-0 transition-all duration-300 ease-in-out [&>div>div]:block!",G?"opacity-100 visible pointer-events-auto":"opacity-0 invisible pointer-events-none h-0"),children:o("div",{className:"space-y-0.5 pr-3",children:[o("div",{className:"group flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",onClick:()=>b({to:"/projects/$projectId/collections",params:{projectId:r}}),children:[t("div",{className:"flex h-4 w-4 items-center justify-center",children:t(no,{className:"h-4 w-4 text-sidebar-primary"})}),t("span",{className:"flex-1 truncate text-sidebar-foreground",children:IOe({count:We?.pages[0]?.pageInfo?.total||0})})]}),Bt.map((Oe)=>{let je=Fe?.collectionId===Oe.id;return o("div",{className:C("group flex cursor-pointer items-center justify-between rounded-md px-2 py-1 text-sm transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground min-w-0",je&&"bg-sidebar-accent text-sidebar-accent-foreground font-medium"),onClick:()=>b({to:"/projects/$projectId/collections/$collectionId",params:{projectId:r,collectionId:Oe.id}}),children:[o("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[t("div",{className:"flex h-4 w-4 items-center justify-center shrink-0",children:t(ta,{className:"h-4 w-4 text-sidebar-primary"})}),t("span",{className:"truncate text-sidebar-foreground flex-1",children:Oe.name})]}),k&&t("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",onClick:(Zt)=>Zt.stopPropagation(),children:o(ge,{modal:!1,children:[t(Ae,{asChild:!0,children:t(E,{variant:"ghost",size:"icon-sm",className:"h-6 w-6 shrink-0 hover:bg-muted hover:text-muted-foreground p-0",children:t(rr,{className:"h-3.5 w-3.5"})})}),o(_e,{align:"end",className:"w-32",children:[t(K,{onClick:()=>{Fr(Oe.id),Xt("collection"),yr(Oe.name),pr(!0)},children:Zo()}),t(K,{className:"text-destructive focus:text-destructive focus:bg-destructive/10",onClick:()=>{lo(Oe.id),sr("collection"),uo(!0)},children:ct()})]})]})})]},Oe.id)}),t("div",{ref:ft,className:"h-1"}),He&&t("div",{className:"flex justify-center p-2",children:t(O,{className:"h-4 w-4 animate-spin text-muted-foreground"})})]})})]}),!h&&o("div",{className:C("flex flex-col overflow-hidden transition-all duration-300 ease-in-out",J?"flex-1 min-h-0 h-full":"flex-none h-[44px] max-h-[44px]"),children:[o("header",{className:"group flex items-center justify-between px-2 mb-1 flex-none",children:[o("div",{className:"flex-1 flex items-center gap-1.5 cursor-pointer select-none text-muted-foreground hover:text-foreground transition-colors",onClick:()=>ee(!J),children:[t("h3",{className:"text-xs font-semibold uppercase tracking-wider",children:RZt()}),J?t(Rz,{className:"h-3.5 w-3.5 opacity-0 group-hover:opacity-100 transition-opacity duration-200"}):t(Pz,{className:"h-3.5 w-3.5 opacity-0 group-hover:opacity-100 transition-opacity duration-200"})]}),k&&t("div",{className:"flex items-center gap-1 flex-none",children:t("button",{onClick:()=>Wt(),className:"text-muted-foreground hover:text-foreground",children:t(de,{className:"h-3.5 w-3.5"})})})]}),t(ce,{className:C("flex-1 min-h-0 transition-all duration-300 ease-in-out [&>div>div]:block!",J?"opacity-100 visible pointer-events-auto":"opacity-0 invisible pointer-events-none h-0"),children:o("div",{className:"space-y-0.5 pr-3",children:[o("div",{className:"group flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",onClick:()=>b({to:"/projects/$projectId/shares",params:{projectId:r}}),children:[t("div",{className:"flex h-4 w-4 items-center justify-center",children:t(no,{className:"h-4 w-4 text-sidebar-primary"})}),t("span",{className:"flex-1 truncate text-sidebar-foreground",children:UOe({count:re?.pages[0]?.pageInfo?.total||0})})]}),ie.map((Oe)=>t(uwt,{link:Oe,projectId:r,dragState:s,canEdit:k,onRenameTrigger:(je,Zt)=>{Fr(je),Xt("share"),yr(Zt),pr(!0)},onDeleteTrigger:(je)=>{lo(je),sr("share"),uo(!0)}},Oe.id)),t("div",{ref:xt,className:"h-1"}),be&&t("div",{className:"flex justify-center p-2",children:t(O,{className:"h-4 w-4 animate-spin text-muted-foreground"})})]})})]}),t(ue,{open:Tr,onOpenChange:pr,children:o(ae,{onClick:(Oe)=>Oe.stopPropagation(),children:[t(pe,{children:t(le,{children:Gt==="collection"?Slt():Gt==="share"?Plt():Clt()})}),t("div",{className:"py-4",children:t(z,{value:Ir,onChange:(Oe)=>yr(Oe.target.value),placeholder:Ad(),onKeyDown:(Oe)=>{if(Oe.key==="Enter"&&Ir.trim()){if(Gt==="collection")$r({id:Jt,name:Ir});else if(Gt==="share")Va({id:Jt,name:Ir});else if(Gt==="folder")No({id:Jt,name:Ir})}}})}),o(qe,{children:[t(E,{variant:"ghost",onClick:()=>pr(!1),children:De()}),t(E,{disabled:!Ir.trim(),onClick:()=>{if(Gt==="collection")$r({id:Jt,name:Ir});else if(Gt==="share")Va({id:Jt,name:Ir});else if(Gt==="folder")No({id:Jt,name:Ir})},children:Zo()})]})]})}),t(Xe,{open:mo,onOpenChange:uo,children:o(et,{onClick:(Oe)=>Oe.stopPropagation(),children:[o(tt,{children:[t(nt,{children:xa==="collection"?gBe():xa==="share"?r6e():CBe()}),t(ot,{children:wBe({type:xa==="collection"?Q4e():xa==="share"?gZt():sHe().toLowerCase()})})]}),o(rt,{children:[t(it,{children:De()}),t(st,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:()=>{if(xa==="collection")Wo(po);else if(xa==="share")Ee(po);else if(xa==="folder")hn(po)},children:ct()})]})]})}),t(ue,{open:Vo,onOpenChange:Wn,children:o(ae,{className:"sm:max-w-md",children:[o(pe,{children:[t(le,{children:xn?Eg():lh()}),t(Mt,{children:xn?Qg():Lh()})]}),xn?o("div",{className:"space-y-4 py-6 flex flex-col items-center justify-center",children:[t(O,{className:"h-8 w-8 animate-spin text-primary"}),t("span",{className:"text-sm font-medium text-muted-foreground mt-2",children:Cg()})]}):o("div",{className:"space-y-4 py-2",children:[t("div",{className:"text-sm text-muted-foreground",children:yh({count:Ge.length})}),o("div",{className:"flex items-start gap-3 p-3 text-sm rounded-lg bg-amber-50 dark:bg-amber-950/30 text-amber-800 dark:text-amber-300 border border-amber-200 dark:border-amber-900/30",children:[t(Kr,{className:"h-5 w-5 shrink-0 mt-0.5"}),o("div",{children:[t("p",{className:"font-semibold",children:mg()}),t("p",{className:"mt-0.5 text-xs text-amber-700/90 dark:text-amber-400/90",children:Bh()})]})]})]}),t(qe,{children:!xn?o(L,{children:[t(E,{variant:"outline",onClick:()=>Wn(!1),children:De()}),o(E,{onClick:Ur,className:"gap-2",disabled:Ge.length===0,children:[t(ht,{className:"h-4 w-4"}),pA()]})]}):t(E,{disabled:!0,variant:"outline",children:De()})})]})})]})}function uwt({link:e,projectId:r,dragState:a,canEdit:i,onRenameTrigger:s,onDeleteTrigger:l}){let c=Re(),h=ul({from:"/projects/$projectId/shares/$shareId",shouldThrow:!1})?.shareId===e.id,{ref:g,isDropTarget:x}=Or({id:`share:${e.id}`,data:{type:"share-link",id:e.id}}),v=!!a?.isActive;return o("div",{ref:g,className:C("group flex cursor-pointer items-center justify-between rounded-md px-2 py-1 text-sm transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground min-w-0",h&&"bg-sidebar-accent text-sidebar-accent-foreground font-medium",x&&v&&"bg-sidebar-accent ring-2 ring-primary ring-inset"),onClick:()=>c({to:"/projects/$projectId/shares/$shareId",params:{projectId:r,shareId:e.id}}),children:[o("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[t("div",{className:"flex h-4 w-4 items-center justify-center shrink-0",children:t(Pa,{className:"h-4 w-4 text-sidebar-primary"})}),t("span",{className:"truncate text-sidebar-foreground flex-1",children:e.name})]}),i&&t("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",onClick:(b)=>b.stopPropagation(),children:o(ge,{modal:!1,children:[t(Ae,{asChild:!0,children:t(E,{variant:"ghost",size:"icon-sm",className:"h-6 w-6 shrink-0 hover:bg-muted hover:text-muted-foreground p-0",children:t(rr,{className:"h-3.5 w-3.5"})})}),o(_e,{align:"end",className:"w-32",children:[t(K,{onClick:()=>{s(e.id,e.name)},children:Zo()}),t(K,{className:"text-destructive focus:text-destructive focus:bg-destructive/10",onClick:()=>{l(e.id)},children:ct()})]})]})})]})}function Rde({teamId:e,projectId:r,folder:a,level:i,isRoot:s,dragState:l,onSelect:c,selectedFolderId:d,canEdit:h,onRenameTrigger:g,onDeleteTrigger:x,onDownloadTrigger:v,ancestorFolders:b}){let y=D(()=>b?.some((Wt)=>Wt.id===a.id)??!1,[b,a.id]),[k,T]=u(s||y);m(()=>{if(y)T(!0)},[y]);let U=Re(),N=ul({from:"/projects/$projectId/folders/$folderId",select:(Wt)=>({folderId:Wt.folderId}),shouldThrow:!1}),j=ul({from:"/projects/$projectId/",shouldThrow:!1}),G=s?!!j:N?.folderId===a.id,{data:X,fetchNextPage:J,hasNextPage:ee,isFetchingNextPage:re,isLoading:oe}=mt({queryKey:["folders",a.id,"children",{assetType:"folder"}],queryFn:async({pageParam:Wt})=>{let Fe=await A.api.folders[":folderId"].children.$get({param:{folderId:a.id},query:{assetType:"folder",after:Wt,first:"20"}});if(!Fe.ok)throw Error(Y7e());return await Fe.json()},initialPageParam:"",getNextPageParam:(Wt)=>Wt.pageInfo?.cursor||void 0,enabled:k||!!s}),{ref:fe,inView:be}=Nt();m(()=>{if(be&&ee&&!re)J()},[be,ee,re,J]);let We=X?.pages.flatMap((Wt)=>Wt.data??[])??[],Ye=(Wt)=>{Wt.stopPropagation(),T(!k)},Se=()=>{if(c){c(a);return}if(s)U({to:"/projects/$projectId",params:{projectId:r}});else U({to:"/projects/$projectId/folders/$folderId",params:{projectId:r,folderId:a.id}})},{ref:He,isDragging:ft}=bs({id:`tree:${a.id}`,data:{type:"folder",item:a},disabled:!!s||!!c||!h}),{ref:Je,isDropTarget:xt}=Or({id:`tree:${a.id}`,data:{type:"folder",item:a},disabled:l?.draggedIds.has(a.id)||!!c||!h}),Ft=(Wt)=>{He(Wt),Je(Wt)},Bt=D(()=>{if(c)return!1;if(!l?.isActive)return!1;if(l.draggedIds.has(a.id))return!1;return!0},[l,a.id,c]),ie=xt&&Bt,bt=d===a.id;return o("div",{children:[o("div",{ref:Ft,className:C("group flex cursor-pointer items-center gap-1 rounded-md px-2 py-1.5 text-sm transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground min-w-0",(G||bt)&&"bg-sidebar-accent text-sidebar-accent-foreground font-medium",ft&&"opacity-50",ie&&"bg-sidebar-accent ring-2 ring-primary ring-inset"),style:{...s?{}:{paddingLeft:`${i*12+8}px`}},onClick:Se,children:[!s&&t("button",{onClick:Ye,className:"flex h-4 w-4 items-center justify-center shrink-0",children:k?t(ve,{className:"h-3 w-3"}):t(Et,{className:"h-3 w-3"})}),s?t(D2,{className:"h-4 w-4 text-sidebar-primary shrink-0"}):t(lr,{className:"h-4 w-4 text-sidebar-primary shrink-0"}),t("span",{className:"flex-1 truncate text-sidebar-foreground",children:a.name}),h&&!s&&t("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",onClick:(Wt)=>Wt.stopPropagation(),children:o(ge,{modal:!1,children:[t(Ae,{asChild:!0,children:t(E,{variant:"ghost",size:"icon-sm",className:"h-6 w-6 shrink-0 hover:bg-muted hover:text-muted-foreground p-0",children:t(rr,{className:"h-3.5 w-3.5"})})}),o(_e,{align:"end",className:"w-32",children:[o(K,{onClick:()=>{g(a.id,a.name)},children:[t(Qr,{className:"mr-2 h-4 w-4"}),Zo()]}),o(K,{onClick:()=>{v(a.id)},children:[t(ht,{className:"mr-2 h-4 w-4"}),gr()]}),t(Vt,{}),o(K,{className:"text-destructive focus:text-destructive focus:bg-destructive/10",onClick:()=>{x(a.id)},children:[t(we,{className:"mr-2 h-4 w-4"}),ct()]})]})]})})]}),k&&o("div",{children:[oe&&t("div",{className:"flex items-center justify-center p-2",style:{paddingLeft:`${(i+1)*12+8}px`},children:t(O,{className:"h-4 w-4 animate-spin"})}),We.map((Wt)=>t(Rde,{teamId:e,projectId:r,folder:Wt,level:i+1,dragState:l,onSelect:c,selectedFolderId:d,canEdit:h,onRenameTrigger:g,onDeleteTrigger:x,onDownloadTrigger:v,ancestorFolders:b},Wt.id)),ee&&t("div",{ref:fe,className:"flex items-center justify-center p-2",style:{paddingLeft:`${(i+1)*12+8}px`},children:re&&t(O,{className:"h-4 w-4 animate-spin"})})]})]})}var dwt=Math.pow(10,8)*24*60*60*1000,w_n=-dwt,x3=604800000,Pde=86400000,ZV=60000,iO=3600000;var pV=Symbol.for("constructDateFrom");function dt(e,r){if(typeof e==="function")return e(r);if(e&&typeof e==="object"&&pV in e)return e[pV](r);if(e instanceof Date)return new e.constructor(r);return new Date(r)}function xe(e,r){return dt(r||e,e)}function FR(e,r,a){let i=xe(e,a?.in);if(isNaN(r))return dt(a?.in||e,NaN);if(!r)return i;return i.setDate(i.getDate()+r),i}function ja(e,r,a){let i=xe(e,a?.in);if(isNaN(r))return dt(a?.in||e,NaN);if(!r)return i;let s=i.getDate(),l=dt(a?.in||e,i.getTime());l.setMonth(i.getMonth()+r+1,0);let c=l.getDate();if(s>=c)return l;else return i.setFullYear(l.getFullYear(),l.getMonth(),s),i}function Tde(e,r,a){return dt(a?.in||e,+xe(e)+r)}function Ade(e,r,a){return Tde(e,r*iO,a)}var Zwt={};function vZ(){return Zwt}function Su(e,r){let a=vZ(),i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,s=xe(e,r?.in),l=s.getDay(),c=(l<i?7:0)+l-i;return s.setDate(s.getDate()-c),s.setHours(0,0,0,0),s}function sM(e,r){return Su(e,{...r,weekStartsOn:1})}function v3(e,r){let a=xe(e,r?.in),i=a.getFullYear(),s=dt(a,0);s.setFullYear(i+1,0,4),s.setHours(0,0,0,0);let l=sM(s),c=dt(a,0);c.setFullYear(i,0,4),c.setHours(0,0,0,0);let d=sM(c);if(a.getTime()>=l.getTime())return i+1;else if(a.getTime()>=d.getTime())return i;else return i-1}function mV(e){let r=xe(e),a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),+e-+a}function al(e,...r){let a=dt.bind(null,e||r.find((i)=>typeof i==="object"));return r.map(a)}function T8(e,r){let a=xe(e,r?.in);return a.setHours(0,0,0,0),a}function A8(e,r,a){let[i,s]=al(a?.in,e,r),l=T8(i),c=T8(s),d=+l-mV(l),h=+c-mV(c);return Math.round((d-h)/Pde)}function Ede(e,r){let a=v3(e,r),i=dt(r?.in||e,0);return i.setFullYear(a,0,4),i.setHours(0,0,0,0),sM(i)}function fO(e,r,a){return FR(e,r*7,a)}function Dde(e,r,a){return ja(e,r*12,a)}function Ode(e,r){let a,i=r?.in;return e.forEach((s)=>{if(!i&&typeof s==="object")i=dt.bind(null,s);let l=xe(s,i);if(!a||a<l||isNaN(+l))a=l}),dt(i,a||NaN)}function Nde(e,r){let a,i=r?.in;return e.forEach((s)=>{if(!i&&typeof s==="object")i=dt.bind(null,s);let l=xe(s,i);if(!a||a>l||isNaN(+l))a=l}),dt(i,a||NaN)}function y3(e){return dt(e,Date.now())}function jR(e,r,a){let[i,s]=al(a?.in,e,r);return+T8(i)===+T8(s)}function _3(e){return e instanceof Date||typeof e==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function sa(e){return!(!_3(e)&&typeof e!=="number"||isNaN(+xe(e)))}function b3(e,r,a){let[i,s]=al(a?.in,e,r),l=i.getFullYear()-s.getFullYear(),c=i.getMonth()-s.getMonth();return l*12+c}function hV(e,r,a){let[i,s]=al(a?.in,e,r),l=Fde(i,s),c=Math.abs(A8(i,s));i.setDate(i.getDate()-l*c);let d=Number(Fde(i,s)===-l),h=l*(c-d);return h===0?0:h}function Fde(e,r){let a=e.getFullYear()-r.getFullYear()||e.getMonth()-r.getMonth()||e.getDate()-r.getDate()||e.getHours()-r.getHours()||e.getMinutes()-r.getMinutes()||e.getSeconds()-r.getSeconds()||e.getMilliseconds()-r.getMilliseconds();if(a<0)return-1;if(a>0)return 1;return a}function Kd(e,r){let a=xe(e,r?.in),i=a.getMonth();return a.setFullYear(a.getFullYear(),i+1,0),a.setHours(23,59,59,999),a}function Zl(e,r){let[a,i]=al(e,r.start,r.end);return{start:a,end:i}}function jde(e,r){let{start:a,end:i}=Zl(r?.in,e),s=+a>+i,l=s?+a:+i,c=s?i:a;c.setHours(0,0,0,0),c.setDate(1);let d=r?.step??1;if(!d)return[];if(d<0)d=-d,s=!s;let h=[];while(+c<=l)h.push(dt(a,c)),c.setMonth(c.getMonth()+d);return s?h.reverse():h}function Bde(e,r){let a=xe(e,r?.in);return a.setDate(1),a.setHours(0,0,0,0),a}function Ude(e,r){let a=xe(e,r?.in),i=a.getFullYear();return a.setFullYear(i+1,0,0),a.setHours(23,59,59,999),a}function w3(e,r){let a=xe(e,r?.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}function Yde(e,r){let{start:a,end:i}=Zl(r?.in,e),s=+a>+i,l=s?+a:+i,c=s?i:a;c.setHours(0,0,0,0),c.setMonth(0,1);let d=r?.step??1;if(!d)return[];if(d<0)d=-d,s=!s;let h=[];while(+c<=l)h.push(dt(a,c)),c.setFullYear(c.getFullYear()+d);return s?h.reverse():h}function z3(e,r){let a=vZ(),i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,s=xe(e,r?.in),l=s.getDay(),c=(l<i?-7:0)+6-(l-i);return s.setDate(s.getDate()+c),s.setHours(23,59,59,999),s}function qde(e,r){return z3(e,{...r,weekStartsOn:1})}var pwt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Hde=(e,r,a)=>{let i,s=pwt[e];if(typeof s==="string")i=s;else if(r===1)i=s.one;else i=s.other.replace("{{count}}",r.toString());if(a?.addSuffix)if(a.comparison&&a.comparison>0)return"in "+i;else return i+" ago";return i};function S3(e){return(r={})=>{let a=r.width?String(r.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}var mwt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},hwt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},gwt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Vde={date:S3({formats:mwt,defaultWidth:"full"}),time:S3({formats:hwt,defaultWidth:"full"}),dateTime:S3({formats:gwt,defaultWidth:"full"})};var Mwt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Wde=(e,r,a,i)=>Mwt[e];function BR(e){return(r,a)=>{let i=a?.context?String(a.context):"standalone",s;if(i==="formatting"&&e.formattingValues){let c=e.defaultFormattingWidth||e.defaultWidth,d=a?.width?String(a.width):c;s=e.formattingValues[d]||e.formattingValues[c]}else{let c=e.defaultWidth,d=a?.width?String(a.width):e.defaultWidth;s=e.values[d]||e.values[c]}let l=e.argumentCallback?e.argumentCallback(r):r;return s[l]}}var xwt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vwt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ywt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},_wt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bwt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},wwt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},zwt=(e,r)=>{let a=Number(e),i=a%100;if(i>20||i<10)switch(i%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Gde={ordinalNumber:zwt,era:BR({values:xwt,defaultWidth:"wide"}),quarter:BR({values:vwt,defaultWidth:"wide",argumentCallback:(e)=>e-1}),month:BR({values:ywt,defaultWidth:"wide"}),day:BR({values:_wt,defaultWidth:"wide"}),dayPeriod:BR({values:bwt,defaultWidth:"wide",formattingValues:wwt,defaultFormattingWidth:"wide"})};function UR(e){return(r,a={})=>{let i=a.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],l=r.match(s);if(!l)return null;let c=l[0],d=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],h=Array.isArray(d)?Lwt(d,(v)=>v.test(c)):Swt(d,(v)=>v.test(c)),g;g=e.valueCallback?e.valueCallback(h):h,g=a.valueCallback?a.valueCallback(g):g;let x=r.slice(c.length);return{value:g,rest:x}}}function Swt(e,r){for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&r(e[a]))return a;return}function Lwt(e,r){for(let a=0;a<e.length;a++)if(r(e[a]))return a;return}function Kde(e){return(r,a={})=>{let i=r.match(e.matchPattern);if(!i)return null;let s=i[0],l=r.match(e.parsePattern);if(!l)return null;let c=e.valueCallback?e.valueCallback(l[0]):l[0];c=a.valueCallback?a.valueCallback(c):c;let d=r.slice(s.length);return{value:c,rest:d}}}var kwt=/^(\d+)(th|st|nd|rd)?/i,Cwt=/\d+/i,Iwt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Rwt={any:[/^b/i,/^(a|c)/i]},Pwt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Twt={any:[/1/i,/2/i,/3/i,/4/i]},Awt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ewt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Dwt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Owt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Nwt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Fwt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Xde={ordinalNumber:Kde({matchPattern:kwt,parsePattern:Cwt,valueCallback:(e)=>parseInt(e,10)}),era:UR({matchPatterns:Iwt,defaultMatchWidth:"wide",parsePatterns:Rwt,defaultParseWidth:"any"}),quarter:UR({matchPatterns:Pwt,defaultMatchWidth:"wide",parsePatterns:Twt,defaultParseWidth:"any",valueCallback:(e)=>e+1}),month:UR({matchPatterns:Awt,defaultMatchWidth:"wide",parsePatterns:Ewt,defaultParseWidth:"any"}),day:UR({matchPatterns:Dwt,defaultMatchWidth:"wide",parsePatterns:Owt,defaultParseWidth:"any"}),dayPeriod:UR({matchPatterns:Nwt,defaultMatchWidth:"any",parsePatterns:Fwt,defaultParseWidth:"any"})};var lM={code:"en-US",formatDistance:Hde,formatLong:Vde,formatRelative:Wde,localize:Gde,match:Xde,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Qde(e,r){let a=xe(e,r?.in);return A8(a,w3(a))+1}function YR(e,r){let a=xe(e,r?.in),i=+sM(a)-+Ede(a);return Math.round(i/x3)+1}function L3(e,r){let a=xe(e,r?.in),i=a.getFullYear(),s=vZ(),l=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,c=dt(r?.in||e,0);c.setFullYear(i+1,0,l),c.setHours(0,0,0,0);let d=Su(c,r),h=dt(r?.in||e,0);h.setFullYear(i,0,l),h.setHours(0,0,0,0);let g=Su(h,r);if(+a>=+d)return i+1;else if(+a>=+g)return i;else return i-1}function Jde(e,r){let a=vZ(),i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=L3(e,r),l=dt(r?.in||e,0);return l.setFullYear(s,0,i),l.setHours(0,0,0,0),Su(l,r)}function qR(e,r){let a=xe(e,r?.in),i=+Su(a,r)-+Jde(a,r);return Math.round(i/x3)+1}function Ho(e,r){let a=e<0?"-":"",i=Math.abs(e).toString().padStart(r,"0");return a+i}var cM={y(e,r){let a=e.getFullYear(),i=a>0?a:1-a;return Ho(r==="yy"?i%100:i,r.length)},M(e,r){let a=e.getMonth();return r==="M"?String(a+1):Ho(a+1,2)},d(e,r){return Ho(e.getDate(),r.length)},a(e,r){let a=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(e,r){return Ho(e.getHours()%12||12,r.length)},H(e,r){return Ho(e.getHours(),r.length)},m(e,r){return Ho(e.getMinutes(),r.length)},s(e,r){return Ho(e.getSeconds(),r.length)},S(e,r){let a=r.length,i=e.getMilliseconds(),s=Math.trunc(i*Math.pow(10,a-3));return Ho(s,r.length)}};var HR={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gV={G:function(e,r,a){let i=e.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})}},y:function(e,r,a){if(r==="yo"){let i=e.getFullYear(),s=i>0?i:1-i;return a.ordinalNumber(s,{unit:"year"})}return cM.y(e,r)},Y:function(e,r,a,i){let s=L3(e,i),l=s>0?s:1-s;if(r==="YY"){let c=l%100;return Ho(c,2)}if(r==="Yo")return a.ordinalNumber(l,{unit:"year"});return Ho(l,r.length)},R:function(e,r){let a=v3(e);return Ho(a,r.length)},u:function(e,r){let a=e.getFullYear();return Ho(a,r.length)},Q:function(e,r,a){let i=Math.ceil((e.getMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return Ho(i,2);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,r,a){let i=Math.ceil((e.getMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return Ho(i,2);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,r,a){let i=e.getMonth();switch(r){case"M":case"MM":return cM.M(e,r);case"Mo":return a.ordinalNumber(i+1,{unit:"month"});case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})}},L:function(e,r,a){let i=e.getMonth();switch(r){case"L":return String(i+1);case"LL":return Ho(i+1,2);case"Lo":return a.ordinalNumber(i+1,{unit:"month"});case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})}},w:function(e,r,a,i){let s=qR(e,i);if(r==="wo")return a.ordinalNumber(s,{unit:"week"});return Ho(s,r.length)},I:function(e,r,a){let i=YR(e);if(r==="Io")return a.ordinalNumber(i,{unit:"week"});return Ho(i,r.length)},d:function(e,r,a){if(r==="do")return a.ordinalNumber(e.getDate(),{unit:"date"});return cM.d(e,r)},D:function(e,r,a){let i=Qde(e);if(r==="Do")return a.ordinalNumber(i,{unit:"dayOfYear"});return Ho(i,r.length)},E:function(e,r,a){let i=e.getDay();switch(r){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})}},e:function(e,r,a,i){let s=e.getDay(),l=(s-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(l);case"ee":return Ho(l,2);case"eo":return a.ordinalNumber(l,{unit:"day"});case"eee":return a.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(s,{width:"short",context:"formatting"});case"eeee":default:return a.day(s,{width:"wide",context:"formatting"})}},c:function(e,r,a,i){let s=e.getDay(),l=(s-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(l);case"cc":return Ho(l,r.length);case"co":return a.ordinalNumber(l,{unit:"day"});case"ccc":return a.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(s,{width:"narrow",context:"standalone"});case"cccccc":return a.day(s,{width:"short",context:"standalone"});case"cccc":default:return a.day(s,{width:"wide",context:"standalone"})}},i:function(e,r,a){let i=e.getDay(),s=i===0?7:i;switch(r){case"i":return String(s);case"ii":return Ho(s,r.length);case"io":return a.ordinalNumber(s,{unit:"day"});case"iii":return a.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(i,{width:"short",context:"formatting"});case"iiii":default:return a.day(i,{width:"wide",context:"formatting"})}},a:function(e,r,a){let s=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,r,a){let i=e.getHours(),s;if(i===12)s=HR.noon;else if(i===0)s=HR.midnight;else s=i/12>=1?"pm":"am";switch(r){case"b":case"bb":return a.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,r,a){let i=e.getHours(),s;if(i>=17)s=HR.evening;else if(i>=12)s=HR.afternoon;else if(i>=4)s=HR.morning;else s=HR.night;switch(r){case"B":case"BB":case"BBB":return a.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,r,a){if(r==="ho"){let i=e.getHours()%12;if(i===0)i=12;return a.ordinalNumber(i,{unit:"hour"})}return cM.h(e,r)},H:function(e,r,a){if(r==="Ho")return a.ordinalNumber(e.getHours(),{unit:"hour"});return cM.H(e,r)},K:function(e,r,a){let i=e.getHours()%12;if(r==="Ko")return a.ordinalNumber(i,{unit:"hour"});return Ho(i,r.length)},k:function(e,r,a){let i=e.getHours();if(i===0)i=24;if(r==="ko")return a.ordinalNumber(i,{unit:"hour"});return Ho(i,r.length)},m:function(e,r,a){if(r==="mo")return a.ordinalNumber(e.getMinutes(),{unit:"minute"});return cM.m(e,r)},s:function(e,r,a){if(r==="so")return a.ordinalNumber(e.getSeconds(),{unit:"second"});return cM.s(e,r)},S:function(e,r){return cM.S(e,r)},X:function(e,r,a){let i=e.getTimezoneOffset();if(i===0)return"Z";switch(r){case"X":return eZe(i);case"XXXX":case"XX":return yL(i);case"XXXXX":case"XXX":default:return yL(i,":")}},x:function(e,r,a){let i=e.getTimezoneOffset();switch(r){case"x":return eZe(i);case"xxxx":case"xx":return yL(i);case"xxxxx":case"xxx":default:return yL(i,":")}},O:function(e,r,a){let i=e.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+$de(i,":");case"OOOO":default:return"GMT"+yL(i,":")}},z:function(e,r,a){let i=e.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+$de(i,":");case"zzzz":default:return"GMT"+yL(i,":")}},t:function(e,r,a){let i=Math.trunc(+e/1000);return Ho(i,r.length)},T:function(e,r,a){return Ho(+e,r.length)}};function $de(e,r=""){let a=e>0?"-":"+",i=Math.abs(e),s=Math.trunc(i/60),l=i%60;if(l===0)return a+String(s);return a+String(s)+r+Ho(l,2)}function eZe(e,r){if(e%60===0)return(e>0?"-":"+")+Ho(Math.abs(e)/60,2);return yL(e,r)}function yL(e,r=""){let a=e>0?"-":"+",i=Math.abs(e),s=Ho(Math.trunc(i/60),2),l=Ho(i%60,2);return a+s+r+l}var tZe=(e,r)=>{switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},rZe=(e,r)=>{switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},jwt=(e,r)=>{let a=e.match(/(P+)(p+)?/)||[],i=a[1],s=a[2];if(!s)return tZe(e,r);let l;switch(i){case"P":l=r.dateTime({width:"short"});break;case"PP":l=r.dateTime({width:"medium"});break;case"PPP":l=r.dateTime({width:"long"});break;case"PPPP":default:l=r.dateTime({width:"full"});break}return l.replace("{{date}}",tZe(i,r)).replace("{{time}}",rZe(s,r))},oZe={p:rZe,P:jwt};var Bwt=/^D+$/,Uwt=/^Y+$/,Ywt=["D","DD","YY","YYYY"];function aZe(e){return Bwt.test(e)}function nZe(e){return Uwt.test(e)}function iZe(e,r,a){let i=qwt(e,r,a);if(console.warn(i),Ywt.includes(e))throw RangeError(i)}function qwt(e,r,a){let i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${r}\`) for formatting ${i} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Hwt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Vwt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Wwt=/^'([^]*?)'?$/,Gwt=/''/g,Kwt=/[a-zA-Z]/;function Ar(e,r,a){let i=vZ(),s=a?.locale??i.locale??lM,l=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,c=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,d=xe(e,a?.in);if(!sa(d))throw RangeError("Invalid time value");let h=r.match(Vwt).map((x)=>{let v=x[0];if(v==="p"||v==="P"){let b=oZe[v];return b(x,s.formatLong)}return x}).join("").match(Hwt).map((x)=>{if(x==="''")return{isToken:!1,value:"'"};let v=x[0];if(v==="'")return{isToken:!1,value:Xwt(x)};if(gV[v])return{isToken:!0,value:x};if(v.match(Kwt))throw RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:x}});if(s.localize.preprocessor)h=s.localize.preprocessor(d,h);let g={firstWeekContainsDate:l,weekStartsOn:c,locale:s};return h.map((x)=>{if(!x.isToken)return x.value;let v=x.value;if(!a?.useAdditionalWeekYearTokens&&nZe(v)||!a?.useAdditionalDayOfYearTokens&&aZe(v))iZe(v,r,String(e));let b=gV[v[0]];return b(d,v,s.localize,g)}).join("")}function Xwt(e){let r=e.match(Wwt);if(!r)return e;return r[1].replace(Gwt,"'")}function fZe(e,r){let a=xe(e,r?.in),i=a.getFullYear(),s=a.getMonth(),l=dt(a,0);return l.setFullYear(i,s+1,0),l.setHours(0,0,0,0),l.getDate()}function nu(e,r){return xe(e,r?.in).getMonth()}function ou(e,r){return xe(e,r?.in).getFullYear()}function sZe(e,r){return+xe(e)>+xe(r)}function lZe(e,r){return+xe(e)<+xe(r)}function cZe(e,r,a){let[i,s]=al(a?.in,e,r);return i.getFullYear()===s.getFullYear()&&i.getMonth()===s.getMonth()}function uZe(e,r,a){let[i,s]=al(a?.in,e,r);return i.getFullYear()===s.getFullYear()}function sO(e,r){return jR(dt(r?.in||e,e),y3(r?.in||e))}function dZe(e,r,a){return FR(e,-r,a)}function lO(e,r){return jR(dt(r?.in||e,e),dZe(y3(r?.in||e),1))}function uM(e,r){let a=()=>dt(r?.in,NaN),i=r?.additionalDigits??2,s=e0t(e),l;if(s.date){let g=t0t(s.date,i);l=r0t(g.restDateString,g.year)}if(!l||isNaN(+l))return a();let c=+l,d=0,h;if(s.time){if(d=o0t(s.time),isNaN(d))return a()}if(s.timezone){if(h=a0t(s.timezone),isNaN(h))return a()}else{let g=new Date(c+d),x=xe(0,r?.in);return x.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),x.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),x}return xe(c+d+h,r?.in)}var k3={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Qwt=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Jwt=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,$wt=/^([+-])(\d{2})(?::?(\d{2}))?$/;function e0t(e){let r={},a=e.split(k3.dateTimeDelimiter),i;if(a.length>2)return r;if(/:/.test(a[0]))i=a[0];else if(r.date=a[0],i=a[1],k3.timeZoneDelimiter.test(r.date))r.date=e.split(k3.timeZoneDelimiter)[0],i=e.substr(r.date.length,e.length);if(i){let s=k3.timezone.exec(i);if(s)r.time=i.replace(s[1],""),r.timezone=s[1];else r.time=i}return r}function t0t(e,r){let a=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+r)+"})|(\\d{2}|[+-]\\d{"+(2+r)+"})$)"),i=e.match(a);if(!i)return{year:NaN,restDateString:""};let s=i[1]?parseInt(i[1]):null,l=i[2]?parseInt(i[2]):null;return{year:l===null?s:l*100,restDateString:e.slice((i[1]||i[2]).length)}}function r0t(e,r){if(r===null)return new Date(NaN);let a=e.match(Qwt);if(!a)return new Date(NaN);let i=!!a[4],s=cO(a[1]),l=cO(a[2])-1,c=cO(a[3]),d=cO(a[4]),h=cO(a[5])-1;if(i){if(!l0t(r,d,h))return new Date(NaN);return n0t(r,d,h)}else{let g=new Date(0);if(!f0t(r,l,c)||!s0t(r,s))return new Date(NaN);return g.setUTCFullYear(r,l,Math.max(s,c)),g}}function cO(e){return e?parseInt(e):1}function o0t(e){let r=e.match(Jwt);if(!r)return NaN;let a=MV(r[1]),i=MV(r[2]),s=MV(r[3]);if(!c0t(a,i,s))return NaN;return a*iO+i*ZV+s*1000}function MV(e){return e&&parseFloat(e.replace(",","."))||0}function a0t(e){if(e==="Z")return 0;let r=e.match($wt);if(!r)return 0;let a=r[1]==="+"?-1:1,i=parseInt(r[2]),s=r[3]&&parseInt(r[3])||0;if(!u0t(i,s))return NaN;return a*(i*iO+s*ZV)}function n0t(e,r,a){let i=new Date(0);i.setUTCFullYear(e,0,4);let s=i.getUTCDay()||7,l=(r-1)*7+a+1-s;return i.setUTCDate(i.getUTCDate()+l),i}var i0t=[31,null,31,30,31,30,31,31,30,31,30,31];function ZZe(e){return e%400===0||e%4===0&&e%100!==0}function f0t(e,r,a){return r>=0&&r<=11&&a>=1&&a<=(i0t[r]||(ZZe(e)?29:28))}function s0t(e,r){return r>=1&&r<=(ZZe(e)?366:365)}function l0t(e,r,a){return r>=1&&r<=53&&a>=0&&a<=6}function c0t(e,r,a){if(e===24)return r===0&&a===0;return a>=0&&a<60&&r>=0&&r<60&&e>=0&&e<25}function u0t(e,r){return r>=0&&r<=59}function pZe(e,r,a){let i=xe(e,a?.in),s=i.getFullYear(),l=i.getDate(),c=dt(a?.in||e,0);c.setFullYear(s,r,15),c.setHours(0,0,0,0);let d=fZe(c);return i.setMonth(r,Math.min(l,d)),i}function mZe(e,r,a){let i=xe(e,a?.in);if(isNaN(+i))return dt(a?.in||e,NaN);return i.setFullYear(r),i}function C3(e){let r=Object.values(e).filter((i)=>typeof i==="number");return Object.entries(e).filter(([i,s])=>r.indexOf(+i)===-1).map(([i,s])=>s)}function vV(e,r="|"){return e.map((a)=>bV(a)).join(r)}function dO(e,r){if(typeof r==="bigint")return r.toString();return r}function ZO(e){return{get value(){{let a=e();return Object.defineProperty(this,"value",{value:a}),a}throw Error("cached value already set")}}}function gZe(e){return e===null||e===void 0}function I3(e){let r=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(r,a)}function MZe(e,r){let a=e/r,i=Math.round(a),s=4*Number.EPSILON*Math.max(Math.abs(a),1);if(Math.abs(a-i)<s)return 0;return a-i}var hZe=Symbol("evaluating");function xZe(e,r,a){let i=void 0;Object.defineProperty(e,r,{get(){if(i===hZe)return;if(i===void 0)i=hZe,i=a();return i},set(s){Object.defineProperty(e,r,{value:s})},configurable:!0})}function Ui(e,r,a){Object.defineProperty(e,r,{value:a,writable:!0,enumerable:!0,configurable:!0})}function D8(...e){let r={};for(let a of e){let i=Object.getOwnPropertyDescriptors(a);Object.assign(r,i)}return Object.defineProperties({},r)}function vZe(e){return JSON.stringify(e)}function yZe(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var yV="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function VR(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}var _Ze=ZO(()=>{if(nl.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function bL(e){if(VR(e)===!1)return!1;let r=e.constructor;if(r===void 0)return!0;if(typeof r!=="function")return!0;let a=r.prototype;if(VR(a)===!1)return!1;if(Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)return!1;return!0}function _V(e){if(bL(e))return{...e};if(Array.isArray(e))return[...e];if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);return e}var bZe=new Set(["string","number","symbol"]);function O8(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function yZ(e,r,a){let i=new e._zod.constr(r??e._zod.def);if(!r||a?.parent)i._zod.parent=e;return i}function xr(e){let r=e;if(!r)return{};if(typeof r==="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");r.error=r.message}if(delete r.message,typeof r.error==="string")return{...r,error:()=>r.error};return r}function bV(e){if(typeof e==="bigint")return e.toString()+"n";if(typeof e==="string")return`"${e}"`;return`${e}`}function wZe(e){return Object.keys(e).filter((r)=>e[r]._zod.optin!==void 0&&e[r]._zod.optout==="optional")}var zZe=(()=>({safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]}))();function d0t(e,r){let a=e._zod.def,i=a.checks;if(i&&i.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let l=D8(e._zod.def,{get shape(){let c={};for(let d of Reflect.ownKeys(r)){if(!Object.prototype.hasOwnProperty.call(a.shape,d))throw Error(`Unrecognized key: "${String(d)}"`);if(!r[d])continue;Ui(c,d,a.shape[d])}return Ui(this,"shape",c),c},checks:[]});return yZ(e,l)}function Z0t(e,r){let a=e._zod.def,i=a.checks;if(i&&i.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let l=D8(e._zod.def,{get shape(){let c={...e._zod.def.shape};for(let d of Reflect.ownKeys(r)){if(!Object.prototype.hasOwnProperty.call(a.shape,d))throw Error(`Unrecognized key: "${String(d)}"`);if(!r[d])continue;delete c[d]}return Ui(this,"shape",c),c},checks:[]});return yZ(e,l)}function p0t(e,r){if(!bL(r))throw Error("Invalid input to extend: expected a plain object");let a=e._zod.def.checks;if(a&&a.length>0){let l=e._zod.def.shape;for(let c of Reflect.ownKeys(r))if(Object.getOwnPropertyDescriptor(l,c)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let s=D8(e._zod.def,{get shape(){let l={...e._zod.def.shape,...r};return Ui(this,"shape",l),l}});return yZ(e,s)}function m0t(e,r){if(!bL(r))throw Error("Invalid input to safeExtend: expected a plain object");let a=D8(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r};return Ui(this,"shape",i),i}});return yZ(e,a)}function h0t(e,r){if(!r?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let a=D8(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r._zod.def.shape};return Ui(this,"shape",i),i},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return yZ(e,a)}function SZe(e,r,a,i="partial"){let l=r._zod.def.checks;if(l&&l.length>0)throw Error(`.${i}() cannot be used on object schemas containing refinements`);let d=D8(r._zod.def,{get shape(){let h=r._zod.def.shape,g={...h};if(a)for(let x of Reflect.ownKeys(a)){if(!Object.prototype.hasOwnProperty.call(h,x))throw Error(`Unrecognized key: "${String(x)}"`);if(!a[x])continue;g[x]=e?new e({type:"optional",innerType:h[x]}):h[x]}else for(let x of Reflect.ownKeys(h))g[x]=e?new e({type:"optional",innerType:h[x]}):h[x];return Ui(this,"shape",g),g},checks:[]});return yZ(r,d)}function g0t(e,r,a){let i=D8(r._zod.def,{get shape(){let s=r._zod.def.shape,l={...s};if(a)for(let c of Reflect.ownKeys(a)){if(!Object.prototype.hasOwnProperty.call(l,c))throw Error(`Unrecognized key: "${String(c)}"`);if(!a[c])continue;l[c]=new e({type:"nonoptional",innerType:s[c]})}else for(let c of Reflect.ownKeys(s))l[c]=new e({type:"nonoptional",innerType:s[c]});return Ui(this,"shape",l),l}});return yZ(r,i)}function wL(e,r=0){if(e.aborted===!0)return!0;for(let a=r;a<e.issues.length;a++)if(e.issues[a]?.continue!==!0)return!0;return!1}function LZe(e,r=0){if(e.aborted===!0)return!0;for(let a=r;a<e.issues.length;a++)if(e.issues[a]?.continue===!1)return!0;return!1}function N8(e,r){return r.map((a)=>{var i;return(i=a).path??(i.path=[]),a.path.unshift(e),a})}function uO(e){return typeof e==="string"?e:e?.message}function wV(e,r,a){var i;for(let s=r;s<e.length;s++)(i=e[s]).schema??(i.schema=a)}function _Z(e,r,a){var i;let s=e.inst?._zod?.traits;if(s?.has("$ZodType"))if(s.has("$ZodCheck"))(i=e).schema??(i.schema=e.inst);else e.schema=e.inst;let l=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,c=e.message?e.message:uO(e.inst?._zod.def?.error?.(e))??uO(l?.(e))??uO(r?.error?.(e))??uO(a.customError?.(e))??uO(a.localeError?.(e))??"Invalid input",{inst:d,schema:h,continue:g,input:x,...v}=e;if(v.path??(v.path=[]),v.message=c,r?.reportInput)v.input=x;return v}var M0t=/[\uD800-\uDBFF]/;function R3(e){let r=e.length;if(!M0t.test(e))return r;let a=r;for(let i=0;i<r-1;i++)if((e.charCodeAt(i)&64512)===55296&&(e.charCodeAt(i+1)&64512)===56320)a--,i++;return a}function P3(e){if(Array.isArray(e))return"array";if(typeof e==="string")return"string";return"unknown"}function kZe(e){let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let a=e;if(a&&Object.getPrototypeOf(a)!==Object.prototype&&"constructor"in a&&a.constructor)return a.constructor.name}}return r}function zL(...e){let[r,a,i]=e;if(typeof r==="string")return{message:r,code:"custom",input:a,inst:i};return{...r}}function CZe(e,r){for(let a in r){let i=Object.getOwnPropertyDescriptor(r,a);if(i.get)Object.defineProperty(e,a,{...i,enumerable:!1});else x0t(e,a,i.value)}}function _L(e,r,a,i=!0){return Object.defineProperty(e,r,{configurable:!0,writable:!0,enumerable:i,value:a}),a}function zV(e,r,a){return _L(e,r,a,!1)}function x0t(e,r,a){Object.defineProperty(e,r,{configurable:!0,get(){return this==null?a:_L(this,r,a.bind(this))},set(i){_L(this,r,i)}})}function v0t(e,r){let a=Object.getPrototypeOf(e);return r in a?void 0:a}var xV,E8=!1,y0t={configurable:!0,get(){E8=!0;return}};function Ao(e,r,a){let i=Object.getPrototypeOf(e._zod);if(r in i&&xV!==e._zod){xV=void 0;return}xV=e._zod,Object.defineProperty(i,r,{configurable:!0,get(){Object.defineProperty(this,r,y0t);let s=E8;E8=!1;try{let l=a(this);if(E8)delete this[r];else Object.defineProperty(this,r,{configurable:!0,writable:!0,value:l});return E8=E8||s,l}catch(l){throw delete this[r],E8=E8||s,l}},set(s){Object.defineProperty(this,r,{configurable:!0,writable:!0,value:s})}})}function _0t(e,r,a,i){let s=v0t(e,r);if(!s)return;Object.defineProperty(s,r,{configurable:!0,get(){let l={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,r,l),l.value=a(this),Object.defineProperty(this,r,l),l.value},set(l){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:i,value:l})}})}var b0t="~constantCatch";function IZe(e){let r=()=>e;return r[b0t]=!0,r}var RZe;var SV={value:void 0,enumerable:!1},PZe="captureStackTrace"in Error?Error:null;function w0t(e){let r=PZe;if(r){let a=r.stackTraceLimit;if(typeof a==="number"){try{r.stackTraceLimit=0}catch{return PZe=null,new e}try{return new e}finally{r.stackTraceLimit=a}}}return new e}function It(e,r,a,i){let s={};function l(b){this.def=b,this.constr=v,this.traits=new Set}l.prototype=s;let c=a,d=c&&new WeakSet;function h(b,y){if(!b._zod){SV.value=new l(y);try{Object.defineProperty(b,"_zod",SV)}finally{SV.value=void 0}}if(b._zod.traits.has(e))return;if(b._zod.traits.add(e),r(b,y),d){let T=Object.getPrototypeOf(b),U=b._zod.constr.prototype,N=T;while(N&&N!==U)N=Object.getPrototypeOf(N);let j=N??T;if(!d.has(j))d.add(j),CZe(j,c)}let k=v.prototype;for(let T in k){if(!Object.prototype.hasOwnProperty.call(k,T))continue;if(!(T in b))b[T]=k[T].bind(b)}}let g=i?.Parent??Object;class x extends g{}Object.defineProperty(x,"name",{value:e});function v(b){let y=i?.Parent?w0t(x):this;h(y,b);let k=y._zod.deferred;if(k){for(let U of k)U();y._zod.deferred=void 0}let T=globalThis.__zod_globalConfig?.postProcessor;if(T)T(y);return y}return Object.defineProperty(v,"init",{value:h}),Object.defineProperty(v,Symbol.hasInstance,{value:(b)=>{if(i?.Parent&&b instanceof i.Parent)return!0;return b?._zod?.traits?.has(e)}}),Object.defineProperty(v,"name",{value:e}),v}class dM extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class pO extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`);this.name="ZodEncodeError"}}(RZe=globalThis).__zod_globalConfig??(RZe.__zod_globalConfig={});var nl=globalThis.__zod_globalConfig;function tc(e){if(e)Object.assign(nl,e);return nl}function z0t(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,dO,2)),e.message}function S0t(e){this._zod.message=e}var L0t={get:z0t,set:S0t,enumerable:!0,configurable:!0},kV={value:void 0,enumerable:!1},CV={value:void 0,enumerable:!1},TZe=new WeakSet([Object.prototype,Error.prototype]),AZe=(e,r)=>{e.name="$ZodError",kV.value=e._zod,Object.defineProperty(e,"_zod",kV),CV.value=r,Object.defineProperty(e,"issues",CV),kV.value=void 0,CV.value=void 0,Object.defineProperty(e,"message",L0t);let a=Object.getPrototypeOf(e);if(!TZe.has(a))TZe.add(a),Object.defineProperty(a,"toString",{configurable:!0,enumerable:!1,get(){let i=()=>this.message;return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}})},T3=It("$ZodError",AZe),IV=It("$ZodError",AZe,void 0,{Parent:Error});function k0t(e,r,a){if(!Object.prototype.hasOwnProperty.call(e,r))if(r==="__proto__")Object.defineProperty(e,r,{value:a(),writable:!0,enumerable:!0,configurable:!0});else e[r]=a();return e[r]}function EZe(e,r=(a)=>a.message){let a={},i=[];for(let s of e.issues)if(s.path.length>0)k0t(a,s.path[0],()=>[]).push(r(s));else i.push(r(s));return{formErrors:i,fieldErrors:a}}function DZe(e,r=(a)=>a.message){let a={_errors:[]},i=(s,l=[])=>{for(let c of s.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map((d)=>i({issues:d},[...l,...c.path]));else if(c.code==="invalid_key")i({issues:c.issues},[...l,...c.path]);else if(c.code==="invalid_element")i({issues:c.issues},[...l,...c.path]);else{let d=[...l,...c.path];if(d.length===0)a._errors.push(r(c));else{let h=a,g=0;while(g<d.length){let x=d[g],v=g===d.length-1;if(x==="_errors"){if(v)h._errors.push(r(c));g++;continue}if(!Object.prototype.hasOwnProperty.call(h,x))Object.defineProperty(h,x,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let b=h[x];if(v)b._errors.push(r(c));h=b,g++}}}};return i(e),a}function A3(e,r){return{callee:r?.callee??e,Err:r?.Err}}var E3=(e)=>{let r=(a,i,s,l)=>{let c=s?{...s,async:!1}:{async:!1},d=a._zod.run({value:i,issues:[]},c);if(d instanceof Promise)throw new dM;if(d.issues.length){let h=new(l?.Err??e)(d.issues.map((g)=>_Z(g,c,tc())));throw yV(h,l?.callee??r),h}return d.value};return r};var D3=(e)=>{let r=async(a,i,s,l)=>{let c=s?{...s,async:!0}:{async:!0},d=a._zod.run({value:i,issues:[]},c);if(d instanceof Promise)d=await d;if(d.issues.length){let h=new(l?.Err??e)(d.issues.map((g)=>_Z(g,c,tc())));throw yV(h,l?.callee??r),h}return d.value};return r};var mO=(e)=>(r,a,i)=>{let s=i?{...i,async:!1}:{async:!1},l=r._zod.run({value:a,issues:[]},s);if(l instanceof Promise)throw new dM;return l.issues.length?{success:!1,error:new(e??T3)(l.issues.map((c)=>_Z(c,s,tc())))}:{success:!0,data:l.value}},OZe=mO(IV),hO=(e)=>async(r,a,i)=>{let s=i?{...i,async:!0}:{async:!0},l=r._zod.run({value:a,issues:[]},s);if(l instanceof Promise)l=await l;return l.issues.length?{success:!1,error:new e(l.issues.map((c)=>_Z(c,s,tc())))}:{success:!0,data:l.value}},NZe=hO(IV);var FZe=(e)=>{let r=E3(e),a=(i,s,l,c)=>{let d=l?{...l,direction:"backward"}:{direction:"backward"};return r(i,s,d,A3(a,c))};return a};var jZe=(e)=>{let r=E3(e),a=(i,s,l,c)=>r(i,s,l,A3(a,c));return a};var BZe=(e)=>{let r=D3(e),a=async(i,s,l,c)=>{let d=l?{...l,direction:"backward"}:{direction:"backward"};return await r(i,s,d,A3(a,c))};return a};var UZe=(e)=>{let r=D3(e),a=async(i,s,l,c)=>await r(i,s,l,A3(a,c));return a};var YZe=(e)=>(r,a,i)=>{let s=i?{...i,direction:"backward"}:{direction:"backward"};return mO(e)(r,a,s)};var qZe=(e)=>(r,a,i)=>mO(e)(r,a,i);var HZe=(e)=>async(r,a,i)=>{let s=i?{...i,direction:"backward"}:{direction:"backward"};return hO(e)(r,a,s)};var VZe=(e)=>async(r,a,i)=>hO(e)(r,a,i);var WZe=/^[cC][0-9a-z]{6,}$/,GZe=/^[0-9a-z]+$/,KZe=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,XZe=/^[0-9a-vA-V]{20}$/,QZe=/^[A-Za-z0-9]{27}$/,JZe=/^[a-zA-Z0-9_-]{21}$/;function $Ze(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var epe=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var tpe=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,PV=(e)=>{if(!e)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)};var rpe=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var I0t="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function ope(){return new RegExp(I0t,"u")}var ape=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,npe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;var ipe=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,fpe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,spe=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,TV=/^[A-Za-z0-9_-]*$/;var lpe=/^https?$/,cpe=/^\+[1-9]\d{6,14}$/;var upe="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function R0t(e){return new RegExp(`^${e}$`)}var dpe=R0t(upe);function RV(e){return typeof e.precision==="number"?e.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":e.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?":"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function Zpe(e){return new RegExp(`^${RV(e)}$`)}function ppe(e){let r=["Z"];if(e.offset)r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${RV({precision:e.precision,seconds:!0})}(?:${r.join("|")})`,i=e.local?`${a}|${RV({precision:e.precision})}`:a;return new RegExp(`^${upe}T(?:${i})$`)}var mpe=(e)=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},hpe=/^-?\d+n?$/,O3=/^-?\d+$/,gO=/^-?\d+(?:\.\d+)?$/,gpe=/^(?:true|false)$/i;var Mpe=/^[^A-Z]*$/,xpe=/^[^a-z]*$/;var pf=It("$ZodCheck",(e,r)=>{var a;e._zod??(e._zod={}),e._zod.def=r,(a=e._zod).onattach??(a.onattach=[])});var AV=(e)=>{let r=e.value;return!gZe(r)&&r.length!==void 0},N3={number:"number",bigint:"bigint",object:"date"},EV=It("$ZodCheckLessThan",(e,r)=>{pf.init(e,r);let a=N3[typeof r.value];e._zod.onattach.push((i)=>{let s=i._zod.bag,l=(r.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(r.value<l)if(r.inclusive)s.maximum=r.value;else s.exclusiveMaximum=r.value}),e._zod.check=(i)=>{if(r.inclusive?i.value<=r.value:i.value<r.value)return;i.issues.push({origin:N3[typeof i.value]??a,code:"too_big",maximum:typeof r.value==="object"?r.value.getTime():r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),DV=It("$ZodCheckGreaterThan",(e,r)=>{pf.init(e,r);let a=N3[typeof r.value];e._zod.onattach.push((i)=>{let s=i._zod.bag,l=(r.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(r.value>l)if(r.inclusive)s.minimum=r.value;else s.exclusiveMinimum=r.value}),e._zod.check=(i)=>{if(r.inclusive?i.value>=r.value:i.value>r.value)return;i.issues.push({origin:N3[typeof i.value]??a,code:"too_small",minimum:typeof r.value==="object"?r.value.getTime():r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),vpe=It("$ZodCheckMultipleOf",(e,r)=>{pf.init(e,r),e._zod.onattach.push((a)=>{var i;(i=a._zod.bag).multipleOf??(i.multipleOf=r.value)}),e._zod.check=(a)=>{if(typeof a.value!==typeof r.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof a.value==="bigint"?r.value!==BigInt(0)&&a.value%r.value===BigInt(0):MZe(a.value,r.value)===0)return;a.issues.push({origin:typeof a.value,code:"not_multiple_of",divisor:r.value,input:a.value,inst:e,continue:!r.abort})}}),ype=It("$ZodCheckNumberFormat",(e,r)=>{pf.init(e,r),r.format=r.format||"float64";let a=r.format?.includes("int"),i=a?"int":"number",[s,l]=zZe[r.format];e._zod.onattach.push((c)=>{let d=c._zod.bag;if(d.format=r.format,d.minimum=s,d.maximum=l,a)d.pattern=O3}),e._zod.check=(c)=>{let d=c.value;if(a){if(!Number.isInteger(d)){c.issues.push({expected:i,format:r.format,code:"invalid_type",continue:!1,input:d,inst:e});return}if(!Number.isSafeInteger(d)){if(d>0)c.issues.push({input:d,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!r.abort});else c.issues.push({input:d,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!r.abort});return}}if(d<s)c.issues.push({origin:"number",input:d,code:"too_small",minimum:s,inclusive:!0,inst:e,continue:!r.abort});if(d>l)c.issues.push({origin:"number",input:d,code:"too_big",maximum:l,inclusive:!0,inst:e,continue:!r.abort})}});var _pe=It("$ZodCheckMaxLength",(e,r)=>{var a;pf.init(e,r),(a=e._zod.def).when??(a.when=AV),e._zod.onattach.push((i)=>{let s=i._zod.bag.maximum??Number.POSITIVE_INFINITY;if(r.maximum<s)i._zod.bag.maximum=r.maximum}),e._zod.check=(i)=>{let s=i.value,l=s.length;if((typeof s==="string"&&l>r.maximum?R3(s):l)<=r.maximum)return;let d=P3(s);i.issues.push({origin:d,code:"too_big",maximum:r.maximum,inclusive:!0,input:s,inst:e,continue:!r.abort})}}),bpe=It("$ZodCheckMinLength",(e,r)=>{var a;pf.init(e,r),(a=e._zod.def).when??(a.when=AV),e._zod.onattach.push((i)=>{let s=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(r.minimum>s)i._zod.bag.minimum=r.minimum}),e._zod.check=(i)=>{let s=i.value,l=s.length;if((typeof s==="string"&&l>=r.minimum&&l<r.minimum*2?R3(s):l)>=r.minimum)return;let d=P3(s);i.issues.push({origin:d,code:"too_small",minimum:r.minimum,inclusive:!0,input:s,inst:e,continue:!r.abort})}}),wpe=It("$ZodCheckLengthEquals",(e,r)=>{var a;pf.init(e,r),(a=e._zod.def).when??(a.when=AV),e._zod.onattach.push((i)=>{let s=i._zod.bag;s.minimum=r.length,s.maximum=r.length,s.length=r.length}),e._zod.check=(i)=>{let s=i.value,l=s.length,c=typeof s==="string"&&l>=r.length&&l<=r.length*2?R3(s):l;if(c===r.length)return;let d=P3(s),h=c>r.length;i.issues.push({origin:d,...h?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!r.abort})}}),xO=It("$ZodCheckStringFormat",(e,r)=>{var a,i;if(pf.init(e,r),e._zod.onattach.push((s)=>{let l=s._zod.bag;if(l.format=r.format,r.pattern)l.patterns??(l.patterns=new Set),l.patterns.add(r.pattern)}),r.pattern)(a=e._zod).check??(a.check=(s)=>{if(r.pattern.lastIndex=0,r.pattern.test(s.value))return;s.issues.push({origin:"string",code:"invalid_format",format:r.format,input:s.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})});else(i=e._zod).check??(i.check=()=>{})}),zpe=It("$ZodCheckRegex",(e,r)=>{xO.init(e,r),e._zod.check=(a)=>{if(r.pattern.lastIndex=0,r.pattern.test(a.value))return;a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Spe=It("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Mpe),xO.init(e,r)}),Lpe=It("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=xpe),xO.init(e,r)}),kpe=It("$ZodCheckIncludes",(e,r)=>{pf.init(e,r);let a=O8(r.includes),i=new RegExp(typeof r.position==="number"?`^.{${r.position},}${a}`:a);r.pattern=i,e._zod.onattach.push((s)=>{let l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(i)}),e._zod.check=(s)=>{if(s.value.includes(r.includes,r.position))return;s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:s.value,inst:e,continue:!r.abort})}}),Cpe=It("$ZodCheckStartsWith",(e,r)=>{pf.init(e,r);let a=new RegExp(`^${O8(r.prefix)}.*`);r.pattern??(r.pattern=a),e._zod.onattach.push((i)=>{let s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(a)}),e._zod.check=(i)=>{if(i.value.startsWith(r.prefix))return;i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:i.value,inst:e,continue:!r.abort})}}),Ipe=It("$ZodCheckEndsWith",(e,r)=>{pf.init(e,r);let a=new RegExp(`.*${O8(r.suffix)}$`);r.pattern??(r.pattern=a),e._zod.onattach.push((i)=>{let s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(a)}),e._zod.check=(i)=>{if(i.value.endsWith(r.suffix))return;i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:i.value,inst:e,continue:!r.abort})}});var Rpe=It("$ZodCheckOverwrite",(e,r)=>{pf.init(e,r),e._zod.check=(a)=>{a.value=r.tx(a.value)}});class OV{constructor(e=[],r={}){this.content=[],this.indent=0,this.args=e,this.closed=r}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e==="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let a=e.split(`
|
|
145
|
+
`).filter((l)=>l),i=Math.min(...a.map((l)=>l.length-l.trimStart().length)),s=a.map((l)=>l.slice(i)).map((l)=>" ".repeat(this.indent*2)+l);for(let l of s)this.content.push(l)}compile(){let e=Function,r=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
|
|
146
|
+
${r.join(`
|
|
147
|
+
`)}
|
|
148
|
+
};`)(...Object.values(this.closed))}}var Tpe={major:4,minor:5,patch:4};var wa=It("$ZodType",(e,r)=>{var a;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Tpe;let i=e._zod.def.checks,s=e._zod.traits.has("$ZodCheck")?[e,...i??[]]:i?.length?[...i]:[];for(let l of s)for(let c of l._zod.onattach)c(e);if(s.length===0)(a=e._zod).deferred??(a.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let l=(d,h,g)=>{if(d.memo)return d;let x=wL(d),v;for(let b of h){if(b._zod.def.when){if(LZe(d))continue;if(!b._zod.def.when(d))continue}else if(x)continue;let y=d.issues.length,k=b._zod.check(d);if(k instanceof Promise&&g?.async===!1)throw new dM;if(v||k instanceof Promise)v=(v??Promise.resolve()).then(async()=>{if(await k,d.issues.length===y)return;if(wV(d.issues,y,e),!x)x=wL(d,y)});else{if(d.issues.length===y)continue;if(wV(d.issues,y,e),!x)x=wL(d,y)}}if(v)return v.then(()=>d);return d},c=(d,h,g)=>{if(wL(d))return d.aborted=!0,d;let x=l(h,s,g);if(x instanceof Promise){if(g.async===!1)throw new dM;return x.then((v)=>e._zod.parse(v,g))}return e._zod.parse(x,g)};e._zod.run=(d,h)=>{if(h.skipChecks)return e._zod.parse(d,h);if(h.direction==="backward"){let x=e._zod.parse({value:d.value,issues:[]},{...h,skipChecks:!0});if(x instanceof Promise)return x.then((v)=>c(v,d,h));return c(x,d,h)}let g=e._zod.parse(d,h);if(g instanceof Promise){if(h.async===!1)throw new dM;return g.then((x)=>l(x,s,h))}return l(g,s,h)}}},{get "~standard"(){return zV(this,"~standard",jV(this))},set "~standard"(e){_L(this,"~standard",e)}}),Ape=(e)=>e.success?{value:e.data}:{issues:e.error?.issues};function jV(e){return{validate:(r)=>{try{return Ape(OZe(e,r))}catch(a){return NZe(e,r).then(Ape)}},vendor:"zod",version:1}}var B3=It("$ZodString",(e,r)=>{wa.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??mpe(e._zod.bag),e._zod.parse=(a,i)=>{if(r.coerce)try{a.value=String(a.value)}catch(s){}if(typeof a.value==="string")return a;return a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),mn=It("$ZodStringFormat",(e,r)=>{xO.init(e,r),B3.init(e,r)}),qpe=It("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=tpe),mn.init(e,r)}),Hpe=It("$ZodUUID",(e,r)=>{if(r.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(i===void 0)throw Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=PV(i))}else r.pattern??(r.pattern=PV());mn.init(e,r)}),Vpe=It("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=rpe),mn.init(e,r)}),Wpe=1,Gpe=2;function P0t(e,r){if(!r.normalize&&r.protocol?.source===lpe.source&&!/^https?:\/\//i.test(e))return Wpe;try{return new URL(e)}catch{return Gpe}}var T0t=/[\t\n\r]/g;function A0t(e){return e.replace(T0t,"")}function E0t(e,r){return r.lastIndex=0,r.test(e.hostname)}function D0t(e,r){return r.lastIndex=0,r.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var Kpe=It("$ZodURL",(e,r)=>{mn.init(e,r),e._zod.check=(a)=>{try{let i=a.value.trim(),s=P0t(i,r);if(s===Wpe){a.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:a.value,inst:e,continue:!r.abort});return}if(s===Gpe){a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:e,continue:!r.abort});return}if(r.hostname&&!E0t(s,r.hostname))a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:a.value,inst:e,continue:!r.abort});if(r.protocol&&!D0t(s,r.protocol))a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:a.value,inst:e,continue:!r.abort});a.value=r.normalize?s.href:A0t(i);return}catch(i){a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:e,continue:!r.abort})}}}),Xpe=It("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=ope()),mn.init(e,r)}),Qpe=It("$ZodNanoID",(e,r)=>{if(r.length!==void 0&&(!Number.isInteger(r.length)||r.length<1))throw Error(`Invalid nanoid length: ${r.length}`);r.pattern??(r.pattern=r.length===void 0?JZe:$Ze(r.length)),mn.init(e,r)}),Jpe=It("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=WZe),mn.init(e,r)}),$pe=It("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=GZe),mn.init(e,r)}),eme=It("$ZodULID",(e,r)=>{r.pattern??(r.pattern=KZe),mn.init(e,r)}),tme=It("$ZodXID",(e,r)=>{r.pattern??(r.pattern=XZe),mn.init(e,r)}),rme=It("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=QZe),mn.init(e,r)}),ome=It("$ZodISODateTime",(e,r)=>{if(r.pattern??(r.pattern=ppe(r)),mn.init(e,r),r.local||r.precision===-1)e._zod.bag.laxFormat=!0,e._zod.onattach.push((a)=>{a._zod.bag.laxFormat=!0})}),ame=It("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=dpe),mn.init(e,r)}),nme=It("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Zpe(r)),mn.init(e,r)}),ime=It("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=epe),mn.init(e,r)}),fme=It("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=ape),mn.init(e,r),e._zod.bag.format="ipv4"}),O0t=/^[0-9a-fA-F:.]+$/;function sme(e){if(!O0t.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}var lme=It("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=npe),mn.init(e,r),e._zod.bag.format="ipv6",e._zod.check=(a)=>{if(!sme(a.value))a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:e,continue:!r.abort})}});var cme=It("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=ipe),mn.init(e,r)});function N0t(e){let r=e.split("/");if(r.length!==2)return!1;let[a,i]=r;if(!i)return!1;let s=Number(i);if(`${s}`!==i)return!1;if(s<0||s>128)return!1;return sme(a)}var ume=It("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=fpe),mn.init(e,r),e._zod.check=(a)=>{if(!N0t(a.value))a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:e,continue:!r.abort})}});function dme(e){if(e==="")return!0;if(/\s/.test(e))return!1;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Zme=It("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=spe),mn.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=(a)=>{if(dme(a.value))return;a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:e,continue:!r.abort})}});function F0t(e){if(!TV.test(e))return!1;let r=e.replace(/[-_]/g,(i)=>i==="-"?"+":"/"),a=r.padEnd(Math.ceil(r.length/4)*4,"=");return dme(a)}var pme=It("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=TV),mn.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=(a)=>{if(F0t(a.value))return;a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:e,continue:!r.abort})}}),mme=It("$ZodE164",(e,r)=>{r.pattern??(r.pattern=cpe),mn.init(e,r)});function j0t(e,r=null){try{let a=e.split(".");if(a.length!==3)return!1;let[i]=a;if(!i)return!1;let s=JSON.parse(atob(i));if("typ"in s&&s?.typ!=="JWT")return!1;if(!s.alg)return!1;if(r&&(!("alg"in s)||s.alg!==r))return!1;return!0}catch{return!1}}var hme=It("$ZodJWT",(e,r)=>{mn.init(e,r),e._zod.check=(a)=>{if(j0t(a.value,r.alg))return;a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:e,continue:!r.abort})}});var BV=It("$ZodNumber",(e,r)=>{wa.init(e,r),e._zod.pattern=e._zod.bag.pattern??gO,e._zod.parse=(a,i)=>{if(r.coerce)try{a.value=Number(a.value)}catch(c){}let s=a.value;if(typeof s==="number"&&!Number.isNaN(s)&&Number.isFinite(s))return a;let l=typeof s==="number"?Number.isNaN(s)?"NaN":!Number.isFinite(s)?String(s):void 0:void 0;return a.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...l?{received:l}:{}}),a}}),gme=It("$ZodNumberFormat",(e,r)=>{ype.init(e,r),BV.init(e,r)}),Mme=It("$ZodBoolean",(e,r)=>{wa.init(e,r),e._zod.pattern=gpe,e._zod.parse=(a,i)=>{if(r.coerce)try{a.value=Boolean(a.value)}catch(l){}let s=a.value;if(typeof s==="boolean")return a;return a.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:e}),a}}),xme=It("$ZodBigInt",(e,r)=>{wa.init(e,r),e._zod.pattern=hpe,e._zod.parse=(a,i)=>{if(r.coerce)try{a.value=BigInt(a.value)}catch(s){}if(typeof a.value==="bigint")return a;return a.issues.push({expected:"bigint",code:"invalid_type",input:a.value,inst:e}),a}});var vme=It("$ZodAny",(e,r)=>{wa.init(e,r),e._zod.parse=(a)=>a}),yme=It("$ZodUnknown",(e,r)=>{wa.init(e,r),e._zod.parse=(a)=>a}),_me=It("$ZodNever",(e,r)=>{wa.init(e,r),e._zod.parse=(a,i)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:e}),a)});var bme=It("$ZodDate",(e,r)=>{wa.init(e,r),e._zod.parse=(a,i)=>{if(r.coerce)try{a.value=new Date(a.value)}catch(d){}let s=a.value,l=s instanceof Date;if(l&&!Number.isNaN(s.getTime()))return a;return a.issues.push({expected:"date",code:"invalid_type",input:s,...l?{received:"Invalid Date"}:{},inst:e}),a}});function Epe(e,r,a){if(e.issues.length)r.issues.push(...N8(a,e.issues));r.value[a]=e.value}var wme=It("$ZodArray",(e,r)=>{wa.init(e,r);let a=nl.memoizer;a?.attach(e),e._zod.parse=(i,s)=>{let l=i.value;if(!Array.isArray(l))return i.issues.push({expected:"array",code:"invalid_type",input:l,inst:e}),i;i.value=a?a.alloc(e,i,Array(l.length),s):Array(l.length);let c=[];for(let d=0;d<l.length;d++){let h=l[d],g=r.element._zod.run({value:h,issues:[]},s);if(g instanceof Promise)c.push(g.then((x)=>Epe(x,i,d)));else Epe(g,i,d)}if(c.length)return Promise.all(c).then(()=>i);return i}});function j3(e,r,a,i,s,l){let c=a in i,d=l==="optional";if(!c&&d&&s==="optional")return;if(e.issues.length){if(s!==void 0&&d&&!c)return;r.issues.push(...N8(a,e.issues))}if(!c&&s===void 0){if(!e.issues.length)r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[a]});return}if(e.value===void 0){if(c)r.value[a]=void 0}else r.value[a]=e.value}var B0t=[];function zme(e){let r=Object.keys(e.shape),a=Object.getOwnPropertySymbols(e.shape),i=a.length?a:B0t,s=i.length?[...r,...i]:r;for(let c of s)if(!e.shape?.[c]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(c)}": expected a Zod schema`);let l=wZe(e.shape);return{...e,allKeys:s,symbolKeys:i,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(l)}}function Sme(e,r,a,i,s,l){let c=[],d=s.keySet,h=s.catchall._zod,g=h.def.type,{optin:x,optout:v}=h;for(let b in r){if(d.has(b))continue;if(b==="__proto__"){if(g==="never")c.push(b);continue}if(g==="never"){c.push(b);continue}let y=h.run({value:r[b],issues:[]},i);if(y instanceof Promise)e.push(y.then((k)=>j3(k,a,b,r,x,v)));else j3(y,a,b,r,x,v)}if(c.length)a.issues.push({code:"unrecognized_keys",keys:c,input:r,inst:l,continue:!0});if(!e.length)return a;return Promise.all(e).then(()=>a)}var NV=new WeakMap,U0t=It("$ZodObject",(e,r)=>{if(wa.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let h=r.shape;NV.set(r,h),Object.defineProperty(r,"shape",{get:()=>{let g={...h};return Object.defineProperty(r,"shape",{value:g}),NV.set(r,g),g}})}let i=ZO(()=>zme(r));Ao(e,"propValues",(h)=>{let g=h.def.shape,x={};for(let v in g){let b=g[v]._zod;if(b.values){if(!Object.prototype.hasOwnProperty.call(x,v))Ui(x,v,new Set);for(let y of b.values)x[v].add(y);if(b.optin!==void 0)x[v].add(void 0)}}return x});let s=VR,l=r.catchall,c,d=nl.memoizer;d?.attach(e),e._zod.parse=(h,g)=>{c??(c=i.value);let x=h.value;if(!s(x))return h.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),h;h.value=d?d.alloc(e,h,{},g):{};let v=[],b=c.shape;for(let y of c.allKeys){if(y==="__proto__")continue;let k=b[y],T=k._zod.optin,U=k._zod.optout,N=k._zod.run({value:x[y],issues:[]},g);if(N instanceof Promise)v.push(N.then((j)=>j3(j,h,y,x,T,U)));else j3(N,h,y,x,T,U)}if(!l)return v.length?Promise.all(v).then(()=>h):h;return Sme(v,x,h,g,i.value,e)}}),Lme=It("$ZodObjectJIT",(e,r)=>{U0t.init(e,r);let a=e._zod.parse,i=ZO(()=>zme(r)),s=nl.memoizer,l=(y)=>{let k=i.value,T=k.symbolKeys,U=new OV(["payload","ctx"],{shape:y,inst:e,memo:s,syms:T}),N=(J)=>`shape[${J}]._zod.run({ value: input[${J}], issues: [] }, ctx)`,j=(J,ee)=>`
|
|
149
|
+
for (let i = 0; i < ${J}.issues.length; i++) {
|
|
150
|
+
const iss = ${J}.issues[i];
|
|
151
|
+
iss.path = iss.path ? [${ee}, ...iss.path] : [${ee}];
|
|
152
|
+
payload.issues.push(iss);
|
|
153
|
+
}`;U.write("const input = payload.value;");let G=Object.create(null),X=0;for(let J of k.allKeys)G[J]=`key_${X++}`;U.write(s?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let J of k.allKeys){if(J==="__proto__")continue;let ee=G[J],re=typeof J==="symbol"?`syms[${T.indexOf(J)}]`:vZe(J),oe=`${re} in input`,fe=y[J],be=fe?._zod?.optin,We=be!==void 0,Ye=fe?._zod?.optout==="optional";if(U.write(`const ${ee} = ${N(re)};`),We&&Ye){let Se=be==="optional"?`${ee}_present`:`${ee}.value !== undefined || ${ee}_present`;U.write(`
|
|
154
|
+
const ${ee}_present = ${oe};
|
|
155
|
+
if (!${ee}.issues.length || ${ee}_present) {
|
|
156
|
+
if (${ee}.issues.length) {${j(ee,re)}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (${Se}) {
|
|
160
|
+
newResult[${re}] = ${ee}.value;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
`)}else if(!We)U.write(`
|
|
165
|
+
const ${ee}_present = ${oe};
|
|
166
|
+
if (${ee}.issues.length) {${j(ee,re)}
|
|
167
|
+
}
|
|
168
|
+
if (!${ee}_present && !${ee}.issues.length) {
|
|
169
|
+
payload.issues.push({
|
|
170
|
+
code: "invalid_type",
|
|
171
|
+
expected: "nonoptional",
|
|
172
|
+
input: undefined,
|
|
173
|
+
path: [${re}]
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (${ee}_present) {
|
|
178
|
+
newResult[${re}] = ${ee}.value;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
`);else U.write(`
|
|
182
|
+
if (${ee}.issues.length) {${j(ee,re)}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
if (${ee}.value === undefined) {
|
|
186
|
+
if (${oe}) {
|
|
187
|
+
newResult[${re}] = undefined;
|
|
188
|
+
}
|
|
189
|
+
} else {
|
|
190
|
+
newResult[${re}] = ${ee}.value;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
`)}return U.write("payload.value = newResult;"),U.write("return payload;"),U.compile()},c,d=VR,h=!nl.jitless,x=h&&_Ze.value,v=r.catchall,b;e._zod.parse=(y,k)=>{b??(b=i.value);let T=y.value;if(!d(T))return y.issues.push({expected:"object",code:"invalid_type",input:T,inst:e}),y;if(h&&x&&k?.async===!1&&k.jitless!==!0){if(!c)c=l(r.shape);if(y=c(y,k),!v)return y;return Sme([],T,y,k,b,e)}return a(y,k)}});function Dpe(e,r,a,i){for(let l of e)if(l.issues.length===0)return r.value=l.value,r;let s=e.filter((l)=>!wL(l));if(s.length===1)return r.value=s[0].value,s[0];return r.issues.push({code:"invalid_union",input:r.value,inst:a,errors:e.map((l)=>l.issues.map((c)=>_Z(c,i,tc())))}),r}var UV=It("$ZodUnion",(e,r)=>{wa.init(e,r),Ao(e,"optin",(i)=>i.def.options.some((s)=>s._zod.optin==="defaulted")?"defaulted":i.def.options.some((s)=>s._zod.optin!==void 0)?"optional":void 0),Ao(e,"optout",(i)=>i.def.options.some((s)=>s._zod.optout==="optional")?"optional":void 0),Ao(e,"values",(i)=>{if(i.def.options.every((s)=>s._zod.values))return new Set(i.def.options.flatMap((s)=>Array.from(s._zod.values)));return}),Ao(e,"pattern",(i)=>{if(i.def.options.every((s)=>s._zod.pattern)){let s=i.def.options.map((l)=>l._zod.pattern);return new RegExp(`^(${s.map((l)=>I3(l.source)).join("|")})$`)}return});let a=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(i,s)=>{if(a)return a(i,s);let l=!1,c=[];for(let d of r.options){let h=d._zod.run({value:i.value,issues:[]},s);if(h instanceof Promise)c.push(h),l=!0;else{if(h.issues.length===0)return h;c.push(h)}}if(!l)return Dpe(c,i,e,s);return Promise.all(c).then((d)=>Dpe(d,i,e,s))}});var kme=It("$ZodDiscriminatedUnion",(e,r)=>{r.inclusive=!1,UV.init(e,r);let a=e._zod.parse;Ao(e,"propValues",(s)=>{let l={};for(let c of s.def.options){let d=c._zod.propValues;if(!d||Object.keys(d).length===0)throw Error(`Invalid discriminated union option at index "${s.def.options.indexOf(c)}"`);for(let[h,g]of Object.entries(d)){if(!Object.prototype.hasOwnProperty.call(l,h))Ui(l,h,new Set);for(let x of g)l[h].add(x)}}return l}),r.options.forEach((s,l)=>{let c=NV.get(s._zod.def);if(c&&!Object.prototype.hasOwnProperty.call(c,r.discriminator))throw Error(`Invalid discriminated union option at index "${l}"`)});let i=ZO(()=>{let s=r.options,l=new Map;for(let c of s){let d=c._zod.propValues?.[r.discriminator];if(!d||d.size===0)throw Error(`Invalid discriminated union option at index "${r.options.indexOf(c)}"`);for(let h of d){if(l.has(h))throw Error(`Duplicate discriminator value "${String(h)}"`);l.set(h,c)}}return l});e._zod.parse=(s,l)=>{let c=s.value;if(!VR(c))return s.issues.push({code:"invalid_type",expected:"object",input:c,inst:e}),s;let d=i.value.get(c?.[r.discriminator]);if(d)return d._zod.run(s,l);if(r.unionFallback||l.direction==="backward")return a(s,l);return s.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(i.value.keys()),input:c,path:[r.discriminator],inst:e}),s}}),Cme=It("$ZodIntersection",(e,r)=>{wa.init(e,r),e._zod.parse=(a,i)=>{let s=a.value,l=r.left._zod.run({value:s,issues:[]},i),c=r.right._zod.run({value:s,issues:[]},i);if(l instanceof Promise||c instanceof Promise)return Promise.all([l,c]).then(([h,g])=>Ope(a,h,g));return Ope(a,l,c)}});function FV(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e===+r)return{valid:!0,data:e};if(bL(e)&&bL(r)){let a=Object.keys(r),i=Object.keys(e).filter((l)=>a.indexOf(l)!==-1),s={...e,...r};if(Object.prototype.hasOwnProperty.call(s,"__proto__"))delete s.__proto__;for(let l of i){if(l==="__proto__")continue;let c=FV(e[l],r[l]);if(!c.valid)return{valid:!1,mergeErrorPath:[l,...c.mergeErrorPath]};s[l]=c.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let a=[];for(let i=0;i<e.length;i++){let s=e[i],l=r[i],c=FV(s,l);if(!c.valid)return{valid:!1,mergeErrorPath:[i,...c.mergeErrorPath]};a.push(c.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function Ope(e,r,a){let i=new Map,s,l=new Map,c=(g,x)=>{let v;if(g.code==="unrecognized_keys"&&!g.path?.length)s??(s=g),v=g.keys;else if(g.code==="invalid_key"&&g.origin==="record"&&g.path?.length===1){let b=String(g.path[0]);if(!l.has(b))l.set(b,g);v=[b]}else return!1;for(let b of v){if(!i.has(b))i.set(b,{});i.get(b)[x]=!0}return!0};for(let g of r.issues)if(!c(g,"l"))e.issues.push(g);for(let g of a.issues)if(!c(g,"r"))e.issues.push(g);let d=[...i].filter(([,g])=>g.l&&g.r).map(([g])=>g);if(d.length){let g=s?d.filter((x)=>s.keys.includes(x)):[];if(g.length)e.issues.push({...s,keys:g});for(let x of d)if(!g.includes(x)&&l.has(x))e.issues.push(l.get(x))}let h=FV(r.value,a.value);if(!h.valid){if(wL(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(h.mergeErrorPath)}`)}return e.value=h.data,e}var Ime=It("$ZodRecord",(e,r)=>{wa.init(e,r);let a=nl.memoizer;a?.attach(e),e._zod.parse=(i,s)=>{let l=i.value;if(!bL(l))return i.issues.push({expected:"record",code:"invalid_type",input:l,inst:e}),i;let c=[],d=r.keyType._zod.values;if(d&&!r.partial){i.value=a?a.alloc(e,i,{},s):{};let h=new Set;for(let x of d)if(typeof x==="string"||typeof x==="number"||typeof x==="symbol"){if(h.add(typeof x==="number"?x.toString():x),x==="__proto__")continue;let v=r.keyType._zod.run({value:x,issues:[]},s);if(v instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(v.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:v.issues.map((k)=>_Z(k,s,tc())),input:x,path:[x],inst:e});continue}let b=v.value;if(b==="__proto__")continue;let y=r.valueType._zod.run({value:l[x],issues:[]},s);if(y instanceof Promise)c.push(y.then((k)=>{if(k.issues.length)i.issues.push(...N8(x,k.issues));i.value[b]=k.value}));else{if(y.issues.length)i.issues.push(...N8(x,y.issues));i.value[b]=y.value}}let g;for(let x in l)if(!h.has(x))if(r.mode==="loose"){if(x==="__proto__")continue;i.value[x]=l[x]}else g=g??[],g.push(x);if(g&&g.length>0)i.issues.push({code:"unrecognized_keys",input:l,inst:e,keys:g,continue:!0})}else{i.value=a?a.alloc(e,i,{},s):{};let h;for(let g of Reflect.ownKeys(l)){if(g==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(l,g))continue;let x=r.keyType._zod.run({value:g,issues:[]},s);if(x instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof g==="string"&&gO.test(g)&&x.issues.length){let k=r.keyType._zod.run({value:Number(g),issues:[]},s);if(k instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(k.issues.length===0)x=k}if(x.issues.length){if(r.mode==="loose")i.value[g]=l[g];else if(d)h=h??[],h.push(g);else i.issues.push({code:"invalid_key",origin:"record",issues:x.issues.map((k)=>_Z(k,s,tc())),input:g,path:[g],inst:e});continue}let b=x.value;if(b==="__proto__")continue;let y=r.valueType._zod.run({value:l[g],issues:[]},s);if(y instanceof Promise)c.push(y.then((k)=>{if(k.issues.length)i.issues.push(...N8(g,k.issues));i.value[b]=k.value}));else{if(y.issues.length)i.issues.push(...N8(g,y.issues));i.value[b]=y.value}}if(h&&h.length>0)i.issues.push({code:"unrecognized_keys",input:l,inst:e,keys:h,continue:!0})}if(c.length)return Promise.all(c).then(()=>i);return i}});var Rme=It("$ZodEnum",(e,r)=>{wa.init(e,r);let a=C3(r.entries),i=new Set(a);e._zod.values=i;let s=a.filter((l)=>bZe.has(typeof l));e._zod.pattern=new RegExp(s.length?`^(${s.map((l)=>O8(l.toString())).join("|")})$`:"^[^\\s\\S]$"),e._zod.parse=(l,c)=>{let d=l.value;if(i.has(d))return l;return l.issues.push({code:"invalid_value",values:a,input:d,inst:e}),l}}),Pme=It("$ZodLiteral",(e,r)=>{wa.init(e,r);let a=new Set(r.values);e._zod.values=a,e._zod.pattern=new RegExp(r.values.length?`^(${r.values.map((i)=>typeof i==="string"?O8(i):i?O8(i.toString()):String(i)).join("|")})$`:"^[^\\s\\S]$"),e._zod.parse=(i,s)=>{let l=i.value;if(a.has(l))return i;return i.issues.push({code:"invalid_value",values:r.values,input:l,inst:e}),i}});var Tme=It("$ZodTransform",(e,r)=>{wa.init(e,r),e._zod.optin="optional",nl.memoizer?.guard(e),e._zod.parse=(a,i)=>{if(i.direction==="backward")throw new pO(e.constructor.name);let s=r.transform(a.value,a);if(i.async)return(s instanceof Promise?s:Promise.resolve(s)).then((c)=>(a.value=c,a));if(s instanceof Promise)throw new dM;return a.value=s,a}});function Npe(e,r){return e.value=r.issues.length?void 0:r.value,e}var YV=It("$ZodOptional",(e,r)=>{wa.init(e,r),Ao(e,"optin",(a)=>a.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Ao(e,"values",(a)=>{let i=a.def.innerType._zod.values;return i?new Set([...i,void 0]):void 0}),Ao(e,"pattern",(a)=>{let i=a.def.innerType._zod.pattern;return i?new RegExp(`^(${I3(i.source)})?$`):void 0}),e._zod.parse=(a,i)=>{if(a.value===void 0){if(r.innerType._zod.optin!=="defaulted")return a;let s=r.innerType._zod.run({value:a.value,issues:[]},i);if(s instanceof Promise)return s.then((l)=>Npe(a,l));return Npe(a,s)}return r.innerType._zod.run(a,i)}}),Ame=It("$ZodExactOptional",(e,r)=>{YV.init(e,r),Ao(e,"values",(a)=>a.def.innerType._zod.values),Ao(e,"pattern",(a)=>a.def.innerType._zod.pattern),e._zod.parse=(a,i)=>r.innerType._zod.run(a,i)}),Eme=It("$ZodNullable",(e,r)=>{wa.init(e,r),Ao(e,"optin",(a)=>a.def.innerType._zod.optin),Ao(e,"optout",(a)=>a.def.innerType._zod.optout),Ao(e,"pattern",(a)=>{let i=a.def.innerType._zod.pattern;return i?new RegExp(`^(${I3(i.source)}|null)$`):void 0}),Ao(e,"values",(a)=>a.def.innerType._zod.values?new Set([...a.def.innerType._zod.values,null]):void 0),e._zod.parse=(a,i)=>{if(a.value===null)return a;return r.innerType._zod.run(a,i)}}),Dme=It("$ZodDefault",(e,r)=>{wa.init(e,r),e._zod.optin="defaulted",Ao(e,"values",(a)=>a.def.innerType._zod.values),e._zod.parse=(a,i)=>{if(i.direction==="backward")return r.innerType._zod.run(a,i);if(a.value===void 0)return a.value=r.defaultValue,a;let s=r.innerType._zod.run(a,i);if(s instanceof Promise)return s.then((l)=>Fpe(l,r));return Fpe(s,r)}});function Fpe(e,r){if(e.value===void 0)e.value=r.defaultValue;return e}var Ome=It("$ZodPrefault",(e,r)=>{wa.init(e,r),e._zod.optin="defaulted",Ao(e,"values",(a)=>a.def.innerType._zod.values),e._zod.parse=(a,i)=>{if(i.direction==="backward")return r.innerType._zod.run(a,i);if(a.value===void 0)a.value=r.defaultValue;return r.innerType._zod.run(a,i)}}),Nme=It("$ZodNonOptional",(e,r)=>{wa.init(e,r),Ao(e,"values",(a)=>{let i=a.def.innerType._zod.values;return i?new Set([...i].filter((s)=>s!==void 0)):void 0}),e._zod.parse=(a,i)=>{let s=r.innerType._zod.run(a,i);if(s instanceof Promise)return s.then((l)=>jpe(l,e));return jpe(s,e)}});function jpe(e,r){if(!e.issues.length&&e.value===void 0)e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r});return e}function Bpe(e,r,a,i){if(!r.issues.length){if(e.value=r.value,r.memo)e.memo=!0;return e}return e.value=a.catchValue({...r,value:e.value,error:{issues:r.issues.map((s)=>_Z(s,i,tc()))},input:e.value}),e}var Fme=It("$ZodCatch",(e,r)=>{wa.init(e,r),Ao(e,"optin",(a)=>a.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),Ao(e,"optout",(a)=>a.def.innerType._zod.optout),Ao(e,"values",(a)=>a.def.innerType._zod.values),e._zod.parse=(a,i)=>{if(i.direction==="backward")return r.innerType._zod.run(a,i);let s=r.innerType._zod.run({value:a.value,issues:[]},i);if(s instanceof Promise)return s.then((l)=>Bpe(a,l,r,i));return Bpe(a,s,r,i)}});var jme=It("$ZodPipe",(e,r)=>{wa.init(e,r),Ao(e,"values",(a)=>a.def.in._zod.values),Ao(e,"optin",(a)=>a.def.in._zod.optin),Ao(e,"optout",(a)=>a.def.out._zod.optout),Ao(e,"propValues",(a)=>a.def.in._zod.propValues),e._zod.parse=(a,i)=>{if(i.direction==="backward"){let l=r.out._zod.run(a,i);if(l instanceof Promise)return l.then((c)=>F3(c,r.in,i));return F3(l,r.in,i)}let s=r.in._zod.run(a,i);if(s instanceof Promise)return s.then((l)=>F3(l,r.out,i));return F3(s,r.out,i)}});function F3(e,r,a){if(e.issues.some((i)=>i.code!=="unrecognized_keys"))return e.aborted=!0,e;return r._zod.run({value:e.value,issues:e.issues},a)}var Bme=It("$ZodReadonly",(e,r)=>{wa.init(e,r),Ao(e,"propValues",(a)=>a.def.innerType._zod.propValues),Ao(e,"values",(a)=>a.def.innerType._zod.values),Ao(e,"optin",(a)=>a.def.innerType?._zod?.optin),Ao(e,"optout",(a)=>a.def.innerType?._zod?.optout),e._zod.parse=(a,i)=>{if(i.direction==="backward")return r.innerType._zod.run(a,i);let s=r.innerType._zod.run(a,i);if(s instanceof Promise)return s.then(Upe);return Upe(s)}});function Upe(e){if(!e.memo)e.value=Object.freeze(e.value);return e}var Ume=It("$ZodLazy",(e,r)=>{wa.init(e,r),xZe(e._zod,"innerType",()=>{let a=r;if(!a._cachedInner)a._cachedInner=r.getter();return a._cachedInner}),Ao(e,"pattern",(a)=>a.innerType?._zod?.pattern),Ao(e,"propValues",(a)=>a.innerType?._zod?.propValues),Ao(e,"optin",(a)=>a.innerType?._zod?.optin??void 0),Ao(e,"optout",(a)=>a.innerType?._zod?.optout??void 0),e._zod.parse=(a,i)=>e._zod.innerType._zod.run(a,i)}),Yme=It("$ZodCustom",(e,r)=>{pf.init(e,r),wa.init(e,r),e._zod.parse=(a,i)=>a,e._zod.check=(a)=>{let i=a.value,s=r.fn(i);if(s instanceof Promise)return s.then((l)=>Ype(l,a,i,e));Ype(s,a,i,e);return}});function Ype(e,r,a,i){if(!e){let s={code:"custom",input:a,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};if(i._zod.def.params)s.params=i._zod.def.params;r.issues.push(zL(s))}}class Vme extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform");this.name="ZodCyclicError"}}var HV="~memo",qme=[];function qV(e){return e.map((r)=>r.path?{...r,path:r.path.slice()}:{...r})}var Hme=new WeakMap;function Wme(e,r){let a=Hme.get(e);if(a!==void 0)return a;if(r.has(e))return!0;r.add(e);let i=!1,s=(d)=>{if(!i&&d?._zod&&Wme(d,r))i=!0},l=e._zod.def,c=l.type;switch(c){case"object":{for(let d of Reflect.ownKeys(l.shape))s(l.shape[d]);s(l.catchall);break}case"array":s(l.element);break;case"tuple":for(let d of l.items)s(d);s(l.rest);break;case"record":case"map":s(l.keyType),s(l.valueType);break;case"set":s(l.valueType);break;case"union":for(let d of l.options)s(d);break;case"intersection":s(l.left),s(l.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":s(l.innerType);break;case"pipe":s(l.in),s(l.out);break;case"function":s(l.input),s(l.output);break;case"lazy":s(e._zod.innerType);break;case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let d in l){let h=Object.getOwnPropertyDescriptor(l,d);if(!h||h.get)continue;let g=h.value;if(!g||typeof g!=="object")continue;if(g._zod)s(g);else if(Array.isArray(g))for(let x of g)s(x)}}return r.delete(e),Hme.set(e,i),i}function Y0t(e,r){let a=e.buckets.get(r);if(!a)a=new Map,e.buckets.set(r,a);return a}var U3,Y3=[],q0t={alloc(e,r,a){let i=U3;if(!i)return a;U3=void 0;let s={value:a,issues:null};return i.set(r.value,s),Y3.push(s),a},guard(e){var r;(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred.push(()=>{let a=e._zod.parse,i=(s,l)=>{if(l.direction!=="backward"&&H0t(l,s.value))throw new Vme;return a(s,l)};if(e._zod.parse=i,e._zod.run===a)e._zod.run=i})},attach(e){var r;let a,i,s;(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred.push(()=>{let l=e._zod.parse,c=(d,h)=>{if(a===void 0){if(a=Wme(e,new Set),!a){if(e._zod.parse=l,e._zod.run===c)e._zod.run=l;return l(d,h)}}let g=d.value;if(g===null||typeof g!=="object")return l(d,h);let x=h[HV];if(!x)x={buckets:new Map,backEdges:void 0},h[HV]=x;let v;if(i===h)v=s;else v=Y0t(x,e),i=h,s=v;let b=v.get(g);if(b){if(d.value=b.value,b.issues){if(b.issues.length)d.issues.push(...qV(b.issues))}else d.memo=!0,x.backEdges??(x.backEdges=new Set),x.backEdges.add(b.value);return d}U3=v;let y=Y3.length,k=l(d,h);U3=void 0;let T=Y3.length>y?Y3.pop():void 0;if(k instanceof Promise)return k.then((U)=>{if(T)T.issues=U.issues.length?qV(U.issues):qme;return U});if(T)T.issues=k.issues.length?qV(k.issues):qme;return k};if(e._zod.parse=c,e._zod.run===l)e._zod.run=c})}};function Gme(){return q0t}function H0t(e,r){let a=e[HV]?.backEdges;return a!==void 0&&r!==null&&typeof r==="object"&&a.has(r)}var V0t=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function r(l){return e[l]??null}let a={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"credit card number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};function s(l,c){if(l==="number"&&typeof c==="number"&&!Number.isFinite(c))return String(c);return i[l]??l}return(l)=>{switch(l.code){case"invalid_type":{let c=s(l.expected),d=kZe(l.input),h=s(d,l.input);return`Invalid input: expected ${c}, received ${h}`}case"invalid_value":if(l.values.length===1)return`Invalid input: expected ${bV(l.values[0])}`;return`Invalid option: expected one of ${vV(l.values,"|")}`;case"too_big":{let c=l.exact?"exactly ":l.inclusive?"<=":"<",d=r(l.origin);if(d)return`Too big: expected ${l.origin??"value"} to have ${c}${l.maximum.toString()} ${d.unit??"elements"}`;return`Too big: expected ${l.origin??"value"} to be ${c}${l.maximum.toString()}`}case"too_small":{let c=l.exact?"exactly ":l.inclusive?">=":">",d=r(l.origin);if(d)return`Too small: expected ${l.origin} to have ${c}${l.minimum.toString()} ${d.unit}`;return`Too small: expected ${l.origin} to be ${c}${l.minimum.toString()}`}case"invalid_format":{let c=l;if(c.format==="starts_with")return`Invalid string: must start with "${c.prefix}"`;if(c.format==="ends_with")return`Invalid string: must end with "${c.suffix}"`;if(c.format==="includes")return`Invalid string: must include "${c.includes}"`;if(c.format==="regex")return`Invalid string: must match pattern ${c.pattern}`;return`Invalid ${a[c.format]??l.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${l.divisor}`;case"unrecognized_keys":return`Unrecognized key${l.keys.length>1?"s":""}: ${vV(l.keys,", ")}`;case"invalid_key":return`Invalid key in ${l.origin}`;case"invalid_union":if(l.options&&Array.isArray(l.options)&&l.options.length>0)return`Invalid discriminator value. Expected ${l.options.map((d)=>`'${d}'`).join(" | ")}`;if(l.inclusive===!1)return"Invalid input: more than one option matched";return"Invalid input";case"invalid_element":return`Invalid value in ${l.origin}`;default:return"Invalid input"}}};function VV(){return{localeError:V0t()}}var Kme;class Xme{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let a=r[0];if(this._map.set(e,a),a&&typeof a==="object"&&"id"in a)this._idmap.set(a.id,e);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);if(r&&typeof r==="object"&&"id"in r)this._idmap.delete(r.id);return this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let a={...this.get(r)??{}};delete a.id;let i={...a,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function W0t(){return new Xme}(Kme=globalThis).__zod_globalRegistry??(Kme.__zod_globalRegistry=W0t());var SL=globalThis.__zod_globalRegistry;function Qme(e,r){return new e({type:"string",...xr(r)})}function Jme(e,r){return new e({type:"string",coerce:!0,...xr(r)})}function $me(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...xr(r)})}function ehe(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...xr(r)})}function the(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...xr(r)})}function rhe(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...xr(r)})}function ohe(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...xr(r)})}function ahe(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...xr(r)})}function nhe(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...xr(r)})}function ihe(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...xr(r)})}function fhe(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...xr(r)})}function she(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...xr(r)})}function lhe(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...xr(r)})}function che(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...xr(r)})}function uhe(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...xr(r)})}function dhe(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...xr(r)})}function Zhe(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...xr(r)})}function phe(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...xr(r)})}function mhe(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...xr(r)})}function hhe(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...xr(r)})}function ghe(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...xr(r)})}function Mhe(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...xr(r)})}function xhe(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...xr(r)})}function vhe(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...xr(r)})}function yhe(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...xr(r)})}function _he(e,r){return new e({type:"string",format:"date",check:"string_format",...xr(r)})}function bhe(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...xr(r)})}function whe(e,r){return new e({type:"string",format:"duration",check:"string_format",...xr(r)})}function zhe(e,r){return new e({type:"number",checks:[],...xr(r)})}function She(e,r){return new e({type:"number",coerce:!0,checks:[],...xr(r)})}function Lhe(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...xr(r)})}function khe(e,r){return new e({type:"boolean",...xr(r)})}function Che(e,r){return new e({type:"boolean",coerce:!0,...xr(r)})}function Ihe(e,r){return new e({type:"bigint",coerce:!0,...xr(r)})}function Rhe(e){return new e({type:"any"})}function Phe(e){return new e({type:"unknown"})}function The(e,r){return new e({type:"never",...xr(r)})}function Ahe(e,r){return new e({type:"date",...xr(r)})}function Ehe(e,r){return new e({type:"date",coerce:!0,...xr(r)})}function WR(e,r){return new EV({check:"less_than",...xr(r),value:e,inclusive:!1})}function ZM(e,r){return new EV({check:"less_than",...xr(r),value:e,inclusive:!0})}function GR(e,r){return new DV({check:"greater_than",...xr(r),value:e,inclusive:!1})}function pM(e,r){return new DV({check:"greater_than",...xr(r),value:e,inclusive:!0})}function vO(e,r){return new vpe({check:"multiple_of",...xr(r),value:e})}function q3(e,r){return new _pe({check:"max_length",...xr(r),maximum:e})}function KR(e,r){return new bpe({check:"min_length",...xr(r),minimum:e})}function H3(e,r){return new wpe({check:"length_equals",...xr(r),length:e})}function WV(e,r){return new zpe({check:"string_format",format:"regex",...xr(r),pattern:e})}function GV(e){return new Spe({check:"string_format",format:"lowercase",...xr(e)})}function KV(e){return new Lpe({check:"string_format",format:"uppercase",...xr(e)})}function XV(e,r){return new kpe({check:"string_format",format:"includes",...xr(r),includes:e})}function QV(e,r){return new Cpe({check:"string_format",format:"starts_with",...xr(r),prefix:e})}function JV(e,r){return new Ipe({check:"string_format",format:"ends_with",...xr(r),suffix:e})}function F8(e){return new Rpe({check:"overwrite",tx:e})}function $V(e){return F8((r)=>r.normalize(e))}function eW(){return F8((e)=>e.trim())}function tW(){return F8((e)=>e.toLowerCase())}function rW(){return F8((e)=>e.toUpperCase())}function oW(){return F8((e)=>yZe(e))}function Dhe(e,r,a){return new e({type:"array",element:r,...xr(a)})}function Ohe(e,r,a){return new e({type:"custom",check:"custom",fn:r,...xr(a)})}function Nhe(e,r){let a=G0t((i)=>(i.addIssue=(s)=>{if(typeof s==="string")i.issues.push(zL(s,i.value,a._zod.def));else{let l=s;if(l.fatal)l.continue=!1;if(l.code??(l.code="custom"),!("input"in l))l.input=i.value;l.inst??(l.inst=a),l.continue??(l.continue=!a._zod.def.abort),i.issues.push(zL(l))}},e(i.value,i)),r);return a}function G0t(e,r){let a=new pf({check:"custom",...xr(r)});return a._zod.check=e,a}function yO(e,...r){for(let a of r)for(let i of Reflect.ownKeys(a))if(Object.prototype.propertyIsEnumerable.call(a,i))Ui(e,i,a[i]);return e}function nW(e){let r=e?.target??"draft-2020-12";if(r==="draft-4")r="draft-04";if(r==="draft-7")r="draft-07";return{processors:e.processors??{},metadataRegistry:e?.metadata??SL,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Lu(e,r,a,i,s){let l=typeof r.unrepresentable==="function"?r.unrepresentable({zodSchema:e,path:i.path,message:s}):r.unrepresentable;if(l==="any")return!1;if(l===void 0||l==="throw")throw Error(s);return Object.assign(a,l),!0}function On(e,r,a={path:[],schemaPath:[]}){var i;let s=e._zod.def,l=r.seen.get(e);if(l){if(l.count++,a.schemaPath.includes(e))l.cycle=a.path;return l.schema}let c={schema:{},count:1,cycle:void 0,path:a.path};r.seen.set(e,c),r.sharedDefsExtractedFor=void 0,r.sharedEmitDoneFor=void 0;let d=e._zod.toJSONSchema?.();if(d)c.schema=d;else{let x={...a,schemaPath:[...a.schemaPath,e],path:a.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,c.schema,x);else{let b=c.schema,y=r.processors[s.type];if(!y)throw Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);y(e,r,b,x)}let v=e._zod.parent;if(v){if(!c.ref)c.ref=v;On(v,r,x),r.seen.get(v).isParent=!0}}let h=r.metadataRegistry.get(e);if(h)yO(c.schema,h);if(r.io==="input"&&ws(e))delete c.schema.examples,delete c.schema.default;if(r.io==="input"&&"_prefault"in c.schema)(i=c.schema).default??(i.default=c.schema._prefault);return delete c.schema._prefault,r.seen.get(e).schema}function Fhe(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function iW(e,r){let a=e.seen.get(r);if(!a)throw Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let i=new Map;for(let c of e.seen.entries()){let d=e.metadataRegistry.get(c[0])?.id;if(d){let h=i.get(d);if(h&&h!==c[0])throw Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(d,c[0])}}let s=(c)=>{let d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let v=e.external.registry.get(c[0])?.id,b=e.external.uri??((k)=>k);if(v)return{ref:b(v)};let y=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=y,{defId:y,ref:`${b("__shared")}#/${d}/${Fhe(y)}`}}let h="#",g=`${h}/${d}/`;if(c[1]===a&&!c[1].schema.id)return{ref:h};let x=c[1].schema.id??`__schema${e.counter++}`;return{defId:x,ref:g+Fhe(x)}},l=(c)=>{if(c[1].schema.$ref)return;let d=c[1],{ref:h,defId:g}=s(c);if(d.def={...d.schema},g)d.defId=g;let x=d.schema;for(let v in x)delete x[v];x.$ref=h};if(e.cycles==="throw")for(let c of e.seen.entries()){let d=c[1];if(d.cycle)throw Error(`Cycle detected: #/${d.cycle?.join("/")}/<root>
|
|
194
|
+
|
|
195
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let c of e.seen.entries()){let d=c[1];if(r===c[0]){l(c);continue}if(e.external){let g=e.external.registry.get(c[0])?.id;if(r!==c[0]&&g){l(c);continue}}if(e.metadataRegistry.get(c[0])?.id){l(c);continue}if(d.cycle){l(c);continue}if(d.count>1){if(e.reused==="ref"){l(c);continue}}}if(e.external)e.sharedDefsExtractedFor=e.external}function Uhe(e){let r=e.anyOf;if(!Array.isArray(r)||r.length===0||e.type!==void 0)return;let a=[];for(let i of r){if(!i||typeof i!=="object")return;Uhe(i);let s=Object.keys(i);if(s.length!==1||s[0]!=="type")return;let l=i.type;for(let c of Array.isArray(l)?l:[l]){if(typeof c!=="string")return;if(!a.includes(c))a.push(c)}}delete e.anyOf,e.type=a.length===1?a[0]:a}var Yhe=new Set(["type","properties","required","additionalProperties"]),jhe=["oneOf","anyOf"];function Bhe(e){let r=e.additionalProperties;if(r===void 0||r===!1||typeof r!=="object"||r===null)return null;return Object.keys(r).length?r:null}function aW(e){let r=[];for(let l of e){if(typeof l!=="object"||l.type!=="object")return null;for(let c in l)if(!Yhe.has(c))return null;r.push(l)}let a={},i=new Set;for(let l of r){for(let c in l.properties){if(Object.prototype.hasOwnProperty.call(a,c))continue;let d=[];for(let g of r){let x=g.properties?.[c]??Bhe(g);if(x===null||x===void 0)continue;if(!d.some((v)=>JSON.stringify(v)===JSON.stringify(x)))d.push(x)}let h=d.length===1?d[0]:aW(d)??{allOf:d};Ui(a,c,h)}for(let c of l.required??[])i.add(c)}let s={type:"object",properties:a};if(i.size)s.required=[...i];if(r.every((l)=>l.additionalProperties===!1))s.additionalProperties=!1;else{let l=[];for(let c of r){let d=Bhe(c);if(d&&!l.some((h)=>JSON.stringify(h)===JSON.stringify(d)))l.push(d)}if(l.length===1)s.additionalProperties=l[0];else if(l.length>1)s.additionalProperties={allOf:l}}return s}function K0t(e){let r=e.allOf;if(!Array.isArray(r)||r.length<2)return;for(let s of Yhe)if(s in e)return;let a=r.filter((s)=>jhe.some((l)=>Array.isArray(s[l]))),i=null;if(!a.length)i=aW(r);else{let s=a[0],l=jhe.find((h)=>Array.isArray(s[h]));if(Object.keys(s).length!==1)return;let c=r.filter((h)=>h!==s),d=s[l].map((h)=>aW([...c,h]));if(d.some((h)=>!h))return;i={[l]:d}}if(!i)return;delete e.allOf,yO(e,i)}function fW(e,r){let a=e.seen.get(r);if(!a)throw Error("Unprocessed schema. This is a bug in Zod.");let i=(d)=>{let h=e.seen.get(d);if(h.ref===null)return;let g=h.def??h.schema,x={...g},v=h.ref;if(h.ref=null,v){i(v);let y=e.seen.get(v),k=y.schema;if(k.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"))g.allOf=g.allOf??[],g.allOf.push(k);else yO(g,k);if(yO(g,x),d._zod.parent===v)for(let U in g){if(U==="$ref"||U==="allOf")continue;if(!(U in x))delete g[U]}if(k.$ref&&y.def)for(let U in g){if(U==="$ref"||U==="allOf")continue;if(U in y.def&&JSON.stringify(g[U])===JSON.stringify(y.def[U]))delete g[U]}}let b=d._zod.parent;if(b&&b!==v){i(b);let y=e.seen.get(b);if(y?.schema.$ref){if(g.$ref=y.schema.$ref,y.def)for(let k in g){if(k==="$ref"||k==="allOf")continue;if(k in y.def&&JSON.stringify(g[k])===JSON.stringify(y.def[k]))delete g[k]}}}e.override({zodSchema:d,jsonSchema:g,path:h.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let d of[...e.seen.entries()].reverse())i(d[0]);if(e.target!=="openapi-3.0")for(let d of e.seen.entries())Uhe(d[1].def??d[1].schema);for(let d of e.deferred)d();if(e.intersections.length){let d=new Map;for(let h of e.seen.values())for(let g of[h.schema,h.def]){let x=g?.allOf;if(!Array.isArray(x))continue;let v=d.get(x);if(v)v.push(g);else d.set(x,[g])}for(let h of e.intersections)for(let g of d.get(h)??[])K0t(g)}}let s={};if(e.target==="draft-2020-12")s.$schema="https://json-schema.org/draft/2020-12/schema";else if(e.target==="draft-07")s.$schema="http://json-schema.org/draft-07/schema#";else if(e.target==="draft-04")s.$schema="http://json-schema.org/draft-04/schema#";else if(e.target==="openapi-3.0");if(e.external?.uri){let d=e.external.registry.get(r)?.id;if(!d)throw Error("Schema is missing an `id` property");s.$id=e.external.uri(d)}yO(s,a.defId?a.schema:a.def??a.schema);let l=e.metadataRegistry.get(r)?.id;if(l!==void 0&&s.id===l)delete s.id;let c=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let d of e.seen.entries()){let h=d[1];if(h.def&&h.defId){if(h.def.id===h.defId)delete h.def.id;Ui(c,h.defId,h.def)}}if(e.external)e.sharedEmitDoneFor=e.external;if(e.external);else if(Object.keys(c).length>0)if(e.target==="draft-2020-12")s.$defs=c;else s.definitions=c;try{let d=JSON.parse(JSON.stringify(s));return Object.defineProperty(d,"~standard",{value:{...r["~standard"],jsonSchema:{input:_O(r,"input",e.processors),output:_O(r,"output",e.processors)}},enumerable:!1,writable:!1}),d}catch(d){throw Error("Error converting schema to JSON.")}}function ws(e,r){let a=r??{seen:new Set};if(a.seen.has(e))return!1;a.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return ws(i.element,a);if(i.type==="set")return ws(i.valueType,a);if(i.type==="lazy")return ws(i.getter(),a);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault"||i.type==="catch")return ws(i.innerType,a);if(i.type==="intersection")return ws(i.left,a)||ws(i.right,a);if(i.type==="record"||i.type==="map")return ws(i.keyType,a)||ws(i.valueType,a);if(i.type==="pipe"){if(e._zod.traits.has("$ZodCodec"))return!0;return ws(i.in,a)||ws(i.out,a)}if(i.type==="object"){for(let s in i.shape)if(ws(i.shape[s],a))return!0;return!1}if(i.type==="union"){for(let s of i.options)if(ws(s,a))return!0;return!1}if(i.type==="tuple"){for(let s of i.items)if(ws(s,a))return!0;if(i.rest&&ws(i.rest,a))return!0;return!1}return!1}var qhe=(e,r={})=>(a)=>{let i=nW({...a,processors:r});return On(e,i),iW(i,e),fW(i,e)},_O=(e,r,a={})=>(i)=>{let{libraryOptions:s,target:l}=i??{},c=nW({...s??{},target:l,io:r,processors:a});return On(e,c),iW(c,e),fW(c,e)};var X0t={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Hhe=(e,r,a,i)=>{let s=a;s.type="string";let{minimum:l,maximum:c,format:d,patterns:h,contentEncoding:g,laxFormat:x}=e._zod.bag;if(typeof l==="number")s.minLength=l;if(typeof c==="number")s.maxLength=c;if(d){if(s.format=X0t[d]??d,s.format==="")delete s.format;if(d==="time"||x)delete s.format}if(g)s.contentEncoding=g;if(h&&h.size>0){let v=[...h];if(v.length===1)s.pattern=v[0].source;else if(v.length>1)s.allOf=[...v.map((b)=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:b.source}))]}},Vhe=(e,r,a,i)=>{let s=a,{minimum:l,maximum:c,format:d,multipleOf:h,exclusiveMaximum:g,exclusiveMinimum:x}=e._zod.bag;if(typeof d==="string"&&d.includes("int"))s.type="integer";else s.type="number";let v=typeof x==="number"&&x>=(l??Number.NEGATIVE_INFINITY),b=typeof g==="number"&&g<=(c??Number.POSITIVE_INFINITY),y=r.target==="draft-04"||r.target==="openapi-3.0";if(v)if(y)s.minimum=x,s.exclusiveMinimum=!0;else s.exclusiveMinimum=x;else if(typeof l==="number")s.minimum=l;if(b)if(y)s.maximum=g,s.exclusiveMaximum=!0;else s.exclusiveMaximum=g;else if(typeof c==="number")s.maximum=c;if(typeof h==="number")if(Number.isFinite(h)&&h!==0)s.multipleOf=Math.abs(h);else Lu(e,r,s,i,`A multipleOf divisor of ${h} cannot be represented in JSON Schema`)},Whe=(e,r,a,i)=>{a.type="boolean"},Ghe=(e,r,a,i)=>{Lu(e,r,a,i,"BigInt cannot be represented in JSON Schema")};var Khe=(e,r,a,i)=>{a.not={}},Xhe=(e,r,a,i)=>{},Qhe=(e,r,a,i)=>{},Jhe=(e,r,a,i)=>{Lu(e,r,a,i,"Date cannot be represented in JSON Schema")},$he=(e,r,a,i)=>{let s=e._zod.def,l=C3(s.entries);if(l.length===0){a.not={};return}if(l.every((c)=>typeof c==="number"))a.type="number";if(l.every((c)=>typeof c==="string"))a.type="string";a.enum=l},ege=(e,r,a,i)=>{let s=e._zod.def;if(s.values.length===0){a.not={};return}let l=[];for(let c of s.values)if(c===void 0){if(Lu(e,r,a,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof c==="bigint"){if(Lu(e,r,a,i,"BigInt literals cannot be represented in JSON Schema"))return;l.push(Number(c))}else l.push(c);if(l.length===0);else if(l.length===1){let c=l[0];if(a.type=c===null?"null":typeof c,r.target==="draft-04"||r.target==="openapi-3.0")a.enum=[c];else a.const=c}else{if(l.every((c)=>typeof c==="number"))a.type="number";if(l.every((c)=>typeof c==="string"))a.type="string";if(l.every((c)=>typeof c==="boolean"))a.type="boolean";if(l.every((c)=>c===null))a.type="null";a.enum=l}};var tge=(e,r,a,i)=>{Lu(e,r,a,i,"Custom types cannot be represented in JSON Schema")};var rge=(e,r,a,i)=>{Lu(e,r,a,i,"Transforms cannot be represented in JSON Schema")};var oge=(e,r,a,i)=>{let s=a,l=e._zod.def,{minimum:c,maximum:d}=e._zod.bag;if(typeof c==="number")s.minItems=c;if(typeof d==="number")s.maxItems=d;s.type="array",s.items=On(l.element,r,{...i,path:[...i.path,"items"]})};function V3(e){let r=e._zod.def;if(r.type==="pipe"&&r.in._zod.traits.has("$ZodTransform"))return V3(r.out);if(r.type==="catch")return V3(r.innerType);return e._zod.optin}var age=(e,r,a,i)=>{let s=a,l=e._zod.def,c=l.shape;if(Object.getOwnPropertySymbols(c).length&&Lu(e,r,s,i,"Symbol keys cannot be represented in JSON Schema"))return;s.type="object",s.properties={};for(let x in c)Ui(s.properties,x,On(c[x],r,{...i,path:[...i.path,"properties",x]}));let h=new Set(Object.keys(c)),g=new Set([...h].filter((x)=>{let v=l.shape[x];if(r.io==="input")return V3(v)===void 0;else return v._zod.optout===void 0}));if(g.size>0)s.required=Array.from(g);if(l.catchall?._zod.def.type==="never")s.additionalProperties=!1;else if(!l.catchall){if(r.io==="output")s.additionalProperties=!1}else if(l.catchall)s.additionalProperties=On(l.catchall,r,{...i,path:[...i.path,"additionalProperties"]})},nge=(e,r,a,i)=>{let s=e._zod.def,l=s.inclusive===!1,c=s.options.map((d,h)=>On(d,r,{...i,path:[...i.path,l?"oneOf":"anyOf",h]}));if(l)a.oneOf=c;else a.anyOf=c},ige=(e,r,a,i)=>{let s=e._zod.def,l=On(s.left,r,{...i,path:[...i.path,"allOf",0]}),c=On(s.right,r,{...i,path:[...i.path,"allOf",1]}),d=(g)=>("allOf"in g)&&Object.keys(g).length===1,h=[...d(l)?l.allOf:[l],...d(c)?c.allOf:[c]];a.allOf=h,r.intersections.push(h)};function sW(e,r,a){if(r.$ref){if(a.has(r))return r;a.add(r);let k=e.get(r)?.def;if(!k)return r;let T=sW(e,k,a);return T===k?r:T}for(let k of["anyOf","oneOf"]){let T=r[k];if(!Array.isArray(T))continue;let U=T.map((N)=>sW(e,N,a));if(U.some((N,j)=>N!==T[j]))r={...r,[k]:U}}let i=Array.isArray(r.type)?r.type:[r.type],s=!i.includes("string")&&i.some((k)=>k==="number"||k==="integer"),l=r.enum??(r.const!==void 0?[r.const]:void 0);if(!s&&!l?.some((k)=>typeof k==="number"))return r;let{minimum:c,maximum:d,exclusiveMinimum:h,exclusiveMaximum:g,multipleOf:x,format:v,id:b,...y}=r;if(y.enum)y.enum=y.enum.map((k)=>typeof k==="number"?String(k):k);else if(typeof y.const==="number")y.const=String(y.const);if(!s)return y;if(y.type="string",!l)y.pattern=(i.includes("number")?gO:O3).source;return y}var lW=new WeakMap;function Q0t(e){let r=new Map;for(let i of e.seen.values())if(i.def&&!r.has(i.schema))r.set(i.schema,i);let a=new Map;for(let i of lW.get(e)??[]){let s=e.seen.get(i),l=(s?.def??s?.schema)?.propertyNames;if(!l||l===!0||a.has(l))continue;let c=sW(r,l,new Set);if(c!==l)a.set(l,c)}if(!a.size)return;for(let i of e.seen.values())for(let s of[i.schema,i.def]){let l=s&&a.get(s.propertyNames);if(l)s.propertyNames=l}}var fge=(e,r,a,i)=>{let s=a,l=e._zod.def;s.type="object";let c=l.keyType,h=c._zod.bag?.patterns;if(l.mode==="loose"&&h&&h.size>0){let v=On(l.valueType,r,{...i,path:[...i.path,"patternProperties","*"]});s.patternProperties={};for(let b of h)Ui(s.patternProperties,b.source,v)}else{if(r.target==="draft-07"||r.target==="draft-2020-12"){s.propertyNames=On(l.keyType,r,{...i,path:[...i.path,"propertyNames"]});let v=lW.get(r);if(!v)v=[],lW.set(r,v),r.deferred.push(()=>Q0t(r));v.push(e)}s.additionalProperties=On(l.valueType,r,{...i,path:[...i.path,"additionalProperties"]})}let g=c._zod.values,x=r.io==="input"&&V3(l.valueType)!==void 0;if(g&&!l.partial&&!x){let v=[...g].filter((b)=>typeof b==="string"||typeof b==="number");if(v.length>0)s.required=v.map(String)}},sge=(e,r,a,i)=>{let s=e._zod.def,l=On(s.innerType,r,i),c=r.seen.get(e);if(r.target==="openapi-3.0")c.ref=s.innerType,a.nullable=!0;else a.anyOf=[l,{type:"null"}]},lge=(e,r,a,i)=>{let s=e._zod.def;On(s.innerType,r,i);let l=r.seen.get(e);l.ref=s.innerType},cW=Symbol();function cge(e,r,a,i,s){let l=!1,c=JSON.stringify(e,(d,h)=>{if(typeof h!=="bigint")return h;return l=!0,null});if(!l)return JSON.parse(c);return Lu(r,a,i,s,"BigInt defaults cannot be represented in JSON Schema"),cW}var uge=(e,r,a,i)=>{let s=e._zod.def;On(s.innerType,r,i);let l=r.seen.get(e);l.ref=s.innerType;let c=cge(s.defaultValue,e,r,a,i);if(c!==cW)a.default=c},dge=(e,r,a,i)=>{let s=e._zod.def;On(s.innerType,r,i);let l=r.seen.get(e);if(l.ref=s.innerType,r.io!=="input")return;let c=cge(s.defaultValue,e,r,a,i);if(c!==cW)a._prefault=c},Zge=(e,r,a,i)=>{let s=e._zod.def;On(s.innerType,r,i);let l=r.seen.get(e);l.ref=s.innerType;let c;try{c=s.catchValue(void 0)}catch{Lu(e,r,a,i,"Dynamic catch values are not supported in JSON Schema");return}a.default=c},pge=(e,r,a,i)=>{let s=e._zod.def,l=s.in._zod.traits.has("$ZodTransform"),c=r.io==="input"?l?s.out:s.in:s.out;On(c,r,i);let d=r.seen.get(e);d.ref=c},mge=(e,r,a,i)=>{let s=e._zod.def;On(s.innerType,r,i);let l=r.seen.get(e);l.ref=s.innerType,a.readOnly=!0};var uW=(e,r,a,i)=>{let s=e._zod.def;On(s.innerType,r,i);let l=r.seen.get(e);l.ref=s.innerType},hge=(e,r,a,i)=>{let s=e._zod.innerType;On(s,r,i);let l=r.seen.get(e);l.ref=s};var gge=new WeakSet([Object.prototype,Error.prototype]);function W3(e,r,a){Object.defineProperty(e,r,{configurable:!0,enumerable:!1,get(){let i=a(this);return Object.defineProperty(this,r,{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,r,{value:i,configurable:!0,writable:!0})}})}var nzt=(e,r)=>{T3.init(e,r),e.name="ZodError";let a=Object.getPrototypeOf(e);if(gge.has(a))return;gge.add(a),W3(a,"format",(i)=>(s)=>DZe(i,s)),W3(a,"flatten",(i)=>(s)=>EZe(i,s)),W3(a,"addIssue",(i)=>(s)=>{i.issues.push(s),i.message=JSON.stringify(i.issues,dO,2)}),W3(a,"addIssues",(i)=>(s)=>{i.issues.push(...s),i.message=JSON.stringify(i.issues,dO,2)}),Object.defineProperty(a,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}})};var rc=It("ZodError",nzt,void 0,{Parent:Error});var Mge=E3(rc),xge=D3(rc),vge=mO(rc),yge=hO(rc),_ge=FZe(rc),bge=jZe(rc),wge=BZe(rc),zge=UZe(rc),Sge=YZe(rc),Lge=qZe(rc),kge=HZe(rc),Cge=VZe(rc);function fzt(){if(!nl.localeError)tc(VV())}function X3(){if(!nl.memoizer)tc({memoizer:Gme()})}var Ya=It("ZodType",(e,r)=>(fzt(),wa.init(e,r),e.def=r,e.type=r.type,e),{check(...e){let r=this.def;return this.clone(D8(r,{checks:[...r.checks??[],...e.map((a)=>typeof a==="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,r){return yZ(this,e,r)},brand(){return this},register(e,r){return e.add(this,r),this},refine(e,r){return this.check(tSt(e,r))},superRefine(e,r){return this.check(rSt(e,r))},overwrite(e){return this.check(F8(e))},optional(){return Pge(this)},exactOptional(){return Uzt(this)},nullable(){return Tge(this)},nullish(){return Pge(Tge(this))},nonoptional(e){return Gzt(this,e)},array(){return te(this)},or(e){return Xa([this,e])},and(e){return Fge(this,e)},transform(e){return Age(this,Bzt(e))},default(e){return Hzt(this,e)},prefault(e){return Wzt(this,e)},catch(e){return Xzt(this,e)},pipe(e){return Age(this,e)},readonly(){return $zt(this)},describe(e){let r=this.clone();return SL.add(r,{description:e}),r},meta(...e){if(e.length===0)return SL.get(this);let r=this.clone();return SL.add(r,e[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...r){return r.length===0?e(this):e(this,...r)},get "~standard"(){return zV(this,"~standard",{...jV(this),jsonSchema:{input:_O(this,"input"),output:_O(this,"output")}})},set "~standard"(e){_L(this,"~standard",e)},parse:function e(r,a){return Mge(this,r,a,{callee:e})},parseAsync:async function e(r,a){return await xge(this,r,a,{callee:e})},safeParse(e,r){return vge(this,e,r)},async safeParseAsync(e,r){return yge(this,e,r)},get spa(){return this?.safeParseAsync},set spa(e){_L(this,"spa",e)},encode:function e(r,a){return _ge(this,r,a,{callee:e})},decode:function e(r,a){return bge(this,r,a,{callee:e})},encodeAsync:async function e(r,a){return await wge(this,r,a,{callee:e})},decodeAsync:async function e(r,a){return await zge(this,r,a,{callee:e})},safeEncode(e,r){return Sge(this,e,r)},safeDecode(e,r){return Lge(this,e,r)},async safeEncodeAsync(e,r){return kge(this,e,r)},async safeDecodeAsync(e,r){return Cge(this,e,r)},toJSONSchema(e){return qhe(this,{})(e)},get description(){return SL.get(this)?.description},get _def(){return this._zod.def}}),Ege=It("_ZodString",(e,r)=>{B3.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(i,s,l)=>Hhe(e,i,s,l);let a=e._zod.bag;e.format=a.format??null,e.minLength=a.minimum??null,e.maxLength=a.maximum??null},{regex(...e){return this.check(WV(...e))},includes(...e){return this.check(XV(...e))},startsWith(...e){return this.check(QV(...e))},endsWith(...e){return this.check(JV(...e))},min(...e){return this.check(KR(...e))},max(...e){return this.check(q3(...e))},length(...e){return this.check(H3(...e))},nonempty(...e){return this.check(KR(1,...e))},lowercase(e){return this.check(GV(e))},uppercase(e){return this.check(KV(e))},trim(){return this.check(eW())},normalize(...e){return this.check($V(...e))},toLowerCase(){return this.check(tW())},toUpperCase(){return this.check(rW())},slugify(){return this.check(oW())}}),dW=It("ZodString",(e,r)=>{B3.init(e,r),Ege.init(e,r)},{email(e){return this.check($me(dzt,e))},url(e){return this.check(nhe(pzt,e))},jwt(e){return this.check(vhe(Czt,e))},emoji(e){return this.check(ihe(mzt,e))},guid(e){return this.check(ehe(Zzt,e))},uuid(e){return this.check(the(G3,e))},uuidv4(e){return this.check(rhe(G3,e))},uuidv6(e){return this.check(ohe(G3,e))},uuidv7(e){return this.check(ahe(G3,e))},nanoid(e){return this.check(fhe(hzt,e))},cuid(e){return this.check(she(gzt,e))},cuid2(e){return this.check(lhe(Mzt,e))},ulid(e){return this.check(che(xzt,e))},base64(e){return this.check(ghe(Szt,e))},base64url(e){return this.check(Mhe(Lzt,e))},xid(e){return this.check(uhe(vzt,e))},ksuid(e){return this.check(dhe(yzt,e))},ipv4(e){return this.check(Zhe(_zt,e))},ipv6(e){return this.check(phe(bzt,e))},cidrv4(e){return this.check(mhe(wzt,e))},cidrv6(e){return this.check(hhe(zzt,e))},e164(e){return this.check(xhe(kzt,e))},datetime(e){return this.check(yhe(szt,e))},date(e){return this.check(_he(lzt,e))},time(e){return this.check(bhe(czt,e))},duration(e){return this.check(whe(uzt,e))}});function f(e){return Qme(dW,e)}var Sn=It("ZodStringFormat",(e,r)=>{mn.init(e,r),Ege.init(e,r)}),szt=It("ZodISODateTime",(e,r)=>{ome.init(e,r),Sn.init(e,r)}),lzt=It("ZodISODate",(e,r)=>{ame.init(e,r),Sn.init(e,r)}),czt=It("ZodISOTime",(e,r)=>{nme.init(e,r),Sn.init(e,r)}),uzt=It("ZodISODuration",(e,r)=>{ime.init(e,r),Sn.init(e,r)}),dzt=It("ZodEmail",(e,r)=>{Vpe.init(e,r),Sn.init(e,r)});var Zzt=It("ZodGUID",(e,r)=>{qpe.init(e,r),Sn.init(e,r)});var G3=It("ZodUUID",(e,r)=>{Hpe.init(e,r),Sn.init(e,r)});var pzt=It("ZodURL",(e,r)=>{Kpe.init(e,r),Sn.init(e,r)});var mzt=It("ZodEmoji",(e,r)=>{Xpe.init(e,r),Sn.init(e,r)});var hzt=It("ZodNanoID",(e,r)=>{Qpe.init(e,r),Sn.init(e,r)});var gzt=It("ZodCUID",(e,r)=>{Jpe.init(e,r),Sn.init(e,r)});var Mzt=It("ZodCUID2",(e,r)=>{$pe.init(e,r),Sn.init(e,r)});var xzt=It("ZodULID",(e,r)=>{eme.init(e,r),Sn.init(e,r)});var vzt=It("ZodXID",(e,r)=>{tme.init(e,r),Sn.init(e,r)});var yzt=It("ZodKSUID",(e,r)=>{rme.init(e,r),Sn.init(e,r)});var _zt=It("ZodIPv4",(e,r)=>{fme.init(e,r),Sn.init(e,r)});var bzt=It("ZodIPv6",(e,r)=>{lme.init(e,r),Sn.init(e,r)});var wzt=It("ZodCIDRv4",(e,r)=>{cme.init(e,r),Sn.init(e,r)});var zzt=It("ZodCIDRv6",(e,r)=>{ume.init(e,r),Sn.init(e,r)});var Szt=It("ZodBase64",(e,r)=>{Zme.init(e,r),Sn.init(e,r)});var Lzt=It("ZodBase64URL",(e,r)=>{pme.init(e,r),Sn.init(e,r)});var kzt=It("ZodE164",(e,r)=>{mme.init(e,r),Sn.init(e,r)});var Czt=It("ZodJWT",(e,r)=>{hme.init(e,r),Sn.init(e,r)});var Q3=It("ZodNumber",(e,r)=>{BV.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(i,s,l)=>Vhe(e,i,s,l);let a=e._zod.bag;e.minValue=Math.max(a.minimum??Number.NEGATIVE_INFINITY,a.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(a.maximum??Number.POSITIVE_INFINITY,a.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(a.format??"").includes("int")||Number.isSafeInteger(a.multipleOf??0.5),e.isFinite=!0,e.format=a.format??null},{gt(e,r){return this.check(GR(e,r))},gte(e,r){return this.check(pM(e,r))},min(e,r){return this.check(pM(e,r))},lt(e,r){return this.check(WR(e,r))},lte(e,r){return this.check(ZM(e,r))},max(e,r){return this.check(ZM(e,r))},int(e){return this.check(Ige(e))},safe(e){return this.check(Ige(e))},positive(e){return this.check(GR(0,e))},nonnegative(e){return this.check(pM(0,e))},negative(e){return this.check(WR(0,e))},nonpositive(e){return this.check(ZM(0,e))},multipleOf(e,r){return this.check(vO(e,r))},step(e,r){return this.check(vO(e,r))},finite(){return this}});function Kt(e){return zhe(Q3,e)}var Izt=It("ZodNumberFormat",(e,r)=>{gme.init(e,r),Q3.init(e,r)});function Ige(e){return Lhe(Izt,e)}var ZW=It("ZodBoolean",(e,r)=>{Mme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Whe(e,a,i,s)});function dr(e){return khe(ZW,e)}var Dge=It("ZodBigInt",(e,r)=>{xme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(i,s,l)=>Ghe(e,i,s,l);let a=e._zod.bag;e.minValue=a.minimum??null,e.maxValue=a.maximum??null,e.format=a.format??null},{gte(e,r){return this.check(pM(e,r))},min(e,r){return this.check(pM(e,r))},gt(e,r){return this.check(GR(e,r))},lt(e,r){return this.check(WR(e,r))},lte(e,r){return this.check(ZM(e,r))},max(e,r){return this.check(ZM(e,r))},positive(e){return this.check(GR(BigInt(0),e))},negative(e){return this.check(WR(BigInt(0),e))},nonpositive(e){return this.check(ZM(BigInt(0),e))},nonnegative(e){return this.check(pM(BigInt(0),e))},multipleOf(e,r){return this.check(vO(e,r))}});var Rzt=It("ZodAny",(e,r)=>{vme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Xhe(e,a,i,s)});function Ss(){return Rhe(Rzt)}var Pzt=It("ZodUnknown",(e,r)=>{yme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Qhe(e,a,i,s)});function wZ(){return Phe(Pzt)}var Tzt=It("ZodNever",(e,r)=>{_me.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Khe(e,a,i,s)});function Azt(e){return The(Tzt,e)}var pW=It("ZodDate",(e,r)=>{bme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(i,s,l)=>Jhe(e,i,s,l),e.min=(i,s)=>e.check(pM(i,s)),e.max=(i,s)=>e.check(ZM(i,s));let a=e._zod.bag;e.minDate=a.minimum?new Date(a.minimum):null,e.maxDate=a.maximum?new Date(a.maximum):null});function ti(e){return Ahe(pW,e)}var Ezt=It("ZodArray",(e,r)=>{X3(),wme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>oge(e,a,i,s),e.element=r.element},{min(e,r){return this.check(KR(e,r))},nonempty(e){return this.check(KR(1,e))},max(e,r){return this.check(q3(e,r))},length(e,r){return this.check(H3(e,r))},unwrap(){return this.element}});function te(e,r){return Dhe(Ezt,e,r)}var Dzt=It("ZodObject",(e,r)=>{X3(),Lme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>age(e,a,i,s),_0t(e,"shape",(a)=>a._zod.def.shape,!1)},{keyof(){return Ve(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:wZ()})},loose(){return this.clone({...this._zod.def,catchall:wZ()})},strict(){return this.clone({...this._zod.def,catchall:Azt()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return p0t(this,e)},safeExtend(e){return m0t(this,e)},merge(e){return h0t(this,e)},pick(e){return d0t(this,e)},omit(e){return Z0t(this,e)},partial(...e){return SZe(jge,this,e[0])},exactPartial(...e){return SZe(Bge,this,e[0],"exactPartial")},required(...e){return g0t(Uge,this,e[0])}});function R(e,r){let a={type:"object",shape:e??{},...xr(r)};return new Dzt(a)}var Oge=It("ZodUnion",(e,r)=>{UV.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>nge(e,a,i,s),e.options=r.options});function Xa(e,r){return new Oge({type:"union",options:e,...xr(r)})}var Ozt=It("ZodDiscriminatedUnion",(e,r)=>{Oge.init(e,r),kme.init(e,r)});function Nge(e,r,a){return new Ozt({type:"union",options:r,discriminator:e,...xr(a)})}var Nzt=It("ZodIntersection",(e,r)=>{Cme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>ige(e,a,i,s)});function Fge(e,r){return new Nzt({type:"intersection",left:e,right:r})}var Rge=It("ZodRecord",(e,r)=>{X3(),Ime.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>fge(e,a,i,s),e.keyType=r.keyType,e.valueType=r.valueType});function LL(e,r,a){if(!r||!r._zod)return new Rge({type:"record",keyType:f(),valueType:e,...xr(r)});return new Rge({type:"record",keyType:e,valueType:r,...xr(a)})}var K3=It("ZodEnum",(e,r)=>{Rme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(i,s,l)=>$he(e,i,s,l),e.enum=r.entries,e.options=Object.values(r.entries);let a=new Set(Object.keys(r.entries));e.extract=(i,s)=>{let l={};for(let c of i)if(a.has(c))l[c]=r.entries[c];else throw Error(`Key ${c} not found in enum`);return new K3({...r,checks:[],...xr(s),entries:l})},e.exclude=(i,s)=>{let l={...r.entries};for(let c of i)if(a.has(c))delete l[c];else throw Error(`Key ${c} not found in enum`);return new K3({...r,checks:[],...xr(s),entries:l})}});function Ve(e,r){let a=Array.isArray(e)?Object.fromEntries(e.map((i)=>[i,i])):e;return new K3({type:"enum",entries:a,...xr(r)})}function $o(e,r){return new K3({type:"enum",entries:e,...xr(r)})}var Fzt=It("ZodLiteral",(e,r)=>{Pme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>ege(e,a,i,s),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function ks(e,r){return new Fzt({type:"literal",values:Array.isArray(e)?e:[e],...xr(r)})}var jzt=It("ZodTransform",(e,r)=>{X3(),Tme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>rge(e,a,i,s),e._zod.parse=(a,i)=>{if(i.direction==="backward")throw new pO(e.constructor.name);a.addIssue=(l)=>{if(typeof l==="string")a.issues.push(zL(l,a.value,r));else{let c=l;if(c.fatal)c.continue=!1;if(c.code??(c.code="custom"),!("input"in c))c.input=a.value;c.inst??(c.inst=e),a.issues.push(zL(c))}};let s=r.transform(a.value,a);if(s instanceof Promise)return s.then((l)=>(a.value=l,a));return a.value=s,a}});function Bzt(e){return new jzt({type:"transform",transform:e})}var jge=It("ZodOptional",(e,r)=>{YV.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>uW(e,a,i,s),e.unwrap=()=>e._zod.def.innerType});function Pge(e){return new jge({type:"optional",innerType:e})}var Bge=It("ZodExactOptional",(e,r)=>{Ame.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>uW(e,a,i,s),e.unwrap=()=>e._zod.def.innerType});function Uzt(e){return new Bge({type:"optional",innerType:e})}var Yzt=It("ZodNullable",(e,r)=>{Eme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>sge(e,a,i,s),e.unwrap=()=>e._zod.def.innerType});function Tge(e){return new Yzt({type:"nullable",innerType:e})}var qzt=It("ZodDefault",(e,r)=>{Dme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>uge(e,a,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Hzt(e,r){return new qzt({type:"default",innerType:e,get defaultValue(){return typeof r==="function"?r():_V(r)}})}var Vzt=It("ZodPrefault",(e,r)=>{Ome.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>dge(e,a,i,s),e.unwrap=()=>e._zod.def.innerType});function Wzt(e,r){return new Vzt({type:"prefault",innerType:e,get defaultValue(){return typeof r==="function"?r():_V(r)}})}var Uge=It("ZodNonOptional",(e,r)=>{Nme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>lge(e,a,i,s),e.unwrap=()=>e._zod.def.innerType});function Gzt(e,r){return new Uge({type:"nonoptional",innerType:e,...xr(r)})}var Kzt=It("ZodCatch",(e,r)=>{Fme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>Zge(e,a,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Xzt(e,r){return new Kzt({type:"catch",innerType:e,catchValue:typeof r==="function"?r:IZe(r)})}var Qzt=It("ZodPipe",(e,r)=>{jme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>pge(e,a,i,s),e.in=r.in,e.out=r.out});function Age(e,r){return new Qzt({type:"pipe",in:e,out:r})}var Jzt=It("ZodReadonly",(e,r)=>{Bme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>mge(e,a,i,s),e.unwrap=()=>e._zod.def.innerType});function $zt(e){return new Jzt({type:"readonly",innerType:e})}var eSt=It("ZodLazy",(e,r)=>{Ume.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>hge(e,a,i,s),e.unwrap=()=>e._zod.def.getter()});function mW(e){return new eSt({type:"lazy",getter:e})}var Yge=It("ZodCustom",(e,r)=>{Yme.init(e,r),Ya.init(e,r),e._zod.processJSONSchema=(a,i,s)=>tge(e,a,i,s)});function tSt(e,r={}){return Ohe(Yge,e,r)}function rSt(e,r){return Nhe(e,r)}function qge(e,r={}){let a=new Yge({type:"custom",check:"custom",fn:(i)=>i instanceof e,abort:!0,...xr(r)});return a._zod.bag.Class=e,a._zod.check=(i)=>{if(!(i.value instanceof e))i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:a,path:[...a._zod.def.path??[]]})},a}var oo={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};var Hge;(function(e){})(Hge||(Hge={}));var wO={};ke(wO,{bigint:()=>fSt,boolean:()=>iSt,date:()=>sSt,number:()=>nSt,string:()=>aSt});function aSt(e){return Jme(dW,e)}function nSt(e){return She(Q3,e)}function iSt(e){return Che(ZW,e)}function fSt(e){return Ihe(Dge,e)}function sSt(e){return Ehe(pW,e)}var J3={human:"human",agent:"agent"};var hW={editor:"editor",reviewer:"reviewer"};var Vge={team:"team",project:"project"};var Wge={all_members:"all_members",each_member:"each_member",selected_members:"selected_members"};var Gge={agent_total_tokens:"agent_total_tokens",agent_cost:"agent_cost",agent_mcp_call_count:"agent_mcp_call_count",agent_bash_call_count:"agent_bash_call_count",agent_tool_call_count:"agent_tool_call_count"},Qe={TODO:"TODO",READY:"READY",IN_PROGRESS:"IN_PROGRESS",BLOCKED:"BLOCKED",IN_REVIEW:"IN_REVIEW",DONE:"DONE"},zr={LOW:"LOW",MEDIUM:"MEDIUM",HIGH:"HIGH",URGENT:"URGENT"},mf={CREATED:"CREATED",STATUS_CHANGED:"STATUS_CHANGED",ASSIGNED:"ASSIGNED",UNASSIGNED:"UNASSIGNED",COMMENTED:"COMMENTED",CHANGES_REQUESTED:"CHANGES_REQUESTED",BLOCKED:"BLOCKED",UNBLOCKED:"UNBLOCKED",PRIORITY_CHANGED:"PRIORITY_CHANGED",GOAL_CHANGED:"GOAL_CHANGED",DEPENDENCY_ADDED:"DEPENDENCY_ADDED",DEPENDENCY_REMOVED:"DEPENDENCY_REMOVED"},Kge={chat:"chat",autofill:"autofill",embedding:"embedding"};var lSt=["avatar-1","avatar-2","avatar-3","avatar-4","avatar-5","avatar-6","avatar-7","avatar-8"];var cSt={"avatar-1":"UklGRtInAABXRUJQVlA4IMYnAACwmACdASosASwBPm0ylUekIyIhp1L7UIANiWVu3P6nGjxxkZZTIvmXwJRUeg/Jf+ndPZ0L4H6mVI3YJ/D/tH5j9vT9C/6f3AP1d/Xz+79l/zDfsj6yP+59R39j/y/sAf3r/VdZ36EXly+0Z+6/peaqTMC4q/u/7z45+fr5VuB3l+xvUg7u/5f+G9tH9D3q/Lv/a9Qj25/vvGH2lFyP2J9gX3F+8f9H1AfzfM/+G/0nsBfrb/0PZDvp/yf/H9gP+nf4j9lPeL/2PKX+yf8H2F/6D1Of3o9pv9uzXj2UCILxSqTJtn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QoeOHG4JIL55KstjKGteGW8eZpuxbItHS+rw85OaGk8iVwhbwT9CtBSRD0HTa9uE7RV74Qw4YI3KhfrMoRhmcOHlpCZsvfSgvcNf0/nak24VtiVYnatZNGk0d9StstQUQCEN2d0HWi9XkcGkqhqyTDXBOW8b/JXjFBxthPq8CcjS2kuYM64vWb5bPlo3TBJvlM7/S6A+aUHE8Ysr+3Urij3a4OlmHZCAbH72tqwo+C+pwAc9daUTrAcq3y7XKuoBeLxX7xUt9D28IJlAYaj2vFxnpDT9965ai9w+/iZhggv1j57YepY/lSYkU7TmhdRROUnWKrmW7Aun4RGGx2g5aAJLFTK2d7y3E320mXPdgSpc7dD7yRJe+ux5Pz1d/DkwhHeA487pzdWCeMLTc5oZxVRSmY0orTzQgjc3Vb1qUNhw1sf+pzbcaq1cUKzDT0S0UJuN1KK2ZWrt3jSW9GtYzf/4p/Wte+gT0BeWuuGk8CWJhTwcjrkF8bzYCm3Sht9Av1I8sC7HI1yRwa1wBybvlrPjWRR6Jfkyb0YxACVUzGy678cj/fDKSBH/7hlbS4hB6It3rJbQTz8zCfQ2WdhV7n27w4n5o3cyZK2PDXtRnQqBXpHxIxrxRPcUB/GO9z8TzlY2e0cexQbZ3HkD/bupeupZVrpjIq1k9/EwyB+EEGeNHb63rBnxbgSVuEWo0b3WihxMTaZTyre7jogHA2nw8INlzaWrb2Is+v9I5xQN5elt2+hXPAyR160GZ6Ij6NAJPHLEMhw5M7JszydIJxX6bekzNdInyXDwLp5B/pGOIBmgYqQj3NERx5UzJGwruLTFZvHgUj42OMzurfF7niHyu6gM//+uZn94CG5+kMmCCldqOGMrVqWosLAAAAA=="},su=lSt.map((e)=>({id:e,preview:`data:image/webp;base64,${cSt[e]}`}));var Xge=$o(Kge),iu=Ve(["off","minimal","low","medium","high","xhigh"]),gW=Ve(["owner","editor","reviewer"]),kA=["delete_asset"],uSt=R({id:f().optional(),skillId:f(),skill:R({id:f(),name:f()}).optional()}),MLn=R({id:f(),name:f(),type:Xge,enabled:dr(),permission:gW.optional().default("reviewer"),avatar:f().optional(),avatarPreset:f().optional(),providerId:f().optional(),modelId:f().optional(),thinkingLevel:iu.optional().default("off"),systemPrompt:f().optional(),soul:f().optional(),skills:te(uSt).optional(),mcpServerIds:te(f()).optional(),deniedTools:te(f()).optional(),readOnly:dr().optional()}),Qge=R({name:f().min(1),type:Xge,enabled:dr().optional().default(!0),permission:gW.optional(),avatar:f().optional(),providerId:f().optional(),modelId:f().optional(),thinkingLevel:iu.optional().default("off"),systemPrompt:f().optional(),soul:f().optional(),skills:te(f()).optional(),mcpServerIds:te(f()).optional(),deniedTools:te(f()).optional()}),xLn=Qge.superRefine((e,r)=>{if(e.type==="chat"||e.type==="autofill"){if(!e.providerId)r.addIssue({code:oo.custom,message:"providerId is required for chat/autofill agents",path:["providerId"]});if(!e.modelId)r.addIssue({code:oo.custom,message:"modelId is required for chat/autofill agents",path:["modelId"]})}}),vLn=Qge.superRefine((e,r)=>{if(e.type==="chat"||e.type==="autofill"){if(!e.providerId)r.addIssue({code:oo.custom,message:"providerId is required for chat/autofill agents",path:["providerId"]});if(!e.modelId)r.addIssue({code:oo.custom,message:"modelId is required for chat/autofill agents",path:["modelId"]})}}),yLn=R({permission:gW}),_Ln=R({id:f(),sessionId:f(),entry:wZ()}),bLn=R({id:f(),name:f().nullable().optional(),type:f(),createdAt:f(),creator:R({id:f(),name:f().nullable().optional(),email:f().nullable().optional(),image:f().nullable().optional()}).nullable().optional(),agentId:f().optional()});var LLn=R({apiKey:f().optional(),baseUrl:f().optional(),chatModels:te(f()).optional()}),dSt=Ve(["1h","24h","7d","30d"]),kLn=R({timeframe:dSt.default("30d"),userId:f().optional()});var j8=R({cursor:f().optional(),total:Kt().optional(),totalSize:Kt().optional()}),Cs=R({first:wO.number().optional(),after:f().optional()});var $ge=30,ALn=R({data:te(mW(()=>gSt)),pageInfo:j8}),eMe=R({proxyType:Ve(["image","video","audio","pdf","3d"]).nullable().optional(),thumbnailUrl:f().optional(),originalHeight:Kt().optional(),originalWidth:Kt().optional(),rotation:Kt().optional(),spriteUrl:f().optional(),duration:Kt().optional(),pageCount:Kt().optional()}),ZSt=R({type:f().nullable(),preview:eMe.nullable()}),$3=R({id:f(),name:f(),image:f().optional()}),Jge=R({id:f(),name:f()}),pSt=R({fieldId:f(),value:Ss()}),mSt=R({id:f(),name:f()}),hSt=R({duration:Kt().optional(),originalWidth:Kt().optional(),originalHeight:Kt().optional(),rotation:Kt().optional(),frameRate:Kt().optional(),totalFrames:Kt().optional(),startTimecode:f().optional()}),gSt=R({id:f(),name:f(),sizeByte:Kt(),fileCount:Kt(),type:f(),targetType:f().optional().nullable(),status:f(),proxyType:Ve(["image","video","audio","pdf","3d"]).nullable().optional(),latestChildren:te(ZSt).optional(),preview:eMe.nullable().optional(),createdAt:f(),updatedAt:f(),deletedAt:f().nullable().optional(),projectId:f().optional().nullable(),creator:$3.nullable().optional(),agentId:f().optional().nullable(),agent:Jge.optional().nullable(),fieldValues:te(pSt).optional(),sortIndex:f().optional().nullable(),startTime:Kt().optional().nullable(),endTime:Kt().optional().nullable(),hasAgentsMd:dr().optional(),commentsCount:Kt().optional(),media:R({original:R({key:f().optional()}).optional(),videoTranscodes:te(R({id:f(),url:f(),key:f(),width:Kt(),height:Kt(),size:Kt(),resolution:f().optional(),hdr:dr().optional()})).optional(),imageTranscodes:te(R({id:f(),url:f(),key:f(),width:Kt(),height:Kt(),size:Kt()})).optional(),videoPreview:R({url:f(),key:f().optional()}).optional(),pdfTranscode:R({url:f(),key:f().optional()}).optional(),isHls:dr().optional(),hls:R({key:f(),url:f().optional(),resolutions:te(R({width:Kt(),height:Kt(),resolution:f().optional(),hdr:dr().optional(),key:f().optional(),url:f().optional()})).optional()}).optional(),proxyType:Ve(["image","video","audio","pdf","3d"]).nullable().optional(),metadata:hSt.optional(),error:f().optional()}).optional(),ancestorFolders:te(mSt).optional(),versionStack:R({id:f(),versions:te(R({version:Kt(),current:dr(),id:f(),name:f().optional().nullable(),previewUrl:f().optional().nullable(),createdAt:f().optional().nullable(),creator:R({id:f(),name:f().nullable(),image:f().optional().nullable()}).nullable().optional(),agent:Jge.optional().nullable()}))}).optional().nullable()}),ELn=R({name:f(),type:f(),projectId:f().optional(),parentId:f().optional(),key:f().optional(),sizeByte:Kt().optional(),contentType:f().optional(),creatorId:f().optional(),agentId:f().optional()}),DLn=R({assetId:f()}),OLn=R({id:f(),name:f()}),MW=Ve(["file","folder","all"]),NLn=R({assetId:f().optional(),assetType:MW.optional().default("all"),projectId:f().optional(),showDeleted:dr().optional(),prefix:f().optional(),sort:f().optional(),order:f().optional(),...Cs.shape}),FLn=R({assetId:f(),userId:f(),replyToId:f().optional(),message:f(),annotations:Ss().optional(),second:Kt().optional(),attachmentIds:te(f())}),MSt=R({id:f(),assetId:f(),url:f(),proxyType:Ve(["image","video","audio","pdf","3d"]).nullable().optional()}),xSt=R({code:f(),count:Kt(),requestingUserReacted:dr(),creatorNames:te(f())}),jLn=R({code:f().min(1)}),BLn=R({code:f().min(1)}),vSt=R({id:f(),assetId:f(),message:f().nullable(),annotations:Ss(),second:Kt().nullable(),creator:$3,replies:te(mW(()=>vSt)),attachments:te(MSt),mentions:te($3),createdAt:f(),updatedAt:f(),sessionId:f().nullable(),isCompleted:dr(),completionLastChangedBy:$3.nullable(),reactionCounts:te(xSt)}),ULn=R({isCompleted:dr()}),YLn=R({newParentId:f(),assetIds:te(f()),creatorId:f().optional()}),qLn=R({newParentId:f(),assetIds:te(f()),withComments:dr().default(!1),creatorId:f().optional()}),HLn=R({name:f()}),VLn=R({beforeIndex:f().optional(),afterIndex:f().optional()}),WLn=R({ids:te(f())}),GLn=R({ids:te(f())}),KLn=R({file:qge(File)}),XLn=R({key:f()}),QLn=R({fileName:f(),contentType:f(),size:Kt()}),JLn=R({id:f(),uploadUrl:f()}),$Ln=R({ids:te(f())}),ySt=R({id:f(),name:f(),url:f()}),ekn=R({files:te(ySt)}),_St=Ve(["fcp-fiojson","media-composer-xml","premiere-xml","resolve-edl"]),tkn=R({format:_St,timeZone:f().refine((e)=>{try{return Intl.DateTimeFormat(void 0,{timeZone:e}),!0}catch{return!1}},{message:"Invalid IANA time zone identifier"}).optional()});var akn=R({userCount:Kt()}),nkn=R({name:f().min(1,"Name is required").max(100,"Name is too long")}),ikn=R({id:f(),token:f(),name:f(),createdAt:f()});var bSt=Ve(["is","eq","neq","gt","gte","lt","lte","contains","notContains","isEmpty","isNotEmpty","in","notIn","hasAny","hasAll","hasNone","isWithin"]),wSt=R({field:f(),operator:bSt,value:Ss()}),zSt=Ve(["asc","desc"]),SSt=R({field:f(),order:zSt}),LSt=Ve(["AND","OR"]),kSt=Ve(["file","folder"]),ej=Ve(["jpeg","webp"]),xW=R({operator:LSt.optional().default("AND"),conditions:te(wSt).optional().default([]),sort:SSt.optional(),assetType:kSt.optional(),showSymlink:dr().optional(),recursively:dr().optional().default(!0),query:f().optional(),isSemantic:dr().optional().default(!1),previewFormat:ej.optional()}),ckn=xW.extend(Cs.shape);var vW=R({sourceFolderId:f(),searchFilter:xW}),CSt=R({id:f(),name:f(),filter:vW,projectId:f(),createdAt:f(),updatedAt:f(),creator:R({id:f(),name:f(),image:f().optional().nullable()}).optional().nullable()}),mkn=R({name:f(),filter:vW}),hkn=R({name:f().optional(),filter:vW.optional()});var gkn=R({data:te(CSt),pageInfo:R({cursor:f().optional(),total:Kt().optional()})});var vkn=R({name:f(),parentId:f()}),ykn=R({name:f()}),_kn=R({ids:te(f())}),bkn=R({ids:te(f())}),wkn=R({content:f().max(1e5)});var kkn=R({code:f(),role:f(),teamId:f(),teamName:f(),projectId:f().optional(),projectName:f().optional(),inviterName:f(),isUsed:dr()}),Ckn=R({role:$o(hW)}),Ikn=R({role:$o(hW)}),Rkn=R({code:f()});var Pr={text:"text",longText:"longText",select:"select",selectMulti:"selectMulti",rating:"rating",number:"number",toggle:"toggle",date:"date",user:"user",userMulti:"userMulti"},Cr={NONE:"NONE",CONTENT:"CONTENT",CREATION_CONTEXT:"CREATION_CONTEXT"},Dkn=R({id:f(),displayName:f(),color:f().optional()}),yW=R({name:f(),type:Ve(["text","longText","select","selectMulti","rating","number","toggle","date","user","userMulti"]),autofillSource:$o(Cr).optional(),text:Ss().optional(),longText:Ss().optional(),select:Ss().optional(),selectMulti:Ss().optional(),rating:Ss().optional(),number:Ss().optional(),toggle:Ss().optional(),date:Ss().optional(),user:Ss().optional(),userMulti:Ss().optional()}),Okn=R({key:f().optional(),label:f().optional(),scope:f().optional(),config:yW,description:f().default("")}),Nkn=R({label:f().optional(),config:yW,description:f().optional()}),ISt=R({fieldId:f(),visible:dr()}),Fkn=te(ISt),RSt=R({key:f(),value:Ss()}),jkn=te(RSt),Bkn=R({id:f(),config:yW,scope:f(),readOnly:dr(),visible:dr(),description:f()});var tMe=Ve(["auto","none","bearer","oauth"]),_W=Ve(["streamable_http","sse"]),tj=Ve(["owner","editor","reviewer"]),PSt=R({grantType:Ve(["authorization_code","client_credentials"]).optional(),clientId:f().optional(),clientSecret:f().optional(),scope:f().optional(),authorizationParams:LL(f(),f()).optional(),redirectUri:f().optional(),clientName:f().optional(),clientUri:f().optional(),skipIssuerMetadataValidation:dr().optional()}),rMe=R({type:tMe.optional(),bearerToken:f().optional(),headers:LL(f(),f()).optional(),oauth:PSt.optional()}),bW=R({excludeTools:te(f()).optional(),requestTimeoutMs:Kt().int().positive().optional(),idleTimeoutMs:Kt().int().positive().optional(),keepAlive:dr().optional(),protocolVersion:Ve(["legacy","auto","2026-07-28"]).optional(),directTools:te(f()).optional()}),TSt=R({name:f(),title:f().optional(),description:f().optional(),inputSchema:wZ().optional()}),qkn=R({url:f().url(),transport:_W.optional(),authConfig:rMe.optional(),config:bW.optional(),permission:tj.optional()}),Hkn=R({transport:_W.optional(),authConfig:rMe.optional(),config:bW.optional(),permission:tj.optional()}),Vkn=R({permission:tj}),ASt=R({id:f(),name:f(),description:f().optional(),instructions:f().optional(),url:f(),transport:_W,authType:tMe,config:bW.optional(),permission:tj,status:f(),lastError:f().nullable().optional(),toolCount:Kt(),hasCredential:dr(),createdAt:f(),updatedAt:f()}),Wkn=R({servers:te(ASt)}),Gkn=R({}),Kkn=R({tools:te(TSt)}),oMe=Ve(["authenticated","expired","not_authenticated","in_progress"]),Xkn=R({status:oMe}),Qkn=R({authorizationUrl:f().optional(),status:oMe}),Jkn=R({code:f(),iss:f().optional()}),$kn=R({ok:dr(),toolCount:Kt(),message:f().optional()});var aMe=R({id:f().optional(),name:f().optional(),role:f().optional()}),nMe=R({id:f().optional(),name:f().optional()}),ESt=R({id:f().optional(),proxyType:Ve(["image","video","audio","pdf","3d"]).nullable().optional(),name:f().optional(),preview:f().optional(),thumbnailUrl:f().optional(),originalWidth:Kt().optional(),originalHeight:Kt().optional()}),DSt=R({id:f().optional(),title:f().optional(),status:f().optional()}),rCn=R({id:f().optional(),creator:aMe.optional(),type:f().optional(),team:nMe.optional(),project:nMe.optional(),asset:ESt.optional(),kanbanTask:DSt.optional(),user:aMe.optional(),createdAt:f().optional(),isRead:dr().optional()}),oCn=R({unreadOnly:Xa([dr(),f()]).transform((e)=>e===!0||e==="true").optional(),after:f().optional(),pageSize:wO.number().optional()}),aCn=R({notificationId:f().min(1)}),nCn=R({comments:dr().default(!0),replies:dr().default(!0),mentions:dr().default(!0),yourUploads:dr().default(!1),otherUploads:dr().default(!0),statusUpdates:dr().default(!0),kanbanTasks:dr().default(!0),kanbanComments:dr().default(!0)}),iCn=R({enabled:dr(),host:f().default(""),port:Kt().int().min(1).max(65535).default(587),username:f().optional(),password:f().optional(),smtps:dr().default(!1),ignoreCert:dr().default(!1),from:f().default(""),replyTo:f().optional()}),fCn=R({enabled:dr(),host:f().default(""),port:Kt().int().min(1).max(65535).default(587),username:f().optional(),password:f().optional(),smtps:dr().default(!1),ignoreCert:dr().default(!1),from:f().default(""),replyTo:f().optional()}),sCn=R({host:f().optional(),port:Kt().int().min(1).max(65535).optional(),username:f().optional(),password:f().optional(),smtps:dr().optional(),ignoreCert:dr().optional(),from:f().optional(),replyTo:f().optional()}),lCn=R({success:dr(),messageId:f()});var mCn=R({name:f(),coverImageKey:f().optional(),enableNotification:dr().default(!0)}),hCn=R({name:f().optional(),coverImageKey:f().optional(),enableNotification:dr().optional()}),OSt=R({id:f(),name:f(),teamId:f(),rootFolder:f().optional(),coverImage:f().optional(),coverImageKey:f().optional(),enableNotification:dr(),updatedAt:Xa([f(),ti()])}),MCn=R({sortBy:f().optional(),sortDirection:Ve(["asc","desc"]).optional(),previewFormat:ej.optional()}).merge(Cs),xCn=R({previewFormat:ej.optional()}).merge(Cs),vCn=R({data:te(OSt),pageInfo:j8}),yCn=R({teamId:f()}),_Cn=R({id:f(),name:f(),role:Ve(["owner","editor","reviewer","bot","unknown"]),type:$o(J3).optional(),image:f().optional(),scope:Ve(["team","project"]).optional(),hasCustomRole:dr().optional()}),bCn=R({assetType:MW.optional().default("all"),sort:Ve(["createdAt","name","size"]).optional(),order:Ve(["asc","desc"]).optional()}).merge(Cs),wCn=R({role:Ve(["editor","reviewer"])}),zCn=R({userId:f(),role:Ve(["owner","editor","reviewer"])}),SCn=R({id:f(),name:f(),role:Ve(["owner","editor","reviewer","bot","unknown"]),image:f().optional()});var au=["openai-completions","mistral-conversations","openai-responses","azure-openai-responses","openai-codex-responses","anthropic-messages","bedrock-converse-stream","google-generative-ai","google-vertex"],rj=R({api:Ve(au).optional(),reasoning:dr().default(!1),input:te(Ve(["text","image"])).default(["text"]),contextWindow:Kt().int().positive().default(128000),maxTokens:Kt().int().positive().default(4096),cost:R({input:Kt().nonnegative().default(0),output:Kt().nonnegative().default(0),cacheRead:Kt().nonnegative().default(0),cacheWrite:Kt().nonnegative().default(0)})}),wW=R({id:f().optional(),modelId:f().min(1,"Model ID is required"),name:f().min(0).default(""),config:rj}),ia=R({baseUrl:f().url("Must be a valid URL").optional().or(ks("")),apiKey:f().optional().or(ks("")),api:Ve(au),headers:LL(f(),f()).optional(),authHeader:dr().optional()}),CCn=R({name:f().min(1,"Provider name is required"),config:ia,models:te(wW).default([])}),ICn=R({name:f().min(1,"Provider name is required").optional(),config:ia,models:te(wW).optional()}),RA=R({modelId:f().min(1,"Model ID is required"),name:f().min(0).default(""),config:rj}),RCn=R({modelId:f().min(1,"Model ID is required").optional(),name:f().min(0).optional(),config:rj.optional()}),PCn=R({id:f(),name:f(),isBuiltin:dr(),config:ia,models:te(wW).optional(),modelsCount:Kt().optional(),createdAt:ti(),updatedAt:ti()}),iMe=R({modelId:f().min(1),name:f().default(""),config:rj}),NSt=R({name:f(),isNewProvider:dr(),config:ia,models:te(iMe)}),TCn=R({providers:te(NSt),totalNewProviders:Kt(),totalNewModels:Kt()}),ACn=R({providers:te(R({name:f(),isNewProvider:dr(),config:ia,models:te(iMe)}))}),ECn=R({addedProviders:Kt(),addedModels:Kt()});var FCn=R({name:f().min(1),expireAt:f().datetime().optional(),password:f().optional(),isDisabled:dr().optional(),allowDownload:dr().optional(),defaultSortOrder:f().optional(),viewMode:f().optional()}),jCn=R({name:f().min(1).optional(),expireAt:f().datetime().optional().nullable(),password:f().optional().nullable(),isDisabled:dr().optional(),allowDownload:dr().optional(),defaultSortOrder:f().optional().nullable(),viewMode:f().optional().nullable(),fieldVisibility:LL(f(),dr()).optional().nullable()}),BCn=Cs.extend({projectId:f().optional()}),UCn=R({assetIds:te(f().min(1)).min(1)});var HCn=R({assetId:f().optional(),githubUrl:f().optional(),override:dr().optional()}),VCn=R({config:R({environmentVariables:te(R({name:f(),default:f().optional()}))})}),WCn=R({permission:Ve(["owner","editor","reviewer"])});var JCn=R({name:f()}),FSt=R({id:f(),name:f(),rootFolder:f().optional(),updatedAt:Xa([f(),ti()])});var $Cn=R({data:te(FSt),pageInfo:j8}),eIn=R({teamId:f(),userId:f()}),tIn=R({id:f(),name:f(),email:f().optional(),role:Ve(["owner","editor","reviewer","bot","unknown"]),image:f().optional(),unreadNotificationCount:Kt().optional()}),rIn=R({name:f().optional(),imageKey:f().nullable().optional()}),oIn=R({id:f(),name:f(),role:Ve(["owner","editor","reviewer","bot","unknown"]),email:f().optional(),type:$o(J3).optional(),image:f().optional(),scope:$o(Vge).optional()}),aIn=R({includeAgents:f().optional().transform((e)=>e==="true")}),Qs={best_match:"best_match",multi:"multi",all:"all"},jSt={r480p:"480p",r720p:"720p",r1080p:"1080p",r1440p:"1440p",r2160p:"2160p"},PA=["480p","720p","1080p","1440p","2160p"],qa={off:"off",auto:"auto"},BSt={r480p:"480p",r720p:"720p",r1080p:"1080p",r1440p:"1440p",r2160p:"2160p"},NA=["480p","720p","1080p"],nIn=Xa([R({key:ks("transcode.videoStrategy"),value:$o(Qs)}),R({key:ks("transcode.videoResolutions"),value:te($o(jSt))}),R({key:ks("transcode.hardwareAcceleration"),value:$o(qa)}),R({key:ks("transcode.threads"),value:Kt().int().min(0).max(32)}),R({key:ks("transcode.hlsEnabled"),value:dr()}),R({key:ks("transcode.hlsResolutions"),value:te($o(BSt))}),R({key:ks("appearance.hideAgent"),value:dr()})]),iIn=R({url:f().optional(),username:f().optional(),hasPassword:dr(),isEnvConfigured:dr()}),fIn=R({url:f().optional(),username:f().optional(),password:f().optional()}),sIn=R({url:f().optional(),username:f().optional(),hasPassword:dr(),isEnvConfigured:dr()}),lIn=R({url:f().optional(),username:f().optional(),password:f().optional()}),cIn=R({networkSandboxEnabled:dr(),allowedDomains:te(f()),pendingDomains:te(f()).default([])}),uIn=R({networkSandboxEnabled:dr().optional(),allowedDomains:te(f()).optional(),pendingDomains:te(f()).optional()}),dIn=R({role:Ve(["editor","reviewer"])});var fMe=mW(()=>R({name:f(),id:f(),size:Kt(),children:te(fMe),type:f(),mediaType:f().optional()})),mIn=R({parentId:f(),files:te(fMe)}),USt=R({id:f(),fileId:f(),url:f()}),hIn=R({taskId:f(),presignedUrls:te(USt),storageBackend:Ve(["s3","local"]).default("local"),createdAssets:te(R({tempId:f(),assetId:f(),key:f().optional()})).optional()}),gIn=R({key:f().min(1),method:Ve(["PUT","POST","GET","DELETE"]),uploadId:f().optional(),partNumber:Kt().int().positive().optional(),fileId:f().min(1)}),MIn=R({url:f()}),xIn=R({fileId:f().min(1),uploadId:f().optional(),key:f().optional()}),vIn=R({success:dr()}),yIn=R({fileId:f(),errorMessage:f().optional()}),_In=R({id:f(),name:f(),total:Kt(),uploaded:Kt(),createdAt:f()}),bIn=R({bucket:f(),key:f(),Signature:f()}),wIn=R({file:qge(File)});var YSt=R({key:f(),value:wZ()}),LIn=R({value:wZ()}),kIn=te(YSt);var RIn=R({fileIds:te(f())}),PIn=R({fileId:f(),beforeId:f()}),TIn=R({id:f(),version:Kt(),name:f().optional().nullable(),previewUrl:f().optional().nullable(),createdAt:f().optional().nullable(),creator:R({id:f(),name:f().nullable(),image:f().optional().nullable()}).nullable().optional(),agent:R({id:f(),name:f()}).nullable().optional()});var DIn=R({agentId:f(),textPrompt:f().optional(),attachedFiles:te(f()).optional(),assetIds:te(f()).optional(),sessionId:f().optional(),contextAssetId:f().optional(),projectId:f().optional(),second:Kt().nullable().optional(),annotations:te(LL(f(),wZ())).optional()}).superRefine((e,r)=>{let a=e.textPrompt&&e.textPrompt.trim().length>0,i=e.attachedFiles&&e.attachedFiles.length>0,s=e.assetIds&&e.assetIds.length>0,l=e.annotations&&e.annotations.length>0;if(!a&&!i&&!s&&!l)r.addIssue({code:oo.custom,message:"At least one of textPrompt, attachedFiles, assetIds, or annotations must be provided.",path:["textPrompt"]})}),OIn=R({id:f(),agentId:f(),userId:f().nullable(),assetId:f().nullable(),userCommentId:f().nullable(),name:f().nullable().optional(),createdAt:f(),updatedAt:f()}),qSt=R({id:f(),name:f(),type:f(),mediaType:Ve(["image","video","pdf","audio","3d","other"]).optional(),mimeType:f().optional(),parentId:f().optional(),path:f().optional(),durationSeconds:Kt().optional(),totalFrames:Kt().optional(),totalPages:Kt().optional(),navigated:dr().optional(),ancestors:te(R({id:f(),name:f()})).optional()}),sMe=R({id:f(),name:f(),type:f(),mediaType:Ve(["image","video","pdf","audio","3d","other"]).optional(),mimeType:f().optional(),path:f().optional(),url:f().optional()}),HSt=Nge("type",[R({type:ks("time"),seconds:Kt()}),R({type:ks("page"),page:Kt()}),R({type:ks("degree"),degree:Kt().int()})]),VSt=R({id:f(),replyCount:Kt().optional()}),NIn=R({id:f().optional(),user:R({id:f(),name:f(),role:f()}).optional(),thread:VSt.optional(),currentAsset:qSt.optional(),position:HSt.optional(),annotation:dr().optional(),annotations:te(LL(f(),wZ())).optional(),attachedFiles:te(sMe).optional(),referencedAssets:te(sMe).optional()}),FIn=Fge(R({id:f()}),wZ());var Bl;((Ge)=>{Ge.team_create="team_create";Ge.team_update="team_update";Ge.team_delete="team_delete";Ge.team_member_add="team_member_add";Ge.team_member_update="team_member_update";Ge.team_member_remove="team_member_remove";Ge.project_create="project_create";Ge.project_update="project_update";Ge.project_delete="project_delete";Ge.project_empty_trash="project_empty_trash";Ge.project_member_add="project_member_add";Ge.project_member_update="project_member_update";Ge.project_member_remove="project_member_remove";Ge.file_create="file_create";Ge.file_update="file_update";Ge.file_delete="file_delete";Ge.folder_create="folder_create";Ge.folder_update="folder_update";Ge.folder_delete="folder_delete";Ge.asset_reparent="asset_reparent";Ge.asset_copy="asset_copy";Ge.share_create="share_create";Ge.share_update="share_update";Ge.share_delete="share_delete";Ge.agent_create="agent_create";Ge.agent_update="agent_update";Ge.agent_delete="agent_delete";Ge.skill_create="skill_create";Ge.skill_update="skill_update";Ge.skill_delete="skill_delete";Ge.mcp_server_create="mcp_server_create";Ge.mcp_server_update="mcp_server_update";Ge.mcp_server_delete="mcp_server_delete";Ge.provider_create="provider_create";Ge.provider_update="provider_update";Ge.provider_delete="provider_delete";Ge.invite_create="invite_create";Ge.invite_revoke="invite_revoke";Ge.metadata_field_create="metadata_field_create";Ge.metadata_field_update="metadata_field_update";Ge.metadata_field_delete="metadata_field_delete";Ge.comment_create="comment_create";Ge.comment_update="comment_update";Ge.comment_delete="comment_delete";Ge.comment_complete="comment_complete";Ge.quota_rule_create="quota_rule_create";Ge.quota_rule_update="quota_rule_update";Ge.quota_rule_delete="quota_rule_delete";Ge.quota_record_reset="quota_record_reset";Ge.quota_policy_create="quota_policy_create";Ge.quota_policy_update="quota_policy_update";Ge.quota_policy_delete="quota_policy_delete";Ge.kanban_goal_create="kanban_goal_create";Ge.kanban_goal_update="kanban_goal_update";Ge.kanban_goal_delete="kanban_goal_delete";Ge.kanban_task_create="kanban_task_create";Ge.kanban_task_update="kanban_task_update";Ge.kanban_task_delete="kanban_task_delete";Ge.kanban_comment_create="kanban_comment_create";Ge.kanban_comment_delete="kanban_comment_delete";Ge.kanban_dependency_add="kanban_dependency_add";Ge.kanban_dependency_remove="kanban_dependency_remove"})(Bl||={});var WSt=R({id:f(),action:$o(Bl),teamId:f(),userId:f().nullable().optional(),agentId:f().nullable().optional(),agent:R({id:f(),name:f()}).nullable().optional(),projectId:f().nullable().optional(),itemId:f().nullable().optional(),createdAt:f()}),UIn=R({first:wO.number().optional(),after:f().optional(),actions:Xa([$o(Bl),te($o(Bl))]).transform((e)=>Array.isArray(e)?e:[e]).optional(),userIds:Xa([f(),te(f())]).transform((e)=>Array.isArray(e)?e:[e]).optional(),agentIds:Xa([f(),te(f())]).transform((e)=>Array.isArray(e)?e:[e]).optional(),itemId:f().optional()}),YIn=R({nodes:te(WSt),pageInfo:R({hasNextPage:dr(),endCursor:f().nullable()}),total:Kt()});var GSt=R({id:f(),type:ks("text"),x:Kt().min(0).max(1),y:Kt().min(0).max(1),opacity:Kt().min(0).max(1),rotation:Kt().min(-180).max(180),text:f(),size:Kt().positive().max(1),color:f()}),KSt=R({id:f(),type:ks("image"),x:Kt().min(0).max(1),y:Kt().min(0).max(1),opacity:Kt().min(0).max(1),rotation:Kt().min(-180).max(180),imageAssetKey:f().min(1),imageAssetUrl:f().optional(),size:Kt().positive().max(1)}),XSt=Nge("type",[GSt,KSt]),zW=R({blocks:te(XSt)}),VIn=R({name:f().min(1),teamId:f().optional(),config:zW}),WIn=R({name:f().min(1).optional(),config:zW.optional()}),GIn=R({enabled:dr(),config:zW.optional()}).superRefine((e,r)=>{if(e.enabled&&(!e.config||e.config.blocks.length===0))r.addIssue({code:"custom",path:["config"],message:"Watermark configuration is required when enabling watermark"})});var SW=$o(Wge),LW=Ve(["1hour","5hour","1day","7day","one_hour","five_hours","one_day","seven_days"]);function lu(e){switch(e){case"one_hour":case"1hour":return"1hour";case"five_hours":case"5hour":return"5hour";case"one_day":case"1day":return"1day";case"seven_days":case"7day":return"7day";default:return e}}var kW=$o(Gge),CW=Ve(["owner","editor","reviewer"]),lMe=R({id:f().min(1,"MCP server ID is required")}),cMe=R({match:f().min(1,"Bash match wildcard is required")}),uMe=R({name:f().min(1,"Tool name is required")}),IW=LL(f(),wZ()),QSt=R({id:f().nullable(),ruleId:f(),teamId:f(),userId:f().nullable().optional(),user:R({id:f(),name:f(),email:f(),image:f().nullable().optional()}).nullable().optional(),periodStart:f().nullable().optional(),periodEnd:f().nullable().optional(),consumed:Kt(),remaining:Kt(),percent:Kt(),isWindowActive:dr()}),$In=R({records:te(QSt),total:Kt()}),JSt=R({id:f(),teamId:f(),scopeMode:SW,role:CW.nullable().optional(),userIds:te(f()).nullable().optional(),resource:kW,resourceData:IW.nullable().optional(),limit:Kt(),period:LW,enabled:dr(),recordsCount:Kt().optional(),createdAt:f(),updatedAt:f()}),e1n=R({rules:te(JSt),total:Kt()}),t1n=R({scopeMode:SW,role:CW.optional().nullable(),userIds:te(f()).optional().nullable(),resource:kW,resourceData:IW.optional().nullable(),limit:Kt().positive("Limit must be greater than 0"),period:LW,enabled:dr().optional().default(!0)}).superRefine((e,r)=>{if(e.scopeMode==="selected_members"){if(!e.userIds||e.userIds.length===0)r.addIssue({code:oo.custom,message:'userIds must contain at least one user when scopeMode is "selected_members"',path:["userIds"]})}if(e.resource==="agent_mcp_call_count"){if(!lMe.safeParse(e.resourceData).success)r.addIssue({code:oo.custom,message:"resourceData.id is required for agent_mcp_call_count",path:["resourceData","id"]})}else if(e.resource==="agent_bash_call_count"){if(!cMe.safeParse(e.resourceData).success)r.addIssue({code:oo.custom,message:"resourceData.match is required for agent_bash_call_count",path:["resourceData","match"]})}else if(e.resource==="agent_tool_call_count"){if(!uMe.safeParse(e.resourceData).success)r.addIssue({code:oo.custom,message:"resourceData.name is required for agent_tool_call_count",path:["resourceData","name"]})}}),r1n=R({userId:f().nullable()}),o1n=R({scopeMode:SW.optional(),role:CW.optional().nullable(),userIds:te(f()).optional().nullable(),resource:kW.optional(),resourceData:IW.optional().nullable(),limit:Kt().positive("Limit must be greater than 0").optional(),period:LW.optional(),enabled:dr().optional()}).superRefine((e,r)=>{if(e.scopeMode==="selected_members"&&e.userIds!==void 0){if(!e.userIds||e.userIds.length===0)r.addIssue({code:oo.custom,message:'userIds must contain at least one user when scopeMode is "selected_members"',path:["userIds"]})}if(e.resource==="agent_mcp_call_count"&&e.resourceData!==void 0){if(!lMe.safeParse(e.resourceData).success)r.addIssue({code:oo.custom,message:"resourceData.id is required for agent_mcp_call_count",path:["resourceData","id"]})}else if(e.resource==="agent_bash_call_count"&&e.resourceData!==void 0){if(!cMe.safeParse(e.resourceData).success)r.addIssue({code:oo.custom,message:"resourceData.match is required for agent_bash_call_count",path:["resourceData","match"]})}else if(e.resource==="agent_tool_call_count"&&e.resourceData!==void 0){if(!uMe.safeParse(e.resourceData).success)r.addIssue({code:oo.custom,message:"resourceData.name is required for agent_tool_call_count",path:["resourceData","name"]})}});var xi="unassigned",i1n=R({title:f().min(1),description:f().optional()}),f1n=R({title:f().min(1).optional(),description:f().nullable().optional()}),$St=R({id:f(),title:f(),description:f().nullable().optional(),teamId:f(),creatorId:f().nullable().optional(),taskCount:Kt().optional(),createdAt:Xa([f(),ti()]),updatedAt:Xa([f(),ti()])}),s1n=R({}),l1n=R({data:te($St)});var mM=R({id:f(),name:f(),image:f().optional()}),eLt=R({summary:f().optional(),blockReason:f().optional(),blockKind:f().optional(),reason:f().optional(),assets:te(R({id:f(),type:f().optional(),name:f().optional(),description:f().optional()})).optional()}).passthrough(),RW=R({id:f(),taskId:f(),actor:mM.nullable().optional(),type:$o(mf),fromStatus:$o(Qe).nullable().optional(),toStatus:$o(Qe).nullable().optional(),data:eLt.nullable().optional(),createdAt:Xa([f(),ti()])}),Z1n=R({data:te(RW)});var tLt=R({id:f(),name:f(),key:f(),sizeByte:Kt(),contentType:f().nullable().optional(),proxyType:Ve(["image","video","audio","pdf","3d"]).nullable().optional()}),rLt=R({id:f(),name:f(),sizeByte:Kt(),contentType:f().nullable().optional(),url:f(),proxyType:Ve(["image","video","audio","pdf","3d"]).nullable().optional()}),g1n=R({id:f(),name:f(),key:f(),sizeByte:Kt(),contentType:f().nullable().optional(),uploadUrl:f(),proxyType:Ve(["image","video","audio","pdf","3d"]).nullable().optional()}),M1n=R({body:f().default(""),attachments:te(tLt).optional()}).refine((e)=>e.body.trim().length>0||e.attachments&&e.attachments.length>0,{message:"Comment body or attachments required"}),PW=R({id:f(),taskId:f(),author:mM,body:f(),attachments:te(rLt).default([]),createdAt:Xa([f(),ti()]),updatedAt:Xa([f(),ti()])}),x1n=R({data:te(PW)});var S1n=R({title:f().min(1),description:f().optional(),isAgentTask:dr().optional(),priority:$o(zr).optional(),startDate:Xa([f(),ti()]).optional(),dueDate:Xa([f(),ti()]).optional(),goalId:f().optional(),projectId:f().optional(),reporterId:f().optional(),assigneeId:f().optional(),targetFolderId:f().optional(),parentIds:te(f()).optional(),assetIds:te(f()).optional()}),L1n=R({fromStatus:$o(Qe).optional(),title:f().min(1).optional(),description:f().nullable().optional(),status:$o(Qe).optional(),reason:f().optional(),priority:$o(zr).optional(),startDate:Xa([f(),ti()]).nullable().optional(),dueDate:Xa([f(),ti()]).nullable().optional(),goalId:f().nullable().optional(),projectId:f().nullable().optional(),reporterId:f().nullable().optional(),assigneeId:f().nullable().optional(),targetFolderId:f().nullable().optional(),beforeIndex:f().optional(),afterIndex:f().optional(),parentIds:te(f()).optional(),assetIds:te(f()).optional()}),k1n=R({status:$o(Qe).optional(),isAgentTask:Xa([dr(),f()]).transform((e)=>e===!0||e==="true").optional(),goalId:f().optional(),projectId:f().optional(),priority:$o(zr).optional(),assigneeId:f().optional(),reporterId:f().optional()}).merge(Cs),oLt=R({id:f(),type:$o(mf),actor:mM.nullable().optional(),summary:f().optional(),blockReason:f().optional(),blockKind:f().optional(),reason:f().optional(),createdAt:Xa([f(),ti()])}),aLt=R({id:f(),title:f()}),dMe=R({id:f(),title:f(),isAgentTask:dr(),status:$o(Qe),priority:$o(zr),sortIndex:f().nullable().optional()}),nLt=R({id:f(),name:f(),type:f(),proxyType:Ve(["image","video","audio","pdf","3d"]).nullable().optional(),thumbnailUrl:f().nullable().optional(),path:f(),creator:mM.nullable().optional(),sizeByte:Kt().optional(),fileCount:Kt().optional(),projectId:f().nullable().optional(),createdAt:Xa([f(),ti()])}),TW=R({id:f(),title:f(),description:f().nullable().optional(),isAgentTask:dr(),status:$o(Qe),priority:$o(zr),startDate:Xa([f(),ti()]).nullable().optional(),dueDate:Xa([f(),ti()]).nullable().optional(),startedAt:Xa([f(),ti()]).nullable().optional(),completedAt:Xa([f(),ti()]).nullable().optional(),teamId:f(),projectId:f().nullable().optional(),sortIndex:f().nullable().optional(),creator:mM,reporter:mM.nullable().optional(),assignee:mM.nullable().optional(),goal:aLt.nullable().optional(),targetFolderId:f().nullable().optional(),latestStatusEvent:oLt.nullable().optional(),commentCount:Kt().default(0),dependencyCount:Kt().default(0),dependentCount:Kt().default(0),assetCount:Kt().default(0),createdAt:Xa([f(),ti()]),updatedAt:Xa([f(),ti()])}),C1n=TW.extend({dependencies:te(dMe),dependents:te(dMe),assets:te(nLt),comments:te(PW),events:te(RW)}),I1n=R({data:te(TW),pageInfo:j8}),R1n=R({taskId:f()}),P1n=R({assetIds:te(f())}),T1n=R({data:te(TW),total:Kt()});var U1n=R({assetId:f()});function ZMe(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Sa(e,r){if(r===void 0||r===null)return"";return` ${e}="${ZMe(r)}"`}function DA(e){if(!e)return"";let r=[];if(e.user){let a="";if(e.user.id!==void 0)a+=Sa("id",e.user.id);if(e.user.name!==void 0)a+=Sa("name",e.user.name);if(e.user.role!==void 0)a+=Sa("role",e.user.role);if(a)r.push(` <user${a} />`)}if(e.thread){let a="";if(e.thread.id!==void 0)a+=Sa("id",e.thread.id);if(e.thread.replyCount!==void 0)a+=` reply_count="${Math.round(e.thread.replyCount)}"`;if(a)r.push(` <thread${a} />`)}if(e.currentAsset){let a=e.currentAsset,i="";if(a.id!==void 0)i+=Sa("id",a.id);if(a.name!==void 0)i+=Sa("name",a.name);if(a.type!==void 0)i+=Sa("type",a.type);if(a.mediaType!==void 0)i+=Sa("media_type",a.mediaType);if(a.mimeType!==void 0)i+=Sa("mime_type",a.mimeType);if(a.parentId!==void 0)i+=Sa("parent_id",a.parentId);if(a.path!==void 0)i+=Sa("path",a.path);if(a.durationSeconds!==void 0)i+=` duration_seconds="${a.durationSeconds.toFixed(2)}"`;if(a.totalFrames!==void 0)i+=` total_frames="${Math.round(a.totalFrames)}"`;if(a.totalPages!==void 0)i+=` total_pages="${Math.round(a.totalPages)}"`;if(a.navigated!==void 0)i+=` navigated="${String(a.navigated)}"`;if(a.ancestors&&a.ancestors.length>0){r.push(` <current_asset${i}>`),r.push(" <ancestors>");for(let s of a.ancestors){let l="";if(s.id!==void 0)l+=Sa("id",s.id);if(s.name!==void 0)l+=Sa("name",s.name);r.push(` <folder${l} />`)}r.push(" </ancestors>"),r.push(" </current_asset>")}else r.push(` <current_asset${i} />`)}if(e.position){if(e.position.type==="time")r.push(` <position type="time" seconds="${e.position.seconds.toFixed(4)}" />`);else if(e.position.type==="page")r.push(` <position type="page" page="${Math.round(e.position.page)}" />`);else if(e.position.type==="degree")r.push(` <position type="degree" degree="${Math.round(e.position.degree)}" />`)}if(e.annotation)if(e.id!==void 0)r.push(` <annotation id="${ZMe(e.id)}" />`);else r.push(" <annotation />");if(e.attachedFiles&&e.attachedFiles.length>0){let a=[...e.attachedFiles].sort((i,s)=>i.id.localeCompare(s.id));r.push(" <attached_files>");for(let i of a){let s="";if(i.id!==void 0)s+=Sa("id",i.id);if(i.name!==void 0)s+=Sa("name",i.name);if(i.type!==void 0)s+=Sa("type",i.type);if(i.mediaType!==void 0)s+=Sa("media_type",i.mediaType);if(i.mimeType!==void 0)s+=Sa("mime_type",i.mimeType);if(i.path!==void 0)s+=Sa("path",i.path);r.push(` <file${s} />`)}r.push(" </attached_files>")}if(e.referencedAssets&&e.referencedAssets.length>0){let a=[...e.referencedAssets].sort((i,s)=>i.id.localeCompare(s.id));r.push(" <referenced_assets>");for(let i of a)if(i.type==="folder"){let s="";if(i.id!==void 0)s+=Sa("id",i.id);if(i.name!==void 0)s+=Sa("name",i.name);if(i.path!==void 0)s+=Sa("path",i.path);r.push(` <folder${s} />`)}else{let s="";if(i.id!==void 0)s+=Sa("id",i.id);if(i.name!==void 0)s+=Sa("name",i.name);if(i.type!==void 0)s+=Sa("type",i.type);if(i.mediaType!==void 0)s+=Sa("media_type",i.mediaType);if(i.mimeType!==void 0)s+=Sa("mime_type",i.mimeType);if(i.path!==void 0)s+=Sa("path",i.path);r.push(` <asset${s} />`)}r.push(" </referenced_assets>")}if(r.length===0)return"";return`<context>
|
|
196
|
+
${r.join(`
|
|
197
|
+
`)}
|
|
198
|
+
</context>`}var XR=Ve(["image","video"]),iLt=Ve(["configured_custom","configured_env","not_configured"]),V1n=R({apiKey:f().optional().or(ks("")),models:te(R({type:XR,modelId:f().min(1,"Model ID is required"),name:f().optional()})).optional()});var W1n=R({type:XR,provider:f().min(1,"Provider is required"),modelId:f().min(1,"Model ID is required"),name:f().optional()}),fLt=R({id:f(),type:XR,provider:f(),modelId:f(),name:f(),createdAt:f()}),sLt=R({provider:f(),defaultEnvKey:f(),apiKeyConfigured:dr(),status:iLt,customApiKeyOrEnv:f().optional(),supportedTypes:te(XR)}),G1n=R({providers:te(sLt),enabledModels:te(fLt)}),K1n=R({modelId:f(),name:f(),type:XR}),X1n=R({provider:f().optional(),type:XR.optional()});var pMe=86400000,kn=(e)=>{let r=uM(e),a=new Date;if(isNaN(r.getTime()))return e;let i=Ar(r,"HH:mm");if(sO(r))return eMt({time:i});if(lO(r))return Avt({time:i});let s=hV(a,r),l=s>=0?s:0;return l===1?kle({count:l}):Lle({count:l})},OA=(e)=>{let r=uM(e),a=new Date;if(isNaN(r.getTime()))return e;if(sO(r))return Ple();if(lO(r))return Tle();let i=hV(a,r),s=i>=0?i:0;return s===1?kle({count:s}):Lle({count:s})},em=(e,r=new Date)=>{let a=typeof e==="string"?uM(e).getTime():e instanceof Date?e.getTime():NaN;if(isNaN(a))return"< 1m";let i=a-r.getTime();if(i<=0)return"< 1m";let s=Math.floor(i/1000),l=Math.floor(s/86400),c=Math.floor(s%86400/3600),d=Math.floor(s%3600/60);if(l>0)return c>0?`${l}d ${c}h`:`${l}d`;if(c>0)return d>0?`${c}h ${d}m`:`${c}h`;return d>0?`${d}m`:"< 1m"},Wd=(e,r=new Date)=>{if(!e)return null;let a=uM(e);if(isNaN(a.getTime()))return null;let i=a.getTime()+$ge*pMe;return Math.max(0,Math.ceil((i-r.getTime())/pMe))};S();var zO=10,EW=10,AW=zO*EW,Yd=({spriteUrl:e,thumbnailUrl:r,videoWidth:a,videoHeight:i,className:s="",reverse:l=!1})=>{let c=_(null),[d,h]=u({width:0,height:0}),[g,x]=u({width:0,height:0}),[v,b]=u(!1),[y,k]=u(!1),[T,U]=u(!1),[N,j]=u(0),[G,X]=u(0);m(()=>{if(!c.current)return;let be=new ResizeObserver((We)=>{for(let Ye of We)h({width:Ye.contentRect.width,height:Ye.contentRect.height})});return be.observe(c.current),()=>be.disconnect()},[]);let J=P(()=>{if(y||T)return;U(!0);let be=new Image;be.src=e,be.onload=()=>{x({width:be.naturalWidth,height:be.naturalHeight}),k(!0),U(!1)},be.onerror=()=>{console.error("Failed to load sprite image"),U(!1)}},[e,y,T]),ee=()=>{b(!0),J()},re=()=>{b(!1)},oe=(be)=>{if(!c.current)return;let We=c.current.getBoundingClientRect(),Ye=be.clientX-We.left,Se=Math.max(0,Math.min(Ye,We.width));X(Se);let He=Se/We.width,ft=Math.min(Math.floor(He*AW),AW-1),Je=l?AW-1-ft:ft;j(Je)},fe=D(()=>{if(d.width===0||d.height===0)return{};let be=a/i;if(g.width>0&&g.height>0){let Wt=g.width/zO,Fe=g.height/EW;be=Wt/Fe}let We=d.width/d.height,Ye,Se;if(We>be)Se=d.height,Ye=Se*be;else Ye=d.width,Se=Ye/be;let He=Math.ceil(Ye),ft=Math.ceil(Se),Je=He*zO,xt=ft*EW,Ft=N%zO,Bt=Math.floor(N/zO),ie=-(Ft*He),bt=-(Bt*ft);return{backgroundImage:`url(${e})`,backgroundSize:`${Je}px ${xt}px`,backgroundPosition:`${ie}px ${bt}px`,backgroundRepeat:"no-repeat",width:`${He}px`,height:`${ft}px`,imageRendering:"auto"}},[d,a,i,N,e,g]);return o("div",{ref:c,"data-testid":"sprite-scrubber","data-frame":N,className:`relative w-full h-full overflow-hidden cursor-pointer group bg-black select-none ${s}`,onMouseEnter:ee,onMouseLeave:re,onMouseMove:oe,children:[t("img",{src:r,alt:"Thumbnail",className:`absolute inset-0 w-full h-full object-contain transition-opacity duration-200 ${v&&y?"opacity-0":"opacity-100"}`,draggable:!1}),v&&!y&&t("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50 z-10",children:t("div",{className:"w-6 h-6 border-2 border-white/30 border-t-white rounded-full animate-spin"})}),y&&t("div",{className:`absolute inset-0 flex items-center justify-center transition-opacity duration-75 ${v?"opacity-100":"opacity-0"}`,children:t("div",{style:fe})}),v&&t("div",{className:"absolute top-0 bottom-0 w-0.5 bg-red-500 shadow-[0_0_4px_rgba(255,0,0,0.8)] z-20 pointer-events-none",style:{transform:`translateX(${G}px)`}})]})};S();var il=(e,r)=>{let a=new RegExp(`(${Object.keys(r).map((i)=>`\\{${i}\\}`).join("|")})`,"g");return t("span",{children:e.split(a).map((i,s)=>{let l=i.match(/^\{(.+)\}$/);if(l&&r[l[1]])return t(In,{children:r[l[1]]},s);return i})})},mMe=({notification:e})=>{let r=Re(),{creator:a,createdAt:i,isRead:s,type:l,asset:c,project:d,team:h,user:g,kanbanTask:x}=e,v=(()=>{let T=a?.name||Ll(),U=c?.name||x8t(),N=x?.title||k8t(),j=d?.name||z8t(),G=h?.name||R8t(),X=g?.name||Ll(),J={creator:t("span",{className:"font-semibold",children:T}),asset:t("span",{className:"font-semibold",children:U}),task:t("span",{className:"font-semibold",children:N}),project:t("span",{className:"font-semibold",children:j}),team:t("span",{className:"font-semibold",children:G}),user:t("span",{className:"font-semibold",children:X})};switch(l){case"comment_created":return il(Itt({creator:"{creator}",asset:"{asset}"}),J);case"reply_created":return il(drt({creator:"{creator}",asset:"{asset}"}),J);case"mention":return il(x?lrt({creator:"{creator}",task:"{task}"}):irt({creator:"{creator}",asset:"{asset}"}),J);case"successful_file_uploaded":return il(_rt({creator:"{creator}",asset:"{asset}",project:"{project}"}),J);case"metadata_field_updated_status":return il(xrt({creator:"{creator}",asset:"{asset}"}),J);case"new_user_join_team":return il(Ftt({user:"{user}",team:"{team}"}),J);case"new_user_join_project":return il(Dtt({user:"{user}",project:"{project}"}),J);case"kanban_task_created":return il(Gtt({creator:"{creator}",task:"{task}"}),J);case"kanban_task_assigned":return il(Utt({creator:"{creator}",task:"{task}"}),J);case"kanban_task_status_updated":return il(ert({creator:"{creator}",task:"{task}"}),J);case"kanban_task_updated":return il(ort({creator:"{creator}",task:"{task}"}),J);case"kanban_task_deleted":return il(Qtt({creator:"{creator}",task:"{task}"}),J);case"kanban_task_comment_created":return il(Htt({creator:"{creator}",task:"{task}"}),J);default:return il(Ttt({creator:"{creator}"}),J)}})(),b=c?.proxyType==="video"&&c.preview&&c.thumbnailUrl&&c.originalWidth&&c.originalHeight,y=c?.preview&&(c.proxyType==="image"||c.proxyType==="video");return o("div",{onClick:()=>{if(x?.id&&h?.id)r({to:"/teams/$teamId/kanban",params:{teamId:h.id},search:{taskId:x.id}});else if(d?.id&&c?.id)r({to:"/projects/$projectId/files/$fileId",params:{projectId:d.id,fileId:c.id}})},className:"flex py-2 cursor-pointer group border border-transparent items-center justify-center hover:bg-muted/50 rounded-md px-1 transition-colors",children:[t("div",{className:C("w-1.5 h-1.5 rounded-full shadow-xs",s?"bg-transparent":"bg-destructive")}),o("div",{className:"flex-1 min-w-0 flex flex-col justify-center pl-2",children:[t("div",{className:"text-sm text-foreground break-all leading-snug",children:v}),t("div",{className:"text-[11px] text-muted-foreground mt-1",children:kn(i||"")})]}),y&&t("div",{className:"w-18 h-18 ml-2 rounded-md overflow-hidden flex-shrink-0 bg-muted border border-border flex items-center justify-center mt-0.5",children:b?t(Yd,{spriteUrl:c.preview,thumbnailUrl:c.thumbnailUrl,videoWidth:c.originalWidth,videoHeight:c.originalHeight}):t("img",{src:c.preview,alt:c.name,className:"w-full h-full object-cover"})})]})};function Eo({className:e,orientation:r="horizontal",...a}){return t(lTe,{"data-slot":"tabs","data-orientation":r,orientation:r,className:C("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...a})}var lLt=ps("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function Co({className:e,variant:r="default",...a}){return t(cTe,{"data-slot":"tabs-list","data-variant":r,className:C(lLt({variant:r}),e),...a})}function Yr({className:e,...r}){return t(uTe,{"data-slot":"tabs-trigger",className:C("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",e),...r})}function Rn({className:e,...r}){return t(dTe,{"data-slot":"tabs-content",className:C("flex-1 outline-none",e),...r})}S();var hMe=()=>{let{teamId:e}=ut(),[r,a]=u("all"),i=V(),{ref:s,inView:l}=Nt(),c=(N,j)=>["notifications",N,{unreadOnly:j}],{data:d,fetchNextPage:h,hasNextPage:g,isFetchingNextPage:x,isLoading:v,refetch:b}=mt({queryKey:c(e??null,r==="unread"),queryFn:async({pageParam:N})=>{let j=await A.api.teams[":teamId"].notifications.$get({param:{teamId:e},query:{unreadOnly:r==="unread"?"true":"false",...N?{after:N}:{},pageSize:"20"}});if(!j.ok)throw Error("failed to fetch notifications");return j.json()},initialPageParam:void 0,getNextPageParam:(N)=>N.pageInfo?.cursor||void 0,enabled:!!e});m(()=>{if(l&&g)h()},[l,g,h]);let y=D(()=>d?.pages.flatMap((N)=>N.data||[])||[],[d]);m(()=>{if(e)i.invalidateQueries({queryKey:["teams",e,"me"]})},[e,y.length,i]);let k=A.api.teams[":teamId"].notifications.read.$post,T=B({mutationFn:async({teamId:N,notificationId:j})=>{if(!(await k({param:{teamId:N},json:{notificationId:j}})).ok)throw Error("failed to mark read");return null}}),U=async()=>{if(y.length>0&&e){let N=y[0].id;if(N){i.setQueryData(["teams",e,"me"],(j)=>{if(!j)return j;return{...j,unreadNotificationCount:0}});try{await T.mutateAsync({teamId:e,notificationId:N})}catch(j){console.error("Failed to mark all as read:",j)}i.invalidateQueries({queryKey:["notifications",e]}),i.invalidateQueries({queryKey:["teams",e,"me"]}),b()}}};return o("div",{className:"flex flex-col h-full w-full bg-transparent",children:[t("div",{className:"flex-none pb-1",children:t(Eo,{value:r,onValueChange:(N)=>a(N),className:"w-full",children:o("div",{className:"flex items-center justify-between mb-2",children:[o(Co,{className:"h-8",children:[t(Yr,{value:"all",className:"text-xs px-3 h-6",children:zOe()}),t(Yr,{value:"unread",className:"text-xs px-3 h-6",children:U8t()})]}),t(E,{variant:"ghost",size:"sm",className:"h-8 px-2 text-muted-foreground hover:text-foreground",onClick:U,disabled:y.length===0||T.isPending,title:SKe(),children:t(A2,{className:"w-4 h-4"})})]})})}),o("div",{className:"flex-1 overflow-y-auto p-2 min-h-0",children:[v&&t("div",{className:"flex justify-center p-4",children:t(O,{className:"w-6 h-6 animate-spin text-muted-foreground"})}),!v&&y.length===0&&t("div",{className:"flex flex-col items-center justify-center h-40 text-muted-foreground",children:t("p",{className:"text-sm",children:Ret()})}),t("div",{className:"space-y-1",children:y.map((N)=>t(mMe,{notification:N},N.id))}),t("div",{ref:s,className:"h-4 w-full flex justify-center p-1",children:x&&t(O,{className:"w-4 h-4 animate-spin text-muted-foreground"})})]})]})};var kL=null,un=Rr((e)=>({projectState:null,setProjectState:(r)=>{if(kL)clearTimeout(kL),kL=null;e({projectState:r})},clearProjectState:()=>{if(kL)clearTimeout(kL);kL=setTimeout(()=>{e({projectState:null}),kL=null},10)}}));var cLt=ps("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function me({className:e,variant:r="default",asChild:a=!1,...i}){let s=a?jae:"span";return t(s,{"data-slot":"badge","data-variant":r,className:C(cLt({variant:r}),e),...i})}var oj={viewBox:"0 -960 960 960",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},gMe=(e)=>t("svg",{...oj,...e,children:t("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm120-80v-560H200v560h120Zm80 0h360v-560H400v560Z"})}),MMe=(e)=>t("svg",{...oj,...e,children:t("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm360-80v-560H200v560h360Zm200 0v-560H640v560h120Z"})}),xMe=(e)=>t("svg",{...oj,...e,children:t("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm560-80v-560H400v560h360Z"})}),vMe=(e)=>t("svg",{...oj,...e,children:t("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm360-80v-560H200v560h360Z"})}),yMe=(e)=>o("svg",{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",...e,children:[t("path",{d:"M12 8V4H8"}),t("path",{d:"M6 7H18A3 3 0 0 1 21 10V18A3 3 0 0 1 18 21H6A3 3 0 0 1 3 18V10A3 3 0 0 1 6 7ZM8 13V15A1 1 0 0 0 10 15V13A1 1 0 0 0 8 13ZM14 13V15A1 1 0 0 0 16 15V13A1 1 0 0 0 14 13Z",fill:"currentColor",stroke:"none"}),t("path",{d:"M2 14h2"}),t("path",{d:"M20 14h2"})]}),_Me=(e)=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"120 -792 720 720",fill:"none","aria-hidden":"true",focusable:"false",...e,children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 160 -180 v -72 h 80 v -252 q 0 -74.7 50 -132.75 T 420 -712.8 v -25.2 q 0 -22.5 17.5 -38.25 T 480 -792 q 25 0 42.5 15.75 T 540 -738 v 25.2 q 80 18 130 76.05 T 720 -504 v 252 h 80 v 72 H 160 Z M 480 -72 q -33 0 -56.5 -21.15 T 400 -144 h 160 q 0 29.7 -23.5 50.85 T 480 -72 Z",fill:"currentColor"})}),Si=(e)=>o("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",...e,children:[t("path",{d:"M10.77 10.377a1 1 0 0 0-.132.437l-.105 1.665a.5.5 0 0 0 .793.436l1.32-.96a1 1 0 0 0 .278-.309l3.912-6.775a1.25 1.25 0 1 0-2.165-1.25l-3.901 6.756Z",fill:"currentColor"}),t("path",{d:"M11.016 6.75a.758.758 0 0 1-.758.748c-2.938 0-4.882 1.71-5.517 3.95-.708 2.499.245 4.459 1.979 5.851 1.767 1.42 4.31 2.203 6.547 2.203.415 0 .749.335.745.748a.758.758 0 0 1-.758.748c-2.536 0-5.421-.873-7.485-2.531-2.098-1.686-3.38-4.225-2.475-7.414.818-2.883 3.354-5.051 6.977-5.051.415 0 .749.335.745.748Z",fill:"currentColor"}),t("path",{d:"M17.147 8.315a.767.767 0 0 1 1.058-.168c1.666 1.188 2.508 2.542 2.733 3.876a4.5 4.5 0 0 1-.805 3.392c-.919 1.434-2.714 2.074-4.479 2.185-1.799.113-3.78-.302-5.292-1.216a.733.733 0 0 1-.242-1.022.768.768 0 0 1 1.042-.246c1.216.734 2.881 1.096 4.409 1 1.553-.097 2.755-.647 3.292-1.5l.015-.022.015-.021a3.025 3.025 0 0 0 .553-2.294c-.148-.876-.72-1.915-2.137-2.926a.733.733 0 0 1-.162-1.038Z",fill:"currentColor"})]}),hM=(e)=>o("svg",{viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t("defs",{children:t("clipPath",{id:"bg-clip",children:t("rect",{x:"5",y:"5",width:"90",height:"90",rx:"22"})})}),t("rect",{x:"5",y:"5",width:"90",height:"90",rx:"22",fill:"#D95A66"}),t("path",{d:"M 35 75 L 65 75 L 80 60 L 75 30 L 175 130 L 135 175 Z",fill:"#A8384D",clipPath:"url(#bg-clip)"}),t("path",{d:"M 25 30 Q 38 36 50 42 L 35 55 L 35 75 L 20 60 Z",fill:"#FDF0D5"}),t("path",{d:"M 50 42 Q 62 36 75 30 L 80 60 L 65 75 L 65 55 Z",fill:"#E77A65"}),t("path",{d:"M 35 75 L 65 75 L 65 55 L 50 42 L 35 55 Z",fill:"#F5B895"}),t("path",{d:"M 50 42 Q 38 36 25 30 Q 38 26 50 20 Q 62 26 75 30 Q 62 36 50 42 Z",fill:"#F4B8B8"}),t("path",{d:"M 50 25 L 42 30 L 50 35 Z",fill:"#E57A5F"}),t("path",{d:"M 50 25 L 58 30 L 50 35 Z",fill:"#C2523C"})]}),bMe=(e)=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"24 24 152 152",fill:"none","aria-hidden":"true",focusable:"false",...e,children:t("path",{d:"M 44 170 L 44 100 L 24 100 L 100 30 L 126 54 L 126 36 L 142 36 L 142 69 L 176 100 L 156 100 L 156 170 L 120 170 L 120 136 A 20 20 0 0 0 80 136 L 80 170 Z",fill:"currentColor"})});function wMe({uploading:e=!1,className:r="",...a}){return o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"15 15 70 70",width:30,height:30,className:`${r} ${e?"animate-upload-breathing":""}`,"aria-hidden":"true",focusable:"false",style:e?{transformOrigin:"center"}:void 0,...a,children:[e&&t("defs",{children:o("linearGradient",{id:"upload-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t("stop",{offset:"0%",stopColor:"#3b82f6",children:t("animate",{attributeName:"stop-color",values:"#3b82f6;#ec4899;#8b5cf6;#3b82f6",dur:"3s",repeatCount:"indefinite"})}),t("stop",{offset:"50%",stopColor:"#8b5cf6",children:t("animate",{attributeName:"stop-color",values:"#8b5cf6;#3b82f6;#ec4899;#8b5cf6",dur:"3s",repeatCount:"indefinite"})}),t("stop",{offset:"100%",stopColor:"#ec4899",children:t("animate",{attributeName:"stop-color",values:"#ec4899;#8b5cf6;#3b82f6;#ec4899",dur:"3s",repeatCount:"indefinite"})})]})}),t("path",{d:"M 44.1 75 H 30 A 15 15 0 0 1 30 45 A 20 20 0 0 1 70 45 A 15 15 0 0 1 70 75 H 55.9 V 60.2 H 61.9 L 50 45.3 L 38.1 60.2 H 44.1 Z",fill:e?"url(#upload-gradient)":"currentColor"})]})}var zMe=({className:e,...r})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",fill:"currentColor","aria-hidden":"true",focusable:"false",className:e?`rotate-180 ${e}`:"rotate-180",...r,children:t("path",{d:"M172-84q-36.3 0-62.15-25.85T84-172v-616q0-36.3 25.85-62.15T172-876h616q36.3 0 62.15 25.85T876-788v616q0 36.3-25.85 62.15T788-84H172Zm88-176h88v-440h-88v440Zm176 0h88v-264h-88v264Zm176 0h88v-352h-88v352Z"})}),SMe=(e)=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",fill:"currentColor","aria-hidden":"true",focusable:"false",...e,children:t("path",{d:"M520-600v-240h320v240H520ZM120-440v-400h320v400H120Zm400 320v-400h320v400H520Zm-400 0v-240h320v240H120Z"})});S();S();var{create:uLt,defineProperty:EMe,defineProperties:dLt,getOwnPropertyDescriptor:ZLt,getOwnPropertyDescriptors:pLt,getOwnPropertySymbols:lj}=Object,DMe=Object.prototype.hasOwnProperty,OMe=Object.prototype.propertyIsEnumerable,mLt=(e,r)=>(r=Symbol[e])?r:Symbol.for("Symbol."+e),RO=(e)=>{throw TypeError(e)},FW=(e,r,a)=>(r in e)?EMe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,DW=(e,r)=>{for(var a in r||(r={}))if(DMe.call(r,a))FW(e,a,r[a]);if(lj){for(var a of lj(r))if(OMe.call(r,a))FW(e,a,r[a])}return e},OW=(e,r)=>dLt(e,pLt(r)),hLt=(e,r)=>{var a={};for(var i in e)if(DMe.call(e,i)&&r.indexOf(i)<0)a[i]=e[i];if(e!=null&&lj){for(var i of lj(e))if(r.indexOf(i)<0&&OMe.call(e,i))a[i]=e[i]}return a},gLt=(e)=>{var r;return[,,,uLt((r=void 0)!=null?r:null)]},NMe=["class","method","getter","setter","accessor","field","value","get","set"],LO=(e)=>e!==void 0&&typeof e!=="function"?RO("Function expected"):e,MLt=(e,r,a,i,s)=>({kind:NMe[e],name:r,metadata:i,addInitializer:(l)=>a._?RO("Already initialized"):s.push(LO(l||null))}),xLt=(e,r)=>FW(r,mLt("metadata"),e[3]),aj=(e,r,a,i)=>{for(var s=0,l=e[r>>1],c=l&&l.length;s<c;s++)r&1?l[s].call(a):i=l[s].call(a,i);return i},FMe=(e,r,a,i,s,l)=>{var c,d,h,g,x,v=r&7,b=!1,y=!1,k=e.length+1,T=NMe[v+5],U=e[k-1]=[],N=e[k]||(e[k]=[]),j=(s=s.prototype,ZLt({get[a](){return kO(this,l)},set[a](X){return CL(this,l,X)}},a));for(var G=i.length-1;G>=0;G--)if(g=MLt(v,a,h={},e[3],N),g.static=b,g.private=y,x=g.access={has:(X)=>(a in X)},x.get=(X)=>X[a],x.set=(X,J)=>X[a]=J,d=(0,i[G])({get:j.get,set:j.set},g),h._=1,d===void 0)LO(d)&&(j[T]=d);else if(typeof d!=="object"||d===null)RO("Object expected");else LO(c=d.get)&&(j.get=c),LO(c=d.set)&&(j.set=c),LO(c=d.init)&&U.unshift(c);return j&&EMe(s,a,j),s},jMe=(e,r,a)=>r.has(e)||RO("Cannot "+a),kO=(e,r,a)=>(jMe(e,r,"read from private field"),r.get(e)),SO=(e,r,a)=>r.has(e)?RO("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,a),CL=(e,r,a,i)=>(jMe(e,r,"write to private field"),r.set(e,a),a);function so(e){return e instanceof YW||e instanceof YMe}var nj=10,vLt=class extends Bi{constructor(e){super(e);let r=Ii(()=>{let{dragOperation:i}=e;if(!dL(i.activatorEvent))return;if(!so(i.source))return;if(i.status.initialized){let s=e.registry.plugins.get(DR);if(s)return s.disable(),()=>s.enable()}}),a=e.monitor.addEventListener("dragmove",(i,s)=>{queueMicrotask(()=>{if(this.disabled||i.defaultPrevented||!i.nativeEvent)return;let{dragOperation:l}=s;if(!dL(i.nativeEvent))return;if(!so(l.source))return;if(!l.shape)return;let{actions:c,collisionObserver:d,registry:h}=s,{by:g}=i;if(!g)return;let x=yLt(g),{source:v,target:b}=l,{center:y}=l.shape.current,k=[],T=[];Qo(()=>{for(let J of h.droppables){let{id:ee}=J;if(!J.accepts(v)||ee===(b==null?void 0:b.id)&&so(J)||!J.element)continue;let re=J.shape,oe=new Cc(J.element,{getBoundingClientRect:(fe)=>SR(fe,void 0,0.2)});if(!oe.height||!oe.width)continue;if(x=="down"&&y.y+nj<oe.center.y||x=="up"&&y.y-nj>oe.center.y||x=="left"&&y.x-nj>oe.center.x||x=="right"&&y.x+nj<oe.center.x)k.push(J),J.shape=oe,T.push(()=>J.shape=re)}}),i.preventDefault(),d.disable();let U=d.computeCollisions(k,wue);Qo(()=>T.forEach((J)=>J()));let[N]=U;if(!N)return;let{id:j}=N,{index:G,group:X}=v.sortable;c.setDropTarget(j).then(()=>{let{source:J,target:ee,shape:re}=l;if(!J||!so(J)||!re)return;let{index:oe,group:fe,target:be}=J.sortable,We=G!==oe||X!==fe,Ye=We?be:ee==null?void 0:ee.element;if(!Ye)return;e3(Ye);let Se=new Cc(Ye);if(!Se)return;let He=tl.delta(Se,tl.from(re.current.boundingRectangle),J.alignment);if(c.move({by:He}),We)c.setDropTarget(J.id).then(()=>d.enable());else d.enable()})})});this.destroy=()=>{a(),r()}}};function yLt(e){let{x:r,y:a}=e;if(r>0)return"right";else if(r<0)return"left";else if(a>0)return"down";else if(a<0)return"up"}var{defineProperty:_Lt,defineProperties:bLt,getOwnPropertyDescriptors:wLt,getOwnPropertySymbols:LMe}=Object,zLt=Object.prototype.hasOwnProperty,SLt=Object.prototype.propertyIsEnumerable,kMe=(e,r,a)=>(r in e)?_Lt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,QR=(e,r)=>{for(var a in r||(r={}))if(zLt.call(r,a))kMe(e,a,r[a]);if(LMe){for(var a of LMe(r))if(SLt.call(r,a))kMe(e,a,r[a])}return e},JR=(e,r)=>bLt(e,wLt(r));function LLt(e,r,a){if(r===a)return e;let i=e.slice();return i.splice(a,0,i.splice(r,1)[0]),i}function ij(e,r){let a=String(r);return Object.prototype.hasOwnProperty.call(e,a)?a:void 0}function NW(e){return"initialIndex"in e&&typeof e.initialIndex==="number"&&"index"in e&&typeof e.index==="number"}function kLt(e,r,a){var i,s;let{source:l,target:c,canceled:d}=r.operation;if(!l||!c||d){if("preventDefault"in r)r.preventDefault();return e}let h=(G,X)=>G===X||G!==null&&typeof G==="object"&&("id"in G)&&G.id===X;if(Array.isArray(e)){let G=e.findIndex((J)=>h(J,l.id)),X=e.findIndex((J)=>h(J,c.id));if(G===-1||X===-1){if(NW(l)){let{initialIndex:J,index:ee}=l;if(J===ee||J<0||J>=e.length){if("preventDefault"in r)r.preventDefault();return e}return a(e,J,ee)}return e}if(!d&&"index"in l&&typeof l.index==="number"){let J=l.index;if(J!==G)return a(e,G,J)}return a(e,G,X)}let g=Object.entries(e),x=-1,v,b=-1,y;for(let[G,X]of g){if(x===-1){if(x=X.findIndex((J)=>h(J,l.id)),x!==-1)v=G}if(b===-1){if(b=X.findIndex((J)=>h(J,c.id)),b!==-1)y=G}if(x!==-1&&b!==-1)break}if(x===-1&&NW(l)){let G=l.initialGroup==null?void 0:ij(e,l.initialGroup),X=l.initialIndex,J=l.group==null?void 0:ij(e,l.group),ee=l.index;if(G==null||J==null){if("preventDefault"in r)r.preventDefault();return e}if(G===J&&X===ee){if("preventDefault"in r)r.preventDefault();return e}if(G===J)return JR(QR({},e),{[G]:a(e[G],X,ee)});let re=e[G][X];return JR(QR({},e),{[G]:[...e[G].slice(0,X),...e[G].slice(X+1)],[J]:[...e[J].slice(0,ee),re,...e[J].slice(ee)]})}if(!l.manager)return e;let{dragOperation:k}=l.manager,T=(s=(i=k.shape)==null?void 0:i.current.center)!=null?s:k.position.current;if(y==null){let G=ij(e,c.id);if(G!=null){let X=c.shape&&T.y>c.shape.center.y?e[G].length:0;y=G,b=X}}if(v==null||y==null||v===y&&x===b){if(v!=null&&v===y&&x===b&&NW(l)){let G=l.group==null?void 0:ij(e,l.group),X=l.group!=null&&G!==v,J=l.index!==x;if(X||J){let ee=l.group==null?v:G;if(ee!=null){if(v===ee)return JR(QR({},e),{[v]:a(e[v],x,l.index)});let re=e[v][x];return JR(QR({},e),{[v]:[...e[v].slice(0,x),...e[v].slice(x+1)],[ee]:[...e[ee].slice(0,l.index),re,...e[ee].slice(l.index)]})}}}if("preventDefault"in r)r.preventDefault();return e}if(v===y)return JR(QR({},e),{[v]:a(e[v],x,b)});let N=c.shape&&Math.round(T.y)>Math.round(c.shape.center.y)?1:0,j=e[v][x];return JR(QR({},e),{[v]:[...e[v].slice(0,x),...e[v].slice(x+1)],[y]:[...e[y].slice(0,b+N),j,...e[y].slice(b+N)]})}function CLt(e,r){return kLt(e,r,LLt)}function CMe(e){let r=new Map;for(let[,a]of e)for(let i of a)r.set(i.id,i.index);return r}function IMe(e,r,a){var i;for(let[s,l]of r)for(let c of l){let d=e.get(c.id);if(c.index!==d||c.group!==s||!((i=a.get(s))==null?void 0:i.has(c)))return!0}return!1}var RMe="__default__",ILt=class extends Bi{constructor(e){super(e);let r=()=>{let i=new Map;for(let s of e.registry.droppables)if(s instanceof YW){let{sortable:l}=s,{group:c}=l,d=i.get(c);if(!d)d=new Set,i.set(c,d);d.add(l)}return i},a=[e.monitor.addEventListener("dragover",(i,s)=>{if(this.disabled)return;let{dragOperation:l}=s,{source:c,target:d}=l;if(!so(c)||!so(d))return;if(c.sortable===d.sortable)return;let h=r(),g=CMe(h),x=c.sortable.group===d.sortable.group,v=h.get(c.sortable.group),b=x?v:h.get(d.sortable.group);if(!v||!b)return;queueMicrotask(()=>{if(i.defaultPrevented)return;s.renderer.rendering.then(()=>{var y,k;let T=r();if(IMe(g,h,T))return;let U=c.sortable.element,N=d.sortable.element;if(!N||!U)return;if(!x&&d.id===c.sortable.group)return;let j=fj(v),G=x?j:fj(b),X=(y=c.sortable.group)!=null?y:RMe,J=(k=d.sortable.group)!=null?k:RMe,ee={[X]:j,[J]:G},re=CLt(ee,i);if(ee===re)return;let oe=re[J].indexOf(c.sortable),fe=re[J].indexOf(d.sortable);s.collisionObserver.disable(),PMe(U,oe,N,fe),Qo(()=>{for(let[be,We]of re[X].entries())We.index=be;if(!x)for(let[be,We]of re[J].entries())We.group=d.sortable.group,We.index=be}),s.actions.setDropTarget(c.id).then(()=>s.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(i,s)=>{if(!i.canceled)return;let{dragOperation:l}=s,{source:c}=l;if(!so(c))return;if(c.sortable.initialIndex===c.sortable.index&&c.sortable.initialGroup===c.sortable.group)return;queueMicrotask(()=>{let d=r(),h=CMe(d),g=d.get(c.sortable.initialGroup);if(!g)return;s.renderer.rendering.then(()=>{let x=r();if(IMe(h,d,x))return;let v=fj(g),b=fj(g,PLt),y=c.sortable.element,k=b.indexOf(c.sortable),T=v[k],U=T==null?void 0:T.element;if(!T||!U||!y)return;PMe(y,T.index,U,c.index),Qo(()=>{for(let N of d.values()){let j=Array.from(N).values();for(let G of j)G.index=G.initialIndex,G.group=G.initialGroup}})})})})];this.destroy=()=>{for(let i of a)i()}}};function PMe(e,r,a,i){let s=i<r?"afterend":"beforebegin";a.insertAdjacentElement(s,e)}function RLt(e,r){return e.index-r.index}function PLt(e,r){return e.initialIndex-r.initialIndex}function fj(e,r=RLt){return Array.from(e).sort(r)}var TMe=[vLt,ILt],jW={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1};function AMe(e){var r,a;if(typeof e==="boolean")return{draggable:e,droppable:e};return{draggable:(r=e==null?void 0:e.draggable)!=null?r:!1,droppable:(a=e==null?void 0:e.droppable)!=null?a:!1}}var sj=new $le,BMe,UMe,B8,BW,CO,IO,UW,$R;UMe=[Ro],BMe=[Ro];var PO=class{constructor(e,r){SO(this,BW,aj(B8,8,this)),aj(B8,11,this),SO(this,CO),SO(this,IO),SO(this,UW,aj(B8,12,this)),aj(B8,15,this),SO(this,$R),this.register=()=>(Qo(()=>{var k,T;(k=this.manager)==null||k.registry.register(this.droppable),(T=this.manager)==null||T.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{Qo(()=>{var k,T;(k=this.manager)==null||k.registry.unregister(this.droppable),(T=this.manager)==null||T.registry.unregister(this.draggable)})},this.destroy=()=>{Qo(()=>{this.droppable.destroy(),this.draggable.destroy()})};var a=e,{effects:i=()=>[],disabled:s,group:l,index:c,sensors:d,type:h,transition:g=jW,plugins:x}=a,v=hLt(a,["effects","disabled","group","index","sensors","type","transition","plugins"]);let b=ds(x,TMe),y=AMe(s);this.droppable=new YW(OW(DW({},v),{disabled:y.droppable}),r,this),this.draggable=new YMe(OW(DW({},v),{disabled:y.draggable,plugins:b,effects:()=>[()=>{var k,T,U;let N=(k=this.manager)==null?void 0:k.dragOperation.status;if((N==null?void 0:N.initializing)&&this.id===((U=(T=this.manager)==null?void 0:T.dragOperation.source)==null?void 0:U.id))sj.clear(this.manager);if(N==null?void 0:N.dragging)sj.set(this.manager,this.id,vo(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{let{index:k,group:T,manager:U}=this,N=kO(this,IO),j=kO(this,CO);if(k!==N||T!==j)CL(this,IO,k),CL(this,CO,T),this.animate()},()=>{var k,T;let{target:U}=this,{isDragSource:N}=this.draggable;if(((T=(k=this.draggable.pluginConfig(ys))==null?void 0:k.feedback)!=null?T:"default")==="move"&&N)this.droppable.disabled=!U},...i()],type:h,sensors:d}),r,this),CL(this,$R,v.element),this.manager=r,this.index=c,CL(this,IO,c),this.group=l,CL(this,CO,l),this.type=h,this.transition=g}get initialIndex(){var e,r;return(r=(e=sj.get(this.manager,this.id))==null?void 0:e.initialIndex)!=null?r:this.index}get initialGroup(){var e,r;return(r=(e=sj.get(this.manager,this.id))==null?void 0:e.initialGroup)!=null?r:this.group}animate(){vo(()=>{let{manager:e,transition:r}=this,{shape:a}=this.droppable;if(!e)return;let{idle:i}=e.dragOperation.status;if(!a||!r||i&&!r.idle)return;e.renderer.rendering.then(()=>{let{element:s}=this;if(!s)return;for(let x of s.getAnimations())if("transitionProperty"in x&&(x.transitionProperty==="transform"||x.transitionProperty==="translate"||x.transitionProperty==="scale"))x.cancel();let l=this.refreshShape();if(!l)return;let c={x:a.boundingRectangle.left-l.boundingRectangle.left,y:a.boundingRectangle.top-l.boundingRectangle.top},{translate:d}=kc(s),h=TH(s,d,!1),g=TH(s,d);if(c.x||c.y){let x=qD(Ms(s))?OW(DW({},r),{duration:0}):r;t3({element:s,keyframes:{translate:[`${h.x+c.x}px ${h.y+c.y}px ${h.z}`,`${g.x}px ${g.y}px ${g.z}`]},options:x}).then(()=>{if(!e.dragOperation.status.dragging)this.droppable.shape=void 0})}})})}get manager(){return this.draggable.manager}set manager(e){Qo(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){Qo(()=>{let r=kO(this,$R),a=this.droppable.element,i=this.draggable.element;if(!a||a===r)this.droppable.element=e;if(!i||i===r)this.draggable.element=e;CL(this,$R,e)})}get element(){var e,r;let a=kO(this,$R);if(!a)return;return(r=(e=HD.get(a))!=null?e:a)!=null?r:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){let{disabled:e}=this.draggable,{disabled:r}=this.droppable;return e===r?e:{draggable:e,droppable:r}}set plugins(e){this.draggable.plugins=ds(e,TMe)}set disabled(e){let r=AMe(e);Qo(()=>{this.droppable.disabled=r.droppable,this.draggable.disabled=r.draggable})}set data(e){Qo(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){this.droppable.id=e,this.draggable.id=e}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=e!=null?e:o3}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){Qo(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};B8=gLt();BW=new WeakMap;CO=new WeakMap;IO=new WeakMap;UW=new WeakMap;$R=new WeakMap;FMe(B8,4,"index",UMe,PO,BW);FMe(B8,4,"group",BMe,PO,UW);xLt(B8,PO);var YMe=class extends ML{constructor(e,r,a){super(e,r);this.sortable=a}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},YW=class extends OR{constructor(e,r,a){super(e,r);this.sortable=a}get index(){return this.sortable.index}get group(){return this.sortable.group}};var{defineProperty:TLt,defineProperties:ALt,getOwnPropertyDescriptors:ELt,getOwnPropertySymbols:qMe}=Object,DLt=Object.prototype.hasOwnProperty,OLt=Object.prototype.propertyIsEnumerable,HMe=(e,r,a)=>(r in e)?TLt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,qW=(e,r)=>{for(var a in r||(r={}))if(DLt.call(r,a))HMe(e,a,r[a]);if(qMe){for(var a of qMe(r))if(OLt.call(r,a))HMe(e,a,r[a])}return e},NLt=(e,r)=>ALt(e,ELt(r));function Ha(e){let{accept:r,collisionDetector:a,collisionPriority:i,id:s,data:l,element:c,handle:d,index:h,group:g,disabled:x,modifiers:v,sensors:b,target:y,type:k,plugins:T}=e,U=qW(qW({},jW),e.transition),N=m3((G)=>new PO(NLt(qW({},e),{transition:U,register:!1,handle:zu(d),element:zu(c),target:zu(y)}),G)),j=NR(N,FLt);return qo(s,()=>N.id=s),fM(()=>{Qo(()=>{N.group=g,N.index=h})},[N,g,h]),qo(k,()=>N.type=k),qo(r,()=>N.accept=r,void 0,cf),qo(l,()=>l&&(N.data=l)),qo(h,()=>{var G;if(((G=N.manager)==null?void 0:G.dragOperation.status.idle)&&(U==null?void 0:U.idle))N.refreshShape()},lde),P8(d,(G)=>N.handle=G),P8(c,(G)=>N.element=G),P8(y,(G)=>N.target=G),qo(x,()=>N.disabled=x!=null?x:!1,void 0,cf),qo(b,()=>N.sensors=b,void 0,cf),qo(a,()=>N.collisionDetector=a),qo(i,()=>N.collisionPriority=i),qo(T,()=>N.plugins=T,void 0,cf),qo(U,()=>N.transition=U,void 0,cf),qo(v,()=>N.modifiers=v,void 0,cf),qo(e.alignment,()=>N.alignment=e.alignment),{sortable:j,get isDragging(){return j.isDragging},get isDropping(){return j.isDropping},get isDragSource(){return j.isDragSource},get isDropTarget(){return j.isDropTarget},handleRef:P((G)=>{N.handle=G!=null?G:void 0},[N]),ref:P((G)=>{var X,J;if(!G&&((X=N.element)==null?void 0:X.isConnected)&&!((J=N.manager)==null?void 0:J.dragOperation.status.idle))return;N.element=G!=null?G:void 0},[N]),sourceRef:P((G)=>{var X,J;if(!G&&((X=N.source)==null?void 0:X.isConnected)&&!((J=N.manager)==null?void 0:J.dragOperation.status.idle))return;N.source=G!=null?G:void 0},[N]),targetRef:P((G)=>{var X,J;if(!G&&((X=N.target)==null?void 0:X.isConnected)&&!((J=N.manager)==null?void 0:J.dragOperation.status.idle))return;N.target=G!=null?G:void 0},[N])}}function FLt(e,r,a){if(e==="isDragSource"&&!a&&r)return!0;return!1}S();function jLt(e){if(!e)return null;try{let r=uM(e);if(isNaN(r.getTime()))return null;return Ar(r,"MMM d, yyyy")}catch{return null}}function BLt({version:e,displayVersionNumber:r,index:a,canEdit:i,onRemove:s}){let[l,c]=u(!1),{ref:d,handleRef:h}=Ha({id:e.id,index:a,disabled:!i}),g=jLt(e.createdAt);return o("div",{ref:d,className:"group flex items-center gap-3 p-2.5 rounded-lg border border-border bg-card hover:bg-accent/40 transition-colors",children:[o("div",{className:"flex-shrink-0 flex items-center justify-center bg-muted text-muted-foreground rounded-full px-2.5 py-0.5 text-xs font-semibold select-none min-w-[2.25rem]",children:["v",r]}),i?t("div",{ref:h,className:"cursor-grab active:cursor-grabbing text-muted-foreground hover:text-foreground p-1 -m-1 rounded touch-none flex items-center justify-center",children:t(js,{className:"h-4 w-4"})}):t("div",{className:"w-4"}),t("div",{className:"h-12 w-20 flex-shrink-0 overflow-hidden rounded-md border border-border bg-muted flex items-center justify-center",children:e.previewUrl?t("img",{src:e.previewUrl,alt:e.name||"",className:"h-full w-full object-cover"}):t(ar,{className:"h-5 w-5 text-muted-foreground"})}),o("div",{className:"flex flex-col flex-1 min-w-0 text-left",children:[t("span",{className:"truncate text-sm font-medium text-foreground",title:e.name||"",children:e.name||"Untitled"}),o("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground truncate",children:[e.agent?o("span",{className:"flex items-center gap-1 truncate",children:[t(Tt,{className:"h-3 w-3 shrink-0"}),t("span",{className:"truncate",children:tu({user:e.creator?.name||An(),agent:e.agent.name})})]}):t("span",{children:e.creator?.name||An()}),g&&o(L,{children:[t("span",{children:"•"}),t("span",{children:g})]})]})]}),i&&o(ge,{modal:!1,open:l,onOpenChange:c,children:[t(Ae,{asChild:!0,children:t(E,{variant:"ghost",size:"icon","aria-label":"More options",className:C("h-8 w-8 text-muted-foreground hover:text-foreground transition-opacity flex-shrink-0",l?"opacity-100":"opacity-0 group-hover:opacity-100 focus:opacity-100"),children:t(Sr,{className:"h-4 w-4"})})}),t(_e,{align:"end",children:o(K,{onClick:()=>s(e.id),className:"text-destructive focus:text-destructive cursor-pointer",children:[t(we,{className:"h-4 w-4 mr-2"}),t("span",{children:mlt()})]})})]})]})}function Jd({open:e,onOpenChange:r,stackId:a,canEdit:i=!0,onVersionRemoved:s,onStackDissolved:l}){let c=V(),[d,h]=u([]),{data:g,isLoading:x}=Z({queryKey:["version_stacks",a,"versions"],queryFn:async()=>{let U=await A.api.version_stacks[":stackId"].versions.$get({param:{stackId:a}});if(!U.ok)throw Error("Failed to fetch versions");return await U.json()},enabled:e&&!!a});m(()=>{if(g)h(g)},[g]);let{mutate:v}=B({mutationFn:async({fileId:U,beforeId:N})=>{if(!(await A.api.version_stacks[":stackId"].order.$post({param:{stackId:a},json:{fileId:U,beforeId:N}})).ok)throw Error("Failed to reorder versions")},onSuccess:()=>{c.invalidateQueries({queryKey:["version_stacks"]}),c.invalidateQueries({queryKey:["files"]}),c.invalidateQueries({queryKey:["file"]}),c.invalidateQueries({queryKey:["search"]}),c.invalidateQueries({queryKey:["folders"]}),c.invalidateQueries({queryKey:["projects"]}),M.success(jxt())},onError:()=>{if(M.error(Zqe()),g)h(g)}}),{mutate:b,isPending:y}=B({mutationFn:async(U)=>{if(!(await A.api.version_stacks[":stackId"].versions[":versionId"].$delete({param:{stackId:a,versionId:U}})).ok)throw Error("Failed to remove version from stack");return U},onSuccess:(U)=>{M.success(Oxt());let N=d.filter((j)=>j.id!==U);if(h(N),c.invalidateQueries({queryKey:["version_stacks"]}),c.invalidateQueries({queryKey:["files"]}),c.invalidateQueries({queryKey:["file"]}),c.invalidateQueries({queryKey:["search"]}),c.invalidateQueries({queryKey:["folders"]}),c.invalidateQueries({queryKey:["projects"]}),N.length<=1){let j=N[0];if(r(!1),j)l?.(j.id)}else s?.(U,N)},onError:()=>{M.error(sqe())}}),k=(U)=>{if(U.canceled)return;let{source:N}=U.operation;if(!so(N))return;let{initialIndex:j,index:G}=N;if(j===G)return;let X=[...d],[J]=X.splice(j,1);X.splice(G,0,J),h(X);let ee=G===X.length-1?"-1":X[G+1].id;v({fileId:J.id,beforeId:ee})},T=(U)=>{if(y)return;b(U)};return t(ue,{open:e,onOpenChange:r,children:o(ae,{className:"max-w-lg p-0 gap-0 overflow-hidden",children:[t(pe,{className:"p-4 pb-3 border-b border-border",children:t(le,{className:"text-base font-semibold",children:bKe()})}),t(ce,{className:"max-h-[60vh] p-4",children:x?t("div",{className:"py-8 text-center text-sm text-muted-foreground",children:Ed?.()||"Loading..."}):d.length===0?t("div",{className:"py-8 text-center text-sm text-muted-foreground",children:btt()}):t("div",{className:"space-y-2",children:t(Vn,{sensors:[_n.configure({activationConstraints:[new Dr.Distance({value:6})]}),es],onDragEnd:k,children:d.map((U,N)=>t(BLt,{version:U,displayVersionNumber:d.length-N,index:N,canEdit:i,onRemove:T},U.id))})})})]})})}S();function At({...e}){return t(MRe,{"data-slot":"popover",...e})}function _t({...e}){return t(xRe,{"data-slot":"popover-trigger",...e})}function yt({className:e,align:r="center",sideOffset:a=4,...i}){return t(vRe,{children:t(yRe,{"data-slot":"popover-content",align:r,sideOffset:a,className:C("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...i})})}var FA=[Qe.TODO,Qe.READY,Qe.IN_PROGRESS,Qe.BLOCKED,Qe.IN_REVIEW,Qe.DONE];function io(e){switch(e){case Qe.TODO:return Omt();case Qe.READY:return Amt();case Qe.IN_PROGRESS:return kmt();case Qe.BLOCKED:return mA();case Qe.IN_REVIEW:return Rmt();case Qe.DONE:return zmt();default:return e}}function tm(e){switch(e){case Qe.TODO:return{badge:"bg-muted text-muted-foreground border-border",border:"border-border",dot:"bg-muted-foreground",bg:"bg-muted/30"};case Qe.READY:return{badge:"bg-blue-500/10 text-blue-600 dark:text-blue-400 border-blue-500/20",border:"border-blue-500/30",dot:"bg-blue-500",bg:"bg-blue-500/5"};case Qe.IN_PROGRESS:return{badge:"bg-amber-500/10 text-amber-600 dark:text-amber-400 border-amber-500/20",border:"border-amber-500/30",dot:"bg-amber-500",bg:"bg-amber-500/5"};case Qe.BLOCKED:return{badge:"bg-red-500/10 text-red-600 dark:text-red-400 border-red-500/20",border:"border-red-500/30",dot:"bg-red-500",bg:"bg-red-500/5"};case Qe.IN_REVIEW:return{badge:"bg-purple-500/10 text-purple-600 dark:text-purple-400 border-purple-500/20",border:"border-purple-500/30",dot:"bg-purple-500",bg:"bg-purple-500/5"};case Qe.DONE:return{badge:"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border-emerald-500/20",border:"border-emerald-500/30",dot:"bg-emerald-500",bg:"bg-emerald-500/5"}}}function U8(e){return tm(e).badge}function aa(e){switch(e){case zr.LOW:return Znt();case zr.MEDIUM:return hnt();case zr.HIGH:return cnt();case zr.URGENT:return xnt();default:return e}}function la(e){switch(e){case zr.LOW:return"bg-muted text-muted-foreground border-border";case zr.MEDIUM:return"bg-blue-500/10 text-blue-600 dark:text-blue-400 border-blue-500/20";case zr.HIGH:return"bg-amber-500/10 text-amber-600 dark:text-amber-400 border-amber-500/20";case zr.URGENT:return"bg-red-500/10 text-red-600 dark:text-red-400 border-red-500/20 font-semibold";default:return"bg-muted text-muted-foreground border-border"}}S();function Ei({className:e,...r}){return t("textarea",{"data-slot":"textarea",className:C("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",e),...r})}function W({className:e,...r}){return t(nRe,{"data-slot":"label",className:C("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}function Me({className:e,size:r="default",...a}){return t(GPe,{"data-slot":"switch","data-size":r,className:C("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",e),...a,children:t(XPe,{"data-slot":"switch-thumb",className:C("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")})})}function Le({...e}){return t(dPe,{"data-slot":"select",...e})}function Ze({...e}){return t(hPe,{"data-slot":"select-value",...e})}function Be({className:e,size:r="default",children:a,...i}){return o(pPe,{"data-slot":"select-trigger","data-size":r,className:C("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...i,children:[a,t(gPe,{asChild:!0,children:t(ve,{className:"size-4 opacity-50"})})]})}function Ue({className:e,children:r,position:a="item-aligned",align:i="center",...s}){return t(yPe,{children:o(_Pe,{"data-slot":"select-content",className:C("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,align:i,...s,children:[t(ULt,{}),t(kPe,{className:C("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:r}),t(YLt,{})]})})}function ne({className:e,children:r,...a}){return o(RPe,{"data-slot":"select-item",className:C("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[t("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:t(APe,{children:t(Pe,{className:"size-4"})})}),t(PPe,{children:r})]})}function ULt({className:e,...r}){return t(EPe,{"data-slot":"select-scroll-up-button",className:C("flex cursor-default items-center justify-center py-1",e),...r,children:t(Ma,{className:"size-4"})})}function YLt({className:e,...r}){return t(DPe,{"data-slot":"select-scroll-down-button",className:C("flex cursor-default items-center justify-center py-1",e),...r,children:t(ve,{className:"size-4"})})}S();function VMe(e,r,a="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:a}).format(r).split(/\s/g).slice(2).join(" ")}var qLt={},TO={};function ku(e,r){try{let i=(qLt[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(r).split("GMT")[1];if(i in TO)return TO[i];return WMe(i,i.split(":"))}catch{if(e in TO)return TO[e];let a=e?.match(HLt);if(a)return WMe(e,a.slice(1));return NaN}}var HLt=/([+-]\d\d):?(\d\d)?/;function WMe(e,r){let a=+(r[0]||0),i=+(r[1]||0),s=+(r[2]||0)/60;return TO[e]=a*60+i>0?a*60+i+s:a*60-i-s}class Cu extends Date{constructor(...e){super();if(e.length>1&&typeof e[e.length-1]==="string")this.timeZone=e.pop();if(this.internal=new Date,isNaN(ku(this.timeZone,this)))this.setTime(NaN);else if(!e.length)this.setTime(Date.now());else if(typeof e[0]==="number"&&(e.length===1||e.length===2&&typeof e[1]!=="number"))this.setTime(e[0]);else if(typeof e[0]==="string")this.setTime(+new Date(e[0]));else if(e[0]instanceof Date)this.setTime(+e[0]);else this.setTime(+new Date(...e)),XMe(this,e)}static tz(e,...r){return r.length?new Cu(...r,e):new Cu(Date.now(),e)}withTimeZone(e){return new Cu(+this,e)}getTimezoneOffset(){let e=-ku(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),cj(this),+this}[Symbol.for("constructDateFrom")](e){return new Cu(+new Date(e),this.timeZone)}}var GMe=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach((e)=>{if(!GMe.test(e))return;let r=e.replace(GMe,"$1UTC");if(!Cu.prototype[r])return;if(e.startsWith("get"))Cu.prototype[e]=function(){return this.internal[r]()};else Cu.prototype[e]=function(){return Date.prototype[r].apply(this.internal,arguments),VLt(this),+this},Cu.prototype[r]=function(){return Date.prototype[r].apply(this,arguments),cj(this),+this}});function cj(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-ku(e.timeZone,e)*60))}function VLt(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),XMe(e)}function XMe(e,r){let a=Array.isArray(r)?WLt(r):+e.internal,i=ku(e.timeZone,e),s=i>0?Math.floor(i):Math.ceil(i),l=new Date(+e);l.setUTCHours(l.getUTCHours()-1);let c=-new Date(+e).getTimezoneOffset(),d=-new Date(+l).getTimezoneOffset(),h=c-d,g=c;if(h&&c!==s){let fe=Date.prototype.getHours.apply(e),be=Array.isArray(r)?r[3]||0:e.internal.getUTCHours();if(fe!==be){let We=new Date(+e),Ye=c-s;if(Ye)We.setUTCMinutes(We.getUTCMinutes()+Ye);let Se=ku(e.timeZone,We);if((Se>0?Math.floor(Se):Math.ceil(Se))===s)g=d}}let x=g-s;if(x)Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+x);let v=new Date(+e);v.setUTCSeconds(0);let b=c>0?v.getSeconds():(v.getSeconds()-60)%60,y=Math.round(-(ku(e.timeZone,e)*60))%60;if(y||b)Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+y+b);let k=ku(e.timeZone,e),T=k>0?Math.floor(k):Math.ceil(k),N=-new Date(+e).getTimezoneOffset()-T,j=T!==s,G=N-x,X=T-s,J=a-T*60*1000,ee=X>0&&KMe(e)-a===X*60*1000&&KMe(e,J)!==a;if(j&&G&&!ee){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+G);let fe=ku(e.timeZone,e),be=fe>0?Math.floor(fe):Math.ceil(fe),We=T-be;if(We&&G<0)Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+We)}cj(e);let oe=(r?a:a+y*1000)-+e.internal;if(oe&&Math.abs(oe)<1800000)Date.prototype.setTime.call(e,+e+oe),cj(e)}function WLt(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function KMe(e,r){let a=new Date(r??+e);return a.setUTCSeconds(a.getUTCSeconds()-Math.round(-ku(e.timeZone,a)*60)),+a}class Nn extends Cu{static tz(e,...r){return r.length?new Nn(...r,e):new Nn(Date.now(),e)}toISOString(){let[e,r,a]=this.tzComponents(),i=`${e}${r}:${a}`;return this.internal.toISOString().slice(0,-1)+i}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,r,a,i]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${a} ${r} ${i}`}toTimeString(){let e=this.internal.toUTCString().split(" ")[4],[r,a,i]=this.tzComponents();return`${e} GMT${r}${a}${i} (${VMe(this.timeZone,this)})`}toLocaleString(e,r){return Date.prototype.toLocaleString.call(this,e,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleDateString(e,r){return Date.prototype.toLocaleDateString.call(this,e,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleTimeString(e,r){return Date.prototype.toLocaleTimeString.call(this,e,{...r,timeZone:r?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset(),r=e>0?"-":"+",a=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),i=String(Math.abs(e)%60).padStart(2,"0");return[r,a,i]}withTimeZone(e){return new Nn(+this,e)}[Symbol.for("constructDateFrom")](e){return new Nn(+new Date(e),this.timeZone)}}function QMe(e,r){let a=r.startOfMonth(e),i=a.getDay()>0?a.getDay():7,s=r.addDays(e,-i+1),l=r.addDays(s,34);return r.getMonth(e)===r.getMonth(l)?5:4}function uj(e,r){let a=r.startOfMonth(e),i=a.getDay();if(i===1)return a;else if(i===0)return r.addDays(a,-6);else return r.addDays(a,-1*(i-1))}function JMe(e,r){let a=uj(e,r),i=QMe(e,r);return r.addDays(a,i*7-1)}var AO={...lM,labels:{labelDayButton:(e,r,a,i)=>{let s;if(i&&typeof i.format==="function")s=i.format.bind(i);else s=(c,d)=>Ar(c,d,{locale:lM,...a});let l=s(e,"PPPP");if(r.today)l=`Today, ${l}`;if(r.selected)l=`${l}, selected`;return l},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:(e)=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,r,a)=>{let i;if(a&&typeof a.format==="function")i=a.format.bind(a);else i=(s,l)=>Ar(s,l,{locale:lM,...r});return i(e,"LLLL yyyy")},labelGridcell:(e,r,a,i)=>{let s;if(i&&typeof i.format==="function")s=i.format.bind(i);else s=(c,d)=>Ar(c,d,{locale:lM,...a});let l=s(e,"PPPP");if(r?.today)l=`Today, ${l}`;return l},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,r,a)=>{let i;if(a&&typeof a.format==="function")i=a.format.bind(a);else i=(s,l)=>Ar(s,l,{locale:lM,...r});return i(e,"cccc")}}};class ri{constructor(e,r){this.today=()=>{if(this.overrides?.today)return this.overrides.today();if(this.options.timeZone)return Nn.tz(this.options.timeZone);return new(this.options.Date??Date)},this.newDate=(a,i,s)=>{if(this.overrides?.newDate)return this.overrides.newDate(a,i,s);if(this.options.timeZone)return new Nn(a,i,s,this.options.timeZone);return new Date(a,i,s)},this.addDays=(a,i)=>this.overrides?.addDays?this.overrides.addDays(a,i):FR(a,i),this.addMonths=(a,i)=>this.overrides?.addMonths?this.overrides.addMonths(a,i):ja(a,i),this.addWeeks=(a,i)=>this.overrides?.addWeeks?this.overrides.addWeeks(a,i):fO(a,i),this.addYears=(a,i)=>this.overrides?.addYears?this.overrides.addYears(a,i):Dde(a,i),this.differenceInCalendarDays=(a,i)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(a,i):A8(a,i),this.differenceInCalendarMonths=(a,i)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(a,i):b3(a,i),this.eachMonthOfInterval=(a)=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(a):jde(a),this.eachYearOfInterval=(a)=>{let i=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(a):Yde(a),s=new Set(i.map((c)=>this.getYear(c)));if(s.size===i.length)return i;let l=[];return s.forEach((c)=>{l.push(new Date(c,0,1))}),l},this.endOfBroadcastWeek=(a)=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(a):JMe(a,this),this.endOfISOWeek=(a)=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(a):qde(a),this.endOfMonth=(a)=>this.overrides?.endOfMonth?this.overrides.endOfMonth(a):Kd(a),this.endOfWeek=(a,i)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(a,i):z3(a,this.options),this.endOfYear=(a)=>this.overrides?.endOfYear?this.overrides.endOfYear(a):Ude(a),this.format=(a,i,s)=>{let l=this.overrides?.format?this.overrides.format(a,i,this.options):Ar(a,i,this.options);if(this.options.numerals&&this.options.numerals!=="latn")return this.replaceDigits(l);return l},this.getISOWeek=(a)=>this.overrides?.getISOWeek?this.overrides.getISOWeek(a):YR(a),this.getMonth=(a,i)=>this.overrides?.getMonth?this.overrides.getMonth(a,this.options):nu(a,this.options),this.getYear=(a,i)=>this.overrides?.getYear?this.overrides.getYear(a,this.options):ou(a,this.options),this.getWeek=(a,i)=>this.overrides?.getWeek?this.overrides.getWeek(a,this.options):qR(a,this.options),this.isAfter=(a,i)=>this.overrides?.isAfter?this.overrides.isAfter(a,i):sZe(a,i),this.isBefore=(a,i)=>this.overrides?.isBefore?this.overrides.isBefore(a,i):lZe(a,i),this.isDate=(a)=>this.overrides?.isDate?this.overrides.isDate(a):_3(a),this.isSameDay=(a,i)=>this.overrides?.isSameDay?this.overrides.isSameDay(a,i):jR(a,i),this.isSameMonth=(a,i)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(a,i):cZe(a,i),this.isSameYear=(a,i)=>this.overrides?.isSameYear?this.overrides.isSameYear(a,i):uZe(a,i),this.max=(a)=>this.overrides?.max?this.overrides.max(a):Ode(a),this.min=(a)=>this.overrides?.min?this.overrides.min(a):Nde(a),this.setMonth=(a,i)=>this.overrides?.setMonth?this.overrides.setMonth(a,i):pZe(a,i),this.setYear=(a,i)=>this.overrides?.setYear?this.overrides.setYear(a,i):mZe(a,i),this.startOfBroadcastWeek=(a,i)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(a,this):uj(a,this),this.startOfDay=(a)=>this.overrides?.startOfDay?this.overrides.startOfDay(a):T8(a),this.startOfISOWeek=(a)=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(a):sM(a),this.startOfMonth=(a)=>this.overrides?.startOfMonth?this.overrides.startOfMonth(a):Bde(a),this.startOfWeek=(a,i)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(a,this.options):Su(a,this.options),this.startOfYear=(a)=>this.overrides?.startOfYear?this.overrides.startOfYear(a):w3(a),this.options={locale:AO,...e},this.overrides=r}getDigitMap(){let{numerals:e="latn"}=this.options,r=new Intl.NumberFormat("en-US",{numberingSystem:e}),a={};for(let i=0;i<10;i++)a[i.toString()]=r.format(i);return a}replaceDigits(e){let r=this.getDigitMap();return e.replace(/\d/g,(a)=>r[a]||a)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){let e=this.options.locale?.code;if(!e)return"month-first";return ri.yearFirstLocales.has(e)?"year-first":"month-first"}formatMonthYear(e){let{locale:r,timeZone:a,numerals:i}=this.options,s=r?.code;if(s&&ri.yearFirstLocales.has(s))try{return new Intl.DateTimeFormat(s,{month:"long",year:"numeric",timeZone:a,numberingSystem:i}).format(e)}catch{}let l=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(e,l)}}ri.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);var di=new ri;class EO{constructor(e,r,a=di){this.date=e,this.displayMonth=r,this.outside=Boolean(r&&!a.isSameMonth(e,r)),this.dateLib=a,this.isoDate=a.format(e,"yyyy-MM-dd"),this.displayMonthId=a.format(r,"yyyy-MM"),this.dateMonthId=a.format(e,"yyyy-MM")}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class HW{constructor(e,r){this.date=e,this.weeks=r}}class VW{constructor(e,r){this.days=r,this.weekNumber=e}}var GW={};ke(GW,{CaptionLabel:()=>GLt,Chevron:()=>KLt,Day:()=>XLt,DayButton:()=>QLt,Dropdown:()=>JLt,DropdownNav:()=>$Lt,Footer:()=>ekt,Month:()=>tkt,MonthCaption:()=>rkt,MonthGrid:()=>okt,Months:()=>akt,MonthsDropdown:()=>nkt,Nav:()=>ikt,NextMonthButton:()=>fkt,Option:()=>skt,PreviousMonthButton:()=>lkt,Root:()=>ckt,Select:()=>ukt,Week:()=>dkt,WeekNumber:()=>mkt,WeekNumberHeader:()=>hkt,Weekday:()=>Zkt,Weekdays:()=>pkt,Weeks:()=>gkt,YearsDropdown:()=>Mkt});S();function GLt(e){return q("span",{...e})}S();function KLt(e){let{size:r=24,orientation:a="left",className:i,style:s}=e;return q("svg",{className:i,style:s,width:r,height:r,viewBox:"0 0 24 24"},a==="up"&&q("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),a==="down"&&q("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),a==="left"&&q("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),a==="right"&&q("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}S();function XLt(e){let{day:r,modifiers:a,...i}=e;return q("td",{...i})}S();function QLt(e){let{day:r,modifiers:a,...i}=e,s=_(null);return m(()=>{if(a.focused)s.current?.focus()},[a.focused]),q("button",{ref:s,...i})}S();var Zr;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(Zr||(Zr={}));var Ca;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Ca||(Ca={}));var fl;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(fl||(fl={}));var Is;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Is||(Is={}));S();var WW=lt(void 0);function Y8(){let e=pt(WW);if(e===void 0)throw Error("useDayPicker() must be used within a custom component.");return e}function JLt(e){let{options:r,className:a,...i}=e,{classNames:s,components:l,styles:c}=Y8(),d=[s[Zr.Dropdown],a].join(" "),h=r?.find(({value:g})=>g===i.value);return q("span",{"data-disabled":i.disabled,className:s[Zr.DropdownRoot],style:c?.[Zr.DropdownRoot]},q(l.Select,{className:d,...i},r?.map(({value:g,label:x,disabled:v})=>q(l.Option,{key:g,value:g,disabled:v},x))),q("span",{className:s[Zr.CaptionLabel],style:c?.[Zr.CaptionLabel],"aria-hidden":!0},h?.label,q(l.Chevron,{orientation:"down",size:18,className:s[Zr.Chevron],style:c?.[Zr.Chevron]})))}S();function $Lt(e){return q("div",{...e})}S();function ekt(e){return q("div",{...e})}S();function tkt(e){let{calendarMonth:r,displayIndex:a,...i}=e;return q("div",{...i},e.children)}S();function rkt(e){let{calendarMonth:r,displayIndex:a,...i}=e;return q("div",{...i})}S();function okt(e){return q("table",{...e})}S();function akt(e){return q("div",{...e})}S();function nkt(e){let{components:r}=Y8();return q(r.Dropdown,{...e})}S();function ikt(e){let{onPreviousClick:r,onNextClick:a,previousMonth:i,nextMonth:s,...l}=e,{components:c,classNames:d,styles:h,labels:{labelPrevious:g,labelNext:x}}=Y8(),v=P((y)=>{if(s)a?.(y)},[s,a]),b=P((y)=>{if(i)r?.(y)},[i,r]);return q("nav",{...l},q(c.PreviousMonthButton,{type:"button",className:d[Zr.PreviousMonthButton],style:h?.[Zr.PreviousMonthButton],tabIndex:i?void 0:-1,"aria-disabled":i?void 0:!0,"aria-label":g(i),onClick:b},q(c.Chevron,{disabled:i?void 0:!0,className:d[Zr.Chevron],style:h?.[Zr.Chevron],orientation:"left"})),q(c.NextMonthButton,{type:"button",className:d[Zr.NextMonthButton],style:h?.[Zr.NextMonthButton],tabIndex:s?void 0:-1,"aria-disabled":s?void 0:!0,"aria-label":x(s),onClick:v},q(c.Chevron,{disabled:s?void 0:!0,orientation:"right",className:d[Zr.Chevron],style:h?.[Zr.Chevron]})))}S();function fkt(e){return q("button",{...e})}S();function skt(e){return q("option",{...e})}S();function lkt(e){return q("button",{...e})}S();function ckt(e){let{rootRef:r,...a}=e;return q("div",{...a,ref:r})}S();function ukt(e){return q("select",{...e})}S();function dkt(e){let{week:r,...a}=e;return q("tr",{...a})}S();function Zkt(e){return q("th",{...e})}S();function pkt(e){return q("thead",{"aria-hidden":!0},q("tr",{...e}))}S();function mkt(e){let{week:r,...a}=e;return q("th",{...a})}S();function hkt(e){return q("th",{...e})}S();function gkt(e){return q("tbody",{...e})}S();function Mkt(e){let{components:r}=Y8();return q(r.Dropdown,{...e})}S();function sl(e,r,a=!1,i=di){let{from:s,to:l}=e,{differenceInCalendarDays:c,isSameDay:d}=i;if(s&&l){if(c(l,s)<0)[s,l]=[l,s];return c(r,s)>=(a?1:0)&&c(l,r)>=(a?1:0)}if(!a&&l)return d(l,r);if(!a&&s)return d(s,r);return!1}function eP(e){return Boolean(e&&typeof e==="object"&&"before"in e&&"after"in e)}function q8(e){return Boolean(e&&typeof e==="object"&&"from"in e)}function tP(e){return Boolean(e&&typeof e==="object"&&"after"in e)}function rP(e){return Boolean(e&&typeof e==="object"&&"before"in e)}function dj(e){return Boolean(e&&typeof e==="object"&&"dayOfWeek"in e)}function Zj(e,r){return Array.isArray(e)&&e.every(r.isDate)}function Rc(e,r,a=di){let i=!Array.isArray(r)?[r]:r,{isSameDay:s,differenceInCalendarDays:l,isAfter:c}=a;return i.some((d)=>{if(typeof d==="boolean")return d;if(a.isDate(d))return s(e,d);if(Zj(d,a))return d.some((h)=>s(e,h));if(q8(d))return sl(d,e,!1,a);if(dj(d)){if(!Array.isArray(d.dayOfWeek))return d.dayOfWeek===e.getDay();return d.dayOfWeek.includes(e.getDay())}if(eP(d)){let h=l(d.before,e),g=l(d.after,e),x=h>0,v=g<0;if(c(d.before,d.after))return v&&x;else return x||v}if(tP(d))return l(e,d.after)>0;if(rP(d))return l(d.before,e)>0;if(typeof d==="function")return d(e);return!1})}function $Me(e,r,a,i,s){let{disabled:l,hidden:c,modifiers:d,showOutsideDays:h,broadcastCalendar:g,today:x=s.today()}=r,{isSameDay:v,isSameMonth:b,startOfMonth:y,isBefore:k,endOfMonth:T,isAfter:U}=s,N=a&&y(a),j=i&&T(i),G={[Ca.focused]:[],[Ca.outside]:[],[Ca.disabled]:[],[Ca.hidden]:[],[Ca.today]:[]},X={};for(let J of e){let{date:ee,displayMonth:re}=J,oe=Boolean(re&&!b(ee,re)),fe=Boolean(N&&k(ee,N)),be=Boolean(j&&U(ee,j)),We=Boolean(l&&Rc(ee,l,s)),Ye=Boolean(c&&Rc(ee,c,s))||fe||be||!g&&!h&&oe||g&&h===!1&&oe,Se=v(ee,x);if(oe)G.outside.push(J);if(We)G.disabled.push(J);if(Ye)G.hidden.push(J);if(Se)G.today.push(J);if(d)Object.keys(d).forEach((He)=>{let ft=d?.[He];if(!(ft?Rc(ee,ft,s):!1))return;if(X[He])X[He].push(J);else X[He]=[J]})}return(J)=>{let ee={[Ca.focused]:!1,[Ca.disabled]:!1,[Ca.hidden]:!1,[Ca.outside]:!1,[Ca.today]:!1},re={};for(let oe in G){let fe=G[oe];ee[oe]=fe.some((be)=>be===J)}for(let oe in X)re[oe]=X[oe].some((fe)=>fe===J);return{...ee,...re}}}function e8e(e,r,a={}){return Object.entries(e).filter(([,s])=>s===!0).reduce((s,[l])=>{if(a[l])s.push(a[l]);else if(r[Ca[l]])s.push(r[Ca[l]]);else if(r[fl[l]])s.push(r[fl[l]]);return s},[r[Zr.Day]])}function t8e(e){return{...GW,...e}}function r8e(e){let r={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([a,i])=>{if(a.startsWith("data-"))r[a]=i}),r}function DO(){let e={};for(let r in Zr)e[Zr[r]]=`rdp-${Zr[r]}`;for(let r in Ca)e[Ca[r]]=`rdp-${Ca[r]}`;for(let r in fl)e[fl[r]]=`rdp-${fl[r]}`;for(let r in Is)e[Is[r]]=`rdp-${Is[r]}`;return e}var KW={};ke(KW,{formatCaption:()=>xkt,formatDay:()=>vkt,formatMonthDropdown:()=>ykt,formatWeekNumber:()=>bkt,formatWeekNumberHeader:()=>wkt,formatWeekdayName:()=>_kt,formatYearDropdown:()=>zkt});function xkt(e,r,a){return(a??new ri(r)).formatMonthYear(e)}function vkt(e,r,a){return(a??new ri(r)).format(e,"d")}function ykt(e,r=di){return r.format(e,"LLLL")}function _kt(e,r,a){return(a??new ri(r)).format(e,"cccccc")}function bkt(e,r=di){if(e<10)return r.formatNumber(`0${e.toLocaleString()}`);return r.formatNumber(`${e.toLocaleString()}`)}function wkt(){return""}function zkt(e,r=di){return r.format(e,"yyyy")}function o8e(e){return{...KW,...e}}var fG={};ke(fG,{labelDayButton:()=>XW,labelGrid:()=>QW,labelGridcell:()=>JW,labelMonthDropdown:()=>$W,labelNav:()=>eG,labelNext:()=>tG,labelPrevious:()=>rG,labelWeekNumber:()=>aG,labelWeekNumberHeader:()=>nG,labelWeekday:()=>oG,labelYearDropdown:()=>iG});function XW(e,r,a,i){let s=(i??new ri(a)).format(e,"PPPP");if(r.today)s=`Today, ${s}`;if(r.selected)s=`${s}, selected`;return s}function QW(e,r,a){return(a??new ri(r)).formatMonthYear(e)}function JW(e,r,a,i){let s=(i??new ri(a)).format(e,"PPPP");if(r?.today)s=`Today, ${s}`;return s}function $W(e){return"Choose the Month"}function eG(){return""}function tG(e,r){return"Go to the Next Month"}function rG(e){return"Go to the Previous Month"}function oG(e,r,a){return(a??new ri(r)).format(e,"cccc")}function aG(e,r){return`Week ${e}`}function nG(e){return"Week Number"}function iG(e){return"Choose the Year"}var Iu=(e,r,a)=>{if(r)return r;if(a)return typeof a==="function"?a:(...i)=>a;return e};function a8e(e,r){let a=r.locale?.labels??{};return{...fG,...e??{},labelDayButton:Iu(XW,e?.labelDayButton,a.labelDayButton),labelMonthDropdown:Iu($W,e?.labelMonthDropdown,a.labelMonthDropdown),labelNext:Iu(tG,e?.labelNext,a.labelNext),labelPrevious:Iu(rG,e?.labelPrevious,a.labelPrevious),labelWeekNumber:Iu(aG,e?.labelWeekNumber,a.labelWeekNumber),labelYearDropdown:Iu(iG,e?.labelYearDropdown,a.labelYearDropdown),labelGrid:Iu(QW,e?.labelGrid,a.labelGrid),labelGridcell:Iu(JW,e?.labelGridcell,a.labelGridcell),labelNav:Iu(eG,e?.labelNav,a.labelNav),labelWeekNumberHeader:Iu(nG,e?.labelWeekNumberHeader,a.labelWeekNumberHeader),labelWeekday:Iu(oG,e?.labelWeekday,a.labelWeekday)}}function n8e(e,r,a,i,s){let{startOfMonth:l,startOfYear:c,endOfYear:d,eachMonthOfInterval:h,getMonth:g}=s;return h({start:c(e),end:d(e)}).map((b)=>{let y=i.formatMonthDropdown(b,s),k=g(b),T=r&&b<l(r)||a&&b>l(a)||!1;return{value:k,label:y,disabled:T}})}function i8e(e,r={},a={}){let i={...r?.[Zr.Day]};return Object.entries(e).filter(([,s])=>s===!0).forEach(([s])=>{i={...i,...a?.[s]}}),i}function f8e(e,r,a,i){let s=i??e.today(),l=a?e.startOfBroadcastWeek(s,e):r?e.startOfISOWeek(s):e.startOfWeek(s),c=[];for(let d=0;d<7;d++){let h=e.addDays(l,d);c.push(h)}return c}function s8e(e,r,a,i,s=!1){if(!e)return;if(!r)return;let{startOfYear:l,endOfYear:c,eachYearOfInterval:d,getYear:h}=i,g=l(e),x=c(r),v=d({start:g,end:x});if(s)v.reverse();return v.map((b)=>{let y=a.formatYearDropdown(b,i);return{value:h(b),label:y,disabled:!1}})}function l8e(e,r={}){let{weekStartsOn:a,locale:i}=r,s=a??i?.options?.weekStartsOn??0,l=(d)=>{let h=typeof d==="number"||typeof d==="string"?new Date(d):d;return new Nn(h.getFullYear(),h.getMonth(),h.getDate(),12,0,0,e)},c=(d)=>{let h=l(d);return new Date(h.getFullYear(),h.getMonth(),h.getDate(),0,0,0,0)};return{today:()=>l(Nn.tz(e)),newDate:(d,h,g)=>new Nn(d,h,g,12,0,0,e),startOfDay:(d)=>l(d),startOfWeek:(d,h)=>{let g=l(d),x=h?.weekStartsOn??s,v=(g.getDay()-x+7)%7;return g.setDate(g.getDate()-v),g},startOfISOWeek:(d)=>{let h=l(d),g=(h.getDay()-1+7)%7;return h.setDate(h.getDate()-g),h},startOfMonth:(d)=>{let h=l(d);return h.setDate(1),h},startOfYear:(d)=>{let h=l(d);return h.setMonth(0,1),h},endOfWeek:(d,h)=>{let g=l(d),b=(((h?.weekStartsOn??s)+6)%7-g.getDay()+7)%7;return g.setDate(g.getDate()+b),g},endOfISOWeek:(d)=>{let h=l(d),g=(7-h.getDay())%7;return h.setDate(h.getDate()+g),h},endOfMonth:(d)=>{let h=l(d);return h.setMonth(h.getMonth()+1,0),h},endOfYear:(d)=>{let h=l(d);return h.setMonth(11,31),h},eachMonthOfInterval:(d)=>{let h=l(d.start),g=l(d.end),x=[],v=new Nn(h.getFullYear(),h.getMonth(),1,12,0,0,e),b=g.getFullYear()*12+g.getMonth();while(v.getFullYear()*12+v.getMonth()<=b)x.push(new Nn(v,e)),v.setMonth(v.getMonth()+1,1);return x},addDays:(d,h)=>{let g=l(d);return g.setDate(g.getDate()+h),g},addWeeks:(d,h)=>{let g=l(d);return g.setDate(g.getDate()+h*7),g},addMonths:(d,h)=>{let g=l(d);return g.setMonth(g.getMonth()+h),g},addYears:(d,h)=>{let g=l(d);return g.setFullYear(g.getFullYear()+h),g},eachYearOfInterval:(d)=>{let h=l(d.start),g=l(d.end),x=[],v=new Nn(h.getFullYear(),0,1,12,0,0,e);while(v.getFullYear()<=g.getFullYear())x.push(new Nn(v,e)),v.setFullYear(v.getFullYear()+1,0,1);return x},getWeek:(d,h)=>{let g=c(d);return qR(g,{weekStartsOn:h?.weekStartsOn??s,firstWeekContainsDate:h?.firstWeekContainsDate??i?.options?.firstWeekContainsDate??1})},getISOWeek:(d)=>{let h=c(d);return YR(h)},differenceInCalendarDays:(d,h)=>{let g=c(d),x=c(h);return A8(g,x)},differenceInCalendarMonths:(d,h)=>{let g=c(d),x=c(h);return b3(g,x)}}}S();var OO=(e)=>{if(e instanceof HTMLElement)return e;return null},sG=(e)=>[...e.querySelectorAll("[data-animated-month]")??[]],Skt=(e)=>OO(e.querySelector("[data-animated-month]")),lG=(e)=>OO(e.querySelector("[data-animated-caption]")),cG=(e)=>OO(e.querySelector("[data-animated-weeks]")),Lkt=(e)=>OO(e.querySelector("[data-animated-nav]")),kkt=(e)=>OO(e.querySelector("[data-animated-weekdays]"));function c8e(e,r,{classNames:a,months:i,focused:s,dateLib:l}){let c=_(null),d=_(i),h=_(!1);$e(()=>{let g=d.current;if(d.current=i,!r||!e.current||!(e.current instanceof HTMLElement)||i.length===0||g.length===0||i.length!==g.length)return;let x=l.isSameMonth(i[0].date,g[0].date),v=l.isAfter(i[0].date,g[0].date),b=v?a[Is.caption_after_enter]:a[Is.caption_before_enter],y=v?a[Is.weeks_after_enter]:a[Is.weeks_before_enter],k=c.current,T=e.current.cloneNode(!0);if(T instanceof HTMLElement)sG(T).forEach((G)=>{if(!(G instanceof HTMLElement))return;let X=Skt(G);if(X&&G.contains(X))G.removeChild(X);let J=lG(G);if(J)J.classList.remove(b);let ee=cG(G);if(ee)ee.classList.remove(y)}),c.current=T;else c.current=null;if(h.current||x||s)return;let U=k instanceof HTMLElement?sG(k):[],N=sG(e.current);if(N?.every((j)=>j instanceof HTMLElement)&&U?.every((j)=>j instanceof HTMLElement)){h.current=!0;let j=[];e.current.style.isolation="isolate";let G=Lkt(e.current);if(G)G.style.zIndex="1";N.forEach((X,J)=>{let ee=U[J];if(!ee)return;X.style.position="relative",X.style.overflow="hidden";let re=lG(X);if(re)re.classList.add(b);let oe=cG(X);if(oe)oe.classList.add(y);let fe=()=>{if(h.current=!1,e.current)e.current.style.isolation="";if(G)G.style.zIndex="";if(re)re.classList.remove(b);if(oe)oe.classList.remove(y);if(X.style.position="",X.style.overflow="",X.contains(ee))X.removeChild(ee)};j.push(fe),ee.style.pointerEvents="none",ee.style.position="absolute",ee.style.overflow="hidden",ee.setAttribute("aria-hidden","true");let be=kkt(ee);if(be)be.style.opacity="0";let We=lG(ee);if(We)We.classList.add(v?a[Is.caption_before_exit]:a[Is.caption_after_exit]),We.addEventListener("animationend",fe);let Ye=cG(ee);if(Ye)Ye.classList.add(v?a[Is.weeks_before_exit]:a[Is.weeks_after_exit]);X.insertBefore(ee,X.firstChild)})}})}S();function u8e(e,r,a,i){let s=e[0],l=e[e.length-1],{ISOWeek:c,fixedWeeks:d,broadcastCalendar:h}=a??{},{addDays:g,differenceInCalendarDays:x,differenceInCalendarMonths:v,endOfBroadcastWeek:b,endOfISOWeek:y,endOfMonth:k,endOfWeek:T,isAfter:U,startOfBroadcastWeek:N,startOfISOWeek:j,startOfWeek:G}=i,X=h?N(s,i):c?j(s):G(s),J=h?b(l):c?y(k(l)):T(k(l)),ee=r&&(h?b(r):c?y(r):T(r)),re=ee&&U(J,ee)?ee:J,oe=x(re,X),fe=v(l,s)+1,be=[];for(let Se=0;Se<=oe;Se++){let He=g(X,Se);be.push(He)}let Ye=(h?35:42)*fe;if(d&&be.length<Ye){let Se=Ye-be.length;for(let He=0;He<Se;He++){let ft=g(be[be.length-1],1);be.push(ft)}}return be}function d8e(e){let r=[];return e.reduce((a,i)=>{let s=i.weeks.reduce((l,c)=>l.concat(c.days.slice()),r.slice());return a.concat(s.slice())},r.slice())}function Z8e(e,r,a,i){let{numberOfMonths:s=1}=a,l=[];for(let c=0;c<s;c++){let d=i.addMonths(e,c);if(r&&d>r)break;l.push(d)}return l}function uG(e,r,a,i){let{month:s,defaultMonth:l,today:c=i.today(),numberOfMonths:d=1}=e,h=s||l||c,{differenceInCalendarMonths:g,addMonths:x,startOfMonth:v}=i;if(a&&g(a,h)<d-1){let b=-1*(d-1);h=x(a,b)}if(r&&g(h,r)<0)h=r;return v(h)}function p8e(e,r,a,i){let{addDays:s,endOfBroadcastWeek:l,endOfISOWeek:c,endOfMonth:d,endOfWeek:h,getISOWeek:g,getWeek:x,startOfBroadcastWeek:v,startOfISOWeek:b,startOfWeek:y}=i,k=e.reduce((T,U)=>{let N=a.broadcastCalendar?v(U,i):a.ISOWeek?b(U):y(U),j=a.broadcastCalendar?l(U):a.ISOWeek?c(d(U)):h(d(U)),G=r.filter((re)=>re>=N&&re<=j),X=a.broadcastCalendar?35:42;if(a.fixedWeeks&&G.length<X){let re=r.filter((oe)=>{let fe=X-G.length;return oe>j&&oe<=s(j,fe)});G.push(...re)}let J=G.reduce((re,oe)=>{let fe=a.ISOWeek?g(oe):x(oe),be=re.find((Ye)=>Ye.weekNumber===fe),We=new EO(oe,U,i);if(!be)re.push(new VW(fe,[We]));else be.days.push(We);return re},[]),ee=new HW(U,J);return T.push(ee),T},[]);if(!a.reverseMonths)return k;else return k.reverse()}function m8e(e,r){let{startMonth:a,endMonth:i}=e,{startOfYear:s,startOfDay:l,startOfMonth:c,endOfMonth:d,addYears:h,endOfYear:g,today:x}=r,v=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";if(a)a=c(a);else if(!a&&v)a=s(h(e.today??x(),-100));if(i)i=d(i);else if(!i&&v)i=g(e.today??x());return[a?l(a):a,i?l(i):i]}function h8e(e,r,a,i){if(a.disableNavigation)return;let{pagedNavigation:s,numberOfMonths:l=1}=a,{startOfMonth:c,addMonths:d,differenceInCalendarMonths:h}=i,g=s?l:1,x=c(e);if(!r)return d(x,g);if(h(r,e)<l)return;return d(x,g)}function g8e(e,r,a,i){if(a.disableNavigation)return;let{pagedNavigation:s,numberOfMonths:l}=a,{startOfMonth:c,addMonths:d,differenceInCalendarMonths:h}=i,g=s?l??1:1,x=c(e);if(!r)return d(x,-g);if(h(x,r)<=0)return;return d(x,-g)}function M8e(e){let r=[];return e.reduce((a,i)=>a.concat(i.weeks.slice()),r.slice())}S();function H8(e,r){let[a,i]=u(e);return[r===void 0?a:r,i]}function x8e(e,r){let[a,i]=m8e(e,r),{startOfMonth:s,endOfMonth:l}=r,c=uG(e,a,i,r),[d,h]=H8(c,e.month?c:void 0);m(()=>{let X=uG(e,a,i,r);h(X)},[e.timeZone]);let{months:g,weeks:x,days:v,previousMonth:b,nextMonth:y}=D(()=>{let X=Z8e(d,i,{numberOfMonths:e.numberOfMonths},r),J=u8e(X,e.endMonth?l(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},r),ee=p8e(X,J,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},r),re=M8e(ee),oe=d8e(ee),fe=g8e(d,a,e,r),be=h8e(d,i,e,r);return{months:ee,weeks:re,days:oe,previousMonth:fe,nextMonth:be}},[r,d.getTime(),i?.getTime(),a?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:k,onMonthChange:T}=e,U=(X)=>x.some((J)=>J.days.some((ee)=>ee.isEqualTo(X))),N=(X)=>{if(k)return;let J=s(X);if(a&&J<s(a))J=s(a);if(i&&J>s(i))J=s(i);h(J),T?.(J)};return{months:g,weeks:x,days:v,navStart:a,navEnd:i,previousMonth:b,nextMonth:y,goToMonth:N,goToDay:(X)=>{if(U(X))return;N(X.date)}}}S();var zZ;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(zZ||(zZ={}));function v8e(e){return!e[Ca.disabled]&&!e[Ca.hidden]&&!e[Ca.outside]}function y8e(e,r,a,i){let s,l=-1;for(let c of e){let d=r(c);if(v8e(d)){if(d[Ca.focused]&&l<zZ.FocusedModifier)s=c,l=zZ.FocusedModifier;else if(i?.isEqualTo(c)&&l<zZ.LastFocused)s=c,l=zZ.LastFocused;else if(a(c.date)&&l<zZ.Selected)s=c,l=zZ.Selected;else if(d[Ca.today]&&l<zZ.Today)s=c,l=zZ.Today}}if(!s)s=e.find((c)=>v8e(r(c)));return s}function _8e(e,r,a,i,s,l,c){let{ISOWeek:d,broadcastCalendar:h}=l,{addDays:g,addMonths:x,addWeeks:v,addYears:b,endOfBroadcastWeek:y,endOfISOWeek:k,endOfWeek:T,max:U,min:N,startOfBroadcastWeek:j,startOfISOWeek:G,startOfWeek:X}=c,ee={day:g,week:v,month:x,year:b,startOfWeek:(re)=>h?j(re,c):d?G(re):X(re),endOfWeek:(re)=>h?y(re):d?k(re):T(re)}[e](a,r==="after"?1:-1);if(r==="before"&&i)ee=U([i,ee]);else if(r==="after"&&s)ee=N([s,ee]);return ee}function dG(e,r,a,i,s,l,c,d=0){if(d>365)return;let h=_8e(e,r,a.date,i,s,l,c),g=Boolean(l.disabled&&Rc(h,l.disabled,c)),x=Boolean(l.hidden&&Rc(h,l.hidden,c)),b=new EO(h,h,c);if(!g&&!x)return b;return dG(e,r,b,i,s,l,c,d+1)}function b8e(e,r,a,i,s){let{autoFocus:l}=e,[c,d]=u(),h=y8e(r.days,a,i||(()=>!1),c),[g,x]=u(l?h:void 0);return{isFocusTarget:(T)=>Boolean(h?.isEqualTo(T)),setFocused:x,focused:g,blur:()=>{d(g),x(void 0)},moveFocus:(T,U)=>{if(!g)return;let N=dG(T,U,g,r.navStart,r.navEnd,e,s);if(!N)return;if(e.disableNavigation){if(!r.days.some((G)=>G.isEqualTo(N)))return}r.goToDay(N),x(N)}}}function w8e(e,r){let{selected:a,required:i,onSelect:s}=e,[l,c]=H8(a,s?a:void 0),d=!s?l:a,{isSameDay:h}=r,g=(y)=>d?.some((k)=>h(k,y))??!1,{min:x,max:v}=e;return{selected:d,select:(y,k,T)=>{let U=[...d??[]];if(g(y)){if(d?.length===x)return;if(i&&d?.length===1)return;U=d?.filter((N)=>!h(N,y))}else if(d?.length===v)U=[y];else U=[...U,y];if(!s)c(U);return s?.(U,y,k,T),U},isSelected:g}}function z8e(e,r,a=0,i=0,s=!1,l=di){let{from:c,to:d}=r||{},{isSameDay:h,isAfter:g,isBefore:x}=l,v;if(!c&&!d)v={from:e,to:a>0?void 0:e};else if(c&&!d)if(h(c,e))if(a===0)v={from:c,to:e};else if(s)v={from:c,to:void 0};else v=void 0;else if(x(e,c))v={from:e,to:c};else v={from:c,to:e};else if(c&&d)if(h(c,e)&&h(d,e))if(s)v={from:c,to:d};else v=void 0;else if(h(c,e))v={from:c,to:a>0?void 0:e};else if(h(d,e))v={from:e,to:a>0?void 0:e};else if(x(e,c))v={from:e,to:d};else if(g(e,c))v={from:c,to:e};else if(g(e,d))v={from:c,to:e};else throw Error("Invalid range");if(v?.from&&v?.to){let b=l.differenceInCalendarDays(v.to,v.from);if(i>0&&b>i)v={from:e,to:void 0};else if(a>1&&b<a)v={from:e,to:void 0}}return v}function S8e(e,r,a=di){let i=!Array.isArray(r)?[r]:r,s=e.from,l=a.differenceInCalendarDays(e.to,e.from),c=Math.min(l,6);for(let d=0;d<=c;d++){if(i.includes(s.getDay()))return!0;s=a.addDays(s,1)}return!1}function ZG(e,r,a=di){return sl(e,r.from,!1,a)||sl(e,r.to,!1,a)||sl(r,e.from,!1,a)||sl(r,e.to,!1,a)}function L8e(e,r,a=di){let i=Array.isArray(r)?r:[r];if(i.filter((d)=>typeof d!=="function").some((d)=>{if(typeof d==="boolean")return d;if(a.isDate(d))return sl(e,d,!1,a);if(Zj(d,a))return d.some((h)=>sl(e,h,!1,a));if(q8(d)){if(d.from&&d.to)return ZG(e,{from:d.from,to:d.to},a);return!1}if(dj(d))return S8e(e,d.dayOfWeek,a);if(eP(d)){if(a.isAfter(d.before,d.after))return ZG(e,{from:a.addDays(d.after,1),to:a.addDays(d.before,-1)},a);return Rc(e.from,d,a)||Rc(e.to,d,a)}if(tP(d)||rP(d))return Rc(e.from,d,a)||Rc(e.to,d,a);return!1}))return!0;let c=i.filter((d)=>typeof d==="function");if(c.length){let d=e.from,h=a.differenceInCalendarDays(e.to,e.from);for(let g=0;g<=h;g++){if(c.some((x)=>x(d)))return!0;d=a.addDays(d,1)}}return!1}function k8e(e,r){let{disabled:a,excludeDisabled:i,resetOnSelect:s,selected:l,required:c,onSelect:d}=e,[h,g]=H8(l,d?l:void 0),x=!d?h:l;return{selected:x,select:(y,k,T)=>{let{min:U,max:N}=e,j;if(y){let G=x?.from,X=x?.to,J=!!G&&!!X,ee=!!G&&!!X&&r.isSameDay(G,X)&&r.isSameDay(y,G);if(s&&(J||!x?.from))if(!c&&ee)j=void 0;else j={from:y,to:void 0};else j=z8e(y,x,U,N,c,r)}if(i&&a&&j?.from&&j.to){if(L8e({from:j.from,to:j.to},a,r))j.from=y,j.to=void 0}if(!d)g(j);return d?.(j,y,k,T),j},isSelected:(y)=>x&&sl(x,y,!1,r)}}function C8e(e,r){let{selected:a,required:i,onSelect:s}=e,[l,c]=H8(a,s?a:void 0),d=!s?l:a,{isSameDay:h}=r;return{selected:d,select:(v,b,y)=>{let k=v;if(!i&&d&&d&&h(v,d))k=void 0;if(!s)c(k);if(i)s?.(k,v,b,y);else s?.(k,v,b,y);return k},isSelected:(v)=>d?h(d,v):!1}}function I8e(e,r){let a=C8e(e,r),i=w8e(e,r),s=k8e(e,r);switch(e.mode){case"single":return a;case"multiple":return i;case"range":return s;default:return}}function Rs(e,r){if(e instanceof Nn&&e.timeZone===r)return e;return new Nn(e,r)}function oP(e,r,a){if(!a)return Rs(e,r);let i=Rs(e,r),s=new Nn(i.getFullYear(),i.getMonth(),i.getDate(),12,0,0,r);return new Date(s.getTime())}function R8e(e,r,a){if(typeof e==="boolean"||typeof e==="function")return e;if(e instanceof Date)return oP(e,r,a);if(Array.isArray(e))return e.map((i)=>i instanceof Date?oP(i,r,a):i);if(q8(e))return{...e,from:e.from?Rs(e.from,r):e.from,to:e.to?Rs(e.to,r):e.to};if(eP(e))return{before:oP(e.before,r,a),after:oP(e.after,r,a)};if(tP(e))return{after:oP(e.after,r,a)};if(rP(e))return{before:oP(e.before,r,a)};return e}function pj(e,r,a){if(!e)return e;if(Array.isArray(e))return e.map((i)=>R8e(i,r,a));return R8e(e,r,a)}function P8e(e){let r=e,a=r.timeZone;if(a){if(r={...e,timeZone:a},r.today)r.today=Rs(r.today,a);if(r.month)r.month=Rs(r.month,a);if(r.defaultMonth)r.defaultMonth=Rs(r.defaultMonth,a);if(r.startMonth)r.startMonth=Rs(r.startMonth,a);if(r.endMonth)r.endMonth=Rs(r.endMonth,a);if(r.mode==="single"&&r.selected)r.selected=Rs(r.selected,a);else if(r.mode==="multiple"&&r.selected)r.selected=r.selected?.map((Dt)=>Rs(Dt,a));else if(r.mode==="range"&&r.selected)r.selected={from:r.selected.from?Rs(r.selected.from,a):r.selected.from,to:r.selected.to?Rs(r.selected.to,a):r.selected.to};if(r.disabled!==void 0)r.disabled=pj(r.disabled,a);if(r.hidden!==void 0)r.hidden=pj(r.hidden,a);if(r.modifiers){let Dt={};Object.keys(r.modifiers).forEach((zt)=>{Dt[zt]=pj(r.modifiers?.[zt],a)}),r.modifiers=Dt}}let{components:i,formatters:s,labels:l,dateLib:c,locale:d,classNames:h}=D(()=>{let Dt={...AO,...r.locale},zt=r.broadcastCalendar?1:r.weekStartsOn,qt=r.noonSafe&&r.timeZone?l8e(r.timeZone,{weekStartsOn:zt,locale:Dt}):void 0,Nr=r.dateLib&&qt?{...qt,...r.dateLib}:r.dateLib??qt,Br=new ri({locale:Dt,weekStartsOn:zt,firstWeekContainsDate:r.firstWeekContainsDate,useAdditionalWeekYearTokens:r.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:r.useAdditionalDayOfYearTokens,timeZone:r.timeZone,numerals:r.numerals},Nr);return{dateLib:Br,components:t8e(r.components),formatters:o8e(r.formatters),labels:a8e(r.labels,Br.options),locale:Dt,classNames:{...DO(),...r.classNames}}},[r.locale,r.broadcastCalendar,r.weekStartsOn,r.firstWeekContainsDate,r.useAdditionalWeekYearTokens,r.useAdditionalDayOfYearTokens,r.timeZone,r.numerals,r.dateLib,r.noonSafe,r.components,r.formatters,r.labels,r.classNames]);if(!r.today)r={...r,today:c.today()};let{captionLayout:g,mode:x,navLayout:v,numberOfMonths:b=1,onDayBlur:y,onDayClick:k,onDayFocus:T,onDayKeyDown:U,onDayMouseEnter:N,onDayMouseLeave:j,onNextClick:G,onPrevClick:X,showWeekNumber:J,styles:ee}=r,{formatCaption:re,formatDay:oe,formatMonthDropdown:fe,formatWeekNumber:be,formatWeekNumberHeader:We,formatWeekdayName:Ye,formatYearDropdown:Se}=s,He=x8e(r,c),{days:ft,months:Je,navStart:xt,navEnd:Ft,previousMonth:Bt,nextMonth:ie,goToMonth:bt}=He,Wt=$Me(ft,r,xt,Ft,c),{isSelected:Fe,select:nr,selected:fr}=I8e(r,c)??{},{blur:Jt,focused:Fr,isFocusTarget:Gt,moveFocus:Xt,setFocused:Ir}=b8e(r,He,Wt,Fe??(()=>!1),c),{labelDayButton:yr,labelGridcell:Tr,labelGrid:pr,labelMonthDropdown:po,labelNav:lo,labelPrevious:xa,labelNext:sr,labelWeekday:mo,labelWeekNumber:uo,labelWeekNumberHeader:No,labelYearDropdown:hn}=l,Vo=D(()=>f8e(c,r.ISOWeek,r.broadcastCalendar,r.today),[c,r.ISOWeek,r.broadcastCalendar,r.today]),Wn=x!==void 0||k!==void 0,xn=P(()=>{if(!Bt)return;bt(Bt),X?.(Bt)},[Bt,bt,X]),Gi=P(()=>{if(!ie)return;bt(ie),G?.(ie)},[bt,ie,G]),Ge=P((Dt,zt)=>(qt)=>{if(qt.preventDefault(),qt.stopPropagation(),Ir(Dt),zt.disabled)return;nr?.(Dt.date,zt,qt),k?.(Dt.date,zt,qt)},[nr,k,Ir]),Rt=P((Dt,zt)=>(qt)=>{Ir(Dt),T?.(Dt.date,zt,qt)},[T,Ir]),hr=P((Dt,zt)=>(qt)=>{Jt(),y?.(Dt.date,zt,qt)},[Jt,y]),Ur=P((Dt,zt)=>(qt)=>{let Nr={ArrowLeft:[qt.shiftKey?"month":"day",r.dir==="rtl"?"after":"before"],ArrowRight:[qt.shiftKey?"month":"day",r.dir==="rtl"?"before":"after"],ArrowDown:[qt.shiftKey?"year":"week","after"],ArrowUp:[qt.shiftKey?"year":"week","before"],PageUp:[qt.shiftKey?"year":"month","before"],PageDown:[qt.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Nr[qt.key]){qt.preventDefault(),qt.stopPropagation();let[Br,ua]=Nr[qt.key];Xt(Br,ua)}U?.(Dt.date,zt,qt)},[Xt,U,r.dir]),$r=P((Dt,zt)=>(qt)=>{N?.(Dt.date,zt,qt)},[N]),Wo=P((Dt,zt)=>(qt)=>{j?.(Dt.date,zt,qt)},[j]),Va=P((Dt,zt)=>(qt)=>{let Nr=Number(qt.target.value),Br=c.setMonth(c.startOfMonth(Dt),Nr);bt(c.addMonths(Br,-zt))},[c,bt]),Ee=P((Dt,zt)=>(qt)=>{let Nr=Number(qt.target.value),Br=c.setYear(c.startOfMonth(Dt),Nr);bt(c.addMonths(Br,-zt))},[c,bt]),{className:Oe,style:je}=D(()=>({className:[h[Zr.Root],r.className].filter(Boolean).join(" "),style:{...ee?.[Zr.Root],...r.style}}),[h,r.className,r.style,ee]),Zt=r8e(r),St=(Dt)=>{let zt=ee?.[Zr.Dropdown],qt=ee?.[Dt];if(!zt&&!qt)return;return{...zt,...qt}},jt=_(null);c8e(jt,Boolean(r.animate),{classNames:h,months:Je,focused:Fr,dateLib:c});let or={dayPickerProps:r,selected:fr,select:nr,isSelected:Fe,months:Je,nextMonth:ie,previousMonth:Bt,goToMonth:bt,getModifiers:Wt,components:i,classNames:h,styles:ee,labels:l,formatters:s};return q(WW.Provider,{value:or},q(i.Root,{rootRef:r.animate?jt:void 0,className:Oe,style:je,dir:r.dir,id:r.id,lang:r.lang??d.code,nonce:r.nonce,title:r.title,role:r.role,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],...Zt},q(i.Months,{className:h[Zr.Months],style:ee?.[Zr.Months]},!r.hideNavigation&&!v&&q(i.Nav,{"data-animated-nav":r.animate?"true":void 0,className:h[Zr.Nav],style:ee?.[Zr.Nav],"aria-label":lo(),onPreviousClick:xn,onNextClick:Gi,previousMonth:Bt,nextMonth:ie}),Je.map((Dt,zt)=>{let qt=r.reverseMonths?Je.length-1-zt:zt;return q(i.Month,{"data-animated-month":r.animate?"true":void 0,className:h[Zr.Month],style:ee?.[Zr.Month],key:zt,displayIndex:zt,calendarMonth:Dt},v==="around"&&!r.hideNavigation&&zt===0&&q(i.PreviousMonthButton,{type:"button",className:h[Zr.PreviousMonthButton],style:ee?.[Zr.PreviousMonthButton],tabIndex:Bt?void 0:-1,"aria-disabled":Bt?void 0:!0,"aria-label":xa(Bt),onClick:xn,"data-animated-button":r.animate?"true":void 0},q(i.Chevron,{disabled:Bt?void 0:!0,className:h[Zr.Chevron],style:ee?.[Zr.Chevron],orientation:r.dir==="rtl"?"right":"left"})),q(i.MonthCaption,{"data-animated-caption":r.animate?"true":void 0,className:h[Zr.MonthCaption],style:ee?.[Zr.MonthCaption],calendarMonth:Dt,displayIndex:zt},g?.startsWith("dropdown")?q(i.DropdownNav,{className:h[Zr.Dropdowns],style:ee?.[Zr.Dropdowns]},(()=>{let Nr=g==="dropdown"||g==="dropdown-months"?q(i.MonthsDropdown,{key:"month",className:h[Zr.MonthsDropdown],"aria-label":po(),disabled:Boolean(r.disableNavigation),onChange:Va(Dt.date,qt),options:n8e(Dt.date,xt,Ft,s,c),style:St(Zr.MonthsDropdown),value:c.getMonth(Dt.date)}):q("span",{key:"month"},fe(Dt.date,c)),Br=g==="dropdown"||g==="dropdown-years"?q(i.YearsDropdown,{key:"year",className:h[Zr.YearsDropdown],"aria-label":hn(c.options),disabled:Boolean(r.disableNavigation),onChange:Ee(Dt.date,qt),options:s8e(xt,Ft,s,c,Boolean(r.reverseYears)),style:St(Zr.YearsDropdown),value:c.getYear(Dt.date)}):q("span",{key:"year"},Se(Dt.date,c));return c.getMonthYearOrder()==="year-first"?[Br,Nr]:[Nr,Br]})(),q("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},re(Dt.date,c.options,c))):q(i.CaptionLabel,{className:h[Zr.CaptionLabel],style:ee?.[Zr.CaptionLabel],role:"status","aria-live":"polite"},re(Dt.date,c.options,c))),v==="around"&&!r.hideNavigation&&zt===b-1&&q(i.NextMonthButton,{type:"button",className:h[Zr.NextMonthButton],style:ee?.[Zr.NextMonthButton],tabIndex:ie?void 0:-1,"aria-disabled":ie?void 0:!0,"aria-label":sr(ie),onClick:Gi,"data-animated-button":r.animate?"true":void 0},q(i.Chevron,{disabled:ie?void 0:!0,className:h[Zr.Chevron],style:ee?.[Zr.Chevron],orientation:r.dir==="rtl"?"left":"right"})),zt===b-1&&v==="after"&&!r.hideNavigation&&q(i.Nav,{"data-animated-nav":r.animate?"true":void 0,className:h[Zr.Nav],style:ee?.[Zr.Nav],"aria-label":lo(),onPreviousClick:xn,onNextClick:Gi,previousMonth:Bt,nextMonth:ie}),q(i.MonthGrid,{role:"grid","aria-multiselectable":x==="multiple"||x==="range","aria-label":pr(Dt.date,c.options,c)||void 0,className:h[Zr.MonthGrid],style:ee?.[Zr.MonthGrid]},!r.hideWeekdays&&q(i.Weekdays,{"data-animated-weekdays":r.animate?"true":void 0,className:h[Zr.Weekdays],style:ee?.[Zr.Weekdays]},J&&q(i.WeekNumberHeader,{"aria-label":No(c.options),className:h[Zr.WeekNumberHeader],style:ee?.[Zr.WeekNumberHeader],scope:"col"},We()),Vo.map((Nr)=>q(i.Weekday,{"aria-label":mo(Nr,c.options,c),className:h[Zr.Weekday],key:String(Nr),style:ee?.[Zr.Weekday],scope:"col"},Ye(Nr,c.options,c)))),q(i.Weeks,{"data-animated-weeks":r.animate?"true":void 0,className:h[Zr.Weeks],style:ee?.[Zr.Weeks]},Dt.weeks.map((Nr)=>q(i.Week,{className:h[Zr.Week],key:Nr.weekNumber,style:ee?.[Zr.Week],week:Nr},J&&q(i.WeekNumber,{week:Nr,style:ee?.[Zr.WeekNumber],"aria-label":uo(Nr.weekNumber,{locale:d}),className:h[Zr.WeekNumber],scope:"row",role:"rowheader"},be(Nr.weekNumber,c)),Nr.days.map((Br)=>{let{date:ua}=Br,tr=Wt(Br);if(tr[Ca.focused]=!tr.hidden&&Boolean(Fr?.isEqualTo(Br)),tr[fl.selected]=Fe?.(ua)||tr.selected,q8(fr)){let{from:vf,to:Aa}=fr;tr[fl.range_start]=Boolean(vf&&Aa&&c.isSameDay(ua,vf)),tr[fl.range_end]=Boolean(vf&&Aa&&c.isSameDay(ua,Aa)),tr[fl.range_middle]=sl(fr,ua,!0,c)}let Go=i8e(tr,ee,r.modifiersStyles),va=e8e(tr,h,r.modifiersClassNames),ni=!Wn&&!tr.hidden?Tr(ua,tr,c.options,c):void 0;return q(i.Day,{key:`${Br.isoDate}_${Br.displayMonthId}`,day:Br,modifiers:tr,className:va.join(" "),style:Go,role:"gridcell","aria-selected":tr.selected||void 0,"aria-label":ni,"data-day":Br.isoDate,"data-month":Br.outside?Br.dateMonthId:void 0,"data-selected":tr.selected||void 0,"data-disabled":tr.disabled||void 0,"data-hidden":tr.hidden||void 0,"data-outside":Br.outside||void 0,"data-focused":tr.focused||void 0,"data-today":tr.today||void 0},!tr.hidden&&Wn?q(i.DayButton,{className:h[Zr.DayButton],style:ee?.[Zr.DayButton],type:"button",day:Br,modifiers:tr,disabled:!tr.focused&&tr.disabled||void 0,"aria-disabled":tr.focused&&tr.disabled||void 0,tabIndex:Gt(Br)?0:-1,"aria-label":yr(ua,tr,c.options,c),onClick:Ge(Br,tr),onBlur:hr(Br,tr),onFocus:Rt(Br,tr),onKeyDown:Ur(Br,tr),onMouseEnter:$r(Br,tr),onMouseLeave:Wo(Br,tr)},oe(ua,c.options,c)):!tr.hidden&&oe(Br.date,c.options,c))}))))))})),r.footer&&q(i.Footer,{className:h[Zr.Footer],style:ee?.[Zr.Footer],role:"status","aria-live":"polite"},r.footer)))}function T8e({className:e,classNames:r,showOutsideDays:a=!0,captionLayout:i="label",buttonVariant:s="ghost",formatters:l,components:c,...d}){let h=DO();return t(P8e,{showOutsideDays:a,className:C("group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:i,formatters:{formatMonthDropdown:(g)=>g.toLocaleString("default",{month:"short"}),...l},classNames:{root:C("w-fit",h.root),months:C("relative flex flex-col gap-4 md:flex-row",h.months),month:C("flex w-full flex-col gap-4",h.month),nav:C("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",h.nav),button_previous:C(oF({variant:s}),"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",h.button_previous),button_next:C(oF({variant:s}),"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",h.button_next),month_caption:C("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",h.month_caption),dropdowns:C("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",h.dropdowns),dropdown_root:C("relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50",h.dropdown_root),dropdown:C("absolute inset-0 bg-popover opacity-0",h.dropdown),caption_label:C("font-medium select-none",i==="label"?"text-sm":"flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground",h.caption_label),month_grid:"w-full border-collapse",weekdays:C("flex",h.weekdays),weekday:C("flex-1 rounded-md text-[0.8rem] font-normal text-muted-foreground select-none",h.weekday),week:C("mt-2 flex w-full",h.week),week_number_header:C("w-(--cell-size) select-none",h.week_number_header),week_number:C("text-[0.8rem] text-muted-foreground select-none",h.week_number),day:C("group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md",d.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-md":"[&:first-child[data-selected=true]_button]:rounded-l-md",h.day),range_start:C("rounded-l-md bg-accent",h.range_start),range_middle:C("rounded-none",h.range_middle),range_end:C("rounded-r-md bg-accent",h.range_end),today:C("rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none",h.today),outside:C("text-muted-foreground aria-selected:text-muted-foreground",h.outside),disabled:C("text-muted-foreground opacity-50",h.disabled),hidden:C("invisible",h.hidden),...r},components:{Root:({className:g,rootRef:x,...v})=>t("div",{"data-slot":"calendar",ref:x,className:C(g),...v}),Chevron:({className:g,orientation:x,...v})=>{if(x==="left")return t(nn,{className:C("size-4",g),...v});if(x==="right")return t(Et,{className:C("size-4",g),...v});return t(ve,{className:C("size-4",g),...v})},DayButton:Ckt,WeekNumber:({children:g,...x})=>t("td",{...x,children:t("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:g})}),...c},...d})}function Ckt({className:e,day:r,modifiers:a,...i}){let s=DO(),l=_(null);return m(()=>{if(a.focused)l.current?.focus()},[a.focused]),t(E,{ref:l,variant:"ghost",size:"icon","data-day":r.date.toLocaleDateString(),"data-selected-single":a.selected&&!a.range_start&&!a.range_end&&!a.range_middle,"data-range-start":a.range_start,"data-range-end":a.range_end,"data-range-middle":a.range_middle,className:C("flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70",s.day,e),...i})}function ao({className:e,orientation:r="horizontal",decorative:a=!0,...i}){return t(UPe,{"data-slot":"separator",decorative:a,orientation:r,className:C("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...i})}S();function Ci({value:e,onChange:r,placeholder:a="Pick a date",disabled:i,className:s}){let[l,c]=u(!1),[d,h]=u(e);m(()=>{if(l)h(e)},[l,e]);let g=Array.from({length:24},(T,U)=>U),x=Array.from({length:12},(T,U)=>U*5),v=(T)=>{if(T){let U=d?new Date(d):new Date;U.setFullYear(T.getFullYear()),U.setMonth(T.getMonth()),U.setDate(T.getDate()),h(U)}else h(void 0)},b=(T,U)=>{let N=d?new Date(d):new Date;if(T==="hour")N.setHours(U);else N.setMinutes(U);h(N)},y=(T)=>{let U=new Date;if(T==="24h")U=Ade(U,24);else if(T==="1w")U=fO(U,1);else if(T==="2w")U=fO(U,2);h(U)},k=()=>{r?.(d),c(!1)};return o(At,{open:l,onOpenChange:c,children:[t(_t,{asChild:!0,children:o(E,{variant:"outline",disabled:i,className:C("w-full justify-start text-left font-normal h-9",!e&&"text-muted-foreground",s),children:[t(jn,{className:"mr-2 h-4 w-4"}),e?Ar(e,"yyyy/MM/dd HH:mm"):t("span",{children:a})]})}),t(yt,{className:"w-[22rem] p-0",align:"start",children:o("div",{className:"flex flex-col w-full",children:[o("div",{className:"flex w-full",children:[t(T8e,{mode:"single",selected:d,onSelect:v,className:"grow"}),o("div",{className:"flex flex-col sm:flex-row sm:h-[300px] divide-y sm:divide-y-0 sm:divide-x border-t sm:border-t-0 border-l",children:[o(ce,{className:"w-64 sm:w-auto [&_[data-orientation=vertical]]:hidden",children:[t("div",{className:"flex sm:flex-col p-2",children:g.map((T)=>t(E,{size:"icon",variant:d&&d.getHours()===T?"default":"ghost",className:"sm:w-full shrink-0 aspect-square text-xs h-8 w-8",onClick:()=>b("hour",T),children:T.toString().padStart(2,"0")},T))}),t(bF,{orientation:"horizontal",className:"sm:hidden"})]}),o(ce,{className:"w-64 sm:w-auto [&_[data-orientation=vertical]]:hidden",children:[t("div",{className:"flex sm:flex-col p-2",children:x.map((T)=>t(E,{size:"icon",variant:d&&d.getMinutes()===T?"default":"ghost",className:"sm:w-full shrink-0 aspect-square text-xs h-8 w-8",onClick:()=>b("minute",T),children:T.toString().padStart(2,"0")},T))}),t(bF,{orientation:"horizontal",className:"sm:hidden"})]})]})]}),t(ao,{}),o("div",{className:"p-2 flex items-center justify-between bg-muted/50",children:[o("div",{className:"flex gap-2",children:[t(E,{variant:"outline",size:"sm",className:"text-[10px] h-7 px-2",onClick:()=>y("24h"),children:"24 Hours"}),t(E,{variant:"outline",size:"sm",className:"text-[10px] h-7 px-2",onClick:()=>y("1w"),children:"1 Week"}),t(E,{variant:"outline",size:"sm",className:"text-[10px] h-7 px-2",onClick:()=>y("2w"),children:"2 Weeks"})]}),t(E,{size:"sm",className:"h-7 px-4",onClick:k,children:"Save"})]})]})})]})}S();var Ikt=[Qe.TODO,Qe.READY,Qe.IN_PROGRESS,Qe.IN_REVIEW,Qe.DONE,Qe.BLOCKED];function Xd({teamId:e,currentTaskId:r,excludeTaskIds:a=[],value:i=[],knownTasks:s=[],onChange:l,disabled:c=!1,canEdit:d=!0,className:h}){let[g,x]=u(!1),[v,b]=u(Qe.TODO),[y,k]=u(""),[T,U]=u(()=>{let fe={};for(let be of s)fe[be.id]={title:be.title,status:be.status};return fe}),{data:N,isLoading:j}=Z({queryKey:["teams",e,"kanban","tasks","status",v],queryFn:async()=>{let fe=await A.api.teams[":teamId"].kanban.tasks.$get({param:{teamId:e},query:{status:v,first:"100"}});if(!fe.ok)return{data:[]};return await fe.json()},enabled:!!e&&g}),G=N?.data||[];D(()=>{if(G.length>0)U((fe)=>{let be=!1,We={...fe};for(let Ye of G)if(!We[Ye.id]||We[Ye.id].title!==Ye.title||We[Ye.id].status!==Ye.status)We[Ye.id]={title:Ye.title,status:Ye.status},be=!0;return be?We:fe})},[G]);let X=D(()=>{let fe=new Set(a);if(r)fe.add(r);return fe},[r,a]),J=D(()=>{let fe=y.trim().toLowerCase();return G.filter((be)=>{if(X.has(be.id))return!1;if(!fe)return!0;return be.title.toLowerCase().includes(fe)})},[G,X,y]),ee=(fe)=>{if(!d||c)return;let We=i.includes(fe)?i.filter((Ye)=>Ye!==fe):[...i,fe];l?.(We)},re=(fe,be)=>{if(be.stopPropagation(),!d||c)return;l?.(i.filter((We)=>We!==fe))},oe=d&&!c;return o(At,{open:g&&oe,onOpenChange:(fe)=>oe&&x(fe),children:[t(_t,{asChild:!0,children:t("div",{role:"button",tabIndex:oe?0:-1,className:C("w-full min-h-[36px] px-2.5 py-1.5 flex flex-wrap items-center gap-1.5 rounded-md border border-input bg-background text-xs transition-colors",oe?"cursor-pointer hover:border-ring/60 focus:outline-none focus:ring-2 focus:ring-ring/50":"cursor-not-allowed opacity-70",h),children:i.length===0?o("div",{className:"flex items-center gap-1.5 text-muted-foreground",children:[t(qs,{className:"w-3.5 h-3.5 text-muted-foreground/70"}),t("span",{children:tdt()})]}):i.map((fe)=>{let be=T[fe];return o("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md text-[11px] bg-muted text-foreground border border-border/80 shrink-0 max-w-[220px]",children:[be?.status&&t("span",{className:C("px-1 py-0.2 rounded text-[9px] uppercase font-semibold shrink-0",U8(be.status)),children:io(be.status)}),t("span",{className:"truncate font-medium",children:be?.title||fe}),oe&&t("button",{type:"button",onClick:(We)=>re(fe,We),className:"text-muted-foreground hover:text-destructive shrink-0 p-0.5 -mr-1",children:t(Ne,{className:"w-3 h-3"})})]},fe)})})}),o(yt,{align:"start",sideOffset:4,className:"w-[var(--radix-popover-trigger-width)] min-w-[320px] sm:min-w-[420px] max-w-[500px] p-2.5 space-y-2 bg-popover border border-border rounded-lg shadow-lg",children:[t("div",{className:"flex flex-wrap gap-1.5 pb-0.5",children:Ikt.map((fe)=>t("button",{type:"button",onClick:()=>b(fe),className:C("text-[11px] h-7 px-2.5 rounded-md font-medium transition-colors border shrink-0",v===fe?"bg-primary text-primary-foreground border-primary shadow-xs":"bg-muted/50 hover:bg-accent text-muted-foreground hover:text-foreground border-border/60"),children:io(fe)},fe))}),o("div",{className:"relative",children:[t(Ut,{className:"w-3.5 h-3.5 absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none"}),t(z,{value:y,onChange:(fe)=>k(fe.target.value),placeholder:X9e(),className:"h-8 pl-8 text-xs bg-muted/40",autoFocus:!0})]}),t("div",{className:"border rounded-md overflow-hidden bg-background/50",children:t(ce,{className:"h-48 p-1",children:j?t("div",{className:"flex items-center justify-center py-8",children:t(O,{className:"w-4 h-4 animate-spin text-muted-foreground"})}):J.length===0?t("div",{className:"py-8 text-center text-xs text-muted-foreground italic",children:Cle()}):t("div",{className:"space-y-1",children:J.map((fe)=>{let be=i.includes(fe.id);return o("div",{onClick:()=>ee(fe.id),className:C("flex items-center justify-between p-2 rounded-md hover:bg-accent cursor-pointer transition-colors text-xs border border-transparent",be&&"bg-accent/50 border-border/50"),children:[o("div",{className:"flex items-center gap-2 min-w-0 flex-1 pr-2",children:[t("div",{className:C("w-4 h-4 rounded border flex items-center justify-center shrink-0 transition-colors",be?"bg-primary border-primary text-primary-foreground":"border-input bg-background"),children:be&&t(Pe,{className:"w-3 h-3 stroke-[3]"})}),t("span",{className:C("px-1.5 py-0.5 rounded text-[10px] uppercase font-medium shrink-0",U8(fe.status)),children:io(fe.status)}),t("span",{className:"font-medium text-foreground truncate",children:fe.title})]}),fe.assignee&&t("span",{className:"text-[10px] text-muted-foreground truncate shrink-0",children:fe.assignee.name})]},fe.id)})})})})]})]})}S();function wr({className:e,...r}){return t(ECe,{"data-slot":"checkbox",className:C("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",e),...r,children:t(OCe,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:t(Pe,{className:"size-3.5"})})})}function yn(e){if(!e||e<=0)return"0 B";let r=1000,a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(r));if(i<0)i=0;if(i>=a.length)i=a.length-1;let s=e/Math.pow(r,i);if(i===0)return`${Math.round(s)} B`;let l=parseFloat(s.toFixed(2));if(l>=1000&&i<a.length-1)return parseFloat((e/Math.pow(r,i+1)).toFixed(2))+" "+a[i+1];return`${l} ${a[i]}`}S();function A8e({teamId:e,initialProjectId:r,excludeAssetIds:a=[],isOpen:i,onClose:s,onConfirm:l}){let[c,d]=u(r||""),[h,g]=u(null),[x,v]=u(new Map),{data:b,isLoading:y}=Z({queryKey:["teams",e,"projects"],queryFn:async()=>{let bt=await A.api.teams[":teamId"].projects.$get({param:{teamId:e},query:{first:"100"}});if(!bt.ok)throw Error("Failed to fetch projects");return await bt.json()},enabled:!!e&&i}),k=b?.data||[],T=c||(k[0]?.id??""),U=k.find((bt)=>bt.id===T),N=h?.id||U?.rootFolder||"",j=N===U?.rootFolder,{data:G,fetchNextPage:X,hasNextPage:J,isFetchingNextPage:ee,isLoading:re}=mt({queryKey:["folders",N,"children","folder","picker"],queryFn:async({pageParam:bt})=>{let Wt=await A.api.folders[":folderId"].children.$get({param:{folderId:N},query:{assetType:"folder",after:bt,first:"20"}});if(!Wt.ok)throw Error("Failed to fetch folders");return await Wt.json()},initialPageParam:"",getNextPageParam:(bt)=>bt.pageInfo?.cursor||void 0,enabled:!!N&&i}),{data:oe,fetchNextPage:fe,hasNextPage:be,isFetchingNextPage:We,isLoading:Ye}=mt({queryKey:["folders",N,"children","file","picker"],queryFn:async({pageParam:bt})=>{let Wt=await A.api.folders[":folderId"].children.$get({param:{folderId:N},query:{assetType:"file",after:bt,first:"20"}});if(!Wt.ok)throw Error("Failed to fetch files");return await Wt.json()},initialPageParam:"",getNextPageParam:(bt)=>bt.pageInfo?.cursor||void 0,enabled:!!N&&i}),{ref:Se,inView:He}=Nt();m(()=>{if(He){if(J&&!ee)X();else if(be&&!We)fe()}},[He,J,ee,X,be,We,fe]);let ft=re&&!G||Ye&&!oe,Je=ee||We,xt=D(()=>{let bt=G?.pages.flatMap((Fe)=>Fe.data??[])??[],Wt=oe?.pages.flatMap((Fe)=>Fe.data??[])??[];return[...bt,...Wt]},[G,oe]),Ft=(bt)=>{let Wt=new Map(x);if(Wt.has(bt.id))Wt.delete(bt.id);else{let Fe=U?`/${[U.name,...(bt.ancestorFolders||[]).map((nr)=>nr.name)].filter(Boolean).join("/")}`:"/";Wt.set(bt.id,{id:bt.id,name:bt.name,type:bt.type,proxyType:bt.proxyType??null,thumbnailUrl:bt.preview?.thumbnailUrl??null,path:Fe,creator:bt.creator?{id:bt.creator.id,name:bt.creator.name,image:bt.creator.image??void 0}:null,sizeByte:bt.sizeByte??0,fileCount:bt.fileCount??null,projectId:bt.projectId??U?.id??null,createdAt:bt.createdAt??new Date().toISOString()})}v(Wt)},Bt=()=>{if(!h||j)return;let bt=new Map(x);if(bt.has(h.id))bt.delete(h.id);else{let Wt=U?`/${[U.name,...(h.ancestorFolders||[]).map((Fe)=>Fe.name)].filter(Boolean).join("/")}`:"/";bt.set(h.id,{id:h.id,name:h.name,type:"folder",proxyType:null,thumbnailUrl:null,path:Wt,creator:h.creator?{id:h.creator.id,name:h.creator.name,image:h.creator.image??void 0}:null,sizeByte:h.sizeByte??0,fileCount:h.fileCount??null,projectId:h.projectId??U?.id??null,createdAt:h.createdAt??new Date().toISOString()})}v(bt)},ie=()=>{l(Array.from(x.values())),s()};return t(ue,{open:i,onOpenChange:(bt)=>{if(!bt)s()},children:o(ae,{className:"sm:max-w-4xl flex flex-col h-[650px] p-0 overflow-hidden gap-1",children:[t(pe,{className:"px-4 py-3 border-b shrink-0",children:o("div",{className:"flex items-center gap-2",children:[t(lr,{className:"w-5 h-5 text-primary"}),t(le,{children:Lut()})]})}),o("div",{className:"flex items-center gap-2.5 px-4 py-1.5 border-b bg-transparent shrink-0",children:[o("span",{className:"text-xs font-medium text-muted-foreground whitespace-nowrap",children:[wje(),":"]}),t("div",{className:"w-64",children:o(Le,{value:T,onValueChange:(bt)=>{d(bt),g(null)},children:[t(Be,{className:"h-8 text-xs bg-background",children:t(Ze,{placeholder:w9()})}),t(Ue,{children:k.map((bt)=>t(ne,{value:bt.id,className:"text-xs",children:bt.name},bt.id))})]})})]}),o("div",{className:"flex-1 min-h-0 flex overflow-hidden",children:[t("div",{className:"w-1/3 min-h-0 border-r bg-sidebar/30 flex flex-col overflow-hidden",children:t(ce,{className:"flex-1 min-h-0 [&>div>div]:block!",children:U&&U.rootFolder?t("div",{className:"p-2",children:t(vr,{teamId:e,projectId:U.id,projectName:U.name,rootFolderId:U.rootFolder,onSelect:(bt)=>g(bt),selectedFolderId:N,hideCollections:!0,hideShares:!0,hideRecentlyDeleted:!0})}):t("div",{className:"flex items-center justify-center h-full p-6 text-xs text-muted-foreground",children:y?t(O,{className:"w-5 h-5 animate-spin text-muted-foreground"}):Ile()})})}),o("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden bg-background",children:[o("div",{className:"p-2.5 px-4 border-b flex items-center justify-between bg-muted/20 shrink-0",children:[o("div",{className:"flex items-center gap-2 text-xs font-medium truncate",children:[t(lr,{className:"w-4 h-4 text-muted-foreground shrink-0"}),t("span",{className:"truncate",children:h?h.name:U?.name||""}),j&&t("span",{className:"text-[10px] text-muted-foreground/70 bg-muted px-1.5 py-0.5 rounded",children:"Root"})]}),!j&&h&&t(E,{size:"sm",variant:x.has(h.id)?"secondary":"outline",className:"h-7 text-xs gap-1.5",onClick:Bt,disabled:a.includes(h.id),children:x.has(h.id)?o(L,{children:[t(Pe,{className:"w-3.5 h-3.5 text-primary"}),Jg()]}):o(L,{children:[t(de,{className:"w-3.5 h-3.5"}),Put()]})})]}),t(ce,{className:"flex-1 min-h-0 [&>div>div]:block!",children:ft?t("div",{className:"flex items-center justify-center p-12",children:t(O,{className:"w-6 h-6 animate-spin text-muted-foreground"})}):xt.length===0?o("div",{className:"flex flex-col items-center justify-center p-12 text-center text-xs text-muted-foreground gap-2",children:[t(lr,{className:"w-8 h-8 opacity-30"}),t("p",{children:j$e()})]}):o("div",{className:"divide-y divide-border/40",children:[xt.map((bt)=>{let Wt=a.includes(bt.id),Fe=x.has(bt.id),nr=bt.type==="folder";return o("div",{onClick:()=>{if(!Wt)Ft(bt)},className:`flex items-center gap-3 px-4 py-2.5 hover:bg-muted/40 cursor-pointer transition-colors ${Fe?"bg-primary/5":""} ${Wt?"opacity-50 cursor-not-allowed":""}`,children:[t(wr,{checked:Fe,disabled:Wt,onCheckedChange:()=>{if(!Wt)Ft(bt)},onClick:(fr)=>fr.stopPropagation()}),t("div",{className:"w-9 h-9 rounded bg-muted/60 border shrink-0 flex items-center justify-center overflow-hidden",children:bt.preview?.thumbnailUrl?t("img",{src:bt.preview.thumbnailUrl,alt:bt.name,className:"w-full h-full object-cover"}):nr?t(lr,{className:"w-5 h-5 text-primary fill-primary/20"}):t(ar,{className:"w-5 h-5 text-muted-foreground"})}),o("div",{className:"flex-1 min-w-0",children:[t("p",{className:"text-xs font-medium truncate text-foreground",children:bt.name}),o("p",{className:"text-[11px] text-muted-foreground truncate",children:[nr?`${bt.fileCount??0} items`:yn(bt.sizeByte||0),bt.creator?.name?` • ${bt.creator.name}`:""]})]})]},bt.id)}),t("div",{ref:Se,className:"h-1"}),Je&&t("div",{className:"flex items-center justify-center p-3",children:t(O,{className:"w-4 h-4 animate-spin text-muted-foreground"})})]})})]})]}),o(qe,{className:"p-3 px-4 border-t flex items-center justify-between sm:justify-between bg-muted/10 shrink-0",children:[t("div",{className:"text-xs text-muted-foreground",children:x.size>0&&gJe({count:x.size})}),o("div",{className:"flex items-center gap-2",children:[t(E,{variant:"outline",size:"sm",onClick:s,children:De()}),t(E,{size:"sm",onClick:ie,disabled:x.size===0,children:mle()})]})]})]})})}function ef({teamId:e,projectId:r,assets:a,onAddAssets:i,onRemoveAsset:s,disabled:l=!1,linkable:c=!1}){let[d,h]=u(!1),g=(x)=>{let v=new Set(a.map((y)=>y.id)),b=x.filter((y)=>!v.has(y.id));if(b.length>0)i(b)};return o("div",{className:"space-y-2",children:[o("div",{className:"flex items-center justify-between",children:[o("div",{className:"flex items-center gap-1.5 text-xs font-semibold text-foreground",children:[t(ka,{className:"w-3.5 h-3.5 text-muted-foreground"}),t("span",{children:alt()}),a.length>0&&o("span",{className:"text-[11px] text-muted-foreground font-normal",children:["(",a.length,")"]})]}),!l&&t(E,{type:"button",variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted",onClick:()=>h(!0),title:mle(),children:t(de,{className:"w-3.5 h-3.5"})})]}),t(ao,{}),a.length===0?t("p",{className:"text-xs text-muted-foreground/70 py-1 italic",children:ett()}):t("div",{className:"space-y-1.5 max-h-48 overflow-y-auto pr-1",children:a.map((x)=>{let v=x.type==="folder",b=x.projectId||r,y=c&&b?`/projects/${b}/${v?"folders":"files"}/${x.id}`:null,k=o(L,{children:[t("div",{className:"w-7 h-7 rounded bg-muted border shrink-0 flex items-center justify-center overflow-hidden",children:x.thumbnailUrl?t("img",{src:x.thumbnailUrl,alt:x.name,className:"w-full h-full object-cover"}):v?t(lr,{className:"w-4 h-4 text-primary fill-primary/20"}):t(ar,{className:"w-4 h-4 text-muted-foreground"})}),o("div",{className:"flex-1 min-w-0",children:[t("p",{className:C("font-medium truncate text-foreground leading-snug",y&&"group-hover:underline group-hover:text-primary"),children:x.name}),t("p",{className:"text-[10px] text-muted-foreground truncate leading-none mt-0.5",children:x.path||"/"})]})]});return o("div",{className:"flex items-center justify-between gap-2 p-1.5 px-2 rounded-md bg-muted/40 hover:bg-muted/70 transition-colors text-xs border border-border/40",children:[y?t(gn,{to:y,title:x.name,className:"group flex items-center gap-2.5 min-w-0 flex-1 rounded-sm cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:k}):t("div",{className:"flex items-center gap-2.5 min-w-0 flex-1",children:k}),o("div",{className:"flex items-center gap-2 shrink-0",children:[x.creator&&o("div",{className:"flex items-center gap-1 text-[11px] text-muted-foreground",title:x.creator.name,children:[o(Ce,{className:"w-4 h-4 text-[9px]",children:[t(Ie,{src:x.creator.image||void 0}),t(Te,{children:x.creator.name.slice(0,1).toUpperCase()})]}),t("span",{className:"hidden sm:inline text-[11px] max-w-[80px] truncate",children:x.creator.name})]}),!l&&t(E,{type:"button",variant:"ghost",size:"sm",className:"h-5 w-5 p-0 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:()=>s(x.id),title:D8t(),children:t(Ne,{className:"w-3 h-3"})})]})]},x.id)})}),d&&t(A8e,{teamId:e,initialProjectId:r,excludeAssetIds:a.map((x)=>x.id),isOpen:d,onClose:()=>h(!1),onConfirm:g})]})}S();function tf({teamId:e,currentProjectId:r,currentTargetFolderId:a,isOpen:i,onClose:s,onSelect:l}){let[c,d]=u(r||""),[h,g]=u(null),{data:x,isLoading:v}=Z({queryKey:["teams",e,"projects"],queryFn:async()=>{let U=await A.api.teams[":teamId"].projects.$get({param:{teamId:e},query:{first:"100"}});if(!U.ok)throw Error("Failed to fetch projects");return await U.json()},enabled:!!e&&i}),b=x?.data||[],y=c||(b[0]?.id??""),k=b.find((U)=>U.id===y),T=()=>{if(!y)return;let U=h?.id||k?.rootFolder;if(U)l(y,U,h?.name||k?.name),s()};return t(ue,{open:i,onOpenChange:(U)=>!U&&s(),children:o(ae,{className:"sm:max-w-2xl flex flex-col h-[580px]",children:[t(pe,{children:o("div",{className:"flex items-center gap-2",children:[t(lr,{className:"w-5 h-5 text-primary"}),t(le,{children:Op()})]})}),o("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden py-2",children:[o("div",{className:"space-y-1.5",children:[t("label",{className:"text-xs font-medium text-muted-foreground",children:w9()}),o(Le,{value:y,onValueChange:(U)=>{d(U),g(null)},children:[t(Be,{className:"h-9",children:t(Ze,{placeholder:w9()})}),t(Ue,{children:b.map((U)=>t(ne,{value:U.id,children:U.name},U.id))})]})]}),o("div",{className:"space-y-1.5 flex-1 flex flex-col overflow-hidden",children:[t("label",{className:"text-xs font-medium text-muted-foreground",children:qp()}),t("div",{className:"border rounded-md flex-1 overflow-hidden bg-sidebar/50",children:t(ce,{className:"h-full",children:k&&k.rootFolder?t(vr,{teamId:e,projectId:k.id,projectName:k.name,rootFolderId:k.rootFolder,onSelect:g,selectedFolderId:h?.id||a||k.rootFolder,hideCollections:!0,hideShares:!0,hideRecentlyDeleted:!0}):t("div",{className:"flex items-center justify-center h-full p-6 text-xs text-muted-foreground",children:v?t(O,{className:"w-5 h-5 animate-spin text-muted-foreground"}):Ile()})})})]})]}),o(qe,{children:[t(E,{variant:"outline",onClick:s,children:De()}),t(E,{onClick:T,disabled:!y,children:na()})]})]})})}function E8e({teamId:e,task:r,canEdit:a=!0}){let i=V(),[s,l]=u(r.title),[c,d]=u(r.description||""),[h,g]=u(!1),[x,v]=u(null),b=_(null);m(()=>{l(r.title),d(r.description||"")},[r.id,r.title,r.description]);let{data:y=[]}=Z({queryKey:["teams",e,"members","human"],queryFn:async()=>{let re=await A.api.teams[":teamId"].members.$get({param:{teamId:e},query:{includeAgents:"false"}});if(!re.ok)return[];let oe=await re.json();return Array.isArray(oe)?oe:[]},enabled:!!e}),{data:k=[]}=Z({queryKey:["teams",e,"agents"],queryFn:async()=>{let re=await A.api.teams[":teamId"].agents.$get({param:{teamId:e}});if(!re.ok)return[];return await re.json()||[]},enabled:!!e}),{data:T}=Z({queryKey:["teams",e,"kanban","goals"],queryFn:async()=>{let re=await A.api.teams[":teamId"].kanban.goals.$get({param:{teamId:e},query:{}});if(!re.ok)return{data:[]};return await re.json()},enabled:!!e}),U=T?.data||[],{mutate:N,isPending:j}=B({mutationFn:async(re)=>{let oe=await A.api.teams[":teamId"].kanban.tasks[":taskId"].$patch({param:{teamId:e,taskId:r.id},json:re});if(!oe.ok){let fe=await oe.json().catch(()=>({message:Mn()}));throw Error(fe.message||Mn())}return await oe.json()},onSuccess:()=>{i.invalidateQueries({queryKey:["teams",e,"kanban","task",r.id]}),i.invalidateQueries({queryKey:["teams",e,"kanban","tasks"]})},onError:(re)=>{M.error(re.message)}}),{mutate:G}=B({mutationFn:async(re)=>{let oe=await A.api.teams[":teamId"].kanban.tasks[":taskId"].assets.$post({param:{teamId:e,taskId:r.id},json:{assetIds:re.map((fe)=>fe.id)}});if(!oe.ok)throw Error("Failed to link assets");return await oe.json()},onSuccess:()=>{i.invalidateQueries({queryKey:["teams",e,"kanban","task",r.id]}),i.invalidateQueries({queryKey:["teams",e,"kanban","tasks"]}),M.success(gle())},onError:(re)=>{M.error(re.message)}}),{mutate:X}=B({mutationFn:async(re)=>{let oe=await A.api.teams[":teamId"].kanban.tasks[":taskId"].assets[":assetId"].$delete({param:{teamId:e,taskId:r.id,assetId:re}});if(!oe.ok)throw Error("Failed to unlink asset");return await oe.json()},onSuccess:()=>{i.invalidateQueries({queryKey:["teams",e,"kanban","task",r.id]}),i.invalidateQueries({queryKey:["teams",e,"kanban","tasks"]}),M.success(Mle())},onError:(re)=>{M.error(re.message)}}),J=(re,oe)=>{if(re==="title")l(oe);if(re==="description")d(oe);if(b.current)clearTimeout(b.current);b.current=setTimeout(()=>{if(re==="title"&&oe.trim()&&oe.trim()!==r.title)N({title:oe.trim()});else if(re==="description"&&oe!==(r.description||""))N({description:oe.trim()||null})},600)},ee=r.isAgentTask;return o(ce,{className:"h-full p-5",children:[o("div",{className:"space-y-6 w-full pr-3",children:[o("div",{className:"space-y-1.5",children:[o("div",{className:"flex items-center justify-between",children:[t(W,{htmlFor:"task-title",className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:_A()}),j&&o("span",{className:"flex items-center gap-1 text-[11px] text-muted-foreground animate-pulse",children:[t(O,{className:"w-3 h-3 animate-spin"}),Xg()]})]}),t(z,{id:"task-title",value:s,onChange:(re)=>J("title",re.target.value),disabled:!a,className:"text-base font-semibold h-10 bg-background",placeholder:yA()})]}),o("div",{className:"space-y-1.5",children:[t(W,{htmlFor:"task-description",className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:hA()}),t(Ei,{id:"task-description",value:c,onChange:(re)=>J("description",re.target.value),disabled:!a,rows:5,className:"text-xs leading-relaxed bg-background",placeholder:gA()})]}),o("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 p-4 rounded-lg bg-muted/20 border border-border/60",children:[o("div",{className:"sm:col-span-2 flex items-center justify-between space-x-2 rounded-md border border-border/60 bg-background/50 px-3 py-2 h-14",children:[o("div",{className:"space-y-0.5 min-w-0 pr-2",children:[o(W,{className:"text-xs font-medium text-muted-foreground flex items-center gap-1.5",children:[t(Tt,{className:"w-3.5 h-3.5 text-orange-500"}),t("span",{children:Hd()})]}),t("p",{className:"text-[11px] text-muted-foreground/80 line-clamp-1",children:bA()})]}),t(Me,{checked:r.isAgentTask,disabled:!0})]}),o("div",{className:"space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:AA()}),o(Le,{value:r.priority,onValueChange:(re)=>N({priority:re}),disabled:!a,children:[t(Be,{className:"w-full h-8 text-xs bg-background",children:t(Ze,{})}),t(Ue,{children:Object.values(zr).map((re)=>t(ne,{value:re,children:t("span",{className:C("px-1.5 py-0.5 rounded text-[10px] uppercase font-medium",la(re)),children:aa(re)})},re))})]})]}),o("div",{className:"space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:xd()}),o(Le,{value:r.goal?.id||"none",onValueChange:(re)=>N({goalId:re==="none"?null:re}),disabled:!a,children:[t(Be,{className:"w-full h-8 text-xs bg-background",children:t(Ze,{placeholder:net()})}),o(Ue,{children:[t(ne,{value:"none",children:t("span",{className:"text-muted-foreground italic",children:"None"})}),U.filter((re)=>re.id!==xi).map((re)=>t(ne,{value:re.id,children:o("div",{className:"flex items-center gap-2",children:[t(So,{className:"w-3.5 h-3.5 text-primary"}),t("span",{children:re.title})]})},re.id))]})]})]}),o("div",{className:"space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:ee?zd():nh()}),o(Le,{value:r.assignee?.id||"none",onValueChange:(re)=>N({assigneeId:re==="none"?null:re}),disabled:!a,children:[t(Be,{className:"w-full h-8 text-xs bg-background",children:t(Ze,{placeholder:_s()})}),o(Ue,{children:[t(ne,{value:"none",children:t("span",{className:"text-muted-foreground italic",children:_s()})}),ee?k.map((re)=>t(ne,{value:re.id,children:o("div",{className:"flex items-center gap-2",children:[t(Tt,{className:"w-3.5 h-3.5 text-purple-500"}),t("span",{children:re.name})]})},re.id)):y.map((re)=>t(ne,{value:re.id,children:o("div",{className:"flex items-center gap-2",children:[o(Ce,{size:"sm",className:"w-4 h-4",children:[t(Ie,{src:re.image}),t(Te,{className:"text-[8px]",children:re.name.slice(0,2).toUpperCase()})]}),t("span",{children:re.name})]})},re.id))]})]})]}),o("div",{className:"space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:Gg()}),o(Le,{value:r.reporter?.id||"none",onValueChange:(re)=>N({reporterId:re==="none"?null:re}),disabled:!a,children:[t(Be,{className:"w-full h-8 text-xs bg-background",children:t(Ze,{placeholder:_s()})}),o(Ue,{children:[t(ne,{value:"none",children:t("span",{className:"text-muted-foreground italic",children:_s()})}),y.map((re)=>t(ne,{value:re.id,children:o("div",{className:"flex items-center gap-2",children:[o(Ce,{size:"sm",className:"w-4 h-4",children:[t(Ie,{src:re.image}),t(Te,{className:"text-[8px]",children:re.name.slice(0,2).toUpperCase()})]}),t("span",{children:re.name})]})},re.id))]})]})]}),ee&&o("div",{className:"sm:col-span-2 space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:qp()}),t("div",{className:"flex items-center gap-2",children:o(E,{type:"button",variant:"outline",size:"sm",onClick:()=>g(!0),disabled:!a,className:"w-full justify-start h-8 text-xs bg-background truncate font-normal",children:[t(lr,{className:"w-3.5 h-3.5 mr-2 text-primary shrink-0"}),t("span",{className:"truncate",children:x||(r.targetFolderId?"Selected Folder":Op())})]})})]}),o("div",{className:"space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:jd()}),t(Ci,{value:r.startDate?new Date(r.startDate):void 0,onChange:(re)=>N({startDate:re?re.toISOString():null}),disabled:!a,placeholder:jd(),className:"h-8 text-xs bg-background"})]}),o("div",{className:"space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:gd()}),t(Ci,{value:r.dueDate?new Date(r.dueDate):void 0,onChange:(re)=>N({dueDate:re?re.toISOString():null}),disabled:!a,placeholder:gd(),className:"h-8 text-xs bg-background"})]}),o("div",{className:"sm:col-span-2 space-y-1.5",children:[t(W,{className:"text-xs font-medium text-muted-foreground",children:Sg()}),t(Xd,{teamId:e,currentTaskId:r.id,excludeTaskIds:r.dependents.map((re)=>re.id),value:r.dependencies.map((re)=>re.id),knownTasks:[...r.dependencies,...r.dependents],onChange:(re)=>N({parentIds:re}),canEdit:a})]}),t("div",{className:"sm:col-span-2 pt-1",children:t(ef,{teamId:e,projectId:r.projectId,assets:r.assets||[],onAddAssets:(re)=>G(re),onRemoveAsset:(re)=>X(re),disabled:!a,linkable:!0})})]})]}),h&&t(tf,{teamId:e,currentProjectId:r.projectId,currentTargetFolderId:r.targetFolderId,isOpen:h,onClose:()=>g(!1),onSelect:(re,oe,fe)=>{v(fe||"Selected Folder"),N({projectId:re,targetFolderId:oe})}})]})}S();S();function Ps(){}function mj(){}function D8e(e,r){let a=r||{};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}var Rkt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Pkt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Tkt={};function hj(e,r){return((r||Tkt).jsx?Pkt:Rkt).test(e)}var Akt=/[ \t\n\f\r]/g;function pG(e){return typeof e==="object"?e.type==="text"?O8e(e.value):!1:O8e(e)}function O8e(e){return e.replace(Akt,"")===""}class V8{constructor(e,r,a){if(this.normal=r,this.property=e,a)this.space=a}}V8.prototype.normal={};V8.prototype.property={};V8.prototype.space=void 0;function mG(e,r){let a={},i={};for(let s of e)Object.assign(a,s.property),Object.assign(i,s.normal);return new V8(a,i,r)}function NO(e){return e.toLowerCase()}class hf{constructor(e,r){this.attribute=r,this.property=e}}hf.prototype.attribute="";hf.prototype.booleanish=!1;hf.prototype.boolean=!1;hf.prototype.commaOrSpaceSeparated=!1;hf.prototype.commaSeparated=!1;hf.prototype.defined=!1;hf.prototype.mustUseProperty=!1;hf.prototype.number=!1;hf.prototype.overloadedBoolean=!1;hf.prototype.property="";hf.prototype.spaceSeparated=!1;hf.prototype.space=void 0;var FO={};ke(FO,{boolean:()=>Xr,booleanish:()=>Fn,commaOrSpaceSeparated:()=>ll,commaSeparated:()=>gM,number:()=>Qt,overloadedBoolean:()=>gj,spaceSeparated:()=>fa});var Ekt=0,Xr=IL(),Fn=IL(),gj=IL(),Qt=IL(),fa=IL(),gM=IL(),ll=IL();function IL(){return 2**++Ekt}var hG=Object.keys(FO);class aP extends hf{constructor(e,r,a,i){let s=-1;super(e,r);if(N8e(this,"space",i),typeof a==="number")while(++s<hG.length){let l=hG[s];N8e(this,hG[s],(a&FO[l])===FO[l])}}}aP.prototype.defined=!0;function N8e(e,r,a){if(a)e[r]=a}function Pc(e){let r={},a={};for(let[i,s]of Object.entries(e.properties)){let l=new aP(i,e.transform(e.attributes||{},i),s,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(i))l.mustUseProperty=!0;r[i]=l,a[NO(i)]=i,a[NO(l.attribute)]=i}return new V8(r,a,e.space)}var gG=Pc({properties:{ariaActiveDescendant:null,ariaAtomic:Fn,ariaAutoComplete:null,ariaBusy:Fn,ariaChecked:Fn,ariaColCount:Qt,ariaColIndex:Qt,ariaColSpan:Qt,ariaControls:fa,ariaCurrent:null,ariaDescribedBy:fa,ariaDetails:null,ariaDisabled:Fn,ariaDropEffect:fa,ariaErrorMessage:null,ariaExpanded:Fn,ariaFlowTo:fa,ariaGrabbed:Fn,ariaHasPopup:null,ariaHidden:Fn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fa,ariaLevel:Qt,ariaLive:null,ariaModal:Fn,ariaMultiLine:Fn,ariaMultiSelectable:Fn,ariaOrientation:null,ariaOwns:fa,ariaPlaceholder:null,ariaPosInSet:Qt,ariaPressed:Fn,ariaReadOnly:Fn,ariaRelevant:null,ariaRequired:Fn,ariaRoleDescription:fa,ariaRowCount:Qt,ariaRowIndex:Qt,ariaRowSpan:Qt,ariaSelected:Fn,ariaSetSize:Qt,ariaSort:null,ariaValueMax:Qt,ariaValueMin:Qt,ariaValueNow:Qt,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function Mj(e,r){return r in e?e[r]:r}function xj(e,r){return Mj(e,r.toLowerCase())}var F8e=Pc({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:gM,acceptCharset:fa,accessKey:fa,action:null,allow:null,allowFullScreen:Xr,allowPaymentRequest:Xr,allowUserMedia:Xr,alpha:Xr,alt:null,as:null,async:Xr,autoCapitalize:null,autoComplete:fa,autoFocus:Xr,autoPlay:Xr,blocking:fa,capture:null,charSet:null,checked:Xr,cite:null,className:fa,closedBy:null,colorSpace:null,cols:Qt,colSpan:Qt,command:null,commandFor:null,content:null,contentEditable:Fn,controls:Xr,controlsList:fa,coords:Qt|gM,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Xr,defer:Xr,dir:null,dirName:null,disabled:Xr,download:gj,draggable:Fn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xr,formTarget:null,headers:fa,height:Qt,hidden:gj,high:Qt,href:null,hrefLang:null,htmlFor:fa,httpEquiv:fa,id:null,imageSizes:null,imageSrcSet:null,inert:Xr,inputMode:null,integrity:null,is:null,isMap:Xr,itemId:null,itemProp:fa,itemRef:fa,itemScope:Xr,itemType:fa,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xr,low:Qt,manifest:null,max:null,maxLength:Qt,media:null,method:null,min:null,minLength:Qt,multiple:Xr,muted:Xr,name:null,nonce:null,noModule:Xr,noValidate:Xr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Xr,optimum:Qt,pattern:null,ping:fa,placeholder:null,playsInline:Xr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Xr,referrerPolicy:null,rel:fa,required:Xr,reversed:Xr,rows:Qt,rowSpan:Qt,sandbox:fa,scope:null,scoped:Xr,seamless:Xr,selected:Xr,shadowRootClonable:Xr,shadowRootCustomElementRegistry:Xr,shadowRootDelegatesFocus:Xr,shadowRootMode:null,shadowRootSerializable:Xr,shape:null,size:Qt,sizes:null,slot:null,span:Qt,spellCheck:Fn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Qt,step:null,style:null,tabIndex:Qt,target:null,title:null,translate:null,type:null,typeMustMatch:Xr,useMap:null,value:Fn,width:Qt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fa,axis:null,background:null,bgColor:null,border:Qt,borderColor:null,bottomMargin:Qt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xr,declare:Xr,event:null,face:null,frame:null,frameBorder:null,hSpace:Qt,leftMargin:Qt,link:null,longDesc:null,lowSrc:null,marginHeight:Qt,marginWidth:Qt,noResize:Xr,noHref:Xr,noShade:Xr,noWrap:Xr,object:null,profile:null,prompt:null,rev:null,rightMargin:Qt,rules:null,scheme:null,scrolling:Fn,standby:null,summary:null,text:null,topMargin:Qt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Qt,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Xr,disablePictureInPicture:Xr,disableRemotePlayback:Xr,exportParts:gM,part:fa,prefix:null,property:null,results:Qt,security:null,unselectable:null},space:"html",transform:xj});var j8e=Pc({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ll,accentHeight:Qt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Qt,amplitude:Qt,arabicForm:null,ascent:Qt,attributeName:null,attributeType:null,azimuth:Qt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Qt,by:null,calcMode:null,capHeight:Qt,className:fa,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Qt,diffuseConstant:Qt,direction:null,display:null,dur:null,divisor:Qt,dominantBaseline:null,download:Xr,dx:null,dy:null,edgeMode:null,editable:null,elevation:Qt,enableBackground:null,end:null,event:null,exponent:Qt,externalResourcesRequired:null,fill:null,fillOpacity:Qt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:gM,g2:gM,glyphName:gM,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Qt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Qt,horizOriginX:Qt,horizOriginY:Qt,id:null,ideographic:Qt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Qt,k:Qt,k1:Qt,k2:Qt,k3:Qt,k4:Qt,kernelMatrix:ll,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Qt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Qt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Qt,overlineThickness:Qt,paintOrder:null,panose1:null,path:null,pathLength:Qt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fa,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Qt,pointsAtY:Qt,pointsAtZ:Qt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ll,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ll,rev:ll,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ll,requiredFeatures:ll,requiredFonts:ll,requiredFormats:ll,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Qt,specularExponent:Qt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Qt,strikethroughThickness:Qt,string:null,stroke:null,strokeDashArray:ll,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Qt,strokeOpacity:Qt,strokeWidth:null,style:null,surfaceScale:Qt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ll,tabIndex:Qt,tableValues:null,target:null,targetX:Qt,targetY:Qt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ll,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Qt,underlineThickness:Qt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Qt,values:null,vAlphabetic:Qt,vMathematical:Qt,vectorEffect:null,vHanging:Qt,vIdeographic:Qt,version:null,vertAdvY:Qt,vertOriginX:Qt,vertOriginY:Qt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Qt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Mj});var MG=Pc({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}});var xG=Pc({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xj});var vG=Pc({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}});var yG={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Dkt=/[A-Z]/g,B8e=/-[a-z]/g,Okt=/^data[-\w.:]+$/i;function _G(e,r){let a=NO(r),i=r,s=hf;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&Okt.test(r)){if(r.charAt(4)==="-"){let l=r.slice(5).replace(B8e,Fkt);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{let l=r.slice(4);if(!B8e.test(l)){let c=l.replace(Dkt,Nkt);if(c.charAt(0)!=="-")c="-"+c;r="data"+c}}s=aP}return new s(i,r)}function Nkt(e){return"-"+e.toLowerCase()}function Fkt(e){return e.charAt(1).toUpperCase()}var U8e=mG([gG,F8e,MG,xG,vG],"html"),vj=mG([gG,j8e,MG,xG,vG],"svg");function Y8e(e){return e.join(" ").trim()}var ixe=H(rxe(),1);var yj=oxe("end"),nP=oxe("start");function oxe(e){return r;function r(a){let i=a&&a.position&&a.position[e]||{};if(typeof i.line==="number"&&i.line>0&&typeof i.column==="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset==="number"&&i.offset>-1?i.offset:void 0}}}function zG(e){let r=nP(e),a=yj(e);if(r&&a)return{start:r,end:a}}function W8(e){if(!e||typeof e!=="object")return"";if("position"in e||"type"in e)return axe(e.position);if("start"in e||"end"in e)return axe(e);if("line"in e||"column"in e)return SG(e);return""}function SG(e){return nxe(e&&e.line)+":"+nxe(e&&e.column)}function axe(e){return SG(e&&e.start)+"-"+SG(e&&e.end)}function nxe(e){return e&&typeof e==="number"?e:1}class Zi extends Error{constructor(e,r,a){super();if(typeof r==="string")a=r,r=void 0;let i="",s={},l=!1;if(r)if("line"in r&&"column"in r)s={place:r};else if("start"in r&&"end"in r)s={place:r};else if("type"in r)s={ancestors:[r],place:r.position};else s={...r};if(typeof e==="string")i=e;else if(!s.cause&&e)l=!0,i=e.message,s.cause=e;if(!s.ruleId&&!s.source&&typeof a==="string"){let d=a.indexOf(":");if(d===-1)s.ruleId=a;else s.source=a.slice(0,d),s.ruleId=a.slice(d+1)}if(!s.place&&s.ancestors&&s.ancestors){let d=s.ancestors[s.ancestors.length-1];if(d)s.place=d.position}let c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=c?c.line:void 0,this.name=W8(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=l&&s.cause&&typeof s.cause.stack==="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Zi.prototype.file="";Zi.prototype.name="";Zi.prototype.reason="";Zi.prototype.message="";Zi.prototype.stack="";Zi.prototype.column=void 0;Zi.prototype.line=void 0;Zi.prototype.ancestors=void 0;Zi.prototype.cause=void 0;Zi.prototype.fatal=void 0;Zi.prototype.place=void 0;Zi.prototype.ruleId=void 0;Zi.prototype.source=void 0;var LG={}.hasOwnProperty,uCt=new Map,dCt=/[A-Z]/g,ZCt=new Set(["table","tbody","thead","tfoot","tr"]),pCt=new Set(["td","th"]),fxe="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function kG(e,r){if(!r||r.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let a=r.filePath||void 0,i;if(r.development){if(typeof r.jsxDEV!=="function")throw TypeError("Expected `jsxDEV` in options when `development: true`");i=_Ct(a,r.jsxDEV)}else{if(typeof r.jsx!=="function")throw TypeError("Expected `jsx` in production options");if(typeof r.jsxs!=="function")throw TypeError("Expected `jsxs` in production options");i=yCt(a,r.jsx,r.jsxs)}let s={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:i,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?vj:U8e,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},l=sxe(s,e,void 0);if(l&&typeof l!=="string")return l;return s.create(e,s.Fragment,{children:l||void 0},void 0)}function sxe(e,r,a){if(r.type==="element")return mCt(e,r,a);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return hCt(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return MCt(e,r,a);if(r.type==="mdxjsEsm")return gCt(e,r);if(r.type==="root")return xCt(e,r,a);if(r.type==="text")return vCt(e,r)}function mCt(e,r,a){let i=e.schema,s=i;if(r.tagName.toLowerCase()==="svg"&&i.space==="html")s=vj,e.schema=s;e.ancestors.push(r);let l=cxe(e,r.tagName,!1),c=bCt(e,r),d=IG(e,r);if(ZCt.has(r.tagName))d=d.filter(function(h){return typeof h==="string"?!pG(h):!0});return lxe(e,c,l,r),CG(c,d),e.ancestors.pop(),e.schema=i,e.create(r,l,c,a)}function hCt(e,r){if(r.data&&r.data.estree&&e.evaluater){let i=r.data.estree.body[0];return Ps(i.type==="ExpressionStatement"),e.evaluater.evaluateExpression(i.expression)}BO(e,r.position)}function gCt(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);BO(e,r.position)}function MCt(e,r,a){let i=e.schema,s=i;if(r.name==="svg"&&i.space==="html")s=vj,e.schema=s;e.ancestors.push(r);let l=r.name===null?e.Fragment:cxe(e,r.name,!0),c=wCt(e,r),d=IG(e,r);return lxe(e,c,l,r),CG(c,d),e.ancestors.pop(),e.schema=i,e.create(r,l,c,a)}function xCt(e,r,a){let i={};return CG(i,IG(e,r)),e.create(r,e.Fragment,i,a)}function vCt(e,r){return r.value}function lxe(e,r,a,i){if(typeof a!=="string"&&a!==e.Fragment&&e.passNode)r.node=i}function CG(e,r){if(r.length>0){let a=r.length>1?r:r[0];if(a)e.children=a}}function yCt(e,r,a){return i;function i(s,l,c,d){let g=Array.isArray(c.children)?a:r;return d?g(l,c,d):g(l,c)}}function _Ct(e,r){return a;function a(i,s,l,c){let d=Array.isArray(l.children),h=nP(i);return r(s,l,c,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function bCt(e,r){let a={},i,s;for(s in r.properties)if(s!=="children"&&LG.call(r.properties,s)){let l=zCt(e,s,r.properties[s]);if(l){let[c,d]=l;if(e.tableCellAlignToStyle&&c==="align"&&typeof d==="string"&&pCt.has(r.tagName))i=d;else a[c]=d}}if(i){let l=a.style||(a.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return a}function wCt(e,r){let a={};for(let i of r.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){let l=i.data.estree.body[0];Ps(l.type==="ExpressionStatement");let c=l.expression;Ps(c.type==="ObjectExpression");let d=c.properties[0];Ps(d.type==="SpreadElement"),Object.assign(a,e.evaluater.evaluateExpression(d.argument))}else BO(e,r.position);else{let s=i.name,l;if(i.value&&typeof i.value==="object")if(i.value.data&&i.value.data.estree&&e.evaluater){let d=i.value.data.estree.body[0];Ps(d.type==="ExpressionStatement"),l=e.evaluater.evaluateExpression(d.expression)}else BO(e,r.position);else l=i.value===null?!0:i.value;a[s]=l}return a}function IG(e,r){let a=[],i=-1,s=e.passKeys?new Map:uCt;while(++i<r.children.length){let l=r.children[i],c;if(e.passKeys){let h=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(h){let g=s.get(h)||0;c=h+"-"+g,s.set(h,g+1)}}let d=sxe(e,l,c);if(d!==void 0)a.push(d)}return a}function zCt(e,r,a){let i=_G(e.schema,r);if(a===null||a===void 0||typeof a==="number"&&Number.isNaN(a))return;if(Array.isArray(a))a=i.commaSeparated?D8e(a):Y8e(a);if(i.property==="style"){let s=typeof a==="object"?a:SCt(e,String(a));if(e.stylePropertyNameCase==="css")s=LCt(s);return["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?yG[i.property]||i.property:i.attribute,a]}function SCt(e,r){try{return ixe.default(r,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};let i=a,s=new Zi("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=fxe+"#cannot-parse-style-attribute",s}}function cxe(e,r,a){let i;if(!a)i={type:"Literal",value:r};else if(r.includes(".")){let s=r.split("."),l=-1,c;while(++l<s.length){let d=hj(s[l])?{type:"Identifier",name:s[l]}:{type:"Literal",value:s[l]};c=c?{type:"MemberExpression",object:c,property:d,computed:Boolean(l&&d.type==="Literal"),optional:!1}:d}Ps(c,"always a result"),i=c}else i=hj(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(i.type==="Literal"){let s=i.value;return LG.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);BO(e)}function BO(e,r){let a=new Zi("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=fxe+"#cannot-handle-mdx-estrees-without-createevaluater",a}function LCt(e){let r={},a;for(a in e)if(LG.call(e,a))r[kCt(a)]=e[a];return r}function kCt(e){let r=e.replace(dCt,CCt);if(r.slice(0,3)==="ms-")r="-"+r;return r}function CCt(e){return"-"+e.toLowerCase()}var UO={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};S();var ICt={};function RG(e,r){let a=r||ICt,i=typeof a.includeImageAlt==="boolean"?a.includeImageAlt:!0,s=typeof a.includeHtml==="boolean"?a.includeHtml:!0;return dxe(e,i,s)}function dxe(e,r,a){if(RCt(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return uxe(e.children,r,a)}if(Array.isArray(e))return uxe(e,r,a);return""}function uxe(e,r,a){let i=[],s=-1;while(++s<e.length)i[s]=dxe(e[s],r,a);return i.join("")}function RCt(e){return Boolean(e&&typeof e==="object")}var Zxe=document.createElement("i");function iP(e){let r="&"+e+";";Zxe.innerHTML=r;let a=Zxe.textContent;if(a.charCodeAt(a.length-1)===59&&e!=="semi")return!1;return a===r?!1:a}function gf(e,r,a,i){let s=e.length,l=0,c;if(r<0)r=-r>s?0:s+r;else r=r>s?s:r;if(a=a>0?a:0,i.length<1e4)c=Array.from(i),c.unshift(r,a),e.splice(...c);else{if(a)e.splice(r,a);while(l<i.length)c=i.slice(l,l+1e4),c.unshift(r,0),e.splice(...c),l+=1e4,r+=1e4}}function Ts(e,r){if(e.length>0)return gf(e,e.length,0,r),e;return r}var pxe={}.hasOwnProperty;function mxe(e){let r={},a=-1;while(++a<e.length)PCt(r,e[a]);return r}function PCt(e,r){let a;for(a in r){let s=(pxe.call(e,a)?e[a]:void 0)||(e[a]={}),l=r[a],c;if(l)for(c in l){if(!pxe.call(s,c))s[c]=[];let d=l[c];TCt(s[c],Array.isArray(d)?d:d?[d]:[])}}}function TCt(e,r){let a=-1,i=[];while(++a<r.length)(r[a].add==="after"?e:i).push(r[a]);gf(e,0,0,i)}function _j(e,r){let a=Number.parseInt(e,r);if(a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111)return"�";return String.fromCodePoint(a)}function MM(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var oc=G8(/[A-Za-z]/),qi=G8(/[\dA-Za-z]/),hxe=G8(/[#-'*+\--9=?A-Z^-~]/);function YO(e){return e!==null&&(e<32||e===127)}var qO=G8(/\d/),gxe=G8(/[\dA-Fa-f]/),Mxe=G8(/[!-/:-@[-`{-~]/);function kr(e){return e!==null&&e<-2}function oi(e){return e!==null&&(e<0||e===32)}function Jr(e){return e===-2||e===-1||e===32}var xxe=G8(/\p{P}|\p{S}/u),vxe=G8(/\s/);function G8(e){return r;function r(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Tc(e){let r=[],a=-1,i=0,s=0;while(++a<e.length){let l=e.charCodeAt(a),c="";if(l===37&&qi(e.charCodeAt(a+1))&&qi(e.charCodeAt(a+2)))s=2;else if(l<128){if(!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l)))c=String.fromCharCode(l)}else if(l>55295&&l<57344){let d=e.charCodeAt(a+1);if(l<56320&&d>56319&&d<57344)c=String.fromCharCode(l,d),s=1;else c="�"}else c=String.fromCharCode(l);if(c)r.push(e.slice(i,a),encodeURIComponent(c)),i=a+s+1,c="";if(s)a+=s,s=0}return r.join("")+e.slice(i)}function fo(e,r,a,i){let s=i?i-1:Number.POSITIVE_INFINITY,l=0;return c;function c(h){if(Jr(h))return e.enter(a),d(h);return r(h)}function d(h){if(Jr(h)&&l++<s)return e.consume(h),d;return e.exit(a),r(h)}}var yxe={tokenize:ACt};function ACt(e){let r=e.attempt(this.parser.constructs.contentInitial,i,s),a;return r;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),fo(e,r,"linePrefix")}function s(d){return e.enter("paragraph"),l(d)}function l(d){let h=e.enter("chunkText",{contentType:"text",previous:a});if(a)a.next=h;return a=h,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}if(kr(d))return e.consume(d),e.exit("chunkText"),l;return e.consume(d),c}}var bxe={tokenize:ECt},_xe={tokenize:DCt};function ECt(e){let r=this,a=[],i=0,s,l,c;return d;function d(G){if(i<a.length){let X=a[i];return r.containerState=X[1],e.attempt(X[0].continuation,h,g)(G)}return g(G)}function h(G){if(i++,r.containerState._closeFlow){if(r.containerState._closeFlow=void 0,s)j();let X=r.events.length,J=X,ee;while(J--)if(r.events[J][0]==="exit"&&r.events[J][1].type==="chunkFlow"){ee=r.events[J][1].end;break}N(i);let re=X;while(re<r.events.length)r.events[re][1].end={...ee},re++;return gf(r.events,J+1,0,r.events.slice(X)),r.events.length=re,g(G)}return d(G)}function g(G){if(i===a.length){if(!s)return b(G);if(s.currentConstruct&&s.currentConstruct.concrete)return k(G);r.interrupt=Boolean(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(_xe,x,v)(G)}function x(G){if(s)j();return N(i),b(G)}function v(G){return r.parser.lazy[r.now().line]=i!==a.length,c=r.now().offset,k(G)}function b(G){return r.containerState={},e.attempt(_xe,y,k)(G)}function y(G){return i++,a.push([r.currentConstruct,r.containerState]),b(G)}function k(G){if(G===null){if(s)j();N(0),e.consume(G);return}return s=s||r.parser.flow(r.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:l}),T(G)}function T(G){if(G===null){U(e.exit("chunkFlow"),!0),N(0),e.consume(G);return}if(kr(G))return e.consume(G),U(e.exit("chunkFlow")),i=0,r.interrupt=void 0,d;return e.consume(G),T}function U(G,X){let J=r.sliceStream(G);if(X)J.push(null);if(G.previous=l,l)l.next=G;if(l=G,s.defineSkip(G.start),s.write(J),r.parser.lazy[G.start.line]){let ee=s.events.length;while(ee--)if(s.events[ee][1].start.offset<c&&(!s.events[ee][1].end||s.events[ee][1].end.offset>c))return;let re=r.events.length,oe=re,fe,be;while(oe--)if(r.events[oe][0]==="exit"&&r.events[oe][1].type==="chunkFlow"){if(fe){be=r.events[oe][1].end;break}fe=!0}N(i),ee=re;while(ee<r.events.length)r.events[ee][1].end={...be},ee++;gf(r.events,oe+1,0,r.events.slice(re)),r.events.length=ee}}function N(G){let X=a.length;while(X-- >G){let J=a[X];r.containerState=J[1],J[0].exit.call(r,e)}a.length=G}function j(){s.write([null]),l=void 0,s=void 0,r.containerState._closeFlow=void 0}}function DCt(e,r,a){return fo(e,e.attempt(this.parser.constructs.document,r,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function PG(e){if(e===null||oi(e)||vxe(e))return 1;if(xxe(e))return 2}function fP(e,r,a){let i=[],s=-1;while(++s<e.length){let l=e[s].resolveAll;if(l&&!i.includes(l))r=l(r,a),i.push(l)}return r}var HO={name:"attention",resolveAll:OCt,tokenize:NCt};function OCt(e,r){let a=-1,i,s,l,c,d,h,g,x;while(++a<e.length)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){i=a;while(i--)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&r.sliceSerialize(e[i][1]).charCodeAt(0)===r.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[i][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;let v={...e[i][1].end},b={...e[a][1].start};if(wxe(v,-h),wxe(b,h),c={type:h>1?"strongSequence":"emphasisSequence",start:v,end:{...e[i][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:b},l={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[a][1].start}},s={type:h>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[i][1].end={...c.start},e[a][1].start={...d.end},g=[],e[i][1].end.offset-e[i][1].start.offset)g=Ts(g,[["enter",e[i][1],r],["exit",e[i][1],r]]);if(g=Ts(g,[["enter",s,r],["enter",c,r],["exit",c,r],["enter",l,r]]),g=Ts(g,fP(r.parser.constructs.insideSpan.null,e.slice(i+1,a),r)),g=Ts(g,[["exit",l,r],["enter",d,r],["exit",d,r],["exit",s,r]]),e[a][1].end.offset-e[a][1].start.offset)x=2,g=Ts(g,[["enter",e[a][1],r],["exit",e[a][1],r]]);else x=0;gf(e,i-1,a-i+3,g),a=i+g.length-x-2;break}}a=-1;while(++a<e.length)if(e[a][1].type==="attentionSequence")e[a][1].type="data";return e}function NCt(e,r){let a=this.parser.constructs.attentionMarkers.null,i=this.previous,s=PG(i),l;return c;function c(h){return l=h,e.enter("attentionSequence"),d(h)}function d(h){if(h===l)return e.consume(h),d;let g=e.exit("attentionSequence"),x=PG(h),v=!x||x===2&&s||a.includes(h),b=!s||s===2&&x||a.includes(i);return g._open=Boolean(l===42?v:v&&(s||!b)),g._close=Boolean(l===42?b:b&&(x||!v)),r(h)}}function wxe(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}var TG={name:"autolink",tokenize:FCt};function FCt(e,r,a){let i=0;return s;function s(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(y){if(oc(y))return e.consume(y),c;if(y===64)return a(y);return g(y)}function c(y){if(y===43||y===45||y===46||qi(y))return i=1,d(y);return g(y)}function d(y){if(y===58)return e.consume(y),i=0,h;if((y===43||y===45||y===46||qi(y))&&i++<32)return e.consume(y),d;return i=0,g(y)}function h(y){if(y===62)return e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),r;if(y===null||y===32||y===60||YO(y))return a(y);return e.consume(y),h}function g(y){if(y===64)return e.consume(y),x;if(hxe(y))return e.consume(y),g;return a(y)}function x(y){return qi(y)?v(y):a(y)}function v(y){if(y===46)return e.consume(y),i=0,x;if(y===62)return e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),r;return b(y)}function b(y){if((y===45||qi(y))&&i++<63){let k=y===45?b:v;return e.consume(y),k}return a(y)}}var K8={partial:!0,tokenize:jCt};function jCt(e,r,a){return i;function i(l){return Jr(l)?fo(e,s,"linePrefix")(l):s(l)}function s(l){return l===null||kr(l)?r(l):a(l)}}var bj={continuation:{tokenize:UCt},exit:YCt,name:"blockQuote",tokenize:BCt};function BCt(e,r,a){let i=this;return s;function s(c){if(c===62){let d=i.containerState;if(!d.open)e.enter("blockQuote",{_container:!0}),d.open=!0;return e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),l}return a(c)}function l(c){if(Jr(c))return e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r;return e.exit("blockQuotePrefix"),r(c)}}function UCt(e,r,a){let i=this;return s;function s(c){if(Jr(c))return fo(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c);return l(c)}function l(c){return e.attempt(bj,r,a)(c)}}function YCt(e){e.exit("blockQuote")}var wj={name:"characterEscape",tokenize:qCt};function qCt(e,r,a){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),s}function s(l){if(Mxe(l))return e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),r;return a(l)}}var zj={name:"characterReference",tokenize:HCt};function HCt(e,r,a){let i=this,s=0,l,c;return d;function d(v){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(v),e.exit("characterReferenceMarker"),h}function h(v){if(v===35)return e.enter("characterReferenceMarkerNumeric"),e.consume(v),e.exit("characterReferenceMarkerNumeric"),g;return e.enter("characterReferenceValue"),l=31,c=qi,x(v)}function g(v){if(v===88||v===120)return e.enter("characterReferenceMarkerHexadecimal"),e.consume(v),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,c=gxe,x;return e.enter("characterReferenceValue"),l=7,c=qO,x(v)}function x(v){if(v===59&&s){let b=e.exit("characterReferenceValue");if(c===qi&&!iP(i.sliceSerialize(b)))return a(v);return e.enter("characterReferenceMarker"),e.consume(v),e.exit("characterReferenceMarker"),e.exit("characterReference"),r}if(c(v)&&s++<l)return e.consume(v),x;return a(v)}}var zxe={partial:!0,tokenize:WCt},Sj={concrete:!0,name:"codeFenced",tokenize:VCt};function VCt(e,r,a){let i=this,s={partial:!0,tokenize:J},l=0,c=0,d;return h;function h(ee){return g(ee)}function g(ee){let re=i.events[i.events.length-1];return l=re&&re[1].type==="linePrefix"?re[2].sliceSerialize(re[1],!0).length:0,d=ee,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),x(ee)}function x(ee){if(ee===d)return c++,e.consume(ee),x;if(c<3)return a(ee);return e.exit("codeFencedFenceSequence"),Jr(ee)?fo(e,v,"whitespace")(ee):v(ee)}function v(ee){if(ee===null||kr(ee))return e.exit("codeFencedFence"),i.interrupt?r(ee):e.check(zxe,T,X)(ee);return e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(ee)}function b(ee){if(ee===null||kr(ee))return e.exit("chunkString"),e.exit("codeFencedFenceInfo"),v(ee);if(Jr(ee))return e.exit("chunkString"),e.exit("codeFencedFenceInfo"),fo(e,y,"whitespace")(ee);if(ee===96&&ee===d)return a(ee);return e.consume(ee),b}function y(ee){if(ee===null||kr(ee))return v(ee);return e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),k(ee)}function k(ee){if(ee===null||kr(ee))return e.exit("chunkString"),e.exit("codeFencedFenceMeta"),v(ee);if(ee===96&&ee===d)return a(ee);return e.consume(ee),k}function T(ee){return e.attempt(s,X,U)(ee)}function U(ee){return e.enter("lineEnding"),e.consume(ee),e.exit("lineEnding"),N}function N(ee){return l>0&&Jr(ee)?fo(e,j,"linePrefix",l+1)(ee):j(ee)}function j(ee){if(ee===null||kr(ee))return e.check(zxe,T,X)(ee);return e.enter("codeFlowValue"),G(ee)}function G(ee){if(ee===null||kr(ee))return e.exit("codeFlowValue"),j(ee);return e.consume(ee),G}function X(ee){return e.exit("codeFenced"),r(ee)}function J(ee,re,oe){let fe=0;return be;function be(ft){return ee.enter("lineEnding"),ee.consume(ft),ee.exit("lineEnding"),We}function We(ft){return ee.enter("codeFencedFence"),Jr(ft)?fo(ee,Ye,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ft):Ye(ft)}function Ye(ft){if(ft===d)return ee.enter("codeFencedFenceSequence"),Se(ft);return oe(ft)}function Se(ft){if(ft===d)return fe++,ee.consume(ft),Se;if(fe>=c)return ee.exit("codeFencedFenceSequence"),Jr(ft)?fo(ee,He,"whitespace")(ft):He(ft);return oe(ft)}function He(ft){if(ft===null||kr(ft))return ee.exit("codeFencedFence"),re(ft);return oe(ft)}}}function WCt(e,r,a){let i=this;return s;function s(c){if(c===null)return a(c);return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l}function l(c){return i.parser.lazy[i.now().line]?a(c):r(c)}}var VO={name:"codeIndented",tokenize:KCt},GCt={partial:!0,tokenize:XCt};function KCt(e,r,a){let i=this;return s;function s(g){return e.enter("codeIndented"),fo(e,l,"linePrefix",5)(g)}function l(g){let x=i.events[i.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?c(g):a(g)}function c(g){if(g===null)return h(g);if(kr(g))return e.attempt(GCt,c,h)(g);return e.enter("codeFlowValue"),d(g)}function d(g){if(g===null||kr(g))return e.exit("codeFlowValue"),c(g);return e.consume(g),d}function h(g){return e.exit("codeIndented"),r(g)}}function XCt(e,r,a){let i=this;return s;function s(c){if(i.parser.lazy[i.now().line])return a(c);if(kr(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s;return fo(e,l,"linePrefix",5)(c)}function l(c){let d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(c):kr(c)?s(c):a(c)}}var AG={name:"codeText",previous:JCt,resolve:QCt,tokenize:$Ct};function QCt(e){let r=e.length-4,a=3,i,s;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){i=a;while(++i<r)if(e[i][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}}i=a-1,r++;while(++i<=r)if(s===void 0){if(i!==r&&e[i][1].type!=="lineEnding")s=i}else if(i===r||e[i][1].type==="lineEnding"){if(e[s][1].type="codeTextData",i!==s+2)e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),r-=i-s-2,i=s+2;s=void 0}return e}function JCt(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function $Ct(e,r,a){let i=this,s=0,l,c;return d;function d(b){return e.enter("codeText"),e.enter("codeTextSequence"),h(b)}function h(b){if(b===96)return e.consume(b),s++,h;return e.exit("codeTextSequence"),g(b)}function g(b){if(b===null)return a(b);if(b===32)return e.enter("space"),e.consume(b),e.exit("space"),g;if(b===96)return c=e.enter("codeTextSequence"),l=0,v(b);if(kr(b))return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),g;return e.enter("codeTextData"),x(b)}function x(b){if(b===null||b===32||b===96||kr(b))return e.exit("codeTextData"),g(b);return e.consume(b),x}function v(b){if(b===96)return e.consume(b),l++,v;if(l===s)return e.exit("codeTextSequence"),e.exit("codeText"),r(b);return c.type="codeTextData",x(b)}}class EG{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");if(e<this.left.length)return this.left[e];return this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,r){let a=r===null||r===void 0?Number.POSITIVE_INFINITY:r;if(a<this.left.length)return this.left.slice(e,a);if(e>this.left.length)return this.right.slice(this.right.length-a+this.left.length,this.right.length-e+this.left.length).reverse();return this.left.slice(e).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(e,r,a){let i=r||0;this.setCursor(Math.trunc(e));let s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);if(a)WO(this.left,a);return s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),WO(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),WO(this.right,e.reverse())}setCursor(e){if(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)return;if(e<this.left.length){let r=this.left.splice(e,Number.POSITIVE_INFINITY);WO(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);WO(this.left,r.reverse())}}}function WO(e,r){let a=0;if(r.length<1e4)e.push(...r);else while(a<r.length)e.push(...r.slice(a,a+1e4)),a+=1e4}function Lj(e){let r={},a=-1,i,s,l,c,d,h,g,x=new EG(e);while(++a<x.length){while(a in r)a=r[a];if(i=x.get(a),a&&i[1].type==="chunkFlow"&&x.get(a-1)[1].type==="listItemPrefix"){if(h=i[1]._tokenizer.events,l=0,l<h.length&&h[l][1].type==="lineEndingBlank")l+=2;if(l<h.length&&h[l][1].type==="content")while(++l<h.length){if(h[l][1].type==="content")break;if(h[l][1].type==="chunkText")h[l][1]._isInFirstContentOfListItem=!0,l++}}if(i[0]==="enter"){if(i[1].contentType)Object.assign(r,eIt(x,a)),a=r[a],g=!0}else if(i[1]._container){l=a,s=void 0;while(l--)if(c=x.get(l),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank"){if(c[0]==="enter"){if(s)x.get(s)[1].type="lineEndingBlank";c[1].type="lineEnding",s=l}}else if(c[1].type==="linePrefix"||c[1].type==="listItemIndent");else break;if(s)i[1].end={...x.get(s)[1].start},d=x.slice(s,a),d.unshift(i),x.splice(s,a-s+1,d)}}return gf(e,0,Number.POSITIVE_INFINITY,x.slice(0)),!g}function eIt(e,r){let a=e.get(r)[1],i=e.get(r)[2],s=r-1,l=[],c=a._tokenizer;if(!c){if(c=i.parser[a.contentType](a.start),a._contentTypeTextTrailing)c._contentTypeTextTrailing=!0}let d=c.events,h=[],g={},x,v,b=-1,y=a,k=0,T=0,U=[T];while(y){while(e.get(++s)[1]!==y);if(l.push(s),!y._tokenizer){if(x=i.sliceStream(y),!y.next)x.push(null);if(v)c.defineSkip(y.start);if(y._isInFirstContentOfListItem)c._gfmTasklistFirstContentOfListItem=!0;if(c.write(x),y._isInFirstContentOfListItem)c._gfmTasklistFirstContentOfListItem=void 0}v=y,y=y.next}y=a;while(++b<d.length)if(d[b][0]==="exit"&&d[b-1][0]==="enter"&&d[b][1].type===d[b-1][1].type&&d[b][1].start.line!==d[b][1].end.line)T=b+1,U.push(T),y._tokenizer=void 0,y.previous=void 0,y=y.next;if(c.events=[],y)y._tokenizer=void 0,y.previous=void 0;else U.pop();b=U.length;while(b--){let N=d.slice(U[b],U[b+1]),j=l.pop();h.push([j,j+N.length-1]),e.splice(j,2,N)}h.reverse(),b=-1;while(++b<h.length)g[k+h[b][0]]=k+h[b][1],k+=h[b][1]-h[b][0]-1;return g}var DG={resolve:rIt,tokenize:oIt},tIt={partial:!0,tokenize:aIt};function rIt(e){return Lj(e),e}function oIt(e,r){let a;return i;function i(d){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){if(d===null)return l(d);if(kr(d))return e.check(tIt,c,l)(d);return e.consume(d),s}function l(d){return e.exit("chunkContent"),e.exit("content"),r(d)}function c(d){return e.consume(d),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,s}}function aIt(e,r,a){let i=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),fo(e,l,"linePrefix")}function l(c){if(c===null||kr(c))return a(c);let d=i.events[i.events.length-1];if(!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4)return r(c);return e.interrupt(i.parser.constructs.flow,a,r)(c)}}function kj(e,r,a,i,s,l,c,d,h){let g=h||Number.POSITIVE_INFINITY,x=0;return v;function v(N){if(N===60)return e.enter(i),e.enter(s),e.enter(l),e.consume(N),e.exit(l),b;if(N===null||N===32||N===41||YO(N))return a(N);return e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),T(N)}function b(N){if(N===62)return e.enter(l),e.consume(N),e.exit(l),e.exit(s),e.exit(i),r;return e.enter(d),e.enter("chunkString",{contentType:"string"}),y(N)}function y(N){if(N===62)return e.exit("chunkString"),e.exit(d),b(N);if(N===null||N===60||kr(N))return a(N);return e.consume(N),N===92?k:y}function k(N){if(N===60||N===62||N===92)return e.consume(N),y;return y(N)}function T(N){if(!x&&(N===null||N===41||oi(N)))return e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),r(N);if(x<g&&N===40)return e.consume(N),x++,T;if(N===41)return e.consume(N),x--,T;if(N===null||N===32||N===40||YO(N))return a(N);return e.consume(N),N===92?U:T}function U(N){if(N===40||N===41||N===92)return e.consume(N),T;return T(N)}}function Cj(e,r,a,i,s,l){let c=this,d=0,h;return g;function g(y){return e.enter(i),e.enter(s),e.consume(y),e.exit(s),e.enter(l),x}function x(y){if(d>999||y===null||y===91||y===93&&!h||y===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs)return a(y);if(y===93)return e.exit(l),e.enter(s),e.consume(y),e.exit(s),e.exit(i),r;if(kr(y))return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),x;return e.enter("chunkString",{contentType:"string"}),v(y)}function v(y){if(y===null||y===91||y===93||kr(y)||d++>999)return e.exit("chunkString"),x(y);if(e.consume(y),!h)h=!Jr(y);return y===92?b:v}function b(y){if(y===91||y===92||y===93)return e.consume(y),d++,v;return v(y)}}function Ij(e,r,a,i,s,l){let c;return d;function d(b){if(b===34||b===39||b===40)return e.enter(i),e.enter(s),e.consume(b),e.exit(s),c=b===40?41:b,h;return a(b)}function h(b){if(b===c)return e.enter(s),e.consume(b),e.exit(s),e.exit(i),r;return e.enter(l),g(b)}function g(b){if(b===c)return e.exit(l),h(c);if(b===null)return a(b);if(kr(b))return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),fo(e,g,"linePrefix");return e.enter("chunkString",{contentType:"string"}),x(b)}function x(b){if(b===c||b===null||kr(b))return e.exit("chunkString"),g(b);return e.consume(b),b===92?v:x}function v(b){if(b===c||b===92)return e.consume(b),x;return x(b)}}function PL(e,r){let a;return i;function i(s){if(kr(s))return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a=!0,i;if(Jr(s))return fo(e,i,a?"linePrefix":"lineSuffix")(s);return r(s)}}var OG={name:"definition",tokenize:iIt},nIt={partial:!0,tokenize:fIt};function iIt(e,r,a){let i=this,s;return l;function l(y){return e.enter("definition"),c(y)}function c(y){return Cj.call(i,e,d,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function d(y){if(s=MM(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),y===58)return e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),h;return a(y)}function h(y){return oi(y)?PL(e,g)(y):g(y)}function g(y){return kj(e,x,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function x(y){return e.attempt(nIt,v,v)(y)}function v(y){return Jr(y)?fo(e,b,"whitespace")(y):b(y)}function b(y){if(y===null||kr(y))return e.exit("definition"),i.parser.defined.push(s),r(y);return a(y)}}function fIt(e,r,a){return i;function i(d){return oi(d)?PL(e,s)(d):a(d)}function s(d){return Ij(e,l,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function l(d){return Jr(d)?fo(e,c,"whitespace")(d):c(d)}function c(d){return d===null||kr(d)?r(d):a(d)}}var NG={name:"hardBreakEscape",tokenize:sIt};function sIt(e,r,a){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){if(kr(l))return e.exit("hardBreakEscape"),r(l);return a(l)}}var FG={name:"headingAtx",resolve:lIt,tokenize:cIt};function lIt(e,r){let a=e.length-2,i=3,s,l;if(e[i][1].type==="whitespace")i+=2;if(a-2>i&&e[a][1].type==="whitespace")a-=2;if(e[a][1].type==="atxHeadingSequence"&&(i===a-1||a-4>i&&e[a-2][1].type==="whitespace"))a-=i+1===a?2:4;if(a>i)s={type:"atxHeadingText",start:e[i][1].start,end:e[a][1].end},l={type:"chunkText",start:e[i][1].start,end:e[a][1].end,contentType:"text"},gf(e,i,a-i+1,[["enter",s,r],["enter",l,r],["exit",l,r],["exit",s,r]]);return e}function cIt(e,r,a){let i=0;return s;function s(x){return e.enter("atxHeading"),l(x)}function l(x){return e.enter("atxHeadingSequence"),c(x)}function c(x){if(x===35&&i++<6)return e.consume(x),c;if(x===null||oi(x))return e.exit("atxHeadingSequence"),d(x);return a(x)}function d(x){if(x===35)return e.enter("atxHeadingSequence"),h(x);if(x===null||kr(x))return e.exit("atxHeading"),r(x);if(Jr(x))return fo(e,d,"whitespace")(x);return e.enter("atxHeadingText"),g(x)}function h(x){if(x===35)return e.consume(x),h;return e.exit("atxHeadingSequence"),d(x)}function g(x){if(x===null||x===35||oi(x))return e.exit("atxHeadingText"),d(x);return e.consume(x),g}}var Sxe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],jG=["pre","script","style","textarea"];var BG={concrete:!0,name:"htmlFlow",resolveTo:ZIt,tokenize:pIt},uIt={partial:!0,tokenize:hIt},dIt={partial:!0,tokenize:mIt};function ZIt(e){let r=e.length;while(r--)if(e[r][0]==="enter"&&e[r][1].type==="htmlFlow")break;if(r>1&&e[r-2][1].type==="linePrefix")e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2);return e}function pIt(e,r,a){let i=this,s,l,c,d,h;return g;function g(Fe){return x(Fe)}function x(Fe){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(Fe),v}function v(Fe){if(Fe===33)return e.consume(Fe),b;if(Fe===47)return e.consume(Fe),l=!0,T;if(Fe===63)return e.consume(Fe),s=3,i.interrupt?r:ie;if(oc(Fe))return e.consume(Fe),c=String.fromCharCode(Fe),U;return a(Fe)}function b(Fe){if(Fe===45)return e.consume(Fe),s=2,y;if(Fe===91)return e.consume(Fe),s=5,d=0,k;if(oc(Fe))return e.consume(Fe),s=4,i.interrupt?r:ie;return a(Fe)}function y(Fe){if(Fe===45)return e.consume(Fe),i.interrupt?r:ie;return a(Fe)}function k(Fe){if(Fe==="CDATA[".charCodeAt(d++)){if(e.consume(Fe),d===6)return i.interrupt?r:Ye;return k}return a(Fe)}function T(Fe){if(oc(Fe))return e.consume(Fe),c=String.fromCharCode(Fe),U;return a(Fe)}function U(Fe){if(Fe===null||Fe===47||Fe===62||oi(Fe)){let nr=Fe===47,fr=c.toLowerCase();if(!nr&&!l&&jG.includes(fr))return s=1,i.interrupt?r(Fe):Ye(Fe);if(Sxe.includes(c.toLowerCase())){if(s=6,nr)return e.consume(Fe),N;return i.interrupt?r(Fe):Ye(Fe)}return s=7,i.interrupt&&!i.parser.lazy[i.now().line]?a(Fe):l?j(Fe):G(Fe)}if(Fe===45||qi(Fe))return e.consume(Fe),c+=String.fromCharCode(Fe),U;return a(Fe)}function N(Fe){if(Fe===62)return e.consume(Fe),i.interrupt?r:Ye;return a(Fe)}function j(Fe){if(Jr(Fe))return e.consume(Fe),j;return be(Fe)}function G(Fe){if(Fe===47)return e.consume(Fe),be;if(Fe===58||Fe===95||oc(Fe))return e.consume(Fe),X;if(Jr(Fe))return e.consume(Fe),G;return be(Fe)}function X(Fe){if(Fe===45||Fe===46||Fe===58||Fe===95||qi(Fe))return e.consume(Fe),X;return J(Fe)}function J(Fe){if(Fe===61)return e.consume(Fe),ee;if(Jr(Fe))return e.consume(Fe),J;return G(Fe)}function ee(Fe){if(Fe===null||Fe===60||Fe===61||Fe===62||Fe===96)return a(Fe);if(Fe===34||Fe===39)return e.consume(Fe),h=Fe,re;if(Jr(Fe))return e.consume(Fe),ee;return oe(Fe)}function re(Fe){if(Fe===h)return e.consume(Fe),h=null,fe;if(Fe===null||kr(Fe))return a(Fe);return e.consume(Fe),re}function oe(Fe){if(Fe===null||Fe===34||Fe===39||Fe===47||Fe===60||Fe===61||Fe===62||Fe===96||oi(Fe))return J(Fe);return e.consume(Fe),oe}function fe(Fe){if(Fe===47||Fe===62||Jr(Fe))return G(Fe);return a(Fe)}function be(Fe){if(Fe===62)return e.consume(Fe),We;return a(Fe)}function We(Fe){if(Fe===null||kr(Fe))return Ye(Fe);if(Jr(Fe))return e.consume(Fe),We;return a(Fe)}function Ye(Fe){if(Fe===45&&s===2)return e.consume(Fe),Je;if(Fe===60&&s===1)return e.consume(Fe),xt;if(Fe===62&&s===4)return e.consume(Fe),bt;if(Fe===63&&s===3)return e.consume(Fe),ie;if(Fe===93&&s===5)return e.consume(Fe),Bt;if(kr(Fe)&&(s===6||s===7))return e.exit("htmlFlowData"),e.check(uIt,Wt,Se)(Fe);if(Fe===null||kr(Fe))return e.exit("htmlFlowData"),Se(Fe);return e.consume(Fe),Ye}function Se(Fe){return e.check(dIt,He,Wt)(Fe)}function He(Fe){return e.enter("lineEnding"),e.consume(Fe),e.exit("lineEnding"),ft}function ft(Fe){if(Fe===null||kr(Fe))return Se(Fe);return e.enter("htmlFlowData"),Ye(Fe)}function Je(Fe){if(Fe===45)return e.consume(Fe),ie;return Ye(Fe)}function xt(Fe){if(Fe===47)return e.consume(Fe),c="",Ft;return Ye(Fe)}function Ft(Fe){if(Fe===62){let nr=c.toLowerCase();if(jG.includes(nr))return e.consume(Fe),bt;return Ye(Fe)}if(oc(Fe)&&c.length<8)return e.consume(Fe),c+=String.fromCharCode(Fe),Ft;return Ye(Fe)}function Bt(Fe){if(Fe===93)return e.consume(Fe),ie;return Ye(Fe)}function ie(Fe){if(Fe===62)return e.consume(Fe),bt;if(Fe===45&&s===2)return e.consume(Fe),ie;return Ye(Fe)}function bt(Fe){if(Fe===null||kr(Fe))return e.exit("htmlFlowData"),Wt(Fe);return e.consume(Fe),bt}function Wt(Fe){return e.exit("htmlFlow"),r(Fe)}}function mIt(e,r,a){let i=this;return s;function s(c){if(kr(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l;return a(c)}function l(c){return i.parser.lazy[i.now().line]?a(c):r(c)}}function hIt(e,r,a){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(K8,r,a)}}var UG={name:"htmlText",tokenize:gIt};function gIt(e,r,a){let i=this,s,l,c;return d;function d(ie){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(ie),h}function h(ie){if(ie===33)return e.consume(ie),g;if(ie===47)return e.consume(ie),J;if(ie===63)return e.consume(ie),G;if(oc(ie))return e.consume(ie),oe;return a(ie)}function g(ie){if(ie===45)return e.consume(ie),x;if(ie===91)return e.consume(ie),l=0,k;if(oc(ie))return e.consume(ie),j;return a(ie)}function x(ie){if(ie===45)return e.consume(ie),y;return a(ie)}function v(ie){if(ie===null)return a(ie);if(ie===45)return e.consume(ie),b;if(kr(ie))return c=v,xt(ie);return e.consume(ie),v}function b(ie){if(ie===45)return e.consume(ie),y;return v(ie)}function y(ie){return ie===62?Je(ie):ie===45?b(ie):v(ie)}function k(ie){if(ie==="CDATA[".charCodeAt(l++))return e.consume(ie),l===6?T:k;return a(ie)}function T(ie){if(ie===null)return a(ie);if(ie===93)return e.consume(ie),U;if(kr(ie))return c=T,xt(ie);return e.consume(ie),T}function U(ie){if(ie===93)return e.consume(ie),N;return T(ie)}function N(ie){if(ie===62)return Je(ie);if(ie===93)return e.consume(ie),N;return T(ie)}function j(ie){if(ie===null||ie===62)return Je(ie);if(kr(ie))return c=j,xt(ie);return e.consume(ie),j}function G(ie){if(ie===null)return a(ie);if(ie===63)return e.consume(ie),X;if(kr(ie))return c=G,xt(ie);return e.consume(ie),G}function X(ie){return ie===62?Je(ie):G(ie)}function J(ie){if(oc(ie))return e.consume(ie),ee;return a(ie)}function ee(ie){if(ie===45||qi(ie))return e.consume(ie),ee;return re(ie)}function re(ie){if(kr(ie))return c=re,xt(ie);if(Jr(ie))return e.consume(ie),re;return Je(ie)}function oe(ie){if(ie===45||qi(ie))return e.consume(ie),oe;if(ie===47||ie===62||oi(ie))return fe(ie);return a(ie)}function fe(ie){if(ie===47)return e.consume(ie),Je;if(ie===58||ie===95||oc(ie))return e.consume(ie),be;if(kr(ie))return c=fe,xt(ie);if(Jr(ie))return e.consume(ie),fe;return Je(ie)}function be(ie){if(ie===45||ie===46||ie===58||ie===95||qi(ie))return e.consume(ie),be;return We(ie)}function We(ie){if(ie===61)return e.consume(ie),Ye;if(kr(ie))return c=We,xt(ie);if(Jr(ie))return e.consume(ie),We;return fe(ie)}function Ye(ie){if(ie===null||ie===60||ie===61||ie===62||ie===96)return a(ie);if(ie===34||ie===39)return e.consume(ie),s=ie,Se;if(kr(ie))return c=Ye,xt(ie);if(Jr(ie))return e.consume(ie),Ye;return e.consume(ie),He}function Se(ie){if(ie===s)return e.consume(ie),s=void 0,ft;if(ie===null)return a(ie);if(kr(ie))return c=Se,xt(ie);return e.consume(ie),Se}function He(ie){if(ie===null||ie===34||ie===39||ie===60||ie===61||ie===96)return a(ie);if(ie===47||ie===62||oi(ie))return fe(ie);return e.consume(ie),He}function ft(ie){if(ie===47||ie===62||oi(ie))return fe(ie);return a(ie)}function Je(ie){if(ie===62)return e.consume(ie),e.exit("htmlTextData"),e.exit("htmlText"),r;return a(ie)}function xt(ie){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(ie),e.exit("lineEnding"),Ft}function Ft(ie){return Jr(ie)?fo(e,Bt,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ie):Bt(ie)}function Bt(ie){return e.enter("htmlTextData"),c(ie)}}var TL={name:"labelEnd",resolveAll:yIt,resolveTo:_It,tokenize:bIt},MIt={tokenize:wIt},xIt={tokenize:zIt},vIt={tokenize:SIt};function yIt(e){let r=-1,a=[];while(++r<e.length){let i=e[r][1];if(a.push(e[r]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){let s=i.type==="labelImage"?4:2;i.type="data",r+=s}}if(e.length!==a.length)gf(e,0,e.length,a);return e}function _It(e,r){let a=e.length,i=0,s,l,c,d;while(a--)if(s=e[a][1],l){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;if(e[a][0]==="enter"&&s.type==="labelLink")s._inactive=!0}else if(c){if(e[a][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced){if(l=a,s.type!=="labelLink"){i=2;break}}}else if(s.type==="labelEnd")c=a;let h={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},g={type:"label",start:{...e[l][1].start},end:{...e[c][1].end}},x={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",h,r],["enter",g,r]],d=Ts(d,e.slice(l+1,l+i+3)),d=Ts(d,[["enter",x,r]]),d=Ts(d,fP(r.parser.constructs.insideSpan.null,e.slice(l+i+4,c-3),r)),d=Ts(d,[["exit",x,r],e[c-2],e[c-1],["exit",g,r]]),d=Ts(d,e.slice(c+1)),d=Ts(d,[["exit",h,r]]),gf(e,l,e.length,d),e}function bIt(e,r,a){let i=this,s=i.events.length,l,c;while(s--)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){l=i.events[s][1];break}return d;function d(b){if(!l)return a(b);if(l._inactive)return v(b);return c=i.parser.defined.includes(MM(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),h}function h(b){if(b===40)return e.attempt(MIt,x,c?x:v)(b);if(b===91)return e.attempt(xIt,x,c?g:v)(b);return c?x(b):v(b)}function g(b){return e.attempt(vIt,x,v)(b)}function x(b){return r(b)}function v(b){return l._balanced=!0,a(b)}}function wIt(e,r,a){return i;function i(v){return e.enter("resource"),e.enter("resourceMarker"),e.consume(v),e.exit("resourceMarker"),s}function s(v){return oi(v)?PL(e,l)(v):l(v)}function l(v){if(v===41)return x(v);return kj(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(v)}function c(v){return oi(v)?PL(e,h)(v):x(v)}function d(v){return a(v)}function h(v){if(v===34||v===39||v===40)return Ij(e,g,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(v);return x(v)}function g(v){return oi(v)?PL(e,x)(v):x(v)}function x(v){if(v===41)return e.enter("resourceMarker"),e.consume(v),e.exit("resourceMarker"),e.exit("resource"),r;return a(v)}}function zIt(e,r,a){let i=this;return s;function s(d){return Cj.call(i,e,l,c,"reference","referenceMarker","referenceString")(d)}function l(d){return i.parser.defined.includes(MM(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?r(d):a(d)}function c(d){return a(d)}}function SIt(e,r,a){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),s}function s(l){if(l===93)return e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),r;return a(l)}}var YG={name:"labelStartImage",resolveAll:TL.resolveAll,tokenize:LIt};function LIt(e,r,a){let i=this;return s;function s(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),l}function l(d){if(d===91)return e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c;return a(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(d):r(d)}}var qG={name:"labelStartLink",resolveAll:TL.resolveAll,tokenize:kIt};function kIt(e,r,a){let i=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),l}function l(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(c):r(c)}}var GO={name:"lineEnding",tokenize:CIt};function CIt(e,r){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),fo(e,r,"linePrefix")}}var AL={name:"thematicBreak",tokenize:IIt};function IIt(e,r,a){let i=0,s;return l;function l(g){return e.enter("thematicBreak"),c(g)}function c(g){return s=g,d(g)}function d(g){if(g===s)return e.enter("thematicBreakSequence"),h(g);if(i>=3&&(g===null||kr(g)))return e.exit("thematicBreak"),r(g);return a(g)}function h(g){if(g===s)return e.consume(g),i++,h;return e.exit("thematicBreakSequence"),Jr(g)?fo(e,d,"whitespace")(g):d(g)}}var ts={continuation:{tokenize:AIt},exit:DIt,name:"list",tokenize:TIt},RIt={partial:!0,tokenize:OIt},PIt={partial:!0,tokenize:EIt};function TIt(e,r,a){let i=this,s=i.events[i.events.length-1],l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return d;function d(y){let k=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:qO(y)){if(!i.containerState.type)i.containerState.type=k,e.enter(k,{_container:!0});if(k==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(AL,a,g)(y):g(y);if(!i.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(y)}return a(y)}function h(y){if(qO(y)&&++c<10)return e.consume(y),h;if((!i.interrupt||c<2)&&(i.containerState.marker?y===i.containerState.marker:y===41||y===46))return e.exit("listItemValue"),g(y);return a(y)}function g(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||y,e.check(K8,i.interrupt?a:x,e.attempt(RIt,b,v))}function x(y){return i.containerState.initialBlankLine=!0,l++,b(y)}function v(y){if(Jr(y))return e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),b;return a(y)}function b(y){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(y)}}function AIt(e,r,a){let i=this;return i.containerState._closeFlow=void 0,e.check(K8,s,l);function s(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,fo(e,r,"listItemIndent",i.containerState.size+1)(d)}function l(d){if(i.containerState.furtherBlankLines||!Jr(d))return i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(d);return i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(PIt,r,c)(d)}function c(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,fo(e,e.attempt(ts,r,a),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function EIt(e,r,a){let i=this;return fo(e,s,"listItemIndent",i.containerState.size+1);function s(l){let c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?r(l):a(l)}}function DIt(e){e.exit(this.containerState.type)}function OIt(e,r,a){let i=this;return fo(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){let c=i.events[i.events.length-1];return!Jr(l)&&c&&c[1].type==="listItemPrefixWhitespace"?r(l):a(l)}}var Rj={name:"setextUnderline",resolveTo:NIt,tokenize:FIt};function NIt(e,r){let a=e.length,i,s,l;while(a--)if(e[a][0]==="enter"){if(e[a][1].type==="content"){i=a;break}if(e[a][1].type==="paragraph")s=a}else{if(e[a][1].type==="content")e.splice(a,1);if(!l&&e[a][1].type==="definition")l=a}let c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};if(e[s][1].type="setextHeadingText",l)e.splice(s,0,["enter",c,r]),e.splice(l+1,0,["exit",e[i][1],r]),e[i][1].end={...e[l][1].end};else e[i][1]=c;return e.push(["exit",c,r]),e}function FIt(e,r,a){let i=this,s;return l;function l(g){let x=i.events.length,v;while(x--)if(i.events[x][1].type!=="lineEnding"&&i.events[x][1].type!=="linePrefix"&&i.events[x][1].type!=="content"){v=i.events[x][1].type==="paragraph";break}if(!i.parser.lazy[i.now().line]&&(i.interrupt||v))return e.enter("setextHeadingLine"),s=g,c(g);return a(g)}function c(g){return e.enter("setextHeadingLineSequence"),d(g)}function d(g){if(g===s)return e.consume(g),d;return e.exit("setextHeadingLineSequence"),Jr(g)?fo(e,h,"lineSuffix")(g):h(g)}function h(g){if(g===null||kr(g))return e.exit("setextHeadingLine"),r(g);return a(g)}}var Lxe={tokenize:jIt};function jIt(e){let r=this,a=e.attempt(K8,i,e.attempt(this.parser.constructs.flowInitial,s,fo(e,e.attempt(this.parser.constructs.flow,s,e.attempt(DG,s)),"linePrefix")));return a;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),r.currentConstruct=void 0,a}function s(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r.currentConstruct=void 0,a}}var kxe={resolveAll:Pxe()},Cxe=Rxe("string"),Ixe=Rxe("text");function Rxe(e){return{resolveAll:Pxe(e==="text"?BIt:void 0),tokenize:r};function r(a){let i=this,s=this.parser.constructs[e],l=a.attempt(s,c,d);return c;function c(x){return g(x)?l(x):d(x)}function d(x){if(x===null){a.consume(x);return}return a.enter("data"),a.consume(x),h}function h(x){if(g(x))return a.exit("data"),l(x);return a.consume(x),h}function g(x){if(x===null)return!0;let v=s[x],b=-1;if(v)while(++b<v.length){let y=v[b];if(!y.previous||y.previous.call(i,i.previous))return!0}return!1}}}function Pxe(e){return r;function r(a,i){let s=-1,l;while(++s<=a.length)if(l===void 0){if(a[s]&&a[s][1].type==="data")l=s,s++}else if(!a[s]||a[s][1].type!=="data"){if(s!==l+2)a[l][1].end=a[s-1][1].end,a.splice(l+2,s-l-2),s=l+2;l=void 0}return e?e(a,i):a}}function BIt(e,r){let a=0;while(++a<=e.length)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){let i=e[a-1][1],s=r.sliceStream(i),l=s.length,c=-1,d=0,h;while(l--){let g=s[l];if(typeof g==="string"){c=g.length;while(g.charCodeAt(c-1)===32)d++,c--;if(c)break;c=-1}else if(g===-2)h=!0,d++;else if(g===-1);else{l++;break}}if(r._contentTypeTextTrailing&&a===e.length)d=0;if(d){let g={type:a===e.length||h||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?c:i.start._bufferIndex+c,_index:i.start._index+l,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};if(i.end={...g.start},i.start.offset===i.end.offset)Object.assign(i,g);else e.splice(a,0,["enter",g,r],["exit",g,r]),a+=2}a++}return e}var HG={};ke(HG,{attentionMarkers:()=>KIt,contentInitial:()=>YIt,disable:()=>XIt,document:()=>UIt,flow:()=>HIt,flowInitial:()=>qIt,insideSpan:()=>GIt,string:()=>VIt,text:()=>WIt});var UIt={[42]:ts,[43]:ts,[45]:ts,[48]:ts,[49]:ts,[50]:ts,[51]:ts,[52]:ts,[53]:ts,[54]:ts,[55]:ts,[56]:ts,[57]:ts,[62]:bj},YIt={[91]:OG},qIt={[-2]:VO,[-1]:VO,[32]:VO},HIt={[35]:FG,[42]:AL,[45]:[Rj,AL],[60]:BG,[61]:Rj,[95]:AL,[96]:Sj,[126]:Sj},VIt={[38]:zj,[92]:wj},WIt={[-5]:GO,[-4]:GO,[-3]:GO,[33]:YG,[38]:zj,[42]:HO,[60]:[TG,UG],[91]:qG,[92]:[NG,wj],[93]:TL,[95]:HO,[96]:AG},GIt={null:[HO,kxe]},KIt={null:[42,95]},XIt={null:[]};function Txe(e,r,a){let i={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0},s={},l=[],c=[],d=[],h=!0,g={attempt:fe(re),check:fe(oe),consume:X,enter:J,exit:ee,interrupt:fe(oe,{interrupt:!0})},x={code:null,containerState:{},defineSkip:N,events:[],now:U,parser:e,previous:null,sliceSerialize:k,sliceStream:T,write:y},v=r.tokenize.call(x,g),b;if(r.resolveAll)l.push(r);return x;function y(Se){if(c=Ts(c,Se),j(),c[c.length-1]!==null)return[];return be(r,0),x.events=fP(l,x.events,x),x.events}function k(Se,He){return JIt(T(Se),He)}function T(Se){return QIt(c,Se)}function U(){let{_bufferIndex:Se,_index:He,line:ft,column:Je,offset:xt}=i;return{_bufferIndex:Se,_index:He,line:ft,column:Je,offset:xt}}function N(Se){s[Se.line]=Se.column,Ye()}function j(){let Se;while(i._index<c.length){let He=c[i._index];if(typeof He==="string"){if(Se=i._index,i._bufferIndex<0)i._bufferIndex=0;while(i._index===Se&&i._bufferIndex<He.length)G(He.charCodeAt(i._bufferIndex))}else G(He)}}function G(Se){h=void 0,b=Se,v=v(Se)}function X(Se){if(kr(Se))i.line++,i.column=1,i.offset+=Se===-3?2:1,Ye();else if(Se!==-1)i.column++,i.offset++;if(i._bufferIndex<0)i._index++;else if(i._bufferIndex++,i._bufferIndex===c[i._index].length)i._bufferIndex=-1,i._index++;x.previous=Se,h=!0}function J(Se,He){let ft=He||{};return ft.type=Se,ft.start=U(),x.events.push(["enter",ft,x]),d.push(ft),ft}function ee(Se){let He=d.pop();return He.end=U(),x.events.push(["exit",He,x]),He}function re(Se,He){be(Se,He.from)}function oe(Se,He){He.restore()}function fe(Se,He){return ft;function ft(Je,xt,Ft){let Bt,ie,bt,Wt;return Array.isArray(Je)?nr(Je):("tokenize"in Je)?nr([Je]):Fe(Je);function Fe(Gt){return Xt;function Xt(Ir){let yr=Ir!==null&&Gt[Ir],Tr=Ir!==null&&Gt.null,pr=[...Array.isArray(yr)?yr:yr?[yr]:[],...Array.isArray(Tr)?Tr:Tr?[Tr]:[]];return nr(pr)(Ir)}}function nr(Gt){if(Bt=Gt,ie=0,Gt.length===0)return Ft;return fr(Gt[ie])}function fr(Gt){return Xt;function Xt(Ir){if(Wt=We(),bt=Gt,!Gt.partial)x.currentConstruct=Gt;if(Gt.name&&x.parser.constructs.disable.null.includes(Gt.name))return Fr(Ir);return Gt.tokenize.call(He?Object.assign(Object.create(x),He):x,g,Jt,Fr)(Ir)}}function Jt(Gt){return h=!0,Se(bt,Wt),xt}function Fr(Gt){if(h=!0,Wt.restore(),++ie<Bt.length)return fr(Bt[ie]);return Ft}}}function be(Se,He){if(Se.resolveAll&&!l.includes(Se))l.push(Se);if(Se.resolve)gf(x.events,He,x.events.length-He,Se.resolve(x.events.slice(He),x));if(Se.resolveTo)x.events=Se.resolveTo(x.events,x)}function We(){let Se=U(),{previous:He,currentConstruct:ft}=x,Je=x.events.length,xt=Array.from(d);return{from:Je,restore:Ft};function Ft(){i=Se,x.previous=He,x.currentConstruct=ft,x.events.length=Je,d=xt,Ye()}}function Ye(){if(i.line in s&&i.column<2)i.column=s[i.line],i.offset+=s[i.line]-1}}function QIt(e,r){let a=r.start._index,i=r.start._bufferIndex,s=r.end._index,l=r.end._bufferIndex,c;if(a===s)c=[e[a].slice(i,l)];else{if(c=e.slice(a,s),i>-1){let d=c[0];if(typeof d==="string")c[0]=d.slice(i);else c.shift()}if(l>0)c.push(e[s].slice(0,l))}return c}function JIt(e,r){let a=-1,i=[],s;while(++a<e.length){let l=e[a],c;if(typeof l==="string")c=l;else switch(l){case-5:{c="\r";break}case-4:{c=`
|
|
199
|
+
`;break}case-3:{c=`\r
|
|
200
|
+
`;break}case-2:{c=r?" ":"\t";break}case-1:{if(!r&&s)continue;c=" ";break}default:c=String.fromCharCode(l)}s=l===-2,i.push(c)}return i.join("")}function VG(e){let i={constructs:mxe([HG,...(e||{}).extensions||[]]),content:s(yxe),defined:[],document:s(bxe),flow:s(Lxe),lazy:{},string:s(Cxe),text:s(Ixe)};return i;function s(l){return c;function c(d){return Txe(i,l,d)}}}function WG(e){while(!Lj(e));return e}var Axe=/[\0\t\n\r]/g;function GG(){let e=1,r="",a=!0,i;return s;function s(l,c,d){let h=[],g,x,v,b,y;if(l=r+(typeof l==="string"?l.toString():new TextDecoder(c||void 0).decode(l)),v=0,r="",a){if(l.charCodeAt(0)===65279)v++;a=void 0}while(v<l.length){if(Axe.lastIndex=v,g=Axe.exec(l),b=g&&g.index!==void 0?g.index:l.length,y=l.charCodeAt(b),!g){r=l.slice(v);break}if(y===10&&v===b&&i)h.push(-3),i=void 0;else{if(i)h.push(-5),i=void 0;if(v<b)h.push(l.slice(v,b)),e+=b-v;switch(y){case 0:{h.push(65533),e++;break}case 9:{x=Math.ceil(e/4)*4,h.push(-2);while(e++<x)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}}v=b+1}if(d){if(i)h.push(-5);if(r)h.push(r);h.push(null)}return h}}var $It=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Exe(e){return e.replace($It,e1t)}function e1t(e,r,a){if(r)return r;if(a.charCodeAt(0)===35){let s=a.charCodeAt(1),l=s===120||s===88;return _j(a.slice(l?2:1),l?16:10)}return iP(a)||e}var Oxe={}.hasOwnProperty;function KG(e,r,a){if(r&&typeof r==="object")a=r,r=void 0;return t1t(a)(WG(VG(a).document().write(GG()(e,r,!0))))}function t1t(e){let r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(uo),autolinkProtocol:fe,autolinkEmail:fe,atxHeading:l(lo),blockQuote:l(Ir),characterEscape:fe,characterReference:fe,codeFenced:l(yr),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(yr,c),codeText:l(Tr,c),codeTextData:fe,data:fe,codeFlowValue:fe,definition:l(pr),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(po),hardBreakEscape:l(xa),hardBreakTrailing:l(xa),htmlFlow:l(sr,c),htmlFlowData:fe,htmlText:l(sr,c),htmlTextData:fe,image:l(mo),label:c,link:l(uo),listItem:l(hn),listItemValue:b,listOrdered:l(No,v),listUnordered:l(No),paragraph:l(Vo),reference:Fe,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(lo),strong:l(Wn),thematicBreak:l(Gi)},exit:{atxHeading:h(),atxHeadingSequence:J,autolink:h(),autolinkEmail:Xt,autolinkProtocol:Gt,blockQuote:h(),characterEscapeValue:be,characterReferenceMarkerHexadecimal:fr,characterReferenceMarkerNumeric:fr,characterReferenceValue:Jt,characterReference:Fr,codeFenced:h(U),codeFencedFence:T,codeFencedFenceInfo:y,codeFencedFenceMeta:k,codeFlowValue:be,codeIndented:h(N),codeText:h(ft),codeTextData:be,data:be,definition:h(),definitionDestinationString:X,definitionLabelString:j,definitionTitleString:G,emphasis:h(),hardBreakEscape:h(Ye),hardBreakTrailing:h(Ye),htmlFlow:h(Se),htmlFlowData:be,htmlText:h(He),htmlTextData:be,image:h(xt),label:Bt,labelText:Ft,lineEnding:We,link:h(Je),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:nr,resourceDestinationString:ie,resourceTitleString:bt,resource:Wt,setextHeading:h(oe),setextHeadingLineSequence:re,setextHeadingText:ee,strong:h(),thematicBreak:h()}};Nxe(r,(e||{}).mdastExtensions||[]);let a={};return i;function i(Ge){let Rt={type:"root",children:[]},hr={stack:[Rt],tokenStack:[],config:r,enter:d,exit:g,buffer:c,resume:x,data:a},Ur=[],$r=-1;while(++$r<Ge.length)if(Ge[$r][1].type==="listOrdered"||Ge[$r][1].type==="listUnordered")if(Ge[$r][0]==="enter")Ur.push($r);else{let Wo=Ur.pop();$r=s(Ge,Wo,$r)}$r=-1;while(++$r<Ge.length){let Wo=r[Ge[$r][0]];if(Oxe.call(Wo,Ge[$r][1].type))Wo[Ge[$r][1].type].call(Object.assign({sliceSerialize:Ge[$r][2].sliceSerialize},hr),Ge[$r][1])}if(hr.tokenStack.length>0){let Wo=hr.tokenStack[hr.tokenStack.length-1];(Wo[1]||Dxe).call(hr,void 0,Wo[0])}Rt.position={start:X8(Ge.length>0?Ge[0][1].start:{line:1,column:1,offset:0}),end:X8(Ge.length>0?Ge[Ge.length-2][1].end:{line:1,column:1,offset:0})},$r=-1;while(++$r<r.transforms.length)Rt=r.transforms[$r](Rt)||Rt;return Rt}function s(Ge,Rt,hr){let Ur=Rt-1,$r=-1,Wo=!1,Va,Ee,Oe,je;while(++Ur<=hr){let Zt=Ge[Ur];switch(Zt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{if(Zt[0]==="enter")$r++;else $r--;je=void 0;break}case"lineEndingBlank":{if(Zt[0]==="enter"){if(Va&&!je&&!$r&&!Oe)Oe=Ur;je=void 0}break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:je=void 0}if(!$r&&Zt[0]==="enter"&&Zt[1].type==="listItemPrefix"||$r===-1&&Zt[0]==="exit"&&(Zt[1].type==="listUnordered"||Zt[1].type==="listOrdered")){if(Va){let St=Ur;Ee=void 0;while(St--){let jt=Ge[St];if(jt[1].type==="lineEnding"||jt[1].type==="lineEndingBlank"){if(jt[0]==="exit")continue;if(Ee)Ge[Ee][1].type="lineEndingBlank",Wo=!0;jt[1].type="lineEnding",Ee=St}else if(jt[1].type==="linePrefix"||jt[1].type==="blockQuotePrefix"||jt[1].type==="blockQuotePrefixWhitespace"||jt[1].type==="blockQuoteMarker"||jt[1].type==="listItemIndent");else break}if(Oe&&(!Ee||Oe<Ee))Va._spread=!0;Va.end=Object.assign({},Ee?Ge[Ee][1].start:Zt[1].end),Ge.splice(Ee||Ur,0,["exit",Va,Zt[2]]),Ur++,hr++}if(Zt[1].type==="listItemPrefix"){let St={type:"listItem",_spread:!1,start:Object.assign({},Zt[1].start),end:void 0};Va=St,Ge.splice(Ur,0,["enter",St,Zt[2]]),Ur++,hr++,Oe=void 0,je=!0}}}return Ge[Rt][1]._spread=Wo,hr}function l(Ge,Rt){return hr;function hr(Ur){if(d.call(this,Ge(Ur),Ur),Rt)Rt.call(this,Ur)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(Ge,Rt,hr){this.stack[this.stack.length-1].children.push(Ge),this.stack.push(Ge),this.tokenStack.push([Rt,hr||void 0]),Ge.position={start:X8(Rt.start),end:void 0}}function h(Ge){return Rt;function Rt(hr){if(Ge)Ge.call(this,hr);g.call(this,hr)}}function g(Ge,Rt){let hr=this.stack.pop(),Ur=this.tokenStack.pop();if(!Ur)throw Error("Cannot close `"+Ge.type+"` ("+W8({start:Ge.start,end:Ge.end})+"): it’s not open");else if(Ur[0].type!==Ge.type)if(Rt)Rt.call(this,Ge,Ur[0]);else(Ur[1]||Dxe).call(this,Ge,Ur[0]);hr.position.end=X8(Ge.end)}function x(){return RG(this.stack.pop())}function v(){this.data.expectingFirstListItemValue=!0}function b(Ge){if(this.data.expectingFirstListItemValue){let Rt=this.stack[this.stack.length-2];Rt.start=Number.parseInt(this.sliceSerialize(Ge),10),this.data.expectingFirstListItemValue=void 0}}function y(){let Ge=this.resume(),Rt=this.stack[this.stack.length-1];Rt.lang=Ge}function k(){let Ge=this.resume(),Rt=this.stack[this.stack.length-1];Rt.meta=Ge}function T(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function U(){let Ge=this.resume(),Rt=this.stack[this.stack.length-1];Rt.value=Ge.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){let Ge=this.resume(),Rt=this.stack[this.stack.length-1];Rt.value=Ge.replace(/(\r?\n|\r)$/g,"")}function j(Ge){let Rt=this.resume(),hr=this.stack[this.stack.length-1];hr.label=Rt,hr.identifier=MM(this.sliceSerialize(Ge)).toLowerCase()}function G(){let Ge=this.resume(),Rt=this.stack[this.stack.length-1];Rt.title=Ge}function X(){let Ge=this.resume(),Rt=this.stack[this.stack.length-1];Rt.url=Ge}function J(Ge){let Rt=this.stack[this.stack.length-1];if(!Rt.depth){let hr=this.sliceSerialize(Ge).length;Rt.depth=hr}}function ee(){this.data.setextHeadingSlurpLineEnding=!0}function re(Ge){let Rt=this.stack[this.stack.length-1];Rt.depth=this.sliceSerialize(Ge).codePointAt(0)===61?1:2}function oe(){this.data.setextHeadingSlurpLineEnding=void 0}function fe(Ge){let hr=this.stack[this.stack.length-1].children,Ur=hr[hr.length-1];if(!Ur||Ur.type!=="text")Ur=xn(),Ur.position={start:X8(Ge.start),end:void 0},hr.push(Ur);this.stack.push(Ur)}function be(Ge){let Rt=this.stack.pop();Rt.value+=this.sliceSerialize(Ge),Rt.position.end=X8(Ge.end)}function We(Ge){let Rt=this.stack[this.stack.length-1];if(this.data.atHardBreak){let hr=Rt.children[Rt.children.length-1];hr.position.end=X8(Ge.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(Rt.type))fe.call(this,Ge),be.call(this,Ge)}function Ye(){this.data.atHardBreak=!0}function Se(){let Ge=this.resume(),Rt=this.stack[this.stack.length-1];Rt.value=Ge}function He(){let Ge=this.resume(),Rt=this.stack[this.stack.length-1];Rt.value=Ge}function ft(){let Ge=this.resume(),Rt=this.stack[this.stack.length-1];Rt.value=Ge}function Je(){let Ge=this.stack[this.stack.length-1];if(this.data.inReference){let Rt=this.data.referenceType||"shortcut";Ge.type+="Reference",Ge.referenceType=Rt,delete Ge.url,delete Ge.title}else delete Ge.identifier,delete Ge.label;this.data.referenceType=void 0}function xt(){let Ge=this.stack[this.stack.length-1];if(this.data.inReference){let Rt=this.data.referenceType||"shortcut";Ge.type+="Reference",Ge.referenceType=Rt,delete Ge.url,delete Ge.title}else delete Ge.identifier,delete Ge.label;this.data.referenceType=void 0}function Ft(Ge){let Rt=this.sliceSerialize(Ge),hr=this.stack[this.stack.length-2];hr.label=Exe(Rt),hr.identifier=MM(Rt).toLowerCase()}function Bt(){let Ge=this.stack[this.stack.length-1],Rt=this.resume(),hr=this.stack[this.stack.length-1];if(this.data.inReference=!0,hr.type==="link"){let Ur=Ge.children;hr.children=Ur}else hr.alt=Rt}function ie(){let Ge=this.resume(),Rt=this.stack[this.stack.length-1];Rt.url=Ge}function bt(){let Ge=this.resume(),Rt=this.stack[this.stack.length-1];Rt.title=Ge}function Wt(){this.data.inReference=void 0}function Fe(){this.data.referenceType="collapsed"}function nr(Ge){let Rt=this.resume(),hr=this.stack[this.stack.length-1];hr.label=Rt,hr.identifier=MM(this.sliceSerialize(Ge)).toLowerCase(),this.data.referenceType="full"}function fr(Ge){this.data.characterReferenceType=Ge.type}function Jt(Ge){let Rt=this.sliceSerialize(Ge),hr=this.data.characterReferenceType,Ur;if(hr)Ur=_j(Rt,hr==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0;else Ur=iP(Rt);let $r=this.stack[this.stack.length-1];$r.value+=Ur}function Fr(Ge){let Rt=this.stack.pop();Rt.position.end=X8(Ge.end)}function Gt(Ge){be.call(this,Ge);let Rt=this.stack[this.stack.length-1];Rt.url=this.sliceSerialize(Ge)}function Xt(Ge){be.call(this,Ge);let Rt=this.stack[this.stack.length-1];Rt.url="mailto:"+this.sliceSerialize(Ge)}function Ir(){return{type:"blockquote",children:[]}}function yr(){return{type:"code",lang:null,meta:null,value:""}}function Tr(){return{type:"inlineCode",value:""}}function pr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function po(){return{type:"emphasis",children:[]}}function lo(){return{type:"heading",depth:0,children:[]}}function xa(){return{type:"break"}}function sr(){return{type:"html",value:""}}function mo(){return{type:"image",title:null,url:"",alt:null}}function uo(){return{type:"link",title:null,url:"",children:[]}}function No(Ge){return{type:"list",ordered:Ge.type==="listOrdered",start:null,spread:Ge._spread,children:[]}}function hn(Ge){return{type:"listItem",spread:Ge._spread,checked:null,children:[]}}function Vo(){return{type:"paragraph",children:[]}}function Wn(){return{type:"strong",children:[]}}function xn(){return{type:"text",value:""}}function Gi(){return{type:"thematicBreak"}}}function X8(e){return{line:e.line,column:e.column,offset:e.offset}}function Nxe(e,r){let a=-1;while(++a<r.length){let i=r[a];if(Array.isArray(i))Nxe(e,i);else r1t(e,i)}}function r1t(e,r){let a;for(a in r)if(Oxe.call(r,a))switch(a){case"canContainEols":{let i=r[a];if(i)e[a].push(...i);break}case"transforms":{let i=r[a];if(i)e[a].push(...i);break}case"enter":case"exit":{let i=r[a];if(i)Object.assign(e[a],i);break}}}function Dxe(e,r){if(e)throw Error("Cannot close `"+e.type+"` ("+W8({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+W8({start:r.start,end:r.end})+") is open");else throw Error("Cannot close document, a token (`"+r.type+"`, "+W8({start:r.start,end:r.end})+") is still open")}function Pj(e){let r=this;r.parser=a;function a(i){return KG(i,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}var Tj=-1,sP=0,EL=1,lP=2,KO=3,XO=4,QO=5,JO=6,Aj=7,Ej=8;var{defineProperty:o1t}=Object,jxe=typeof self==="object"?self:globalThis,Fxe=(e,r)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+e)}return new jxe[e](r)},a1t=(e,r)=>{let a=(s,l)=>(e.set(l,s),s),i=(s)=>{if(e.has(s))return e.get(s);let[l,c]=r[s];switch(l){case sP:case Tj:return a(c,s);case EL:{let d=a([],s);for(let h of c)d.push(i(h));return d}case lP:{let d=a({},s);for(let[h,g]of c){let x=i(h),v=i(g);if(x==="__proto__")o1t(d,x,{value:v,configurable:!0,enumerable:!0,writable:!0});else d[x]=v}return d}case KO:return a(new Date(c),s);case XO:{let{source:d,flags:h}=c;return a(new RegExp(d,h),s)}case QO:{let d=a(new Map,s);for(let[h,g]of c)d.set(i(h),i(g));return d}case JO:{let d=a(new Set,s);for(let h of c)d.add(i(h));return d}case Aj:{let{name:d,message:h}=c;return a(typeof jxe[d]==="function"?Fxe(d,h):Error(h),s)}case Ej:return a(BigInt(c),s);case"BigInt":return a(Object(BigInt(c)),s);case"ArrayBuffer":return a(new Uint8Array(c).buffer,c);case"DataView":{let{buffer:d}=new Uint8Array(c);return a(new DataView(d),c)}case"-0":return-0}return a(Fxe(l,c),s)};return i},XG=(e)=>a1t(new Map,e)(0);var DL="",{toString:n1t}={},{keys:i1t,is:f1t}=Object,$O=(e)=>{let r=typeof e;if(r!=="object"||!e)return[sP,r];let a=n1t.call(e).slice(8,-1);switch(a){case"Array":return[EL,DL];case"Object":return[lP,DL];case"Date":return[KO,DL];case"RegExp":return[XO,DL];case"Map":return[QO,DL];case"Set":return[JO,DL];case"DataView":return[EL,a]}if(a.includes("Array"))return[EL,a];if(e instanceof Error)return[Aj,e.name||"Error"];return[lP,a]},Dj=([e,r])=>e===sP&&(r==="function"||r==="symbol"),s1t=(e,r,a,i)=>{let s=(c,d)=>{let h=i.push(c)-1;return a.set(d,h),h},l=(c)=>{if(a.has(c))return a.get(c);let[d,h]=$O(c);switch(d){case sP:{let x=c;switch(h){case"bigint":d=Ej,x=c.toString();break;case"number":if(!c&&f1t(c,-0))return i.push(["-0"])-1;break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+h);x=null;break;case"undefined":return s([Tj],c)}return s([d,x],c)}case EL:{if(h){let b=c;if(h==="DataView")b=new Uint8Array(c.buffer);else if(h==="ArrayBuffer")b=new Uint8Array(c);return s([h,[...b]],c)}let x=[],v=s([d,x],c);for(let b of c)x.push(l(b));return v}case lP:{if(h)switch(h){case"BigInt":return s([h,c.toString()],c);case"Boolean":case"Number":case"String":return s([h,c.valueOf()],c)}if(r&&"toJSON"in c)return l(c.toJSON());let x=[],v=s([d,x],c);for(let b of i1t(c))if(e||!Dj($O(c[b])))x.push([l(b),l(c[b])]);return v}case KO:return s([d,isNaN(c.getTime())?DL:c.toISOString()],c);case XO:{let{source:x,flags:v}=c;return s([d,{source:x,flags:v}],c)}case QO:{let x=[],v=s([d,x],c);for(let[b,y]of c)if(e||!(Dj($O(b))||Dj($O(y))))x.push([l(b),l(y)]);return v}case JO:{let x=[],v=s([d,x],c);for(let b of c)if(e||!Dj($O(b)))x.push(l(b));return v}}let{message:g}=c;return s([d,{name:h,message:g}],c)};return l},QG=(e,{json:r,lossy:a}={})=>{let i=[];return s1t(!(r||a),!!r,new Map,i)(e),i};var cP=typeof structuredClone==="function"?(e,r)=>r&&(("json"in r)||("lossy"in r))?XG(QG(e,r)):structuredClone(e):(e,r)=>XG(QG(e,r));function l1t(e,r){let a=[{type:"text",value:"↩"}];if(r>1)a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]});return a}function c1t(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function Bxe(e){let r=typeof e.options.clobberPrefix==="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||l1t,i=e.options.footnoteBackLabel||c1t,s=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[],h=-1;while(++h<e.footnoteOrder.length){let g=e.footnoteById.get(e.footnoteOrder[h]);if(!g)continue;let x=e.all(g),v=String(g.identifier).toUpperCase(),b=Tc(v.toLowerCase()),y=0,k=[],T=e.footnoteCounts.get(v);while(T!==void 0&&++y<=T){if(k.length>0)k.push({type:"text",value:" "});let j=typeof a==="string"?a:a(h,y);if(typeof j==="string")j={type:"text",value:j};k.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+b+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof i==="string"?i:i(h,y),className:["data-footnote-backref"]},children:Array.isArray(j)?j:[j]})}let U=x[x.length-1];if(U&&U.type==="element"&&U.tagName==="p"){let j=U.children[U.children.length-1];if(j&&j.type==="text")j.value+=" ";else U.children.push({type:"text",value:" "});U.children.push(...k)}else x.push(...k);let N={type:"element",tagName:"li",properties:{id:r+"fn-"+b},children:e.wrap(x,!0)};e.patch(g,N),d.push(N)}if(d.length===0)return;return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...cP(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
201
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
202
|
+
`}]}}var Oj=function(e){if(e===null||e===void 0)return p1t;if(typeof e==="function")return Nj(e);if(typeof e==="object")return Array.isArray(e)?u1t(e):d1t(e);if(typeof e==="string")return Z1t(e);throw Error("Expected function, string, or object as test")};function u1t(e){let r=[],a=-1;while(++a<e.length)r[a]=Oj(e[a]);return Nj(i);function i(...s){let l=-1;while(++l<r.length)if(r[l].apply(this,s))return!0;return!1}}function d1t(e){let r=e;return Nj(a);function a(i){let s=i,l;for(l in e)if(s[l]!==r[l])return!1;return!0}}function Z1t(e){return Nj(r);function r(a){return a&&a.type===e}}function Nj(e){return r;function r(a,i,s){return Boolean(m1t(a)&&e.call(this,a,typeof i==="number"?i:void 0,s||void 0))}}function p1t(){return!0}function m1t(e){return e!==null&&typeof e==="object"&&"type"in e}function Uxe(e){return e}var Yxe=[],JG=!0,Fj=!1,$G="skip";function eK(e,r,a,i){let s;if(typeof r==="function"&&typeof a!=="function")i=a,a=r;else s=r;let l=Oj(s),c=i?-1:1;d(e,void 0,[])();function d(h,g,x){let v=h&&typeof h==="object"?h:{};if(typeof v.type==="string"){let y=typeof v.tagName==="string"?v.tagName:typeof v.name==="string"?v.name:void 0;Object.defineProperty(b,"name",{value:"node ("+Uxe(h.type+(y?"<"+y+">":""))+")"})}return b;function b(){let y=Yxe,k,T,U;if(!r||l(h,g,x[x.length-1]||void 0)){if(y=h1t(a(h,x)),y[0]===Fj)return y}if("children"in h&&h.children){let N=h;if(N.children&&y[0]!==$G){T=(i?N.children.length:-1)+c,U=x.concat(N);while(T>-1&&T<N.children.length){let j=N.children[T];if(k=d(j,T,U)(),k[0]===Fj)return k;T=typeof k[1]==="number"?k[1]:T+c}}}return y}}}function h1t(e){if(Array.isArray(e))return e;if(typeof e==="number")return[JG,e];return e===null||e===void 0?Yxe:[e]}function eN(e,r,a,i){let s,l,c;if(typeof r==="function"&&typeof a!=="function")l=void 0,c=r,s=a;else l=r,c=a,s=i;eK(e,l,d,s);function d(h,g){let x=g[g.length-1],v=x?x.children.indexOf(h):void 0;return c(h,v,x)}}function qxe(e,r){let a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,a),e.applyData(r,a)}function Hxe(e,r){let a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,a),[e.applyData(r,a),{type:"text",value:`
|
|
203
|
+
`}]}function Vxe(e,r){let a=r.value?r.value+`
|
|
204
|
+
`:"",i={},s=r.lang?r.lang.split(/\s+/):[];if(s.length>0)i.className=["language-"+s[0]];let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:a}]};if(r.meta)l.data={meta:r.meta};return e.patch(r,l),l=e.applyData(r,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(r,l),l}function Wxe(e,r){let a={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function Gxe(e,r){let a={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function Kxe(e,r){let a=typeof e.options.clobberPrefix==="string"?e.options.clobberPrefix:"user-content-",i=String(r.identifier).toUpperCase(),s=Tc(i.toLowerCase()),l=e.footnoteOrder.indexOf(i),c,d=e.footnoteCounts.get(i);if(d===void 0)d=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length;else c=l+1;d+=1,e.footnoteCounts.set(i,d);let h={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+s,id:a+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(r,h);let g={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(r,g),e.applyData(r,g)}function Xxe(e,r){let a={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function Qxe(e,r){if(e.options.allowDangerousHtml){let a={type:"raw",value:r.value};return e.patch(r,a),e.applyData(r,a)}return}function jj(e,r){let a=r.referenceType,i="]";if(a==="collapsed")i+="[]";else if(a==="full")i+="["+(r.label||r.identifier)+"]";if(r.type==="imageReference")return[{type:"text",value:"!["+r.alt+i}];let s=e.all(r),l=s[0];if(l&&l.type==="text")l.value="["+l.value;else s.unshift({type:"text",value:"["});let c=s[s.length-1];if(c&&c.type==="text")c.value+=i;else s.push({type:"text",value:i});return s}function Jxe(e,r){let a=String(r.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return jj(e,r);let s={src:Tc(i.url||""),alt:r.alt};if(i.title!==null&&i.title!==void 0)s.title=i.title;let l={type:"element",tagName:"img",properties:s,children:[]};return e.patch(r,l),e.applyData(r,l)}function $xe(e,r){let a={src:Tc(r.url)};if(r.alt!==null&&r.alt!==void 0)a.alt=r.alt;if(r.title!==null&&r.title!==void 0)a.title=r.title;let i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(r,i),e.applyData(r,i)}function eve(e,r){let a={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,a);let i={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(r,i),e.applyData(r,i)}function tve(e,r){let a=String(r.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return jj(e,r);let s={href:Tc(i.url||"")};if(i.title!==null&&i.title!==void 0)s.title=i.title;let l={type:"element",tagName:"a",properties:s,children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function rve(e,r){let a={href:Tc(r.url)};if(r.title!==null&&r.title!==void 0)a.title=r.title;let i={type:"element",tagName:"a",properties:a,children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function ove(e,r,a){let i=e.all(r),s=a?g1t(a):ave(r),l={},c=[];if(typeof r.checked==="boolean"){let x=i[0],v;if(x&&x.type==="element"&&x.tagName==="p")v=x;else v={type:"element",tagName:"p",properties:{},children:[]},i.unshift(v);if(v.children.length>0)v.children.unshift({type:"text",value:" "});v.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let d=-1;while(++d<i.length){let x=i[d];if(s||d!==0||x.type!=="element"||x.tagName!=="p")c.push({type:"text",value:`
|
|
205
|
+
`});if(x.type==="element"&&x.tagName==="p"&&!s)c.push(...x.children);else c.push(x)}let h=i[i.length-1];if(h&&(s||h.type!=="element"||h.tagName!=="p"))c.push({type:"text",value:`
|
|
206
|
+
`});let g={type:"element",tagName:"li",properties:l,children:c};return e.patch(r,g),e.applyData(r,g)}function g1t(e){let r=!1;if(e.type==="list"){r=e.spread||!1;let a=e.children,i=-1;while(!r&&++i<a.length)r=ave(a[i])}return r}function ave(e){let r=e.spread;return r===null||r===void 0?e.children.length>1:r}function nve(e,r){let a={},i=e.all(r),s=-1;if(typeof r.start==="number"&&r.start!==1)a.start=r.start;while(++s<i.length){let c=i[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}let l={type:"element",tagName:r.ordered?"ol":"ul",properties:a,children:e.wrap(i,!0)};return e.patch(r,l),e.applyData(r,l)}function ive(e,r){let a={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function fve(e,r){let a={type:"root",children:e.wrap(e.all(r))};return e.patch(r,a),e.applyData(r,a)}function sve(e,r){let a={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function lve(e,r){let a=e.all(r),i=a.shift(),s=[];if(i){let c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(r.children[0],c),s.push(c)}if(a.length>0){let c={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},d=nP(r.children[1]),h=yj(r.children[r.children.length-1]);if(d&&h)c.position={start:d,end:h};s.push(c)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(r,l),e.applyData(r,l)}function cve(e,r,a){let i=a?a.children:void 0,l=(i?i.indexOf(r):1)===0?"th":"td",c=a&&a.type==="table"?a.align:void 0,d=c?c.length:r.children.length,h=-1,g=[];while(++h<d){let v=r.children[h],b={},y=c?c[h]:void 0;if(y)b.align=y;let k={type:"element",tagName:l,properties:b,children:[]};if(v)k.children=e.all(v),e.patch(v,k),k=e.applyData(v,k);g.push(k)}let x={type:"element",tagName:"tr",properties:{},children:e.wrap(g,!0)};return e.patch(r,x),e.applyData(r,x)}function uve(e,r){let a={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function Zve(e){let r=String(e),a=/\r?\n|\r/g,i=a.exec(r),s=0,l=[];while(i)l.push(dve(r.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=a.exec(r);return l.push(dve(r.slice(s),s>0,!1)),l.join("")}function dve(e,r,a){let i=0,s=e.length;if(r){let l=e.codePointAt(i);while(l===9||l===32)i++,l=e.codePointAt(i)}if(a){let l=e.codePointAt(s-1);while(l===9||l===32)s--,l=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function pve(e,r){let a={type:"text",value:Zve(String(r.value))};return e.patch(r,a),e.applyData(r,a)}function mve(e,r){let a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,a),e.applyData(r,a)}var hve={blockquote:qxe,break:Hxe,code:Vxe,delete:Wxe,emphasis:Gxe,footnoteReference:Kxe,heading:Xxe,html:Qxe,imageReference:Jxe,image:$xe,inlineCode:eve,linkReference:tve,link:rve,listItem:ove,list:nve,paragraph:ive,root:fve,strong:sve,table:lve,tableCell:uve,tableRow:cve,text:pve,thematicBreak:mve,toml:Bj,yaml:Bj,definition:Bj,footnoteDefinition:Bj};function Bj(){return}var tK={}.hasOwnProperty,M1t={};function Mve(e,r){let a=r||M1t,i=new Map,s=new Map,l=new Map,c={...hve,...a.handlers},d={all:g,applyData:v1t,definitionById:i,footnoteById:s,footnoteCounts:l,footnoteOrder:[],handlers:c,one:h,options:a,patch:x1t,wrap:_1t};return eN(e,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){let v=x.type==="definition"?i:s,b=String(x.identifier).toUpperCase();if(!v.has(b))v.set(b,x)}}),d;function h(x,v){let b=x.type,y=d.handlers[b];if(tK.call(d.handlers,b)&&y)return y(d,x,v);if(d.options.passThrough&&d.options.passThrough.includes(b)){if("children"in x){let{children:T,...U}=x,N=cP(U);return N.children=d.all(x),N}return cP(x)}return(d.options.unknownHandler||y1t)(d,x,v)}function g(x){let v=[];if("children"in x){let b=x.children,y=-1;while(++y<b.length){let k=d.one(b[y],x);if(k){if(y&&b[y-1].type==="break"){if(!Array.isArray(k)&&k.type==="text")k.value=gve(k.value);if(!Array.isArray(k)&&k.type==="element"){let T=k.children[0];if(T&&T.type==="text")T.value=gve(T.value)}}if(Array.isArray(k))v.push(...k);else v.push(k)}}}return v}}function x1t(e,r){if(e.position)r.position=zG(e)}function v1t(e,r){let a=r;if(e&&e.data){let i=e.data.hName,s=e.data.hChildren,l=e.data.hProperties;if(typeof i==="string")if(a.type==="element")a.tagName=i;else{let c="children"in a?a.children:[a];a={type:"element",tagName:i,properties:{},children:c}}if(a.type==="element"&&l)Object.assign(a.properties,cP(l));if("children"in a&&a.children&&s!==null&&s!==void 0)a.children=s}return a}function y1t(e,r){let a=r.data||{},i="value"in r&&!(tK.call(a,"hProperties")||tK.call(a,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function _1t(e,r){let a=[],i=-1;if(r)a.push({type:"text",value:`
|
|
207
|
+
`});while(++i<e.length){if(i)a.push({type:"text",value:`
|
|
208
|
+
`});a.push(e[i])}if(r&&e.length>0)a.push({type:"text",value:`
|
|
209
|
+
`});return a}function gve(e){let r=0,a=e.charCodeAt(r);while(a===9||a===32)r++,a=e.charCodeAt(r);return e.slice(r)}function Uj(e,r){let a=Mve(e,r),i=a.one(e,void 0),s=Bxe(a),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};if(s)Ps("children"in l),l.children.push({type:"text",value:`
|
|
210
|
+
`},s);return l}function Yj(e,r){if(e&&"run"in e)return async function(a,i){let s=Uj(a,{file:i,...r});await e.run(s,i)};return function(a,i){return Uj(a,{file:i,...e||r})}}function rK(e){if(e)throw e}var Vj=H(Lve(),1);function tN(e){if(typeof e!=="object"||e===null)return!1;let r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function oK(){let e=[],r={run:a,use:i};return r;function a(...s){let l=-1,c=s.pop();if(typeof c!=="function")throw TypeError("Expected function as last argument, not "+c);d(null,...s);function d(h,...g){let x=e[++l],v=-1;if(h){c(h);return}while(++v<s.length)if(g[v]===null||g[v]===void 0)g[v]=s[v];if(s=g,x)kve(x,d)(...g);else c(null,...g)}}function i(s){if(typeof s!=="function")throw TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),r}}function kve(e,r){let a;return i;function i(...c){let d=e.length>c.length,h;if(d)c.push(s);try{h=e.apply(this,c)}catch(g){let x=g;if(d&&a)throw x;return s(x)}if(!d)if(h&&h.then&&typeof h.then==="function")h.then(l,s);else if(h instanceof Error)s(h);else l(h)}function s(c,...d){if(!a)a=!0,r(c,...d)}function l(c){s(null,c)}}var Ru={basename:b1t,dirname:w1t,extname:z1t,join:S1t,sep:"/"};function b1t(e,r){if(r!==void 0&&typeof r!=="string")throw TypeError('"ext" argument must be a string');rN(e);let a=0,i=-1,s=e.length,l;if(r===void 0||r.length===0||r.length>e.length){while(s--)if(e.codePointAt(s)===47){if(l){a=s+1;break}}else if(i<0)l=!0,i=s+1;return i<0?"":e.slice(a,i)}if(r===e)return"";let c=-1,d=r.length-1;while(s--)if(e.codePointAt(s)===47){if(l){a=s+1;break}}else{if(c<0)l=!0,c=s+1;if(d>-1)if(e.codePointAt(s)===r.codePointAt(d--)){if(d<0)i=s}else d=-1,i=c}if(a===i)i=c;else if(i<0)i=e.length;return e.slice(a,i)}function w1t(e){if(rN(e),e.length===0)return".";let r=-1,a=e.length,i;while(--a)if(e.codePointAt(a)===47){if(i){r=a;break}}else if(!i)i=!0;return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function z1t(e){rN(e);let r=e.length,a=-1,i=0,s=-1,l=0,c;while(r--){let d=e.codePointAt(r);if(d===47){if(c){i=r+1;break}continue}if(a<0)c=!0,a=r+1;if(d===46){if(s<0)s=r;else if(l!==1)l=1}else if(s>-1)l=-1}if(s<0||a<0||l===0||l===1&&s===a-1&&s===i+1)return"";return e.slice(s,a)}function S1t(...e){let r=-1,a;while(++r<e.length)if(rN(e[r]),e[r])a=a===void 0?e[r]:a+"/"+e[r];return a===void 0?".":L1t(a)}function L1t(e){rN(e);let r=e.codePointAt(0)===47,a=k1t(e,!r);if(a.length===0&&!r)a=".";if(a.length>0&&e.codePointAt(e.length-1)===47)a+="/";return r?"/"+a:a}function k1t(e,r){let a="",i=0,s=-1,l=0,c=-1,d,h;while(++c<=e.length){if(c<e.length)d=e.codePointAt(c);else if(d===47)break;else d=47;if(d===47){if(s===c-1||l===1);else if(s!==c-1&&l===2){if(a.length<2||i!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(h=a.lastIndexOf("/"),h!==a.length-1){if(h<0)a="",i=0;else a=a.slice(0,h),i=a.length-1-a.lastIndexOf("/");s=c,l=0;continue}}else if(a.length>0){a="",i=0,s=c,l=0;continue}}if(r)a=a.length>0?a+"/..":"..",i=2}else{if(a.length>0)a+="/"+e.slice(s+1,c);else a=e.slice(s+1,c);i=c-s-1}s=c,l=0}else if(d===46&&l>-1)l++;else l=-1}return a}function rN(e){if(typeof e!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(e))}var Cve={cwd:C1t};function C1t(){return"/"}function uP(e){return Boolean(e!==null&&typeof e==="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ive(e){if(typeof e==="string")e=new URL(e);else if(!uP(e)){let r=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){let r=TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return I1t(e)}function I1t(e){if(e.hostname!==""){let i=TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}let r=e.pathname,a=-1;while(++a<r.length)if(r.codePointAt(a)===37&&r.codePointAt(a+1)===50){let i=r.codePointAt(a+2);if(i===70||i===102){let s=TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(r)}var aK=["history","path","basename","stem","extname","dirname"];class dP{constructor(e){let r;if(!e)r={};else if(uP(e))r={path:e};else if(typeof e==="string"||R1t(e))r={value:e};else r=e;this.cwd="cwd"in r?"":Cve.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;while(++a<aK.length){let s=aK[a];if(s in r&&r[s]!==void 0&&r[s]!==null)this[s]=s==="history"?[...r[s]]:r[s]}let i;for(i in r)if(!aK.includes(i))this[i]=r[i]}get basename(){return typeof this.path==="string"?Ru.basename(this.path):void 0}set basename(e){iK(e,"basename"),nK(e,"basename"),this.path=Ru.join(this.dirname||"",e)}get dirname(){return typeof this.path==="string"?Ru.dirname(this.path):void 0}set dirname(e){Rve(this.basename,"dirname"),this.path=Ru.join(e||"",this.basename)}get extname(){return typeof this.path==="string"?Ru.extname(this.path):void 0}set extname(e){if(nK(e,"extname"),Rve(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=Ru.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){if(uP(e))e=Ive(e);if(iK(e,"path"),this.path!==e)this.history.push(e)}get stem(){return typeof this.path==="string"?Ru.basename(this.path,this.extname):void 0}set stem(e){iK(e,"stem"),nK(e,"stem"),this.path=Ru.join(this.dirname||"",e+(this.extname||""))}fail(e,r,a){let i=this.message(e,r,a);throw i.fatal=!0,i}info(e,r,a){let i=this.message(e,r,a);return i.fatal=void 0,i}message(e,r,a){let i=new Zi(e,r,a);if(this.path)i.name=this.path+":"+i.name,i.file=this.path;return i.fatal=!1,this.messages.push(i),i}toString(e){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function nK(e,r){if(e&&e.includes(Ru.sep))throw Error("`"+r+"` cannot be a path: did not expect `"+Ru.sep+"`")}function iK(e,r){if(!e)throw Error("`"+r+"` cannot be empty")}function Rve(e,r){if(!e)throw Error("Setting `"+r+"` requires `path` to be set too")}function R1t(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}var Pve=function(e){let i=this.constructor.prototype,s=i[e],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,i),l};var P1t={}.hasOwnProperty;class cK extends Pve{constructor(){super("copy");this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=oK()}copy(){let e=new cK,r=-1;while(++r<this.attachers.length){let a=this.attachers[r];e.use(...a)}return e.data(Vj.default(!0,{},this.namespace)),e}data(e,r){if(typeof e==="string"){if(arguments.length===2)return lK("data",this.frozen),this.namespace[e]=r,this;return P1t.call(this.namespace,e)&&this.namespace[e]||void 0}if(e)return lK("data",this.frozen),this.namespace=e,this;return this.namespace}freeze(){if(this.frozen)return this;let e=this;while(++this.freezeIndex<this.attachers.length){let[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;if(a[0]===!0)a[0]=void 0;let i=r.call(e,...a);if(typeof i==="function")this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let r=Hj(e),a=this.parser||this.Parser;return fK("parse",a),a(String(r),r)}process(e,r){let a=this;return this.freeze(),fK("process",this.parser||this.Parser),sK("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(s,l){let c=Hj(e),d=a.parse(c);a.run(d,c,function(g,x,v){if(g||!x||!v)return h(g);let b=x,y=a.stringify(b,v);if(A1t(y))v.value=y;else v.result=y;h(g,v)});function h(g,x){if(g||!x)l(g);else if(s)s(x);else Ps(r,"`done` is defined if `resolve` is not"),r(void 0,x)}}}processSync(e){let r=!1,a;return this.freeze(),fK("processSync",this.parser||this.Parser),sK("processSync",this.compiler||this.Compiler),this.process(e,i),Ave("processSync","process",r),Ps(a,"we either bailed on an error or have a tree"),a;function i(s,l){r=!0,rK(s),a=l}}run(e,r,a){Tve(e),this.freeze();let i=this.transformers;if(!a&&typeof r==="function")a=r,r=void 0;return a?s(void 0,a):new Promise(s);function s(l,c){Ps(typeof r!=="function","`file` can’t be a `done` anymore, we checked");let d=Hj(r);i.run(e,d,h);function h(g,x,v){let b=x||e;if(g)c(g);else if(l)l(b);else Ps(a,"`done` is defined if `resolve` is not"),a(void 0,b,v)}}}runSync(e,r){let a=!1,i;return this.run(e,r,s),Ave("runSync","run",a),Ps(i,"we either bailed on an error or have a tree"),i;function s(l,c){rK(l),i=c,a=!0}}stringify(e,r){this.freeze();let a=Hj(r),i=this.compiler||this.Compiler;return sK("stringify",i),Tve(e),i(e,a)}use(e,...r){let a=this.attachers,i=this.namespace;if(lK("use",this.frozen),e===null||e===void 0);else if(typeof e==="function")d(e,r);else if(typeof e==="object")if(Array.isArray(e))c(e);else l(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function s(h){if(typeof h==="function")d(h,[]);else if(typeof h==="object")if(Array.isArray(h)){let[g,...x]=h;d(g,x)}else l(h);else throw TypeError("Expected usable value, not `"+h+"`")}function l(h){if(!("plugins"in h)&&!("settings"in h))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");if(c(h.plugins),h.settings)i.settings=Vj.default(!0,i.settings,h.settings)}function c(h){let g=-1;if(h===null||h===void 0);else if(Array.isArray(h))while(++g<h.length){let x=h[g];s(x)}else throw TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,g){let x=-1,v=-1;while(++x<a.length)if(a[x][0]===h){v=x;break}if(v===-1)a.push([h,...g]);else if(g.length>0){let[b,...y]=g,k=a[v][1];if(tN(k)&&tN(b))b=Vj.default(!0,k,b);a[v]=[h,b,...y]}}}}var uK=new cK().freeze();function fK(e,r){if(typeof r!=="function")throw TypeError("Cannot `"+e+"` without `parser`")}function sK(e,r){if(typeof r!=="function")throw TypeError("Cannot `"+e+"` without `compiler`")}function lK(e,r){if(r)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Tve(e){if(!tN(e)||typeof e.type!=="string")throw TypeError("Expected node, got `"+e+"`")}function Ave(e,r,a){if(!a)throw Error("`"+e+"` finished async. Use `"+r+"` instead")}function Hj(e){return T1t(e)?e:new dP(e)}function T1t(e){return Boolean(e&&typeof e==="object"&&"message"in e&&"messages"in e)}function A1t(e){return typeof e==="string"||E1t(e)}function E1t(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}var D1t="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Eve=[],Dve={allowDangerousHtml:!0},O1t=/^(https?|ircs?|mailto|xmpp)$/i,N1t=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Io(e){let r=F1t(e),a=j1t(e);return B1t(r.runSync(r.parse(a),a),e)}function F1t(e){let r=e.rehypePlugins||Eve,a=e.remarkPlugins||Eve,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Dve}:Dve;return uK().use(Pj).use(a).use(Yj,i).use(r)}function j1t(e){let r=e.children||"",a=new dP;if(typeof r==="string")a.value=r;else mj("Unexpected value `"+r+"` for `children` prop, expected `string`");return a}function B1t(e,r){let{allowedElements:a,allowElement:i,components:s,disallowedElements:l,skipHtml:c,unwrapDisallowed:d}=r,h=r.urlTransform||Ove;for(let x of N1t)if(Object.hasOwn(r,x.from))mj("Unexpected `"+x.from+"` prop, "+(x.to?"use `"+x.to+"` instead":"remove it")+" (see <"+D1t+"#"+x.id+"> for more info)");if(a&&l)mj("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other");return eN(e,g),kG(e,{Fragment:L,components:s,ignoreInvalidStyle:!0,jsx:t,jsxs:o,passKeys:!0,passNode:!0});function g(x,v,b){if(x.type==="raw"&&b&&typeof v==="number"){if(c)b.children.splice(v,1);else b.children[v]={type:"text",value:x.value};return v}if(x.type==="element"){let y;for(y in UO)if(Object.hasOwn(UO,y)&&Object.hasOwn(x.properties,y)){let k=x.properties[y],T=UO[y];if(T===null||T.includes(x.tagName))x.properties[y]=h(String(k||""),y,x)}}if(x.type==="element"){let y=a?!a.includes(x.tagName):l?l.includes(x.tagName):!1;if(!y&&i&&typeof v==="number")y=!i(x,v,b);if(y&&b&&typeof v==="number"){if(d&&x.children)b.children.splice(v,1,...x.children);else b.children.splice(v,1);return v}}}}function Ove(e){let r=e.indexOf(":"),a=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");if(r===-1||s!==-1&&r>s||a!==-1&&r>a||i!==-1&&r>i||O1t.test(e.slice(0,r)))return e;return""}var U1t=/\.(png|jpe?g|webp|gif|svg|avif|bmp|ico)$/i;function Ks(e){if(!e)return!1;return U1t.test(e)}function rf(e,r){if(!e||e.length===0)return null;let a=[...e].sort((s,l)=>{let c=s.width??0;return(l.width??0)-c}),i=a.filter((s)=>(s.width??0)>=r);if(i.length>0)return i.sort((s,l)=>{let c=s.width??0,d=l.width??0;return c-d}),i[0];return a[0]}function vs(e){if(!e)return"";if(e.resolution)return e.resolution;let r=e.width??0,a=e.height??0;if(r>0&&a>0){let i=Math.max(r,a),s=Math.min(r,a);if(i>=3840||s>=2160)return"2160p";if(i>=2560||s>=1440)return"1440p";if(i>=1920||s>=1080)return"1080p";if(i>=1280||s>=720)return"720p";if(i>=854||s>=480)return"480p";if(i>=640||s>=360)return"360p";if(i>=320||s>=180)return"180p";return`${s}p`}if(a>0)return`${a}p`;if(r>0)return`${r}p`;return""}function Nve({teamId:e,taskId:r,comment:a,currentUserId:i,isOwnerOrAdmin:s}){let l=V(),[c,d]=u(!1),[h,g]=u(null),x=s||a.author.id===i,{mutate:v,isPending:b}=B({mutationFn:async()=>{let k=await A.api.teams[":teamId"].kanban.tasks[":taskId"].comments[":commentId"].$delete({param:{teamId:e,taskId:r,commentId:a.id}});if(!k.ok){let T=await k.json().catch(()=>({message:Mn()}));throw Error(T.message||Mn())}return await k.json()},onSuccess:()=>{l.invalidateQueries({queryKey:["teams",e,"kanban","tasks",r,"comments"]}),l.invalidateQueries({queryKey:["teams",e,"kanban","task",r]}),l.invalidateQueries({queryKey:["teams",e,"kanban","tasks"]}),M.success("Comment deleted"),d(!1)},onError:(k)=>{M.error(k.message)}}),y=(a.author.name||"U").split(" ").map((k)=>k[0]).slice(0,2).join("").toUpperCase();return o("div",{className:"relative flex gap-3 p-3 rounded-xl border border-transparent bg-foreground/[0.03] dark:bg-foreground/[0.08] hover:bg-foreground/[0.06] dark:hover:bg-foreground/[0.12] transition-colors group w-full max-w-full overflow-hidden",children:[o(Ce,{className:"w-7 h-7 shrink-0 mt-0.5 border border-border",children:[a.author.image&&t(Ie,{src:a.author.image,alt:a.author.name}),t(Te,{className:"text-[10px] font-medium bg-muted text-muted-foreground",children:y})]}),o("div",{className:"flex-1 min-w-0 space-y-1.5 overflow-hidden",children:[o("div",{className:"flex items-center justify-between gap-2",children:[o("div",{className:"flex items-center gap-2 min-w-0",children:[t("span",{className:"font-semibold text-xs text-foreground truncate",children:a.author.name}),t("span",{className:"text-[10px] text-muted-foreground shrink-0 font-mono",children:Ar(new Date(a.createdAt),"MMM d, h:mm a")})]}),x&&t("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity",children:o(ge,{modal:!1,children:[t(Ae,{asChild:!0,children:t(E,{size:"icon-xs",variant:"ghost",className:"h-5 w-5 text-muted-foreground",children:t(rr,{className:"h-3.5 w-3.5"})})}),t(_e,{align:"end",children:o(K,{className:"text-destructive focus:text-destructive cursor-pointer text-xs",onClick:()=>d(!0),children:[t(we,{className:"mr-1.5 h-3.5 w-3.5"}),t("span",{children:ct()})]})})]})})]}),a.body&&t("div",{className:"text-xs leading-relaxed prose prose-xs dark:prose-invert max-w-none break-words text-foreground/90 font-sans",children:t(Io,{children:a.body})}),a.attachments&&a.attachments.length>0&&t("div",{className:"flex flex-col gap-1.5 pt-1.5 w-full max-w-full overflow-hidden",children:a.attachments.map((k)=>{let T=Ks(k.name||k.url);return o("div",{className:`group/att relative flex items-center w-full max-w-full rounded-lg border border-border bg-card hover:bg-muted/40 transition-colors overflow-hidden ${T?"h-18 p-1.5 gap-2.5 cursor-pointer":"h-9 px-2.5 gap-2.5"}`,onClick:()=>{if(T)g({url:k.url,name:k.name});else window.open(k.url,"_blank","noreferrer")},children:[T?t("div",{className:"h-full aspect-square rounded-md overflow-hidden bg-muted/40 shrink-0",children:t("img",{src:k.url,alt:k.name,className:"w-full h-full object-cover group-hover/att:scale-105 transition-transform duration-200"})}):t(qn,{className:"w-4 h-4 text-muted-foreground shrink-0"}),o("div",{className:"min-w-0 flex-1 overflow-hidden",children:[t("p",{className:"text-xs font-medium text-foreground truncate block w-full",title:k.name,children:k.name}),k.sizeByte!==void 0&&k.sizeByte>0&&t("p",{className:"text-[10px] text-muted-foreground font-mono truncate",children:yn(k.sizeByte)})]}),t("a",{href:k.url,download:k.name,target:"_blank",rel:"noreferrer",className:"p-1 text-muted-foreground hover:text-foreground shrink-0 rounded-md hover:bg-muted transition-colors opacity-0 group-hover/att:opacity-100",onClick:(U)=>U.stopPropagation(),title:gr(),children:t(ht,{className:"w-3.5 h-3.5"})})]},k.id)})})]}),t(Xe,{open:c,onOpenChange:d,children:o(et,{children:[o(tt,{children:[t(nt,{children:gh()}),t(ot,{children:Ah()})]}),o(rt,{children:[t(it,{disabled:b,children:De()}),t(st,{className:"bg-destructive hover:bg-destructive/90 text-white",disabled:b,onClick:()=>v(),children:ct()})]})]})}),t(ue,{open:!!h,onOpenChange:(k)=>!k&&g(null),children:o(ae,{className:"w-auto max-w-[80vw] sm:max-w-[80vw] max-h-[80vh] p-2 sm:p-3 bg-background/95 backdrop-blur-sm border-border flex flex-col items-center justify-center overflow-hidden",onClick:(k)=>k.stopPropagation(),children:[t(pe,{className:"sr-only",children:t(le,{children:h?.name||"Image Preview"})}),h&&o("div",{className:"flex flex-col items-center justify-center max-w-[80vw] max-h-[80vh] overflow-hidden",children:[t("img",{src:h.url,alt:h.name,className:"max-w-[80vw] max-h-[calc(80vh-2.5rem)] w-auto h-auto object-contain rounded-md"}),t("p",{className:"text-xs text-muted-foreground truncate max-w-full px-2 pt-1.5 text-center",children:h.name})]})]})})]})}S();var Wve=Symbol.for("immer-nothing"),Fve=Symbol.for("immer-draftable"),rs=Symbol.for("immer-state");function Pu(e,...r){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ac=Object,pP=ac.getPrototypeOf,Xj="constructor",rB="prototype",mK="configurable",Qj="enumerable",Gj="writable",oN="value",Q8=(e)=>!!e&&!!e[rs];function SZ(e){if(!e)return!1;return Gve(e)||aB(e)||!!e[Fve]||!!e[Xj]?.[Fve]||nB(e)||iB(e)}var Y1t=ac[rB][Xj].toString(),jve=new WeakMap;function Gve(e){if(!e||!bK(e))return!1;let r=pP(e);if(r===null||r===ac[rB])return!0;let a=ac.hasOwnProperty.call(r,Xj)&&r[Xj];if(a===Object)return!0;if(!ZP(a))return!1;let i=jve.get(a);if(i===void 0)i=Function.toString.call(a),jve.set(a,i);return i===Y1t}function oB(e,r,a=!0){if(iN(e)===0)(a?Reflect.ownKeys(e):ac.keys(e)).forEach((s)=>{r(s,e[s],e)});else e.forEach((i,s)=>r(s,i,e))}function iN(e){let r=e[rs];return r?r.type_:aB(e)?1:nB(e)?2:iB(e)?3:0}var dK=(e,r,a=iN(e))=>a===2?e.has(r):ac[rB].hasOwnProperty.call(e,r),hK=(e,r,a=iN(e))=>a===2?e.get(r):e[r],Jj=(e,r,a,i=iN(e))=>{if(i===2)e.set(r,a);else if(i===3)e.add(a);else e[r]=a};function q1t(e,r){if(e===r)return e!==0||1/e===1/r;else return e!==e&&r!==r}var aB=Array.isArray,nB=(e)=>e instanceof Map,iB=(e)=>e instanceof Set,bK=(e)=>typeof e==="object",ZP=(e)=>typeof e==="function",ZK=(e)=>typeof e==="boolean";function H1t(e){let r=+e;return Number.isInteger(r)&&String(r)===e}var xM=(e)=>e.copy_||e.base_;var wK=(e)=>e.modified_?e.copy_:e.base_;function gK(e,r){if(nB(e))return new Map(e);if(iB(e))return new Set(e);if(aB(e))return Array[rB].slice.call(e);let a=Gve(e);if(r===!0||r==="class_only"&&!a){let i=ac.getOwnPropertyDescriptors(e);delete i[rs];let s=Reflect.ownKeys(i);for(let l=0;l<s.length;l++){let c=s[l],d=i[c];if(d[Gj]===!1)d[Gj]=!0,d[mK]=!0;if(d.get||d.set)i[c]={[mK]:!0,[Gj]:!0,[Qj]:d[Qj],[oN]:e[c]}}return ac.create(pP(e),i)}else{let i=pP(e);if(i!==null&&a)return{...e};let s=ac.create(i);return ac.assign(s,e)}}function zK(e,r=!1){if(fB(e)||Q8(e)||!SZ(e))return e;if(iN(e)>1)ac.defineProperties(e,{set:Wj,add:Wj,clear:Wj,delete:Wj});if(ac.freeze(e),r)oB(e,(a,i)=>{zK(i,!0)},!1);return e}function V1t(){Pu(2)}var Wj={[oN]:V1t};function fB(e){if(e===null||!bK(e))return!0;return ac.isFrozen(e)}var $j="MapSet",MK="Patches",Bve="ArrayMethods",Kve={};function OL(e){let r=Kve[e];if(!r)Pu(0,e);return r}var Uve=(e)=>!!Kve[e];var aN,Xve=()=>aN,W1t=(e,r)=>({drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Uve($j)?OL($j):void 0,arrayMethodsPlugin_:Uve(Bve)?OL(Bve):void 0});function Yve(e,r){if(r)e.patchPlugin_=OL(MK),e.patches_=[],e.inversePatches_=[],e.patchListener_=r}function xK(e){vK(e),e.drafts_.forEach(G1t),e.drafts_=null}function vK(e){if(e===aN)aN=e.parent_}var qve=(e)=>aN=W1t(aN,e);function G1t(e){let r=e[rs];if(r.type_===0||r.type_===1)r.revoke_();else r.revoked_=!0}function Hve(e,r){r.unfinalizedDrafts_=r.drafts_.length;let a=r.drafts_[0];if(e!==void 0&&e!==a){if(a[rs].modified_)xK(r),Pu(4);if(SZ(e))e=Vve(r,e);let{patchPlugin_:s}=r;if(s)s.generateReplacementPatches_(a[rs].base_,e,r)}else e=Vve(r,a);if(K1t(r,e,!0),xK(r),r.patches_)r.patchListener_(r.patches_,r.inversePatches_);return e!==Wve?e:void 0}function Vve(e,r){if(fB(r))return r;let a=r[rs];if(!a)return eB(r,e.handledSet_,e);if(!sB(a,e))return r;if(!a.modified_)return a.base_;if(!a.finalized_){let{callbacks_:i}=a;if(i)while(i.length>0)i.pop()(e);$ve(a,e)}return a.copy_}function K1t(e,r,a=!1){if(!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_)zK(r,a)}function Qve(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var sB=(e,r)=>e.scope_===r,X1t=[];function Jve(e,r,a,i){let s=xM(e),l=e.type_;if(i!==void 0){if(hK(s,i,l)===r){Jj(s,i,a,l);return}}if(!e.draftLocations_){let d=e.draftLocations_=new Map;oB(s,(h,g)=>{if(Q8(g)){let x=d.get(g)||[];x.push(h),d.set(g,x)}})}let c=e.draftLocations_.get(r)??X1t;for(let d of c)Jj(s,d,a,l)}function Q1t(e,r,a){e.callbacks_.push(function(s){let l=r;if(!l||!sB(l,s))return;s.mapSetPlugin_?.fixSetContents(l);let c=wK(l);Jve(e,l.draft_??l,c,a),$ve(l,s)})}function $ve(e,r){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:i}=r;if(i){let s=i.getPath(e);if(s)i.generatePatches_(e,s,r)}Qve(e)}}function J1t(e,r,a){let{scope_:i}=e;if(Q8(a)){let s=a[rs];if(sB(s,i))s.callbacks_.push(function(){Kj(e);let c=wK(s);Jve(e,a,c,r)})}else if(SZ(a))e.callbacks_.push(function(){let l=xM(e);if(e.type_===3){if(l.has(a))eB(a,i.handledSet_,i)}else if(hK(l,r,e.type_)===a){if(i.drafts_.length>1&&(e.assigned_.get(r)??!1)===!0&&e.copy_)eB(hK(e.copy_,r,e.type_),i.handledSet_,i)}})}function eB(e,r,a){if(!a.immer_.autoFreeze_&&a.unfinalizedDrafts_<1)return e;if(Q8(e)||r.has(e)||!SZ(e)||fB(e))return e;return r.add(e),oB(e,(i,s)=>{if(Q8(s)){let l=s[rs];if(sB(l,a)){let c=wK(l);Jj(e,i,c,e.type_),Qve(l)}}else if(SZ(s))eB(s,r,a)}),e}function $1t(e,r){let a=aB(e),i={type_:a?1:0,scope_:r?r.scope_:Xve(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,l=tB;if(a)s=[i],l=nN;let{revoke:c,proxy:d}=Proxy.revocable(s,l);return i.draft_=d,i.revoke_=c,[d,i]}var tB={get(e,r){if(r===rs)return e;let a=e.scope_.arrayMethodsPlugin_,i=e.type_===1&&typeof r==="string";if(i){if(a?.isArrayOperationMethod(r))return a.createMethodInterceptor(e,r)}let s=xM(e);if(!dK(s,r,e.type_))return tRt(e,s,r);let l=s[r];if(e.finalized_||!SZ(l))return l;if(i&&e.operationMethod&&a?.isMutatingArrayMethod(e.operationMethod)&&H1t(r))return l;if(l===pK(e.base_,r)||eRt(e,r,l)){Kj(e);let c=e.type_===1?+r:r,d=_K(e.scope_,l,e,c);return e.copy_[c]=d}return l},has(e,r){return r in xM(e)},ownKeys(e){return Reflect.ownKeys(xM(e))},set(e,r,a){let i=eye(xM(e),r);if(i?.set)return i.set.call(e.draft_,a),!0;if(!e.modified_){let s=pK(xM(e),r),l=s?.[rs];if(l&&l.base_===a)return e.copy_[r]=a,e.assigned_.set(r,!1),!0;if(q1t(a,s)&&(a!==void 0||dK(e.base_,r,e.type_)))return!0;Kj(e),yK(e)}if(e.copy_[r]===a&&(a!==void 0||dK(e.copy_,r,e.type_))||Number.isNaN(a)&&Number.isNaN(e.copy_[r]))return!0;return e.copy_[r]=a,e.assigned_.set(r,!0),J1t(e,r,a),!0},deleteProperty(e,r){if(Kj(e),pK(e.base_,r)!==void 0||r in e.base_)e.assigned_.set(r,!1),yK(e);else e.assigned_.delete(r);if(e.copy_)delete e.copy_[r];return!0},getOwnPropertyDescriptor(e,r){let a=xM(e),i=Reflect.getOwnPropertyDescriptor(a,r);if(!i)return i;return{[Gj]:!0,[mK]:e.type_!==1||r!=="length",[Qj]:i[Qj],[oN]:a[r]}},defineProperty(){Pu(11)},getPrototypeOf(e){return pP(e.base_)},setPrototypeOf(){Pu(12)}},nN={};for(let e in tB){let r=tB[e];nN[e]=function(){let a=arguments;return a[0]=a[0][0],r.apply(this,a)}}nN.deleteProperty=function(e,r){return nN.set.call(this,e,r,void 0)};nN.set=function(e,r,a){return tB.set.call(this,e[0],r,a,e[0])};function pK(e,r){let a=e[rs];return(a?xM(a):e)[r]}function eRt(e,r,a){if(e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(r)||!SZ(a)||a[rs])return!1;return e.baseRefs_.has(a)}function tRt(e,r,a){let i=eye(r,a);return i?oN in i?i[oN]:i.get?.call(e.draft_):void 0}function eye(e,r){if(!(r in e))return;let a=pP(e);while(a){let i=Object.getOwnPropertyDescriptor(a,r);if(i)return i;a=pP(a)}return}function yK(e){if(!e.modified_){if(e.modified_=!0,e.parent_)yK(e.parent_)}}function Kj(e){if(!e.copy_)e.assigned_=new Map,e.copy_=gK(e.base_,e.scope_.immer_.useStrictShallowCopy_)}var rRt=class{constructor(e){if(this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,a,i)=>{if(ZP(r)&&!ZP(a)){let l=a;a=r;let c=this;return function(h=l,...g){return c.produce(h,(x)=>a.call(this,x,...g))}}if(!ZP(a))Pu(6);if(i!==void 0&&!ZP(i))Pu(7);let s;if(SZ(r)){let l=qve(this),c=_K(l,r,void 0),d=!0;try{s=a(c),d=!1}finally{if(d)xK(l);else vK(l)}return Yve(l,i),Hve(s,l)}else if(!r||!bK(r)){if(s=a(r),s===void 0)s=r;if(s===Wve)s=void 0;if(this.autoFreeze_)zK(s,!0);if(i){let l=[],c=[];OL(MK).generateReplacementPatches_(r,s,{patches_:l,inversePatches_:c}),i(l,c)}return s}else Pu(1,r)},this.produceWithPatches=(r,a)=>{if(ZP(r))return(c,...d)=>this.produceWithPatches(c,(h)=>r(h,...d));let i,s;return[this.produce(r,a,(c,d)=>{i=c,s=d}),i,s]},ZK(e?.autoFreeze))this.setAutoFreeze(e.autoFreeze);if(ZK(e?.useStrictShallowCopy))this.setUseStrictShallowCopy(e.useStrictShallowCopy);if(ZK(e?.useStrictIteration))this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){if(!SZ(e))Pu(8);if(Q8(e))e=oRt(e);let r=qve(this),a=_K(r,e,void 0);return a[rs].isManual_=!0,vK(r),a}finishDraft(e,r){let a=e&&e[rs];if(!a||!a.isManual_)Pu(9);let{scope_:i}=a;return Yve(i,r),Hve(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,r){let a;for(a=r.length-1;a>=0;a--){let s=r[a];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}if(a>-1)r=r.slice(a+1);let i=OL(MK).applyPatches_;if(Q8(e))return i(e,r);return this.produce(e,(s)=>i(s,r))}};function _K(e,r,a,i){let[s,l]=nB(r)?OL($j).proxyMap_(r,a):iB(r)?OL($j).proxySet_(r,a):$1t(r,a);if((a?.scope_??Xve()).drafts_.push(s),l.callbacks_=a?.callbacks_??[],l.key_=i,a&&i!==void 0)Q1t(a,l,i);else l.callbacks_.push(function(h){h.mapSetPlugin_?.fixSetContents(l);let{patchPlugin_:g}=h;if(l.modified_&&g)g.generatePatches_(l,[],h)});return s}function oRt(e){if(!Q8(e))Pu(10,e);return tye(e)}function tye(e){if(!SZ(e)||fB(e))return e;let r=e[rs],a,i=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,a=gK(e,r.scope_.immer_.useStrictShallowCopy_),i=r.scope_.immer_.shouldUseStrictIteration()}else a=gK(e,!0);if(oB(a,(s,l)=>{Jj(a,s,tye(l))},i),r)r.finalized_=!1;return a}var aRt=globalThis.Iterator,FYn=typeof aRt?.from==="function";var nRt=new rRt,rye=nRt.produce;var iRt=(e)=>(r,a,i)=>(i.setState=(s,l,...c)=>{let d=typeof s==="function"?rye(s):s;return r(d,l,...c)},e(i.setState,a,i)),oye=iRt;var jr=Rr()(Ire(oye((e,r)=>({members:[],loading:!1,fetchMembers:async(a,i,s)=>{if(!s&&r().loadedTeamId===a&&r().loadedWithAgents===i)return;e({loading:!0});try{let l=await A.api.teams[":teamId"].members.$get({param:{teamId:a},query:{includeAgents:i?"true":"false"}});if(!l.ok)throw Error("failed to fetch members");let c=await l.json();e({members:c||[],loadedTeamId:a,loadedProjectId:void 0,loadedWithAgents:i,loading:!1})}catch{e({loading:!1})}},fetchProjectMembers:async(a,i,s)=>{if(!s&&r().loadedProjectId===a&&r().loadedWithAgents===i)return;e({loading:!0});try{let l=await A.api.projects[":projectId"].members.$get({param:{projectId:a},query:{includeAgents:i?"true":"false"}});if(!l.ok)throw Error("failed to fetch project members");let c=await l.json();e({members:c||[],loadedProjectId:a,loadedTeamId:void 0,loadedWithAgents:i,loading:!1})}catch{e({loading:!1})}}}))));function aye({teamId:e,onSendMessage:r,isSubmitting:a}){let[i,s]=u(""),[l,c]=u([]),[d,h]=u(!1),[g,x]=u(""),[v,b]=u(0),y=_(null),k=_(null),T=_(null),{members:U,fetchMembers:N}=jr();m(()=>{if(e)N(e,!0,!0)},[e,N]);let{mutateAsync:j}=B({mutationFn:async(Se)=>{let He=await A.api.teams[":teamId"].kanban.attachments.$post({param:{teamId:e},json:Se});if(!He.ok)throw Error("Failed to get attachment upload url");return await He.json()}}),G=(Se)=>{let He=Se.target.value;if(s(He),y.current)y.current.style.height="auto",y.current.style.height=`${Math.min(y.current.scrollHeight,160)}px`;let ft=Se.target.selectionStart||0,Je=He.slice(0,ft),xt=Je.lastIndexOf("@");if(xt!==-1){let Ft=xt===0,Bt=Je[xt-1];if(Ft||/\s/.test(Bt)){let bt=Je.slice(xt+1);if(!/\s/.test(bt)){x(bt),h(!0);return}}}h(!1)},X=U.filter((Se)=>Se.name?.toLowerCase().includes(g.toLowerCase()));m(()=>{b(0)},[g,d]);let J=(Se)=>{if(!y.current)return;let He=y.current.selectionStart||0,ft=i.slice(0,He),Je=i.slice(He),xt=ft.lastIndexOf("@");if(xt!==-1){let Ft=`${i.slice(0,xt)}@${Se.name} ${Je}`;s(Ft),h(!1),setTimeout(()=>{if(y.current){y.current.focus();let Bt=xt+Se.name.length+2;y.current.setSelectionRange(Bt,Bt)}},0)}},ee=async(Se)=>{let He=Array.from(Se.target.files||[]);if(He.length===0)return;let ft=He.map((Je)=>({id:`${Date.now()}-${Je.name}-${Math.random()}`,file:Je,isUploading:!0}));c((Je)=>[...Je,...ft]);for(let Je of ft)try{let xt=await j({fileName:Je.file.name,size:Je.file.size,contentType:Je.file.type||"application/octet-stream"});if(!(await fetch(xt.uploadUrl,{method:"PUT",body:Je.file,headers:{"Content-Type":Je.file.type||"application/octet-stream"}})).ok)throw Error("Failed to upload file to storage");c((Bt)=>Bt.map((ie)=>ie.id===Je.id?{...ie,isUploading:!1,payload:{id:xt.id,name:xt.name,key:xt.key,sizeByte:xt.sizeByte,contentType:xt.contentType,proxyType:xt.proxyType}}:ie))}catch(xt){let Ft=xt instanceof Error?xt.message:"Upload failed";M.error(`${Je.file.name}: ${Ft}`),c((Bt)=>Bt.map((ie)=>ie.id===Je.id?{...ie,isUploading:!1,error:Ft}:ie))}if(k.current)k.current.value=""},re=(Se)=>{c((He)=>He.filter((ft)=>ft.id!==Se))},oe=l.some((Se)=>Se.isUploading),fe=l.map((Se)=>Se.payload).filter((Se)=>!!Se),be=(i.trim().length>0||fe.length>0)&&!oe,We=async()=>{if(!be||a)return;try{if(await r(i.trim(),fe.length>0?fe:void 0),s(""),c([]),y.current)y.current.style.height="auto"}catch{}},Ye=(Se)=>{if(d&&X.length>0){if(Se.key==="ArrowDown"){Se.preventDefault(),b((He)=>(He+1)%X.length);return}if(Se.key==="ArrowUp"){Se.preventDefault(),b((He)=>(He-1+X.length)%X.length);return}if(Se.key==="Enter"||Se.key==="Tab"){Se.preventDefault();let He=X[v];if(He)J(He);return}if(Se.key==="Escape"){h(!1);return}}if(Se.key==="Enter"&&(Se.metaKey||Se.ctrlKey))Se.preventDefault(),We()};return o("div",{className:"relative flex flex-col w-full border border-border focus-within:border-foreground/40 bg-card rounded-2xl p-2.5 shadow-2xs transition-all",children:[d&&X.length>0&&t("div",{ref:T,className:"absolute bottom-full left-0 mb-2 w-64 max-h-48 overflow-y-auto rounded-xl border border-border bg-popover p-1 shadow-lg z-50",children:X.map((Se,He)=>o("button",{type:"button",onClick:()=>J(Se),className:`w-full flex items-center gap-2 px-2.5 py-1.5 rounded-lg text-xs transition-colors text-left ${He===v?"bg-primary text-primary-foreground font-medium":"hover:bg-muted text-foreground"}`,children:[o(Ce,{className:"w-5 h-5",children:[Se.image&&t(Ie,{src:Se.image}),t(Te,{className:"text-[9px]",children:Se.name?.slice(0,2).toUpperCase()})]}),t("span",{className:"truncate",children:Se.name})]},Se.id))}),l.length>0&&t("div",{className:"flex flex-wrap gap-1.5 pb-2 mb-1.5 border-b border-border/50",children:l.map((Se)=>{let He=Se.file.type.startsWith("image/");return o("div",{className:"flex items-center gap-1.5 pl-2 pr-1.5 py-1 rounded-lg bg-muted/60 border border-border text-xs max-w-[200px]",children:[Se.isUploading?t(O,{className:"w-3.5 h-3.5 animate-spin text-primary shrink-0"}):He?t(ro,{className:"w-3.5 h-3.5 text-primary shrink-0"}):t(qn,{className:"w-3.5 h-3.5 text-muted-foreground shrink-0"}),o("div",{className:"min-w-0 flex-1 truncate",children:[t("span",{className:"truncate block font-medium text-[11px]",children:Se.file.name}),t("span",{className:"text-[9px] text-muted-foreground font-mono",children:yn(Se.file.size)})]}),t("button",{type:"button",onClick:()=>re(Se.id),className:"p-0.5 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted shrink-0",children:t(Ne,{className:"w-3 h-3"})})]},Se.id)})}),t("textarea",{ref:y,value:i,onChange:G,onKeyDown:Ye,placeholder:MFe(),rows:1,className:"w-full min-h-[44px] max-h-[160px] bg-transparent border-0 focus:outline-hidden focus-visible:ring-0 resize-none text-xs text-foreground placeholder:text-muted-foreground/70 p-1 font-sans leading-relaxed"}),o("div",{className:"flex items-center justify-between pt-1 mt-1 border-t border-border/40",children:[o("div",{className:"flex items-center gap-1",children:[t("input",{ref:k,type:"file",multiple:!0,className:"hidden",onChange:ee}),t(E,{type:"button",variant:"ghost",size:"icon-xs",onClick:()=>k.current?.click(),className:"h-7 w-7 rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted",title:"Attach files",disabled:a,children:t(Ra,{className:"w-3.5 h-3.5"})}),t("span",{className:"text-[10px] text-muted-foreground/60 hidden sm:inline pl-1",children:"Cmd+Enter to send"})]}),t(E,{type:"button",size:"icon-xs",onClick:We,disabled:!be||a,className:"h-7 w-7 rounded-full shadow-xs bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-40 transition-all shrink-0",title:"Send comment",children:a||oe?t(O,{className:"w-3.5 h-3.5 animate-spin"}):t(ea,{className:"w-3.5 h-3.5 stroke-[2.5]"})})]})]})}function nye({teamId:e,taskId:r,initialComments:a}){let i=V(),{data:s}=Z({queryKey:["teams",e,"me"],queryFn:async()=>{let b=await A.api.teams[":teamId"].me.$get({param:{teamId:e}});if(!b.ok)throw Error("Failed to fetch me");return await b.json()},enabled:!!e}),l=s?.role?.toLowerCase()==="owner"||s?.role?.toLowerCase()==="editor",{data:c,isLoading:d}=Z({queryKey:["teams",e,"kanban","tasks",r,"comments"],queryFn:async()=>{let b=await A.api.teams[":teamId"].kanban.tasks[":taskId"].comments.$get({param:{teamId:e,taskId:r}});if(!b.ok)throw Error("Failed to fetch comments");return await b.json()},initialData:a?{data:a}:void 0,enabled:!!e&&!!r,refetchInterval:4000}),h=c?.data||[],{mutateAsync:g,isPending:x}=B({mutationFn:async({body:b,attachments:y})=>{let k=await A.api.teams[":teamId"].kanban.tasks[":taskId"].comments.$post({param:{teamId:e,taskId:r},json:{body:b,attachments:y}});if(!k.ok){let T=await k.json().catch(()=>({message:Mn()}));throw Error(T.message||Mn())}return await k.json()},onSuccess:()=>{i.invalidateQueries({queryKey:["teams",e,"kanban","tasks",r,"comments"]}),i.invalidateQueries({queryKey:["teams",e,"kanban","task",r]}),i.invalidateQueries({queryKey:["teams",e,"kanban","tasks"]})},onError:(b)=>{M.error(b.message)}}),v=async(b,y)=>{await g({body:b,attachments:y})};return o("div",{className:"flex flex-col h-full overflow-hidden bg-background",children:[t(ce,{className:"flex-1 min-h-0 p-3.5 [&>div>div]:block!",children:t("div",{className:"space-y-3 pr-1 pb-2 w-full max-w-full",children:d?t("div",{className:"flex items-center justify-center py-12",children:t(O,{className:"w-6 h-6 animate-spin text-muted-foreground"})}):h.length===0?o("div",{className:"flex flex-col items-center justify-center py-16 text-center text-xs text-muted-foreground/80 space-y-2",children:[t("div",{className:"w-10 h-10 rounded-full bg-muted/60 flex items-center justify-center",children:t(xo,{className:"w-5 h-5 opacity-40"})}),t("p",{className:"font-medium",children:fg()})]}):h.map((b)=>t(Nve,{teamId:e,taskId:r,comment:b,currentUserId:s?.id,isOwnerOrAdmin:l},b.id))})}),t("div",{className:"p-3 border-t border-border/60 bg-card/60 shrink-0",children:t(aye,{teamId:e,onSendMessage:v,isSubmitting:x})})]})}function fRt(e){let r=e.data||{};switch(e.type){case mf.CREATED:return"Created task";case mf.STATUS_CHANGED:return`Changed status from ${e.fromStatus?io(e.fromStatus):"None"} to ${e.toStatus?io(e.toStatus):"None"}`;case mf.ASSIGNED:return"Assigned task";case mf.UNASSIGNED:return"Unassigned task";case mf.PRIORITY_CHANGED:return`Changed priority to ${String(r.to||"")}`;case mf.GOAL_CHANGED:return"Updated goal association";case mf.DEPENDENCY_ADDED:return"Added prerequisite dependency";case mf.DEPENDENCY_REMOVED:return"Removed prerequisite dependency";case mf.CHANGES_REQUESTED:return`Requested changes: "${String(r.reason||"")}"`;case mf.BLOCKED:return`Task blocked: "${String(r.reason||r.blockReason||"")}"`;case mf.UNBLOCKED:return"Task unblocked";case mf.COMMENTED:return"Added a comment";default:return e.type}}function iye({teamId:e,taskId:r,initialEvents:a}){let{data:i,isLoading:s}=Z({queryKey:["teams",e,"kanban","tasks",r,"events"],queryFn:async()=>{let c=await A.api.teams[":teamId"].kanban.tasks[":taskId"].events.$get({param:{teamId:e,taskId:r}});if(!c.ok)throw Error("Failed to fetch events");return await c.json()},initialData:a?{data:a}:void 0,enabled:!!e&&!!r}),l=i?.data||[];return t(ce,{className:"h-full p-3",children:t("div",{className:"space-y-4 pr-2",children:t("div",{className:"space-y-2",children:s?t("div",{className:"flex items-center justify-center py-6",children:t(O,{className:"w-4 h-4 animate-spin text-muted-foreground"})}):l.length===0?t("div",{className:"py-6 text-center text-xs text-muted-foreground",children:T$e()}):t("div",{className:"relative pl-5 space-y-3 before:absolute before:left-[4px] before:top-2 before:bottom-2 before:w-[2px] before:bg-border/60",children:l.map((c)=>o("div",{className:"relative flex items-start gap-2 text-xs",children:[t("div",{className:"absolute -left-5 top-[3px] w-2.5 h-2.5 rounded-full bg-background border-2 border-primary shrink-0"}),o("div",{className:"flex-1 min-w-0",children:[o("div",{className:"flex items-center justify-between gap-1",children:[t("span",{className:"font-medium text-foreground truncate",children:c.actor?.name||"System"}),t("span",{className:"text-[10px] text-muted-foreground font-mono shrink-0",children:Ar(new Date(c.createdAt),"MM/dd HH:mm")})]}),t("p",{className:"text-[11px] text-muted-foreground leading-snug mt-0.5",children:fRt(c)})]})]},c.id))})})})})}function fye({teamId:e,task:r}){let[a,i]=u("comments");return t("div",{className:"flex flex-col h-full bg-sidebar/30 border-l border-border/60 overflow-hidden",children:o(Eo,{value:a,onValueChange:(s)=>i(s),className:"flex flex-col h-full",children:[t("div",{className:"px-3 pt-2.5 pb-1 border-b border-border/60 bg-card/50 shrink-0",children:o(Co,{className:"w-full grid grid-cols-2 h-8 bg-muted/60",children:[o(Yr,{value:"comments",className:"text-xs h-7",children:[t("span",{children:md()}),r.comments.length>0&&o("span",{className:"text-[10px] font-mono text-muted-foreground ml-1",children:["(",r.comments.length,")"]})]}),t(Yr,{value:"activity",className:"text-xs h-7",children:t("span",{children:p2e()})})]})}),o("div",{className:"flex-1 overflow-hidden",children:[t(Rn,{value:"comments",className:"h-full m-0 data-[state=active]:flex data-[state=active]:flex-col",children:t(nye,{teamId:e,taskId:r.id,initialComments:r.comments})}),t(Rn,{value:"activity",className:"h-full m-0 data-[state=active]:block",children:t(iye,{teamId:e,taskId:r.id,initialEvents:r.events})})]})]})})}function nf({teamId:e,taskId:r,isOpen:a,onClose:i,canEdit:s=!0}){let{data:l,isLoading:c,error:d}=Z({queryKey:["teams",e,"kanban","task",r],queryFn:async()=>{if(!r)return null;let h=await A.api.teams[":teamId"].kanban.tasks[":taskId"].$get({param:{teamId:e,taskId:r}});if(!h.ok)throw Error("Failed to fetch task details");return await h.json()},enabled:!!e&&!!r&&a});return t(ue,{open:a,onOpenChange:(h)=>!h&&i(),children:o(ae,{className:"sm:max-w-5xl w-[95vw] h-[88vh] p-0 gap-0 flex flex-col overflow-hidden bg-background",children:[t(pe,{className:"px-5 py-3 border-b border-border/70 flex flex-row items-center justify-between space-y-0 shrink-0 bg-card/80",children:o("div",{className:"flex items-center gap-2 min-w-0 pr-4",children:[l?.isAgentTask&&o("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[11px] font-semibold bg-orange-500/15 text-orange-600 dark:text-orange-400 border border-orange-500/30 shrink-0",children:[t(Tt,{className:"w-3.5 h-3.5"}),t("span",{children:Hd()})]}),l?.status&&t("span",{className:C("px-2 py-0.5 rounded text-[11px] font-medium border uppercase shrink-0",U8(l.status)),children:io(l.status)}),t(le,{className:"text-sm font-semibold truncate text-foreground",children:l?.title||dUe()})]})}),t("div",{className:"flex-1 flex flex-col md:flex-row overflow-hidden",children:c?t("div",{className:"flex-1 flex items-center justify-center p-12",children:t(O,{className:"w-8 h-8 animate-spin text-muted-foreground"})}):d||!l?t("div",{className:"flex-1 flex items-center justify-center p-12 text-xs text-muted-foreground",children:Fh()}):o(L,{children:[t("div",{className:"flex-1 md:w-2/3 h-full overflow-hidden flex flex-col",children:t(E8e,{teamId:e,task:l,canEdit:s})}),t("div",{className:"md:w-1/3 h-full overflow-hidden flex flex-col",children:t(fye,{teamId:e,task:l})})]})})]})})}var sRt=[Qe.TODO,Qe.READY,Qe.IN_PROGRESS,Qe.IN_REVIEW,Qe.DONE,Qe.BLOCKED];function of({teamId:e,assetId:r,assetName:a,isOpen:i,onClose:s}){let l=V(),[c,d]=u(null),[h,g]=u(!1),[x,v]=u(Qe.TODO),[b,y]=u(""),{data:k,isLoading:T}=Z({queryKey:["teams",e,"kanban","assets",r,"tasks"],queryFn:async()=>{let oe=await A.api.teams[":teamId"].kanban.assets[":assetId"].tasks.$get({param:{teamId:e,assetId:r}});if(!oe.ok)throw Error("Failed to fetch linked tasks");return await oe.json()},enabled:!!e&&!!r&&i}),U=k?.data||[],N=D(()=>new Set(U.map((oe)=>oe.id)),[U]),{data:j,isLoading:G}=Z({queryKey:["teams",e,"kanban","tasks","status",x],queryFn:async()=>{let oe=await A.api.teams[":teamId"].kanban.tasks.$get({param:{teamId:e},query:{status:x,first:"100"}});if(!oe.ok)return{data:[]};return await oe.json()},enabled:!!e&&h&&i}),X=j?.data||[],J=D(()=>{let oe=b.trim().toLowerCase();return X.filter((fe)=>{if(N.has(fe.id))return!1;if(!oe)return!0;return fe.title.toLowerCase().includes(oe)})},[X,N,b]),ee=B({mutationFn:async(oe)=>{let fe=await A.api.teams[":teamId"].kanban.assets[":assetId"].tasks.$post({param:{teamId:e,assetId:r},json:{taskId:oe}});if(!fe.ok)throw Error("Failed to link task");return await fe.json()},onSuccess:()=>{l.invalidateQueries({queryKey:["teams",e,"kanban","assets",r,"tasks"]}),l.invalidateQueries({queryKey:["teams",e,"kanban"]}),M.success(gle())}}),re=B({mutationFn:async(oe)=>{let fe=await A.api.teams[":teamId"].kanban.assets[":assetId"].tasks[":taskId"].$delete({param:{teamId:e,assetId:r,taskId:oe}});if(!fe.ok)throw Error("Failed to unlink task");return await fe.json()},onSuccess:()=>{l.invalidateQueries({queryKey:["teams",e,"kanban","assets",r,"tasks"]}),l.invalidateQueries({queryKey:["teams",e,"kanban"]}),M.success(Mle())}});return o(L,{children:[t(ue,{open:i,onOpenChange:(oe)=>!oe&&s(),children:o(ae,{className:"sm:max-w-2xl flex flex-col h-[520px] p-0 overflow-hidden",children:[t(pe,{className:"p-4 border-b flex flex-row items-center justify-between space-y-0 shrink-0",children:o("div",{className:"flex items-center gap-2 min-w-0 pr-4",children:[t(Fo,{className:"w-5 h-5 text-primary shrink-0"}),o("div",{className:"min-w-0",children:[t(le,{className:"text-sm font-semibold truncate",children:Xf()}),a&&t("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:a})]})]})}),t("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden bg-background",children:t(ce,{className:"flex-1 min-h-0 p-4 [&>div>div]:block!",children:T?t("div",{className:"flex items-center justify-center p-12",children:t(O,{className:"w-6 h-6 animate-spin text-muted-foreground"})}):U.length===0?o("div",{className:"flex flex-col items-center justify-center p-12 text-center text-xs text-muted-foreground gap-2",children:[t(Fo,{className:"w-8 h-8 opacity-30"}),t("p",{children:get()})]}):t("div",{className:"space-y-2",children:U.map((oe)=>o("div",{onClick:()=>d(oe.id),className:"flex items-center justify-between gap-3 p-2.5 rounded-lg border border-border/60 bg-muted/20 hover:bg-muted/50 cursor-pointer transition-all hover:border-border",children:[o("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[oe.isAgentTask&&t("span",{className:"p-1 rounded bg-orange-500/15 text-orange-600 dark:text-orange-400 shrink-0",children:t(Tt,{className:"w-3.5 h-3.5"})}),t("span",{className:C("text-[10px] px-1.5 py-0.5 rounded border uppercase font-medium shrink-0",U8(oe.status)),children:io(oe.status)}),t("span",{className:C("text-[10px] px-1.5 py-0.5 rounded border uppercase font-medium shrink-0",la(oe.priority)),children:aa(oe.priority)}),t("span",{className:"text-xs font-medium text-foreground truncate flex-1",children:oe.title})]}),o("div",{className:"flex items-center gap-2 shrink-0",children:[oe.assignee&&o("div",{className:"flex items-center gap-1 text-[11px] text-muted-foreground",title:oe.assignee.name,children:[o(Ce,{className:"w-4 h-4 text-[9px]",children:[t(Ie,{src:oe.assignee.image||void 0}),t(Te,{children:oe.assignee.name.slice(0,1).toUpperCase()})]}),t("span",{className:"hidden sm:inline text-[11px] max-w-[70px] truncate",children:oe.assignee.name})]}),t(E,{type:"button",variant:"ghost",size:"sm",className:"h-6 w-6 p-0 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:(fe)=>{fe.stopPropagation(),re.mutate(oe.id)},title:F8t(),children:t(Ne,{className:"w-3.5 h-3.5"})})]})]},oe.id))})})}),o("div",{className:"p-3 px-4 border-t bg-muted/10 flex items-center justify-between shrink-0",children:[o(At,{open:h,onOpenChange:g,children:[t(_t,{asChild:!0,children:o(E,{variant:"outline",size:"sm",className:"gap-1.5 text-xs h-8",children:[t(de,{className:"w-3.5 h-3.5"}),t("span",{children:IGe()})]})}),o(yt,{className:"w-80 sm:w-96 p-0",align:"start",children:[t("div",{className:"p-2 border-b",children:o("div",{className:"relative",children:[t(Ut,{className:"w-3.5 h-3.5 absolute left-2.5 top-2.5 text-muted-foreground"}),t(z,{placeholder:uut(),value:b,onChange:(oe)=>y(oe.target.value),className:"pl-8 h-8 text-xs bg-muted/30",autoFocus:!0})]})}),t("div",{className:"flex border-b overflow-x-auto p-1 gap-1 bg-muted/20",children:sRt.map((oe)=>t("button",{type:"button",onClick:()=>v(oe),className:C("px-2 py-1 text-[11px] font-medium rounded transition-colors whitespace-nowrap",x===oe?"bg-background shadow-xs text-foreground font-semibold":"text-muted-foreground hover:text-foreground hover:bg-muted/50"),children:io(oe)},oe))}),t(ce,{className:"h-56",children:G?o("div",{className:"flex items-center justify-center p-6 text-xs text-muted-foreground",children:[t(O,{className:"w-4 h-4 animate-spin mr-1.5"}),t("span",{children:Ed()})]}):J.length===0?t("div",{className:"p-6 text-center text-xs text-muted-foreground",children:Cle()}):t("div",{className:"p-1 space-y-0.5",children:J.map((oe)=>o("button",{type:"button",onClick:()=>{ee.mutate(oe.id),g(!1)},className:"w-full text-left p-2 rounded hover:bg-muted/60 transition-colors flex items-center justify-between gap-2 text-xs group",children:[t("span",{className:"truncate flex-1 font-medium text-foreground",children:oe.title}),t("span",{className:C("text-[10px] px-1.5 py-0.5 rounded border uppercase shrink-0",U8(oe.status)),children:io(oe.status)})]},oe.id))})})]})]}),t(E,{variant:"ghost",size:"sm",onClick:s,className:"text-xs h-8",children:Da()})]})]})}),c&&t(nf,{teamId:e,taskId:c,isOpen:!0,onClose:()=>d(null)})]})}function sye({teamId:e,projectId:r,projectName:a,ancestorFolders:i,currentAsset:s,isRootFolder:l,customTerminalBreadcrumb:c,displayStyle:d,onDisplayStyleChange:h,isLeftSidebarCollapsed:g,onLeftSidebarToggle:x,isRightSidebarCollapsed:v,onRightSidebarToggle:b,isChatbotOpen:y=!1,onChatbotToggle:k,isPublic:T=!1,onFolderClick:U,onRename:N,onDelete:j,fileId:G,shareId:X,allowDownload:J=!0,downloadInfo:ee,versions:re,compareMode:oe=!1,canCompareVersions:fe=!1,onCompareVersions:be}){let We=Re(),{canEdit:Ye}=Ot(r),{openMobileMenu:Se}=Kk(),[He,ft]=u(!1),[Je,xt]=u(!1),[Ft,Bt]=u(!1),ie=G||s.id,bt=s.name==="Recently Deleted",Wt=s.name==="All Collections",Fe=!T&&!l&&!bt&&!Wt&&!oe&&!!ie,{data:nr}=Z({queryKey:["teams",e,"kanban","assets",ie,"tasks"],queryFn:async()=>{if(!e||!ie)return{data:[],total:0};let sr=await A.api.teams[":teamId"].kanban.assets[":assetId"].tasks.$get({param:{teamId:e,assetId:ie}});if(!sr.ok)return{data:[],total:0};return await sr.json()},enabled:!!e&&!!ie&&Fe}),fr=nr?.total??nr?.data?.length??0,Jt=!1,Fr=(sr)=>{if(!G)return;if(T&&X){We({to:"/share/$shareId/files/$fileId",params:{shareId:X,fileId:G},search:(mo)=>({...mo,version:sr})});return}if(!r)return;We({to:"/projects/$projectId/files/$fileId",params:{projectId:r,fileId:G},search:(mo)=>({...mo,version:sr})})},Gt=async(sr)=>{if(!G)return;try{let mo=X?await A.api.shares[":shareId"].files[":fileId"]["download-url"].$post({param:{shareId:X,fileId:G},json:{key:sr}}):await A.api.files["download-url"].$post({json:{key:sr,assetId:G}});if(!mo.ok)return;let{url:uo}=await mo.json(),No=document.createElement("a");No.href=uo,No.download="",document.body.appendChild(No),No.click(),document.body.removeChild(No)}catch{}},Ir=s.proxyType!=="audio"&&(ee?.videoTranscodes?.length??0)>0,yr=Boolean(c||!l&&!oe),Tr={name:a,path:T?void 0:`/projects/${r}`,id:"root"},pr=i.slice().reverse().map((sr)=>({name:sr.name||"",path:T?void 0:`/projects/${r}/folders/${sr.id}`,id:sr.id})),po=yr?pr:pr.slice(0,-1),lo=!yr&&pr.length>0?pr[pr.length-1]:null,xa=()=>{if(c)return t("span",{className:"truncate rounded px-2 py-1 text-sm font-medium text-foreground",children:c});if(!l&&!oe){if(s.type==="folder")return t("span",{className:"truncate rounded px-2 py-1 text-sm font-medium text-foreground",children:s.name});return o(ge,{modal:!1,open:Ft,onOpenChange:Bt,children:[o("div",{className:"flex items-center gap-1 truncate rounded px-2 py-1 text-sm font-medium text-foreground transition-colors hover:bg-accent hover:text-accent-foreground cursor-pointer select-none",onClick:()=>Bt((sr)=>!sr),children:[t("span",{className:"truncate",children:s.name}),s.version!==void 0&&o(me,{variant:"outline",className:"px-1 py-0 text-xs shrink-0",children:["v",s.version]}),t(Ae,{asChild:!0,onClick:(sr)=>sr.stopPropagation(),onPointerDown:(sr)=>sr.stopPropagation(),children:t("button",{type:"button","aria-label":s.name,className:"flex items-center justify-center p-0.5 rounded shrink-0 focus:outline-none",children:t(ve,{className:"h-4 w-4 shrink-0"})})})]}),o(_e,{className:"w-56",align:"center",children:[J&&(Ir?o(ms,{children:[t(hs,{className:"flex items-center gap-2",children:t("span",{children:gr()})}),t(ra,{children:o(gs,{className:"w-48",children:[t(Wr,{children:gr()}),ee?.videoTranscodes?.map((sr)=>{let mo=vs(sr),uo=sr.hdr?`${mo} (HDR)`:mo;return o(K,{onClick:()=>Gt(sr.key),className:"flex items-center justify-between",children:[t("span",{children:uo}),t("span",{className:"text-xs text-muted-foreground",children:"MP4"})]},sr.key||`${mo}-${sr.hdr?"hdr":"sdr"}`)}),ee?.originalKey&&o(L,{children:[t(Vt,{}),o(K,{onClick:()=>Gt(ee.originalKey),className:"flex items-center justify-between",children:[t("span",{children:"Original"}),t("span",{className:"text-xs text-muted-foreground",children:s.name?.split(".").pop()?.toUpperCase()||"RAW"})]})]})]})})]}):t(K,{onClick:()=>ee?.originalKey&&Gt(ee.originalKey),disabled:!ee?.originalKey,children:gr()})),Ye&&N&&t(K,{onClick:N,children:Zo()}),Ye&&j&&t(K,{onClick:j,className:"text-destructive focus:text-destructive",children:ct()}),fe&&be&&o(L,{children:[t(Vt,{}),o(K,{onClick:()=>be(),children:[t(i8,{className:"h-4 w-4"}),t("span",{children:CFe()})]})]}),re&&re.length>0&&o(L,{children:[t(Vt,{}),o(ms,{children:[o(hs,{className:"flex items-center gap-2",children:[t(Tn,{className:"h-4 w-4"}),t("span",{children:"Versions"})]}),t(ra,{children:o(gs,{className:"w-80 p-1",children:[t("div",{className:"flex flex-col gap-1 max-h-96 overflow-y-auto",children:re.map((sr)=>{let mo=s.version===sr.version;return o(K,{onClick:()=>Fr(sr.id),className:"flex items-center gap-3 py-2 px-3 rounded-md cursor-pointer focus:bg-accent focus:text-accent-foreground",children:[o("div",{className:"flex-shrink-0 flex items-center justify-center bg-muted dark:bg-muted-foreground/20 text-muted-foreground dark:text-muted-foreground rounded-full px-2 py-0.5 text-xs font-semibold select-none min-w-[2rem]",children:["v",sr.version]}),t("div",{className:"h-10 w-16 flex-shrink-0 overflow-hidden rounded-md border border-border bg-muted flex items-center justify-center",children:sr.previewUrl?t("img",{src:sr.previewUrl,alt:sr.name||void 0,className:"h-full w-full object-cover"}):t(ar,{className:"h-4 w-4 text-muted-foreground"})}),o("div",{className:"flex flex-col flex-1 min-w-0 text-left",children:[t("span",{className:"truncate text-sm font-semibold text-foreground",children:sr.name}),t("span",{className:"truncate text-xs text-muted-foreground flex items-center gap-1",children:sr.agent?o(L,{children:[t(Tt,{className:"h-3 w-3 shrink-0"}),t("span",{className:"truncate",children:tu({user:sr.creator?.name||Ll(),agent:sr.agent.name})})]}):sr.creator?.name||Ll()})]}),mo&&t(Pe,{className:"h-4 w-4 text-primary ml-auto flex-shrink-0"})]},sr.id)})}),t(Vt,{}),t("div",{className:"p-1",children:t("button",{className:"w-full text-center text-xs font-medium py-2 px-3 rounded-md bg-muted/80 hover:bg-muted text-foreground transition-colors cursor-pointer",onClick:()=>ft(!0),children:tp()})})]})})]})]})]})]})}return null};return o("div",{className:"flex h-14 flex-nowrap items-center justify-between gap-2 border-b border-border bg-card px-4 py-2 overflow-hidden",children:[o("div",{className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden",children:[!T&&t(E,{variant:"ghost",size:"icon",onClick:()=>Se(),className:"md:hidden h-8 w-8 text-foreground hover:bg-accent shrink-0 -ml-2 mr-1","aria-label":"Open navigation menu",children:t(XZ,{className:"h-5 w-5"})}),!T&&o("div",{className:"hidden md:flex items-center gap-1 shrink-0",children:[t(gn,{to:`/teams/${e}`,className:"truncate rounded px-2 py-1 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground text-muted-foreground",children:OOe()}),t("span",{className:"text-muted-foreground",children:"/"})]}),yr||i.length>0?Tr.path?t(gn,{to:Tr.path,className:"min-w-0 max-w-[45%] md:max-w-none truncate rounded px-1.5 md:px-2 py-1 text-sm font-medium text-foreground transition-colors hover:bg-accent hover:text-accent-foreground shrink",children:Tr.name}):t("button",{onClick:()=>Tr.id&&U?.(Tr.id),className:"min-w-0 max-w-[45%] md:max-w-none truncate rounded px-1.5 md:px-2 py-1 text-sm font-medium text-foreground transition-colors hover:bg-accent hover:text-accent-foreground text-left shrink cursor-pointer",children:Tr.name}):t("span",{className:"min-w-0 flex-1 truncate rounded px-1.5 md:px-2 py-1 text-sm font-medium text-foreground",children:Tr.name}),po.length>0&&o("div",{className:"flex md:hidden items-center gap-1 shrink-0",children:[t("span",{className:"text-muted-foreground shrink-0",children:"/"}),o(ge,{modal:!1,children:[t(Ae,{asChild:!0,children:t("button",{className:"text-muted-foreground hover:text-foreground text-sm font-medium px-1.5 py-0.5 rounded hover:bg-accent shrink-0 cursor-pointer","aria-label":"Show omitted folders",children:"..."})}),t(_e,{align:"start",children:po.map((sr,mo)=>t(K,{asChild:!0,children:sr.path?t(gn,{to:sr.path,className:"cursor-pointer",children:sr.name}):t("button",{onClick:()=>sr.id&&U?.(sr.id),className:"cursor-pointer w-full text-left",children:sr.name})},mo))})]}),t("span",{className:"text-muted-foreground shrink-0",children:"/"})]}),i.slice().reverse().map((sr)=>{let mo=T?void 0:`/projects/${r}/folders/${sr.id}`;return o("div",{className:"hidden md:flex items-center gap-1",children:[t("span",{className:"text-muted-foreground",children:"/"}),mo?t(gn,{to:mo,className:"truncate rounded px-2 py-1 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground text-foreground",children:sr.name}):t("button",{onClick:()=>sr.id&&U?.(sr.id),className:"truncate rounded px-2 py-1 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground text-foreground",children:sr.name})]},sr.id)}),(yr||!yr&&i.length>0)&&o("div",{className:"flex items-center gap-1 min-w-0 shrink overflow-hidden",children:[t("span",{className:C("text-muted-foreground shrink-0",po.length>0?"hidden md:inline":"inline"),children:"/"}),yr?xa():lo&&t("span",{className:"min-w-0 truncate rounded px-2 py-1 text-sm font-medium text-foreground",children:lo.name})]}),Fe&&o(E,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs gap-1.5 text-muted-foreground hover:text-foreground hover:bg-muted ml-1 cursor-pointer shrink-0",onClick:()=>xt(!0),title:Xf(),children:[t(Fo,{className:"w-4 h-4"}),fr>0&&t("span",{className:"inline-flex items-center justify-center px-1.5 py-0.2 text-[10px] font-semibold rounded-full bg-muted-foreground/15 text-foreground",children:fr})]})]}),Fe&&Je&&ie&&t(of,{teamId:e,assetId:ie,assetName:s.name,isOpen:Je,onClose:()=>xt(!1)}),G&&re&&re.length>0&&t(Jd,{open:He,onOpenChange:ft,stackId:G,canEdit:Ye,onStackDissolved:(sr)=>{ft(!1),We({to:"/projects/$projectId/files/$fileId",params:{projectId:r,fileId:sr}})},onVersionRemoved:(sr,mo)=>{if((s.version?re.find((No)=>No.version===s.version)?.id:void 0)===sr){let No=mo[0];if(No)We({to:"/projects/$projectId/files/$fileId",params:{projectId:r,fileId:G},search:(hn)=>({...hn,version:No.id})})}}}),o("div",{className:"hidden md:flex items-center gap-2",children:[o("div",{className:"flex flex-shrink-0 items-center gap-1 rounded-md border border-border bg-background p-1",children:[!G&&!T&&x&&t("button",{onClick:x,className:"rounded p-1.5 text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground",title:g?"Show Left Sidebar":"Hide Left Sidebar",children:g?t(gMe,{className:"h-4 w-4"}):t(xMe,{className:"h-4 w-4 fill-primary stroke-0"})}),!G&&!T&&d&&h&&o(L,{children:[t("button",{onClick:()=>h("card"),className:`rounded p-1.5 transition-colors ${d==="card"?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"}`,title:"Card View",children:t(no,{className:"h-4 w-4"})}),t("button",{onClick:()=>h("list"),className:`rounded p-1.5 transition-colors ${d==="list"?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"}`,title:"List View",children:t(Lo,{className:"h-4 w-4"})})]}),t("button",{onClick:b,className:`rounded p-1.5 transition-colors ${!v&&!y?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"}`,title:v?"Show Right Sidebar":"Hide Right Sidebar",children:!v&&!y?t(vMe,{className:"h-4 w-4 fill-primary stroke-0"}):t(MMe,{className:"h-4 w-4"})})]}),!T&&k&&t(sn,{children:o(an,{children:[t(ln,{asChild:!0,children:t("span",{children:t("button",{disabled:!1,onClick:k,className:C("h-9 w-9 flex items-center justify-center rounded-full border border-border bg-background transition-colors",y?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground",!1),children:y?t(yMe,{className:"h-6 w-6 text-primary transition-colors"}):t(Tt,{className:"h-6 w-6 text-muted-foreground transition-colors"})})})}),t(cn,{children:t("p",{children:y?lWe():AZt()})})]})})]})]})}var $t=Rr()(Gk((e)=>({fileViewLeftSidebarCollapsed:!0,setFileViewLeftSidebarCollapsed:(r)=>e({fileViewLeftSidebarCollapsed:r}),fileViewRightSidebarCollapsed:!1,setFileViewRightSidebarCollapsed:(r)=>e({fileViewRightSidebarCollapsed:r}),fileListLeftSidebarCollapsed:!1,setFileListLeftSidebarCollapsed:(r)=>e({fileListLeftSidebarCollapsed:r}),fileListRightSidebarCollapsed:!0,setFileListRightSidebarCollapsed:(r)=>e({fileListRightSidebarCollapsed:r}),shareConfigLeftSidebarCollapsed:!1,setShareConfigLeftSidebarCollapsed:(r)=>e({shareConfigLeftSidebarCollapsed:r}),shareConfigRightSidebarCollapsed:!1,setShareConfigRightSidebarCollapsed:(r)=>e({shareConfigRightSidebarCollapsed:r}),viewModes:{},setViewMode:(r,a)=>e((i)=>({viewModes:{...i.viewModes,[r]:a}})),videoTimeDisplayMode:"standard",setVideoTimeDisplayMode:(r)=>e({videoTimeDisplayMode:r})}),{name:"ui-storage",storage:Iz(()=>localStorage)}));var SK="shumai_selected_agent_id",lye=()=>{if(typeof window<"u"&&window.localStorage)return localStorage.getItem(SK);return null},ur=Rr((e)=>({isChatbotOpen:!1,setIsChatbotOpen:(r)=>e({isChatbotOpen:r}),isHistoryMode:!1,setIsHistoryMode:(r)=>e({isHistoryMode:r}),currentSessionId:null,setCurrentSessionId:(r)=>e({currentSessionId:r}),chatAssets:[],addAssets:(r)=>e((a)=>{let i=new Set(a.chatAssets.map((l)=>l.id)),s=r.filter((l)=>!i.has(l.id));return{chatAssets:[...a.chatAssets,...s]}}),removeAsset:(r)=>e((a)=>({chatAssets:a.chatAssets.filter((i)=>i.id!==r)})),clearAssets:()=>e({chatAssets:[]}),messages:[],setMessages:(r)=>e({messages:r}),historySessions:[],setHistorySessions:(r)=>e({historySessions:r}),isStreaming:!1,setIsStreaming:(r)=>e({isStreaming:r}),selectedAgentId:lye(),setSelectedAgentId:(r)=>{if(typeof window<"u"&&window.localStorage)if(r)localStorage.setItem(SK,r);else localStorage.removeItem(SK);e({selectedAgentId:r})},inputText:"",setInputText:(r)=>e({inputText:r}),scrollTop:0,isAtBottom:!0,setScrollState:(r,a)=>e({scrollTop:r,isAtBottom:a}),fetchHistorySessions:async(r)=>{try{let a=await A.api.teams[":teamId"].chat.sessions.$get({param:{teamId:r},query:{first:"50"}});if(a.ok){let i=await a.json();e({historySessions:i.data||[]})}}catch(a){console.error("Failed to fetch history sessions:",a)}},loadSession:async(r,a)=>{try{let i=await A.api.teams[":teamId"].chat.sessions[":sessionId"].messages.$get({param:{teamId:r,sessionId:a}});if(i.ok){let s=await i.json(),c=ur.getState().historySessions.find((d)=>d.id===a)?.agentId||null;e({currentSessionId:a,messages:s,isHistoryMode:!1,scrollTop:0,isAtBottom:!0,...c?{selectedAgentId:c}:{}})}else throw Error("Failed to load session messages")}catch(i){let s=i instanceof Error?i.message:"Failed to load session";M.error(s)}},deleteSession:async(r,a)=>{try{if((await A.api.teams[":teamId"].chat.sessions[":sessionId"].$delete({param:{teamId:r,sessionId:a}})).ok)M.success("Session deleted successfully"),e((s)=>({historySessions:s.historySessions.filter((l)=>l.id!==a),currentSessionId:s.currentSessionId===a?null:s.currentSessionId,messages:s.currentSessionId===a?[]:s.messages}));else throw Error("Failed to delete session")}catch(i){let s=i instanceof Error?i.message:"Failed to delete session";M.error(s)}},startNewSession:()=>{let r=lye();e({currentSessionId:null,messages:[],chatAssets:[],inputText:"",scrollTop:0,isAtBottom:!0,...r?{selectedAgentId:r}:{}})},sendMessage:async(r,a,i,s,l,c,d,h,g)=>{let x=ur.getState();if(x.isStreaming)return;let v=`temp-${Date.now()}`,b={id:v,role:"custom",customType:"shumai_message",content:a,display:!0,details:{currentAsset:s?{id:s,name:"",type:"file"}:void 0,position:h!==void 0&&h!==null?{type:"time",seconds:h}:void 0,annotation:!!(d&&d.length>0),annotations:d||void 0,attachedFiles:g||void 0,referencedAssets:x.chatAssets.length>0?x.chatAssets.map((U)=>({id:U.id,name:U.name,type:U.type})):void 0},timestamp:Date.now()},y=[...x.messages,b];e({messages:y,isStreaming:!0,chatAssets:[],isAtBottom:!0});let k=x.chatAssets.map((U)=>U.id),T=x.selectedAgentId;if(!T){M.error("No agent selected");return}try{let U=await A.api.teams[":teamId"].chat.$post({param:{teamId:r},json:{agentId:T,textPrompt:a||void 0,attachedFiles:c&&c.length>0?c:void 0,assetIds:k&&k.length>0?k:void 0,sessionId:x.currentSessionId||void 0,contextAssetId:s,projectId:i,second:h??void 0,annotations:d&&d.length>0?d:void 0}});if(!U.ok)throw Error("Failed to start chat");let N=U.headers.get("x-session-id");if(N&&!x.currentSessionId)e({currentSessionId:N});let j=U.body?.getReader();if(!j)throw Error("No stream body");let G=new TextDecoder,X="";while(!0){let{done:ee,value:re}=await j.read();if(ee)break;X+=G.decode(re,{stream:!0});let oe=X.split(`
|
|
211
|
+
`);X=oe.pop()||"";for(let fe of oe){let be=fe.trim();if(!be)continue;if(be.startsWith("data: ")){let We=be.slice(6);try{let Ye=JSON.parse(We);if(Ye.type==="session"){if(!ur.getState().currentSessionId)e({currentSessionId:Ye.sessionId})}else if(Ye.type==="entry"){let Se=Ye.entry,He=Se;if(He.role==="toolResult"&&typeof He.toolName==="string"&&["create_file","create_folder","create_version","rename_asset","move_assets","delete_asset"].includes(He.toolName)&&!He.isError)l?.();e((ft)=>{let Je=ft.messages.some((ie)=>ie.id===Se.id),xt=(Se.role==="user"||Se.role==="custom"&&Se.customType==="shumai_message")&&!Je,Ft=ft.messages.filter((ie)=>{if(xt)return!ie.id.startsWith("temp-");if(Se.role==="custom"&&Se.customType==="context_display_info"&&!Je)return!ie.id.startsWith("temp-context-");return!0}),Bt=Ft.findIndex((ie)=>ie.id===Se.id);if(Bt!==-1){let ie=[...Ft];return ie[Bt]=Se,{messages:ie}}else return{messages:[...Ft,Se]}})}else if(Ye.type==="done"){if(Ye.status==="failed")M.error(Ye.error||"Workflow failed")}}catch(Ye){console.error("Error parsing SSE line:",Ye)}}}}ur.getState().fetchHistorySessions(r)}catch(U){let N=U instanceof Error?U.message:"Failed to send message";M.error(N),e((j)=>({messages:j.messages.filter((G)=>G.id!==v)}))}finally{e({isStreaming:!1})}},abortActiveSession:async(r)=>{let{currentSessionId:a,isStreaming:i}=ur.getState();if(!a||!i)return;try{if((await A.api.teams[":teamId"].chat.sessions[":sessionId"].abort.$post({param:{teamId:r,sessionId:a}})).ok)M.success("Agent execution stopped");else throw Error("Failed to abort agent execution")}catch(s){let l=s instanceof Error?s.message:"Failed to abort execution";M.error(l)}}}));var _r=Rr((e,r)=>({metadata:{},isLoading:!1,error:null,fetchMetadata:async(a)=>{e({isLoading:!0,error:null});try{let i=await A.api.teams[":teamId"]["user-metadata"].$get({param:{teamId:a}});if(!i.ok)throw Error("failed to fetch user metadata");let l=(await i.json()).reduce((c,d)=>(c[d.key]=d.value,c),{});e({metadata:l,isLoading:!1})}catch(i){e({error:i instanceof Error?i.message:String(i),isLoading:!1})}},setMetadata:async(a,i,s)=>{let l=r().metadata;e((c)=>({metadata:{...c.metadata,[i]:s}}));try{if(!(await A.api.teams[":teamId"]["user-metadata"][":key"].$put({param:{teamId:a,key:i},json:{value:s}})).ok)throw Error("failed to update user metadata")}catch(c){e({metadata:l}),console.error(c)}},getMetadata:(a,i)=>{let s=r().metadata[a];return s!==void 0?s:i}}));S();var LK=768;function Bo(){let[e,r]=u(void 0);return m(()=>{let a=window.matchMedia(`(max-width: ${LK-1}px)`),i=()=>{r(window.innerWidth<LK)};return a.addEventListener("change",i),r(window.innerWidth<LK),()=>a.removeEventListener("change",i)},[]),!!e}function sf(){let{projectState:e}=un(),r=$t(),{isChatbotOpen:a,setIsChatbotOpen:i}=ur(),s=_r((Bt)=>Boolean(Bt.metadata["appearance.hideAgent"]));if(Bo()&&e?.fileId)return null;if(!e)return t(lRt,{});let{teamId:c,projectId:d,projectName:h,ancestorFolders:g,currentAsset:x,isRootFolder:v,customTerminalBreadcrumb:b,fileId:y,downloadInfo:k,versions:T,isPublic:U,shareId:N,allowDownload:j,onFolderClick:G,onRename:X,onDelete:J,compareMode:ee,canCompareVersions:re,onCompareVersions:oe}=e,fe=!!y,be=!!b,We=!!N&&!fe,Ye=fe?r.fileViewLeftSidebarCollapsed:We?r.shareConfigLeftSidebarCollapsed:r.fileListLeftSidebarCollapsed,Se=U?void 0:()=>fe?r.setFileViewLeftSidebarCollapsed(!r.fileViewLeftSidebarCollapsed):We?r.setShareConfigLeftSidebarCollapsed(!r.shareConfigLeftSidebarCollapsed):r.setFileListLeftSidebarCollapsed(!r.fileListLeftSidebarCollapsed),He=U&&e.isRightSidebarCollapsed!==void 0?e.isRightSidebarCollapsed:fe?r.fileViewRightSidebarCollapsed:We?r.shareConfigRightSidebarCollapsed:r.fileListRightSidebarCollapsed,ft=U&&e.onRightSidebarToggle?e.onRightSidebarToggle:()=>{if(!U&&a&&!s)if(i(!1),fe)r.setFileViewRightSidebarCollapsed(!1);else if(We)r.setShareConfigRightSidebarCollapsed(!1);else r.setFileListRightSidebarCollapsed(!1);else if(fe)r.setFileViewRightSidebarCollapsed(!r.fileViewRightSidebarCollapsed);else if(We)r.setShareConfigRightSidebarCollapsed(!r.shareConfigRightSidebarCollapsed);else r.setFileListRightSidebarCollapsed(!r.fileListRightSidebarCollapsed)},Je=U||s?void 0:()=>{i(!a)},xt=d?r.viewModes[d]??"card":"card";return t(sye,{teamId:c,projectId:d,projectName:h,ancestorFolders:g,currentAsset:x,isRootFolder:v,customTerminalBreadcrumb:b,displayStyle:fe||We||be?void 0:xt,onDisplayStyleChange:fe||We||be?void 0:U?void 0:(Bt)=>{if(d)r.setViewMode(d,Bt)},isLeftSidebarCollapsed:Ye,onLeftSidebarToggle:Se,isRightSidebarCollapsed:He,onRightSidebarToggle:ft,isChatbotOpen:!U&&!s&&a,onChatbotToggle:s?void 0:Je,isPublic:U,shareId:N,allowDownload:j,fileId:y,downloadInfo:k,versions:T,onFolderClick:G,onRename:X,onDelete:J,compareMode:ee,canCompareVersions:re,onCompareVersions:oe})}function lRt(){let{toggleMobileMenu:e}=Kk();return o("div",{className:"flex h-14 items-center justify-between border-b border-border bg-card px-4 py-2 flex-shrink-0",children:[t(E,{variant:"ghost",size:"icon",onClick:e,className:"md:hidden text-foreground hover:bg-accent -ml-2","aria-label":"Open navigation menu",children:t(XZ,{className:"h-5 w-5"})}),t("div",{className:"flex flex-1 items-center justify-center",children:t(hM,{className:"w-10 h-10 text-orange-600"})}),t("div",{className:"w-9 md:hidden"})]})}S();var cRt=(e,r,a,i,s,l,c,d)=>{let h=document.documentElement,g=["light","dark"];function x(y){(Array.isArray(e)?e:[e]).forEach((k)=>{let T=k==="class",U=T&&l?s.map((N)=>l[N]||N):s;T?(h.classList.remove(...U),h.classList.add(l&&l[y]?l[y]:y)):h.setAttribute(k,y)}),v(y)}function v(y){d&&g.includes(y)&&(h.style.colorScheme=y)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(i)x(i);else try{let y=localStorage.getItem(r)||a,k=c&&y==="system"?b():y;x(k)}catch(y){}};var uRt=lt(void 0),dRt={setTheme:(e)=>{},themes:[]},cye=()=>{var e;return(e=pt(uRt))!=null?e:dRt};var Jqn=Un(({forcedTheme:e,storageKey:r,attribute:a,enableSystem:i,enableColorScheme:s,defaultTheme:l,value:c,themes:d,nonce:h,scriptProps:g})=>{let x=JSON.stringify([a,r,l,e,d,c,i,s]).slice(1,-1);return q("script",{...g,suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(${cRt.toString()})(${x})`}})});var uye=({...e})=>{let{theme:r="system"}=cye();return t(Ide,{theme:r,className:"toaster group",icons:{success:t(ir,{className:"size-4"}),info:t(Hn,{className:"size-4"}),warning:t(Kr,{className:"size-4"}),error:t(f8,{className:"size-4"}),loading:t(O,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...e})};var bn=Rr((e)=>({uploading:0,tasks:{},fileProgress:{},increment:()=>e((r)=>({uploading:r.uploading+1})),decrement:()=>e((r)=>({uploading:r.uploading-1})),startTask:(r,a,i)=>e((s)=>{let l={},c=0;i.forEach((g)=>{l[g.fileId]={fileId:g.fileId,name:g.name,loaded:0,total:g.size,status:"uploading"},c+=g.size});let d={...s.tasks,[r]:{taskId:r,name:a,loaded:0,total:c,files:l}},h={...s.fileProgress};return i.forEach((g)=>{h[g.fileId]=l[g.fileId]}),{tasks:d,fileProgress:h}}),updateFileProgress:(r,a,i)=>e((s)=>{let l=s.tasks[r];if(!l)return{};let c=l.files[a];if(!c)return{};let d={...c,loaded:i},h={...l.files,[a]:d},g=Object.values(h).reduce((x,v)=>x+v.loaded,0);return{tasks:{...s.tasks,[r]:{...l,loaded:g,files:h}},fileProgress:{...s.fileProgress,[a]:d}}}),completeFile:(r,a)=>e((i)=>{let s=i.tasks[r];if(!s)return{};let l=s.files[a];if(!l)return{};let c={...l,status:"completed",loaded:l.total},d={...s.files,[a]:c},h=Object.values(d).reduce((g,x)=>g+x.loaded,0);return{tasks:{...i.tasks,[r]:{...s,loaded:h,files:d}},fileProgress:{...i.fileProgress,[a]:c}}}),failFile:(r,a)=>e((i)=>{let s=i.tasks[r];if(!s)return{};let l=s.files[a];if(!l)return{};let c={...l,status:"failed"},d={...s.files,[a]:c},h=Object.values(d).reduce((g,x)=>g+x.loaded,0);return{tasks:{...i.tasks,[r]:{...s,loaded:h,files:d}},fileProgress:{...i.fileProgress,[a]:c}}})}));S();function af({className:e,value:r,...a}){return t(CRe,{"data-slot":"progress",className:C("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...a,children:t(IRe,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(r||0)}%)`}})})}function ZRt(e){let r=uM(e);if(isNaN(r.getTime()))return _8t();if(sO(r))return Ple();if(lO(r))return Tle();return Ar(r,Dje())}function dye(e){if(e===0)return"0 B";let r=1024,a=["B","KB","MB","GB","TB"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(1))+" "+a[i]}function pRt({task:e}){let r=bn((l)=>l.tasks[e.id]),a=r?r.loaded===r.total&&e.uploaded===e.total:e.uploaded===e.total,i=r?r.total>0?r.loaded/r.total*100:0:e.total>0?e.uploaded/e.total*100:0,s;try{s=kn(e.createdAt)}catch{s=An()}return o("div",{className:"group relative flex flex-col p-4 rounded-xl border border-sidebar-border bg-sidebar-accent/30 text-sidebar-foreground shadow-xs transition-all duration-200 hover:shadow-md hover:border-sidebar-foreground/20 hover:bg-sidebar-accent/50",children:[o("div",{className:"flex items-start justify-between gap-2 mb-2",children:[t("div",{className:"min-w-0 flex-1",children:t("span",{className:"text-sm font-semibold tracking-tight text-sidebar-foreground truncate block",title:e.name,children:e.name||K8t()})}),t("div",{className:"flex-shrink-0",children:a?o("span",{className:"inline-flex items-center gap-1 text-xs font-semibold text-muted-foreground bg-muted px-2 py-0.5 rounded-full transition-colors",children:[t(ir,{className:"w-3.5 h-3.5"}),F6e()]}):o("span",{className:"inline-flex items-center gap-1 text-xs font-semibold text-sidebar-primary bg-sidebar-primary/10 px-2 py-0.5 rounded-full animate-pulse",children:[t(O,{className:"w-3.5 h-3.5 animate-spin"}),vxt()]})})]}),o("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground mb-3 font-medium",children:[t(er,{className:"w-3.5 h-3.5 text-muted-foreground/75"}),t("span",{children:s})]}),o("div",{className:"space-y-1.5 mt-auto",children:[o("div",{className:"flex items-center justify-between text-xs font-semibold",children:[t("span",{className:"text-muted-foreground/80",children:r?`${dye(r.loaded)} / ${dye(r.total)} (${yle({uploaded:e.uploaded,total:e.total})})`:yle({uploaded:e.uploaded,total:e.total})}),!a&&o("span",{className:"text-sidebar-primary font-mono font-bold",children:[Math.round(i),"%"]})]}),t(af,{value:i,className:"h-1.5 w-full bg-muted"})]})]})}function Zye(){let e=As(),r=bn((y)=>y.uploading),a=bn((y)=>y.tasks),{data:i,fetchNextPage:s,hasNextPage:l,isFetchingNextPage:c,isLoading:d}=mt({queryKey:["teams",e,"upload","tasks"],queryFn:async({pageParam:y})=>{let k=await A.api.teams[":teamId"].upload.tasks.$get({param:{teamId:e},query:{after:y}});if(!k.ok)throw Error("Failed to fetch upload tasks");return await k.json()},initialPageParam:"",getNextPageParam:(y)=>y.pageInfo?.cursor||void 0,enabled:!!e,refetchInterval:r>0?2000:!1}),{ref:h,inView:g}=Nt();m(()=>{if(g&&l&&!c)s()},[g,l,c,s]);let x=i?.pages.flatMap((y)=>y.data??[])??[],v=D(()=>{let y=new Set(x.map((T)=>T.id));return[...Object.values(a).filter((T)=>!y.has(T.taskId)).map((T)=>{let U=Object.values(T.files).filter((N)=>N.status==="completed"||N.status==="failed").length;return{id:T.taskId,name:T.name,total:Object.keys(T.files).length,uploaded:U,createdAt:new Date().toISOString()}}),...x].sort((T,U)=>U.id.localeCompare(T.id))},[x,a]);if(d)return t("div",{className:"flex items-center justify-center p-8",children:t(O,{className:"h-6 w-6 animate-spin text-muted-foreground"})});if(v.length===0)return o("div",{className:"flex flex-col items-center justify-center p-8 text-center border border-dashed border-border rounded-xl bg-muted/10 my-4",children:[t(zn,{className:"h-8 w-8 text-muted-foreground/50 mb-3"}),t("p",{className:"text-sm font-semibold text-muted-foreground",children:vtt()}),t("p",{className:"text-xs text-muted-foreground/60 mt-1 max-w-[180px]",children:gtt()})]});let b=[];return v.forEach((y)=>{let k=ZRt(y.createdAt),T=b.find((U)=>U.day===k);if(!T)T={day:k,tasks:[]},b.push(T);T.tasks.push(y)}),o("div",{className:"flex flex-col space-y-4",children:[b.map((y)=>o("div",{className:"relative flex flex-col",children:[o("div",{className:"sticky top-0 bg-sidebar/95 backdrop-blur-sm z-10 py-2 px-1 flex items-center justify-between border-b border-border/40",children:[t("span",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground/80",children:y.day}),t("span",{className:"text-[10px] font-semibold text-muted-foreground/60 bg-muted px-2 py-0.5 rounded-full",children:y.tasks.length===1?YJe({count:y.tasks.length}):jJe({count:y.tasks.length})})]}),t("div",{className:"mt-3 space-y-3",children:y.tasks.map((k)=>t(pRt,{task:k},k.id))})]},y.day)),l&&t("div",{ref:h,className:"flex items-center justify-center p-4",children:c&&t(O,{className:"h-5 w-5 animate-spin text-muted-foreground"})})]})}S();async function pye(e){let r=e.match(/^\/teams\/([^/]+)/),a=r?r[1]:null;if(a)return a;let i=e.match(/^\/projects\/([^/]+)/),s=i?i[1]:null;if(s){let{ensureTeamIdForProject:l}=ut.getState();return await l(s)}return null}function mRt(){let e=bf((k)=>k.user),{uploading:r}=bn(),a=nz({select:(k)=>k.location.pathname}),i=Re(),{teamId:s,setTeamId:l}=ut(),{projectState:c}=un(),d=e&&(a.startsWith("/teams/")||a.startsWith("/projects/"));m(()=>{pye(a).then((k)=>{if(k&&k!==s)l(k)})},[a,s,l]);let{data:h}=Z({queryKey:["teams",s,"me"],queryFn:async()=>{if(!s)return null;let k=await A.api.teams[":teamId"].me.$get({param:{teamId:s}});if(!k.ok)throw Error("Failed to fetch me");return await k.json()},enabled:!!s});if(!d)return t(AM,{});let g=h?.unreadNotificationCount??0,x=g>99?"99+":g,v=g>0?t("span",{className:"absolute justify-center top-0 -right-1 mt-1 inline-flex items-center px-1.5 py-0.5 rounded-full text-xs leading-4 bg-red-400 dark:bg-red-500 text-white pointer-events-none h-5 min-w-5",children:x}):null,b=a.includes("/kanban"),y=a.includes("/dashboard");return o("div",{className:"flex h-[100dvh] w-full bg-background overflow-hidden",children:[t(uye,{}),o(Ele,{hideMobileButton:!0,defaultMobileContent:c?.projectId?{label:_le(),children:t(vr,{teamId:c.teamId,projectId:c.projectId,projectName:c.projectName,rootFolderId:c.rootFolderId||"",ancestorFolders:c.ancestorFolders})}:void 0,children:[t(Jz,{icon:t(bMe,{}),label:_We(),onItemClick:()=>{if(s)i({to:"/teams/$teamId",params:{teamId:s}})}}),t(Jz,{icon:t(_Me,{}),label:_g(),badge:v,children:t(hMe,{})}),t(Jz,{icon:t(wMe,{uploading:r>0,className:r>0?"text-blue-500":""}),label:bxt(),children:t(Zye,{})}),t(Jz,{icon:t(zMe,{}),label:cGe(),active:b,onItemClick:()=>{if(s)i({to:"/teams/$teamId/kanban",params:{teamId:s}})}}),h?.role?.toLowerCase()==="owner"&&t(Jz,{icon:t(SMe,{}),label:mh(),active:y,onItemClick:()=>{if(s)i({to:"/teams/$teamId/dashboard",params:{teamId:s}})}})]}),o("div",{className:"flex flex-col flex-1 md:pl-16 overflow-hidden relative",children:[t(sf,{}),t("main",{className:"flex-1 overflow-hidden relative flex flex-col",children:t(AM,{})})]})]})}var Bn=M6()({beforeLoad:async({location:e})=>{if(typeof window<"u"){let r=e.pathname,a=await pye(r);if(a){let{fetchMetadata:i,getMetadata:s}=_r.getState();try{await i(a);let l=s("locale");if((l==="en"||l==="zh")&&l!==n())Na(l,{reload:!1})}catch(l){console.error("Failed to load user locale metadata:",l)}}document.documentElement.setAttribute("lang",n())}},component:mRt});function Ul({children:e}){return o("div",{className:"min-h-screen w-full flex items-center justify-center p-4 md:p-8 bg-zinc-100/80 dark:bg-black font-sans overflow-hidden relative",children:[t("div",{className:"bg-rose-500/10 dark:bg-rose-600/5 w-[600px] h-[600px] rounded-full blur-[140px] absolute top-[-10%] left-[-10%] animate-drift-slow"}),t("div",{className:"bg-orange-500/10 dark:bg-orange-600/5 w-[600px] h-[600px] rounded-full blur-[140px] absolute bottom-[-10%] right-[-10%] animate-drift-medium"}),o("div",{className:"relative max-w-4xl w-full flex flex-col md:flex-row rounded-3xl border border-zinc-200 dark:border-zinc-800 shadow-2xl bg-white dark:bg-zinc-900 overflow-hidden min-h-[580px] z-10 transition-all duration-300 hover:shadow-rose-500/5",children:[o("div",{className:"hidden md:flex flex-col w-full md:w-1/2 bg-gradient-to-br from-rose-500/15 via-orange-500/10 to-amber-500/5 dark:from-rose-950/30 dark:via-orange-950/15 dark:to-zinc-900/40 p-8 md:p-12 justify-between border-r border-zinc-200 dark:border-zinc-800 relative overflow-hidden",children:[t("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,#8080800a_1px,transparent_1px),linear-gradient(to_bottom,#8080800a_1px,transparent_1px)] bg-[size:14px_24px] [mask-image:radial-gradient(ellipse_60%_50%_at_50%_0%,#000_70%,transparent_100%)] pointer-events-none"}),o("div",{className:"relative flex items-center gap-3",children:[t(hM,{className:"h-12 w-12 shadow-lg shadow-rose-500/10 rounded-2xl transition-transform duration-500 hover:scale-105"}),t("span",{className:"text-xl font-extrabold tracking-tight bg-gradient-to-r from-rose-500 via-orange-500 to-amber-500 bg-clip-text text-transparent",children:"Shumai"})]}),o("div",{className:"relative my-8 md:my-0 space-y-6",children:[t("h2",{className:"text-3xl font-extrabold tracking-tight leading-tight text-zinc-900 dark:text-zinc-50",children:w5e()}),t("p",{className:"text-zinc-600 dark:text-zinc-400 text-sm leading-relaxed max-w-sm",children:d5e()}),t("ul",{className:"space-y-3.5 pt-4",children:[y5e(),m5e(),M5e()].map((r,a)=>o("li",{className:"flex items-center gap-3 text-sm text-zinc-700 dark:text-zinc-300 font-medium",children:[t(ir,{className:"w-5 h-5 text-rose-500 flex-shrink-0"}),t("span",{children:r})]},a))})]}),t("div",{className:"relative pt-4 border-t border-zinc-200/30 dark:border-zinc-800/30",children:t("a",{href:"https://discord.gg/sUzhujK6DD",target:"_blank",rel:"noreferrer",className:"text-xs text-zinc-500 hover:text-zinc-800 dark:text-zinc-400 dark:hover:text-zinc-200 font-medium transition-colors hover:underline inline-flex items-center gap-1",children:l5e()})})]}),t("div",{className:"w-full md:w-1/2 p-8 md:p-12 flex flex-col justify-center",children:e})]})]})}function Ke({className:e,...r}){return t("div",{"data-slot":"card",className:C("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...r})}function vt({className:e,...r}){return t("div",{"data-slot":"card-header",className:C("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...r})}function wt({className:e,...r}){return t("div",{"data-slot":"card-title",className:C("leading-none font-semibold",e),...r})}function kt({className:e,...r}){return t("div",{"data-slot":"card-description",className:C("text-sm text-muted-foreground",e),...r})}function at({className:e,...r}){return t("div",{"data-slot":"card-content",className:C("px-6",e),...r})}function ca({className:e,...r}){return t("div",{"data-slot":"card-footer",className:C("flex items-center px-6 [.border-t]:pt-6",e),...r})}S();var lN=(e)=>e.type==="checkbox",ZB=(e)=>e.type==="file",J8=(e)=>e instanceof Date,Hi=(e)=>e==null,AK=(e)=>typeof e==="object",Yn=(e)=>!Hi(e)&&!Array.isArray(e)&&AK(e)&&!J8(e),hRt=(e)=>Yn(e)&&e.target?lN(e.target)?e.target.checked:ZB(e.target)?e.target.files:e.target.value:e,gRt=(e,r)=>r.split(".").some((a,i,s)=>!isNaN(Number(a))&&e.has(s.slice(0,i).join("."))),pB=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ln(e){if(e===null||typeof e!=="object")return e;if(e instanceof Date)return new Date(e);let r=typeof FileList<"u"&&e instanceof FileList;if(pB&&(e instanceof Blob||r))return e;let a=Array.isArray(e);if(!a&&e.constructor!==Object)return e;let i=a?[]:Object.create(Object.getPrototypeOf(e));for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s))i[s]=Ln(e[s]);return i}var mP={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Eu={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Tu={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},kye="root",EK=["__proto__","constructor","prototype"],MRt=/^\w*$/,FL=(e)=>MRt.test(e),ga=(e)=>e===void 0,xRt=/[.[\]'"]/,gP=(e)=>e.split(xRt).filter(Boolean),mr=(e,r,a)=>{if(!r||!Yn(e))return a;let i=FL(r)?[r]:gP(r);if(i.some((l)=>EK.includes(l)))return a;let s=i.reduce((l,c)=>Hi(l)?void 0:l[c],e);return ga(s)||s===e?ga(e[r])?a:e[r]:s},LZ=(e)=>typeof e==="boolean",Ac=(e)=>typeof e==="function",ha=(e,r,a)=>{let i=-1,s=FL(r)?[r]:gP(r),l=s.length,c=l-1;while(++i<l){let d=s[i],h=a;if(i!==c){let g=e[d];h=Yn(g)||Array.isArray(g)?g:!isNaN(+s[i+1])?[]:{}}if(EK.includes(d))return;e[d]=h,e=e[d]}},vRt=lt(null);vRt.displayName="HookFormControlContext";var yRt=(e,r,a,i=!0)=>{let s={};for(let l in e)Object.defineProperty(s,l,{get:()=>{let c=l;if(r._proxyFormState[c]!==Eu.all)r._proxyFormState[c]=!i||Eu.all;return a&&(a[c]=!0),e[c]}});return s},_Rt=pB?$e:m,bRt=(e)=>{let r=e.constructor&&e.constructor.prototype;return Yn(r)&&r.hasOwnProperty("isPrototypeOf")},RK=(e)=>Hi(e)||!AK(e),mye=(e,r)=>r.length===0&&!Array.isArray(e)&&!bRt(e);function Au(e,r,a=new WeakMap){if(e===r)return!0;if(RK(e)||RK(r))return Object.is(e,r);if(J8(e)&&J8(r))return Object.is(e.getTime(),r.getTime());let i=Object.keys(e),s=Object.keys(r);if(i.length!==s.length)return!1;if(mye(e,i)||mye(r,s))return Object.is(e,r);if(!i.length&&Array.isArray(e)!==Array.isArray(r))return!1;let l=a.get(e);if(l&&l.has(r))return!0;if(l)l.add(r);else{let c=new WeakSet;c.add(r),a.set(e,c)}for(let c of i){let d=e[c];if(!(c in r))return!1;if(c!=="ref"){let h=r[c];if(J8(d)&&J8(h)||(Yn(d)||Array.isArray(d))&&(Yn(h)||Array.isArray(h))?!Au(d,h,a):!Object.is(d,h))return!1}}return!0}function wRt(){let e=_(!1),r=_(void 0),a=P((s,l,c)=>{if(s&&e.current){let d=l();if(!Au(r.current,d))c(d)}e.current=!0},[]),i=P((s,l)=>{if(s)r.current=Ln(l())},[]);return{resyncIfNeeded:a,snapshot:i}}var Vi=(e)=>typeof e==="string",zRt=(e,r,a,i,s)=>{if(Vi(e))return i&&r.watch.add(e),mr(a,e,s);if(Array.isArray(e))return e.map((l)=>(i&&r.watch.add(l),mr(a,l)));return i&&(r.watchAll=!0),a};var lB=(e)=>({isOnSubmit:!e||e===Eu.onSubmit,isOnBlur:e===Eu.onBlur,isOnChange:e===Eu.onChange,isOnAll:e===Eu.all,isOnTouch:e===Eu.onTouched}),kK=(e,r,a)=>{if(a)return!1;if(r.watchAll||r.watch.has(e))return!0;for(let i of r.watch)if(e.startsWith(i)&&e.charAt(i.length)===".")return!0;return!1},sN=(e,r,a,i)=>{for(let s of a||Object.keys(e)){if(s==="_f")continue;let l=a?mr(e,s):e[s];if(l){let{_f:c}=l;if(c){if(c.refs&&c.refs[0]&&r(c.refs[0],s)&&!i)return!0;else if(c.ref&&r(c.ref,c.name)&&!i)return!0;else if(sN(l,r))break}else if(Yn(l)||Array.isArray(l)){if(sN(l,r))break}}}return},hye=(e,r,a)=>{let i=mr(e,a),s=Array.isArray(i)?i:[];return ha(s,kye,r[a]),ha(e,a,s),e},xf=(e)=>Yn(e)&&!Object.keys(e).length,uB=(e)=>{if(!pB)return!1;let r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},DK=(e)=>e.type==="radio",dB=(e)=>e instanceof RegExp,mB=(e,r,a,i,s)=>r?{...a[e],types:{...a[e]&&a[e].types?a[e].types:{},[i]:s||!0}}:{},gye={value:!1,isValid:!1},Mye={value:!0,isValid:!0},Cye=(e)=>{if(!Array.isArray(e))return gye;if(e.length>1){let a=e.filter((i)=>i&&i.checked&&!i.disabled).map((i)=>i.value);return{value:a,isValid:!!a.length}}let r=e[0];if(!r||!r.checked||r.disabled)return gye;if(!r.attributes||!("value"in r.attributes))return Mye;return ga(r.value)||r.value===""?Mye:{value:r.value,isValid:!0}},xye={isValid:!1,value:null},Iye=(e)=>Array.isArray(e)?e.reduce((r,a)=>a&&a.checked&&!a.disabled?{isValid:!0,value:a.value}:r,xye):xye;function vye(e,r,a="validate"){if(Vi(e)||Array.isArray(e)&&e.every(Vi)||LZ(e)&&!e)return{type:a,message:Vi(e)?e:"",ref:r}}var hP=(e)=>Yn(e)&&!dB(e)?e:{value:e,message:""},yye=async(e,r,a,i,s,l)=>{let{ref:c,refs:d,required:h,maxLength:g,minLength:x,min:v,max:b,pattern:y,validate:k,name:T,valueAsNumber:U,mount:N}=e._f,j=mr(a,T);if(!N||r.has(T))return{};let G=d?d[0]:c,X=(Se)=>{if(s&&G.reportValidity){let He=LZ(Se)?"":Se||"";if(d)d.forEach((ft)=>ft.setCustomValidity(He));else G.setCustomValidity(He);G.reportValidity()}},J={},ee=DK(c),re=lN(c),oe=ee||re,fe=(U||ZB(c))&&ga(c.value)&&ga(j)||uB(c)&&c.value===""||j===""||Array.isArray(j)&&!j.length,be=mB.bind(null,T,i,J),We=(Se,He,ft,Je=Tu.maxLength,xt=Tu.minLength)=>{let Ft=Se?He:ft;J[T]={type:Se?Je:xt,message:Ft,ref:c,...be(Se?Je:xt,Ft)}};if(l?!Array.isArray(j)||!j.length:h&&(!oe&&(fe||Hi(j))||LZ(j)&&!j||re&&!Cye(d).isValid||ee&&!Iye(d).isValid)){let{value:Se,message:He}=Vi(h)?{value:!!h,message:h}:hP(h);if(Se){if(J[T]={type:Tu.required,message:He,ref:G,...be(Tu.required,He)},!i)return X(He),J}}if(!fe&&(!Hi(v)||!Hi(b))){let Se,He,ft=hP(b),Je=hP(v);if(!Hi(j)&&!J8(j)&&!isNaN(j)){let xt=c.valueAsNumber||(j?+j:j);if(!Hi(ft.value))Se=xt>ft.value;if(!Hi(Je.value))He=xt<Je.value}else{let xt=c.valueAsDate||new Date(j),Ft=(bt)=>new Date(new Date().toDateString()+" "+bt),Bt=c.type=="time",ie=c.type=="week";if(Vi(ft.value)&&j)Se=Bt?Ft(j)>Ft(ft.value):ie?j>ft.value:xt>new Date(ft.value);if(Vi(Je.value)&&j)He=Bt?Ft(j)<Ft(Je.value):ie?j<Je.value:xt<new Date(Je.value)}if(Se||He){if(We(!!Se,ft.message,Je.message,Tu.max,Tu.min),!i)return X(J[T].message),J}}if((g||x)&&!fe&&(Vi(j)||l&&Array.isArray(j))){let Se=hP(g),He=hP(x),ft=!Hi(Se.value)&&j.length>+Se.value,Je=!Hi(He.value)&&j.length<+He.value;if(ft||Je){if(We(ft,Se.message,He.message),!i)return X(J[T].message),J}}if(y&&!fe&&Vi(j)){let{value:Se,message:He}=hP(y);if(dB(Se)&&!j.match(Se)){if(J[T]={type:Tu.pattern,message:He,ref:c,...be(Tu.pattern,He)},!i)return X(He),J}}if(k){if(Ac(k)){let Se=await k(j,a),He=vye(Se,G);if(He){if(J[T]={...He,...be(Tu.validate,He.message)},!i)return X(He.message),J}}else if(Yn(k)){let Se={};for(let He in k){if(!xf(Se)&&!i)break;let ft=vye(await k[He](j,a),G,He);if(ft){if(Se={...ft,...be(He,ft.message)},X(ft.message),i)J[T]=Se}}if(!xf(Se)){if(J[T]={ref:G,...Se},!i)return J}}}let Ye=J[T];return X(Ye?Ye.message:!0),J},cB=(e)=>Array.isArray(e)?e:[e];var Rye=(e)=>Array.isArray(e)?e.filter(Boolean):[];function SRt(e,r){let a=r.length-1,i=0;while(i<a){if(Hi(e)){e=void 0;break}e=e[r[i]],i++}return e}function LRt(e){for(let r in e)if(e.hasOwnProperty(r)&&!ga(e[r]))return!1;return!0}function ai(e,r){if(Vi(r)&&Object.prototype.hasOwnProperty.call(e,r))return delete e[r],e;let a=Array.isArray(r)?r:FL(r)?[r]:gP(r);if(a.some((c)=>EK.includes(String(c))))return e;let i=a.length===1?e:SRt(e,a),s=a.length-1,l=a[s];if(i)delete i[l];if(s!==0&&(Yn(i)&&xf(i)||Array.isArray(i)&&LRt(i)))ai(e,a.slice(0,-1));return e}var kRt=lt(null);kRt.displayName="HookFormContext";var _ye=()=>{let e=[];return{get observers(){return e},next:(s)=>{for(let l of e)l.next&&l.next(s)},subscribe:(s)=>(e.push(s),{unsubscribe:()=>{e=e.filter((l)=>l!==s)}}),unsubscribe:()=>{e=[]}}};function Pye(e,r){let a={};for(let i in e)if(e.hasOwnProperty(i)){let s=e[i],l=r[i];if(s&&Yn(s)&&l){let c=Pye(s,l);if(Yn(c))a[i]=c}else if(e[i])a[i]=l}return a}var bye=(e,r)=>e!==null&&AK(e)&&Object.prototype.hasOwnProperty.call(e,r),CRt=(e,r)=>{if(!r)return!1;let a=e;for(let i of FL(r)?[r]:gP(r)){if(!bye(a,i))return bye(e,r);a=a[i]}return!0},Tye=(e)=>e.type==="select-multiple",IRt=(e)=>DK(e)||lN(e),CK=(e)=>uB(e)&&e.isConnected;function wye(e){return Array.isArray(e)||Yn(e)}function Aye(e,r,a="",i=[]){for(let s in e){let l=a?`${a}.${s}`:s,c=e[s];if(wye(c)&&wye(mr(r,l)))Aye(c,r,l,i);else i.push(l)}return i}var RRt=(e)=>{for(let r in e)if(Ac(e[r]))return!0;return!1};function Eye(e){return Array.isArray(e)||Yn(e)&&!RRt(e)}function Dye(e){return!!(e&&("_f"in e))}function Oye(e){return Array.isArray(e)?!e.some((r)=>!ga(r)):!Object.keys(e).length}function PK(e,r){if(Array.isArray(e))e[r]=void 0;else delete e[r]}function TK(e,r={},a){for(let i in e){let s=e[i],l=a&&a[i];if(Eye(s)&&(!Array.isArray(s)||!Dye(l))){if(r[i]=Array.isArray(s)?[]:{},TK(s,r[i],l),Oye(r[i]))PK(r,i)}else if(!ga(s))r[i]=!0}return r}function NL(e,r,a,i){if(!a)a=TK(r,{},i);for(let s in e){let l=e[s],c=i&&i[s];if(Eye(l)&&(!Array.isArray(l)||!Dye(c))){if(ga(r)||RK(a[s]))a[s]=TK(l,Array.isArray(l)?[]:{},c);else NL(l,Hi(r)?{}:r[s],a[s],c);if(Oye(a[s]))PK(a,s)}else if(Au(l,r[s]))PK(a,s);else a[s]=!0}return a}var PRt=(e,r)=>{let a=r.split("."),i=[],s=a[0];for(let l=1;l<a.length;s+="."+a[l++])if(!isNaN(+a[l])&&e.has(s))i.push(`${s}.${a[l]}`);return i},Nye=(e,{valueAsNumber:r,valueAsDate:a,setValueAs:i})=>ga(e)?e:r?e===""?NaN:e?+e:e:a&&Vi(e)?new Date(e):i?i(e):e;function zye(e){let r=e.ref;if(ZB(r))return r.files;if(DK(r))return Iye(e.refs).value;if(Tye(r))return[...r.selectedOptions].map(({value:a})=>a);if(lN(r))return Cye(e.refs).value;return Nye(r.value,e)}var TRt=(e,r,a,i)=>{let s={};for(let l of e){let c=mr(r,l);c&&ha(s,l,c._f)}return{criteriaMode:a,names:[...e],fields:s,shouldUseNativeValidation:i}},fN=(e)=>ga(e)?e:dB(e)?e.source:Yn(e)?dB(e.value)?e.value.source:e.value:e,Sye="AsyncFunction",ARt=(e)=>{if(!e||!e.validate)return!1;if(Ac(e.validate))return e.validate.constructor.name===Sye;if(Yn(e.validate)){for(let r in e.validate)if(e.validate[r].constructor.name===Sye)return!0}return!1},ERt=(e)=>e.mount&&(e.required||!ga(e.required)&&e.required!==!1||!ga(e.min)||!ga(e.max)||!ga(e.maxLength)||!ga(e.minLength)||e.pattern||e.validate);function Lye(e,r,a){let i=mr(e,a);if(i||FL(a))return{error:i,name:a};let s=a.split(".");while(s.length){let l=s.join("."),c=mr(r,l),d=mr(e,l);if(c&&!Array.isArray(c)&&a!==l)return{name:a};if(d&&d.type)return{name:l,error:d};if(d&&d.root&&d.root.type)return{name:`${l}.root`,error:d.root};s.pop()}return{name:a}}var DRt=(e,r,a,i)=>{a(e);let s=Object.keys(e).filter((l)=>l!=="name");return!s.length||i&&s.length>=Object.keys(r).length||s.find((l)=>r[l]===(!i||Eu.all))},ORt=(e,r,a)=>!e||!r||e===r||cB(e).some((i)=>i&&(a?i===r||i.startsWith(r+"."):i.startsWith(r)||r.startsWith(i))),NRt=(e,r,a,i,s)=>{if(s.isOnAll)return!1;else if(!a&&s.isOnTouch)return!(r||e);else if(a?i.isOnBlur:s.isOnBlur)return!e;else if(a?i.isOnChange:s.isOnChange)return e;return!0},FRt=(e,r)=>{let a=mr(e,r);!Rye(a).length&&!(a===null||a===void 0?void 0:a.root)&&ai(e,r)},jRt={mode:Eu.onSubmit,reValidateMode:Eu.onChange,shouldFocusError:!0},IK="form",BRt=(e,r)=>{for(let a in e)if(!(a in r))delete e[a];Object.assign(e,r)},Fye={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function URt(e={}){let r={...jRt,...e},a={...Ln(Fye),isLoading:Ac(r.defaultValues),errors:r.errors||{},disabled:r.disabled||!1},i={},s=Yn(r.defaultValues)||Yn(r.values)?Ln(r.defaultValues||r.values)||{}:{},l=r.shouldUnregister?{}:Ln(s),c={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},h={},g={},x=0,v=lB(r.mode),b=lB(r.reValidateMode),y={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},k={...y},T={...k},U={array:_ye(),state:_ye()},N=0,j=r.criteriaMode===Eu.all,G=(Ee,Oe)=>(je)=>{clearTimeout(g[Ee]),g[Ee]=setTimeout(Oe,je)},X=async(Ee)=>{if(c.keepIsValid)return;if(!r.disabled&&(k.isValid||T.isValid||Ee)){let Oe=++N,je;if(r.resolver)je=xf((await ft()).errors),Oe===N&&J();else je=await Ft({fields:i,onlyCheckValid:!0,eventType:mP.VALID});if(Oe===N&&je!==a.isValid)U.state.next({isValid:je})}},J=(Ee,Oe)=>{if(!r.disabled&&(k.isValidating||k.validatingFields||T.isValidating||T.validatingFields))(Ee||d.mount).forEach((je)=>{if(je)Oe?ha(a.validatingFields,je,Oe):ai(a.validatingFields,je)}),U.state.next({validatingFields:a.validatingFields,isValidating:!xf(a.validatingFields)})},ee=()=>{a.dirtyFields=NL(s,l,void 0,i)},re=(Ee,Oe=[],je,Zt,St=!0,jt=!0)=>{if(Zt&&je&&!r.disabled){c.action=!0;let or=mr(i,Ee);if(!c.actionArrayLengths.has(Ee))c.actionArrayLengths.set(Ee,Array.isArray(or)?or.length:0);if(jt&&Array.isArray(or)){let qt=je(or,Zt.argA,Zt.argB);St&&ha(i,Ee,qt)}let Dt=mr(a.errors,Ee);if(jt&&Array.isArray(Dt)){let qt=Dt.root,Nr=je(Dt,Zt.argA,Zt.argB)||Dt;if(qt)Nr.root=qt;St&&ha(a.errors,Ee,Nr),FRt(a.errors,Ee)}let zt=mr(a.touchedFields,Ee);if((k.touchedFields||T.touchedFields)&&jt&&Array.isArray(zt)){let qt=je(zt,Zt.argA,Zt.argB);St&&ha(a.touchedFields,Ee,qt)}if(k.dirtyFields||T.dirtyFields)ee();U.state.next({name:Ee,isDirty:ie(Ee,Oe),dirtyFields:a.dirtyFields,errors:a.errors,isValid:a.isValid})}else ha(l,Ee,Oe)},oe=(Ee,Oe)=>{ha(a.errors,Ee,Oe),a.errors={...a.errors},U.state.next({errors:a.errors})},fe=(Ee)=>{a.errors=Ee,U.state.next({errors:a.errors,isValid:!1})},be=(Ee)=>{let Oe=FL(Ee)?[Ee]:gP(Ee),je=l,Zt=s;for(let St=0;St<Oe.length-1;St++){let jt=Oe[St];if(je=Hi(je)?je:je[jt],Zt=Hi(Zt)?Zt:Zt[jt],je===null&&Zt!==null)return!0}return!1},We=(Ee)=>{if(!c.actionArrayLengths.size)return!1;let Oe=FL(Ee)?[Ee]:gP(Ee),je=l,Zt="",St=-1,jt=0;for(let or=0;or<Oe.length;or++){if(Hi(je))return!1;let Dt=Oe[or];if(Zt=Zt?`${Zt}.${Dt}`:Dt,Array.isArray(je)&&+Dt>=je.length)return St===-1?!1:or===St?+Dt<jt:!0;if(c.actionArrayLengths.has(Zt))St=or+1,jt=c.actionArrayLengths.get(Zt);je=je[Dt]}return!1},Ye=(Ee,Oe,je,Zt)=>{let St=mr(i,Ee);if(St){if(be(Ee)||We(Ee))return;let jt=ga(mr(l,Ee)),or=mr(l,Ee,ga(je)?mr(s,Ee):je);if(ga(or)||Zt&&Zt.defaultChecked||Oe?ha(l,Ee,Oe?or:zye(St._f)):Fe(Ee,or),c.mount&&!c.action){if(X(),jt&&a.isDirty&&(k.isDirty||T.isDirty)){if(!ie())a.isDirty=!1,U.state.next({...a})}if(e.shouldUnregister&&jt&&!ga(mr(l,Ee))&&kK(Ee,d))c.watch=!0}}},Se=(Ee,Oe,je,Zt,St)=>{let jt=!1,or=!1,Dt={name:Ee};if(!r.disabled||Zt===!0){if(!je||Zt){let zt=Au(mr(s,Ee),Oe);if(k.isDirty||T.isDirty)or=a.isDirty,a.isDirty=Dt.isDirty=!zt||ie(),jt=or!==Dt.isDirty;if(or=!!mr(a.dirtyFields,Ee),zt!==a.isDirty)BRt(a.dirtyFields,NL(s,l,void 0,i));else zt?ai(a.dirtyFields,Ee):ha(a.dirtyFields,Ee,!0);Dt.dirtyFields=a.dirtyFields,jt=jt||(k.dirtyFields||T.dirtyFields)&&or!==!zt}if(je){let zt=mr(a.touchedFields,Ee);if(!zt)ha(a.touchedFields,Ee,je),Dt.touchedFields=a.touchedFields,jt=jt||(k.touchedFields||T.touchedFields)&&zt!==je}jt&&St&&U.state.next(Dt)}return jt?Dt:{}},He=(Ee,Oe,je,Zt)=>{let St=mr(a.errors,Ee),jt=(k.isValid||T.isValid)&&LZ(Oe)&&a.isValid!==Oe;if(r.delayError&&je)h[Ee]=G(Ee,()=>oe(Ee,je)),h[Ee](r.delayError);else clearTimeout(g[Ee]),delete h[Ee],je?ha(a.errors,Ee,je):ai(a.errors,Ee),a.errors={...a.errors};if((je?!Au(St,je):St)||!xf(Zt)||jt){let or={...Zt,...jt&&LZ(Oe)?{isValid:Oe}:{},errors:a.errors,name:Ee};U.state.next(or)}},ft=async(Ee)=>(J(Ee,!0),await r.resolver(l,r.context,TRt(Ee||d.mount,i,r.criteriaMode,r.shouldUseNativeValidation))),Je=async(Ee)=>{let{errors:Oe}=await ft(Ee);if(J(Ee),Ee){for(let je of Ee){let Zt=mr(Oe,je);Zt?d.array.has(je)&&Yn(Zt)&&!Object.keys(Zt).some((St)=>!Number.isNaN(Number(St)))?hye(a.errors,{[je]:Zt},je):ha(a.errors,je,Zt):ai(a.errors,je)}a.errors={...a.errors}}else a.errors=Oe;return Oe},xt=async({name:Ee,eventType:Oe})=>{if(e.validate){let je=await e.validate({formValues:l,formState:a,name:Ee,eventType:Oe});if(Yn(je))for(let Zt in je){let St=je[Zt];if(St)lo(`${IK}.${Zt}`,{message:Vi(St.message)?St.message:"",type:St.type||Tu.validate})}else if(Vi(je)||!je)lo(IK,{message:je||"",type:Tu.validate});else po(IK);return je}return!0},Ft=async({fields:Ee,onlyCheckValid:Oe,name:je,eventType:Zt,context:St={valid:!0,runRootValidation:!1}})=>{if(e.validate){if(St.runRootValidation=!0,!await xt({name:je,eventType:Zt})){if(St.valid=!1,Oe)return St.valid}}for(let jt in Ee){let or=Ee[jt];if(or){let{_f:Dt,...zt}=or;if(Dt){let qt=d.array.has(Dt.name),Nr=or._f&&ARt(or._f),Br=k.validatingFields||k.isValidating||T.validatingFields||T.isValidating;if(Nr&&Br)J([Dt.name],!0);let ua=await yye(or,d.disabled,l,j,r.shouldUseNativeValidation&&!Oe,qt);if(Nr&&Br)J([Dt.name]);if(ua[Dt.name]){if(St.valid=!1,Oe)break}if(!Oe&&(mr(ua,Dt.name)?qt?hye(a.errors,ua,Dt.name):ha(a.errors,Dt.name,ua[Dt.name]):ai(a.errors,Dt.name)),e.shouldUseNativeValidation&&ua[Dt.name])break}!xf(zt)&&await Ft({context:St,onlyCheckValid:Oe,fields:zt,name:jt,eventType:Zt})}}return St.valid},Bt=()=>{for(let Ee of d.unMount){let Oe=mr(i,Ee);Oe&&(Oe._f.refs?Oe._f.refs.every((je)=>!CK(je)):!CK(Oe._f.ref))&&uo(Ee)}d.unMount=new Set},ie=(Ee,Oe)=>(Ee&&Oe&&ha(l,Ee,Oe),!Au(c.mount?l:s,s)),bt=(Ee,Oe,je)=>zRt(Ee,d,{...c.mount?l:ga(Oe)||Vi(Ee)?s:Oe},je,Oe),Wt=(Ee)=>Rye(mr(c.mount?l:s,Ee,r.shouldUnregister?mr(s,Ee,[]):[])),Fe=(Ee,Oe,je={},Zt=!1,St=!1,jt=!1)=>{let or=mr(i,Ee),Dt=Oe;if(or){let zt=or._f;if(zt){if(!zt.disabled&&ha(l,Ee,Nye(Oe,zt)),Dt=uB(zt.ref)&&Hi(Oe)?"":Oe,Tye(zt.ref))[...zt.ref.options].forEach((qt)=>qt.selected=Dt.includes(qt.value));else if(zt.refs)if(lN(zt.ref))zt.refs.forEach((qt)=>{if(!qt.defaultChecked||!qt.disabled)if(Array.isArray(Dt))qt.checked=!!Dt.find((Nr)=>Nr===qt.value);else qt.checked=Dt===qt.value||!!Dt});else zt.refs.forEach((qt)=>qt.checked=qt.value===Dt);else if(ZB(zt.ref))zt.ref.value="";else if(zt.ref.value=Dt,!zt.ref.type&&!St&&!jt)U.state.next({name:Ee,values:Zt?l:Ln(l)})}}(je.shouldDirty||je.shouldTouch)&&Se(Ee,Dt,je.shouldTouch,je.shouldDirty,!St),je.shouldValidate&&Ir(Ee,{delayError:je.delayError})},nr=(Ee,Oe,je,Zt=!1,St=!1,jt=!1)=>{if(d.array.has(Ee))U.array.next({name:Ee,values:Zt?l:Ln(l)});for(let or in Oe){if(!Oe.hasOwnProperty(or))return;let Dt=Oe[or],zt=Ee+"."+or,qt=mr(i,zt);(d.array.has(Ee)||Yn(Dt)||qt&&!qt._f)&&!J8(Dt)?nr(zt,Dt,je,Zt,St,jt):Fe(zt,Dt,je,Zt,St,jt)}},fr=(Ee,Oe,je,Zt,St=!1)=>{let jt=mr(i,Ee),or=d.array.has(Ee),Dt=Zt?Oe:Ln(Oe),zt=mr(l,Ee),qt=Au(zt,Dt);if(!qt)ha(l,Ee,Dt);if(or){if(U.array.next({name:Ee,values:Zt?l:Ln(l)}),(k.isDirty||k.dirtyFields||T.isDirty||T.dirtyFields)&&je.shouldDirty){if(ee(),!St)U.state.next({name:Ee,dirtyFields:a.dirtyFields,isDirty:ie(Ee,Dt)})}}else{let Nr=Array.isArray(Dt)&&!Dt.length||xf(Dt),Br=!qt&&!St;if(!jt||jt._f||Hi(Dt)||Nr)Fe(Ee,Dt,je,Zt,St,Br);else nr(Ee,Dt,je,Zt,St,Br)}if(!qt&&!St){let Nr=kK(Ee,d),Br=Zt?l:Ln(l);if(U.state.next({...Nr&&a,name:c.mount||Nr?Ee:void 0,values:Br}),!or)for(let ua of PRt(d.array,Ee))U.state.next({name:ua,values:Br})}},Jt=(Ee,Oe,je={})=>fr(Ee,Oe,je,!1),Fr=(Ee,Oe={})=>{let je=Ac(Ee)?Ee(l):Ee;if(!Au(l,je)){l={...l,...je};for(let Zt of d.mount)if(CRt(je,Zt))fr(Zt,mr(je,Zt),Oe,!0,!0);if(U.state.next({...a,name:void 0,type:void 0,...x?{values:l}:{}}),Oe.shouldValidate)X()}},Gt=async(Ee)=>{c.mount=!0;let Oe=Ee.target,je=Oe.name,Zt=!0,St=mr(i,je),jt=(or)=>{Zt=Number.isNaN(or)||J8(or)&&isNaN(or.getTime())||Au(or,mr(l,je,or))};if(St){let or,Dt,zt=Oe.type?zye(St._f):hRt(Ee),qt=Ee.type===mP.BLUR||Ee.type===mP.FOCUS_OUT,Nr=!ERt(St._f)&&!e.validate&&!r.resolver&&!mr(a.errors,je)&&!St._f.deps,Br=Nr||NRt(qt,mr(a.touchedFields,je),a.isSubmitted,b,v),ua=kK(je,d,qt);if(ha(l,je,zt),qt){if(!Oe||!Oe.readOnly){St._f.onBlur&&St._f.onBlur(Ee);let va=h[je];va&&va(0)}}else if(St._f.onChange)St._f.onChange(Ee);let tr=Se(je,zt,qt),Go=!xf(tr)||ua;if(!qt&&U.state.next({name:je,type:Ee.type,...x?{values:Ln(l)}:{}}),Br){if((!Nr||!a.isValid)&&(k.isValid||T.isValid)){if(r.mode==="onBlur"){if(qt)X()}else if(!qt)X()}return Go&&U.state.next({name:je,...ua?{}:tr})}if(!r.resolver&&e.validate)await xt({name:je,eventType:Ee.type});if(!qt&&ua&&U.state.next({...a}),r.resolver){let{errors:va}=await ft([je]);if(J([je]),jt(zt),!Zt){!xf(tr)&&U.state.next(tr);return}let ni=Lye(a.errors,i,je),vf=Lye(va,i,ni.name||je);or=vf.error,je=vf.name,Dt=xf(va)}else if(J([je],!0),or=(await yye(St,d.disabled,l,j,r.shouldUseNativeValidation))[je],J([je]),jt(zt),Zt){if(or)Dt=!1;else if(k.isValid||T.isValid)Dt=await Ft({fields:i,onlyCheckValid:!0,name:je,eventType:Ee.type})}if(Zt)St._f.deps&&(!Array.isArray(St._f.deps)||St._f.deps.length>0)&&Ir(St._f.deps),He(je,Dt,or,tr)}},Xt=(Ee,Oe)=>{if(mr(a.errors,Oe)&&Ee.focus)return Ee.focus(),1;return},Ir=async(Ee,Oe={})=>{let je,Zt,St=cB(Ee);if(r.resolver){let jt=await Je(ga(Ee)?Ee:St);je=xf(jt),Zt=Ee?!St.some((or)=>mr(jt,or)):je}else if(Ee)Zt=(await Promise.all(St.map(async(jt)=>{let or=mr(i,jt);return await Ft({fields:or&&or._f?{[jt]:or}:or,eventType:mP.TRIGGER})}))).every(Boolean),!(!Zt&&!a.isValid)&&X();else Zt=je=await Ft({fields:i,name:Ee,eventType:mP.TRIGGER});if(Oe.delayError&&r.delayError&&Vi(Ee)){let jt=mr(a.errors,Ee);if(jt)ai(a.errors,Ee),h[Ee]=G(Ee,()=>oe(Ee,jt)),h[Ee](r.delayError);else clearTimeout(g[Ee]),delete h[Ee]}return U.state.next({...!Vi(Ee)||(k.isValid||T.isValid)&&je!==a.isValid?{}:{name:Ee},...r.resolver||!Ee?{isValid:je}:{},errors:a.errors}),Oe.shouldFocus&&!Zt&&sN(i,Xt,Ee?St:d.mount),Zt},yr=(Ee,Oe)=>{let je={...c.mount?l:s};if(Oe)je=Pye(Oe.dirtyFields?a.dirtyFields:a.touchedFields,je);return ga(Ee)?je:Vi(Ee)?mr(je,Ee):Ee.map((Zt)=>mr(je,Zt))},Tr=(Ee)=>ga(Ee)?{...a.errors}:Vi(Ee)?mr(a.errors,Ee):Ee.map((Oe)=>mr(a.errors,Oe)),pr=(Ee,Oe)=>{let je=Oe||a,Zt=mr(je.errors,Ee);return{invalid:!!Zt,isDirty:!!mr(je.dirtyFields,Ee),error:Zt,isValidating:!!mr(a.validatingFields,Ee),isTouched:!!mr(je.touchedFields,Ee)}},po=(Ee)=>{let Oe=Ee?cB(Ee):void 0;if(Oe===null||Oe===void 0||Oe.forEach((je)=>ai(a.errors,je)),Oe)Oe.forEach((je)=>{U.state.next({name:je,errors:a.errors})});else a.errors={},U.state.next({errors:a.errors})},lo=(Ee,Oe,je)=>{let Zt=(mr(i,Ee,{_f:{}})._f||{}).ref,St=mr(a.errors,Ee)||{},{ref:jt,message:or,type:Dt,...zt}=St;ha(a.errors,Ee,{...zt,...Oe,ref:Zt}),U.state.next({name:Ee,errors:a.errors,isValid:!1}),je&&je.shouldFocus&&Zt&&Zt.focus&&Zt.focus()},xa=(Ee,Oe)=>{if(Ac(Ee)){x++;let{unsubscribe:je}=U.state.subscribe({next:(St)=>("values"in St)&&Ee(St.values||bt(void 0,Oe),St)}),Zt=!1;return{unsubscribe:()=>{if(Zt)return;Zt=!0,x--,je()}}}return bt(Ee,Oe,!0)},sr=(Ee)=>{var Oe;let je=!!((Oe=Ee.formState)===null||Oe===void 0?void 0:Oe.values);if(je)x++;let{unsubscribe:Zt}=U.state.subscribe({next:(jt)=>{if(ORt(Ee.name,jt.name,Ee.exact)&&DRt(jt,Ee.formState||k,Ur,Ee.reRenderRoot)){let or={...l};Ee.callback({values:or,...a,...jt,defaultValues:s})}}});if(!je)return Zt;let St=!1;return()=>{if(St)return;St=!0,x--,Zt()}},mo=(Ee)=>(c.mount=!0,T={...T,...Ee.formState},sr({...Ee,formState:{...y,...Ee.formState}})),uo=(Ee,Oe={})=>{for(let je of Ee?cB(Ee):d.mount){if(d.mount.delete(je),d.array.delete(je),!Oe.keepValue)ai(i,je),ai(l,je);!Oe.keepError&&ai(a.errors,je),!Oe.keepDirty&&ai(a.dirtyFields,je),!Oe.keepTouched&&ai(a.touchedFields,je),!Oe.keepIsValidating&&ai(a.validatingFields,je),!r.shouldUnregister&&!Oe.keepDefaultValue&&ai(s,je)}x&&U.state.next({values:Ln(l)}),U.state.next({...a,...Oe.keepDirty?{}:{isDirty:ie()}}),!Oe.keepIsValid&&X()},No=({disabled:Ee,name:Oe})=>{if(LZ(Ee)&&c.mount||!!Ee||d.disabled.has(Oe)){let St=d.disabled.has(Oe)!==!!Ee;Ee?d.disabled.add(Oe):d.disabled.delete(Oe),St&&c.mount&&!c.action&&X()}},hn=(Ee,Oe={})=>{let je=mr(i,Ee),Zt=LZ(Oe.disabled)||LZ(r.disabled),St=!d.registerName.has(Ee)&&je&&je._f&&!je._f.mount;if(ha(i,Ee,{...je||{},_f:{...je&&je._f?je._f:{ref:{name:Ee}},name:Ee,mount:!0,...Oe}}),d.mount.add(Ee),je&&!St)No({disabled:LZ(Oe.disabled)?Oe.disabled:r.disabled,name:Ee});else Ye(Ee,!0,Oe.value);return{...Zt?{disabled:Oe.disabled||r.disabled}:{},...r.progressive?{required:!!Oe.required,min:fN(Oe.min),max:fN(Oe.max),minLength:fN(Oe.minLength),maxLength:fN(Oe.maxLength),pattern:fN(Oe.pattern)}:{},name:Ee,onChange:Gt,onBlur:Gt,ref:(jt)=>{if(jt){d.registerName.add(Ee),hn(Ee,Oe),d.registerName.delete(Ee),je=mr(i,Ee);let or=ga(jt.value)?jt.querySelectorAll?jt.querySelectorAll("input,select,textarea")[0]||jt:jt:jt,Dt=IRt(or),zt=je._f.refs||[];if(Dt?zt.find((Nr)=>Nr===or):or===je._f.ref)return;let qt={...je._f};if(Dt)qt.refs=[...zt.filter(CK),or,...Array.isArray(mr(s,Ee))?[{}]:[]],qt.ref={type:or.type,name:Ee};else qt.ref=or,delete qt.refs;ha(i,Ee,{_f:qt}),Ye(Ee,!1,void 0,or)}else{if(je=mr(i,Ee,{}),je._f)je._f.mount=!1;(r.shouldUnregister||Oe.shouldUnregister)&&!(gRt(d.array,Ee)&&c.action)&&d.unMount.add(Ee)}}}},Vo=()=>r.shouldFocusError&&!r.shouldUseNativeValidation&&sN(i,Xt,d.mount),Wn=(Ee)=>{if(LZ(Ee))U.state.next({disabled:Ee}),sN(i,(Oe,je)=>{let Zt=mr(i,je);if(Zt){if(Oe.disabled=Zt._f.disabled||Ee,Array.isArray(Zt._f.refs))Zt._f.refs.forEach((St)=>{St.disabled=Zt._f.disabled||Ee})}},0,!1)},xn=(Ee,Oe)=>async(je)=>{let Zt=void 0,St=void 0;if(je)je.preventDefault&&je.preventDefault(),je.persist&&je.persist();let jt=Ln(l);if(U.state.next({isSubmitting:!0}),r.resolver){let{errors:or,values:Dt}=await ft();J(),a.errors=or,jt=Ln(Dt)}else await Ft({fields:i,eventType:mP.SUBMIT});if(d.disabled.size)for(let or of d.disabled)ai(jt,or);if(ai(a.errors,kye),xf(a.errors)){U.state.next({errors:{}});try{Zt=await Ee(jt,je)}catch(or){St=or}}else{if(Oe)await Oe({...a.errors},je);Vo(),setTimeout(Vo)}if(U.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:xf(a.errors)&&!St,submitCount:a.submitCount+1,errors:a.errors}),St)throw St;return Zt},Gi=(Ee,Oe={})=>{if(mr(i,Ee)){if(ga(Oe.defaultValue))Jt(Ee,Ln(mr(s,Ee)));else Jt(Ee,Oe.defaultValue),ha(s,Ee,Ln(Oe.defaultValue));if(!Oe.keepTouched)ai(a.touchedFields,Ee);if(!Oe.keepDirty)ai(a.dirtyFields,Ee),a.isDirty=Oe.defaultValue?ie(Ee,Ln(mr(s,Ee))):ie();if(!Oe.keepError)ai(a.errors,Ee),k.isValid&&X();U.state.next({...a})}},Ge=(Ee,Oe={})=>{let je=Ee?Ln(Ee):s,Zt=Ln(je),St=xf(Ee),jt=Zt,or=i;if(!Oe.keepDefaultValues)s=je;if(!Oe.keepValues){if(Oe.keepDirtyValues){let Dt=new Set([...d.mount,...Aye(NL(s,l,void 0,or),a.dirtyFields)]);for(let zt of Dt){let qt=mr(a.dirtyFields,zt),Nr=mr(l,zt),Br=mr(jt,zt);if(qt&&!ga(Nr))ha(jt,zt,Nr);else if(!qt&&!ga(Br))Jt(zt,Br)}}else{if(pB&&ga(Ee))for(let Dt of d.mount){let zt=mr(i,Dt);if(zt&&zt._f){let qt=Array.isArray(zt._f.refs)?zt._f.refs[0]:zt._f.ref;if(uB(qt)){let Nr=qt.closest("form");if(Nr){Nr.reset();break}}}}if(Oe.keepFieldsRef)for(let Dt of d.mount)Jt(Dt,mr(jt,Dt));else i={}}if(r.shouldUnregister){if(l=Oe.keepDefaultValues?Ln(s):{},Oe.keepFieldsRef)for(let Dt of d.mount)ha(l,Dt,mr(jt,Dt))}else l=Ln(jt);U.array.next({values:{...jt}}),U.state.next({name:void 0,type:void 0,values:{...jt}})}if(d={mount:Oe.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!k.isValid||!!Oe.keepIsValid||!!Oe.keepDirtyValues||!r.shouldUnregister&&!xf(jt),c.watch=!!r.shouldUnregister,c.keepIsValid=!!Oe.keepIsValid,c.action=!1,c.actionArrayLengths.clear(),!Oe.keepErrors)a.errors={};U.state.next({submitCount:Oe.keepSubmitCount?a.submitCount:0,isDirty:St?!1:Oe.keepDirty?a.isDirty:Oe.keepValues?ie():!!(Oe.keepDefaultValues&&!Au(Ee,s)),isSubmitted:Oe.keepIsSubmitted?a.isSubmitted:!1,dirtyFields:St?{}:Oe.keepDirtyValues?Oe.keepDefaultValues&&l?NL(s,l,void 0,or):a.dirtyFields:Oe.keepDefaultValues&&Ee?NL(s,Ee,void 0,or):Oe.keepDirty?a.dirtyFields:{},touchedFields:Oe.keepTouched?a.touchedFields:{},errors:Oe.keepErrors?a.errors:{},isSubmitSuccessful:Oe.keepIsSubmitSuccessful?a.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},Rt=(Ee,Oe)=>Ge(Ac(Ee)?Ee(l):Ee,{...r.resetOptions,...Oe}),hr=(Ee,Oe={})=>{let je=mr(i,Ee),Zt=je&&je._f;if(Zt){let St=Zt.refs?Zt.refs[0]:Zt.ref;if(St.focus)setTimeout(()=>{St.focus(),Oe.shouldSelect&&Ac(St.select)&&St.select()})}},Ur=(Ee)=>{let{name:Oe,type:je,values:Zt,...St}=Ee;a={...a,...St}};U.state.subscribe({next:Ur});let Va={control:{register:hn,unregister:uo,getFieldState:pr,handleSubmit:xn,setError:lo,_subscribe:sr,_runSchema:ft,_updateIsValidating:J,_focusError:Vo,_getWatch:bt,_getDirty:ie,_setValid:X,_setFieldArray:re,_setDisabledField:No,_setErrors:fe,_getFieldArray:Wt,_reset:Ge,_resetDefaultValues:()=>Ac(r.defaultValues)&&r.defaultValues().then((Ee)=>{Rt(Ee,r.resetOptions),U.state.next({isLoading:!1})}),_removeUnmounted:Bt,_disableForm:Wn,_subjects:U,_proxyFormState:k,get _fields(){return i},get _formValues(){return l},get _state(){return c},set _state(Ee){c=Ee},get _defaultValues(){return s},get _names(){return d},set _names(Ee){d=Ee},get _formState(){return a},get _options(){return r},set _options(Ee){r={...r,...Ee},v=lB(r.mode),b=lB(r.reValidateMode)}},subscribe:mo,trigger:Ir,register:hn,handleSubmit:xn,watch:xa,setValue:Jt,setValues:Fr,getValues:yr,getErrors:Tr,reset:Rt,resetField:Gi,resetDefaultValues:(Ee,Oe={})=>{if(s=Ln(Ee),!Oe.keepDirty){let je=NL(s,l,void 0,i);a.dirtyFields=je,a.isDirty=!xf(je)}if(!Oe.keepIsValid)X();U.state.next({...a,defaultValues:s})},clearErrors:po,unregister:uo,setError:lo,setFocus:hr,getFieldState:pr};return{...Va,formControl:Va}}function zl(e={}){let r=_(void 0),a=_(void 0),i=_(e.formControl),[s,l]=u(()=>({...Ln(Fye),isLoading:Ac(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ac(e.defaultValues)?void 0:e.defaultValues}));if(!r.current||e.formControl&&i.current!==e.formControl)if(i.current=e.formControl,e.formControl){if(r.current={...e.formControl,formState:s},e.defaultValues&&!Ac(e.defaultValues))e.formControl.reset(e.defaultValues,e.resetOptions)}else{let{formControl:g,...x}=URt(e);r.current={...x,formState:s}}let c=r.current.control;c._options=e;let{resyncIfNeeded:d,snapshot:h}=wRt();return _Rt(()=>{let g=()=>({...c._formState,defaultValues:c._defaultValues});d(!0,g,l);let x=c._subscribe({formState:c._proxyFormState,callback:()=>l({...c._formState,defaultValues:c._defaultValues}),reRenderRoot:!0});return l((v)=>({...v,isReady:!0})),c._formState.isReady=!0,()=>{x(),h(!0,g)}},[c,d,h]),m(()=>c._disableForm(e.disabled),[c,e.disabled]),m(()=>{if(e.mode)c._options.mode=e.mode;if(e.reValidateMode)c._options.reValidateMode=e.reValidateMode},[c,e.mode,e.reValidateMode]),m(()=>{if(e.errors)c._setErrors(e.errors),c._focusError()},[c,e.errors]),m(()=>{e.shouldUnregister&&c._subjects.state.next({values:c._getWatch()})},[c,e.shouldUnregister]),m(()=>{if(c._proxyFormState.isDirty){let g=c._getDirty();if(g!==s.isDirty)c._subjects.state.next({isDirty:g})}},[c,s.isDirty]),m(()=>{var g;if(e.values&&!Au(e.values,a.current)){if(c._reset(e.values,{keepFieldsRef:!0,...c._options.resetOptions}),!((g=c._options.resetOptions)===null||g===void 0?void 0:g.keepIsValid))c._setValid();a.current=e.values,l((x)=>({...x}))}else c._resetDefaultValues()},[c,e.values]),m(()=>{if(!c._state.mount)c._setValid(),c._state.mount=!0;if(c._state.watch)c._state.watch=!1,c._subjects.state.next({...c._formState});c._removeUnmounted()}),r.current.formState=D(()=>yRt(s,c),[c,s]),r.current}var jye=(e,r,a)=>{if(e&&"reportValidity"in e){let i=mr(a,r);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},hB=(e,r)=>{for(let a in r.fields){let i=r.fields[a];i&&i.ref&&"reportValidity"in i.ref?jye(i.ref,a,e):i&&i.refs&&i.refs.forEach((s)=>jye(s,a,e))}},OK=(e,r)=>{r.shouldUseNativeValidation&&hB(e,r);let a={};for(let i in e){let s=mr(r.fields,i),l=Object.assign(e[i]||{},{ref:s&&s.refs?s.refs[0]:s&&s.ref});if(YRt(r.names||Object.keys(e),i)){let c=Object.assign({},mr(a,i));ha(c,"root",l),ha(a,i,c)}else ha(a,i,l)}return a},YRt=(e,r)=>{let a=Bye(r).replace(/[.*+?^${}()|\\]/g,"\\$&");return e.some((i)=>Bye(i).match(`^${a}\\.\\d+`))};function Bye(e){return e.replace(/\[(\d+)]/g,".$1").replace(/[[\]]/g,"")}function NK(){return NK=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},NK.apply(null,arguments)}function Uye(e,r){try{var a=e()}catch(i){return r(i)}return a&&a.then?a.then(void 0,r):a}function qRt(e,r){for(var a=Object.create(null);e.length;){var i=e[0],{code:s,message:l}=i,c=i.path.join(".");if(!a[c])if("unionErrors"in i){var d,h,g=i.unionErrors.reduce(function(b,y){return y.errors.length<b.errors.length?y:b}).errors[0];a[c]={message:(d=g==null?void 0:g.message)!=null?d:l,type:(h=g==null?void 0:g.code)!=null?h:s}}else a[c]={message:l,type:s};if("unionErrors"in i&&i.unionErrors.forEach(function(b){return b.errors.forEach(function(y){return e.push(y)})}),r){var x=a[c].types,v=x&&x[i.code];a[c]=mB(c,r,a,s,v?[].concat(v,i.message):i.message)}e.shift()}return a}function HRt(e,r){for(var a=Object.create(null),i=function(){var s=e[0],{code:l,message:c}=s,d=s.path.join(".");if(!a[d])if(s.code==="invalid_union"&&s.errors.length>0){var h,g,x=s.errors.reduce(function(y,k){return k.length<y.length?k:y})[0];a[d]={message:(h=x==null?void 0:x.message)!=null?h:c,type:(g=x==null?void 0:x.code)!=null?g:l}}else a[d]={message:c,type:l};if(s.code==="invalid_union"&&s.errors.forEach(function(y){return y.forEach(function(k){return e.push(NK({},k,{path:[].concat(s.path,k.path)}))})}),r){var v=a[d].types,b=v&&v[s.code];a[d]=mB(d,r,a,l,b?[].concat(b,s.message):s.message)}e.shift()};e.length;)i();return a}function jl(e,r,a){if(a===void 0&&(a={}),function(i){return"_zod"in i&&typeof i._zod=="object"}(e))return function(i,s,l){try{return Promise.resolve(Uye(function(){function c(h){return l.shouldUseNativeValidation&&hB({},l),{errors:{},values:a.raw?Object.assign({},i):h}}var d=e;return a.mode==="sync"?c(d.parse(i,r)):Promise.resolve(d.parseAsync(i,r)).then(c)},function(c){if(function(d){var h;return!(d==null||(h=d._zod)==null||(h=h.traits)==null||!h.has("$ZodError"))}(c))return{values:{},errors:OK(HRt(c.issues,!l.shouldUseNativeValidation&&l.criteriaMode==="all"),l)};throw c}))}catch(c){return Promise.reject(c)}};if(function(i){return"_def"in i&&typeof i._def=="object"}(e))return function(i,s,l){try{return Promise.resolve(Uye(function(){return Promise.resolve(e[a.mode==="sync"?"parse":"parseAsync"](i,r)).then(function(c){return l.shouldUseNativeValidation&&hB({},l),{errors:{},values:a.raw?Object.assign({},i):c}})},function(c){if(function(d){return Array.isArray(d==null?void 0:d.issues)}(c))return{values:{},errors:OK(qRt(c.errors,!l.shouldUseNativeValidation&&l.criteriaMode==="all"),l)};throw c}))}catch(c){return Promise.reject(c)}};throw Error("Invalid input: not a Zod schema")}S();var VRt=R({email:f().email(wle()),password:f().min(3,_p()),inviteCode:f().optional()});function WRt(){let e=Re(),a=FK.useSearch().inviteCode,[i,s]=u(null),[l,c]=u(!1),[d,h]=u(()=>n()==="zh"?"zh":"en"),g=(j)=>{h(j),Na(j)},{data:x}=Z({queryKey:["invite",a],queryFn:async()=>{let j=await A.api.invite[":code"].$get({param:{code:a}});if(!j.ok)throw Error("Failed to fetch invite info");return await j.json()},enabled:!!a}),{data:v,isLoading:b}=Z({queryKey:["/signup-info"],queryFn:async()=>{let j=await A.api["signup-info"].$get();if(!j.ok)throw Error("Failed to fetch signup info");return await j.json()}}),y=bf((j)=>j.setUser),k=zl({resolver:jl(VRt),defaultValues:{inviteCode:a}}),T=async(j)=>{c(!0),s(null);let{data:G,error:X}=await Vse.email({email:j.email,password:j.password,name:j.email,inviteCode:j.inviteCode,locale:d});if(c(!1),X){s(X.message||BZt());return}if(G)y(G.user),e({to:"/"})};if(b)return t("div",{className:"flex items-center justify-center min-h-screen bg-zinc-100/80 dark:bg-black",children:o("div",{className:"relative flex flex-col items-center",children:[t(hM,{className:"h-16 w-16 animate-pulse mb-4 text-rose-500 shadow-xl rounded-2xl"}),t(O,{className:"h-6 w-6 animate-spin text-rose-500/70"})]})});let U=v?.initialized===!1;if(!U&&!a)return o("div",{className:"min-h-screen w-full flex items-center justify-center p-4 md:p-8 bg-zinc-100/80 dark:bg-black font-sans overflow-hidden relative",children:[t("div",{className:"bg-rose-500/10 dark:bg-rose-600/5 w-[500px] h-[500px] rounded-full blur-[120px] absolute top-[-10%] left-[-10%] animate-drift-slow"}),t("div",{className:"bg-orange-500/10 dark:bg-orange-600/5 w-[500px] h-[500px] rounded-full blur-[120px] absolute bottom-[-10%] right-[-10%] animate-drift-medium"}),o(Ke,{className:"w-full max-w-md relative z-10 border border-zinc-200 dark:border-zinc-850 shadow-2xl bg-white dark:bg-zinc-900 rounded-3xl overflow-hidden",children:[o(vt,{className:"text-center pt-8 pb-4",children:[t("div",{className:"flex justify-center mb-4",children:t(hM,{className:"h-16 w-16 shadow-lg shadow-rose-500/10 rounded-2xl"})}),t(wt,{className:"text-2xl font-bold tracking-tight bg-gradient-to-r from-rose-500 to-orange-500 bg-clip-text text-transparent",children:Jst()}),t(kt,{className:"mt-2 text-zinc-600 dark:text-zinc-400",children:tlt()})]}),t(ca,{className:"flex flex-col gap-4 pb-8 text-center text-sm border-t border-zinc-200/30 dark:border-zinc-800/30 pt-6",children:o("p",{className:"text-zinc-500 dark:text-zinc-400",children:[hle()," ",o("a",{href:"/login",className:"font-semibold text-rose-500 hover:text-rose-600 dark:text-rose-400 dark:hover:text-rose-300 transition-colors hover:underline inline-flex items-center gap-1",children:[fKe()," ",t(to,{className:"w-3.5 h-3.5"})]})]})})]})]});return o(Ul,{children:[o("div",{className:"mb-8",children:[t("h1",{className:"text-2xl font-bold tracking-tight text-zinc-900 dark:text-zinc-50",children:P3e()}),t("p",{className:"text-zinc-500 dark:text-zinc-400 text-sm mt-1 mb-4",children:qZt()}),U&&o("div",{className:"flex items-start gap-3 p-3 bg-amber-500/10 border border-amber-500/20 text-amber-800 dark:text-amber-300 rounded-2xl text-xs leading-relaxed font-medium",children:[t("span",{children:"\uD83C\uDF89"}),t("span",{children:oHe()})]}),x&&!("error"in x)&&o("div",{className:"flex items-start gap-3 p-3 bg-rose-500/10 border border-rose-500/20 text-rose-800 dark:text-rose-300 rounded-2xl text-xs leading-relaxed font-medium mt-3",children:[t("span",{children:"\uD83D\uDC4B"}),t("span",{children:tGe({inviterName:x.inviterName,targetName:x.projectName||x.teamName,role:x.role})})]})]}),i&&t("div",{className:"mb-6 p-3 bg-red-500/10 border border-red-500/20 text-red-600 dark:text-red-400 rounded-xl text-sm text-center font-medium",children:i}),o("form",{onSubmit:k.handleSubmit(T),className:"space-y-5",children:[o("div",{className:"space-y-2",children:[t(W,{htmlFor:"email",className:"text-xs font-semibold text-zinc-600 dark:text-zinc-400 tracking-wide uppercase",children:xle()}),o("div",{className:"relative group",children:[t(hi,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-400 dark:text-zinc-600 transition-colors group-focus-within:text-rose-500"}),t(z,{id:"email",...k.register("email"),placeholder:"you@example.com",type:"email",className:"pl-10.5 h-11 border-zinc-200 dark:border-zinc-800 focus-visible:ring-rose-500/50 focus-visible:border-rose-500 rounded-xl transition-all shadow-sm"})]}),k.formState.errors.email&&t("p",{className:"text-red-500 text-xs font-medium",children:k.formState.errors.email.message})]}),o("div",{className:"space-y-2",children:[t(W,{htmlFor:"password",className:"text-xs font-semibold text-zinc-600 dark:text-zinc-400 tracking-wide uppercase",children:Ap()}),o("div",{className:"relative group",children:[t(on,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-400 dark:text-zinc-600 transition-colors group-focus-within:text-rose-500"}),t(z,{id:"password",type:"password",...k.register("password"),placeholder:dat(),className:"pl-10.5 h-11 border-zinc-200 dark:border-zinc-800 focus-visible:ring-rose-500/50 focus-visible:border-rose-500 rounded-xl transition-all shadow-sm"})]}),k.formState.errors.password&&t("p",{className:"text-red-500 text-xs font-medium",children:k.formState.errors.password.message})]}),t(E,{type:"submit",className:"w-full h-11 bg-gradient-to-r from-rose-500 to-orange-500 hover:from-rose-600 hover:to-orange-600 text-white font-semibold rounded-xl shadow-md shadow-rose-500/10 hover:shadow-rose-500/20 active:scale-[0.98] transition-all flex items-center justify-center gap-2 border-0",disabled:l,children:l?o(L,{children:[t(O,{className:"h-4 w-4 animate-spin"}),gje()]}):o(L,{children:[t(N2,{className:"w-4 h-4"}),Rle()]})})]}),o("div",{className:"mt-12 pt-10 border-t border-zinc-200/30 dark:border-zinc-800/30 text-center text-sm flex flex justify-between gap-4",children:[o("div",{children:[o("span",{className:"text-zinc-500 dark:text-zinc-400",children:[hle()," "]}),o("a",{href:"/login",className:"font-semibold text-rose-500 hover:text-rose-600 dark:text-rose-400 dark:hover:text-rose-300 transition-colors hover:underline inline-flex items-center gap-0.5",children:[Sle()," ",t(to,{className:"w-3.5 h-3.5"})]})]}),o("div",{className:"flex items-center gap-2 text-xs text-zinc-400 dark:text-zinc-500",children:[t("button",{type:"button",onClick:()=>g("en"),className:`cursor-pointer hover:text-zinc-800 dark:hover:text-zinc-200 transition-colors ${d==="en"?"font-bold text-rose-500 dark:text-rose-400":""}`,children:"English"}),t("span",{className:"text-zinc-300 dark:text-zinc-850",children:"/"}),t("button",{type:"button",onClick:()=>g("zh"),className:`cursor-pointer hover:text-zinc-800 dark:hover:text-zinc-200 transition-colors ${d==="zh"?"font-bold text-rose-500 dark:text-rose-400":""}`,children:"中文"})]})]})]})}var FK=Gr("/signup")({component:WRt,validateSearch:(e)=>({inviteCode:e.inviteCode||void 0}),beforeLoad:()=>{if(bf.getState().user)throw cl({to:"/"})}});var GRt=R({token:f().catch("")}),Yye=Gr("/reset-password")({validateSearch:(e)=>GRt.parse(e),beforeLoad:()=>{if(bf.getState().user)throw cl({to:"/"})}});S();var KRt=R({email:f().email(wle()),password:f().min(1,fat())});function XRt(){let e=Re(),r=bf((k)=>k.setUser),[a,i]=u(null),[s,l]=u(!1),[c,d]=u(!1),{data:h,isLoading:g}=Z({queryKey:["/signup-info"],queryFn:async()=>{let k=await A.api["signup-info"].$get();if(!k.ok)throw Error("Failed to fetch signup info");return await k.json()}});m(()=>{if(h&&!h.initialized)e({to:"/signup",search:{inviteCode:""}})},[h,e]);let x=h?.demoMode===!0,v=zl({resolver:jl(KRt)}),b=async(k)=>{l(!0),i(null);let{data:T,error:U}=await h9.email({email:k.email,password:k.password});if(l(!1),U){i(U.message||ble());return}if(T)r(T.user),e({to:"/"})},y=async()=>{d(!0),i(null),v.clearErrors(),v.setValue("email","foo@bar.com"),v.setValue("password","foo");let{data:k,error:T}=await h9.email({email:"foo@bar.com",password:"foo"});if(d(!1),T){i(T.message||ble());return}if(k)r(k.user),e({to:"/"})};if(g)return t("div",{className:"flex items-center justify-center min-h-screen bg-zinc-100/80 dark:bg-black",children:o("div",{className:"relative flex flex-col items-center",children:[t(hM,{className:"h-16 w-16 animate-pulse mb-4 text-rose-500 shadow-xl rounded-2xl"}),t(O,{className:"h-6 w-6 animate-spin text-rose-500/70"})]})});return o(Ul,{children:[o("div",{className:"mb-8",children:[t("h1",{className:"text-2xl font-bold tracking-tight text-zinc-900 dark:text-zinc-50",children:Zvt()}),t("p",{className:"text-zinc-500 dark:text-zinc-400 text-sm mt-1",children:cKe()})]}),a&&t("div",{className:"mb-6 p-3 bg-red-500/10 border border-red-500/20 text-red-600 dark:text-red-400 rounded-xl text-sm text-center font-medium",children:a}),o("form",{onSubmit:v.handleSubmit(b),className:"space-y-5",children:[o("div",{className:"space-y-2",children:[t(W,{htmlFor:"email",className:"text-xs font-semibold text-zinc-600 dark:text-zinc-400 tracking-wide uppercase",children:xle()}),o("div",{className:"relative group",children:[t(hi,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-400 dark:text-zinc-600 transition-colors group-focus-within:text-rose-500"}),t(z,{id:"email",...v.register("email"),placeholder:"you@example.com",type:"email",className:"pl-10.5 h-11 border-zinc-200 dark:border-zinc-800 focus-visible:ring-rose-500/50 focus-visible:border-rose-500 rounded-xl transition-all shadow-sm"})]}),v.formState.errors.email&&t("p",{className:"text-red-500 text-xs font-medium",children:v.formState.errors.email.message})]}),o("div",{className:"space-y-2",children:[t(W,{htmlFor:"password",className:"text-xs font-semibold text-zinc-600 dark:text-zinc-400 tracking-wide uppercase",children:Ap()}),o("div",{className:"relative group",children:[t(on,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-400 dark:text-zinc-600 transition-colors group-focus-within:text-rose-500"}),t(z,{id:"password",type:"password",...v.register("password"),placeholder:mat(),className:"pl-10.5 h-11 border-zinc-200 dark:border-zinc-800 focus-visible:ring-rose-500/50 focus-visible:border-rose-500 rounded-xl transition-all shadow-sm"})]}),v.formState.errors.password&&t("p",{className:"text-red-500 text-xs font-medium",children:v.formState.errors.password.message})]}),t(E,{type:"submit",className:"w-full h-11 bg-gradient-to-r from-rose-500 to-orange-500 hover:from-rose-600 hover:to-orange-600 text-white font-semibold rounded-xl shadow-md shadow-rose-500/10 hover:shadow-rose-500/20 active:scale-[0.98] transition-all flex items-center justify-center gap-2 border-0",disabled:s||c,children:s?o(L,{children:[t(O,{className:"h-4 w-4 animate-spin"}),zle()]}):o(L,{children:[t(O2,{className:"w-4 h-4"}),Sle()]})})]}),x&&o("div",{className:"mt-4 space-y-4",children:[o("div",{className:"relative",children:[t("div",{className:"absolute inset-0 flex items-center",children:t("span",{className:"w-full border-t border-zinc-200/80 dark:border-zinc-800"})}),t("div",{className:"relative flex justify-center text-xs uppercase",children:t("span",{className:"bg-white dark:bg-zinc-900 px-2 text-zinc-400 dark:text-zinc-500 font-medium",children:yg()})})]}),t(E,{type:"button",variant:"outline",onClick:y,disabled:s||c,className:"w-full h-11 border-zinc-200 dark:border-zinc-800 hover:bg-zinc-100 dark:hover:bg-zinc-800 font-semibold rounded-xl transition-all flex items-center justify-center gap-2 shadow-xs cursor-pointer",children:c?o(L,{children:[t(O,{className:"h-4 w-4 animate-spin"}),zle()]}):o(L,{children:[t(Jo,{className:"w-4 h-4 text-zinc-500 dark:text-zinc-400"}),aKe()]})}),t("div",{className:"p-3 bg-blue-500/10 border border-blue-500/20 text-blue-700 dark:text-blue-400 rounded-xl text-xs leading-relaxed text-center",children:o("p",{children:[t("strong",{children:m6e()})," ",M6e()]})})]}),o("div",{className:"mt-8 pt-6 border-t border-zinc-200/30 dark:border-zinc-800/30 text-center text-sm",children:[t("span",{className:"text-zinc-500 dark:text-zinc-400",children:I$e()}),o("a",{href:"/signup",className:"font-semibold text-rose-500 hover:text-rose-600 dark:text-rose-400 dark:hover:text-rose-300 transition-colors hover:underline inline-flex items-center gap-0.5",children:[Rle()," ",t(to,{className:"w-3.5 h-3.5"})]})]})]})}var qye=Gr("/login")({component:XRt,beforeLoad:()=>{if(bf.getState().user)throw cl({to:"/"})}});S();function Hye(){let e=Re(),{data:r,isLoading:a}=Z({queryKey:["teams"],queryFn:async()=>{let l=await A.api.teams.$get({query:{}});if(!l.ok)throw Error("Failed to get teams");return await l.json()}}),i=r?.data,s=i?.length===1?i[0].id:null;if(m(()=>{if(s)e({to:`/teams/${s}`})},[s,e]),a)return t("div",{children:Ed()});if(s)return null;return t(ue,{open:!0,children:o(ae,{children:[o(pe,{children:[t(le,{children:hut()}),t(Mt,{children:ddt()})]}),t("div",{className:"space-y-2",children:i?.map((l)=>t("div",{className:"p-2 border rounded-md cursor-pointer hover:bg-gray-100",onClick:()=>e({to:`/teams/${l.id}`}),children:l.name},l.id))})]})})}S();function QRt(){let e=bf((a)=>a.user),r=Re();if(m(()=>{if(!e)r({to:"/login"})},[e,r]),!e)return null;return t(Hye,{})}var Vye=Gr("/")({component:QRt});function JRt(){return t(AM,{})}var Wye=Gr("/share/$shareId")({component:JRt});var Gye=Gr("/teams/$teamId/")({});var Kye=Gr("/share/$shareId/")({});function he({className:e,...r}){return t("div",{"data-slot":"skeleton",className:C("animate-pulse rounded-md bg-accent",e),...r})}function Ct(){return o("div",{className:"flex h-screen flex-col bg-background min-h-0",children:[o("div",{className:"flex h-14 items-center justify-between border-b px-6 shrink-0",children:[o("div",{className:"flex items-center gap-2",children:[t(he,{className:"h-4 w-24"}),t("span",{className:"text-muted-foreground",children:"/"}),t(he,{className:"h-4 w-32"})]}),o("div",{className:"flex items-center gap-2",children:[t(he,{className:"h-8 w-8 rounded-md"}),t(he,{className:"h-8 w-20 rounded-md"})]})]}),o("div",{className:"flex flex-1 overflow-hidden",children:[o("div",{className:"w-[240px] border-r p-4 space-y-4 hidden md:block shrink-0",children:[o("div",{className:"flex items-center gap-2",children:[t(he,{className:"h-4 w-4 rounded"}),t(he,{className:"h-4 w-24"})]}),o("div",{className:"pl-4 space-y-3",children:[o("div",{className:"flex items-center gap-2",children:[t(he,{className:"h-3 w-3 rounded"}),t(he,{className:"h-3 w-28"})]}),o("div",{className:"flex items-center gap-2",children:[t(he,{className:"h-3 w-3 rounded"}),t(he,{className:"h-3 w-20"})]}),o("div",{className:"flex items-center gap-2",children:[t(he,{className:"h-3 w-3 rounded"}),t(he,{className:"h-3 w-24"})]})]})]}),o("div",{className:"flex-1 p-6 space-y-6 overflow-y-auto",children:[o("div",{className:"flex items-center justify-between border-b pb-4",children:[o("div",{className:"flex items-center gap-4",children:[t(he,{className:"h-5 w-40"}),t(he,{className:"h-4 w-20"})]}),o("div",{className:"flex items-center gap-2",children:[t(he,{className:"h-8 w-8 rounded"}),t(he,{className:"h-8 w-8 rounded"}),t(he,{className:"h-8 w-32 rounded"})]})]}),o("div",{className:"space-y-4",children:[t("div",{className:"flex items-center gap-2",children:t(he,{className:"h-4 w-24"})}),t("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5",children:Array.from({length:10}).map((e,r)=>o("div",{className:"flex flex-col rounded-lg border bg-card p-3 space-y-3",children:[t(he,{className:"aspect-square w-full rounded-md"}),o("div",{className:"space-y-2",children:[t(he,{className:"h-4 w-3/4"}),o("div",{className:"flex justify-between items-center",children:[t(he,{className:"h-3 w-1/4"}),t(he,{className:"h-3 w-1/3"})]})]})]},r))})]})]})]})]})}function LA(){return o("div",{className:"h-screen flex flex-col bg-background",children:[o("div",{className:"flex h-14 items-center justify-between border-b px-6 shrink-0",children:[o("div",{className:"flex items-center gap-2",children:[t(he,{className:"h-4 w-16"}),t("span",{className:"text-muted-foreground",children:"/"}),t(he,{className:"h-4 w-28"}),t("span",{className:"text-muted-foreground",children:"/"}),t(he,{className:"h-4 w-32"})]}),t("div",{className:"flex items-center gap-2",children:t(he,{className:"h-8 w-20 rounded"})})]}),o("div",{className:"flex flex-1 overflow-hidden",children:[o("div",{className:"w-[280px] border-r p-4 flex flex-col gap-4 shrink-0 hidden md:flex",children:[t(he,{className:"h-5 w-24"}),t("div",{className:"space-y-3 flex-1 overflow-y-auto",children:Array.from({length:4}).map((e,r)=>o("div",{className:"flex gap-3 p-2 rounded border",children:[t(he,{className:"h-12 w-12 rounded bg-muted shrink-0"}),o("div",{className:"space-y-2 flex-1",children:[t(he,{className:"h-3 w-2/3"}),t(he,{className:"h-2 w-1/2"})]})]},r))})]}),o("div",{className:"flex-1 bg-muted/20 p-6 flex flex-col justify-between relative min-w-0",children:[t("div",{className:"flex-1 flex items-center justify-center",children:t(he,{className:"w-full max-w-4xl aspect-video rounded-lg shadow-lg"})}),o("div",{className:"mt-4 flex items-center justify-between shrink-0",children:[o("div",{className:"flex items-center gap-4",children:[t(he,{className:"h-8 w-8 rounded-full"}),t(he,{className:"h-4 w-32"})]}),t(he,{className:"h-4 w-24"})]})]}),o("div",{className:"w-[360px] border-l p-4 flex flex-col gap-6 shrink-0 hidden lg:flex bg-card",children:[o("div",{className:"space-y-4",children:[t(he,{className:"h-5 w-32"}),t("div",{className:"space-y-3",children:Array.from({length:3}).map((e,r)=>o("div",{className:"flex justify-between items-center py-1 border-b",children:[t(he,{className:"h-3 w-20"}),t(he,{className:"h-3 w-32"})]},r))})]}),o("div",{className:"flex-1 flex flex-col gap-4",children:[t(he,{className:"h-5 w-24"}),t("div",{className:"space-y-3 flex-1 overflow-y-auto",children:Array.from({length:3}).map((e,r)=>o("div",{className:"flex gap-3 p-3 rounded-lg border bg-muted/10",children:[t(he,{className:"h-8 w-8 rounded-full shrink-0"}),o("div",{className:"space-y-2 flex-1",children:[o("div",{className:"flex justify-between",children:[t(he,{className:"h-3 w-24"}),t(he,{className:"h-2 w-12"})]}),t(he,{className:"h-3 w-full"}),t(he,{className:"h-3 w-5/6"})]})]},r))})]})]})]})]})}function ZA({displayStyle:e="card"}){if(e==="list")return t("div",{className:"p-4 space-y-2","data-testid":"file-browser-loading-skeleton",children:Array.from({length:8}).map((r,a)=>o("div",{className:"flex items-center gap-4 py-2 border-b border-border/40",children:[t(he,{className:"h-4 w-4 rounded"}),t(he,{className:"h-4 w-4 rounded"}),t(he,{className:"h-4 w-48"}),o("div",{className:"ml-auto flex items-center gap-8",children:[t(he,{className:"h-3 w-16"}),t(he,{className:"h-3 w-24"})]})]},a))});return t("div",{className:"p-4 space-y-4","data-testid":"file-browser-loading-skeleton",children:t("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5",children:Array.from({length:10}).map((r,a)=>o("div",{className:"flex flex-col rounded-lg border bg-card p-3 space-y-3",children:[t(he,{className:"aspect-square w-full rounded-md"}),o("div",{className:"space-y-2",children:[t(he,{className:"h-4 w-3/4"}),o("div",{className:"flex justify-between items-center",children:[t(he,{className:"h-3 w-1/4"}),t(he,{className:"h-3 w-1/3"})]})]})]},a))})})}function BA(){return t("div",{className:"p-3 space-y-3 max-w-lg mx-auto w-full","data-testid":"mobile-file-browser-loading-skeleton",children:Array.from({length:6}).map((e,r)=>o("div",{className:"flex items-center gap-3 p-3 rounded-lg border bg-card",children:[t(he,{className:"h-10 w-10 rounded-md shrink-0"}),o("div",{className:"space-y-2 flex-1",children:[t(he,{className:"h-4 w-3/4"}),t(he,{className:"h-3 w-1/3"})]})]},r))})}var rm=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("failed to fetch project");return await r.json()}}),Xye=Gr("/projects/$projectId/")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(rm(r)),pendingComponent:()=>t(Ct,{})});var Qye=Gr("/teams/$teamId/settings")({});var $Rt=R({taskId:f().optional()}),Jye=Gr("/teams/$teamId/kanban")({validateSearch:(e)=>$Rt.parse(e)});var $ye=Gr("/teams/$teamId/dashboard")({});var nm=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),e_e=Gr("/projects/$projectId/recents")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(nm(r)),pendingComponent:()=>t(Ct,{})});var om=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),t_e=Gr("/projects/$projectId/recently-deleted")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(om(r)),pendingComponent:()=>t(Ct,{})});var sm=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("failed to fetch project");return await r.json()}}),r_e=Gr("/projects/$projectId/agentsmd")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(sm(r)),pendingComponent:()=>t(Ct,{})});var im=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),o_e=Gr("/projects/$projectId/shares/")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(im(r)),pendingComponent:()=>t(Ct,{})});var am=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),a_e=Gr("/projects/$projectId/collections/")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(am(r)),pendingComponent:()=>t(Ct,{})});var n_e=Gr("/share/$shareId/folders/$folderId")({});var i_e=Gr("/share/$shareId/files/$fileId")({validateSearch:(e)=>({start:e.start?Number(e.start):void 0,version:e.version||void 0,compare:e.compare===!0||e.compare==="true"||void 0,cmpLeft:e.cmpLeft||void 0,cmpRight:e.cmpRight||void 0,cmpActive:e.cmpActive==="right"?"right":void 0})});var lm=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),f_e=Gr("/projects/$projectId/shares/$shareId")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(lm(r)),pendingComponent:()=>t(Ct,{})});var cm=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),s_e=Gr("/projects/$projectId/folders/$folderId")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(cm(r)),pendingComponent:()=>t(Ct,{})});var l_e=Gr("/projects/$projectId/files/$fileId")({validateSearch:(e)=>({version:e.version||void 0,start:e.start?Number(e.start):void 0,compare:e.compare===!0||e.compare==="true"||void 0,cmpLeft:e.cmpLeft||void 0,cmpRight:e.cmpRight||void 0,cmpActive:e.cmpActive==="right"?"right":void 0})});var um=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),UA=(e)=>({queryKey:["collections",e],queryFn:async()=>{let r=await A.api.collections[":collectionId"].$get({param:{collectionId:e}});if(!r.ok)throw Error("Failed to fetch collection");return await r.json()}}),c_e=Gr("/projects/$projectId/collections/$collectionId")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(um(r)),pendingComponent:()=>t("div",{children:Vh()})});var dm=(e)=>({queryKey:["projects",e],queryFn:async()=>{let r=await A.api.projects[":projectId"].$get({param:{projectId:e}});if(!r.ok)throw Error("Failed to fetch project");return await r.json()}}),u_e=Gr("/projects/$projectId/folders/$folderId_/agentsmd")({loader:({context:{queryClient:e},params:{projectId:r}})=>e.ensureQueryData(dm(r)),pendingComponent:()=>t(Ct,{})});var ePt=FK.update({id:"/signup",path:"/signup",getParentRoute:()=>Bn}),tPt=Yye.update({id:"/reset-password",path:"/reset-password",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-2rrcdhkj.js").then((e)=>e.Route)),rPt=qye.update({id:"/login",path:"/login",getParentRoute:()=>Bn}),oPt=Vye.update({id:"/",path:"/",getParentRoute:()=>Bn}),gB=Wye.update({id:"/share/$shareId",path:"/share/$shareId",getParentRoute:()=>Bn}),aPt=Gye.update({id:"/teams/$teamId/",path:"/teams/$teamId/",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-zzbn0b6c.js").then((e)=>e.Route)),nPt=Kye.update({id:"/",path:"/",getParentRoute:()=>gB}).lazy(()=>import("./chunk-m9f21ye9.js").then((e)=>e.Route)),iPt=Xye.update({id:"/projects/$projectId/",path:"/projects/$projectId/",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-zts21ft7.js").then((e)=>e.Route)),fPt=Qye.update({id:"/teams/$teamId/settings",path:"/teams/$teamId/settings",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-cfqny70c.js").then((e)=>e.Route)),sPt=Jye.update({id:"/teams/$teamId/kanban",path:"/teams/$teamId/kanban",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-hbnpx0a5.js").then((e)=>e.Route)),lPt=$ye.update({id:"/teams/$teamId/dashboard",path:"/teams/$teamId/dashboard",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-d1q1tn36.js").then((e)=>e.Route)),cPt=e_e.update({id:"/projects/$projectId/recents",path:"/projects/$projectId/recents",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-8pykp70z.js").then((e)=>e.Route)),uPt=t_e.update({id:"/projects/$projectId/recently-deleted",path:"/projects/$projectId/recently-deleted",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-xhngtwn9.js").then((e)=>e.Route)),dPt=r_e.update({id:"/projects/$projectId/agentsmd",path:"/projects/$projectId/agentsmd",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-mg6sybt0.js").then((e)=>e.Route)),ZPt=o_e.update({id:"/projects/$projectId/shares/",path:"/projects/$projectId/shares/",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-fznchvm7.js").then((e)=>e.Route)),pPt=a_e.update({id:"/projects/$projectId/collections/",path:"/projects/$projectId/collections/",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-157axqz1.js").then((e)=>e.Route)),mPt=n_e.update({id:"/folders/$folderId",path:"/folders/$folderId",getParentRoute:()=>gB}).lazy(()=>import("./chunk-cb37q6t0.js").then((e)=>e.Route)),hPt=i_e.update({id:"/files/$fileId",path:"/files/$fileId",getParentRoute:()=>gB}).lazy(()=>import("./chunk-87secbzy.js").then((e)=>e.Route)),gPt=f_e.update({id:"/projects/$projectId/shares/$shareId",path:"/projects/$projectId/shares/$shareId",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-hgy9rqt1.js").then((e)=>e.Route)),MPt=s_e.update({id:"/projects/$projectId/folders/$folderId",path:"/projects/$projectId/folders/$folderId",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-xzb0t8mx.js").then((e)=>e.Route)),xPt=l_e.update({id:"/projects/$projectId/files/$fileId",path:"/projects/$projectId/files/$fileId",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-t8jfp3vx.js").then((e)=>e.Route)),vPt=c_e.update({id:"/projects/$projectId/collections/$collectionId",path:"/projects/$projectId/collections/$collectionId",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-g2z0c39g.js").then((e)=>e.Route)),yPt=u_e.update({id:"/projects/$projectId/folders/$folderId_/agentsmd",path:"/projects/$projectId/folders/$folderId/agentsmd",getParentRoute:()=>Bn}).lazy(()=>import("./chunk-r3s1x5wp.js").then((e)=>e.Route)),_Pt={ShareShareIdIndexRoute:nPt,ShareShareIdFilesFileIdRoute:hPt,ShareShareIdFoldersFolderIdRoute:mPt},bPt=gB._addFileChildren(_Pt),wPt={IndexRoute:oPt,LoginRoute:rPt,ResetPasswordRoute:tPt,SignupRoute:ePt,ShareShareIdRoute:bPt,ProjectsProjectIdAgentsmdRoute:dPt,ProjectsProjectIdRecentlyDeletedRoute:uPt,ProjectsProjectIdRecentsRoute:cPt,TeamsTeamIdDashboardRoute:lPt,TeamsTeamIdKanbanRoute:sPt,TeamsTeamIdSettingsRoute:fPt,ProjectsProjectIdIndexRoute:iPt,TeamsTeamIdIndexRoute:aPt,ProjectsProjectIdCollectionsCollectionIdRoute:vPt,ProjectsProjectIdFilesFileIdRoute:xPt,ProjectsProjectIdFoldersFolderIdRoute:MPt,ProjectsProjectIdSharesShareIdRoute:gPt,ProjectsProjectIdCollectionsIndexRoute:pPt,ProjectsProjectIdSharesIndexRoute:ZPt,ProjectsProjectIdFoldersFolderIdAgentsmdRoute:yPt},d_e=Bn._addFileChildren(wPt)._addFileTypes();if(typeof window<"u"){let e=["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications."];window.addEventListener("error",(r)=>{if(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