import{r as nS,g as tf,h as b,j as St,R as oe,k as _c,_ as m7}from"./codemirror-core-DIzFijqu.js";var kp={exports:{}},Ds={},Lp={exports:{}},Np={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Sx;function g7(){return Sx||(Sx=1,(function(e){function t(R,B){var H=R.length;R.push(B);e:for(;0<H;){var te=H-1>>>1,W=R[te];if(0<l(W,B))R[te]=B,R[H]=W,H=te;else break e}}function n(R){return R.length===0?null:R[0]}function a(R){if(R.length===0)return null;var B=R[0],H=R.pop();if(H!==B){R[0]=H;e:for(var te=0,W=R.length,_=W>>>1;te<_;){var Z=2*(te+1)-1,ie=R[Z],se=Z+1,de=R[se];if(0>l(ie,H))se<W&&0>l(de,ie)?(R[te]=de,R[se]=H,te=se):(R[te]=ie,R[Z]=H,te=Z);else if(se<W&&0>l(de,H))R[te]=de,R[se]=H,te=se;else break e}}return B}function l(R,B){var H=R.sortIndex-B.sortIndex;return H!==0?H:R.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],h=[],p=1,v=null,y=3,x=!1,$=!1,w=!1,E=!1,C=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function O(R){for(var B=n(h);B!==null;){if(B.callback===null)a(h);else if(B.startTime<=R)a(h),B.sortIndex=B.expirationTime,t(f,B);else break;B=n(h)}}function P(R){if(w=!1,O(R),!$)if(n(f)!==null)$=!0,k||(k=!0,I());else{var B=n(h);B!==null&&U(P,B.startTime-R)}}var k=!1,G=-1,D=5,V=-1;function j(){return E?!0:!(e.unstable_now()-V<D)}function z(){if(E=!1,k){var R=e.unstable_now();V=R;var B=!0;try{e:{$=!1,w&&(w=!1,M(G),G=-1),x=!0;var H=y;try{t:{for(O(R),v=n(f);v!==null&&!(v.expirationTime>R&&j());){var te=v.callback;if(typeof te=="function"){v.callback=null,y=v.priorityLevel;var W=te(v.expirationTime<=R);if(R=e.unstable_now(),typeof W=="function"){v.callback=W,O(R),B=!0;break t}v===n(f)&&a(f),O(R)}else a(f);v=n(f)}if(v!==null)B=!0;else{var _=n(h);_!==null&&U(P,_.startTime-R),B=!1}}break e}finally{v=null,y=H,x=!1}B=void 0}}finally{B?I():k=!1}}}var I;if(typeof T=="function")I=function(){T(z)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,K=L.port2;L.port1.onmessage=z,I=function(){K.postMessage(null)}}else I=function(){C(z,0)};function U(R,B){G=C(function(){R(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(R){switch(y){case 1:case 2:case 3:var B=3;break;default:B=y}var H=y;y=B;try{return R()}finally{y=H}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(R,B){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var H=y;y=R;try{return B()}finally{y=H}},e.unstable_scheduleCallback=function(R,B,H){var te=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?te+H:te):H=te,R){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=H+W,R={id:p++,callback:B,priorityLevel:R,startTime:H,expirationTime:W,sortIndex:-1},H>te?(R.sortIndex=H,t(h,R),n(f)===null&&R===n(h)&&(w?(M(G),G=-1):w=!0,U(P,H-te))):(R.sortIndex=W,t(f,R),$||x||($=!0,k||(k=!0,I()))),R},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(R){var B=y;return function(){var H=y;y=B;try{return R.apply(this,arguments)}finally{y=H}}}})(Np)),Np}var $x;function v7(){return $x||($x=1,Lp.exports=g7()),Lp.exports}var _p={exports:{}},pn={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ex;function b7(){if(Ex)return pn;Ex=1;var e=nS();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var a={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},l=Symbol.for("react.portal");function s(f,h,p){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:v==null?null:""+v,children:f,containerInfo:h,implementation:p}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return pn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,pn.createPortal=function(f,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return s(f,h,null,p)},pn.flushSync=function(f){var h=u.T,p=a.p;try{if(u.T=null,a.p=2,f)return f()}finally{u.T=h,a.p=p,a.d.f()}},pn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(f,h))},pn.prefetchDNS=function(f){typeof f=="string"&&a.d.D(f)},pn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var p=h.as,v=d(p,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?a.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:y,fetchPriority:x}):p==="script"&&a.d.X(f,{crossOrigin:v,integrity:y,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},pn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=d(h.as,h.crossOrigin);a.d.M(f,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(f)},pn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,v=d(p,h.crossOrigin);a.d.L(f,p,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},pn.preloadModule=function(f,h){if(typeof f=="string")if(h){var p=d(h.as,h.crossOrigin);a.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(f)},pn.requestFormReset=function(f){a.d.r(f)},pn.unstable_batchedUpdates=function(f,h){return f(h)},pn.useFormState=function(f,h,p){return u.H.useFormState(f,h,p)},pn.useFormStatus=function(){return u.H.useHostTransitionStatus()},pn.version="19.2.0",pn}var Cx;function rS(){if(Cx)return _p.exports;Cx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),_p.exports=b7(),_p.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Tx;function y7(){if(Tx)return Ds;Tx=1;var e=v7(),t=nS(),n=rS();function a(r){var i="https://react.dev/errors/"+r;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function s(r){var i=r,o=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(o=i.return),r=i.return;while(r)}return i.tag===3?o:null}function u(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function d(r){if(r.tag===31){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function f(r){if(s(r)!==r)throw Error(a(188))}function h(r){var i=r.alternate;if(!i){if(i=s(r),i===null)throw Error(a(188));return i!==r?null:r}for(var o=r,c=i;;){var m=o.return;if(m===null)break;var g=m.alternate;if(g===null){if(c=m.return,c!==null){o=c;continue}break}if(m.child===g.child){for(g=m.child;g;){if(g===o)return f(m),r;if(g===c)return f(m),i;g=g.sibling}throw Error(a(188))}if(o.return!==c.return)o=m,c=g;else{for(var S=!1,A=m.child;A;){if(A===o){S=!0,o=m,c=g;break}if(A===c){S=!0,c=m,o=g;break}A=A.sibling}if(!S){for(A=g.child;A;){if(A===o){S=!0,o=g,c=m;break}if(A===c){S=!0,c=g,o=m;break}A=A.sibling}if(!S)throw Error(a(189))}}if(o.alternate!==c)throw Error(a(190))}if(o.tag!==3)throw Error(a(188));return o.stateNode.current===o?r:i}function p(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r;for(r=r.child;r!==null;){if(i=p(r),i!==null)return i;r=r.sibling}return null}var v=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),T=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function I(r){return r===null||typeof r!="object"?null:(r=z&&r[z]||r["@@iterator"],typeof r=="function"?r:null)}var L=Symbol.for("react.client.reference");function K(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===L?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case w:return"Fragment";case C:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case k:return"SuspenseList";case V:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case $:return"Portal";case T:return r.displayName||"Context";case M:return(r._context.displayName||"Context")+".Consumer";case O:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case G:return i=r.displayName||null,i!==null?i:K(r.type)||"Memo";case D:i=r._payload,r=r._init;try{return K(r(i))}catch{}}return null}var U=Array.isArray,R=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},te=[],W=-1;function _(r){return{current:r}}function Z(r){0>W||(r.current=te[W],te[W]=null,W--)}function ie(r,i){W++,te[W]=r.current,r.current=i}var se=_(null),de=_(null),pe=_(null),Me=_(null);function ye(r,i){switch(ie(pe,i),ie(de,r),ie(se,null),i.nodeType){case 9:case 11:r=(r=i.documentElement)&&(r=r.namespaceURI)?H1(r):0;break;default:if(r=i.tagName,i=i.namespaceURI)i=H1(i),r=G1(i,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Z(se),ie(se,r)}function ge(){Z(se),Z(de),Z(pe)}function ce(r){r.memoizedState!==null&&ie(Me,r);var i=se.current,o=G1(i,r.type);i!==o&&(ie(de,r),ie(se,o))}function gt(r){de.current===r&&(Z(se),Z(de)),Me.current===r&&(Z(Me),$s._currentValue=H)}var ue,Se;function Le(r){if(ue===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);ue=i&&i[1]||"",Se=-1<o.stack.indexOf(`
    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ue+r+Se}var Ae=!1;function xn(r,i){if(!r||Ae)return"";Ae=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(i){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(J){var Q=J}Reflect.construct(r,[],le)}else{try{le.call()}catch(J){Q=J}r.call(le.prototype)}}else{try{throw Error()}catch(J){Q=J}(le=r())&&typeof le.catch=="function"&&le.catch(function(){})}}catch(J){if(J&&Q&&typeof J.stack=="string")return[J.stack,Q.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=c.DetermineComponentFrameRoot(),S=g[0],A=g[1];if(S&&A){var N=S.split(`
`),X=A.split(`
`);for(m=c=0;c<N.length&&!N[c].includes("DetermineComponentFrameRoot");)c++;for(;m<X.length&&!X[m].includes("DetermineComponentFrameRoot");)m++;if(c===N.length||m===X.length)for(c=N.length-1,m=X.length-1;1<=c&&0<=m&&N[c]!==X[m];)m--;for(;1<=c&&0<=m;c--,m--)if(N[c]!==X[m]){if(c!==1||m!==1)do if(c--,m--,0>m||N[c]!==X[m]){var ne=`
`+N[c].replace(" at new "," at ");return r.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",r.displayName)),ne}while(1<=c&&0<=m);break}}}finally{Ae=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?Le(o):""}function wn(r,i){switch(r.tag){case 26:case 27:case 5:return Le(r.type);case 16:return Le("Lazy");case 13:return r.child!==i&&i!==null?Le("Suspense Fallback"):Le("Suspense");case 19:return Le("SuspenseList");case 0:case 15:return xn(r.type,!1);case 11:return xn(r.type.render,!1);case 1:return xn(r.type,!0);case 31:return Le("Activity");default:return""}}function Fn(r){try{var i="",o=null;do i+=wn(r,o),o=r,r=r.return;while(r);return i}catch(c){return`
Error generating stack: `+c.message+`
`+c.stack}}var nr=Object.prototype.hasOwnProperty,ot=e.unstable_scheduleCallback,hn=e.unstable_cancelCallback,rr=e.unstable_shouldYield,Mn=e.unstable_requestPaint,Et=e.unstable_now,la=e.unstable_getCurrentPriorityLevel,jn=e.unstable_ImmediatePriority,Pt=e.unstable_UserBlockingPriority,zt=e.unstable_NormalPriority,Un=e.unstable_LowPriority,Fr=e.unstable_IdlePriority,Sn=e.log,oa=e.unstable_setDisableYieldValue,Ct=null,Ot=null;function It(r){if(typeof Sn=="function"&&oa(r),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(Ct,r)}catch{}}var ht=Math.clz32?Math.clz32:Rn,sa=Math.log,ua=Math.LN2;function Rn(r){return r>>>=0,r===0?32:31-(sa(r)/ua|0)|0}var we=256,Ke=262144,Te=4194304;function Ee(r){var i=r&42;if(i!==0)return i;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function re(r,i,o){var c=r.pendingLanes;if(c===0)return 0;var m=0,g=r.suspendedLanes,S=r.pingedLanes;r=r.warmLanes;var A=c&134217727;return A!==0?(c=A&~g,c!==0?m=Ee(c):(S&=A,S!==0?m=Ee(S):o||(o=A&~r,o!==0&&(m=Ee(o))))):(A=c&~g,A!==0?m=Ee(A):S!==0?m=Ee(S):o||(o=c&~r,o!==0&&(m=Ee(o)))),m===0?0:i!==0&&i!==m&&(i&g)===0&&(g=m&-m,o=i&-i,g>=o||g===32&&(o&4194048)!==0)?i:m}function he(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function $e(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qe(){var r=Te;return Te<<=1,(Te&62914560)===0&&(Te=4194304),r}function st(r){for(var i=[],o=0;31>o;o++)i.push(r);return i}function et(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function _e(r,i,o,c,m,g){var S=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var A=r.entanglements,N=r.expirationTimes,X=r.hiddenUpdates;for(o=S&~o;0<o;){var ne=31-ht(o),le=1<<ne;A[ne]=0,N[ne]=-1;var Q=X[ne];if(Q!==null)for(X[ne]=null,ne=0;ne<Q.length;ne++){var J=Q[ne];J!==null&&(J.lane&=-536870913)}o&=~le}c!==0&&tt(r,c,0),g!==0&&m===0&&r.tag!==0&&(r.suspendedLanes|=g&~(S&~i))}function tt(r,i,o){r.pendingLanes|=i,r.suspendedLanes&=~i;var c=31-ht(i);r.entangledLanes|=i,r.entanglements[c]=r.entanglements[c]|1073741824|o&261930}function ut(r,i){var o=r.entangledLanes|=i;for(r=r.entanglements;o;){var c=31-ht(o),m=1<<c;m&i|r[c]&i&&(r[c]|=i),o&=~m}}function Bt(r,i){var o=i&-i;return o=(o&42)!==0?1:Yt(o),(o&(r.suspendedLanes|i))!==0?0:o}function Yt(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function an(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Xt(){var r=B.p;return r!==0?r:(r=window.event,r===void 0?32:mx(r.type))}function Zt(r,i){var o=B.p;try{return B.p=r,i()}finally{B.p=o}}var Tt=Math.random().toString(36).slice(2),Ye="__reactFiber$"+Tt,ct="__reactProps$"+Tt,ln="__reactContainer$"+Tt,jr="__reactEvents$"+Tt,bl="__reactListeners$"+Tt,ja="__reactHandles$"+Tt,Dr="__reactResources$"+Tt,$n="__reactMarker$"+Tt;function Ar(r){delete r[Ye],delete r[ct],delete r[jr],delete r[bl],delete r[ja]}function Ft(r){var i=r[Ye];if(i)return i;for(var o=r.parentNode;o;){if(i=o[ln]||o[Ye]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(r=J1(r);r!==null;){if(o=r[Ye])return o;r=J1(r)}return i}r=o,o=r.parentNode}return null}function Hn(r){if(r=r[Ye]||r[ln]){var i=r.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return r}return null}function Gn(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r.stateNode;throw Error(a(33))}function En(r){var i=r[Dr];return i||(i=r[Dr]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Xe(r){r[$n]=!0}var ar=new Set,ir={};function jt(r,i){vt(r,i),vt(r+"Capture",i)}function vt(r,i){for(ir[r]=i,r=0;r<i.length;r++)ar.add(i[r])}var on=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]*$"),Pn={},lr={};function zn(r){return nr.call(lr,r)?!0:nr.call(Pn,r)?!1:on.test(r)?lr[r]=!0:(Pn[r]=!0,!1)}function Mr(r,i,o){if(zn(i))if(o===null)r.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(i);return;case"boolean":var c=i.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){r.removeAttribute(i);return}}r.setAttribute(i,""+o)}}function Cn(r,i,o){if(o===null)r.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(i);return}r.setAttribute(i,""+o)}}function bt(r,i,o,c){if(c===null)r.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttributeNS(i,o,""+c)}}function Qt(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ua(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Au(r,i,o){var c=Object.getOwnPropertyDescriptor(r.constructor.prototype,i);if(!r.hasOwnProperty(i)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,g=c.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return m.call(this)},set:function(S){o=""+S,g.call(this,S)}}),Object.defineProperty(r,i,{enumerable:c.enumerable}),{getValue:function(){return o},setValue:function(S){o=""+S},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function yl(r){if(!r._valueTracker){var i=Ua(r)?"checked":"value";r._valueTracker=Au(r,i,""+r[i])}}function Ko(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var o=i.getValue(),c="";return r&&(c=Ua(r)?r.checked?"true":"false":r.value),r=c,r!==o?(i.setValue(r),!0):!1}function xl(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var uD=/[\n"\\]/g;function or(r){return r.replace(uD,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Mf(r,i,o,c,m,g,S,A){r.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?r.type=S:r.removeAttribute("type"),i!=null?S==="number"?(i===0&&r.value===""||r.value!=i)&&(r.value=""+Qt(i)):r.value!==""+Qt(i)&&(r.value=""+Qt(i)):S!=="submit"&&S!=="reset"||r.removeAttribute("value"),i!=null?Rf(r,S,Qt(i)):o!=null?Rf(r,S,Qt(o)):c!=null&&r.removeAttribute("value"),m==null&&g!=null&&(r.defaultChecked=!!g),m!=null&&(r.checked=m&&typeof m!="function"&&typeof m!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?r.name=""+Qt(A):r.removeAttribute("name")}function Kb(r,i,o,c,m,g,S,A){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(r.type=g),i!=null||o!=null){if(!(g!=="submit"&&g!=="reset"||i!=null)){yl(r);return}o=o!=null?""+Qt(o):"",i=i!=null?""+Qt(i):o,A||i===r.value||(r.value=i),r.defaultValue=i}c=c??m,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=A?r.checked:!!c,r.defaultChecked=!!c,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(r.name=S),yl(r)}function Rf(r,i,o){i==="number"&&xl(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function wl(r,i,o,c){if(r=r.options,i){i={};for(var m=0;m<o.length;m++)i["$"+o[m]]=!0;for(o=0;o<r.length;o++)m=i.hasOwnProperty("$"+r[o].value),r[o].selected!==m&&(r[o].selected=m),m&&c&&(r[o].defaultSelected=!0)}else{for(o=""+Qt(o),i=null,m=0;m<r.length;m++){if(r[m].value===o){r[m].selected=!0,c&&(r[m].defaultSelected=!0);return}i!==null||r[m].disabled||(i=r[m])}i!==null&&(i.selected=!0)}}function Vb(r,i,o){if(i!=null&&(i=""+Qt(i),i!==r.value&&(r.value=i),o==null)){r.defaultValue!==i&&(r.defaultValue=i);return}r.defaultValue=o!=null?""+Qt(o):""}function Ib(r,i,o,c){if(i==null){if(c!=null){if(o!=null)throw Error(a(92));if(U(c)){if(1<c.length)throw Error(a(93));c=c[0]}o=c}o==null&&(o=""),i=o}o=Qt(i),r.defaultValue=o,c=r.textContent,c===o&&c!==""&&c!==null&&(r.value=c),yl(r)}function Sl(r,i){if(i){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=i;return}}r.textContent=i}var cD=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 Fb(r,i,o){var c=i.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?c?r.setProperty(i,""):i==="float"?r.cssFloat="":r[i]="":c?r.setProperty(i,o):typeof o!="number"||o===0||cD.has(i)?i==="float"?r.cssFloat=o:r[i]=(""+o).trim():r[i]=o+"px"}function jb(r,i,o){if(i!=null&&typeof i!="object")throw Error(a(62));if(r=r.style,o!=null){for(var c in o)!o.hasOwnProperty(c)||i!=null&&i.hasOwnProperty(c)||(c.indexOf("--")===0?r.setProperty(c,""):c==="float"?r.cssFloat="":r[c]="");for(var m in i)c=i[m],i.hasOwnProperty(m)&&o[m]!==c&&Fb(r,m,c)}else for(var g in i)i.hasOwnProperty(g)&&Fb(r,g,i[g])}function Pf(r){if(r.indexOf("-")===-1)return!1;switch(r){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 dD=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"]]),fD=/^[\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 Mu(r){return fD.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function ca(){}var zf=null;function Of(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var $l=null,El=null;function Ub(r){var i=Hn(r);if(i&&(r=i.stateNode)){var o=r[ct]||null;e:switch(r=i.stateNode,i.type){case"input":if(Mf(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),i=o.name,o.type==="radio"&&i!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+or(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var c=o[i];if(c!==r&&c.form===r.form){var m=c[ct]||null;if(!m)throw Error(a(90));Mf(c,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(i=0;i<o.length;i++)c=o[i],c.form===r.form&&Ko(c)}break e;case"textarea":Vb(r,o.value,o.defaultValue);break e;case"select":i=o.value,i!=null&&wl(r,!!o.multiple,i,!1)}}}var Bf=!1;function Hb(r,i,o){if(Bf)return r(i,o);Bf=!0;try{var c=r(i);return c}finally{if(Bf=!1,($l!==null||El!==null)&&(gc(),$l&&(i=$l,r=El,El=$l=null,Ub(i),r)))for(i=0;i<r.length;i++)Ub(r[i])}}function Vo(r,i){var o=r.stateNode;if(o===null)return null;var c=o[ct]||null;if(c===null)return null;o=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(a(231,i,typeof o));return o}var da=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kf=!1;if(da)try{var Io={};Object.defineProperty(Io,"passive",{get:function(){kf=!0}}),window.addEventListener("test",Io,Io),window.removeEventListener("test",Io,Io)}catch{kf=!1}var Ha=null,Lf=null,Ru=null;function Gb(){if(Ru)return Ru;var r,i=Lf,o=i.length,c,m="value"in Ha?Ha.value:Ha.textContent,g=m.length;for(r=0;r<o&&i[r]===m[r];r++);var S=o-r;for(c=1;c<=S&&i[o-c]===m[g-c];c++);return Ru=m.slice(r,1<c?1-c:void 0)}function Pu(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function zu(){return!0}function qb(){return!1}function On(r){function i(o,c,m,g,S){this._reactName=o,this._targetInst=m,this.type=c,this.nativeEvent=g,this.target=S,this.currentTarget=null;for(var A in r)r.hasOwnProperty(A)&&(o=r[A],this[A]=o?o(g):g[A]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?zu:qb,this.isPropagationStopped=qb,this}return v(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=zu)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=zu)},persist:function(){},isPersistent:zu}),i}var zi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ou=On(zi),Fo=v({},zi,{view:0,detail:0}),hD=On(Fo),Nf,_f,jo,Bu=v({},Fo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vf,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==jo&&(jo&&r.type==="mousemove"?(Nf=r.screenX-jo.screenX,_f=r.screenY-jo.screenY):_f=Nf=0,jo=r),Nf)},movementY:function(r){return"movementY"in r?r.movementY:_f}}),Wb=On(Bu),pD=v({},Bu,{dataTransfer:0}),mD=On(pD),gD=v({},Fo,{relatedTarget:0}),Kf=On(gD),vD=v({},zi,{animationName:0,elapsedTime:0,pseudoElement:0}),bD=On(vD),yD=v({},zi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),xD=On(yD),wD=v({},zi,{data:0}),Yb=On(wD),SD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$D={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"},ED={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CD(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=ED[r])?!!i[r]:!1}function Vf(){return CD}var TD=v({},Fo,{key:function(r){if(r.key){var i=SD[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=Pu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?$D[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vf,charCode:function(r){return r.type==="keypress"?Pu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Pu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),DD=On(TD),AD=v({},Bu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xb=On(AD),MD=v({},Fo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vf}),RD=On(MD),PD=v({},zi,{propertyName:0,elapsedTime:0,pseudoElement:0}),zD=On(PD),OD=v({},Bu,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),BD=On(OD),kD=v({},zi,{newState:0,oldState:0}),LD=On(kD),ND=[9,13,27,32],If=da&&"CompositionEvent"in window,Uo=null;da&&"documentMode"in document&&(Uo=document.documentMode);var _D=da&&"TextEvent"in window&&!Uo,Zb=da&&(!If||Uo&&8<Uo&&11>=Uo),Qb=" ",Jb=!1;function e0(r,i){switch(r){case"keyup":return ND.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function t0(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Cl=!1;function KD(r,i){switch(r){case"compositionend":return t0(i);case"keypress":return i.which!==32?null:(Jb=!0,Qb);case"textInput":return r=i.data,r===Qb&&Jb?null:r;default:return null}}function VD(r,i){if(Cl)return r==="compositionend"||!If&&e0(r,i)?(r=Gb(),Ru=Lf=Ha=null,Cl=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Zb&&i.locale!=="ko"?null:i.data;default:return null}}var ID={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 n0(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!ID[r.type]:i==="textarea"}function r0(r,i,o,c){$l?El?El.push(c):El=[c]:$l=c,i=$c(i,"onChange"),0<i.length&&(o=new Ou("onChange","change",null,o,c),r.push({event:o,listeners:i}))}var Ho=null,Go=null;function FD(r){K1(r,0)}function ku(r){var i=Gn(r);if(Ko(i))return r}function a0(r,i){if(r==="change")return i}var i0=!1;if(da){var Ff;if(da){var jf="oninput"in document;if(!jf){var l0=document.createElement("div");l0.setAttribute("oninput","return;"),jf=typeof l0.oninput=="function"}Ff=jf}else Ff=!1;i0=Ff&&(!document.documentMode||9<document.documentMode)}function o0(){Ho&&(Ho.detachEvent("onpropertychange",s0),Go=Ho=null)}function s0(r){if(r.propertyName==="value"&&ku(Go)){var i=[];r0(i,Go,r,Of(r)),Hb(FD,i)}}function jD(r,i,o){r==="focusin"?(o0(),Ho=i,Go=o,Ho.attachEvent("onpropertychange",s0)):r==="focusout"&&o0()}function UD(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ku(Go)}function HD(r,i){if(r==="click")return ku(i)}function GD(r,i){if(r==="input"||r==="change")return ku(i)}function qD(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var qn=typeof Object.is=="function"?Object.is:qD;function qo(r,i){if(qn(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var o=Object.keys(r),c=Object.keys(i);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var m=o[c];if(!nr.call(i,m)||!qn(r[m],i[m]))return!1}return!0}function u0(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function c0(r,i){var o=u0(r);r=0;for(var c;o;){if(o.nodeType===3){if(c=r+o.textContent.length,r<=i&&c>=i)return{node:o,offset:i-r};r=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=u0(o)}}function d0(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?d0(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function f0(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var i=xl(r.document);i instanceof r.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)r=i.contentWindow;else break;i=xl(r.document)}return i}function Uf(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}var WD=da&&"documentMode"in document&&11>=document.documentMode,Tl=null,Hf=null,Wo=null,Gf=!1;function h0(r,i,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Gf||Tl==null||Tl!==xl(c)||(c=Tl,"selectionStart"in c&&Uf(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Wo&&qo(Wo,c)||(Wo=c,c=$c(Hf,"onSelect"),0<c.length&&(i=new Ou("onSelect","select",null,i,o),r.push({event:i,listeners:c}),i.target=Tl)))}function Oi(r,i){var o={};return o[r.toLowerCase()]=i.toLowerCase(),o["Webkit"+r]="webkit"+i,o["Moz"+r]="moz"+i,o}var Dl={animationend:Oi("Animation","AnimationEnd"),animationiteration:Oi("Animation","AnimationIteration"),animationstart:Oi("Animation","AnimationStart"),transitionrun:Oi("Transition","TransitionRun"),transitionstart:Oi("Transition","TransitionStart"),transitioncancel:Oi("Transition","TransitionCancel"),transitionend:Oi("Transition","TransitionEnd")},qf={},p0={};da&&(p0=document.createElement("div").style,"AnimationEvent"in window||(delete Dl.animationend.animation,delete Dl.animationiteration.animation,delete Dl.animationstart.animation),"TransitionEvent"in window||delete Dl.transitionend.transition);function Bi(r){if(qf[r])return qf[r];if(!Dl[r])return r;var i=Dl[r],o;for(o in i)if(i.hasOwnProperty(o)&&o in p0)return qf[r]=i[o];return r}var m0=Bi("animationend"),g0=Bi("animationiteration"),v0=Bi("animationstart"),YD=Bi("transitionrun"),XD=Bi("transitionstart"),ZD=Bi("transitioncancel"),b0=Bi("transitionend"),y0=new Map,Wf="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(" ");Wf.push("scrollEnd");function Rr(r,i){y0.set(r,i),jt(i,[r])}var Lu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},sr=[],Al=0,Yf=0;function Nu(){for(var r=Al,i=Yf=Al=0;i<r;){var o=sr[i];sr[i++]=null;var c=sr[i];sr[i++]=null;var m=sr[i];sr[i++]=null;var g=sr[i];if(sr[i++]=null,c!==null&&m!==null){var S=c.pending;S===null?m.next=m:(m.next=S.next,S.next=m),c.pending=m}g!==0&&x0(o,m,g)}}function _u(r,i,o,c){sr[Al++]=r,sr[Al++]=i,sr[Al++]=o,sr[Al++]=c,Yf|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function Xf(r,i,o,c){return _u(r,i,o,c),Ku(r)}function ki(r,i){return _u(r,null,null,i),Ku(r)}function x0(r,i,o){r.lanes|=o;var c=r.alternate;c!==null&&(c.lanes|=o);for(var m=!1,g=r.return;g!==null;)g.childLanes|=o,c=g.alternate,c!==null&&(c.childLanes|=o),g.tag===22&&(r=g.stateNode,r===null||r._visibility&1||(m=!0)),r=g,g=g.return;return r.tag===3?(g=r.stateNode,m&&i!==null&&(m=31-ht(o),r=g.hiddenUpdates,c=r[m],c===null?r[m]=[i]:c.push(i),i.lane=o|536870912),g):null}function Ku(r){if(50<gs)throw gs=0,ip=null,Error(a(185));for(var i=r.return;i!==null;)r=i,i=r.return;return r.tag===3?r.stateNode:null}var Ml={};function QD(r,i,o,c){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wn(r,i,o,c){return new QD(r,i,o,c)}function Zf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function fa(r,i){var o=r.alternate;return o===null?(o=Wn(r.tag,i,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=i,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&65011712,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,i=r.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o.refCleanup=r.refCleanup,o}function w0(r,i){r.flags&=65011714;var o=r.alternate;return o===null?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,i=o.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),r}function Vu(r,i,o,c,m,g){var S=0;if(c=r,typeof r=="function")Zf(r)&&(S=1);else if(typeof r=="string")S=r7(r,o,se.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case V:return r=Wn(31,o,i,m),r.elementType=V,r.lanes=g,r;case w:return Li(o.children,m,g,i);case E:S=8,m|=24;break;case C:return r=Wn(12,o,i,m|2),r.elementType=C,r.lanes=g,r;case P:return r=Wn(13,o,i,m),r.elementType=P,r.lanes=g,r;case k:return r=Wn(19,o,i,m),r.elementType=k,r.lanes=g,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case T:S=10;break e;case M:S=9;break e;case O:S=11;break e;case G:S=14;break e;case D:S=16,c=null;break e}S=29,o=Error(a(130,r===null?"null":typeof r,"")),c=null}return i=Wn(S,o,i,m),i.elementType=r,i.type=c,i.lanes=g,i}function Li(r,i,o,c){return r=Wn(7,r,c,i),r.lanes=o,r}function Qf(r,i,o){return r=Wn(6,r,null,i),r.lanes=o,r}function S0(r){var i=Wn(18,null,null,0);return i.stateNode=r,i}function Jf(r,i,o){return i=Wn(4,r.children!==null?r.children:[],r.key,i),i.lanes=o,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}var $0=new WeakMap;function ur(r,i){if(typeof r=="object"&&r!==null){var o=$0.get(r);return o!==void 0?o:(i={value:r,source:i,stack:Fn(i)},$0.set(r,i),i)}return{value:r,source:i,stack:Fn(i)}}var Rl=[],Pl=0,Iu=null,Yo=0,cr=[],dr=0,Ga=null,Ur=1,Hr="";function ha(r,i){Rl[Pl++]=Yo,Rl[Pl++]=Iu,Iu=r,Yo=i}function E0(r,i,o){cr[dr++]=Ur,cr[dr++]=Hr,cr[dr++]=Ga,Ga=r;var c=Ur;r=Hr;var m=32-ht(c)-1;c&=~(1<<m),o+=1;var g=32-ht(i)+m;if(30<g){var S=m-m%5;g=(c&(1<<S)-1).toString(32),c>>=S,m-=S,Ur=1<<32-ht(i)+m|o<<m|c,Hr=g+r}else Ur=1<<g|o<<m|c,Hr=r}function eh(r){r.return!==null&&(ha(r,1),E0(r,1,0))}function th(r){for(;r===Iu;)Iu=Rl[--Pl],Rl[Pl]=null,Yo=Rl[--Pl],Rl[Pl]=null;for(;r===Ga;)Ga=cr[--dr],cr[dr]=null,Hr=cr[--dr],cr[dr]=null,Ur=cr[--dr],cr[dr]=null}function C0(r,i){cr[dr++]=Ur,cr[dr++]=Hr,cr[dr++]=Ga,Ur=i.id,Hr=i.overflow,Ga=r}var sn=null,nt=null,Ne=!1,qa=null,fr=!1,nh=Error(a(519));function Wa(r){var i=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xo(ur(i,r)),nh}function T0(r){var i=r.stateNode,o=r.type,c=r.memoizedProps;switch(i[Ye]=r,i[ct]=c,o){case"dialog":Pe("cancel",i),Pe("close",i);break;case"iframe":case"object":case"embed":Pe("load",i);break;case"video":case"audio":for(o=0;o<bs.length;o++)Pe(bs[o],i);break;case"source":Pe("error",i);break;case"img":case"image":case"link":Pe("error",i),Pe("load",i);break;case"details":Pe("toggle",i);break;case"input":Pe("invalid",i),Kb(i,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Pe("invalid",i);break;case"textarea":Pe("invalid",i),Ib(i,c.value,c.defaultValue,c.children)}o=c.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||i.textContent===""+o||c.suppressHydrationWarning===!0||j1(i.textContent,o)?(c.popover!=null&&(Pe("beforetoggle",i),Pe("toggle",i)),c.onScroll!=null&&Pe("scroll",i),c.onScrollEnd!=null&&Pe("scrollend",i),c.onClick!=null&&(i.onclick=ca),i=!0):i=!1,i||Wa(r,!0)}function D0(r){for(sn=r.return;sn;)switch(sn.tag){case 5:case 31:case 13:fr=!1;return;case 27:case 3:fr=!0;return;default:sn=sn.return}}function zl(r){if(r!==sn)return!1;if(!Ne)return D0(r),Ne=!0,!1;var i=r.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||xp(r.type,r.memoizedProps)),o=!o),o&&nt&&Wa(r),D0(r),i===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));nt=Q1(r)}else if(i===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));nt=Q1(r)}else i===27?(i=nt,si(r.type)?(r=Cp,Cp=null,nt=r):nt=i):nt=sn?pr(r.stateNode.nextSibling):null;return!0}function Ni(){nt=sn=null,Ne=!1}function rh(){var r=qa;return r!==null&&(Nn===null?Nn=r:Nn.push.apply(Nn,r),qa=null),r}function Xo(r){qa===null?qa=[r]:qa.push(r)}var ah=_(null),_i=null,pa=null;function Ya(r,i,o){ie(ah,i._currentValue),i._currentValue=o}function ma(r){r._currentValue=ah.current,Z(ah)}function ih(r,i,o){for(;r!==null;){var c=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),r===o)break;r=r.return}}function lh(r,i,o,c){var m=r.child;for(m!==null&&(m.return=r);m!==null;){var g=m.dependencies;if(g!==null){var S=m.child;g=g.firstContext;e:for(;g!==null;){var A=g;g=m;for(var N=0;N<i.length;N++)if(A.context===i[N]){g.lanes|=o,A=g.alternate,A!==null&&(A.lanes|=o),ih(g.return,o,r),c||(S=null);break e}g=A.next}}else if(m.tag===18){if(S=m.return,S===null)throw Error(a(341));S.lanes|=o,g=S.alternate,g!==null&&(g.lanes|=o),ih(S,o,r),S=null}else S=m.child;if(S!==null)S.return=m;else for(S=m;S!==null;){if(S===r){S=null;break}if(m=S.sibling,m!==null){m.return=S.return,S=m;break}S=S.return}m=S}}function Ol(r,i,o,c){r=null;for(var m=i,g=!1;m!==null;){if(!g){if((m.flags&524288)!==0)g=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var S=m.alternate;if(S===null)throw Error(a(387));if(S=S.memoizedProps,S!==null){var A=m.type;qn(m.pendingProps.value,S.value)||(r!==null?r.push(A):r=[A])}}else if(m===Me.current){if(S=m.alternate,S===null)throw Error(a(387));S.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(r!==null?r.push($s):r=[$s])}m=m.return}r!==null&&lh(i,r,o,c),i.flags|=262144}function Fu(r){for(r=r.firstContext;r!==null;){if(!qn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Ki(r){_i=r,pa=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function un(r){return A0(_i,r)}function ju(r,i){return _i===null&&Ki(r),A0(r,i)}function A0(r,i){var o=i._currentValue;if(i={context:i,memoizedValue:o,next:null},pa===null){if(r===null)throw Error(a(308));pa=i,r.dependencies={lanes:0,firstContext:i},r.flags|=524288}else pa=pa.next=i;return o}var JD=typeof AbortController<"u"?AbortController:function(){var r=[],i=this.signal={aborted:!1,addEventListener:function(o,c){r.push(c)}};this.abort=function(){i.aborted=!0,r.forEach(function(o){return o()})}},eA=e.unstable_scheduleCallback,tA=e.unstable_NormalPriority,kt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oh(){return{controller:new JD,data:new Map,refCount:0}}function Zo(r){r.refCount--,r.refCount===0&&eA(tA,function(){r.controller.abort()})}var Qo=null,sh=0,Bl=0,kl=null;function nA(r,i){if(Qo===null){var o=Qo=[];sh=0,Bl=dp(),kl={status:"pending",value:void 0,then:function(c){o.push(c)}}}return sh++,i.then(M0,M0),i}function M0(){if(--sh===0&&Qo!==null){kl!==null&&(kl.status="fulfilled");var r=Qo;Qo=null,Bl=0,kl=null;for(var i=0;i<r.length;i++)(0,r[i])()}}function rA(r,i){var o=[],c={status:"pending",value:null,reason:null,then:function(m){o.push(m)}};return r.then(function(){c.status="fulfilled",c.value=i;for(var m=0;m<o.length;m++)(0,o[m])(i)},function(m){for(c.status="rejected",c.reason=m,m=0;m<o.length;m++)(0,o[m])(void 0)}),c}var R0=R.S;R.S=function(r,i){h1=Et(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&nA(r,i),R0!==null&&R0(r,i)};var Vi=_(null);function uh(){var r=Vi.current;return r!==null?r:Ze.pooledCache}function Uu(r,i){i===null?ie(Vi,Vi.current):ie(Vi,i.pool)}function P0(){var r=uh();return r===null?null:{parent:kt._currentValue,pool:r}}var Ll=Error(a(460)),ch=Error(a(474)),Hu=Error(a(542)),Gu={then:function(){}};function z0(r){return r=r.status,r==="fulfilled"||r==="rejected"}function O0(r,i,o){switch(o=r[o],o===void 0?r.push(i):o!==i&&(i.then(ca,ca),i=o),i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,k0(r),r;default:if(typeof i.status=="string")i.then(ca,ca);else{if(r=Ze,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=i,r.status="pending",r.then(function(c){if(i.status==="pending"){var m=i;m.status="fulfilled",m.value=c}},function(c){if(i.status==="pending"){var m=i;m.status="rejected",m.reason=c}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,k0(r),r}throw Fi=i,Ll}}function Ii(r){try{var i=r._init;return i(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Fi=o,Ll):o}}var Fi=null;function B0(){if(Fi===null)throw Error(a(459));var r=Fi;return Fi=null,r}function k0(r){if(r===Ll||r===Hu)throw Error(a(483))}var Nl=null,Jo=0;function qu(r){var i=Jo;return Jo+=1,Nl===null&&(Nl=[]),O0(Nl,r,i)}function es(r,i){i=i.props.ref,r.ref=i!==void 0?i:null}function Wu(r,i){throw i.$$typeof===y?Error(a(525)):(r=Object.prototype.toString.call(i),Error(a(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r)))}function L0(r){function i(q,F){if(r){var Y=q.deletions;Y===null?(q.deletions=[F],q.flags|=16):Y.push(F)}}function o(q,F){if(!r)return null;for(;F!==null;)i(q,F),F=F.sibling;return null}function c(q){for(var F=new Map;q!==null;)q.key!==null?F.set(q.key,q):F.set(q.index,q),q=q.sibling;return F}function m(q,F){return q=fa(q,F),q.index=0,q.sibling=null,q}function g(q,F,Y){return q.index=Y,r?(Y=q.alternate,Y!==null?(Y=Y.index,Y<F?(q.flags|=67108866,F):Y):(q.flags|=67108866,F)):(q.flags|=1048576,F)}function S(q){return r&&q.alternate===null&&(q.flags|=67108866),q}function A(q,F,Y,ae){return F===null||F.tag!==6?(F=Qf(Y,q.mode,ae),F.return=q,F):(F=m(F,Y),F.return=q,F)}function N(q,F,Y,ae){var ve=Y.type;return ve===w?ne(q,F,Y.props.children,ae,Y.key):F!==null&&(F.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===D&&Ii(ve)===F.type)?(F=m(F,Y.props),es(F,Y),F.return=q,F):(F=Vu(Y.type,Y.key,Y.props,null,q.mode,ae),es(F,Y),F.return=q,F)}function X(q,F,Y,ae){return F===null||F.tag!==4||F.stateNode.containerInfo!==Y.containerInfo||F.stateNode.implementation!==Y.implementation?(F=Jf(Y,q.mode,ae),F.return=q,F):(F=m(F,Y.children||[]),F.return=q,F)}function ne(q,F,Y,ae,ve){return F===null||F.tag!==7?(F=Li(Y,q.mode,ae,ve),F.return=q,F):(F=m(F,Y),F.return=q,F)}function le(q,F,Y){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=Qf(""+F,q.mode,Y),F.return=q,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case x:return Y=Vu(F.type,F.key,F.props,null,q.mode,Y),es(Y,F),Y.return=q,Y;case $:return F=Jf(F,q.mode,Y),F.return=q,F;case D:return F=Ii(F),le(q,F,Y)}if(U(F)||I(F))return F=Li(F,q.mode,Y,null),F.return=q,F;if(typeof F.then=="function")return le(q,qu(F),Y);if(F.$$typeof===T)return le(q,ju(q,F),Y);Wu(q,F)}return null}function Q(q,F,Y,ae){var ve=F!==null?F.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return ve!==null?null:A(q,F,""+Y,ae);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case x:return Y.key===ve?N(q,F,Y,ae):null;case $:return Y.key===ve?X(q,F,Y,ae):null;case D:return Y=Ii(Y),Q(q,F,Y,ae)}if(U(Y)||I(Y))return ve!==null?null:ne(q,F,Y,ae,null);if(typeof Y.then=="function")return Q(q,F,qu(Y),ae);if(Y.$$typeof===T)return Q(q,F,ju(q,Y),ae);Wu(q,Y)}return null}function J(q,F,Y,ae,ve){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return q=q.get(Y)||null,A(F,q,""+ae,ve);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case x:return q=q.get(ae.key===null?Y:ae.key)||null,N(F,q,ae,ve);case $:return q=q.get(ae.key===null?Y:ae.key)||null,X(F,q,ae,ve);case D:return ae=Ii(ae),J(q,F,Y,ae,ve)}if(U(ae)||I(ae))return q=q.get(Y)||null,ne(F,q,ae,ve,null);if(typeof ae.then=="function")return J(q,F,Y,qu(ae),ve);if(ae.$$typeof===T)return J(q,F,Y,ju(F,ae),ve);Wu(F,ae)}return null}function fe(q,F,Y,ae){for(var ve=null,Ve=null,me=F,De=F=0,Oe=null;me!==null&&De<Y.length;De++){me.index>De?(Oe=me,me=null):Oe=me.sibling;var Ie=Q(q,me,Y[De],ae);if(Ie===null){me===null&&(me=Oe);break}r&&me&&Ie.alternate===null&&i(q,me),F=g(Ie,F,De),Ve===null?ve=Ie:Ve.sibling=Ie,Ve=Ie,me=Oe}if(De===Y.length)return o(q,me),Ne&&ha(q,De),ve;if(me===null){for(;De<Y.length;De++)me=le(q,Y[De],ae),me!==null&&(F=g(me,F,De),Ve===null?ve=me:Ve.sibling=me,Ve=me);return Ne&&ha(q,De),ve}for(me=c(me);De<Y.length;De++)Oe=J(me,q,De,Y[De],ae),Oe!==null&&(r&&Oe.alternate!==null&&me.delete(Oe.key===null?De:Oe.key),F=g(Oe,F,De),Ve===null?ve=Oe:Ve.sibling=Oe,Ve=Oe);return r&&me.forEach(function(hi){return i(q,hi)}),Ne&&ha(q,De),ve}function be(q,F,Y,ae){if(Y==null)throw Error(a(151));for(var ve=null,Ve=null,me=F,De=F=0,Oe=null,Ie=Y.next();me!==null&&!Ie.done;De++,Ie=Y.next()){me.index>De?(Oe=me,me=null):Oe=me.sibling;var hi=Q(q,me,Ie.value,ae);if(hi===null){me===null&&(me=Oe);break}r&&me&&hi.alternate===null&&i(q,me),F=g(hi,F,De),Ve===null?ve=hi:Ve.sibling=hi,Ve=hi,me=Oe}if(Ie.done)return o(q,me),Ne&&ha(q,De),ve;if(me===null){for(;!Ie.done;De++,Ie=Y.next())Ie=le(q,Ie.value,ae),Ie!==null&&(F=g(Ie,F,De),Ve===null?ve=Ie:Ve.sibling=Ie,Ve=Ie);return Ne&&ha(q,De),ve}for(me=c(me);!Ie.done;De++,Ie=Y.next())Ie=J(me,q,De,Ie.value,ae),Ie!==null&&(r&&Ie.alternate!==null&&me.delete(Ie.key===null?De:Ie.key),F=g(Ie,F,De),Ve===null?ve=Ie:Ve.sibling=Ie,Ve=Ie);return r&&me.forEach(function(p7){return i(q,p7)}),Ne&&ha(q,De),ve}function We(q,F,Y,ae){if(typeof Y=="object"&&Y!==null&&Y.type===w&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case x:e:{for(var ve=Y.key;F!==null;){if(F.key===ve){if(ve=Y.type,ve===w){if(F.tag===7){o(q,F.sibling),ae=m(F,Y.props.children),ae.return=q,q=ae;break e}}else if(F.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===D&&Ii(ve)===F.type){o(q,F.sibling),ae=m(F,Y.props),es(ae,Y),ae.return=q,q=ae;break e}o(q,F);break}else i(q,F);F=F.sibling}Y.type===w?(ae=Li(Y.props.children,q.mode,ae,Y.key),ae.return=q,q=ae):(ae=Vu(Y.type,Y.key,Y.props,null,q.mode,ae),es(ae,Y),ae.return=q,q=ae)}return S(q);case $:e:{for(ve=Y.key;F!==null;){if(F.key===ve)if(F.tag===4&&F.stateNode.containerInfo===Y.containerInfo&&F.stateNode.implementation===Y.implementation){o(q,F.sibling),ae=m(F,Y.children||[]),ae.return=q,q=ae;break e}else{o(q,F);break}else i(q,F);F=F.sibling}ae=Jf(Y,q.mode,ae),ae.return=q,q=ae}return S(q);case D:return Y=Ii(Y),We(q,F,Y,ae)}if(U(Y))return fe(q,F,Y,ae);if(I(Y)){if(ve=I(Y),typeof ve!="function")throw Error(a(150));return Y=ve.call(Y),be(q,F,Y,ae)}if(typeof Y.then=="function")return We(q,F,qu(Y),ae);if(Y.$$typeof===T)return We(q,F,ju(q,Y),ae);Wu(q,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,F!==null&&F.tag===6?(o(q,F.sibling),ae=m(F,Y),ae.return=q,q=ae):(o(q,F),ae=Qf(Y,q.mode,ae),ae.return=q,q=ae),S(q)):o(q,F)}return function(q,F,Y,ae){try{Jo=0;var ve=We(q,F,Y,ae);return Nl=null,ve}catch(me){if(me===Ll||me===Hu)throw me;var Ve=Wn(29,me,null,q.mode);return Ve.lanes=ae,Ve.return=q,Ve}finally{}}}var ji=L0(!0),N0=L0(!1),Xa=!1;function dh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fh(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Za(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Qa(r,i,o){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Fe&2)!==0){var m=c.pending;return m===null?i.next=i:(i.next=m.next,m.next=i),c.pending=i,i=Ku(r),x0(r,null,o),i}return _u(r,c,i,o),Ku(r)}function ts(r,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var c=i.lanes;c&=r.pendingLanes,o|=c,i.lanes=o,ut(r,o)}}function hh(r,i){var o=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var m=null,g=null;if(o=o.firstBaseUpdate,o!==null){do{var S={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};g===null?m=g=S:g=g.next=S,o=o.next}while(o!==null);g===null?m=g=i:g=g.next=i}else m=g=i;o={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=i:r.next=i,o.lastBaseUpdate=i}var ph=!1;function ns(){if(ph){var r=kl;if(r!==null)throw r}}function rs(r,i,o,c){ph=!1;var m=r.updateQueue;Xa=!1;var g=m.firstBaseUpdate,S=m.lastBaseUpdate,A=m.shared.pending;if(A!==null){m.shared.pending=null;var N=A,X=N.next;N.next=null,S===null?g=X:S.next=X,S=N;var ne=r.alternate;ne!==null&&(ne=ne.updateQueue,A=ne.lastBaseUpdate,A!==S&&(A===null?ne.firstBaseUpdate=X:A.next=X,ne.lastBaseUpdate=N))}if(g!==null){var le=m.baseState;S=0,ne=X=N=null,A=g;do{var Q=A.lane&-536870913,J=Q!==A.lane;if(J?(ze&Q)===Q:(c&Q)===Q){Q!==0&&Q===Bl&&(ph=!0),ne!==null&&(ne=ne.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var fe=r,be=A;Q=i;var We=o;switch(be.tag){case 1:if(fe=be.payload,typeof fe=="function"){le=fe.call(We,le,Q);break e}le=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=be.payload,Q=typeof fe=="function"?fe.call(We,le,Q):fe,Q==null)break e;le=v({},le,Q);break e;case 2:Xa=!0}}Q=A.callback,Q!==null&&(r.flags|=64,J&&(r.flags|=8192),J=m.callbacks,J===null?m.callbacks=[Q]:J.push(Q))}else J={lane:Q,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ne===null?(X=ne=J,N=le):ne=ne.next=J,S|=Q;if(A=A.next,A===null){if(A=m.shared.pending,A===null)break;J=A,A=J.next,J.next=null,m.lastBaseUpdate=J,m.shared.pending=null}}while(!0);ne===null&&(N=le),m.baseState=N,m.firstBaseUpdate=X,m.lastBaseUpdate=ne,g===null&&(m.shared.lanes=0),ri|=S,r.lanes=S,r.memoizedState=le}}function _0(r,i){if(typeof r!="function")throw Error(a(191,r));r.call(i)}function K0(r,i){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)_0(o[r],i)}var _l=_(null),Yu=_(0);function V0(r,i){r=Ea,ie(Yu,r),ie(_l,i),Ea=r|i.baseLanes}function mh(){ie(Yu,Ea),ie(_l,_l.current)}function gh(){Ea=Yu.current,Z(_l),Z(Yu)}var Yn=_(null),hr=null;function Ja(r){var i=r.alternate;ie(Dt,Dt.current&1),ie(Yn,r),hr===null&&(i===null||_l.current!==null||i.memoizedState!==null)&&(hr=r)}function vh(r){ie(Dt,Dt.current),ie(Yn,r),hr===null&&(hr=r)}function I0(r){r.tag===22?(ie(Dt,Dt.current),ie(Yn,r),hr===null&&(hr=r)):ei()}function ei(){ie(Dt,Dt.current),ie(Yn,Yn.current)}function Xn(r){Z(Yn),hr===r&&(hr=null),Z(Dt)}var Dt=_(0);function Xu(r){for(var i=r;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||$p(o)||Ep(o)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var ga=0,Ce=null,Ge=null,Lt=null,Zu=!1,Kl=!1,Ui=!1,Qu=0,as=0,Vl=null,aA=0;function yt(){throw Error(a(321))}function bh(r,i){if(i===null)return!1;for(var o=0;o<i.length&&o<r.length;o++)if(!qn(r[o],i[o]))return!1;return!0}function yh(r,i,o,c,m,g){return ga=g,Ce=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,R.H=r===null||r.memoizedState===null?Ey:Bh,Ui=!1,g=o(c,m),Ui=!1,Kl&&(g=j0(i,o,c,m)),F0(r),g}function F0(r){R.H=os;var i=Ge!==null&&Ge.next!==null;if(ga=0,Lt=Ge=Ce=null,Zu=!1,as=0,Vl=null,i)throw Error(a(300));r===null||Nt||(r=r.dependencies,r!==null&&Fu(r)&&(Nt=!0))}function j0(r,i,o,c){Ce=r;var m=0;do{if(Kl&&(Vl=null),as=0,Kl=!1,25<=m)throw Error(a(301));if(m+=1,Lt=Ge=null,r.updateQueue!=null){var g=r.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}R.H=Cy,g=i(o,c)}while(Kl);return g}function iA(){var r=R.H,i=r.useState()[0];return i=typeof i.then=="function"?is(i):i,r=r.useState()[0],(Ge!==null?Ge.memoizedState:null)!==r&&(Ce.flags|=1024),i}function xh(){var r=Qu!==0;return Qu=0,r}function wh(r,i,o){i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~o}function Sh(r){if(Zu){for(r=r.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Zu=!1}ga=0,Lt=Ge=Ce=null,Kl=!1,as=Qu=0,Vl=null}function Tn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Lt===null?Ce.memoizedState=Lt=r:Lt=Lt.next=r,Lt}function At(){if(Ge===null){var r=Ce.alternate;r=r!==null?r.memoizedState:null}else r=Ge.next;var i=Lt===null?Ce.memoizedState:Lt.next;if(i!==null)Lt=i,Ge=r;else{if(r===null)throw Ce.alternate===null?Error(a(467)):Error(a(310));Ge=r,r={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},Lt===null?Ce.memoizedState=Lt=r:Lt=Lt.next=r}return Lt}function Ju(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function is(r){var i=as;return as+=1,Vl===null&&(Vl=[]),r=O0(Vl,r,i),i=Ce,(Lt===null?i.memoizedState:Lt.next)===null&&(i=i.alternate,R.H=i===null||i.memoizedState===null?Ey:Bh),r}function ec(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return is(r);if(r.$$typeof===T)return un(r)}throw Error(a(438,String(r)))}function $h(r){var i=null,o=Ce.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var c=Ce.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(i={data:c.data.map(function(m){return m.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),o===null&&(o=Ju(),Ce.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0)for(o=i.data[i.index]=Array(r),c=0;c<r;c++)o[c]=j;return i.index++,o}function va(r,i){return typeof i=="function"?i(r):i}function tc(r){var i=At();return Eh(i,Ge,r)}function Eh(r,i,o){var c=r.queue;if(c===null)throw Error(a(311));c.lastRenderedReducer=o;var m=r.baseQueue,g=c.pending;if(g!==null){if(m!==null){var S=m.next;m.next=g.next,g.next=S}i.baseQueue=m=g,c.pending=null}if(g=r.baseState,m===null)r.memoizedState=g;else{i=m.next;var A=S=null,N=null,X=i,ne=!1;do{var le=X.lane&-536870913;if(le!==X.lane?(ze&le)===le:(ga&le)===le){var Q=X.revertLane;if(Q===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),le===Bl&&(ne=!0);else if((ga&Q)===Q){X=X.next,Q===Bl&&(ne=!0);continue}else le={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},N===null?(A=N=le,S=g):N=N.next=le,Ce.lanes|=Q,ri|=Q;le=X.action,Ui&&o(g,le),g=X.hasEagerState?X.eagerState:o(g,le)}else Q={lane:le,revertLane:X.revertLane,gesture:X.gesture,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},N===null?(A=N=Q,S=g):N=N.next=Q,Ce.lanes|=le,ri|=le;X=X.next}while(X!==null&&X!==i);if(N===null?S=g:N.next=A,!qn(g,r.memoizedState)&&(Nt=!0,ne&&(o=kl,o!==null)))throw o;r.memoizedState=g,r.baseState=S,r.baseQueue=N,c.lastRenderedState=g}return m===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function Ch(r){var i=At(),o=i.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=r;var c=o.dispatch,m=o.pending,g=i.memoizedState;if(m!==null){o.pending=null;var S=m=m.next;do g=r(g,S.action),S=S.next;while(S!==m);qn(g,i.memoizedState)||(Nt=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),o.lastRenderedState=g}return[g,c]}function U0(r,i,o){var c=Ce,m=At(),g=Ne;if(g){if(o===void 0)throw Error(a(407));o=o()}else o=i();var S=!qn((Ge||m).memoizedState,o);if(S&&(m.memoizedState=o,Nt=!0),m=m.queue,Ah(q0.bind(null,c,m,r),[r]),m.getSnapshot!==i||S||Lt!==null&&Lt.memoizedState.tag&1){if(c.flags|=2048,Il(9,{destroy:void 0},G0.bind(null,c,m,o,i),null),Ze===null)throw Error(a(349));g||(ga&127)!==0||H0(c,i,o)}return o}function H0(r,i,o){r.flags|=16384,r={getSnapshot:i,value:o},i=Ce.updateQueue,i===null?(i=Ju(),Ce.updateQueue=i,i.stores=[r]):(o=i.stores,o===null?i.stores=[r]:o.push(r))}function G0(r,i,o,c){i.value=o,i.getSnapshot=c,W0(i)&&Y0(r)}function q0(r,i,o){return o(function(){W0(i)&&Y0(r)})}function W0(r){var i=r.getSnapshot;r=r.value;try{var o=i();return!qn(r,o)}catch{return!0}}function Y0(r){var i=ki(r,2);i!==null&&_n(i,r,2)}function Th(r){var i=Tn();if(typeof r=="function"){var o=r;if(r=o(),Ui){It(!0);try{o()}finally{It(!1)}}}return i.memoizedState=i.baseState=r,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:r},i}function X0(r,i,o,c){return r.baseState=o,Eh(r,Ge,typeof c=="function"?c:va)}function lA(r,i,o,c,m){if(ac(r))throw Error(a(485));if(r=i.action,r!==null){var g={payload:m,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){g.listeners.push(S)}};R.T!==null?o(!0):g.isTransition=!1,c(g),o=i.pending,o===null?(g.next=i.pending=g,Z0(i,g)):(g.next=o.next,i.pending=o.next=g)}}function Z0(r,i){var o=i.action,c=i.payload,m=r.state;if(i.isTransition){var g=R.T,S={};R.T=S;try{var A=o(m,c),N=R.S;N!==null&&N(S,A),Q0(r,i,A)}catch(X){Dh(r,i,X)}finally{g!==null&&S.types!==null&&(g.types=S.types),R.T=g}}else try{g=o(m,c),Q0(r,i,g)}catch(X){Dh(r,i,X)}}function Q0(r,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){J0(r,i,c)},function(c){return Dh(r,i,c)}):J0(r,i,o)}function J0(r,i,o){i.status="fulfilled",i.value=o,ey(i),r.state=o,i=r.pending,i!==null&&(o=i.next,o===i?r.pending=null:(o=o.next,i.next=o,Z0(r,o)))}function Dh(r,i,o){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do i.status="rejected",i.reason=o,ey(i),i=i.next;while(i!==c)}r.action=null}function ey(r){r=r.listeners;for(var i=0;i<r.length;i++)(0,r[i])()}function ty(r,i){return i}function ny(r,i){if(Ne){var o=Ze.formState;if(o!==null){e:{var c=Ce;if(Ne){if(nt){t:{for(var m=nt,g=fr;m.nodeType!==8;){if(!g){m=null;break t}if(m=pr(m.nextSibling),m===null){m=null;break t}}g=m.data,m=g==="F!"||g==="F"?m:null}if(m){nt=pr(m.nextSibling),c=m.data==="F!";break e}}Wa(c)}c=!1}c&&(i=o[0])}}return o=Tn(),o.memoizedState=o.baseState=i,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ty,lastRenderedState:i},o.queue=c,o=wy.bind(null,Ce,c),c.dispatch=o,c=Th(!1),g=Oh.bind(null,Ce,!1,c.queue),c=Tn(),m={state:i,dispatch:null,action:r,pending:null},c.queue=m,o=lA.bind(null,Ce,m,g,o),m.dispatch=o,c.memoizedState=r,[i,o,!1]}function ry(r){var i=At();return ay(i,Ge,r)}function ay(r,i,o){if(i=Eh(r,i,ty)[0],r=tc(va)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var c=is(i)}catch(S){throw S===Ll?Hu:S}else c=i;i=At();var m=i.queue,g=m.dispatch;return o!==i.memoizedState&&(Ce.flags|=2048,Il(9,{destroy:void 0},oA.bind(null,m,o),null)),[c,g,r]}function oA(r,i){r.action=i}function iy(r){var i=At(),o=Ge;if(o!==null)return ay(i,o,r);At(),i=i.memoizedState,o=At();var c=o.queue.dispatch;return o.memoizedState=r,[i,c,!1]}function Il(r,i,o,c){return r={tag:r,create:o,deps:c,inst:i,next:null},i=Ce.updateQueue,i===null&&(i=Ju(),Ce.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=r.next=r:(c=o.next,o.next=r,r.next=c,i.lastEffect=r),r}function ly(){return At().memoizedState}function nc(r,i,o,c){var m=Tn();Ce.flags|=r,m.memoizedState=Il(1|i,{destroy:void 0},o,c===void 0?null:c)}function rc(r,i,o,c){var m=At();c=c===void 0?null:c;var g=m.memoizedState.inst;Ge!==null&&c!==null&&bh(c,Ge.memoizedState.deps)?m.memoizedState=Il(i,g,o,c):(Ce.flags|=r,m.memoizedState=Il(1|i,g,o,c))}function oy(r,i){nc(8390656,8,r,i)}function Ah(r,i){rc(2048,8,r,i)}function sA(r){Ce.flags|=4;var i=Ce.updateQueue;if(i===null)i=Ju(),Ce.updateQueue=i,i.events=[r];else{var o=i.events;o===null?i.events=[r]:o.push(r)}}function sy(r){var i=At().memoizedState;return sA({ref:i,nextImpl:r}),function(){if((Fe&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}function uy(r,i){return rc(4,2,r,i)}function cy(r,i){return rc(4,4,r,i)}function dy(r,i){if(typeof i=="function"){r=r();var o=i(r);return function(){typeof o=="function"?o():i(null)}}if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function fy(r,i,o){o=o!=null?o.concat([r]):null,rc(4,4,dy.bind(null,i,r),o)}function Mh(){}function hy(r,i){var o=At();i=i===void 0?null:i;var c=o.memoizedState;return i!==null&&bh(i,c[1])?c[0]:(o.memoizedState=[r,i],r)}function py(r,i){var o=At();i=i===void 0?null:i;var c=o.memoizedState;if(i!==null&&bh(i,c[1]))return c[0];if(c=r(),Ui){It(!0);try{r()}finally{It(!1)}}return o.memoizedState=[c,i],c}function Rh(r,i,o){return o===void 0||(ga&1073741824)!==0&&(ze&261930)===0?r.memoizedState=i:(r.memoizedState=o,r=m1(),Ce.lanes|=r,ri|=r,o)}function my(r,i,o,c){return qn(o,i)?o:_l.current!==null?(r=Rh(r,o,c),qn(r,i)||(Nt=!0),r):(ga&42)===0||(ga&1073741824)!==0&&(ze&261930)===0?(Nt=!0,r.memoizedState=o):(r=m1(),Ce.lanes|=r,ri|=r,i)}function gy(r,i,o,c,m){var g=B.p;B.p=g!==0&&8>g?g:8;var S=R.T,A={};R.T=A,Oh(r,!1,i,o);try{var N=m(),X=R.S;if(X!==null&&X(A,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var ne=rA(N,c);ls(r,i,ne,Jn(r))}else ls(r,i,c,Jn(r))}catch(le){ls(r,i,{then:function(){},status:"rejected",reason:le},Jn())}finally{B.p=g,S!==null&&A.types!==null&&(S.types=A.types),R.T=S}}function uA(){}function Ph(r,i,o,c){if(r.tag!==5)throw Error(a(476));var m=vy(r).queue;gy(r,m,i,H,o===null?uA:function(){return by(r),o(c)})}function vy(r){var i=r.memoizedState;if(i!==null)return i;i={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:H},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:o},next:null},r.memoizedState=i,r=r.alternate,r!==null&&(r.memoizedState=i),i}function by(r){var i=vy(r);i.next===null&&(i=r.alternate.memoizedState),ls(r,i.next.queue,{},Jn())}function zh(){return un($s)}function yy(){return At().memoizedState}function xy(){return At().memoizedState}function cA(r){for(var i=r.return;i!==null;){switch(i.tag){case 24:case 3:var o=Jn();r=Za(o);var c=Qa(i,r,o);c!==null&&(_n(c,i,o),ts(c,i,o)),i={cache:oh()},r.payload=i;return}i=i.return}}function dA(r,i,o){var c=Jn();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},ac(r)?Sy(i,o):(o=Xf(r,i,o,c),o!==null&&(_n(o,r,c),$y(o,i,c)))}function wy(r,i,o){var c=Jn();ls(r,i,o,c)}function ls(r,i,o,c){var m={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(ac(r))Sy(i,m);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var S=i.lastRenderedState,A=g(S,o);if(m.hasEagerState=!0,m.eagerState=A,qn(A,S))return _u(r,i,m,0),Ze===null&&Nu(),!1}catch{}finally{}if(o=Xf(r,i,m,c),o!==null)return _n(o,r,c),$y(o,i,c),!0}return!1}function Oh(r,i,o,c){if(c={lane:2,revertLane:dp(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},ac(r)){if(i)throw Error(a(479))}else i=Xf(r,o,c,2),i!==null&&_n(i,r,2)}function ac(r){var i=r.alternate;return r===Ce||i!==null&&i===Ce}function Sy(r,i){Kl=Zu=!0;var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}function $y(r,i,o){if((o&4194048)!==0){var c=i.lanes;c&=r.pendingLanes,o|=c,i.lanes=o,ut(r,o)}}var os={readContext:un,use:ec,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useLayoutEffect:yt,useInsertionEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useSyncExternalStore:yt,useId:yt,useHostTransitionStatus:yt,useFormState:yt,useActionState:yt,useOptimistic:yt,useMemoCache:yt,useCacheRefresh:yt};os.useEffectEvent=yt;var Ey={readContext:un,use:ec,useCallback:function(r,i){return Tn().memoizedState=[r,i===void 0?null:i],r},useContext:un,useEffect:oy,useImperativeHandle:function(r,i,o){o=o!=null?o.concat([r]):null,nc(4194308,4,dy.bind(null,i,r),o)},useLayoutEffect:function(r,i){return nc(4194308,4,r,i)},useInsertionEffect:function(r,i){nc(4,2,r,i)},useMemo:function(r,i){var o=Tn();i=i===void 0?null:i;var c=r();if(Ui){It(!0);try{r()}finally{It(!1)}}return o.memoizedState=[c,i],c},useReducer:function(r,i,o){var c=Tn();if(o!==void 0){var m=o(i);if(Ui){It(!0);try{o(i)}finally{It(!1)}}}else m=i;return c.memoizedState=c.baseState=m,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:m},c.queue=r,r=r.dispatch=dA.bind(null,Ce,r),[c.memoizedState,r]},useRef:function(r){var i=Tn();return r={current:r},i.memoizedState=r},useState:function(r){r=Th(r);var i=r.queue,o=wy.bind(null,Ce,i);return i.dispatch=o,[r.memoizedState,o]},useDebugValue:Mh,useDeferredValue:function(r,i){var o=Tn();return Rh(o,r,i)},useTransition:function(){var r=Th(!1);return r=gy.bind(null,Ce,r.queue,!0,!1),Tn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,i,o){var c=Ce,m=Tn();if(Ne){if(o===void 0)throw Error(a(407));o=o()}else{if(o=i(),Ze===null)throw Error(a(349));(ze&127)!==0||H0(c,i,o)}m.memoizedState=o;var g={value:o,getSnapshot:i};return m.queue=g,oy(q0.bind(null,c,g,r),[r]),c.flags|=2048,Il(9,{destroy:void 0},G0.bind(null,c,g,o,i),null),o},useId:function(){var r=Tn(),i=Ze.identifierPrefix;if(Ne){var o=Hr,c=Ur;o=(c&~(1<<32-ht(c)-1)).toString(32)+o,i="_"+i+"R_"+o,o=Qu++,0<o&&(i+="H"+o.toString(32)),i+="_"}else o=aA++,i="_"+i+"r_"+o.toString(32)+"_";return r.memoizedState=i},useHostTransitionStatus:zh,useFormState:ny,useActionState:ny,useOptimistic:function(r){var i=Tn();i.memoizedState=i.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=Oh.bind(null,Ce,!0,o),o.dispatch=i,[r,i]},useMemoCache:$h,useCacheRefresh:function(){return Tn().memoizedState=cA.bind(null,Ce)},useEffectEvent:function(r){var i=Tn(),o={impl:r};return i.memoizedState=o,function(){if((Fe&2)!==0)throw Error(a(440));return o.impl.apply(void 0,arguments)}}},Bh={readContext:un,use:ec,useCallback:hy,useContext:un,useEffect:Ah,useImperativeHandle:fy,useInsertionEffect:uy,useLayoutEffect:cy,useMemo:py,useReducer:tc,useRef:ly,useState:function(){return tc(va)},useDebugValue:Mh,useDeferredValue:function(r,i){var o=At();return my(o,Ge.memoizedState,r,i)},useTransition:function(){var r=tc(va)[0],i=At().memoizedState;return[typeof r=="boolean"?r:is(r),i]},useSyncExternalStore:U0,useId:yy,useHostTransitionStatus:zh,useFormState:ry,useActionState:ry,useOptimistic:function(r,i){var o=At();return X0(o,Ge,r,i)},useMemoCache:$h,useCacheRefresh:xy};Bh.useEffectEvent=sy;var Cy={readContext:un,use:ec,useCallback:hy,useContext:un,useEffect:Ah,useImperativeHandle:fy,useInsertionEffect:uy,useLayoutEffect:cy,useMemo:py,useReducer:Ch,useRef:ly,useState:function(){return Ch(va)},useDebugValue:Mh,useDeferredValue:function(r,i){var o=At();return Ge===null?Rh(o,r,i):my(o,Ge.memoizedState,r,i)},useTransition:function(){var r=Ch(va)[0],i=At().memoizedState;return[typeof r=="boolean"?r:is(r),i]},useSyncExternalStore:U0,useId:yy,useHostTransitionStatus:zh,useFormState:iy,useActionState:iy,useOptimistic:function(r,i){var o=At();return Ge!==null?X0(o,Ge,r,i):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:$h,useCacheRefresh:xy};Cy.useEffectEvent=sy;function kh(r,i,o,c){i=r.memoizedState,o=o(c,i),o=o==null?i:v({},i,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var Lh={enqueueSetState:function(r,i,o){r=r._reactInternals;var c=Jn(),m=Za(c);m.payload=i,o!=null&&(m.callback=o),i=Qa(r,m,c),i!==null&&(_n(i,r,c),ts(i,r,c))},enqueueReplaceState:function(r,i,o){r=r._reactInternals;var c=Jn(),m=Za(c);m.tag=1,m.payload=i,o!=null&&(m.callback=o),i=Qa(r,m,c),i!==null&&(_n(i,r,c),ts(i,r,c))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var o=Jn(),c=Za(o);c.tag=2,i!=null&&(c.callback=i),i=Qa(r,c,o),i!==null&&(_n(i,r,o),ts(i,r,o))}};function Ty(r,i,o,c,m,g,S){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,g,S):i.prototype&&i.prototype.isPureReactComponent?!qo(o,c)||!qo(m,g):!0}function Dy(r,i,o,c){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,c),i.state!==r&&Lh.enqueueReplaceState(i,i.state,null)}function Hi(r,i){var o=i;if("ref"in i){o={};for(var c in i)c!=="ref"&&(o[c]=i[c])}if(r=r.defaultProps){o===i&&(o=v({},o));for(var m in r)o[m]===void 0&&(o[m]=r[m])}return o}function Ay(r){Lu(r)}function My(r){console.error(r)}function Ry(r){Lu(r)}function ic(r,i){try{var o=r.onUncaughtError;o(i.value,{componentStack:i.stack})}catch(c){setTimeout(function(){throw c})}}function Py(r,i,o){try{var c=r.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Nh(r,i,o){return o=Za(o),o.tag=3,o.payload={element:null},o.callback=function(){ic(r,i)},o}function zy(r){return r=Za(r),r.tag=3,r}function Oy(r,i,o,c){var m=o.type.getDerivedStateFromError;if(typeof m=="function"){var g=c.value;r.payload=function(){return m(g)},r.callback=function(){Py(i,o,c)}}var S=o.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(r.callback=function(){Py(i,o,c),typeof m!="function"&&(ai===null?ai=new Set([this]):ai.add(this));var A=c.stack;this.componentDidCatch(c.value,{componentStack:A!==null?A:""})})}function fA(r,i,o,c,m){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(i=o.alternate,i!==null&&Ol(i,o,m,!0),o=Yn.current,o!==null){switch(o.tag){case 31:case 13:return hr===null?vc():o.alternate===null&&xt===0&&(xt=3),o.flags&=-257,o.flags|=65536,o.lanes=m,c===Gu?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([c]):i.add(c),sp(r,c,m)),!1;case 22:return o.flags|=65536,c===Gu?o.flags|=16384:(i=o.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=i):(o=i.retryQueue,o===null?i.retryQueue=new Set([c]):o.add(c)),sp(r,c,m)),!1}throw Error(a(435,o.tag))}return sp(r,c,m),vc(),!1}if(Ne)return i=Yn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=m,c!==nh&&(r=Error(a(422),{cause:c}),Xo(ur(r,o)))):(c!==nh&&(i=Error(a(423),{cause:c}),Xo(ur(i,o))),r=r.current.alternate,r.flags|=65536,m&=-m,r.lanes|=m,c=ur(c,o),m=Nh(r.stateNode,c,m),hh(r,m),xt!==4&&(xt=2)),!1;var g=Error(a(520),{cause:c});if(g=ur(g,o),ms===null?ms=[g]:ms.push(g),xt!==4&&(xt=2),i===null)return!0;c=ur(c,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,r=m&-m,o.lanes|=r,r=Nh(o.stateNode,c,r),hh(o,r),!1;case 1:if(i=o.type,g=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(ai===null||!ai.has(g))))return o.flags|=65536,m&=-m,o.lanes|=m,m=zy(m),Oy(m,r,o,c),hh(o,m),!1}o=o.return}while(o!==null);return!1}var _h=Error(a(461)),Nt=!1;function cn(r,i,o,c){i.child=r===null?N0(i,null,o,c):ji(i,r.child,o,c)}function By(r,i,o,c,m){o=o.render;var g=i.ref;if("ref"in c){var S={};for(var A in c)A!=="ref"&&(S[A]=c[A])}else S=c;return Ki(i),c=yh(r,i,o,S,g,m),A=xh(),r!==null&&!Nt?(wh(r,i,m),ba(r,i,m)):(Ne&&A&&eh(i),i.flags|=1,cn(r,i,c,m),i.child)}function ky(r,i,o,c,m){if(r===null){var g=o.type;return typeof g=="function"&&!Zf(g)&&g.defaultProps===void 0&&o.compare===null?(i.tag=15,i.type=g,Ly(r,i,g,c,m)):(r=Vu(o.type,null,c,i,i.mode,m),r.ref=i.ref,r.return=i,i.child=r)}if(g=r.child,!Gh(r,m)){var S=g.memoizedProps;if(o=o.compare,o=o!==null?o:qo,o(S,c)&&r.ref===i.ref)return ba(r,i,m)}return i.flags|=1,r=fa(g,c),r.ref=i.ref,r.return=i,i.child=r}function Ly(r,i,o,c,m){if(r!==null){var g=r.memoizedProps;if(qo(g,c)&&r.ref===i.ref)if(Nt=!1,i.pendingProps=c=g,Gh(r,m))(r.flags&131072)!==0&&(Nt=!0);else return i.lanes=r.lanes,ba(r,i,m)}return Kh(r,i,o,c,m)}function Ny(r,i,o,c){var m=c.children,g=r!==null?r.memoizedState:null;if(r===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((i.flags&128)!==0){if(g=g!==null?g.baseLanes|o:o,r!==null){for(c=i.child=r.child,m=0;c!==null;)m=m|c.lanes|c.childLanes,c=c.sibling;c=m&~g}else c=0,i.child=null;return _y(r,i,g,o,c)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},r!==null&&Uu(i,g!==null?g.cachePool:null),g!==null?V0(i,g):mh(),I0(i);else return c=i.lanes=536870912,_y(r,i,g!==null?g.baseLanes|o:o,o,c)}else g!==null?(Uu(i,g.cachePool),V0(i,g),ei(),i.memoizedState=null):(r!==null&&Uu(i,null),mh(),ei());return cn(r,i,m,o),i.child}function ss(r,i){return r!==null&&r.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function _y(r,i,o,c,m){var g=uh();return g=g===null?null:{parent:kt._currentValue,pool:g},i.memoizedState={baseLanes:o,cachePool:g},r!==null&&Uu(i,null),mh(),I0(i),r!==null&&Ol(r,i,c,!0),i.childLanes=m,null}function lc(r,i){return i=sc({mode:i.mode,children:i.children},r.mode),i.ref=r.ref,r.child=i,i.return=r,i}function Ky(r,i,o){return ji(i,r.child,null,o),r=lc(i,i.pendingProps),r.flags|=2,Xn(i),i.memoizedState=null,r}function hA(r,i,o){var c=i.pendingProps,m=(i.flags&128)!==0;if(i.flags&=-129,r===null){if(Ne){if(c.mode==="hidden")return r=lc(i,c),i.lanes=536870912,ss(null,r);if(vh(i),(r=nt)?(r=Z1(r,fr),r=r!==null&&r.data==="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:Ga!==null?{id:Ur,overflow:Hr}:null,retryLane:536870912,hydrationErrors:null},o=S0(r),o.return=i,i.child=o,sn=i,nt=null)):r=null,r===null)throw Wa(i);return i.lanes=536870912,null}return lc(i,c)}var g=r.memoizedState;if(g!==null){var S=g.dehydrated;if(vh(i),m)if(i.flags&256)i.flags&=-257,i=Ky(r,i,o);else if(i.memoizedState!==null)i.child=r.child,i.flags|=128,i=null;else throw Error(a(558));else if(Nt||Ol(r,i,o,!1),m=(o&r.childLanes)!==0,Nt||m){if(c=Ze,c!==null&&(S=Bt(c,o),S!==0&&S!==g.retryLane))throw g.retryLane=S,ki(r,S),_n(c,r,S),_h;vc(),i=Ky(r,i,o)}else r=g.treeContext,nt=pr(S.nextSibling),sn=i,Ne=!0,qa=null,fr=!1,r!==null&&C0(i,r),i=lc(i,c),i.flags|=4096;return i}return r=fa(r.child,{mode:c.mode,children:c.children}),r.ref=i.ref,i.child=r,r.return=i,r}function oc(r,i){var o=i.ref;if(o===null)r!==null&&r.ref!==null&&(i.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(a(284));(r===null||r.ref!==o)&&(i.flags|=4194816)}}function Kh(r,i,o,c,m){return Ki(i),o=yh(r,i,o,c,void 0,m),c=xh(),r!==null&&!Nt?(wh(r,i,m),ba(r,i,m)):(Ne&&c&&eh(i),i.flags|=1,cn(r,i,o,m),i.child)}function Vy(r,i,o,c,m,g){return Ki(i),i.updateQueue=null,o=j0(i,c,o,m),F0(r),c=xh(),r!==null&&!Nt?(wh(r,i,g),ba(r,i,g)):(Ne&&c&&eh(i),i.flags|=1,cn(r,i,o,g),i.child)}function Iy(r,i,o,c,m){if(Ki(i),i.stateNode===null){var g=Ml,S=o.contextType;typeof S=="object"&&S!==null&&(g=un(S)),g=new o(c,g),i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Lh,i.stateNode=g,g._reactInternals=i,g=i.stateNode,g.props=c,g.state=i.memoizedState,g.refs={},dh(i),S=o.contextType,g.context=typeof S=="object"&&S!==null?un(S):Ml,g.state=i.memoizedState,S=o.getDerivedStateFromProps,typeof S=="function"&&(kh(i,o,S,c),g.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(S=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),S!==g.state&&Lh.enqueueReplaceState(g,g.state,null),rs(i,c,g,m),ns(),g.state=i.memoizedState),typeof g.componentDidMount=="function"&&(i.flags|=4194308),c=!0}else if(r===null){g=i.stateNode;var A=i.memoizedProps,N=Hi(o,A);g.props=N;var X=g.context,ne=o.contextType;S=Ml,typeof ne=="object"&&ne!==null&&(S=un(ne));var le=o.getDerivedStateFromProps;ne=typeof le=="function"||typeof g.getSnapshotBeforeUpdate=="function",A=i.pendingProps!==A,ne||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(A||X!==S)&&Dy(i,g,c,S),Xa=!1;var Q=i.memoizedState;g.state=Q,rs(i,c,g,m),ns(),X=i.memoizedState,A||Q!==X||Xa?(typeof le=="function"&&(kh(i,o,le,c),X=i.memoizedState),(N=Xa||Ty(i,o,N,c,Q,X,S))?(ne||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(i.flags|=4194308)):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=X),g.props=c,g.state=X,g.context=S,c=N):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{g=i.stateNode,fh(r,i),S=i.memoizedProps,ne=Hi(o,S),g.props=ne,le=i.pendingProps,Q=g.context,X=o.contextType,N=Ml,typeof X=="object"&&X!==null&&(N=un(X)),A=o.getDerivedStateFromProps,(X=typeof A=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S!==le||Q!==N)&&Dy(i,g,c,N),Xa=!1,Q=i.memoizedState,g.state=Q,rs(i,c,g,m),ns();var J=i.memoizedState;S!==le||Q!==J||Xa||r!==null&&r.dependencies!==null&&Fu(r.dependencies)?(typeof A=="function"&&(kh(i,o,A,c),J=i.memoizedState),(ne=Xa||Ty(i,o,ne,c,Q,J,N)||r!==null&&r.dependencies!==null&&Fu(r.dependencies))?(X||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,J,N),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,J,N)),typeof g.componentDidUpdate=="function"&&(i.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof g.componentDidUpdate!="function"||S===r.memoizedProps&&Q===r.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===r.memoizedProps&&Q===r.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=J),g.props=c,g.state=J,g.context=N,c=ne):(typeof g.componentDidUpdate!="function"||S===r.memoizedProps&&Q===r.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===r.memoizedProps&&Q===r.memoizedState||(i.flags|=1024),c=!1)}return g=c,oc(r,i),c=(i.flags&128)!==0,g||c?(g=i.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:g.render(),i.flags|=1,r!==null&&c?(i.child=ji(i,r.child,null,m),i.child=ji(i,null,o,m)):cn(r,i,o,m),i.memoizedState=g.state,r=i.child):r=ba(r,i,m),r}function Fy(r,i,o,c){return Ni(),i.flags|=256,cn(r,i,o,c),i.child}var Vh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ih(r){return{baseLanes:r,cachePool:P0()}}function Fh(r,i,o){return r=r!==null?r.childLanes&~o:0,i&&(r|=Qn),r}function jy(r,i,o){var c=i.pendingProps,m=!1,g=(i.flags&128)!==0,S;if((S=g)||(S=r!==null&&r.memoizedState===null?!1:(Dt.current&2)!==0),S&&(m=!0,i.flags&=-129),S=(i.flags&32)!==0,i.flags&=-33,r===null){if(Ne){if(m?Ja(i):ei(),(r=nt)?(r=Z1(r,fr),r=r!==null&&r.data!=="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:Ga!==null?{id:Ur,overflow:Hr}:null,retryLane:536870912,hydrationErrors:null},o=S0(r),o.return=i,i.child=o,sn=i,nt=null)):r=null,r===null)throw Wa(i);return Ep(r)?i.lanes=32:i.lanes=536870912,null}var A=c.children;return c=c.fallback,m?(ei(),m=i.mode,A=sc({mode:"hidden",children:A},m),c=Li(c,m,o,null),A.return=i,c.return=i,A.sibling=c,i.child=A,c=i.child,c.memoizedState=Ih(o),c.childLanes=Fh(r,S,o),i.memoizedState=Vh,ss(null,c)):(Ja(i),jh(i,A))}var N=r.memoizedState;if(N!==null&&(A=N.dehydrated,A!==null)){if(g)i.flags&256?(Ja(i),i.flags&=-257,i=Uh(r,i,o)):i.memoizedState!==null?(ei(),i.child=r.child,i.flags|=128,i=null):(ei(),A=c.fallback,m=i.mode,c=sc({mode:"visible",children:c.children},m),A=Li(A,m,o,null),A.flags|=2,c.return=i,A.return=i,c.sibling=A,i.child=c,ji(i,r.child,null,o),c=i.child,c.memoizedState=Ih(o),c.childLanes=Fh(r,S,o),i.memoizedState=Vh,i=ss(null,c));else if(Ja(i),Ep(A)){if(S=A.nextSibling&&A.nextSibling.dataset,S)var X=S.dgst;S=X,c=Error(a(419)),c.stack="",c.digest=S,Xo({value:c,source:null,stack:null}),i=Uh(r,i,o)}else if(Nt||Ol(r,i,o,!1),S=(o&r.childLanes)!==0,Nt||S){if(S=Ze,S!==null&&(c=Bt(S,o),c!==0&&c!==N.retryLane))throw N.retryLane=c,ki(r,c),_n(S,r,c),_h;$p(A)||vc(),i=Uh(r,i,o)}else $p(A)?(i.flags|=192,i.child=r.child,i=null):(r=N.treeContext,nt=pr(A.nextSibling),sn=i,Ne=!0,qa=null,fr=!1,r!==null&&C0(i,r),i=jh(i,c.children),i.flags|=4096);return i}return m?(ei(),A=c.fallback,m=i.mode,N=r.child,X=N.sibling,c=fa(N,{mode:"hidden",children:c.children}),c.subtreeFlags=N.subtreeFlags&65011712,X!==null?A=fa(X,A):(A=Li(A,m,o,null),A.flags|=2),A.return=i,c.return=i,c.sibling=A,i.child=c,ss(null,c),c=i.child,A=r.child.memoizedState,A===null?A=Ih(o):(m=A.cachePool,m!==null?(N=kt._currentValue,m=m.parent!==N?{parent:N,pool:N}:m):m=P0(),A={baseLanes:A.baseLanes|o,cachePool:m}),c.memoizedState=A,c.childLanes=Fh(r,S,o),i.memoizedState=Vh,ss(r.child,c)):(Ja(i),o=r.child,r=o.sibling,o=fa(o,{mode:"visible",children:c.children}),o.return=i,o.sibling=null,r!==null&&(S=i.deletions,S===null?(i.deletions=[r],i.flags|=16):S.push(r)),i.child=o,i.memoizedState=null,o)}function jh(r,i){return i=sc({mode:"visible",children:i},r.mode),i.return=r,r.child=i}function sc(r,i){return r=Wn(22,r,null,i),r.lanes=0,r}function Uh(r,i,o){return ji(i,r.child,null,o),r=jh(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function Uy(r,i,o){r.lanes|=i;var c=r.alternate;c!==null&&(c.lanes|=i),ih(r.return,i,o)}function Hh(r,i,o,c,m,g){var S=r.memoizedState;S===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:m,treeForkCount:g}:(S.isBackwards=i,S.rendering=null,S.renderingStartTime=0,S.last=c,S.tail=o,S.tailMode=m,S.treeForkCount=g)}function Hy(r,i,o){var c=i.pendingProps,m=c.revealOrder,g=c.tail;c=c.children;var S=Dt.current,A=(S&2)!==0;if(A?(S=S&1|2,i.flags|=128):S&=1,ie(Dt,S),cn(r,i,c,o),c=Ne?Yo:0,!A&&r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Uy(r,o,i);else if(r.tag===19)Uy(r,o,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(m){case"forwards":for(o=i.child,m=null;o!==null;)r=o.alternate,r!==null&&Xu(r)===null&&(m=o),o=o.sibling;o=m,o===null?(m=i.child,i.child=null):(m=o.sibling,o.sibling=null),Hh(i,!1,m,o,g,c);break;case"backwards":case"unstable_legacy-backwards":for(o=null,m=i.child,i.child=null;m!==null;){if(r=m.alternate,r!==null&&Xu(r)===null){i.child=m;break}r=m.sibling,m.sibling=o,o=m,m=r}Hh(i,!0,o,null,g,c);break;case"together":Hh(i,!1,null,null,void 0,c);break;default:i.memoizedState=null}return i.child}function ba(r,i,o){if(r!==null&&(i.dependencies=r.dependencies),ri|=i.lanes,(o&i.childLanes)===0)if(r!==null){if(Ol(r,i,o,!1),(o&i.childLanes)===0)return null}else return null;if(r!==null&&i.child!==r.child)throw Error(a(153));if(i.child!==null){for(r=i.child,o=fa(r,r.pendingProps),i.child=o,o.return=i;r.sibling!==null;)r=r.sibling,o=o.sibling=fa(r,r.pendingProps),o.return=i;o.sibling=null}return i.child}function Gh(r,i){return(r.lanes&i)!==0?!0:(r=r.dependencies,!!(r!==null&&Fu(r)))}function pA(r,i,o){switch(i.tag){case 3:ye(i,i.stateNode.containerInfo),Ya(i,kt,r.memoizedState.cache),Ni();break;case 27:case 5:ce(i);break;case 4:ye(i,i.stateNode.containerInfo);break;case 10:Ya(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,vh(i),null;break;case 13:var c=i.memoizedState;if(c!==null)return c.dehydrated!==null?(Ja(i),i.flags|=128,null):(o&i.child.childLanes)!==0?jy(r,i,o):(Ja(i),r=ba(r,i,o),r!==null?r.sibling:null);Ja(i);break;case 19:var m=(r.flags&128)!==0;if(c=(o&i.childLanes)!==0,c||(Ol(r,i,o,!1),c=(o&i.childLanes)!==0),m){if(c)return Hy(r,i,o);i.flags|=128}if(m=i.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),ie(Dt,Dt.current),c)break;return null;case 22:return i.lanes=0,Ny(r,i,o,i.pendingProps);case 24:Ya(i,kt,r.memoizedState.cache)}return ba(r,i,o)}function Gy(r,i,o){if(r!==null)if(r.memoizedProps!==i.pendingProps)Nt=!0;else{if(!Gh(r,o)&&(i.flags&128)===0)return Nt=!1,pA(r,i,o);Nt=(r.flags&131072)!==0}else Nt=!1,Ne&&(i.flags&1048576)!==0&&E0(i,Yo,i.index);switch(i.lanes=0,i.tag){case 16:e:{var c=i.pendingProps;if(r=Ii(i.elementType),i.type=r,typeof r=="function")Zf(r)?(c=Hi(r,c),i.tag=1,i=Iy(null,i,r,c,o)):(i.tag=0,i=Kh(null,i,r,c,o));else{if(r!=null){var m=r.$$typeof;if(m===O){i.tag=11,i=By(null,i,r,c,o);break e}else if(m===G){i.tag=14,i=ky(null,i,r,c,o);break e}}throw i=K(r)||r,Error(a(306,i,""))}}return i;case 0:return Kh(r,i,i.type,i.pendingProps,o);case 1:return c=i.type,m=Hi(c,i.pendingProps),Iy(r,i,c,m,o);case 3:e:{if(ye(i,i.stateNode.containerInfo),r===null)throw Error(a(387));c=i.pendingProps;var g=i.memoizedState;m=g.element,fh(r,i),rs(i,c,null,o);var S=i.memoizedState;if(c=S.cache,Ya(i,kt,c),c!==g.cache&&lh(i,[kt],o,!0),ns(),c=S.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:S.cache},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){i=Fy(r,i,c,o);break e}else if(c!==m){m=ur(Error(a(424)),i),Xo(m),i=Fy(r,i,c,o);break e}else{switch(r=i.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(nt=pr(r.firstChild),sn=i,Ne=!0,qa=null,fr=!0,o=N0(i,null,c,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Ni(),c===m){i=ba(r,i,o);break e}cn(r,i,c,o)}i=i.child}return i;case 26:return oc(r,i),r===null?(o=rx(i.type,null,i.pendingProps,null))?i.memoizedState=o:Ne||(o=i.type,r=i.pendingProps,c=Ec(pe.current).createElement(o),c[Ye]=i,c[ct]=r,dn(c,o,r),Xe(c),i.stateNode=c):i.memoizedState=rx(i.type,r.memoizedProps,i.pendingProps,r.memoizedState),null;case 27:return ce(i),r===null&&Ne&&(c=i.stateNode=ex(i.type,i.pendingProps,pe.current),sn=i,fr=!0,m=nt,si(i.type)?(Cp=m,nt=pr(c.firstChild)):nt=m),cn(r,i,i.pendingProps.children,o),oc(r,i),r===null&&(i.flags|=4194304),i.child;case 5:return r===null&&Ne&&((m=c=nt)&&(c=UA(c,i.type,i.pendingProps,fr),c!==null?(i.stateNode=c,sn=i,nt=pr(c.firstChild),fr=!1,m=!0):m=!1),m||Wa(i)),ce(i),m=i.type,g=i.pendingProps,S=r!==null?r.memoizedProps:null,c=g.children,xp(m,g)?c=null:S!==null&&xp(m,S)&&(i.flags|=32),i.memoizedState!==null&&(m=yh(r,i,iA,null,null,o),$s._currentValue=m),oc(r,i),cn(r,i,c,o),i.child;case 6:return r===null&&Ne&&((r=o=nt)&&(o=HA(o,i.pendingProps,fr),o!==null?(i.stateNode=o,sn=i,nt=null,r=!0):r=!1),r||Wa(i)),null;case 13:return jy(r,i,o);case 4:return ye(i,i.stateNode.containerInfo),c=i.pendingProps,r===null?i.child=ji(i,null,c,o):cn(r,i,c,o),i.child;case 11:return By(r,i,i.type,i.pendingProps,o);case 7:return cn(r,i,i.pendingProps,o),i.child;case 8:return cn(r,i,i.pendingProps.children,o),i.child;case 12:return cn(r,i,i.pendingProps.children,o),i.child;case 10:return c=i.pendingProps,Ya(i,i.type,c.value),cn(r,i,c.children,o),i.child;case 9:return m=i.type._context,c=i.pendingProps.children,Ki(i),m=un(m),c=c(m),i.flags|=1,cn(r,i,c,o),i.child;case 14:return ky(r,i,i.type,i.pendingProps,o);case 15:return Ly(r,i,i.type,i.pendingProps,o);case 19:return Hy(r,i,o);case 31:return hA(r,i,o);case 22:return Ny(r,i,o,i.pendingProps);case 24:return Ki(i),c=un(kt),r===null?(m=uh(),m===null&&(m=Ze,g=oh(),m.pooledCache=g,g.refCount++,g!==null&&(m.pooledCacheLanes|=o),m=g),i.memoizedState={parent:c,cache:m},dh(i),Ya(i,kt,m)):((r.lanes&o)!==0&&(fh(r,i),rs(i,null,null,o),ns()),m=r.memoizedState,g=i.memoizedState,m.parent!==c?(m={parent:c,cache:c},i.memoizedState=m,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=m),Ya(i,kt,c)):(c=g.cache,Ya(i,kt,c),c!==m.cache&&lh(i,[kt],o,!0))),cn(r,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function ya(r){r.flags|=4}function qh(r,i,o,c,m){if((i=(r.mode&32)!==0)&&(i=!1),i){if(r.flags|=16777216,(m&335544128)===m)if(r.stateNode.complete)r.flags|=8192;else if(y1())r.flags|=8192;else throw Fi=Gu,ch}else r.flags&=-16777217}function qy(r,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!sx(i))if(y1())r.flags|=8192;else throw Fi=Gu,ch}function uc(r,i){i!==null&&(r.flags|=4),r.flags&16384&&(i=r.tag!==22?Qe():536870912,r.lanes|=i,Hl|=i)}function us(r,i){if(!Ne)switch(r.tailMode){case"hidden":i=r.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function rt(r){var i=r.alternate!==null&&r.alternate.child===r.child,o=0,c=0;if(i)for(var m=r.child;m!==null;)o|=m.lanes|m.childLanes,c|=m.subtreeFlags&65011712,c|=m.flags&65011712,m.return=r,m=m.sibling;else for(m=r.child;m!==null;)o|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=r,m=m.sibling;return r.subtreeFlags|=c,r.childLanes=o,i}function mA(r,i,o){var c=i.pendingProps;switch(th(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(i),null;case 1:return rt(i),null;case 3:return o=i.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),ma(kt),ge(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(zl(i)?ya(i):r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,rh())),rt(i),null;case 26:var m=i.type,g=i.memoizedState;return r===null?(ya(i),g!==null?(rt(i),qy(i,g)):(rt(i),qh(i,m,null,c,o))):g?g!==r.memoizedState?(ya(i),rt(i),qy(i,g)):(rt(i),i.flags&=-16777217):(r=r.memoizedProps,r!==c&&ya(i),rt(i),qh(i,m,r,c,o)),null;case 27:if(gt(i),o=pe.current,m=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==c&&ya(i);else{if(!c){if(i.stateNode===null)throw Error(a(166));return rt(i),null}r=se.current,zl(i)?T0(i):(r=ex(m,c,o),i.stateNode=r,ya(i))}return rt(i),null;case 5:if(gt(i),m=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==c&&ya(i);else{if(!c){if(i.stateNode===null)throw Error(a(166));return rt(i),null}if(g=se.current,zl(i))T0(i);else{var S=Ec(pe.current);switch(g){case 1:g=S.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:g=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":g=S.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":g=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":g=S.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof c.is=="string"?S.createElement("select",{is:c.is}):S.createElement("select"),c.multiple?g.multiple=!0:c.size&&(g.size=c.size);break;default:g=typeof c.is=="string"?S.createElement(m,{is:c.is}):S.createElement(m)}}g[Ye]=i,g[ct]=c;e:for(S=i.child;S!==null;){if(S.tag===5||S.tag===6)g.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===i)break e;for(;S.sibling===null;){if(S.return===null||S.return===i)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}i.stateNode=g;e:switch(dn(g,m,c),m){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&ya(i)}}return rt(i),qh(i,i.type,r===null?null:r.memoizedProps,i.pendingProps,o),null;case 6:if(r&&i.stateNode!=null)r.memoizedProps!==c&&ya(i);else{if(typeof c!="string"&&i.stateNode===null)throw Error(a(166));if(r=pe.current,zl(i)){if(r=i.stateNode,o=i.memoizedProps,c=null,m=sn,m!==null)switch(m.tag){case 27:case 5:c=m.memoizedProps}r[Ye]=i,r=!!(r.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||j1(r.nodeValue,o)),r||Wa(i,!0)}else r=Ec(r).createTextNode(c),r[Ye]=i,i.stateNode=r}return rt(i),null;case 31:if(o=i.memoizedState,r===null||r.memoizedState!==null){if(c=zl(i),o!==null){if(r===null){if(!c)throw Error(a(318));if(r=i.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(557));r[Ye]=i}else Ni(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;rt(i),r=!1}else o=rh(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return i.flags&256?(Xn(i),i):(Xn(i),null);if((i.flags&128)!==0)throw Error(a(558))}return rt(i),null;case 13:if(c=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(m=zl(i),c!==null&&c.dehydrated!==null){if(r===null){if(!m)throw Error(a(318));if(m=i.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(a(317));m[Ye]=i}else Ni(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;rt(i),m=!1}else m=rh(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=m),m=!0;if(!m)return i.flags&256?(Xn(i),i):(Xn(i),null)}return Xn(i),(i.flags&128)!==0?(i.lanes=o,i):(o=c!==null,r=r!==null&&r.memoizedState!==null,o&&(c=i.child,m=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(m=c.alternate.memoizedState.cachePool.pool),g=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==m&&(c.flags|=2048)),o!==r&&o&&(i.child.flags|=8192),uc(i,i.updateQueue),rt(i),null);case 4:return ge(),r===null&&mp(i.stateNode.containerInfo),rt(i),null;case 10:return ma(i.type),rt(i),null;case 19:if(Z(Dt),c=i.memoizedState,c===null)return rt(i),null;if(m=(i.flags&128)!==0,g=c.rendering,g===null)if(m)us(c,!1);else{if(xt!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(g=Xu(r),g!==null){for(i.flags|=128,us(c,!1),r=g.updateQueue,i.updateQueue=r,uc(i,r),i.subtreeFlags=0,r=o,o=i.child;o!==null;)w0(o,r),o=o.sibling;return ie(Dt,Dt.current&1|2),Ne&&ha(i,c.treeForkCount),i.child}r=r.sibling}c.tail!==null&&Et()>pc&&(i.flags|=128,m=!0,us(c,!1),i.lanes=4194304)}else{if(!m)if(r=Xu(g),r!==null){if(i.flags|=128,m=!0,r=r.updateQueue,i.updateQueue=r,uc(i,r),us(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!Ne)return rt(i),null}else 2*Et()-c.renderingStartTime>pc&&o!==536870912&&(i.flags|=128,m=!0,us(c,!1),i.lanes=4194304);c.isBackwards?(g.sibling=i.child,i.child=g):(r=c.last,r!==null?r.sibling=g:i.child=g,c.last=g)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=Et(),r.sibling=null,o=Dt.current,ie(Dt,m?o&1|2:o&1),Ne&&ha(i,c.treeForkCount),r):(rt(i),null);case 22:case 23:return Xn(i),gh(),c=i.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(i.flags|=8192):c&&(i.flags|=8192),c?(o&536870912)!==0&&(i.flags&128)===0&&(rt(i),i.subtreeFlags&6&&(i.flags|=8192)):rt(i),o=i.updateQueue,o!==null&&uc(i,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048),r!==null&&Z(Vi),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),ma(kt),rt(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function gA(r,i){switch(th(i),i.tag){case 1:return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return ma(kt),ge(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 26:case 27:case 5:return gt(i),null;case 31:if(i.memoizedState!==null){if(Xn(i),i.alternate===null)throw Error(a(340));Ni()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 13:if(Xn(i),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(a(340));Ni()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return Z(Dt),null;case 4:return ge(),null;case 10:return ma(i.type),null;case 22:case 23:return Xn(i),gh(),r!==null&&Z(Vi),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 24:return ma(kt),null;case 25:return null;default:return null}}function Wy(r,i){switch(th(i),i.tag){case 3:ma(kt),ge();break;case 26:case 27:case 5:gt(i);break;case 4:ge();break;case 31:i.memoizedState!==null&&Xn(i);break;case 13:Xn(i);break;case 19:Z(Dt);break;case 10:ma(i.type);break;case 22:case 23:Xn(i),gh(),r!==null&&Z(Vi);break;case 24:ma(kt)}}function cs(r,i){try{var o=i.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var m=c.next;o=m;do{if((o.tag&r)===r){c=void 0;var g=o.create,S=o.inst;c=g(),S.destroy=c}o=o.next}while(o!==m)}}catch(A){He(i,i.return,A)}}function ti(r,i,o){try{var c=i.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var g=m.next;c=g;do{if((c.tag&r)===r){var S=c.inst,A=S.destroy;if(A!==void 0){S.destroy=void 0,m=i;var N=o,X=A;try{X()}catch(ne){He(m,N,ne)}}}c=c.next}while(c!==g)}}catch(ne){He(i,i.return,ne)}}function Yy(r){var i=r.updateQueue;if(i!==null){var o=r.stateNode;try{K0(i,o)}catch(c){He(r,r.return,c)}}}function Xy(r,i,o){o.props=Hi(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(c){He(r,i,c)}}function ds(r,i){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var c=r.stateNode;break;case 30:c=r.stateNode;break;default:c=r.stateNode}typeof o=="function"?r.refCleanup=o(c):o.current=c}}catch(m){He(r,i,m)}}function Gr(r,i){var o=r.ref,c=r.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(m){He(r,i,m)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(m){He(r,i,m)}else o.current=null}function Zy(r){var i=r.type,o=r.memoizedProps,c=r.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&c.focus();break e;case"img":o.src?c.src=o.src:o.srcSet&&(c.srcset=o.srcSet)}}catch(m){He(r,r.return,m)}}function Wh(r,i,o){try{var c=r.stateNode;_A(c,r.type,o,i),c[ct]=i}catch(m){He(r,r.return,m)}}function Qy(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&si(r.type)||r.tag===4}function Yh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Qy(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&si(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Xh(r,i,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(r),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=ca));else if(c!==4&&(c===27&&si(r.type)&&(o=r.stateNode,i=null),r=r.child,r!==null))for(Xh(r,i,o),r=r.sibling;r!==null;)Xh(r,i,o),r=r.sibling}function cc(r,i,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,i?o.insertBefore(r,i):o.appendChild(r);else if(c!==4&&(c===27&&si(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(cc(r,i,o),r=r.sibling;r!==null;)cc(r,i,o),r=r.sibling}function Jy(r){var i=r.stateNode,o=r.memoizedProps;try{for(var c=r.type,m=i.attributes;m.length;)i.removeAttributeNode(m[0]);dn(i,c,o),i[Ye]=r,i[ct]=o}catch(g){He(r,r.return,g)}}var xa=!1,_t=!1,Zh=!1,e1=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function vA(r,i){if(r=r.containerInfo,bp=Pc,r=f0(r),Uf(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var m=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{o.nodeType,g.nodeType}catch{o=null;break e}var S=0,A=-1,N=-1,X=0,ne=0,le=r,Q=null;t:for(;;){for(var J;le!==o||m!==0&&le.nodeType!==3||(A=S+m),le!==g||c!==0&&le.nodeType!==3||(N=S+c),le.nodeType===3&&(S+=le.nodeValue.length),(J=le.firstChild)!==null;)Q=le,le=J;for(;;){if(le===r)break t;if(Q===o&&++X===m&&(A=S),Q===g&&++ne===c&&(N=S),(J=le.nextSibling)!==null)break;le=Q,Q=le.parentNode}le=J}o=A===-1||N===-1?null:{start:A,end:N}}else o=null}o=o||{start:0,end:0}}else o=null;for(yp={focusedElem:r,selectionRange:o},Pc=!1,Jt=i;Jt!==null;)if(i=Jt,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,Jt=r;else for(;Jt!==null;){switch(i=Jt,g=i.alternate,r=i.flags,i.tag){case 0:if((r&4)!==0&&(r=i.updateQueue,r=r!==null?r.events:null,r!==null))for(o=0;o<r.length;o++)m=r[o],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&g!==null){r=void 0,o=i,m=g.memoizedProps,g=g.memoizedState,c=o.stateNode;try{var fe=Hi(o.type,m);r=c.getSnapshotBeforeUpdate(fe,g),c.__reactInternalSnapshotBeforeUpdate=r}catch(be){He(o,o.return,be)}}break;case 3:if((r&1024)!==0){if(r=i.stateNode.containerInfo,o=r.nodeType,o===9)Sp(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Sp(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(a(163))}if(r=i.sibling,r!==null){r.return=i.return,Jt=r;break}Jt=i.return}}function t1(r,i,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:Sa(r,o),c&4&&cs(5,o);break;case 1:if(Sa(r,o),c&4)if(r=o.stateNode,i===null)try{r.componentDidMount()}catch(S){He(o,o.return,S)}else{var m=Hi(o.type,i.memoizedProps);i=i.memoizedState;try{r.componentDidUpdate(m,i,r.__reactInternalSnapshotBeforeUpdate)}catch(S){He(o,o.return,S)}}c&64&&Yy(o),c&512&&ds(o,o.return);break;case 3:if(Sa(r,o),c&64&&(r=o.updateQueue,r!==null)){if(i=null,o.child!==null)switch(o.child.tag){case 27:case 5:i=o.child.stateNode;break;case 1:i=o.child.stateNode}try{K0(r,i)}catch(S){He(o,o.return,S)}}break;case 27:i===null&&c&4&&Jy(o);case 26:case 5:Sa(r,o),i===null&&c&4&&Zy(o),c&512&&ds(o,o.return);break;case 12:Sa(r,o);break;case 31:Sa(r,o),c&4&&a1(r,o);break;case 13:Sa(r,o),c&4&&i1(r,o),c&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=TA.bind(null,o),GA(r,o))));break;case 22:if(c=o.memoizedState!==null||xa,!c){i=i!==null&&i.memoizedState!==null||_t,m=xa;var g=_t;xa=c,(_t=i)&&!g?$a(r,o,(o.subtreeFlags&8772)!==0):Sa(r,o),xa=m,_t=g}break;case 30:break;default:Sa(r,o)}}function n1(r){var i=r.alternate;i!==null&&(r.alternate=null,n1(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&Ar(i)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var dt=null,Bn=!1;function wa(r,i,o){for(o=o.child;o!==null;)r1(r,i,o),o=o.sibling}function r1(r,i,o){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Ct,o)}catch{}switch(o.tag){case 26:_t||Gr(o,i),wa(r,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:_t||Gr(o,i);var c=dt,m=Bn;si(o.type)&&(dt=o.stateNode,Bn=!1),wa(r,i,o),xs(o.stateNode),dt=c,Bn=m;break;case 5:_t||Gr(o,i);case 6:if(c=dt,m=Bn,dt=null,wa(r,i,o),dt=c,Bn=m,dt!==null)if(Bn)try{(dt.nodeType===9?dt.body:dt.nodeName==="HTML"?dt.ownerDocument.body:dt).removeChild(o.stateNode)}catch(g){He(o,i,g)}else try{dt.removeChild(o.stateNode)}catch(g){He(o,i,g)}break;case 18:dt!==null&&(Bn?(r=dt,Y1(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),Jl(r)):Y1(dt,o.stateNode));break;case 4:c=dt,m=Bn,dt=o.stateNode.containerInfo,Bn=!0,wa(r,i,o),dt=c,Bn=m;break;case 0:case 11:case 14:case 15:ti(2,o,i),_t||ti(4,o,i),wa(r,i,o);break;case 1:_t||(Gr(o,i),c=o.stateNode,typeof c.componentWillUnmount=="function"&&Xy(o,i,c)),wa(r,i,o);break;case 21:wa(r,i,o);break;case 22:_t=(c=_t)||o.memoizedState!==null,wa(r,i,o),_t=c;break;default:wa(r,i,o)}}function a1(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Jl(r)}catch(o){He(i,i.return,o)}}}function i1(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Jl(r)}catch(o){He(i,i.return,o)}}function bA(r){switch(r.tag){case 31:case 13:case 19:var i=r.stateNode;return i===null&&(i=r.stateNode=new e1),i;case 22:return r=r.stateNode,i=r._retryCache,i===null&&(i=r._retryCache=new e1),i;default:throw Error(a(435,r.tag))}}function dc(r,i){var o=bA(r);i.forEach(function(c){if(!o.has(c)){o.add(c);var m=DA.bind(null,r,c);c.then(m,m)}})}function kn(r,i){var o=i.deletions;if(o!==null)for(var c=0;c<o.length;c++){var m=o[c],g=r,S=i,A=S;e:for(;A!==null;){switch(A.tag){case 27:if(si(A.type)){dt=A.stateNode,Bn=!1;break e}break;case 5:dt=A.stateNode,Bn=!1;break e;case 3:case 4:dt=A.stateNode.containerInfo,Bn=!0;break e}A=A.return}if(dt===null)throw Error(a(160));r1(g,S,m),dt=null,Bn=!1,g=m.alternate,g!==null&&(g.return=null),m.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)l1(i,r),i=i.sibling}var Pr=null;function l1(r,i){var o=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:kn(i,r),Ln(r),c&4&&(ti(3,r,r.return),cs(3,r),ti(5,r,r.return));break;case 1:kn(i,r),Ln(r),c&512&&(_t||o===null||Gr(o,o.return)),c&64&&xa&&(r=r.updateQueue,r!==null&&(c=r.callbacks,c!==null&&(o=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:var m=Pr;if(kn(i,r),Ln(r),c&512&&(_t||o===null||Gr(o,o.return)),c&4){var g=o!==null?o.memoizedState:null;if(c=r.memoizedState,o===null)if(c===null)if(r.stateNode===null){e:{c=r.type,o=r.memoizedProps,m=m.ownerDocument||m;t:switch(c){case"title":g=m.getElementsByTagName("title")[0],(!g||g[$n]||g[Ye]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=m.createElement(c),m.head.insertBefore(g,m.querySelector("head > title"))),dn(g,c,o),g[Ye]=r,Xe(g),c=g;break e;case"link":var S=lx("link","href",m).get(c+(o.href||""));if(S){for(var A=0;A<S.length;A++)if(g=S[A],g.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&g.getAttribute("rel")===(o.rel==null?null:o.rel)&&g.getAttribute("title")===(o.title==null?null:o.title)&&g.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){S.splice(A,1);break t}}g=m.createElement(c),dn(g,c,o),m.head.appendChild(g);break;case"meta":if(S=lx("meta","content",m).get(c+(o.content||""))){for(A=0;A<S.length;A++)if(g=S[A],g.getAttribute("content")===(o.content==null?null:""+o.content)&&g.getAttribute("name")===(o.name==null?null:o.name)&&g.getAttribute("property")===(o.property==null?null:o.property)&&g.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&g.getAttribute("charset")===(o.charSet==null?null:o.charSet)){S.splice(A,1);break t}}g=m.createElement(c),dn(g,c,o),m.head.appendChild(g);break;default:throw Error(a(468,c))}g[Ye]=r,Xe(g),c=g}r.stateNode=c}else ox(m,r.type,r.stateNode);else r.stateNode=ix(m,c,r.memoizedProps);else g!==c?(g===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):g.count--,c===null?ox(m,r.type,r.stateNode):ix(m,c,r.memoizedProps)):c===null&&r.stateNode!==null&&Wh(r,r.memoizedProps,o.memoizedProps)}break;case 27:kn(i,r),Ln(r),c&512&&(_t||o===null||Gr(o,o.return)),o!==null&&c&4&&Wh(r,r.memoizedProps,o.memoizedProps);break;case 5:if(kn(i,r),Ln(r),c&512&&(_t||o===null||Gr(o,o.return)),r.flags&32){m=r.stateNode;try{Sl(m,"")}catch(fe){He(r,r.return,fe)}}c&4&&r.stateNode!=null&&(m=r.memoizedProps,Wh(r,m,o!==null?o.memoizedProps:m)),c&1024&&(Zh=!0);break;case 6:if(kn(i,r),Ln(r),c&4){if(r.stateNode===null)throw Error(a(162));c=r.memoizedProps,o=r.stateNode;try{o.nodeValue=c}catch(fe){He(r,r.return,fe)}}break;case 3:if(Dc=null,m=Pr,Pr=Cc(i.containerInfo),kn(i,r),Pr=m,Ln(r),c&4&&o!==null&&o.memoizedState.isDehydrated)try{Jl(i.containerInfo)}catch(fe){He(r,r.return,fe)}Zh&&(Zh=!1,o1(r));break;case 4:c=Pr,Pr=Cc(r.stateNode.containerInfo),kn(i,r),Ln(r),Pr=c;break;case 12:kn(i,r),Ln(r);break;case 31:kn(i,r),Ln(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,dc(r,c)));break;case 13:kn(i,r),Ln(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(hc=Et()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,dc(r,c)));break;case 22:m=r.memoizedState!==null;var N=o!==null&&o.memoizedState!==null,X=xa,ne=_t;if(xa=X||m,_t=ne||N,kn(i,r),_t=ne,xa=X,Ln(r),c&8192)e:for(i=r.stateNode,i._visibility=m?i._visibility&-2:i._visibility|1,m&&(o===null||N||xa||_t||Gi(r)),o=null,i=r;;){if(i.tag===5||i.tag===26){if(o===null){N=o=i;try{if(g=N.stateNode,m)S=g.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{A=N.stateNode;var le=N.memoizedProps.style,Q=le!=null&&le.hasOwnProperty("display")?le.display:null;A.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(fe){He(N,N.return,fe)}}}else if(i.tag===6){if(o===null){N=i;try{N.stateNode.nodeValue=m?"":N.memoizedProps}catch(fe){He(N,N.return,fe)}}}else if(i.tag===18){if(o===null){N=i;try{var J=N.stateNode;m?X1(J,!0):X1(N.stateNode,!1)}catch(fe){He(N,N.return,fe)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===r)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break e;for(;i.sibling===null;){if(i.return===null||i.return===r)break e;o===i&&(o=null),i=i.return}o===i&&(o=null),i.sibling.return=i.return,i=i.sibling}c&4&&(c=r.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,dc(r,o))));break;case 19:kn(i,r),Ln(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,dc(r,c)));break;case 30:break;case 21:break;default:kn(i,r),Ln(r)}}function Ln(r){var i=r.flags;if(i&2){try{for(var o,c=r.return;c!==null;){if(Qy(c)){o=c;break}c=c.return}if(o==null)throw Error(a(160));switch(o.tag){case 27:var m=o.stateNode,g=Yh(r);cc(r,g,m);break;case 5:var S=o.stateNode;o.flags&32&&(Sl(S,""),o.flags&=-33);var A=Yh(r);cc(r,A,S);break;case 3:case 4:var N=o.stateNode.containerInfo,X=Yh(r);Xh(r,X,N);break;default:throw Error(a(161))}}catch(ne){He(r,r.return,ne)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function o1(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var i=r;o1(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),r=r.sibling}}function Sa(r,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)t1(r,i.alternate,i),i=i.sibling}function Gi(r){for(r=r.child;r!==null;){var i=r;switch(i.tag){case 0:case 11:case 14:case 15:ti(4,i,i.return),Gi(i);break;case 1:Gr(i,i.return);var o=i.stateNode;typeof o.componentWillUnmount=="function"&&Xy(i,i.return,o),Gi(i);break;case 27:xs(i.stateNode);case 26:case 5:Gr(i,i.return),Gi(i);break;case 22:i.memoizedState===null&&Gi(i);break;case 30:Gi(i);break;default:Gi(i)}r=r.sibling}}function $a(r,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var c=i.alternate,m=r,g=i,S=g.flags;switch(g.tag){case 0:case 11:case 15:$a(m,g,o),cs(4,g);break;case 1:if($a(m,g,o),c=g,m=c.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(X){He(c,c.return,X)}if(c=g,m=c.updateQueue,m!==null){var A=c.stateNode;try{var N=m.shared.hiddenCallbacks;if(N!==null)for(m.shared.hiddenCallbacks=null,m=0;m<N.length;m++)_0(N[m],A)}catch(X){He(c,c.return,X)}}o&&S&64&&Yy(g),ds(g,g.return);break;case 27:Jy(g);case 26:case 5:$a(m,g,o),o&&c===null&&S&4&&Zy(g),ds(g,g.return);break;case 12:$a(m,g,o);break;case 31:$a(m,g,o),o&&S&4&&a1(m,g);break;case 13:$a(m,g,o),o&&S&4&&i1(m,g);break;case 22:g.memoizedState===null&&$a(m,g,o),ds(g,g.return);break;case 30:break;default:$a(m,g,o)}i=i.sibling}}function Qh(r,i){var o=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==o&&(r!=null&&r.refCount++,o!=null&&Zo(o))}function Jh(r,i){r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&Zo(r))}function zr(r,i,o,c){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)s1(r,i,o,c),i=i.sibling}function s1(r,i,o,c){var m=i.flags;switch(i.tag){case 0:case 11:case 15:zr(r,i,o,c),m&2048&&cs(9,i);break;case 1:zr(r,i,o,c);break;case 3:zr(r,i,o,c),m&2048&&(r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&Zo(r)));break;case 12:if(m&2048){zr(r,i,o,c),r=i.stateNode;try{var g=i.memoizedProps,S=g.id,A=g.onPostCommit;typeof A=="function"&&A(S,i.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(N){He(i,i.return,N)}}else zr(r,i,o,c);break;case 31:zr(r,i,o,c);break;case 13:zr(r,i,o,c);break;case 23:break;case 22:g=i.stateNode,S=i.alternate,i.memoizedState!==null?g._visibility&2?zr(r,i,o,c):fs(r,i):g._visibility&2?zr(r,i,o,c):(g._visibility|=2,Fl(r,i,o,c,(i.subtreeFlags&10256)!==0||!1)),m&2048&&Qh(S,i);break;case 24:zr(r,i,o,c),m&2048&&Jh(i.alternate,i);break;default:zr(r,i,o,c)}}function Fl(r,i,o,c,m){for(m=m&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var g=r,S=i,A=o,N=c,X=S.flags;switch(S.tag){case 0:case 11:case 15:Fl(g,S,A,N,m),cs(8,S);break;case 23:break;case 22:var ne=S.stateNode;S.memoizedState!==null?ne._visibility&2?Fl(g,S,A,N,m):fs(g,S):(ne._visibility|=2,Fl(g,S,A,N,m)),m&&X&2048&&Qh(S.alternate,S);break;case 24:Fl(g,S,A,N,m),m&&X&2048&&Jh(S.alternate,S);break;default:Fl(g,S,A,N,m)}i=i.sibling}}function fs(r,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=r,c=i,m=c.flags;switch(c.tag){case 22:fs(o,c),m&2048&&Qh(c.alternate,c);break;case 24:fs(o,c),m&2048&&Jh(c.alternate,c);break;default:fs(o,c)}i=i.sibling}}var hs=8192;function jl(r,i,o){if(r.subtreeFlags&hs)for(r=r.child;r!==null;)u1(r,i,o),r=r.sibling}function u1(r,i,o){switch(r.tag){case 26:jl(r,i,o),r.flags&hs&&r.memoizedState!==null&&a7(o,Pr,r.memoizedState,r.memoizedProps);break;case 5:jl(r,i,o);break;case 3:case 4:var c=Pr;Pr=Cc(r.stateNode.containerInfo),jl(r,i,o),Pr=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=hs,hs=16777216,jl(r,i,o),hs=c):jl(r,i,o));break;default:jl(r,i,o)}}function c1(r){var i=r.alternate;if(i!==null&&(r=i.child,r!==null)){i.child=null;do i=r.sibling,r.sibling=null,r=i;while(r!==null)}}function ps(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var c=i[o];Jt=c,f1(c,r)}c1(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)d1(r),r=r.sibling}function d1(r){switch(r.tag){case 0:case 11:case 15:ps(r),r.flags&2048&&ti(9,r,r.return);break;case 3:ps(r);break;case 12:ps(r);break;case 22:var i=r.stateNode;r.memoizedState!==null&&i._visibility&2&&(r.return===null||r.return.tag!==13)?(i._visibility&=-3,fc(r)):ps(r);break;default:ps(r)}}function fc(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var c=i[o];Jt=c,f1(c,r)}c1(r)}for(r=r.child;r!==null;){switch(i=r,i.tag){case 0:case 11:case 15:ti(8,i,i.return),fc(i);break;case 22:o=i.stateNode,o._visibility&2&&(o._visibility&=-3,fc(i));break;default:fc(i)}r=r.sibling}}function f1(r,i){for(;Jt!==null;){var o=Jt;switch(o.tag){case 0:case 11:case 15:ti(8,o,i);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var c=o.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Zo(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,Jt=c;else e:for(o=r;Jt!==null;){c=Jt;var m=c.sibling,g=c.return;if(n1(c),c===o){Jt=null;break e}if(m!==null){m.return=g,Jt=m;break e}Jt=g}}}var yA={getCacheForType:function(r){var i=un(kt),o=i.data.get(r);return o===void 0&&(o=r(),i.data.set(r,o)),o},cacheSignal:function(){return un(kt).controller.signal}},xA=typeof WeakMap=="function"?WeakMap:Map,Fe=0,Ze=null,Re=null,ze=0,Ue=0,Zn=null,ni=!1,Ul=!1,ep=!1,Ea=0,xt=0,ri=0,qi=0,tp=0,Qn=0,Hl=0,ms=null,Nn=null,np=!1,hc=0,h1=0,pc=1/0,mc=null,ai=null,Ut=0,ii=null,Gl=null,Ca=0,rp=0,ap=null,p1=null,gs=0,ip=null;function Jn(){return(Fe&2)!==0&&ze!==0?ze&-ze:R.T!==null?dp():Xt()}function m1(){if(Qn===0)if((ze&536870912)===0||Ne){var r=Ke;Ke<<=1,(Ke&3932160)===0&&(Ke=262144),Qn=r}else Qn=536870912;return r=Yn.current,r!==null&&(r.flags|=32),Qn}function _n(r,i,o){(r===Ze&&(Ue===2||Ue===9)||r.cancelPendingCommit!==null)&&(ql(r,0),li(r,ze,Qn,!1)),et(r,o),((Fe&2)===0||r!==Ze)&&(r===Ze&&((Fe&2)===0&&(qi|=o),xt===4&&li(r,ze,Qn,!1)),qr(r))}function g1(r,i,o){if((Fe&6)!==0)throw Error(a(327));var c=!o&&(i&127)===0&&(i&r.expiredLanes)===0||he(r,i),m=c?$A(r,i):op(r,i,!0),g=c;do{if(m===0){Ul&&!c&&li(r,i,0,!1);break}else{if(o=r.current.alternate,g&&!wA(o)){m=op(r,i,!1),g=!1;continue}if(m===2){if(g=i,r.errorRecoveryDisabledLanes&g)var S=0;else S=r.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){i=S;e:{var A=r;m=ms;var N=A.current.memoizedState.isDehydrated;if(N&&(ql(A,S).flags|=256),S=op(A,S,!1),S!==2){if(ep&&!N){A.errorRecoveryDisabledLanes|=g,qi|=g,m=4;break e}g=Nn,Nn=m,g!==null&&(Nn===null?Nn=g:Nn.push.apply(Nn,g))}m=S}if(g=!1,m!==2)continue}}if(m===1){ql(r,0),li(r,i,0,!0);break}e:{switch(c=r,g=m,g){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:li(c,i,Qn,!ni);break e;case 2:Nn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(m=hc+300-Et(),10<m)){if(li(c,i,Qn,!ni),re(c,0,!0)!==0)break e;Ca=i,c.timeoutHandle=q1(v1.bind(null,c,o,Nn,mc,np,i,Qn,qi,Hl,ni,g,"Throttled",-0,0),m);break e}v1(c,o,Nn,mc,np,i,Qn,qi,Hl,ni,g,null,-0,0)}}break}while(!0);qr(r)}function v1(r,i,o,c,m,g,S,A,N,X,ne,le,Q,J){if(r.timeoutHandle=-1,le=i.subtreeFlags,le&8192||(le&16785408)===16785408){le={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ca},u1(i,g,le);var fe=(g&62914560)===g?hc-Et():(g&4194048)===g?h1-Et():0;if(fe=i7(le,fe),fe!==null){Ca=g,r.cancelPendingCommit=fe(C1.bind(null,r,i,g,o,c,m,S,A,N,ne,le,null,Q,J)),li(r,g,S,!X);return}}C1(r,i,g,o,c,m,S,A,N)}function wA(r){for(var i=r;;){var o=i.tag;if((o===0||o===11||o===15)&&i.flags&16384&&(o=i.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var c=0;c<o.length;c++){var m=o[c],g=m.getSnapshot;m=m.value;try{if(!qn(g(),m))return!1}catch{return!1}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function li(r,i,o,c){i&=~tp,i&=~qi,r.suspendedLanes|=i,r.pingedLanes&=~i,c&&(r.warmLanes|=i),c=r.expirationTimes;for(var m=i;0<m;){var g=31-ht(m),S=1<<g;c[g]=-1,m&=~S}o!==0&&tt(r,o,i)}function gc(){return(Fe&6)===0?(vs(0),!1):!0}function lp(){if(Re!==null){if(Ue===0)var r=Re.return;else r=Re,pa=_i=null,Sh(r),Nl=null,Jo=0,r=Re;for(;r!==null;)Wy(r.alternate,r),r=r.return;Re=null}}function ql(r,i){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,IA(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),Ca=0,lp(),Ze=r,Re=o=fa(r.current,null),ze=i,Ue=0,Zn=null,ni=!1,Ul=he(r,i),ep=!1,Hl=Qn=tp=qi=ri=xt=0,Nn=ms=null,np=!1,(i&8)!==0&&(i|=i&32);var c=r.entangledLanes;if(c!==0)for(r=r.entanglements,c&=i;0<c;){var m=31-ht(c),g=1<<m;i|=r[m],c&=~g}return Ea=i,Nu(),o}function b1(r,i){Ce=null,R.H=os,i===Ll||i===Hu?(i=B0(),Ue=3):i===ch?(i=B0(),Ue=4):Ue=i===_h?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Zn=i,Re===null&&(xt=1,ic(r,ur(i,r.current)))}function y1(){var r=Yn.current;return r===null?!0:(ze&4194048)===ze?hr===null:(ze&62914560)===ze||(ze&536870912)!==0?r===hr:!1}function x1(){var r=R.H;return R.H=os,r===null?os:r}function w1(){var r=R.A;return R.A=yA,r}function vc(){xt=4,ni||(ze&4194048)!==ze&&Yn.current!==null||(Ul=!0),(ri&134217727)===0&&(qi&134217727)===0||Ze===null||li(Ze,ze,Qn,!1)}function op(r,i,o){var c=Fe;Fe|=2;var m=x1(),g=w1();(Ze!==r||ze!==i)&&(mc=null,ql(r,i)),i=!1;var S=xt;e:do try{if(Ue!==0&&Re!==null){var A=Re,N=Zn;switch(Ue){case 8:lp(),S=6;break e;case 3:case 2:case 9:case 6:Yn.current===null&&(i=!0);var X=Ue;if(Ue=0,Zn=null,Wl(r,A,N,X),o&&Ul){S=0;break e}break;default:X=Ue,Ue=0,Zn=null,Wl(r,A,N,X)}}SA(),S=xt;break}catch(ne){b1(r,ne)}while(!0);return i&&r.shellSuspendCounter++,pa=_i=null,Fe=c,R.H=m,R.A=g,Re===null&&(Ze=null,ze=0,Nu()),S}function SA(){for(;Re!==null;)S1(Re)}function $A(r,i){var o=Fe;Fe|=2;var c=x1(),m=w1();Ze!==r||ze!==i?(mc=null,pc=Et()+500,ql(r,i)):Ul=he(r,i);e:do try{if(Ue!==0&&Re!==null){i=Re;var g=Zn;t:switch(Ue){case 1:Ue=0,Zn=null,Wl(r,i,g,1);break;case 2:case 9:if(z0(g)){Ue=0,Zn=null,$1(i);break}i=function(){Ue!==2&&Ue!==9||Ze!==r||(Ue=7),qr(r)},g.then(i,i);break e;case 3:Ue=7;break e;case 4:Ue=5;break e;case 7:z0(g)?(Ue=0,Zn=null,$1(i)):(Ue=0,Zn=null,Wl(r,i,g,7));break;case 5:var S=null;switch(Re.tag){case 26:S=Re.memoizedState;case 5:case 27:var A=Re;if(S?sx(S):A.stateNode.complete){Ue=0,Zn=null;var N=A.sibling;if(N!==null)Re=N;else{var X=A.return;X!==null?(Re=X,bc(X)):Re=null}break t}}Ue=0,Zn=null,Wl(r,i,g,5);break;case 6:Ue=0,Zn=null,Wl(r,i,g,6);break;case 8:lp(),xt=6;break e;default:throw Error(a(462))}}EA();break}catch(ne){b1(r,ne)}while(!0);return pa=_i=null,R.H=c,R.A=m,Fe=o,Re!==null?0:(Ze=null,ze=0,Nu(),xt)}function EA(){for(;Re!==null&&!rr();)S1(Re)}function S1(r){var i=Gy(r.alternate,r,Ea);r.memoizedProps=r.pendingProps,i===null?bc(r):Re=i}function $1(r){var i=r,o=i.alternate;switch(i.tag){case 15:case 0:i=Vy(o,i,i.pendingProps,i.type,void 0,ze);break;case 11:i=Vy(o,i,i.pendingProps,i.type.render,i.ref,ze);break;case 5:Sh(i);default:Wy(o,i),i=Re=w0(i,Ea),i=Gy(o,i,Ea)}r.memoizedProps=r.pendingProps,i===null?bc(r):Re=i}function Wl(r,i,o,c){pa=_i=null,Sh(i),Nl=null,Jo=0;var m=i.return;try{if(fA(r,m,i,o,ze)){xt=1,ic(r,ur(o,r.current)),Re=null;return}}catch(g){if(m!==null)throw Re=m,g;xt=1,ic(r,ur(o,r.current)),Re=null;return}i.flags&32768?(Ne||c===1?r=!0:Ul||(ze&536870912)!==0?r=!1:(ni=r=!0,(c===2||c===9||c===3||c===6)&&(c=Yn.current,c!==null&&c.tag===13&&(c.flags|=16384))),E1(i,r)):bc(i)}function bc(r){var i=r;do{if((i.flags&32768)!==0){E1(i,ni);return}r=i.return;var o=mA(i.alternate,i,Ea);if(o!==null){Re=o;return}if(i=i.sibling,i!==null){Re=i;return}Re=i=r}while(i!==null);xt===0&&(xt=5)}function E1(r,i){do{var o=gA(r.alternate,r);if(o!==null){o.flags&=32767,Re=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(r=r.sibling,r!==null)){Re=r;return}Re=r=o}while(r!==null);xt=6,Re=null}function C1(r,i,o,c,m,g,S,A,N){r.cancelPendingCommit=null;do yc();while(Ut!==0);if((Fe&6)!==0)throw Error(a(327));if(i!==null){if(i===r.current)throw Error(a(177));if(g=i.lanes|i.childLanes,g|=Yf,_e(r,o,g,S,A,N),r===Ze&&(Re=Ze=null,ze=0),Gl=i,ii=r,Ca=o,rp=g,ap=m,p1=c,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,AA(zt,function(){return R1(),null})):(r.callbackNode=null,r.callbackPriority=0),c=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||c){c=R.T,R.T=null,m=B.p,B.p=2,S=Fe,Fe|=4;try{vA(r,i,o)}finally{Fe=S,B.p=m,R.T=c}}Ut=1,T1(),D1(),A1()}}function T1(){if(Ut===1){Ut=0;var r=ii,i=Gl,o=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||o){o=R.T,R.T=null;var c=B.p;B.p=2;var m=Fe;Fe|=4;try{l1(i,r);var g=yp,S=f0(r.containerInfo),A=g.focusedElem,N=g.selectionRange;if(S!==A&&A&&A.ownerDocument&&d0(A.ownerDocument.documentElement,A)){if(N!==null&&Uf(A)){var X=N.start,ne=N.end;if(ne===void 0&&(ne=X),"selectionStart"in A)A.selectionStart=X,A.selectionEnd=Math.min(ne,A.value.length);else{var le=A.ownerDocument||document,Q=le&&le.defaultView||window;if(Q.getSelection){var J=Q.getSelection(),fe=A.textContent.length,be=Math.min(N.start,fe),We=N.end===void 0?be:Math.min(N.end,fe);!J.extend&&be>We&&(S=We,We=be,be=S);var q=c0(A,be),F=c0(A,We);if(q&&F&&(J.rangeCount!==1||J.anchorNode!==q.node||J.anchorOffset!==q.offset||J.focusNode!==F.node||J.focusOffset!==F.offset)){var Y=le.createRange();Y.setStart(q.node,q.offset),J.removeAllRanges(),be>We?(J.addRange(Y),J.extend(F.node,F.offset)):(Y.setEnd(F.node,F.offset),J.addRange(Y))}}}}for(le=[],J=A;J=J.parentNode;)J.nodeType===1&&le.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<le.length;A++){var ae=le[A];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}Pc=!!bp,yp=bp=null}finally{Fe=m,B.p=c,R.T=o}}r.current=i,Ut=2}}function D1(){if(Ut===2){Ut=0;var r=ii,i=Gl,o=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||o){o=R.T,R.T=null;var c=B.p;B.p=2;var m=Fe;Fe|=4;try{t1(r,i.alternate,i)}finally{Fe=m,B.p=c,R.T=o}}Ut=3}}function A1(){if(Ut===4||Ut===3){Ut=0,Mn();var r=ii,i=Gl,o=Ca,c=p1;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Ut=5:(Ut=0,Gl=ii=null,M1(r,r.pendingLanes));var m=r.pendingLanes;if(m===0&&(ai=null),an(o),i=i.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(Ct,i,void 0,(i.current.flags&128)===128)}catch{}if(c!==null){i=R.T,m=B.p,B.p=2,R.T=null;try{for(var g=r.onRecoverableError,S=0;S<c.length;S++){var A=c[S];g(A.value,{componentStack:A.stack})}}finally{R.T=i,B.p=m}}(Ca&3)!==0&&yc(),qr(r),m=r.pendingLanes,(o&261930)!==0&&(m&42)!==0?r===ip?gs++:(gs=0,ip=r):gs=0,vs(0)}}function M1(r,i){(r.pooledCacheLanes&=i)===0&&(i=r.pooledCache,i!=null&&(r.pooledCache=null,Zo(i)))}function yc(){return T1(),D1(),A1(),R1()}function R1(){if(Ut!==5)return!1;var r=ii,i=rp;rp=0;var o=an(Ca),c=R.T,m=B.p;try{B.p=32>o?32:o,R.T=null,o=ap,ap=null;var g=ii,S=Ca;if(Ut=0,Gl=ii=null,Ca=0,(Fe&6)!==0)throw Error(a(331));var A=Fe;if(Fe|=4,d1(g.current),s1(g,g.current,S,o),Fe=A,vs(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(Ct,g)}catch{}return!0}finally{B.p=m,R.T=c,M1(r,i)}}function P1(r,i,o){i=ur(o,i),i=Nh(r.stateNode,i,2),r=Qa(r,i,2),r!==null&&(et(r,2),qr(r))}function He(r,i,o){if(r.tag===3)P1(r,r,o);else for(;i!==null;){if(i.tag===3){P1(i,r,o);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ai===null||!ai.has(c))){r=ur(o,r),o=zy(2),c=Qa(i,o,2),c!==null&&(Oy(o,c,i,r),et(c,2),qr(c));break}}i=i.return}}function sp(r,i,o){var c=r.pingCache;if(c===null){c=r.pingCache=new xA;var m=new Set;c.set(i,m)}else m=c.get(i),m===void 0&&(m=new Set,c.set(i,m));m.has(o)||(ep=!0,m.add(o),r=CA.bind(null,r,i,o),i.then(r,r))}function CA(r,i,o){var c=r.pingCache;c!==null&&c.delete(i),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,Ze===r&&(ze&o)===o&&(xt===4||xt===3&&(ze&62914560)===ze&&300>Et()-hc?(Fe&2)===0&&ql(r,0):tp|=o,Hl===ze&&(Hl=0)),qr(r)}function z1(r,i){i===0&&(i=Qe()),r=ki(r,i),r!==null&&(et(r,i),qr(r))}function TA(r){var i=r.memoizedState,o=0;i!==null&&(o=i.retryLane),z1(r,o)}function DA(r,i){var o=0;switch(r.tag){case 31:case 13:var c=r.stateNode,m=r.memoizedState;m!==null&&(o=m.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(a(314))}c!==null&&c.delete(i),z1(r,o)}function AA(r,i){return ot(r,i)}var xc=null,Yl=null,up=!1,wc=!1,cp=!1,oi=0;function qr(r){r!==Yl&&r.next===null&&(Yl===null?xc=Yl=r:Yl=Yl.next=r),wc=!0,up||(up=!0,RA())}function vs(r,i){if(!cp&&wc){cp=!0;do for(var o=!1,c=xc;c!==null;){if(r!==0){var m=c.pendingLanes;if(m===0)var g=0;else{var S=c.suspendedLanes,A=c.pingedLanes;g=(1<<31-ht(42|r)+1)-1,g&=m&~(S&~A),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(o=!0,L1(c,g))}else g=ze,g=re(c,c===Ze?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||he(c,g)||(o=!0,L1(c,g));c=c.next}while(o);cp=!1}}function MA(){O1()}function O1(){wc=up=!1;var r=0;oi!==0&&VA()&&(r=oi);for(var i=Et(),o=null,c=xc;c!==null;){var m=c.next,g=B1(c,i);g===0?(c.next=null,o===null?xc=m:o.next=m,m===null&&(Yl=o)):(o=c,(r!==0||(g&3)!==0)&&(wc=!0)),c=m}Ut!==0&&Ut!==5||vs(r),oi!==0&&(oi=0)}function B1(r,i){for(var o=r.suspendedLanes,c=r.pingedLanes,m=r.expirationTimes,g=r.pendingLanes&-62914561;0<g;){var S=31-ht(g),A=1<<S,N=m[S];N===-1?((A&o)===0||(A&c)!==0)&&(m[S]=$e(A,i)):N<=i&&(r.expiredLanes|=A),g&=~A}if(i=Ze,o=ze,o=re(r,r===i?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c=r.callbackNode,o===0||r===i&&(Ue===2||Ue===9)||r.cancelPendingCommit!==null)return c!==null&&c!==null&&hn(c),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||he(r,o)){if(i=o&-o,i===r.callbackPriority)return i;switch(c!==null&&hn(c),an(o)){case 2:case 8:o=Pt;break;case 32:o=zt;break;case 268435456:o=Fr;break;default:o=zt}return c=k1.bind(null,r),o=ot(o,c),r.callbackPriority=i,r.callbackNode=o,i}return c!==null&&c!==null&&hn(c),r.callbackPriority=2,r.callbackNode=null,2}function k1(r,i){if(Ut!==0&&Ut!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(yc()&&r.callbackNode!==o)return null;var c=ze;return c=re(r,r===Ze?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c===0?null:(g1(r,c,i),B1(r,Et()),r.callbackNode!=null&&r.callbackNode===o?k1.bind(null,r):null)}function L1(r,i){if(yc())return null;g1(r,i,!0)}function RA(){FA(function(){(Fe&6)!==0?ot(jn,MA):O1()})}function dp(){if(oi===0){var r=Bl;r===0&&(r=we,we<<=1,(we&261888)===0&&(we=256)),oi=r}return oi}function N1(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Mu(""+r)}function _1(r,i){var o=i.ownerDocument.createElement("input");return o.name=i.name,o.value=i.value,r.id&&o.setAttribute("form",r.id),i.parentNode.insertBefore(o,i),r=new FormData(r),o.parentNode.removeChild(o),r}function PA(r,i,o,c,m){if(i==="submit"&&o&&o.stateNode===m){var g=N1((m[ct]||null).action),S=c.submitter;S&&(i=(i=S[ct]||null)?N1(i.formAction):S.getAttribute("formAction"),i!==null&&(g=i,S=null));var A=new Ou("action","action",null,c,m);r.push({event:A,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(oi!==0){var N=S?_1(m,S):new FormData(m);Ph(o,{pending:!0,data:N,method:m.method,action:g},null,N)}}else typeof g=="function"&&(A.preventDefault(),N=S?_1(m,S):new FormData(m),Ph(o,{pending:!0,data:N,method:m.method,action:g},g,N))},currentTarget:m}]})}}for(var fp=0;fp<Wf.length;fp++){var hp=Wf[fp],zA=hp.toLowerCase(),OA=hp[0].toUpperCase()+hp.slice(1);Rr(zA,"on"+OA)}Rr(m0,"onAnimationEnd"),Rr(g0,"onAnimationIteration"),Rr(v0,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(YD,"onTransitionRun"),Rr(XD,"onTransitionStart"),Rr(ZD,"onTransitionCancel"),Rr(b0,"onTransitionEnd"),vt("onMouseEnter",["mouseout","mouseover"]),vt("onMouseLeave",["mouseout","mouseover"]),vt("onPointerEnter",["pointerout","pointerover"]),vt("onPointerLeave",["pointerout","pointerover"]),jt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),jt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),jt("onBeforeInput",["compositionend","keypress","textInput","paste"]),jt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),jt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),jt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bs="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(" "),BA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bs));function K1(r,i){i=(i&4)!==0;for(var o=0;o<r.length;o++){var c=r[o],m=c.event;c=c.listeners;e:{var g=void 0;if(i)for(var S=c.length-1;0<=S;S--){var A=c[S],N=A.instance,X=A.currentTarget;if(A=A.listener,N!==g&&m.isPropagationStopped())break e;g=A,m.currentTarget=X;try{g(m)}catch(ne){Lu(ne)}m.currentTarget=null,g=N}else for(S=0;S<c.length;S++){if(A=c[S],N=A.instance,X=A.currentTarget,A=A.listener,N!==g&&m.isPropagationStopped())break e;g=A,m.currentTarget=X;try{g(m)}catch(ne){Lu(ne)}m.currentTarget=null,g=N}}}}function Pe(r,i){var o=i[jr];o===void 0&&(o=i[jr]=new Set);var c=r+"__bubble";o.has(c)||(V1(i,r,2,!1),o.add(c))}function pp(r,i,o){var c=0;i&&(c|=4),V1(o,r,c,i)}var Sc="_reactListening"+Math.random().toString(36).slice(2);function mp(r){if(!r[Sc]){r[Sc]=!0,ar.forEach(function(o){o!=="selectionchange"&&(BA.has(o)||pp(o,!1,r),pp(o,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[Sc]||(i[Sc]=!0,pp("selectionchange",!1,i))}}function V1(r,i,o,c){switch(mx(i)){case 2:var m=s7;break;case 8:m=u7;break;default:m=Rp}o=m.bind(null,i,o,r),m=void 0,!kf||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(m=!0),c?m!==void 0?r.addEventListener(i,o,{capture:!0,passive:m}):r.addEventListener(i,o,!0):m!==void 0?r.addEventListener(i,o,{passive:m}):r.addEventListener(i,o,!1)}function gp(r,i,o,c,m){var g=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var S=c.tag;if(S===3||S===4){var A=c.stateNode.containerInfo;if(A===m)break;if(S===4)for(S=c.return;S!==null;){var N=S.tag;if((N===3||N===4)&&S.stateNode.containerInfo===m)return;S=S.return}for(;A!==null;){if(S=Ft(A),S===null)return;if(N=S.tag,N===5||N===6||N===26||N===27){c=g=S;continue e}A=A.parentNode}}c=c.return}Hb(function(){var X=g,ne=Of(o),le=[];e:{var Q=y0.get(r);if(Q!==void 0){var J=Ou,fe=r;switch(r){case"keypress":if(Pu(o)===0)break e;case"keydown":case"keyup":J=DD;break;case"focusin":fe="focus",J=Kf;break;case"focusout":fe="blur",J=Kf;break;case"beforeblur":case"afterblur":J=Kf;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=Wb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=mD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=RD;break;case m0:case g0:case v0:J=bD;break;case b0:J=zD;break;case"scroll":case"scrollend":J=hD;break;case"wheel":J=BD;break;case"copy":case"cut":case"paste":J=xD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=Xb;break;case"toggle":case"beforetoggle":J=LD}var be=(i&4)!==0,We=!be&&(r==="scroll"||r==="scrollend"),q=be?Q!==null?Q+"Capture":null:Q;be=[];for(var F=X,Y;F!==null;){var ae=F;if(Y=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||Y===null||q===null||(ae=Vo(F,q),ae!=null&&be.push(ys(F,ae,Y))),We)break;F=F.return}0<be.length&&(Q=new J(Q,fe,null,o,ne),le.push({event:Q,listeners:be}))}}if((i&7)===0){e:{if(Q=r==="mouseover"||r==="pointerover",J=r==="mouseout"||r==="pointerout",Q&&o!==zf&&(fe=o.relatedTarget||o.fromElement)&&(Ft(fe)||fe[ln]))break e;if((J||Q)&&(Q=ne.window===ne?ne:(Q=ne.ownerDocument)?Q.defaultView||Q.parentWindow:window,J?(fe=o.relatedTarget||o.toElement,J=X,fe=fe?Ft(fe):null,fe!==null&&(We=s(fe),be=fe.tag,fe!==We||be!==5&&be!==27&&be!==6)&&(fe=null)):(J=null,fe=X),J!==fe)){if(be=Wb,ae="onMouseLeave",q="onMouseEnter",F="mouse",(r==="pointerout"||r==="pointerover")&&(be=Xb,ae="onPointerLeave",q="onPointerEnter",F="pointer"),We=J==null?Q:Gn(J),Y=fe==null?Q:Gn(fe),Q=new be(ae,F+"leave",J,o,ne),Q.target=We,Q.relatedTarget=Y,ae=null,Ft(ne)===X&&(be=new be(q,F+"enter",fe,o,ne),be.target=Y,be.relatedTarget=We,ae=be),We=ae,J&&fe)t:{for(be=kA,q=J,F=fe,Y=0,ae=q;ae;ae=be(ae))Y++;ae=0;for(var ve=F;ve;ve=be(ve))ae++;for(;0<Y-ae;)q=be(q),Y--;for(;0<ae-Y;)F=be(F),ae--;for(;Y--;){if(q===F||F!==null&&q===F.alternate){be=q;break t}q=be(q),F=be(F)}be=null}else be=null;J!==null&&I1(le,Q,J,be,!1),fe!==null&&We!==null&&I1(le,We,fe,be,!0)}}e:{if(Q=X?Gn(X):window,J=Q.nodeName&&Q.nodeName.toLowerCase(),J==="select"||J==="input"&&Q.type==="file")var Ve=a0;else if(n0(Q))if(i0)Ve=GD;else{Ve=UD;var me=jD}else J=Q.nodeName,!J||J.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?X&&Pf(X.elementType)&&(Ve=a0):Ve=HD;if(Ve&&(Ve=Ve(r,X))){r0(le,Ve,o,ne);break e}me&&me(r,Q,X),r==="focusout"&&X&&Q.type==="number"&&X.memoizedProps.value!=null&&Rf(Q,"number",Q.value)}switch(me=X?Gn(X):window,r){case"focusin":(n0(me)||me.contentEditable==="true")&&(Tl=me,Hf=X,Wo=null);break;case"focusout":Wo=Hf=Tl=null;break;case"mousedown":Gf=!0;break;case"contextmenu":case"mouseup":case"dragend":Gf=!1,h0(le,o,ne);break;case"selectionchange":if(WD)break;case"keydown":case"keyup":h0(le,o,ne)}var De;if(If)e:{switch(r){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Cl?e0(r,o)&&(Oe="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(Oe="onCompositionStart");Oe&&(Zb&&o.locale!=="ko"&&(Cl||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Cl&&(De=Gb()):(Ha=ne,Lf="value"in Ha?Ha.value:Ha.textContent,Cl=!0)),me=$c(X,Oe),0<me.length&&(Oe=new Yb(Oe,r,null,o,ne),le.push({event:Oe,listeners:me}),De?Oe.data=De:(De=t0(o),De!==null&&(Oe.data=De)))),(De=_D?KD(r,o):VD(r,o))&&(Oe=$c(X,"onBeforeInput"),0<Oe.length&&(me=new Yb("onBeforeInput","beforeinput",null,o,ne),le.push({event:me,listeners:Oe}),me.data=De)),PA(le,r,X,o,ne)}K1(le,i)})}function ys(r,i,o){return{instance:r,listener:i,currentTarget:o}}function $c(r,i){for(var o=i+"Capture",c=[];r!==null;){var m=r,g=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||g===null||(m=Vo(r,o),m!=null&&c.unshift(ys(r,m,g)),m=Vo(r,i),m!=null&&c.push(ys(r,m,g))),r.tag===3)return c;r=r.return}return[]}function kA(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function I1(r,i,o,c,m){for(var g=i._reactName,S=[];o!==null&&o!==c;){var A=o,N=A.alternate,X=A.stateNode;if(A=A.tag,N!==null&&N===c)break;A!==5&&A!==26&&A!==27||X===null||(N=X,m?(X=Vo(o,g),X!=null&&S.unshift(ys(o,X,N))):m||(X=Vo(o,g),X!=null&&S.push(ys(o,X,N)))),o=o.return}S.length!==0&&r.push({event:i,listeners:S})}var LA=/\r\n?/g,NA=/\u0000|\uFFFD/g;function F1(r){return(typeof r=="string"?r:""+r).replace(LA,`
`).replace(NA,"")}function j1(r,i){return i=F1(i),F1(r)===i}function qe(r,i,o,c,m,g){switch(o){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||Sl(r,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&Sl(r,""+c);break;case"className":Cn(r,"class",c);break;case"tabIndex":Cn(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Cn(r,o,c);break;case"style":jb(r,c,g);break;case"data":if(i!=="object"){Cn(r,"data",c);break}case"src":case"href":if(c===""&&(i!=="a"||o!=="href")){r.removeAttribute(o);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=Mu(""+c),r.setAttribute(o,c);break;case"action":case"formAction":if(typeof c=="function"){r.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(o==="formAction"?(i!=="input"&&qe(r,i,"name",m.name,m,null),qe(r,i,"formEncType",m.formEncType,m,null),qe(r,i,"formMethod",m.formMethod,m,null),qe(r,i,"formTarget",m.formTarget,m,null)):(qe(r,i,"encType",m.encType,m,null),qe(r,i,"method",m.method,m,null),qe(r,i,"target",m.target,m,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=Mu(""+c),r.setAttribute(o,c);break;case"onClick":c!=null&&(r.onclick=ca);break;case"onScroll":c!=null&&Pe("scroll",r);break;case"onScrollEnd":c!=null&&Pe("scrollend",r);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(o=c.__html,o!=null){if(m.children!=null)throw Error(a(60));r.innerHTML=o}}break;case"multiple":r.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":r.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){r.removeAttribute("xlink:href");break}o=Mu(""+c),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,""+c):r.removeAttribute(o);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":c&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,""):r.removeAttribute(o);break;case"capture":case"download":c===!0?r.setAttribute(o,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,c):r.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?r.setAttribute(o,c):r.removeAttribute(o);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?r.removeAttribute(o):r.setAttribute(o,c);break;case"popover":Pe("beforetoggle",r),Pe("toggle",r),Mr(r,"popover",c);break;case"xlinkActuate":bt(r,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":bt(r,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":bt(r,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":bt(r,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":bt(r,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":bt(r,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":bt(r,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":bt(r,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":bt(r,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Mr(r,"is",c);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=dD.get(o)||o,Mr(r,o,c))}}function vp(r,i,o,c,m,g){switch(o){case"style":jb(r,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(o=c.__html,o!=null){if(m.children!=null)throw Error(a(60));r.innerHTML=o}}break;case"children":typeof c=="string"?Sl(r,c):(typeof c=="number"||typeof c=="bigint")&&Sl(r,""+c);break;case"onScroll":c!=null&&Pe("scroll",r);break;case"onScrollEnd":c!=null&&Pe("scrollend",r);break;case"onClick":c!=null&&(r.onclick=ca);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ir.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(m=o.endsWith("Capture"),i=o.slice(2,m?o.length-7:void 0),g=r[ct]||null,g=g!=null?g[o]:null,typeof g=="function"&&r.removeEventListener(i,g,m),typeof c=="function")){typeof g!="function"&&g!==null&&(o in r?r[o]=null:r.hasAttribute(o)&&r.removeAttribute(o)),r.addEventListener(i,c,m);break e}o in r?r[o]=c:c===!0?r.setAttribute(o,""):Mr(r,o,c)}}}function dn(r,i,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pe("error",r),Pe("load",r);var c=!1,m=!1,g;for(g in o)if(o.hasOwnProperty(g)){var S=o[g];if(S!=null)switch(g){case"src":c=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:qe(r,i,g,S,o,null)}}m&&qe(r,i,"srcSet",o.srcSet,o,null),c&&qe(r,i,"src",o.src,o,null);return;case"input":Pe("invalid",r);var A=g=S=m=null,N=null,X=null;for(c in o)if(o.hasOwnProperty(c)){var ne=o[c];if(ne!=null)switch(c){case"name":m=ne;break;case"type":S=ne;break;case"checked":N=ne;break;case"defaultChecked":X=ne;break;case"value":g=ne;break;case"defaultValue":A=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(a(137,i));break;default:qe(r,i,c,ne,o,null)}}Kb(r,g,A,N,X,S,m,!1);return;case"select":Pe("invalid",r),c=S=g=null;for(m in o)if(o.hasOwnProperty(m)&&(A=o[m],A!=null))switch(m){case"value":g=A;break;case"defaultValue":S=A;break;case"multiple":c=A;default:qe(r,i,m,A,o,null)}i=g,o=S,r.multiple=!!c,i!=null?wl(r,!!c,i,!1):o!=null&&wl(r,!!c,o,!0);return;case"textarea":Pe("invalid",r),g=m=c=null;for(S in o)if(o.hasOwnProperty(S)&&(A=o[S],A!=null))switch(S){case"value":c=A;break;case"defaultValue":m=A;break;case"children":g=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(a(91));break;default:qe(r,i,S,A,o,null)}Ib(r,c,m,g);return;case"option":for(N in o)if(o.hasOwnProperty(N)&&(c=o[N],c!=null))switch(N){case"selected":r.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:qe(r,i,N,c,o,null)}return;case"dialog":Pe("beforetoggle",r),Pe("toggle",r),Pe("cancel",r),Pe("close",r);break;case"iframe":case"object":Pe("load",r);break;case"video":case"audio":for(c=0;c<bs.length;c++)Pe(bs[c],r);break;case"image":Pe("error",r),Pe("load",r);break;case"details":Pe("toggle",r);break;case"embed":case"source":case"link":Pe("error",r),Pe("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in o)if(o.hasOwnProperty(X)&&(c=o[X],c!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:qe(r,i,X,c,o,null)}return;default:if(Pf(i)){for(ne in o)o.hasOwnProperty(ne)&&(c=o[ne],c!==void 0&&vp(r,i,ne,c,o,void 0));return}}for(A in o)o.hasOwnProperty(A)&&(c=o[A],c!=null&&qe(r,i,A,c,o,null))}function _A(r,i,o,c){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,g=null,S=null,A=null,N=null,X=null,ne=null;for(J in o){var le=o[J];if(o.hasOwnProperty(J)&&le!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":N=le;default:c.hasOwnProperty(J)||qe(r,i,J,null,c,le)}}for(var Q in c){var J=c[Q];if(le=o[Q],c.hasOwnProperty(Q)&&(J!=null||le!=null))switch(Q){case"type":g=J;break;case"name":m=J;break;case"checked":X=J;break;case"defaultChecked":ne=J;break;case"value":S=J;break;case"defaultValue":A=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(a(137,i));break;default:J!==le&&qe(r,i,Q,J,c,le)}}Mf(r,S,A,N,X,ne,g,m);return;case"select":J=S=A=Q=null;for(g in o)if(N=o[g],o.hasOwnProperty(g)&&N!=null)switch(g){case"value":break;case"multiple":J=N;default:c.hasOwnProperty(g)||qe(r,i,g,null,c,N)}for(m in c)if(g=c[m],N=o[m],c.hasOwnProperty(m)&&(g!=null||N!=null))switch(m){case"value":Q=g;break;case"defaultValue":A=g;break;case"multiple":S=g;default:g!==N&&qe(r,i,m,g,c,N)}i=A,o=S,c=J,Q!=null?wl(r,!!o,Q,!1):!!c!=!!o&&(i!=null?wl(r,!!o,i,!0):wl(r,!!o,o?[]:"",!1));return;case"textarea":J=Q=null;for(A in o)if(m=o[A],o.hasOwnProperty(A)&&m!=null&&!c.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:qe(r,i,A,null,c,m)}for(S in c)if(m=c[S],g=o[S],c.hasOwnProperty(S)&&(m!=null||g!=null))switch(S){case"value":Q=m;break;case"defaultValue":J=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(a(91));break;default:m!==g&&qe(r,i,S,m,c,g)}Vb(r,Q,J);return;case"option":for(var fe in o)if(Q=o[fe],o.hasOwnProperty(fe)&&Q!=null&&!c.hasOwnProperty(fe))switch(fe){case"selected":r.selected=!1;break;default:qe(r,i,fe,null,c,Q)}for(N in c)if(Q=c[N],J=o[N],c.hasOwnProperty(N)&&Q!==J&&(Q!=null||J!=null))switch(N){case"selected":r.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:qe(r,i,N,Q,c,J)}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 be in o)Q=o[be],o.hasOwnProperty(be)&&Q!=null&&!c.hasOwnProperty(be)&&qe(r,i,be,null,c,Q);for(X in c)if(Q=c[X],J=o[X],c.hasOwnProperty(X)&&Q!==J&&(Q!=null||J!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(a(137,i));break;default:qe(r,i,X,Q,c,J)}return;default:if(Pf(i)){for(var We in o)Q=o[We],o.hasOwnProperty(We)&&Q!==void 0&&!c.hasOwnProperty(We)&&vp(r,i,We,void 0,c,Q);for(ne in c)Q=c[ne],J=o[ne],!c.hasOwnProperty(ne)||Q===J||Q===void 0&&J===void 0||vp(r,i,ne,Q,c,J);return}}for(var q in o)Q=o[q],o.hasOwnProperty(q)&&Q!=null&&!c.hasOwnProperty(q)&&qe(r,i,q,null,c,Q);for(le in c)Q=c[le],J=o[le],!c.hasOwnProperty(le)||Q===J||Q==null&&J==null||qe(r,i,le,Q,c,J)}function U1(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function KA(){if(typeof performance.getEntriesByType=="function"){for(var r=0,i=0,o=performance.getEntriesByType("resource"),c=0;c<o.length;c++){var m=o[c],g=m.transferSize,S=m.initiatorType,A=m.duration;if(g&&A&&U1(S)){for(S=0,A=m.responseEnd,c+=1;c<o.length;c++){var N=o[c],X=N.startTime;if(X>A)break;var ne=N.transferSize,le=N.initiatorType;ne&&U1(le)&&(N=N.responseEnd,S+=ne*(N<A?1:(A-X)/(N-X)))}if(--c,i+=8*(g+S)/(m.duration/1e3),r++,10<r)break}}if(0<r)return i/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var bp=null,yp=null;function Ec(r){return r.nodeType===9?r:r.ownerDocument}function H1(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function G1(r,i){if(r===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&i==="foreignObject"?0:r}function xp(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var wp=null;function VA(){var r=window.event;return r&&r.type==="popstate"?r===wp?!1:(wp=r,!0):(wp=null,!1)}var q1=typeof setTimeout=="function"?setTimeout:void 0,IA=typeof clearTimeout=="function"?clearTimeout:void 0,W1=typeof Promise=="function"?Promise:void 0,FA=typeof queueMicrotask=="function"?queueMicrotask:typeof W1<"u"?function(r){return W1.resolve(null).then(r).catch(jA)}:q1;function jA(r){setTimeout(function(){throw r})}function si(r){return r==="head"}function Y1(r,i){var o=i,c=0;do{var m=o.nextSibling;if(r.removeChild(o),m&&m.nodeType===8)if(o=m.data,o==="/$"||o==="/&"){if(c===0){r.removeChild(m),Jl(i);return}c--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")c++;else if(o==="html")xs(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,xs(o);for(var g=o.firstChild;g;){var S=g.nextSibling,A=g.nodeName;g[$n]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&g.rel.toLowerCase()==="stylesheet"||o.removeChild(g),g=S}}else o==="body"&&xs(r.ownerDocument.body);o=m}while(o);Jl(i)}function X1(r,i){var o=r;r=0;do{var c=o.nextSibling;if(o.nodeType===1?i?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(i?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(r===0)break;r--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||r++;o=c}while(o)}function Sp(r){var i=r.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var o=i;switch(i=i.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Sp(o),Ar(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function UA(r,i,o,c){for(;r.nodeType===1;){var m=o;if(r.nodeName.toLowerCase()!==i.toLowerCase()){if(!c&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(c){if(!r[$n])switch(i){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(g=r.getAttribute("rel"),g==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(g!==m.rel||r.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||r.getAttribute("title")!==(m.title==null?null:m.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(g=r.getAttribute("src"),(g!==(m.src==null?null:m.src)||r.getAttribute("type")!==(m.type==null?null:m.type)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&g&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(i==="input"&&r.type==="hidden"){var g=m.name==null?null:""+m.name;if(m.type==="hidden"&&r.getAttribute("name")===g)return r}else return r;if(r=pr(r.nextSibling),r===null)break}return null}function HA(r,i,o){if(i==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=pr(r.nextSibling),r===null))return null;return r}function Z1(r,i){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!i||(r=pr(r.nextSibling),r===null))return null;return r}function $p(r){return r.data==="$?"||r.data==="$~"}function Ep(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function GA(r,i){var o=r.ownerDocument;if(r.data==="$~")r._reactRetry=i;else if(r.data!=="$?"||o.readyState!=="loading")i();else{var c=function(){i(),o.removeEventListener("DOMContentLoaded",c)};o.addEventListener("DOMContentLoaded",c),r._reactRetry=c}}function pr(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return r}var Cp=null;function Q1(r){r=r.nextSibling;for(var i=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"||o==="/&"){if(i===0)return pr(r.nextSibling);i--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||i++}r=r.nextSibling}return null}function J1(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(i===0)return r;i--}else o!=="/$"&&o!=="/&"||i++}r=r.previousSibling}return null}function ex(r,i,o){switch(i=Ec(o),r){case"html":if(r=i.documentElement,!r)throw Error(a(452));return r;case"head":if(r=i.head,!r)throw Error(a(453));return r;case"body":if(r=i.body,!r)throw Error(a(454));return r;default:throw Error(a(451))}}function xs(r){for(var i=r.attributes;i.length;)r.removeAttributeNode(i[0]);Ar(r)}var mr=new Map,tx=new Set;function Cc(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Ta=B.d;B.d={f:qA,r:WA,D:YA,C:XA,L:ZA,m:QA,X:e7,S:JA,M:t7};function qA(){var r=Ta.f(),i=gc();return r||i}function WA(r){var i=Hn(r);i!==null&&i.tag===5&&i.type==="form"?by(i):Ta.r(r)}var Xl=typeof document>"u"?null:document;function nx(r,i,o){var c=Xl;if(c&&typeof i=="string"&&i){var m=or(i);m='link[rel="'+r+'"][href="'+m+'"]',typeof o=="string"&&(m+='[crossorigin="'+o+'"]'),tx.has(m)||(tx.add(m),r={rel:r,crossOrigin:o,href:i},c.querySelector(m)===null&&(i=c.createElement("link"),dn(i,"link",r),Xe(i),c.head.appendChild(i)))}}function YA(r){Ta.D(r),nx("dns-prefetch",r,null)}function XA(r,i){Ta.C(r,i),nx("preconnect",r,i)}function ZA(r,i,o){Ta.L(r,i,o);var c=Xl;if(c&&r&&i){var m='link[rel="preload"][as="'+or(i)+'"]';i==="image"&&o&&o.imageSrcSet?(m+='[imagesrcset="'+or(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(m+='[imagesizes="'+or(o.imageSizes)+'"]')):m+='[href="'+or(r)+'"]';var g=m;switch(i){case"style":g=Zl(r);break;case"script":g=Ql(r)}mr.has(g)||(r=v({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:r,as:i},o),mr.set(g,r),c.querySelector(m)!==null||i==="style"&&c.querySelector(ws(g))||i==="script"&&c.querySelector(Ss(g))||(i=c.createElement("link"),dn(i,"link",r),Xe(i),c.head.appendChild(i)))}}function QA(r,i){Ta.m(r,i);var o=Xl;if(o&&r){var c=i&&typeof i.as=="string"?i.as:"script",m='link[rel="modulepreload"][as="'+or(c)+'"][href="'+or(r)+'"]',g=m;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Ql(r)}if(!mr.has(g)&&(r=v({rel:"modulepreload",href:r},i),mr.set(g,r),o.querySelector(m)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Ss(g)))return}c=o.createElement("link"),dn(c,"link",r),Xe(c),o.head.appendChild(c)}}}function JA(r,i,o){Ta.S(r,i,o);var c=Xl;if(c&&r){var m=En(c).hoistableStyles,g=Zl(r);i=i||"default";var S=m.get(g);if(!S){var A={loading:0,preload:null};if(S=c.querySelector(ws(g)))A.loading=5;else{r=v({rel:"stylesheet",href:r,"data-precedence":i},o),(o=mr.get(g))&&Tp(r,o);var N=S=c.createElement("link");Xe(N),dn(N,"link",r),N._p=new Promise(function(X,ne){N.onload=X,N.onerror=ne}),N.addEventListener("load",function(){A.loading|=1}),N.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Tc(S,i,c)}S={type:"stylesheet",instance:S,count:1,state:A},m.set(g,S)}}}function e7(r,i){Ta.X(r,i);var o=Xl;if(o&&r){var c=En(o).hoistableScripts,m=Ql(r),g=c.get(m);g||(g=o.querySelector(Ss(m)),g||(r=v({src:r,async:!0},i),(i=mr.get(m))&&Dp(r,i),g=o.createElement("script"),Xe(g),dn(g,"link",r),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(m,g))}}function t7(r,i){Ta.M(r,i);var o=Xl;if(o&&r){var c=En(o).hoistableScripts,m=Ql(r),g=c.get(m);g||(g=o.querySelector(Ss(m)),g||(r=v({src:r,async:!0,type:"module"},i),(i=mr.get(m))&&Dp(r,i),g=o.createElement("script"),Xe(g),dn(g,"link",r),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(m,g))}}function rx(r,i,o,c){var m=(m=pe.current)?Cc(m):null;if(!m)throw Error(a(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=Zl(o.href),o=En(m).hoistableStyles,c=o.get(i),c||(c={type:"style",instance:null,count:0,state:null},o.set(i,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=Zl(o.href);var g=En(m).hoistableStyles,S=g.get(r);if(S||(m=m.ownerDocument||m,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(r,S),(g=m.querySelector(ws(r)))&&!g._p&&(S.instance=g,S.state.loading=5),mr.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},mr.set(r,o),g||n7(m,r,o,S.state))),i&&c===null)throw Error(a(528,""));return S}if(i&&c!==null)throw Error(a(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Ql(o),o=En(m).hoistableScripts,c=o.get(i),c||(c={type:"script",instance:null,count:0,state:null},o.set(i,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,r))}}function Zl(r){return'href="'+or(r)+'"'}function ws(r){return'link[rel="stylesheet"]['+r+"]"}function ax(r){return v({},r,{"data-precedence":r.precedence,precedence:null})}function n7(r,i,o,c){r.querySelector('link[rel="preload"][as="style"]['+i+"]")?c.loading=1:(i=r.createElement("link"),c.preload=i,i.addEventListener("load",function(){return c.loading|=1}),i.addEventListener("error",function(){return c.loading|=2}),dn(i,"link",o),Xe(i),r.head.appendChild(i))}function Ql(r){return'[src="'+or(r)+'"]'}function Ss(r){return"script[async]"+r}function ix(r,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var c=r.querySelector('style[data-href~="'+or(o.href)+'"]');if(c)return i.instance=c,Xe(c),c;var m=v({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),Xe(c),dn(c,"style",m),Tc(c,o.precedence,r),i.instance=c;case"stylesheet":m=Zl(o.href);var g=r.querySelector(ws(m));if(g)return i.state.loading|=4,i.instance=g,Xe(g),g;c=ax(o),(m=mr.get(m))&&Tp(c,m),g=(r.ownerDocument||r).createElement("link"),Xe(g);var S=g;return S._p=new Promise(function(A,N){S.onload=A,S.onerror=N}),dn(g,"link",c),i.state.loading|=4,Tc(g,o.precedence,r),i.instance=g;case"script":return g=Ql(o.src),(m=r.querySelector(Ss(g)))?(i.instance=m,Xe(m),m):(c=o,(m=mr.get(g))&&(c=v({},o),Dp(c,m)),r=r.ownerDocument||r,m=r.createElement("script"),Xe(m),dn(m,"link",c),r.head.appendChild(m),i.instance=m);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(c=i.instance,i.state.loading|=4,Tc(c,o.precedence,r));return i.instance}function Tc(r,i,o){for(var c=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=c.length?c[c.length-1]:null,g=m,S=0;S<c.length;S++){var A=c[S];if(A.dataset.precedence===i)g=A;else if(g!==m)break}g?g.parentNode.insertBefore(r,g.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(r,i.firstChild))}function Tp(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.title==null&&(r.title=i.title)}function Dp(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.integrity==null&&(r.integrity=i.integrity)}var Dc=null;function lx(r,i,o){if(Dc===null){var c=new Map,m=Dc=new Map;m.set(o,c)}else m=Dc,c=m.get(o),c||(c=new Map,m.set(o,c));if(c.has(r))return c;for(c.set(r,null),o=o.getElementsByTagName(r),m=0;m<o.length;m++){var g=o[m];if(!(g[$n]||g[Ye]||r==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var S=g.getAttribute(i)||"";S=r+S;var A=c.get(S);A?A.push(g):c.set(S,[g])}}return c}function ox(r,i,o){r=r.ownerDocument||r,r.head.insertBefore(o,i==="title"?r.querySelector("head > title"):null)}function r7(r,i,o){if(o===1||i.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return r=i.disabled,typeof i.precedence=="string"&&r==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function sx(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function a7(r,i,o,c){if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var m=Zl(c.href),g=i.querySelector(ws(m));if(g){i=g._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(r.count++,r=Ac.bind(r),i.then(r,r)),o.state.loading|=4,o.instance=g,Xe(g);return}g=i.ownerDocument||i,c=ax(c),(m=mr.get(m))&&Tp(c,m),g=g.createElement("link"),Xe(g);var S=g;S._p=new Promise(function(A,N){S.onload=A,S.onerror=N}),dn(g,"link",c),o.instance=g}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(r.count++,o=Ac.bind(r),i.addEventListener("load",o),i.addEventListener("error",o))}}var Ap=0;function i7(r,i){return r.stylesheets&&r.count===0&&Rc(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var c=setTimeout(function(){if(r.stylesheets&&Rc(r,r.stylesheets),r.unsuspend){var g=r.unsuspend;r.unsuspend=null,g()}},6e4+i);0<r.imgBytes&&Ap===0&&(Ap=62500*KA());var m=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Rc(r,r.stylesheets),r.unsuspend)){var g=r.unsuspend;r.unsuspend=null,g()}},(r.imgBytes>Ap?50:800)+i);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(c),clearTimeout(m)}}:null}function Ac(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rc(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Mc=null;function Rc(r,i){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Mc=new Map,i.forEach(l7,r),Mc=null,Ac.call(r))}function l7(r,i){if(!(i.state.loading&4)){var o=Mc.get(r);if(o)var c=o.get(null);else{o=new Map,Mc.set(r,o);for(var m=r.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<m.length;g++){var S=m[g];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(o.set(S.dataset.precedence,S),c=S)}c&&o.set(null,c)}m=i.instance,S=m.getAttribute("data-precedence"),g=o.get(S)||c,g===c&&o.set(null,m),o.set(S,m),this.count++,c=Ac.bind(this),m.addEventListener("load",c),m.addEventListener("error",c),g?g.parentNode.insertBefore(m,g.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(m,r.firstChild)),i.state.loading|=4}}var $s={$$typeof:T,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function o7(r,i,o,c,m,g,S,A,N){this.tag=1,this.containerInfo=r,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=st(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=st(0),this.hiddenUpdates=st(null),this.identifierPrefix=c,this.onUncaughtError=m,this.onCaughtError=g,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function ux(r,i,o,c,m,g,S,A,N,X,ne,le){return r=new o7(r,i,o,S,N,X,ne,le,A),i=1,g===!0&&(i|=24),g=Wn(3,null,null,i),r.current=g,g.stateNode=r,i=oh(),i.refCount++,r.pooledCache=i,i.refCount++,g.memoizedState={element:c,isDehydrated:o,cache:i},dh(g),r}function cx(r){return r?(r=Ml,r):Ml}function dx(r,i,o,c,m,g){m=cx(m),c.context===null?c.context=m:c.pendingContext=m,c=Za(i),c.payload={element:o},g=g===void 0?null:g,g!==null&&(c.callback=g),o=Qa(r,c,i),o!==null&&(_n(o,r,i),ts(o,r,i))}function fx(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<i?o:i}}function Mp(r,i){fx(r,i),(r=r.alternate)&&fx(r,i)}function hx(r){if(r.tag===13||r.tag===31){var i=ki(r,67108864);i!==null&&_n(i,r,67108864),Mp(r,67108864)}}function px(r){if(r.tag===13||r.tag===31){var i=Jn();i=Yt(i);var o=ki(r,i);o!==null&&_n(o,r,i),Mp(r,i)}}var Pc=!0;function s7(r,i,o,c){var m=R.T;R.T=null;var g=B.p;try{B.p=2,Rp(r,i,o,c)}finally{B.p=g,R.T=m}}function u7(r,i,o,c){var m=R.T;R.T=null;var g=B.p;try{B.p=8,Rp(r,i,o,c)}finally{B.p=g,R.T=m}}function Rp(r,i,o,c){if(Pc){var m=Pp(c);if(m===null)gp(r,i,c,zc,o),gx(r,c);else if(d7(m,r,i,o,c))c.stopPropagation();else if(gx(r,c),i&4&&-1<c7.indexOf(r)){for(;m!==null;){var g=Hn(m);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var S=Ee(g.pendingLanes);if(S!==0){var A=g;for(A.pendingLanes|=2,A.entangledLanes|=2;S;){var N=1<<31-ht(S);A.entanglements[1]|=N,S&=~N}qr(g),(Fe&6)===0&&(pc=Et()+500,vs(0))}}break;case 31:case 13:A=ki(g,2),A!==null&&_n(A,g,2),gc(),Mp(g,2)}if(g=Pp(c),g===null&&gp(r,i,c,zc,o),g===m)break;m=g}m!==null&&c.stopPropagation()}else gp(r,i,c,null,o)}}function Pp(r){return r=Of(r),zp(r)}var zc=null;function zp(r){if(zc=null,r=Ft(r),r!==null){var i=s(r);if(i===null)r=null;else{var o=i.tag;if(o===13){if(r=u(i),r!==null)return r;r=null}else if(o===31){if(r=d(i),r!==null)return r;r=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return zc=r,null}function mx(r){switch(r){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(la()){case jn:return 2;case Pt:return 8;case zt:case Un:return 32;case Fr:return 268435456;default:return 32}default:return 32}}var Op=!1,ui=null,ci=null,di=null,Es=new Map,Cs=new Map,fi=[],c7="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 gx(r,i){switch(r){case"focusin":case"focusout":ui=null;break;case"dragenter":case"dragleave":ci=null;break;case"mouseover":case"mouseout":di=null;break;case"pointerover":case"pointerout":Es.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cs.delete(i.pointerId)}}function Ts(r,i,o,c,m,g){return r===null||r.nativeEvent!==g?(r={blockedOn:i,domEventName:o,eventSystemFlags:c,nativeEvent:g,targetContainers:[m]},i!==null&&(i=Hn(i),i!==null&&hx(i)),r):(r.eventSystemFlags|=c,i=r.targetContainers,m!==null&&i.indexOf(m)===-1&&i.push(m),r)}function d7(r,i,o,c,m){switch(i){case"focusin":return ui=Ts(ui,r,i,o,c,m),!0;case"dragenter":return ci=Ts(ci,r,i,o,c,m),!0;case"mouseover":return di=Ts(di,r,i,o,c,m),!0;case"pointerover":var g=m.pointerId;return Es.set(g,Ts(Es.get(g)||null,r,i,o,c,m)),!0;case"gotpointercapture":return g=m.pointerId,Cs.set(g,Ts(Cs.get(g)||null,r,i,o,c,m)),!0}return!1}function vx(r){var i=Ft(r.target);if(i!==null){var o=s(i);if(o!==null){if(i=o.tag,i===13){if(i=u(o),i!==null){r.blockedOn=i,Zt(r.priority,function(){px(o)});return}}else if(i===31){if(i=d(o),i!==null){r.blockedOn=i,Zt(r.priority,function(){px(o)});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Oc(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var o=Pp(r.nativeEvent);if(o===null){o=r.nativeEvent;var c=new o.constructor(o.type,o);zf=c,o.target.dispatchEvent(c),zf=null}else return i=Hn(o),i!==null&&hx(i),r.blockedOn=o,!1;i.shift()}return!0}function bx(r,i,o){Oc(r)&&o.delete(i)}function f7(){Op=!1,ui!==null&&Oc(ui)&&(ui=null),ci!==null&&Oc(ci)&&(ci=null),di!==null&&Oc(di)&&(di=null),Es.forEach(bx),Cs.forEach(bx)}function Bc(r,i){r.blockedOn===i&&(r.blockedOn=null,Op||(Op=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,f7)))}var kc=null;function yx(r){kc!==r&&(kc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){kc===r&&(kc=null);for(var i=0;i<r.length;i+=3){var o=r[i],c=r[i+1],m=r[i+2];if(typeof c!="function"){if(zp(c||o)===null)continue;break}var g=Hn(o);g!==null&&(r.splice(i,3),i-=3,Ph(g,{pending:!0,data:m,method:o.method,action:c},c,m))}}))}function Jl(r){function i(N){return Bc(N,r)}ui!==null&&Bc(ui,r),ci!==null&&Bc(ci,r),di!==null&&Bc(di,r),Es.forEach(i),Cs.forEach(i);for(var o=0;o<fi.length;o++){var c=fi[o];c.blockedOn===r&&(c.blockedOn=null)}for(;0<fi.length&&(o=fi[0],o.blockedOn===null);)vx(o),o.blockedOn===null&&fi.shift();if(o=(r.ownerDocument||r).$$reactFormReplay,o!=null)for(c=0;c<o.length;c+=3){var m=o[c],g=o[c+1],S=m[ct]||null;if(typeof g=="function")S||yx(o);else if(S){var A=null;if(g&&g.hasAttribute("formAction")){if(m=g,S=g[ct]||null)A=S.formAction;else if(zp(m)!==null)continue}else A=S.action;typeof A=="function"?o[c+1]=A:(o.splice(c,3),c-=3),yx(o)}}}function xx(){function r(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(S){return m=S})},focusReset:"manual",scroll:"manual"})}function i(){m!==null&&(m(),m=null),c||setTimeout(o,20)}function o(){if(!c&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,m=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(o,100),function(){c=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),m!==null&&(m(),m=null)}}}function Bp(r){this._internalRoot=r}Lc.prototype.render=Bp.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(a(409));var o=i.current,c=Jn();dx(o,c,r,i,null,null)},Lc.prototype.unmount=Bp.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;dx(r.current,2,null,r,null,null),gc(),i[ln]=null}};function Lc(r){this._internalRoot=r}Lc.prototype.unstable_scheduleHydration=function(r){if(r){var i=Xt();r={blockedOn:null,target:r,priority:i};for(var o=0;o<fi.length&&i!==0&&i<fi[o].priority;o++);fi.splice(o,0,r),o===0&&vx(r)}};var wx=t.version;if(wx!=="19.2.0")throw Error(a(527,wx,"19.2.0"));B.findDOMNode=function(r){var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(a(188)):(r=Object.keys(r).join(","),Error(a(268,r)));return r=h(i),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var h7={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nc.isDisabled&&Nc.supportsFiber)try{Ct=Nc.inject(h7),Ot=Nc}catch{}}return Ds.createRoot=function(r,i){if(!l(r))throw Error(a(299));var o=!1,c="",m=Ay,g=My,S=Ry;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(S=i.onRecoverableError)),i=ux(r,1,!1,null,null,o,c,null,m,g,S,xx),r[ln]=i.current,mp(r),new Bp(i)},Ds.hydrateRoot=function(r,i,o){if(!l(r))throw Error(a(299));var c=!1,m="",g=Ay,S=My,A=Ry,N=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(S=o.onCaughtError),o.onRecoverableError!==void 0&&(A=o.onRecoverableError),o.formState!==void 0&&(N=o.formState)),i=ux(r,1,!0,i,o??null,c,m,N,g,S,A,xx),i.context=cx(null),o=i.current,c=Jn(),c=Yt(c),m=Za(c),m.callback=null,Qa(o,m,c),o=c,i.current.lanes=o,et(i,o),qr(i),r[ln]=i.current,mp(r),new Lc(i)},Ds.version="19.2.0",Ds}var Dx;function x7(){if(Dx)return kp.exports;Dx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),kp.exports=y7(),kp.exports}var w7=x7();const $F=tf(w7);/**
 * react-router v7.9.5
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var Ax="popstate";function S7(e={}){function t(a,l){let{pathname:s,search:u,hash:d}=a.location;return Zm("",{pathname:s,search:u,hash:d},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(a,l){return typeof l=="string"?l:Qs(l)}return E7(t,n,null,e)}function mt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Kr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function $7(){return Math.random().toString(36).substring(2,10)}function Mx(e,t){return{usr:e.state,key:e.key,idx:t}}function Zm(e,t,n=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?zo(t):t,state:n,key:t&&t.key||a||$7()}}function Qs({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function zo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function E7(e,t,n,a={}){let{window:l=document.defaultView,v5Compat:s=!1}=a,u=l.history,d="POP",f=null,h=p();h==null&&(h=0,u.replaceState({...u.state,idx:h},""));function p(){return(u.state||{idx:null}).idx}function v(){d="POP";let E=p(),C=E==null?null:E-h;h=E,f&&f({action:d,location:w.location,delta:C})}function y(E,C){d="PUSH";let M=Zm(w.location,E,C);h=p()+1;let T=Mx(M,h),O=w.createHref(M);try{u.pushState(T,"",O)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;l.location.assign(O)}s&&f&&f({action:d,location:w.location,delta:1})}function x(E,C){d="REPLACE";let M=Zm(w.location,E,C);h=p();let T=Mx(M,h),O=w.createHref(M);u.replaceState(T,"",O),s&&f&&f({action:d,location:w.location,delta:0})}function $(E){return C7(E)}let w={get action(){return d},get location(){return e(l,u)},listen(E){if(f)throw new Error("A history only accepts one active listener");return l.addEventListener(Ax,v),f=E,()=>{l.removeEventListener(Ax,v),f=null}},createHref(E){return t(l,E)},createURL:$,encodeLocation(E){let C=$(E);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:y,replace:x,go(E){return u.go(E)}};return w}function C7(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),mt(n,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:Qs(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=n+a),new URL(a,n)}function aS(e,t,n="/"){return T7(e,t,n,!1)}function T7(e,t,n,a){let l=typeof t=="string"?zo(t):t,s=Ba(l.pathname||"/",n);if(s==null)return null;let u=iS(e);D7(u);let d=null;for(let f=0;d==null&&f<u.length;++f){let h=_7(s);d=L7(u[f],h,a)}return d}function iS(e,t=[],n=[],a="",l=!1){let s=(u,d,f=l,h)=>{let p={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(a)&&f)return;mt(p.relativePath.startsWith(a),`Absolute route path "${p.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(a.length)}let v=Oa([a,p.relativePath]),y=n.concat(p);u.children&&u.children.length>0&&(mt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),iS(u.children,t,y,v,f)),!(u.path==null&&!u.index)&&t.push({path:v,score:B7(v,u.index),routesMeta:y})};return e.forEach((u,d)=>{var f;if(u.path===""||!((f=u.path)!=null&&f.includes("?")))s(u,d);else for(let h of lS(u.path))s(u,d,!0,h)}),t}function lS(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,l=n.endsWith("?"),s=n.replace(/\?$/,"");if(a.length===0)return l?[s,""]:[s];let u=lS(a.join("/")),d=[];return d.push(...u.map(f=>f===""?s:[s,f].join("/"))),l&&d.push(...u),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function D7(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:k7(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var A7=/^:[\w-]+$/,M7=3,R7=2,P7=1,z7=10,O7=-2,Rx=e=>e==="*";function B7(e,t){let n=e.split("/"),a=n.length;return n.some(Rx)&&(a+=O7),t&&(a+=R7),n.filter(l=>!Rx(l)).reduce((l,s)=>l+(A7.test(s)?M7:s===""?P7:z7),a)}function k7(e,t){return e.length===t.length&&e.slice(0,-1).every((a,l)=>a===t[l])?e[e.length-1]-t[t.length-1]:0}function L7(e,t,n=!1){let{routesMeta:a}=e,l={},s="/",u=[];for(let d=0;d<a.length;++d){let f=a[d],h=d===a.length-1,p=s==="/"?t:t.slice(s.length)||"/",v=Dd({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},p),y=f.route;if(!v&&h&&n&&!a[a.length-1].route.index&&(v=Dd({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},p)),!v)return null;Object.assign(l,v.params),u.push({params:l,pathname:Oa([s,v.pathname]),pathnameBase:F7(Oa([s,v.pathnameBase])),route:y}),v.pathnameBase!=="/"&&(s=Oa([s,v.pathnameBase]))}return u}function Dd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=N7(e.path,e.caseSensitive,e.end),l=t.match(n);if(!l)return null;let s=l[0],u=s.replace(/(.)\/+$/,"$1"),d=l.slice(1);return{params:a.reduce((h,{paramName:p,isOptional:v},y)=>{if(p==="*"){let $=d[y]||"";u=s.slice(0,s.length-$.length).replace(/(.)\/+$/,"$1")}const x=d[y];return v&&!x?h[p]=void 0:h[p]=(x||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:u,pattern:e}}function N7(e,t=!1,n=!0){Kr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,f)=>(a.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),a]}function _7(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Kr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ba(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}function K7(e,t="/"){let{pathname:n,search:a="",hash:l=""}=typeof e=="string"?zo(e):e;return{pathname:n?n.startsWith("/")?n:V7(n,t):t,search:j7(a),hash:U7(l)}}function V7(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Kp(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function I7(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function oS(e){let t=I7(e);return t.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase)}function sS(e,t,n,a=!1){let l;typeof e=="string"?l=zo(e):(l={...e},mt(!l.pathname||!l.pathname.includes("?"),Kp("?","pathname","search",l)),mt(!l.pathname||!l.pathname.includes("#"),Kp("#","pathname","hash",l)),mt(!l.search||!l.search.includes("#"),Kp("#","search","hash",l)));let s=e===""||l.pathname==="",u=s?"/":l.pathname,d;if(u==null)d=n;else{let v=t.length-1;if(!a&&u.startsWith("..")){let y=u.split("/");for(;y[0]==="..";)y.shift(),v-=1;l.pathname=y.join("/")}d=v>=0?t[v]:"/"}let f=K7(l,d),h=u&&u!=="/"&&u.endsWith("/"),p=(s||u===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||p)&&(f.pathname+="/"),f}var Oa=e=>e.join("/").replace(/\/\/+/g,"/"),F7=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),j7=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,U7=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function H7(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var uS=["POST","PUT","PATCH","DELETE"];new Set(uS);var G7=["GET",...uS];new Set(G7);var Oo=b.createContext(null);Oo.displayName="DataRouter";var nf=b.createContext(null);nf.displayName="DataRouterState";b.createContext(!1);var cS=b.createContext({isTransitioning:!1});cS.displayName="ViewTransition";var q7=b.createContext(new Map);q7.displayName="Fetchers";var W7=b.createContext(null);W7.displayName="Await";var na=b.createContext(null);na.displayName="Navigation";var hu=b.createContext(null);hu.displayName="Location";var ra=b.createContext({outlet:null,matches:[],isDataRoute:!1});ra.displayName="Route";var dv=b.createContext(null);dv.displayName="RouteError";function Y7(e,{relative:t}={}){mt(pu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=b.useContext(na),{hash:l,pathname:s,search:u}=mu(e,{relative:t}),d=s;return n!=="/"&&(d=s==="/"?n:Oa([n,s])),a.createHref({pathname:d,search:u,hash:l})}function pu(){return b.useContext(hu)!=null}function Ai(){return mt(pu(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(hu).location}var dS="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fS(e){b.useContext(na).static||b.useLayoutEffect(e)}function hS(){let{isDataRoute:e}=b.useContext(ra);return e?c8():X7()}function X7(){mt(pu(),"useNavigate() may be used only in the context of a <Router> component.");let e=b.useContext(Oo),{basename:t,navigator:n}=b.useContext(na),{matches:a}=b.useContext(ra),{pathname:l}=Ai(),s=JSON.stringify(oS(a)),u=b.useRef(!1);return fS(()=>{u.current=!0}),b.useCallback((f,h={})=>{if(Kr(u.current,dS),!u.current)return;if(typeof f=="number"){n.go(f);return}let p=sS(f,JSON.parse(s),l,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Oa([t,p.pathname])),(h.replace?n.replace:n.push)(p,h.state,h)},[t,n,s,l,e])}var Z7=b.createContext(null);function Q7(e){let t=b.useContext(ra).outlet;return b.useMemo(()=>t&&b.createElement(Z7.Provider,{value:e},t),[t,e])}function mu(e,{relative:t}={}){let{matches:n}=b.useContext(ra),{pathname:a}=Ai(),l=JSON.stringify(oS(n));return b.useMemo(()=>sS(e,JSON.parse(l),a,t==="path"),[e,l,a,t])}function J7(e,t){return pS(e,t)}function pS(e,t,n,a,l){var M;mt(pu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=b.useContext(na),{matches:u}=b.useContext(ra),d=u[u.length-1],f=d?d.params:{},h=d?d.pathname:"/",p=d?d.pathnameBase:"/",v=d&&d.route;{let T=v&&v.path||"";mS(h,!v||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let y=Ai(),x;if(t){let T=typeof t=="string"?zo(t):t;mt(p==="/"||((M=T.pathname)==null?void 0:M.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${T.pathname}" was given in the \`location\` prop.`),x=T}else x=y;let $=x.pathname||"/",w=$;if(p!=="/"){let T=p.replace(/^\//,"").split("/");w="/"+$.replace(/^\//,"").split("/").slice(T.length).join("/")}let E=aS(e,{pathname:w});Kr(v||E!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Kr(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=a8(E&&E.map(T=>Object.assign({},T,{params:Object.assign({},f,T.params),pathname:Oa([p,s.encodeLocation?s.encodeLocation(T.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?p:Oa([p,s.encodeLocation?s.encodeLocation(T.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),u,n,a,l);return t&&C?b.createElement(hu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},C):C}function e8(){let e=u8(),t=H7(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:a},s={padding:"2px 4px",backgroundColor:a},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:s},"ErrorBoundary")," or"," ",b.createElement("code",{style:s},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:l},n):null,u)}var t8=b.createElement(e8,null),n8=class extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?b.createElement(ra.Provider,{value:this.props.routeContext},b.createElement(dv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function r8({routeContext:e,match:t,children:n}){let a=b.useContext(Oo);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(ra.Provider,{value:e},n)}function a8(e,t=[],n=null,a=null,l=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,u=n==null?void 0:n.errors;if(u!=null){let h=s.findIndex(p=>p.route.id&&(u==null?void 0:u[p.route.id])!==void 0);mt(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),s=s.slice(0,Math.min(s.length,h+1))}let d=!1,f=-1;if(n)for(let h=0;h<s.length;h++){let p=s[h];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(f=h),p.route.id){let{loaderData:v,errors:y}=n,x=p.route.loader&&!v.hasOwnProperty(p.route.id)&&(!y||y[p.route.id]===void 0);if(p.route.lazy||x){d=!0,f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}return s.reduceRight((h,p,v)=>{let y,x=!1,$=null,w=null;n&&(y=u&&p.route.id?u[p.route.id]:void 0,$=p.route.errorElement||t8,d&&(f<0&&v===0?(mS("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,w=null):f===v&&(x=!0,w=p.route.hydrateFallbackElement||null)));let E=t.concat(s.slice(0,v+1)),C=()=>{let M;return y?M=$:x?M=w:p.route.Component?M=b.createElement(p.route.Component,null):p.route.element?M=p.route.element:M=h,b.createElement(r8,{match:p,routeContext:{outlet:h,matches:E,isDataRoute:n!=null},children:M})};return n&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?b.createElement(n8,{location:n.location,revalidation:n.revalidation,component:$,error:y,children:C(),routeContext:{outlet:null,matches:E,isDataRoute:!0},unstable_onError:a}):C()},null)}function fv(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function i8(e){let t=b.useContext(Oo);return mt(t,fv(e)),t}function l8(e){let t=b.useContext(nf);return mt(t,fv(e)),t}function o8(e){let t=b.useContext(ra);return mt(t,fv(e)),t}function hv(e){let t=o8(e),n=t.matches[t.matches.length-1];return mt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function s8(){return hv("useRouteId")}function u8(){var a;let e=b.useContext(dv),t=l8("useRouteError"),n=hv("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[n]}function c8(){let{router:e}=i8("useNavigate"),t=hv("useNavigate"),n=b.useRef(!1);return fS(()=>{n.current=!0}),b.useCallback(async(l,s={})=>{Kr(n.current,dS),n.current&&(typeof l=="number"?e.navigate(l):await e.navigate(l,{fromRouteId:t,...s}))},[e,t])}var Px={};function mS(e,t,n){!t&&!Px[e]&&(Px[e]=!0,Kr(!1,n))}b.memo(d8);function d8({routes:e,future:t,state:n,unstable_onError:a}){return pS(e,void 0,n,a,t)}function EF(e){return Q7(e.context)}function f8(e){mt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function h8({basename:e="/",children:t=null,location:n,navigationType:a="POP",navigator:l,static:s=!1}){mt(!pu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),d=b.useMemo(()=>({basename:u,navigator:l,static:s,future:{}}),[u,l,s]);typeof n=="string"&&(n=zo(n));let{pathname:f="/",search:h="",hash:p="",state:v=null,key:y="default"}=n,x=b.useMemo(()=>{let $=Ba(f,u);return $==null?null:{location:{pathname:$,search:h,hash:p,state:v,key:y},navigationType:a}},[u,f,h,p,v,y,a]);return Kr(x!=null,`<Router basename="${u}"> is not able to match the URL "${f}${h}${p}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:b.createElement(na.Provider,{value:d},b.createElement(hu.Provider,{children:t,value:x}))}function CF({children:e,location:t}){return J7(Qm(e),t)}function Qm(e,t=[]){let n=[];return b.Children.forEach(e,(a,l)=>{if(!b.isValidElement(a))return;let s=[...t,l];if(a.type===b.Fragment){n.push.apply(n,Qm(a.props.children,s));return}mt(a.type===f8,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),mt(!a.props.index||!a.props.children,"An index route cannot have child routes.");let u={id:a.props.id||s.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(u.children=Qm(a.props.children,s)),n.push(u)}),n}var dd="get",fd="application/x-www-form-urlencoded";function rf(e){return e!=null&&typeof e.tagName=="string"}function p8(e){return rf(e)&&e.tagName.toLowerCase()==="button"}function m8(e){return rf(e)&&e.tagName.toLowerCase()==="form"}function g8(e){return rf(e)&&e.tagName.toLowerCase()==="input"}function v8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function b8(e,t){return e.button===0&&(!t||t==="_self")&&!v8(e)}function Jm(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let a=e[n];return t.concat(Array.isArray(a)?a.map(l=>[n,l]):[[n,a]])},[]))}function y8(e,t){let n=Jm(e);return t&&t.forEach((a,l)=>{n.has(l)||t.getAll(l).forEach(s=>{n.append(l,s)})}),n}var Kc=null;function x8(){if(Kc===null)try{new FormData(document.createElement("form"),0),Kc=!1}catch{Kc=!0}return Kc}var w8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vp(e){return e!=null&&!w8.has(e)?(Kr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fd}"`),null):e}function S8(e,t){let n,a,l,s,u;if(m8(e)){let d=e.getAttribute("action");a=d?Ba(d,t):null,n=e.getAttribute("method")||dd,l=Vp(e.getAttribute("enctype"))||fd,s=new FormData(e)}else if(p8(e)||g8(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(a=f?Ba(f,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||dd,l=Vp(e.getAttribute("formenctype"))||Vp(d.getAttribute("enctype"))||fd,s=new FormData(d,e),!x8()){let{name:h,type:p,value:v}=e;if(p==="image"){let y=h?`${h}.`:"";s.append(`${y}x`,"0"),s.append(`${y}y`,"0")}else h&&s.append(h,v)}}else{if(rf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=dd,a=null,l=fd,u=e}return s&&l==="text/plain"&&(u=s,s=void 0),{action:a,method:n.toLowerCase(),encType:l,formData:s,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function pv(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $8(e,t,n){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a.pathname==="/"?a.pathname=`_root.${n}`:t&&Ba(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${n}`,a}async function E8(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function C8(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function T8(e,t,n){let a=await Promise.all(e.map(async l=>{let s=t.routes[l.route.id];if(s){let u=await E8(s,n);return u.links?u.links():[]}return[]}));return R8(a.flat(1).filter(C8).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function zx(e,t,n,a,l,s){let u=(f,h)=>n[h]?f.route.id!==n[h].route.id:!0,d=(f,h)=>{var p;return n[h].pathname!==f.pathname||((p=n[h].route.path)==null?void 0:p.endsWith("*"))&&n[h].params["*"]!==f.params["*"]};return s==="assets"?t.filter((f,h)=>u(f,h)||d(f,h)):s==="data"?t.filter((f,h)=>{var v;let p=a.routes[f.route.id];if(!p||!p.hasLoader)return!1;if(u(f,h)||d(f,h))return!0;if(f.route.shouldRevalidate){let y=f.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:((v=n[0])==null?void 0:v.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function D8(e,t,{includeHydrateFallback:n}={}){return A8(e.map(a=>{let l=t.routes[a.route.id];if(!l)return[];let s=[l.module];return l.clientActionModule&&(s=s.concat(l.clientActionModule)),l.clientLoaderModule&&(s=s.concat(l.clientLoaderModule)),n&&l.hydrateFallbackModule&&(s=s.concat(l.hydrateFallbackModule)),l.imports&&(s=s.concat(l.imports)),s}).flat(1))}function A8(e){return[...new Set(e)]}function M8(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}function R8(e,t){let n=new Set;return new Set(t),e.reduce((a,l)=>{let s=JSON.stringify(M8(l));return n.has(s)||(n.add(s),a.push({key:s,link:l})),a},[])}function gS(){let e=b.useContext(Oo);return pv(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function P8(){let e=b.useContext(nf);return pv(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var mv=b.createContext(void 0);mv.displayName="FrameworkContext";function vS(){let e=b.useContext(mv);return pv(e,"You must render this element inside a <HydratedRouter> element"),e}function z8(e,t){let n=b.useContext(mv),[a,l]=b.useState(!1),[s,u]=b.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:h,onMouseLeave:p,onTouchStart:v}=t,y=b.useRef(null);b.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let w=C=>{C.forEach(M=>{u(M.isIntersecting)})},E=new IntersectionObserver(w,{threshold:.5});return y.current&&E.observe(y.current),()=>{E.disconnect()}}},[e]),b.useEffect(()=>{if(a){let w=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(w)}}},[a]);let x=()=>{l(!0)},$=()=>{l(!1),u(!1)};return n?e!=="intent"?[s,y,{}]:[s,y,{onFocus:As(d,x),onBlur:As(f,$),onMouseEnter:As(h,x),onMouseLeave:As(p,$),onTouchStart:As(v,x)}]:[!1,y,{}]}function As(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function O8({page:e,...t}){let{router:n}=gS(),a=b.useMemo(()=>aS(n.routes,e,n.basename),[n.routes,e,n.basename]);return a?b.createElement(k8,{page:e,matches:a,...t}):null}function B8(e){let{manifest:t,routeModules:n}=vS(),[a,l]=b.useState([]);return b.useEffect(()=>{let s=!1;return T8(e,t,n).then(u=>{s||l(u)}),()=>{s=!0}},[e,t,n]),a}function k8({page:e,matches:t,...n}){let a=Ai(),{manifest:l,routeModules:s}=vS(),{basename:u}=gS(),{loaderData:d,matches:f}=P8(),h=b.useMemo(()=>zx(e,t,f,l,a,"data"),[e,t,f,l,a]),p=b.useMemo(()=>zx(e,t,f,l,a,"assets"),[e,t,f,l,a]),v=b.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let $=new Set,w=!1;if(t.forEach(C=>{var T;let M=l.routes[C.route.id];!M||!M.hasLoader||(!h.some(O=>O.route.id===C.route.id)&&C.route.id in d&&((T=s[C.route.id])!=null&&T.shouldRevalidate)||M.hasClientLoader?w=!0:$.add(C.route.id))}),$.size===0)return[];let E=$8(e,u,"data");return w&&$.size>0&&E.searchParams.set("_routes",t.filter(C=>$.has(C.route.id)).map(C=>C.route.id).join(",")),[E.pathname+E.search]},[u,d,a,l,h,t,e,s]),y=b.useMemo(()=>D8(p,l),[p,l]),x=B8(p);return b.createElement(b.Fragment,null,v.map($=>b.createElement("link",{key:$,rel:"prefetch",as:"fetch",href:$,...n})),y.map($=>b.createElement("link",{key:$,rel:"modulepreload",href:$,...n})),x.map(({key:$,link:w})=>b.createElement("link",{key:$,nonce:n.nonce,...w})))}function L8(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var bS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{bS&&(window.__reactRouterVersion="7.9.5")}catch{}function TF({basename:e,children:t,window:n}){let a=b.useRef();a.current==null&&(a.current=S7({window:n,v5Compat:!0}));let l=a.current,[s,u]=b.useState({action:l.action,location:l.location}),d=b.useCallback(f=>{b.startTransition(()=>u(f))},[u]);return b.useLayoutEffect(()=>l.listen(d),[l,d]),b.createElement(h8,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:l})}var yS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xS=b.forwardRef(function({onClick:t,discover:n="render",prefetch:a="none",relative:l,reloadDocument:s,replace:u,state:d,target:f,to:h,preventScrollReset:p,viewTransition:v,...y},x){let{basename:$}=b.useContext(na),w=typeof h=="string"&&yS.test(h),E,C=!1;if(typeof h=="string"&&w&&(E=h,bS))try{let V=new URL(window.location.href),j=h.startsWith("//")?new URL(V.protocol+h):new URL(h),z=Ba(j.pathname,$);j.origin===V.origin&&z!=null?h=z+j.search+j.hash:C=!0}catch{Kr(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let M=Y7(h,{relative:l}),[T,O,P]=z8(a,y),k=V8(h,{replace:u,state:d,target:f,preventScrollReset:p,relative:l,viewTransition:v});function G(V){t&&t(V),V.defaultPrevented||k(V)}let D=b.createElement("a",{...y,...P,href:E||M,onClick:C||s?t:G,ref:L8(x,O),target:f,"data-discover":!w&&n==="render"?"true":void 0});return T&&!w?b.createElement(b.Fragment,null,D,b.createElement(O8,{page:M})):D});xS.displayName="Link";var N8=b.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:a="",end:l=!1,style:s,to:u,viewTransition:d,children:f,...h},p){let v=mu(u,{relative:h.relative}),y=Ai(),x=b.useContext(nf),{navigator:$,basename:w}=b.useContext(na),E=x!=null&&H8(v)&&d===!0,C=$.encodeLocation?$.encodeLocation(v).pathname:v.pathname,M=y.pathname,T=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(M=M.toLowerCase(),T=T?T.toLowerCase():null,C=C.toLowerCase()),T&&w&&(T=Ba(T,w)||T);const O=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let P=M===C||!l&&M.startsWith(C)&&M.charAt(O)==="/",k=T!=null&&(T===C||!l&&T.startsWith(C)&&T.charAt(C.length)==="/"),G={isActive:P,isPending:k,isTransitioning:E},D=P?t:void 0,V;typeof a=="function"?V=a(G):V=[a,P?"active":null,k?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let j=typeof s=="function"?s(G):s;return b.createElement(xS,{...h,"aria-current":D,className:V,ref:p,style:j,to:u,viewTransition:d},typeof f=="function"?f(G):f)});N8.displayName="NavLink";var _8=b.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:l,state:s,method:u=dd,action:d,onSubmit:f,relative:h,preventScrollReset:p,viewTransition:v,...y},x)=>{let $=j8(),w=U8(d,{relative:h}),E=u.toLowerCase()==="get"?"get":"post",C=typeof d=="string"&&yS.test(d),M=T=>{if(f&&f(T),T.defaultPrevented)return;T.preventDefault();let O=T.nativeEvent.submitter,P=(O==null?void 0:O.getAttribute("formmethod"))||u;$(O||T.currentTarget,{fetcherKey:t,method:P,navigate:n,replace:l,state:s,relative:h,preventScrollReset:p,viewTransition:v})};return b.createElement("form",{ref:x,method:E,action:w,onSubmit:a?f:M,...y,"data-discover":!C&&e==="render"?"true":void 0})});_8.displayName="Form";function K8(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function wS(e){let t=b.useContext(Oo);return mt(t,K8(e)),t}function V8(e,{target:t,replace:n,state:a,preventScrollReset:l,relative:s,viewTransition:u}={}){let d=hS(),f=Ai(),h=mu(e,{relative:s});return b.useCallback(p=>{if(b8(p,t)){p.preventDefault();let v=n!==void 0?n:Qs(f)===Qs(h);d(e,{replace:v,state:a,preventScrollReset:l,relative:s,viewTransition:u})}},[f,d,h,n,a,t,e,l,s,u])}function DF(e){Kr(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=b.useRef(Jm(e)),n=b.useRef(!1),a=Ai(),l=b.useMemo(()=>y8(a.search,n.current?null:t.current),[a.search]),s=hS(),u=b.useCallback((d,f)=>{const h=Jm(typeof d=="function"?d(new URLSearchParams(l)):d);n.current=!0,s("?"+h,f)},[s,l]);return[l,u]}var I8=0,F8=()=>`__${String(++I8)}__`;function j8(){let{router:e}=wS("useSubmit"),{basename:t}=b.useContext(na),n=s8();return b.useCallback(async(a,l={})=>{let{action:s,method:u,encType:d,formData:f,body:h}=S8(a,t);if(l.navigate===!1){let p=l.fetcherKey||F8();await e.fetch(p,n,l.action||s,{preventScrollReset:l.preventScrollReset,formData:f,body:h,formMethod:l.method||u,formEncType:l.encType||d,flushSync:l.flushSync})}else await e.navigate(l.action||s,{preventScrollReset:l.preventScrollReset,formData:f,body:h,formMethod:l.method||u,formEncType:l.encType||d,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[e,t,n])}function U8(e,{relative:t}={}){let{basename:n}=b.useContext(na),a=b.useContext(ra);mt(a,"useFormAction must be used inside a RouteContext");let[l]=a.matches.slice(-1),s={...mu(e||".",{relative:t})},u=Ai();if(e==null){s.search=u.search;let d=new URLSearchParams(s.search),f=d.getAll("index");if(f.some(p=>p==="")){d.delete("index"),f.filter(v=>v).forEach(v=>d.append("index",v));let p=d.toString();s.search=p?`?${p}`:""}}return(!e||e===".")&&l.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Oa([n,s.pathname])),Qs(s)}function H8(e,{relative:t}={}){let n=b.useContext(cS);mt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=wS("useViewTransitionState"),l=mu(e,{relative:t});if(!n.isTransitioning)return!1;let s=Ba(n.currentLocation.pathname,a)||n.currentLocation.pathname,u=Ba(n.nextLocation.pathname,a)||n.nextLocation.pathname;return Dd(l.pathname,u)!=null||Dd(l.pathname,s)!=null}var Yr=rS();const SS=tf(Yr);function gv(e){return b.forwardRef(e)}var $S=(e,t,n=!0)=>{if(!t)return[e,{}];const a=t.reduce((l,s)=>s in e?{...l,[s]:e[s]}:l,{});return n?[Object.keys(e).filter(s=>!t.includes(s)).reduce((s,u)=>({...s,[u]:e[u]}),{}),a]:[e,a]},Vc=["small","medium","large"],Ox={theme:{opacity:["disabled"],spacing:["divider"],borderWidth:Vc,borderRadius:Vc},classGroups:{shadow:[{shadow:Vc}],"font-size":[{text:["tiny",...Vc]}],"bg-image":["bg-stripe-gradient-default","bg-stripe-gradient-primary","bg-stripe-gradient-secondary","bg-stripe-gradient-success","bg-stripe-gradient-warning","bg-stripe-gradient-danger"]}},Bx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,er=e=>!e||typeof e!="object"||Object.keys(e).length===0,G8=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function ES(e,t){e.forEach(function(n){Array.isArray(n)?ES(n,t):t.push(n)})}function CS(e){let t=[];return ES(e,t),t}var TS=(...e)=>CS(e).filter(Boolean),DS=(e,t)=>{let n={},a=Object.keys(e),l=Object.keys(t);for(let s of a)if(l.includes(s)){let u=e[s],d=t[s];typeof u=="object"&&typeof d=="object"?n[s]=DS(u,d):Array.isArray(u)||Array.isArray(d)?n[s]=TS(d,u):n[s]=d+" "+u}else n[s]=e[s];for(let s of l)a.includes(s)||(n[s]=t[s]);return n},kx=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function q8(){for(var e=0,t,n,a="";e<arguments.length;)(t=arguments[e++])&&(n=AS(t))&&(a&&(a+=" "),a+=n);return a}function AS(e){if(typeof e=="string")return e;for(var t,n="",a=0;a<e.length;a++)e[a]&&(t=AS(e[a]))&&(n&&(n+=" "),n+=t);return n}var vv="-";function W8(e){var t=X8(e),n=e.conflictingClassGroups,a=e.conflictingClassGroupModifiers,l=a===void 0?{}:a;function s(d){var f=d.split(vv);return f[0]===""&&f.length!==1&&f.shift(),MS(f,t)||Y8(d)}function u(d,f){var h=n[d]||[];return f&&l[d]?[].concat(h,l[d]):h}return{getClassGroupId:s,getConflictingClassGroupIds:u}}function MS(e,t){var u;if(e.length===0)return t.classGroupId;var n=e[0],a=t.nextPart.get(n),l=a?MS(e.slice(1),a):void 0;if(l)return l;if(t.validators.length!==0){var s=e.join(vv);return(u=t.validators.find(function(d){var f=d.validator;return f(s)}))==null?void 0:u.classGroupId}}var Lx=/^\[(.+)\]$/;function Y8(e){if(Lx.test(e)){var t=Lx.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function X8(e){var t=e.theme,n=e.prefix,a={nextPart:new Map,validators:[]},l=Q8(Object.entries(e.classGroups),n);return l.forEach(function(s){var u=s[0],d=s[1];eg(d,a,u,t)}),a}function eg(e,t,n,a){e.forEach(function(l){if(typeof l=="string"){var s=l===""?t:Nx(t,l);s.classGroupId=n;return}if(typeof l=="function"){if(Z8(l)){eg(l(a),t,n,a);return}t.validators.push({validator:l,classGroupId:n});return}Object.entries(l).forEach(function(u){var d=u[0],f=u[1];eg(f,Nx(t,d),n,a)})})}function Nx(e,t){var n=e;return t.split(vv).forEach(function(a){n.nextPart.has(a)||n.nextPart.set(a,{nextPart:new Map,validators:[]}),n=n.nextPart.get(a)}),n}function Z8(e){return e.isThemeGetter}function Q8(e,t){return t?e.map(function(n){var a=n[0],l=n[1],s=l.map(function(u){return typeof u=="string"?t+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(function(d){var f=d[0],h=d[1];return[t+f,h]})):u});return[a,s]}):e}function J8(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,a=new Map;function l(s,u){n.set(s,u),t++,t>e&&(t=0,a=n,n=new Map)}return{get:function(u){var d=n.get(u);if(d!==void 0)return d;if((d=a.get(u))!==void 0)return l(u,d),d},set:function(u,d){n.has(u)?n.set(u,d):l(u,d)}}}var RS="!";function eM(e){var t=e.separator||":",n=t.length===1,a=t[0],l=t.length;return function(u){for(var d=[],f=0,h=0,p,v=0;v<u.length;v++){var y=u[v];if(f===0){if(y===a&&(n||u.slice(v,v+l)===t)){d.push(u.slice(h,v)),h=v+l;continue}if(y==="/"){p=v;continue}}y==="["?f++:y==="]"&&f--}var x=d.length===0?u:u.substring(h),$=x.startsWith(RS),w=$?x.substring(1):x,E=p&&p>h?p-h:void 0;return{modifiers:d,hasImportantModifier:$,baseClassName:w,maybePostfixModifierPosition:E}}}function tM(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(a){var l=a[0]==="[";l?(t.push.apply(t,n.sort().concat([a])),n=[]):n.push(a)}),t.push.apply(t,n.sort()),t}function nM(e){return{cache:J8(e.cacheSize),splitModifiers:eM(e),...W8(e)}}var rM=/\s+/;function aM(e,t){var n=t.splitModifiers,a=t.getClassGroupId,l=t.getConflictingClassGroupIds,s=new Set;return e.trim().split(rM).map(function(u){var d=n(u),f=d.modifiers,h=d.hasImportantModifier,p=d.baseClassName,v=d.maybePostfixModifierPosition,y=a(v?p.substring(0,v):p),x=!!v;if(!y){if(!v)return{isTailwindClass:!1,originalClassName:u};if(y=a(p),!y)return{isTailwindClass:!1,originalClassName:u};x=!1}var $=tM(f).join(":"),w=h?$+RS:$;return{isTailwindClass:!0,modifierId:w,classGroupId:y,originalClassName:u,hasPostfixModifier:x}}).reverse().filter(function(u){if(!u.isTailwindClass)return!0;var d=u.modifierId,f=u.classGroupId,h=u.hasPostfixModifier,p=d+f;return s.has(p)?!1:(s.add(p),l(f,h).forEach(function(v){return s.add(d+v)}),!0)}).reverse().map(function(u){return u.originalClassName}).join(" ")}function tg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a,l,s,u=d;function d(h){var p=t[0],v=t.slice(1),y=v.reduce(function(x,$){return $(x)},p());return a=nM(y),l=a.cache.get,s=a.cache.set,u=f,f(h)}function f(h){var p=l(h);if(p)return p;var v=aM(h,a);return s(h,v),v}return function(){return u(q8.apply(null,arguments))}}function at(e){var t=function(a){return a[e]||[]};return t.isThemeGetter=!0,t}var PS=/^\[(?:([a-z-]+):)?(.+)\]$/i,iM=/^\d+\/\d+$/,lM=new Set(["px","full","screen"]),oM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sM=/\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$/,uM=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Or(e){return el(e)||lM.has(e)||iM.test(e)||ng(e)}function ng(e){return pl(e,"length",mM)}function cM(e){return pl(e,"size",zS)}function dM(e){return pl(e,"position",zS)}function fM(e){return pl(e,"url",gM)}function Ic(e){return pl(e,"number",el)}function el(e){return!Number.isNaN(Number(e))}function hM(e){return e.endsWith("%")&&el(e.slice(0,-1))}function Ms(e){return _x(e)||pl(e,"number",_x)}function Be(e){return PS.test(e)}function Rs(){return!0}function pi(e){return oM.test(e)}function pM(e){return pl(e,"",vM)}function pl(e,t,n){var a=PS.exec(e);return a?a[1]?a[1]===t:n(a[2]):!1}function mM(e){return sM.test(e)}function zS(){return!1}function gM(e){return e.startsWith("url(")}function _x(e){return Number.isInteger(Number(e))}function vM(e){return uM.test(e)}function rg(){var e=at("colors"),t=at("spacing"),n=at("blur"),a=at("brightness"),l=at("borderColor"),s=at("borderRadius"),u=at("borderSpacing"),d=at("borderWidth"),f=at("contrast"),h=at("grayscale"),p=at("hueRotate"),v=at("invert"),y=at("gap"),x=at("gradientColorStops"),$=at("gradientColorStopPositions"),w=at("inset"),E=at("margin"),C=at("opacity"),M=at("padding"),T=at("saturate"),O=at("scale"),P=at("sepia"),k=at("skew"),G=at("space"),D=at("translate"),V=function(){return["auto","contain","none"]},j=function(){return["auto","hidden","clip","visible","scroll"]},z=function(){return["auto",Be,t]},I=function(){return[Be,t]},L=function(){return["",Or]},K=function(){return["auto",el,Be]},U=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},R=function(){return["solid","dashed","dotted","double","none"]},B=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},H=function(){return["start","end","center","between","around","evenly","stretch"]},te=function(){return["","0",Be]},W=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},_=function(){return[el,Ic]},Z=function(){return[el,Be]};return{cacheSize:500,theme:{colors:[Rs],spacing:[Or],blur:["none","",pi,Be],brightness:_(),borderColor:[e],borderRadius:["none","","full",pi,Be],borderSpacing:I(),borderWidth:L(),contrast:_(),grayscale:te(),hueRotate:Z(),invert:te(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[hM,ng],inset:z(),margin:z(),opacity:_(),padding:I(),saturate:_(),scale:_(),sepia:te(),skew:Z(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",Be]}],container:["container"],columns:[{columns:[pi]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(U(),[Be])}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ms]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Be]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",Ms]}],"grid-cols":[{"grid-cols":[Rs]}],"col-start-end":[{col:["auto",{span:["full",Ms]},Be]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[Rs]}],"row-start-end":[{row:["auto",{span:[Ms]},Be]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Be]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Be]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal"].concat(H())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(H(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(H(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"space-x":[{"space-x":[G]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[G]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Be,t]}],"min-w":[{"min-w":["min","max","fit",Be,Or]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[pi]},pi,Be]}],h:[{h:[Be,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Be,Or]}],"max-h":[{"max-h":[Be,t,"min","max","fit"]}],"font-size":[{text:["base",pi,ng]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ic]}],"font-family":[{font:[Rs]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Be]}],"line-clamp":[{"line-clamp":["none",el,Ic]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Be,Or]}],"list-image":[{"list-image":["none",Be]}],"list-style-type":[{list:["none","disc","decimal",Be]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(R(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Or]}],"underline-offset":[{"underline-offset":["auto",Be,Or]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(U(),[dM])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cM]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fM]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[$]}],"gradient-via-pos":[{via:[$]}],"gradient-to-pos":[{to:[$]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[].concat(R(),["hidden"])}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:R()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:[""].concat(R())}],"outline-offset":[{"outline-offset":[Be,Or]}],"outline-w":[{outline:[Or]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[Or]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",pi,pM]}],"shadow-color":[{shadow:[Rs]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":B()}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[a]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",pi,Be]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[v]}],saturate:[{saturate:[T]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Be]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",Be]}],delay:[{delay:Z()}],animate:[{animate:["none","spin","ping","pulse","bounce",Be]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[Ms,Be]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Be]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",Be]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Be]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Or,Ic]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"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"],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-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function bM(e,t){for(var n in t)OS(e,n,t[n]);return e}var yM=Object.prototype.hasOwnProperty,xM=new Set(["string","number","boolean"]);function OS(e,t,n){if(!yM.call(e,t)||xM.has(typeof n)||n===null){e[t]=n;return}if(Array.isArray(n)&&Array.isArray(e[t])){e[t]=e[t].concat(n);return}if(typeof n=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=n;return}for(var a in n)OS(e[t],a,n[a])}}function wM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return typeof e=="function"?tg.apply(void 0,[rg,e].concat(n)):tg.apply(void 0,[function(){return bM(rg(),e)}].concat(n))}var SM=tg(rg),$M={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},BS=e=>e||void 0,Js=(...e)=>BS(CS(e).filter(Boolean).join(" ")),Ip=null,Ad={},ag=!1,Ps=(...e)=>t=>t.twMerge?((!Ip||ag)&&(ag=!1,Ip=er(Ad)?SM:wM(Ad)),BS(Ip(Js(e)))):Js(e),Kx=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=Js(e[n],t[n]):e[n]=t[n];return e},EM=(e,t)=>{let{extend:n=null,slots:a={},variants:l={},compoundVariants:s=[],compoundSlots:u=[],defaultVariants:d={}}=e,f={...$M,...t},h=n!=null&&n.base?Js(n.base,e==null?void 0:e.base):e==null?void 0:e.base,p=n!=null&&n.variants&&!er(n.variants)?DS(l,n.variants):l,v=n!=null&&n.defaultVariants&&!er(n.defaultVariants)?{...n.defaultVariants,...d}:d;!er(f.twMergeConfig)&&!G8(f.twMergeConfig,Ad)&&(ag=!0,Ad=f.twMergeConfig);let y=er(n==null?void 0:n.slots),x=er(a)?{}:{base:Js(e==null?void 0:e.base,y&&(n==null?void 0:n.base)),...a},$=y?x:Kx({...n==null?void 0:n.slots},er(x)?{base:e==null?void 0:e.base}:x),w=C=>{if(er(p)&&er(a)&&y)return Ps(h,C==null?void 0:C.class,C==null?void 0:C.className)(f);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof s}`);if(u&&!Array.isArray(u))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof u}`);let M=(I,L,K=[],U)=>{let R=K;if(typeof L=="string")R=R.concat(kx(L).split(" ").map(B=>`${I}:${B}`));else if(Array.isArray(L))R=R.concat(L.reduce((B,H)=>B.concat(`${I}:${H}`),[]));else if(typeof L=="object"&&typeof U=="string"){for(let B in L)if(L.hasOwnProperty(B)&&B===U){let H=L[B];if(H&&typeof H=="string"){let te=kx(H);R[U]?R[U]=R[U].concat(te.split(" ").map(W=>`${I}:${W}`)):R[U]=te.split(" ").map(W=>`${I}:${W}`)}else Array.isArray(H)&&H.length>0&&(R[U]=H.reduce((te,W)=>te.concat(`${I}:${W}`),[]))}}return R},T=(I,L=p,K=null,U=null)=>{var R;let B=L[I];if(!B||er(B))return null;let H=(R=U==null?void 0:U[I])!=null?R:C==null?void 0:C[I];if(H===null)return null;let te=Bx(H),W=Array.isArray(f.responsiveVariants)&&f.responsiveVariants.length>0||f.responsiveVariants===!0,_=v==null?void 0:v[I],Z=[];if(typeof te=="object"&&W)for(let[se,de]of Object.entries(te)){let pe=B[de];if(se==="initial"){_=de;continue}Array.isArray(f.responsiveVariants)&&!f.responsiveVariants.includes(se)||(Z=M(se,pe,Z,K))}let ie=B[te]||B[Bx(_)];return typeof Z=="object"&&typeof K=="string"&&Z[K]?Kx(Z,ie):Z.length>0?(Z.push(ie),Z):ie},O=()=>p?Object.keys(p).map(I=>T(I,p)):null,P=(I,L)=>{if(!p||typeof p!="object")return null;let K=new Array;for(let U in p){let R=T(U,p,I,L),B=I==="base"&&typeof R=="string"?R:R&&R[I];B&&(K[K.length]=B)}return K},k={};for(let I in C)C[I]!==void 0&&(k[I]=C[I]);let G=(I,L)=>{var K;let U=typeof(C==null?void 0:C[I])=="object"?{[I]:(K=C[I])==null?void 0:K.initial}:{};return{...v,...k,...U,...L}},D=(I=[],L)=>{let K=[];for(let{class:U,className:R,...B}of I){let H=!0;for(let[te,W]of Object.entries(B)){let _=G(te,L);if(Array.isArray(W)){if(!W.includes(_[te])){H=!1;break}}else if(_[te]!==W){H=!1;break}}H&&(U&&K.push(U),R&&K.push(R))}return K},V=I=>{let L=D(s,I),K=D(n==null?void 0:n.compoundVariants,I);return TS(K,L)},j=I=>{let L=V(I);if(!Array.isArray(L))return L;let K={};for(let U of L)if(typeof U=="string"&&(K.base=Ps(K.base,U)(f)),typeof U=="object")for(let[R,B]of Object.entries(U))K[R]=Ps(K[R],B)(f);return K},z=I=>{if(u.length<1)return null;let L={};for(let{slots:K=[],class:U,className:R,...B}of u){if(!er(B)){let H=!0;for(let te of Object.keys(B)){let W=G(te,I)[te];if(W===void 0||(Array.isArray(B[te])?!B[te].includes(W):B[te]!==W)){H=!1;break}}if(!H)continue}for(let H of K)L[H]=L[H]||[],L[H].push([U,R])}return L};if(!er(a)||!y){let I={};if(typeof $=="object"&&!er($))for(let L of Object.keys($))I[L]=K=>{var U,R;return Ps($[L],P(L,K),((U=j(K))!=null?U:[])[L],((R=z(K))!=null?R:[])[L],K==null?void 0:K.class,K==null?void 0:K.className)(f)};return I}return Ps(h,O(),V(),C==null?void 0:C.class,C==null?void 0:C.className)(f)},E=()=>{if(!(!p||typeof p!="object"))return Object.keys(p)};return w.variantKeys=E(),w.extend=n,w.base=h,w.slots=$,w.variants=p,w.defaultVariants=v,w.compoundSlots=u,w.compoundVariants=s,w},ke=(e,t)=>{var n,a,l;return EM(e,{...t,twMerge:(n=void 0)!=null?n:!0,twMergeConfig:{theme:{...(a=void 0)==null?void 0:a.theme,...Ox.theme},classGroups:{...(l=void 0)==null?void 0:l.classGroups,...Ox.classGroups}}})},Vx=ke({base:"w-px h-px inline-block",variants:{isInline:{true:"inline-block",false:"block"}},defaultVariants:{isInline:!1}}),Ix=ke({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",circle1:["absolute","w-full","h-full","rounded-full","animate-spinner-ease-spin","border-2","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["absolute","w-full","h-full","rounded-full","opacity-75","animate-spinner-linear-spin","border-2","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"],label:"text-foreground dark:text-foreground-dark font-regular"},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current"},white:{circle1:"border-b-white",circle2:"border-b-white"},default:{circle1:"border-b-default",circle2:"border-b-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground"}}),rn=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],bv=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],CM=["outline-none","ring-2","ring-focus","ring-offset-2","ring-offset-background"],Fp=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],eo={default:["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]},kS=["[--cursor-hit-x:8px]","font-inherit","text-[100%]","leading-[1.15]","m-0","p-0","overflow-visible","box-border","absolute","top-0","start-[calc(var(--cursor-hit-x)*-1)]","w-[calc(100%+var(--cursor-hit-x)*2)]","h-full","opacity-[0.0001]","z-[1]","cursor-pointer","disabled:cursor-default"],AF=ke({slots:{base:"flex flex-col relative gap-4",wrapper:["p-4","z-0","flex","flex-col","relative","justify-between","gap-4","shadow-small","bg-content1","overflow-auto"],table:"min-w-full h-auto",thead:"[&>tr]:first:rounded-lg",tbody:"",tr:["group/tr","outline-none",...rn],th:["group/th","px-3","h-10","text-start","align-middle","bg-default-100","whitespace-nowrap","text-foreground-500","text-tiny","font-semibold","first:rounded-s-lg","last:rounded-e-lg","outline-none","data-[sortable=true]:cursor-pointer","data-[hover=true]:text-foreground-400",...rn],td:["py-2","px-3","relative","align-middle","whitespace-normal","text-small","font-normal","outline-none","[&>*]:z-1","[&>*]:relative",...rn,"before:content-['']","before:absolute","before:z-0","before:inset-0","before:opacity-0","data-[selected=true]:before:opacity-100","group-data-[disabled=true]/tr:text-foreground-300","group-data-[disabled=true]/tr:cursor-not-allowed"],tfoot:"",sortIcon:["ms-2","mb-px","opacity-0","text-inherit","inline-block","transition-transform-opacity","data-[visible=true]:opacity-100","group-data-[hover=true]/th:opacity-100","data-[direction=ascending]:rotate-180"],emptyWrapper:"text-foreground-400 align-middle text-center h-40",loadingWrapper:"absolute inset-0 flex items-center justify-center"},variants:{color:{default:{td:"before:bg-default/60 data-[selected=true]:text-default-foreground"},primary:{td:"before:bg-primary/20 data-[selected=true]:text-primary"},secondary:{td:"before:bg-secondary/20 data-[selected=true]:text-secondary"},success:{td:"before:bg-success/20 data-[selected=true]:text-success-600 dark:data-[selected=true]:text-success"},warning:{td:"before:bg-warning/20 data-[selected=true]:text-warning-600 dark:data-[selected=true]:text-warning"},danger:{td:"before:bg-danger/20 data-[selected=true]:text-danger dark:data-[selected=true]:text-danger-500"}},layout:{auto:{table:"table-auto"},fixed:{table:"table-fixed"}},radius:{none:{wrapper:"rounded-none"},sm:{wrapper:"rounded-small"},md:{wrapper:"rounded-medium"},lg:{wrapper:"rounded-large"}},shadow:{none:{wrapper:"shadow-none"},sm:{wrapper:"shadow-small"},md:{wrapper:"shadow-medium"},lg:{wrapper:"shadow-large"}},hideHeader:{true:{thead:"hidden"}},isStriped:{true:{td:["group-data-[odd=true]/tr:before:bg-default-100","group-data-[odd=true]/tr:before:opacity-100","group-data-[odd=true]/tr:before:-z-10"]}},isCompact:{true:{td:"py-1"},false:{}},isHeaderSticky:{true:{thead:"sticky top-0 z-20 [&>tr]:first:shadow-small"}},isSelectable:{true:{tr:"cursor-default",td:["group-aria-[selected=false]/tr:group-data-[hover=true]/tr:before:bg-default-100","group-aria-[selected=false]/tr:group-data-[hover=true]/tr:before:opacity-70"]}},isMultiSelectable:{true:{td:["group-data-[first=true]/tr:first:before:rounded-ts-lg","group-data-[first=true]/tr:last:before:rounded-te-lg","group-data-[middle=true]/tr:before:rounded-none","group-data-[last=true]/tr:first:before:rounded-bs-lg","group-data-[last=true]/tr:last:before:rounded-be-lg"]},false:{td:["first:before:rounded-s-lg","last:before:rounded-e-lg"]}},fullWidth:{true:{base:"w-full",wrapper:"w-full",table:"w-full"}},align:{start:{th:"text-start",td:"text-start"},center:{th:"text-center",td:"text-center"},end:{th:"text-end",td:"text-end"}}},defaultVariants:{layout:"auto",shadow:"sm",radius:"lg",color:"default",isCompact:!1,hideHeader:!1,isStriped:!1,fullWidth:!0,align:"start"},compoundVariants:[{isStriped:!0,color:"default",class:{td:"group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-default/60"}},{isStriped:!0,color:"primary",class:{td:"group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-primary/20"}},{isStriped:!0,color:"secondary",class:{td:"group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-secondary/20"}},{isStriped:!0,color:"success",class:{td:"group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-success/20"}},{isStriped:!0,color:"warning",class:{td:"group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-warning/20"}},{isStriped:!0,color:"danger",class:{td:"group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-danger/20"}}]}),TM={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},DM={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground"},AM={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger"},MM={default:"bg-default/40 text-default-700",primary:"bg-primary/20 text-primary-600",secondary:"bg-secondary/20 text-secondary-600",success:"bg-success/20 text-success-700 dark:text-success",warning:"bg-warning/20 text-warning-700 dark:text-warning",danger:"bg-danger/20 text-danger-600 dark:text-danger-500"},RM={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger"},PM={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger"},zM={default:"border-default text-default-foreground",primary:"border-primary text-primary",secondary:"border-secondary text-secondary",success:"border-success text-success",warning:"border-warning text-warning",danger:"border-danger text-danger"},ee={solid:TM,shadow:DM,bordered:AM,flat:MM,faded:RM,light:PM,ghost:zM},MF=ke({slots:{base:"inline-flex",tabList:["flex","p-1","h-fit","gap-2","items-center","flex-nowrap","overflow-x-scroll","scrollbar-hide","bg-default-100"],tab:["z-0","w-full","px-3","py-1","flex","group","relative","justify-center","items-center","outline-none","cursor-pointer","transition-opacity","tap-highlight-transparent","data-[disabled=true]:cursor-not-allowed","data-[disabled=true]:opacity-30","data-[hover-unselected=true]:opacity-disabled",...rn],tabContent:["relative","z-10","text-inherit","whitespace-nowrap","transition-colors","text-default-500","group-data-[selected=true]:text-foreground"],cursor:["absolute","z-0","bg-white"],panel:["py-3","px-1","outline-none","data-[inert=true]:hidden",...rn],wrapper:[]},variants:{variant:{solid:{cursor:"inset-0"},light:{tabList:"bg-transparent dark:bg-transparent",cursor:"inset-0"},underlined:{tabList:"bg-transparent dark:bg-transparent",cursor:"h-[2px] w-[80%] bottom-0 shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]"},bordered:{tabList:"bg-transparent dark:bg-transparent border-medium border-default-200 shadow-sm",cursor:"inset-0"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{tabList:"rounded-medium",tab:"h-7 text-tiny rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"h-8 text-small rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"h-9 text-medium rounded-medium",cursor:"rounded-medium"}},radius:{none:{tabList:"rounded-none",tab:"rounded-none",cursor:"rounded-none"},sm:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"rounded-medium",cursor:"rounded-medium"},full:{tabList:"rounded-full",tab:"rounded-full",cursor:"rounded-full"}},fullWidth:{true:{base:"w-full",tabList:"w-full"}},isDisabled:{true:{tabList:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{tab:"transition-none",tabContent:"transition-none"}},placement:{top:{},start:{tabList:"flex-col",panel:"py-0 px-3",wrapper:"flex"},end:{tabList:"flex-col",panel:"py-0 px-3",wrapper:"flex flex-row-reverse"},bottom:{wrapper:"flex flex-col-reverse"}}},defaultVariants:{color:"default",variant:"solid",size:"md",fullWidth:!1,isDisabled:!1},compoundVariants:[{variant:["solid","bordered","light"],color:"default",class:{cursor:["bg-background","dark:bg-default","shadow-small"],tabContent:"group-data-[selected=true]:text-default-foreground"}},{variant:["solid","bordered","light"],color:"primary",class:{cursor:ee.solid.primary,tabContent:"group-data-[selected=true]:text-primary-foreground"}},{variant:["solid","bordered","light"],color:"secondary",class:{cursor:ee.solid.secondary,tabContent:"group-data-[selected=true]:text-secondary-foreground"}},{variant:["solid","bordered","light"],color:"success",class:{cursor:ee.solid.success,tabContent:"group-data-[selected=true]:text-success-foreground"}},{variant:["solid","bordered","light"],color:"warning",class:{cursor:ee.solid.warning,tabContent:"group-data-[selected=true]:text-warning-foreground"}},{variant:["solid","bordered","light"],color:"danger",class:{cursor:ee.solid.danger,tabContent:"group-data-[selected=true]:text-danger-foreground"}},{variant:"underlined",color:"default",class:{cursor:"bg-foreground",tabContent:"group-data-[selected=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{cursor:"bg-primary",tabContent:"group-data-[selected=true]:text-primary"}},{variant:"underlined",color:"secondary",class:{cursor:"bg-secondary",tabContent:"group-data-[selected=true]:text-secondary"}},{variant:"underlined",color:"success",class:{cursor:"bg-success",tabContent:"group-data-[selected=true]:text-success"}},{variant:"underlined",color:"warning",class:{cursor:"bg-warning",tabContent:"group-data-[selected=true]:text-warning"}},{variant:"underlined",color:"danger",class:{cursor:"bg-danger",tabContent:"group-data-[selected=true]:text-danger"}},{disableAnimation:!0,variant:"underlined",class:{tab:["after:content-['']","after:absolute","after:bottom-0","after:h-[2px]","after:w-[80%]","after:opacity-0","after:shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","data-[selected=true]:after:opacity-100"]}},{disableAnimation:!0,color:"default",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"}},{disableAnimation:!0,color:"primary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"}},{disableAnimation:!0,color:"secondary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"}},{disableAnimation:!0,color:"success",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"}},{disableAnimation:!0,color:"warning",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"}},{disableAnimation:!0,color:"danger",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"}},{disableAnimation:!0,color:"default",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-foreground"}},{disableAnimation:!0,color:"primary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-primary"}},{disableAnimation:!0,color:"secondary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-secondary"}},{disableAnimation:!0,color:"success",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-success"}},{disableAnimation:!0,color:"warning",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-warning"}},{disableAnimation:!0,color:"danger",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-danger"}}],compoundSlots:[{variant:"underlined",slots:["tab","tabList","cursor"],class:["rounded-none"]}]}),RF=ke({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent select-none",wrapper:["px-1","relative","inline-flex","items-center","justify-start","flex-shrink-0","overflow-hidden","bg-default-200","rounded-full",...bv],thumb:["z-10","flex","items-center","justify-center","bg-white","shadow-small","rounded-full","origin-right","pointer-events-none"],hiddenInput:kS,startContent:"z-0 absolute start-1.5 text-current",endContent:"z-0 absolute end-1.5 text-default-600",thumbIcon:"text-black",label:"relative text-foreground select-none ms-2"},variants:{color:{default:{wrapper:["group-data-[selected=true]:bg-default-400","group-data-[selected=true]:text-default-foreground"]},primary:{wrapper:["group-data-[selected=true]:bg-primary","group-data-[selected=true]:text-primary-foreground"]},secondary:{wrapper:["group-data-[selected=true]:bg-secondary","group-data-[selected=true]:text-secondary-foreground"]},success:{wrapper:["group-data-[selected=true]:bg-success","group-data-[selected=true]:text-success-foreground"]},warning:{wrapper:["group-data-[selected=true]:bg-warning","group-data-[selected=true]:text-warning-foreground"]},danger:{wrapper:["group-data-[selected=true]:bg-danger","data-[selected=true]:text-danger-foreground"]}},size:{sm:{wrapper:"w-10 h-6",thumb:["w-4 h-4 text-tiny","group-data-[selected=true]:ms-4"],endContent:"text-tiny",startContent:"text-tiny",label:"text-small"},md:{wrapper:"w-12 h-7",thumb:["w-5 h-5 text-small","group-data-[selected=true]:ms-5"],endContent:"text-small",startContent:"text-small",label:"text-medium"},lg:{wrapper:"w-14 h-8",thumb:["w-6 h-6 text-medium","group-data-[selected=true]:ms-6"],endContent:"text-medium",startContent:"text-medium",label:"text-large"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{wrapper:"transition-none",thumb:"transition-none"},false:{wrapper:"transition-background",thumb:"transition-all",startContent:["opacity-0","scale-50","transition-transform-opacity","group-data-[selected=true]:scale-100","group-data-[selected=true]:opacity-100"],endContent:["opacity-100","transition-transform-opacity","group-data-[selected=true]:translate-x-3","group-data-[selected=true]:opacity-0"]}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1},compoundVariants:[{disableAnimation:!1,size:"sm",class:{thumb:["group-data-[pressed=true]:w-5","group-data-[selected]:group-data-[pressed]:ml-3"]}},{disableAnimation:!1,size:"md",class:{thumb:["group-data-[pressed=true]:w-6","group-data-[selected]:group-data-[pressed]:ml-4"]}},{disableAnimation:!1,size:"lg",class:{thumb:["group-data-[pressed=true]:w-7","group-data-[selected]:group-data-[pressed]:ml-5"]}}]}),PF=ke({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...rn],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:ee.solid.foreground},primary:{base:"before:bg-primary",content:ee.solid.primary},secondary:{base:"before:bg-secondary",content:ee.solid.secondary},success:{base:"before:bg-success",content:ee.solid.success},warning:{base:"before:bg-warning",content:ee.solid.warning},danger:{base:"before:bg-danger",content:ee.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{none:{content:"shadow-none"},sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),OM=["data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],BM=["data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],zF=ke({base:[],variants:{orientation:{vertical:["overflow-y-auto",...OM],horizontal:["overflow-x-auto",...BM]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),OF=ke({slots:{base:["group inline-flex flex-col relative"],label:["block","absolute","z-10","origin-top-left","rtl:origin-top-right","subpixel-antialiased","text-small","text-foreground-500","pointer-events-none"],mainWrapper:"w-full flex flex-col",trigger:"relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",innerWrapper:"inline-flex h-full w-[calc(100%_-_theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",selectorIcon:"absolute end-3 w-4 h-4",spinner:"absolute end-3",value:["text-foreground-500","font-normal","w-full","text-start"],listboxWrapper:"scroll-py-6 w-full",listbox:"",popoverContent:"w-full p-1 overflow-hidden",helperWrapper:"p-1 flex relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{trigger:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-200"]},faded:{trigger:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 data-[focus=true]:border-default-400 data-[open=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{trigger:["border-medium","border-default-200","data-[hover=true]:border-default-400","data-[open=true]:border-default-foreground","data-[focus=true]:border-default-foreground"],value:"group-data-[has-value=true]:text-default-foreground"},underlined:{trigger:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","data-[open=true]:after:w-full","data-[focus=true]:after:w-full"],value:"group-data-[has-value=true]:text-default-foreground"}},color:{default:{},primary:{selectorIcon:"text-primary"},secondary:{selectorIcon:"text-secondary"},success:{selectorIcon:"text-success"},warning:{selectorIcon:"text-warning"},danger:{selectorIcon:"text-danger"}},size:{sm:{label:"text-tiny",trigger:"h-8 min-h-8 px-2 rounded-small",value:"text-small"},md:{trigger:"h-10 min-h-10 rounded-medium",value:"text-small"},lg:{trigger:"h-12 min-h-12 rounded-large",value:"text-medium"}},radius:{none:{trigger:"rounded-none"},sm:{trigger:"rounded-small"},md:{trigger:"rounded-medium"},lg:{trigger:"rounded-large"},full:{trigger:"rounded-full"}},labelPlacement:{outside:{base:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap items-start",label:"relative pe-2 text-foreground"},inside:{label:"text-tiny cursor-pointer",trigger:"flex-col items-start justify-center gap-0"}},fullWidth:{true:{base:"w-full"},false:{base:"min-w-40"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",trigger:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",value:"!text-danger",selectorIcon:"text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",trigger:"!h-auto"},false:{value:"truncate"}},disableAnimation:{true:{trigger:"after:transition-none",base:"transition-none",label:"transition-none",selectorIcon:"transition-none"},false:{base:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","origin-top-left","rtl:origin-top-right","!duration-200","!ease-out","transition-[transform,color,left,opacity]","motion-reduce:transition-none"],selectorIcon:"transition-transform duration-150 ease motion-reduce:transition-none"}},disableSelectorIconRotation:{true:{},false:{selectorIcon:"data-[open=true]:rotate-180"}}},defaultVariants:{variant:"flat",color:"default",size:"md",labelPlacement:"inside",fullWidth:!0,isDisabled:!1,isMultiline:!1,disableSelectorIconRotation:!1},compoundVariants:[{variant:"flat",color:"default",class:{value:"group-data-[has-value=true]:text-default-foreground",trigger:["bg-default-100","data-[hover=true]:bg-default-200"]}},{variant:"flat",color:"primary",class:{trigger:["bg-primary-100","text-primary","data-[hover=true]:bg-primary-50","group-data-[focus=true]:bg-primary-50"],value:"text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{trigger:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50"],value:"text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{trigger:["bg-success-100","text-success-600","dark:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],value:"text-success-600 dark:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{trigger:["bg-warning-100","text-warning-600","dark:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],value:"text-warning-600 dark:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{trigger:["bg-danger-100","text-danger","dark:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],value:"text-danger dark:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{trigger:"data-[hover=true]:border-primary data-[focus=true]:border-primary data-[open=true]:border-primary",label:"text-primary"}},{variant:"faded",color:"secondary",class:{trigger:"data-[hover=true]:border-secondary data-[focus=true]:border-secondary data-[open=true]:border-secondary",label:"text-secondary"}},{variant:"faded",color:"success",class:{trigger:"data-[hover=true]:border-success data-[focus=true]:border-success data-[open=true]:border-success",label:"text-success"}},{variant:"faded",color:"warning",class:{trigger:"data-[hover=true]:border-warning data-[focus=true]:border-warning data-[open=true]:border-warning",label:"text-warning"}},{variant:"faded",color:"danger",class:{trigger:"data-[hover=true]:border-danger data-[focus=true]:border-danger data-[open=true]:border-danger",label:"text-danger"}},{variant:"underlined",color:"default",class:{value:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{trigger:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{trigger:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{trigger:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{trigger:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{trigger:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{trigger:["data-[open=true]:border-primary","data-[focus=true]:border-primary"],label:"text-primary"}},{variant:"bordered",color:"secondary",class:{trigger:["data-[open=true]:border-secondary","data-[focus=true]:border-secondary"],label:"text-secondary"}},{variant:"bordered",color:"success",class:{trigger:["data-[open=true]:border-success","data-[focus=true]:border-success"],label:"text-success"}},{variant:"bordered",color:"warning",class:{trigger:["data-[open=true]:border-warning","data-[focus=true]:border-warning"],label:"text-warning"}},{variant:"bordered",color:"danger",class:{trigger:["data-[open=true]:border-danger","data-[focus=true]:border-danger"],label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled=true]:text-foreground"}},{radius:"full",size:["sm"],class:{trigger:"px-3"}},{radius:"full",size:"md",class:{trigger:"px-4"}},{radius:"full",size:"lg",class:{trigger:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{trigger:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{trigger:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{trigger:[...rn]}},{isInvalid:!0,variant:"flat",class:{trigger:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{trigger:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{trigger:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{trigger:"h-12 min-h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{trigger:"h-14 min-h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-medium",trigger:"h-16 min-h-16 py-2.5 gap-0"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled=true]:start-0"]}},{labelPlacement:["inside"],class:{label:"group-data-[filled=true]:scale-85"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-5"}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"md",class:{label:["start-3","text-small","group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"lg",class:{label:["start-3","text-medium","group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}}]}),BF=ke({slots:{base:"inline-flex items-center justify-between h-fit rounded-large gap-2",pre:"bg-transparent text-inherit font-mono font-normal inline-block whitespace-nowrap",content:"flex flex-col",symbol:"select-none",copyButton:["group","relative","z-10","text-large","text-inherit","data-[hover=true]:bg-transparent"],copyIcon:["absolute text-inherit opacity-100 scale-100 group-data-[copied=true]:opacity-0 group-data-[copied=true]:scale-50"],checkIcon:["absolute text-inherit opacity-0 scale-50 group-data-[copied=true]:opacity-100 group-data-[copied=true]:scale-100"]},variants:{variant:{flat:"",solid:"",bordered:"border-medium bg-transparent",shadow:""},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{base:"px-1.5 py-0.5 text-tiny rounded-small"},md:{base:"px-3 py-1.5 text-small rounded-medium"},lg:{base:"px-4 py-2 text-medium rounded-large"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},fullWidth:{true:{base:"w-full"}},disableAnimation:{true:{},false:{copyIcon:"transition-transform-opacity",checkIcon:"transition-transform-opacity"}}},defaultVariants:{color:"default",variant:"flat",size:"md",fullWidth:!1},compoundVariants:[{variant:["solid","shadow"],color:"default",class:{copyButton:"data-[focus-visible]:outline-default-foreground"}},{variant:["solid","shadow"],color:"primary",class:{copyButton:"data-[focus-visible]:outline-primary-foreground"}},{variant:["solid","shadow"],color:"secondary",class:{copyButton:"data-[focus-visible]:outline-secondary-foreground"}},{variant:["solid","shadow"],color:"success",class:{copyButton:"data-[focus-visible]:outline-success-foreground"}},{variant:["solid","shadow"],color:"warning",class:{copyButton:"data-[focus-visible]:outline-warning-foreground"}},{variant:["solid","shadow"],color:"danger",class:{copyButton:"data-[focus-visible]:outline-danger-foreground"}},{variant:"flat",color:"default",class:{base:ee.flat.default}},{variant:"flat",color:"primary",class:{base:ee.flat.primary}},{variant:"flat",color:"secondary",class:{base:ee.flat.secondary}},{variant:"flat",color:"success",class:{base:ee.flat.success}},{variant:"flat",color:"warning",class:{base:ee.flat.warning}},{variant:"flat",color:"danger",class:{base:ee.flat.danger}},{variant:"solid",color:"default",class:{base:ee.solid.default}},{variant:"solid",color:"primary",class:{base:ee.solid.primary}},{variant:"solid",color:"secondary",class:{base:ee.solid.secondary}},{variant:"solid",color:"success",class:{base:ee.solid.success}},{variant:"solid",color:"warning",class:{base:ee.solid.warning}},{variant:"solid",color:"danger",class:{base:ee.solid.danger}},{variant:"shadow",color:"default",class:{base:ee.shadow.default}},{variant:"shadow",color:"primary",class:{base:ee.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:ee.shadow.secondary}},{variant:"shadow",color:"success",class:{base:ee.shadow.success}},{variant:"shadow",color:"warning",class:{base:ee.shadow.warning}},{variant:"shadow",color:"danger",class:{base:ee.shadow.danger}},{variant:"bordered",color:"default",class:{base:ee.bordered.default}},{variant:"bordered",color:"primary",class:{base:ee.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:ee.bordered.secondary}},{variant:"bordered",color:"success",class:{base:ee.bordered.success}},{variant:"bordered",color:"warning",class:{base:ee.bordered.warning}},{variant:"bordered",color:"danger",class:{base:ee.bordered.danger}}]}),kF=ke({slots:{base:"group flex flex-col data-[hidden=true]:hidden",label:["absolute","z-10","pointer-events-none","origin-top-left","flex-shrink-0","rtl:origin-top-right","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5","file:cursor-pointer file:bg-transparent file:border-0","autofill:bg-transparent bg-clip-text"],clearButton:["p-2","-m-2","z-10","absolute","end-3","start-auto","pointer-events-none","appearance-none","outline-none","select-none","opacity-0","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...rn],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 focus-within:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-8 min-h-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-10 min-h-10 rounded-medium",input:"text-small",clearButton:"text-large"},lg:{label:"text-medium",inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pe-2 ps-2 pointer-events-auto"},inside:{label:"cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"},false:{}},isClearable:{true:{input:"peer pe-6 input-search-cancel-button-none",clearButton:["peer-data-[filled=true]:pointer-events-auto","peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block","peer-data-[filled=true]:scale-100"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide",clearButton:"absolute top-2 right-2 rtl:right-auto rtl:left-2 z-10"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity]"],clearButton:["scale-90","ease-out","duration-150","transition-[opacity,transform]","motion-reduce:transition-none","motion-reduce:scale-100"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,labelPlacement:"inside",isDisabled:!1,isMultiline:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-100","data-[hover=true]:bg-primary-50","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-100","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-100","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-100","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...bv]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["!bg-danger-50","data-[hover=true]:!bg-danger-100","group-data-[focus=true]:!bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:!border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:!bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:"outside",isMultiline:!1,class:{base:"relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:start-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["start-3","end-auto","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["start-3","end-auto","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}},{isClearable:!0,isMultiline:!0,class:{clearButton:["group-data-[has-value=true]:opacity-70 group-data-[has-value=true]:block","group-data-[has-value=true]:scale-100","group-data-[has-value=true]:pointer-events-auto"]}}]}),LF=ke({base:["relative inline-flex items-center outline-none tap-highlight-transparent",...rn],variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",danger:"text-danger"},underline:{none:"no-underline",hover:"hover:underline",always:"underline",active:"active:underline",focus:"focus:underline"},isBlock:{true:["px-2","py-1","hover:after:opacity-100","after:content-['']","after:inset-0","after:opacity-0","after:w-full","after:h-full","after:rounded-xl","after:transition-background","after:absolute"],false:"hover:opacity-80 active:opacity-disabled transition-opacity"},isDisabled:{true:"opacity-disabled cursor-default pointer-events-none"},disableAnimation:{true:"after:transition-none transition-none"}},compoundVariants:[{isBlock:!0,color:"foreground",class:"hover:after:bg-foreground/10"},{isBlock:!0,color:"primary",class:"hover:after:bg-primary/20"},{isBlock:!0,color:"secondary",class:"hover:after:bg-secondary/20"},{isBlock:!0,color:"success",class:"hover:after:bg-success/20"},{isBlock:!0,color:"warning",class:"hover:after:bg-warning/20"},{isBlock:!0,color:"danger",class:"hover:after:bg-danger/20"},{underline:["hover","always","active","focus"],class:"underline-offset-4"}],defaultVariants:{color:"primary",size:"md",isBlock:!1,underline:"none",isDisabled:!1}}),NF="flex mx-1 text-current self-center",_F=ke({slots:{base:"w-full relative flex flex-col gap-1 p-1 overflow-clip",list:"w-full flex flex-col gap-0.5 outline-none",emptyContent:["h-10","px-2","py-1.5","w-full","h-full","text-foreground-400","text-start"]}}),KF=ke({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","subpixel-antialiased","outline-none","cursor-pointer","tap-highlight-transparent",...rn,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","flex-shrink-0"],shortcut:["px-1","py-0.5","rounded","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:["border-small border-transparent hover:border-default data-[hover=true]:bg-default-100","data-[selectable=true]:focus:border-default data-[selectable=true]:focus:bg-default-100"]},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},showDivider:{true:{base:["mb-1.5","after:content-['']","after:absolute","after:-bottom-1","after:left-0","after:right-0","after:h-divider","after:bg-divider"]},false:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{base:"data-[hover=true]:transition-colors"}},hasTitleTextChild:{true:{title:"truncate"}},hasDescriptionTextChild:{true:{description:"truncate"}}},defaultVariants:{variant:"solid",color:"default",showDivider:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:["data-[hover=true]:bg-default","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"solid",color:"primary",class:{base:["data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"solid",color:"secondary",class:{base:["data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"solid",color:"success",class:{base:["data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"solid",color:"warning",class:{base:["data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"solid",color:"danger",class:{base:["data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"shadow",color:"default",class:{base:["data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:shadow-default/50 data-[selectable=true]:focus:bg-default data-[selectable=true]:focus:text-default-foreground"]}},{variant:"shadow",color:"primary",class:{base:["data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:shadow-primary/30 data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"shadow",color:"secondary",class:{base:["data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:shadow-secondary/30 data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"shadow",color:"success",class:{base:["data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:shadow-success/30 data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"shadow",color:"warning",class:{base:["data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:shadow-warning/30 data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"shadow",color:"danger",class:{base:["data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:shadow-danger/30 data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"bordered",color:"default",class:{base:["data-[hover=true]:border-default","data-[selectable=true]:focus:border-default"]}},{variant:"bordered",color:"primary",class:{base:["data-[hover=true]:border-primary data-[hover=true]:text-primary","data-[selectable=true]:focus:border-primary data-[selectable=true]:focus:text-primary"]}},{variant:"bordered",color:"secondary",class:{base:["data-[hover=true]:border-secondary data-[hover=true]:text-secondary","data-[selectable=true]:focus:border-secondary data-[selectable=true]:focus:text-secondary"]}},{variant:"bordered",color:"success",class:{base:["data-[hover=true]:border-success data-[hover=true]:text-success","data-[selectable=true]:focus:border-success data-[selectable=true]:focus:text-success"]}},{variant:"bordered",color:"warning",class:{base:["data-[hover=true]:border-warning data-[hover=true]:text-warning","data-[selectable=true]:focus:border-warning data-[selectable=true]:focus:text-warning"]}},{variant:"bordered",color:"danger",class:{base:["data-[hover=true]:border-danger data-[hover=true]:text-danger","data-[selectable=true]:focus:border-danger data-[selectable=true]:focus:text-danger"]}},{variant:"flat",color:"default",class:{base:["data-[hover=true]:bg-default/40","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default/40","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"flat",color:"primary",class:{base:["data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary","data-[selectable=true]:focus:bg-primary/20 data-[selectable=true]:focus:text-primary"]}},{variant:"flat",color:"secondary",class:{base:["data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary","data-[selectable=true]:focus:bg-secondary/20 data-[selectable=true]:focus:text-secondary"]}},{variant:"flat",color:"success",class:{base:["data-[hover=true]:bg-success/20 data-[hover=true]:text-success","data-[selectable=true]:focus:bg-success/20 data-[selectable=true]:focus:text-success"]}},{variant:"flat",color:"warning",class:{base:["data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning","data-[selectable=true]:focus:bg-warning/20 data-[selectable=true]:focus:text-warning"]}},{variant:"flat",color:"danger",class:{base:["data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger","data-[selectable=true]:focus:bg-danger/20 data-[selectable=true]:focus:text-danger"]}},{variant:"faded",color:"default",class:{base:["data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"faded",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"faded",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"faded",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"faded",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"faded",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}},{variant:"light",color:"default",class:{base:["data-[hover=true]:text-default-500","data-[selectable=true]:focus:text-default-500"]}},{variant:"light",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"light",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"light",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"light",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"light",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}}]}),VF=ke({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}}),IF=ke({slots:{wrapper:["flex","w-screen","h-[100dvh]","fixed","inset-0","z-50","overflow-x-auto","justify-center","h-[--visual-viewport-height]"],base:["flex","flex-col","relative","bg-white","z-50","w-full","box-border","bg-content1","outline-none","mx-1","my-1","sm:mx-6","sm:my-16"],backdrop:"z-50",header:"flex py-4 px-6 flex-initial text-large font-semibold",body:"flex flex-1 flex-col gap-3 px-6 py-2",footer:"flex flex-row gap-2 px-6 py-4 justify-end",closeButton:["absolute","appearance-none","outline-none","select-none","top-1","end-1","p-2","text-foreground-500","rounded-full","hover:bg-default-100","active:bg-default-200","tap-highlight-transparent",...rn]},variants:{size:{xs:{base:"max-w-xs"},sm:{base:"max-w-sm"},md:{base:"max-w-md"},lg:{base:"max-w-lg"},xl:{base:"max-w-xl"},"2xl":{base:"max-w-2xl"},"3xl":{base:"max-w-3xl"},"4xl":{base:"max-w-4xl"},"5xl":{base:"max-w-5xl"},full:{base:"my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] min-h-[100dvh] !rounded-none"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},placement:{auto:{wrapper:"items-end sm:items-center"},center:{wrapper:"items-center sm:items-center"},top:{wrapper:"items-start sm:items-start"},"top-center":{wrapper:"items-start sm:items-center"},bottom:{wrapper:"items-end sm:items-end"},"bottom-center":{wrapper:"items-end sm:items-center"}},shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},backdrop:{transparent:{backdrop:"hidden"},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-md backdrop-saturate-150 bg-overlay/30"}},scrollBehavior:{normal:{base:"overflow-y-hidden"},inside:{base:"max-h-[calc(100%_-_8rem)]",body:"overflow-y-auto"},outside:{wrapper:"items-start sm:items-start overflow-y-auto",base:"my-16"}},disableAnimation:{false:{wrapper:["[--scale-enter:100%]","[--scale-exit:100%]","[--slide-enter:0px]","[--slide-exit:80px]","sm:[--scale-enter:100%]","sm:[--scale-exit:103%]","sm:[--slide-enter:0px]","sm:[--slide-exit:0px]"]}}},defaultVariants:{size:"md",radius:"lg",shadow:"sm",placement:"auto",backdrop:"opaque",scrollBehavior:"normal"},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"w-screen h-screen fixed inset-0"}}]}),FF=ke({slots:{base:["p-2.5","-m-2.5","overflow-x-scroll","scrollbar-hide"],wrapper:["flex","flex-nowrap","h-fit","max-w-fit","relative","gap-1","items-center","overflow-visible"],item:["tap-highlight-transparent","select-none","touch-none"],prev:"",next:"",cursor:["absolute","flex","overflow-visible","items-center","justify-center","origin-center","left-0","select-none","touch-none","pointer-events-none","z-20"],forwardIcon:["hidden","group-hover:block","group-data-[focus-visible=true]:block","data-[before=true]:rotate-180"],ellipsis:"group-hover:hidden group-data-[focus-visible=true]:hidden",chevronNext:"rotate-180"},variants:{variant:{bordered:{item:["border-medium","border-default","bg-transparent","data-[hover=true]:bg-default-100"]},light:{item:"bg-transparent"},flat:{},faded:{item:["border-medium","border-default"]}},color:{default:{cursor:ee.solid.default},primary:{cursor:ee.solid.primary},secondary:{cursor:ee.solid.secondary},success:{cursor:ee.solid.success},warning:{cursor:ee.solid.warning},danger:{cursor:ee.solid.danger}},size:{sm:{},md:{},lg:{}},radius:{none:{},sm:{},md:{},lg:{},full:{}},isCompact:{true:{wrapper:"gap-0 shadow-sm",item:["shadow-none","first-of-type:rounded-e-none","last-of-type:rounded-s-none","[&:not(:first-of-type):not(:last-of-type)]:rounded-none"],prev:"!rounded-e-none",next:"!rounded-s-none"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},showShadow:{true:{}},disableCursorAnimation:{true:{cursor:"hidden"}},disableAnimation:{true:{item:"transition-none",cursor:"transition-none"},false:{item:["data-[pressed=true]:scale-[0.97]","transition-transform-background"],cursor:["data-[moving=true]:transition-transform","!data-[moving=true]:duration-300","opacity-0","data-[moving]:opacity-100"]}}},defaultVariants:{variant:"flat",color:"primary",size:"md",radius:"md",isCompact:!1,isDisabled:!1,showShadow:!1,disableCursorAnimation:!1},compoundVariants:[{showShadow:!0,color:"default",class:{cursor:[ee.shadow.default,"shadow-md"]}},{showShadow:!0,color:"primary",class:{cursor:[ee.shadow.primary,"shadow-md"]}},{showShadow:!0,color:"secondary",class:{cursor:[ee.shadow.secondary,"shadow-md"]}},{showShadow:!0,color:"success",class:{cursor:[ee.shadow.success,"shadow-md"]}},{showShadow:!0,color:"warning",class:{cursor:[ee.shadow.warning,"shadow-md"]}},{showShadow:!0,color:"danger",class:{cursor:[ee.shadow.danger,"shadow-md"]}},{isCompact:!0,variant:"bordered",class:{item:"[&:not(:first-of-type)]:ms-[calc(theme(borderWidth.2)*-1)]"}},{disableCursorAnimation:!0,color:"default",class:{item:["data-[active=true]:bg-default-400","data-[active=true]:border-default-400","data-[active=true]:text-default-foreground"]}},{disableCursorAnimation:!0,color:"primary",class:{item:["data-[active=true]:bg-primary","data-[active=true]:border-primary","data-[active=true]:text-primary-foreground"]}},{disableCursorAnimation:!0,color:"secondary",class:{item:["data-[active=true]:bg-secondary","data-[active=true]:border-secondary","data-[active=true]:text-secondary-foreground"]}},{disableCursorAnimation:!0,color:"success",class:{item:["data-[active=true]:bg-success","data-[active=true]:border-success","data-[active=true]:text-success-foreground"]}},{disableCursorAnimation:!0,color:"warning",class:{item:["data-[active=true]:bg-warning","data-[active=true]:border-warning","data-[active=true]:text-warning-foreground"]}},{disableCursorAnimation:!0,color:"danger",class:{item:["data-[active=true]:bg-danger","data-[active=true]:border-danger","data-[active=true]:text-danger-foreground"]}},{disableCursorAnimation:!0,showShadow:!0,color:"default",class:{item:["data-[active=true]:shadow-md","data-[active=true]:shadow-default/50"]}},{disableCursorAnimation:!0,showShadow:!0,color:"primary",class:{item:["data-[active=true]:shadow-md","data-[active=true]:shadow-primary/40"]}},{disableCursorAnimation:!0,showShadow:!0,color:"secondary",class:{item:["data-[active=true]:shadow-md","data-[active=true]:shadow-secondary/40"]}},{disableCursorAnimation:!0,showShadow:!0,color:"success",class:{item:["data-[active=true]:shadow-md","data-[active=true]:shadow-success/40"]}},{disableCursorAnimation:!0,showShadow:!0,color:"warning",class:{item:["data-[active=true]:shadow-md","data-[active=true]:shadow-warning/40"]}},{disableCursorAnimation:!0,showShadow:!0,color:"danger",class:{item:["data-[active=true]:shadow-md","data-[active=true]:shadow-danger/40"]}}],compoundSlots:[{slots:["item","prev","next"],class:["flex","flex-wrap","truncate","box-border","outline-none","items-center","justify-center","text-default-foreground",...rn,"data-[disabled=true]:text-default-300","data-[disabled=true]:pointer-events-none"]},{slots:["item","prev","next"],variant:["flat","bordered","faded"],class:["shadow-sm"]},{slots:["item","prev","next"],variant:"flat",class:["bg-default-100","[&[data-hover=true]:not([data-active=true])]:bg-default-200","active:bg-default-300"]},{slots:["item","prev","next"],variant:"faded",class:["bg-default-50","[&[data-hover=true]:not([data-active=true])]:bg-default-100","active:bg-default-200"]},{slots:["item","prev","next"],variant:"light",class:["[&[data-hover=true]:not([data-active=true])]:bg-default-100","active:bg-default-200"]},{slots:["item","cursor","prev","next"],size:"sm",class:"min-w-8 w-8 h-8 text-tiny"},{slots:["item","cursor","prev","next"],size:"md",class:"min-w-9 w-9 h-9 text-small"},{slots:["item","cursor","prev","next"],size:"lg",class:"min-w-10 w-10 h-10 text-medium"},{slots:["wrapper","item","cursor","prev","next"],radius:"none",class:"rounded-none"},{slots:["wrapper","item","cursor","prev","next"],radius:"sm",class:"rounded-small"},{slots:["wrapper","item","cursor","prev","next"],radius:"md",class:"rounded-medium"},{slots:["wrapper","item","cursor","prev","next"],radius:"lg",class:"rounded-large"},{slots:["wrapper","item","cursor","prev","next"],radius:"full",class:"rounded-full"}]}),yv=ke({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),jF=ke({base:["w-full","p-1","min-w-[200px]"]});ke({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","outline-none","cursor-pointer","tap-highlight-transparent","data-[pressed=true]:opacity-70",...rn,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal truncate",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","flex-shrink-0"],shortcut:["px-1","py-0.5","rounded","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:"border-small border-transparent hover:border-default data-[hover=true]:bg-default-100"},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{}}},defaultVariants:{variant:"solid",color:"default"},compoundVariants:[{variant:"solid",color:"default",class:{base:"data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"}},{variant:"solid",color:"primary",class:{base:"data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"}},{variant:"solid",color:"secondary",class:{base:"data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"}},{variant:"solid",color:"success",class:{base:"data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"}},{variant:"solid",color:"warning",class:{base:"data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"}},{variant:"solid",color:"danger",class:{base:"data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"}},{variant:"shadow",color:"default",class:{base:"data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"}},{variant:"shadow",color:"primary",class:{base:"data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"}},{variant:"shadow",color:"secondary",class:{base:"data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"}},{variant:"shadow",color:"success",class:{base:"data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"}},{variant:"shadow",color:"warning",class:{base:"data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"}},{variant:"shadow",color:"danger",class:{base:"data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"}},{variant:"bordered",color:"default",class:{base:"data-[hover=true]:border-default"}},{variant:"bordered",color:"primary",class:{base:"data-[hover=true]:border-primary data-[hover=true]:text-primary"}},{variant:"bordered",color:"secondary",class:{base:"data-[hover=true]:border-secondary data-[hover=true]:text-secondary"}},{variant:"bordered",color:"success",class:{base:"data-[hover=true]:border-success data-[hover=true]:text-success"}},{variant:"bordered",color:"warning",class:{base:"data-[hover=true]:border-warning data-[hover=true]:text-warning"}},{variant:"bordered",color:"danger",class:{base:"data-[hover=true]:border-danger data-[hover=true]:text-danger"}},{variant:"flat",color:"default",class:{base:"data-[hover=true]:bg-default/40 data-[hover=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{base:"data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary"}},{variant:"flat",color:"secondary",class:{base:"data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary"}},{variant:"flat",color:"success",class:{base:"data-[hover=true]:bg-success/20 data-[hover=true]:text-success "}},{variant:"flat",color:"warning",class:{base:"data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning"}},{variant:"flat",color:"danger",class:{base:"data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger"}},{variant:"faded",color:"default",class:{base:"data-[hover=true]:text-default-foreground"}},{variant:"faded",color:"primary",class:{base:"data-[hover=true]:text-primary"}},{variant:"faded",color:"secondary",class:{base:"data-[hover=true]:text-secondary"}},{variant:"faded",color:"success",class:{base:"data-[hover=true]:text-success"}},{variant:"faded",color:"warning",class:{base:"data-[hover=true]:text-warning"}},{variant:"faded",color:"danger",class:{base:"data-[hover=true]:text-danger"}},{variant:"light",color:"default",class:{base:"data-[hover=true]:text-default-500"}},{variant:"light",color:"primary",class:{base:"data-[hover=true]:text-primary"}},{variant:"light",color:"secondary",class:{base:"data-[hover=true]:text-secondary"}},{variant:"light",color:"success",class:{base:"data-[hover=true]:text-success"}},{variant:"light",color:"warning",class:{base:"data-[hover=true]:text-warning"}},{variant:"light",color:"danger",class:{base:"data-[hover=true]:text-danger"}}]});ke({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}});ke({base:"w-full flex flex-col gap-0.5 p-1"});var UF=ke({base:"flex flex-col gap-2 items-start"}),HF=ke({slots:{wrapper:"relative shadow-black/5",zoomedWrapper:"relative overflow-hidden rounded-inherit",img:"relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100",blurredImg:["absolute","z-0","inset-0","w-full","h-full","object-cover","filter","blur-lg","scale-105","saturate-150","opacity-30","translate-y-1"]},variants:{radius:{none:{},sm:{},md:{},lg:{},full:{}},shadow:{none:{wrapper:"shadow-none",img:"shadow-none"},sm:{wrapper:"shadow-small",img:"shadow-small"},md:{wrapper:"shadow-medium",img:"shadow-medium"},lg:{wrapper:"shadow-large",img:"shadow-large"}},isZoomed:{true:{img:["object-cover","transform","hover:scale-125"]}},showSkeleton:{true:{wrapper:["group","relative","overflow-hidden","bg-content3 dark:bg-content2"],img:"opacity-0"}},disableAnimation:{true:{img:"transition-none"},false:{img:"transition-transform-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{radius:"lg",shadow:"none",isZoomed:!1,isBlurred:!1,showSkeleton:!1},compoundVariants:[{showSkeleton:!0,disableAnimation:!1,class:{wrapper:["before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-[shimmer_2s_infinite]","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2"]}}],compoundSlots:[{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"none",class:"rounded-none"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"full",class:"rounded-full"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"sm",class:"rounded-small"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"md",class:"rounded-md"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"lg",class:"rounded-large"}]}),GF=ke({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","data-[pressed=true]:scale-[0.97]",...rn],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",md:"px-4 min-w-20 h-10 text-small gap-2 rounded-medium",lg:"px-6 min-w-24 h-12 text-medium gap-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-0 !gap-0",false:"[&>svg]:max-w-[theme(spacing.8)]"},disableAnimation:{true:"!transition-none data-[pressed=true]:scale-100",false:"transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1},compoundVariants:[{variant:"solid",color:"default",class:ee.solid.default},{variant:"solid",color:"primary",class:ee.solid.primary},{variant:"solid",color:"secondary",class:ee.solid.secondary},{variant:"solid",color:"success",class:ee.solid.success},{variant:"solid",color:"warning",class:ee.solid.warning},{variant:"solid",color:"danger",class:ee.solid.danger},{variant:"shadow",color:"default",class:ee.shadow.default},{variant:"shadow",color:"primary",class:ee.shadow.primary},{variant:"shadow",color:"secondary",class:ee.shadow.secondary},{variant:"shadow",color:"success",class:ee.shadow.success},{variant:"shadow",color:"warning",class:ee.shadow.warning},{variant:"shadow",color:"danger",class:ee.shadow.danger},{variant:"bordered",color:"default",class:ee.bordered.default},{variant:"bordered",color:"primary",class:ee.bordered.primary},{variant:"bordered",color:"secondary",class:ee.bordered.secondary},{variant:"bordered",color:"success",class:ee.bordered.success},{variant:"bordered",color:"warning",class:ee.bordered.warning},{variant:"bordered",color:"danger",class:ee.bordered.danger},{variant:"flat",color:"default",class:ee.flat.default},{variant:"flat",color:"primary",class:ee.flat.primary},{variant:"flat",color:"secondary",class:ee.flat.secondary},{variant:"flat",color:"success",class:ee.flat.success},{variant:"flat",color:"warning",class:ee.flat.warning},{variant:"flat",color:"danger",class:ee.flat.danger},{variant:"faded",color:"default",class:ee.faded.default},{variant:"faded",color:"primary",class:ee.faded.primary},{variant:"faded",color:"secondary",class:ee.faded.secondary},{variant:"faded",color:"success",class:ee.faded.success},{variant:"faded",color:"warning",class:ee.faded.warning},{variant:"faded",color:"danger",class:ee.faded.danger},{variant:"light",color:"default",class:[ee.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[ee.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[ee.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[ee.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[ee.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[ee.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[ee.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[ee.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[ee.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[ee.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[ee.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[ee.ghost.danger,"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"]},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:eo.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:eo.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:eo.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:eo.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:eo.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:eo.danger},{isIconOnly:!0,size:"sm",class:"min-w-8 w-8 h-8"},{isIconOnly:!0,size:"md",class:"min-w-10 w-10 h-10"},{isIconOnly:!0,size:"lg",class:"min-w-12 w-12 h-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]}),qF=ke({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}}),WF=ke({slots:{base:["flex","flex-col","relative","overflow-hidden","h-auto","outline-none","text-foreground","box-border","bg-content1",...rn],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-3","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}},isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,isFooterBlurred:!1}}),YF=ke({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...bv],hiddenInput:kS,icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 me-2","rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 me-2","rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 me-2","rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"]},md:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1}});ke({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}});var XF=ke({slots:{base:["relative","max-w-fit","min-w-min","inline-flex","items-center","justify-between","box-border","whitespace-nowrap"],content:"flex-1 text-inherit font-normal",dot:["w-2","h-2","ml-1","rounded-full"],avatar:"flex-shrink-0",closeButton:["z-10","appearance-none","outline-none","select-none","transition-opacity","opacity-70","hover:opacity-100","cursor-pointer","active:opacity-disabled","tap-highlight-transparent"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-medium"},shadow:{},dot:{base:"border-medium border-default text-foreground bg-transparent"}},color:{default:{dot:"bg-default-400"},primary:{dot:"bg-primary"},secondary:{dot:"bg-secondary"},success:{dot:"bg-success"},warning:{dot:"bg-warning"},danger:{dot:"bg-danger"}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"text-medium",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"text-large",avatar:"w-5 h-5"},lg:{base:"px-2 h-8 text-medium",content:"px-2",closeButton:"text-xl",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isOneChar:{true:{},false:{}},isCloseable:{true:{},false:{}},hasStartContent:{true:{}},hasEndContent:{true:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isCloseButtonFocusVisible:{true:{closeButton:[...CM,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:ee.solid.default}},{variant:"solid",color:"primary",class:{base:ee.solid.primary}},{variant:"solid",color:"secondary",class:{base:ee.solid.secondary}},{variant:"solid",color:"success",class:{base:ee.solid.success}},{variant:"solid",color:"warning",class:{base:ee.solid.warning}},{variant:"solid",color:"danger",class:{base:ee.solid.danger}},{variant:"shadow",color:"default",class:{base:ee.shadow.default}},{variant:"shadow",color:"primary",class:{base:ee.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:ee.shadow.secondary}},{variant:"shadow",color:"success",class:{base:ee.shadow.success}},{variant:"shadow",color:"warning",class:{base:ee.shadow.warning}},{variant:"shadow",color:"danger",class:{base:ee.shadow.danger}},{variant:"bordered",color:"default",class:{base:ee.bordered.default}},{variant:"bordered",color:"primary",class:{base:ee.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:ee.bordered.secondary}},{variant:"bordered",color:"success",class:{base:ee.bordered.success}},{variant:"bordered",color:"warning",class:{base:ee.bordered.warning}},{variant:"bordered",color:"danger",class:{base:ee.bordered.danger}},{variant:"flat",color:"default",class:{base:ee.flat.default}},{variant:"flat",color:"primary",class:{base:ee.flat.primary}},{variant:"flat",color:"secondary",class:{base:ee.flat.secondary}},{variant:"flat",color:"success",class:{base:ee.flat.success}},{variant:"flat",color:"warning",class:{base:ee.flat.warning}},{variant:"flat",color:"danger",class:{base:ee.flat.danger}},{variant:"faded",color:"default",class:{base:ee.faded.default}},{variant:"faded",color:"primary",class:{base:ee.faded.primary}},{variant:"faded",color:"secondary",class:{base:ee.faded.secondary}},{variant:"faded",color:"success",class:{base:ee.faded.success}},{variant:"faded",color:"warning",class:{base:ee.faded.warning}},{variant:"faded",color:"danger",class:{base:ee.faded.danger}},{variant:"light",color:"default",class:{base:ee.light.default}},{variant:"light",color:"primary",class:{base:ee.light.primary}},{variant:"light",color:"secondary",class:{base:ee.light.secondary}},{variant:"light",color:"success",class:{base:ee.light.success}},{variant:"light",color:"warning",class:{base:ee.light.warning}},{variant:"light",color:"danger",class:{base:ee.light.danger}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"sm",class:{base:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"md",class:{base:"w-6 h-6 min-w-6 min-h-6"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"lg",class:{base:"w-7 h-7 min-w-7 min-h-7"}},{isOneChar:!0,isCloseable:!1,hasStartContent:!1,hasEndContent:!1,class:{base:"px-0 justify-center",content:"px-0 flex-none"}},{isOneChar:!0,isCloseable:!0,hasStartContent:!1,hasEndContent:!1,class:{base:"w-auto"}},{isOneChar:!0,variant:"dot",class:{base:"w-auto h-7 px-1 items-center",content:"px-2"}},{hasStartContent:!0,size:"sm",class:{content:"pl-0.5"}},{hasStartContent:!0,size:["md","lg"],class:{content:"pl-1"}},{hasEndContent:!0,size:"sm",class:{content:"pr-0.5"}},{hasEndContent:!0,size:["md","lg"],class:{content:"pr-1"}}]}),Fx=ke({base:["px-2","py-1","h-fit","font-mono","font-normal","inline-block","whitespace-nowrap"],variants:{color:{default:ee.flat.default,primary:ee.flat.primary,secondary:ee.flat.secondary,success:ee.flat.success,warning:ee.flat.warning,danger:ee.flat.danger},size:{sm:"text-small",md:"text-medium",lg:"text-large"},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"}},defaultVariants:{color:"default",size:"sm",radius:"sm"}}),ZF=ke({base:"px-2",variants:{variant:{light:"",shadow:"px-4 shadow-medium rounded-medium bg-content1",bordered:"px-4 border-medium border-divider rounded-medium",splitted:"flex flex-col gap-2"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"light",fullWidth:!0}}),QF=ke({slots:{base:"",heading:"",trigger:["flex py-4 w-full h-full gap-3 outline-none items-center tap-highlight-transparent",...rn],startContent:"flex-shrink-0",indicator:"text-default-400",titleWrapper:"flex-1 flex flex-col text-start",title:"text-foreground text-medium",subtitle:"text-small text-foreground-500 font-normal",content:"py-2"},variants:{variant:{splitted:{base:"px-4 bg-content1 shadow-medium rounded-medium"}},isCompact:{true:{trigger:"py-2",title:"text-medium",subtitle:"text-small",indicator:"text-medium",content:"py-1"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},hideIndicator:{true:{indicator:"hidden"}},disableAnimation:{true:{content:"hidden data-[open=true]:block"},false:{indicator:"transition-transform",trigger:"transition-opacity"}},disableIndicatorAnimation:{true:{indicator:"transition-none"},false:{indicator:"rotate-0 data-[open=true]:-rotate-90 rtl:-rotate-180 rtl:data-[open=true]:-rotate-90"}}},defaultVariants:{size:"md",radius:"lg",isDisabled:!1,hideIndicator:!1,disableIndicatorAnimation:!1}}),JF=ke({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...rn],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Fp,"flex","items-center","justify-center"],name:[...Fp,"font-normal","text-center","text-inherit"],icon:[...Fp,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:ee.solid.default},primary:{base:ee.solid.primary},secondary:{base:ee.solid.secondary},success:{base:ee.solid.success},warning:{base:ee.solid.warning},danger:{base:ee.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}},disableAnimation:{true:{base:"transition-none",img:"transition-none"},false:{}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]});ke({slots:{base:"flex items-center justify-center h-auto w-max",count:"hover:-translate-x-0"},variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}});var ej=ke({slots:{base:"flex items-center",item:["flex gap-1 items-center","cursor-pointer","whitespace-nowrap","line-clamp-1","outline-none","tap-highlight-transparent",...rn],separator:"text-default-400 px-1 rtl:rotate-180"},variants:{color:{foreground:{item:"text-foreground/50",separator:"text-foreground/50"},primary:{item:"text-primary/80",separator:"text-primary/80"},secondary:{item:"text-secondary/80",separator:"text-secondary/80"},success:{item:"text-success/80",separator:"text-success/80"},warning:{item:"text-warning/80",separator:"text-warning/80"},danger:{item:"text-danger/80",separator:"text-danger/80"}},size:{sm:{item:"text-tiny"},md:{item:"text-small"},lg:{item:"text-medium"}},underline:{none:{item:"no-underline"},hover:{item:"hover:underline"},always:{item:"underline"},active:{item:"active:underline"},focus:{item:"focus:underline"}},isCurrent:{true:{item:"cursor-default"},false:{item:["hover:opacity-80","active:opacity-disabled"]}},isDisabled:{true:{item:"opacity-disabled pointer-events-none",separator:"opacity-disabled"}},disableAnimation:{false:{item:"transition-opacity"},true:{item:"transition-none"}}},defaultVariants:{size:"md",color:"foreground",underline:"hover",isDisabled:!1},compoundVariants:[{isCurrent:!0,color:"foreground",class:{item:"text-foreground"}},{isCurrent:!0,color:"primary",class:{item:"text-primary"}},{isCurrent:!0,color:"secondary",class:{item:"text-secondary"}},{isCurrent:!0,color:"success",class:{item:"text-success"}},{isCurrent:!0,color:"warning",class:{item:"text-warning"}},{isCurrent:!0,color:"danger",class:{item:"text-danger"}},{isCurrent:!1,underline:"none",class:{item:"no-underline"}},{underline:["hover","always","active","focus"],class:"underline-offset-4"}]}),tj=ke({slots:{base:"",list:"flex flex-wrap list-none",ellipsis:"text-medium",separator:"text-default-400 px-1"},variants:{size:{sm:{},md:{},lg:{}},radius:{none:{list:"rounded-none"},sm:{list:"rounded-small"},md:{list:"rounded-medium"},lg:{list:"rounded-large"},full:{list:"rounded-full"}},variant:{solid:{list:"bg-default-100"},bordered:{list:"border-medium border-default-200 shadow-sm"},light:{}}},defaultVariants:{size:"md",radius:"sm",variant:"light"},compoundVariants:[{variant:["solid","bordered"],class:{list:"max-w-fit"}},{variant:["solid","bordered"],size:"sm",class:{list:"px-2 py-1"}},{variant:["solid","bordered"],size:"md",class:{list:"px-2.5 py-1.5"}},{variant:["solid","bordered"],size:"lg",class:{list:"px-3 py-2"}}]});function xv(e){return Array.isArray(e)}function kM(e){return xv(e)&&e.length===0}function LS(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!xv(e)}function LM(e){return LS(e)&&Object.keys(e).length===0}function nj(e){return xv(e)?kM(e):LS(e)?LM(e):e==null||e===""}function rj(e){return typeof e=="function"}var aj=e=>e?"true":void 0,ij=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3),lj=(...e)=>{let t=" ";for(const n of e)if(typeof n=="string"&&n.length>0){t=n;break}return t};function NS(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=NS(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}function _S(...e){for(var t=0,n,a,l="";t<e.length;)(n=e[t++])&&(a=NS(n))&&(l&&(l+=" "),l+=a);return l}var jx={};function oj(e,t,...n){const l=`[Next UI]${t?` [${t}]`:" "}: ${e}`;typeof console>"u"||jx[l]||(jx[l]=!0)}var NM=Object.create,KS=Object.defineProperty,_M=Object.getOwnPropertyDescriptor,VS=Object.getOwnPropertyNames,KM=Object.getPrototypeOf,VM=Object.prototype.hasOwnProperty,IS=(e,t)=>function(){return t||(0,e[VS(e)[0]])((t={exports:{}}).exports,t),t.exports},IM=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of VS(t))!VM.call(e,l)&&l!==n&&KS(e,l,{get:()=>t[l],enumerable:!(a=_M(t,l))||a.enumerable});return e},FM=(e,t,n)=>(n=e!=null?NM(KM(e)):{},IM(!e||!e.__esModule?KS(n,"default",{value:e,enumerable:!0}):n,e)),jM=IS({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;function x(_){return _===null||typeof _!="object"?null:(_=y&&_[y]||_["@@iterator"],typeof _=="function"?_:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,E={};function C(_,Z,ie){this.props=_,this.context=Z,this.refs=E,this.updater=ie||$}C.prototype.isReactComponent={},C.prototype.setState=function(_,Z){if(typeof _!="object"&&typeof _!="function"&&_!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,_,Z,"setState")},C.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function M(){}M.prototype=C.prototype;function T(_,Z,ie){this.props=_,this.context=Z,this.refs=E,this.updater=ie||$}var O=T.prototype=new M;O.constructor=T,w(O,C.prototype),O.isPureReactComponent=!0;var P=Array.isArray,k=Object.prototype.hasOwnProperty,G={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function V(_,Z,ie){var se,de={},pe=null,Me=null;if(Z!=null)for(se in Z.ref!==void 0&&(Me=Z.ref),Z.key!==void 0&&(pe=""+Z.key),Z)k.call(Z,se)&&!D.hasOwnProperty(se)&&(de[se]=Z[se]);var ye=arguments.length-2;if(ye===1)de.children=ie;else if(1<ye){for(var ge=Array(ye),ce=0;ce<ye;ce++)ge[ce]=arguments[ce+2];de.children=ge}if(_&&_.defaultProps)for(se in ye=_.defaultProps,ye)de[se]===void 0&&(de[se]=ye[se]);return{$$typeof:t,type:_,key:pe,ref:Me,props:de,_owner:G.current}}function j(_,Z){return{$$typeof:t,type:_.type,key:Z,ref:_.ref,props:_.props,_owner:_._owner}}function z(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function I(_){var Z={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(ie){return Z[ie]})}var L=/\/+/g;function K(_,Z){return typeof _=="object"&&_!==null&&_.key!=null?I(""+_.key):Z.toString(36)}function U(_,Z,ie,se,de){var pe=typeof _;(pe==="undefined"||pe==="boolean")&&(_=null);var Me=!1;if(_===null)Me=!0;else switch(pe){case"string":case"number":Me=!0;break;case"object":switch(_.$$typeof){case t:case n:Me=!0}}if(Me)return Me=_,de=de(Me),_=se===""?"."+K(Me,0):se,P(de)?(ie="",_!=null&&(ie=_.replace(L,"$&/")+"/"),U(de,Z,ie,"",function(ce){return ce})):de!=null&&(z(de)&&(de=j(de,ie+(!de.key||Me&&Me.key===de.key?"":(""+de.key).replace(L,"$&/")+"/")+_)),Z.push(de)),1;if(Me=0,se=se===""?".":se+":",P(_))for(var ye=0;ye<_.length;ye++){pe=_[ye];var ge=se+K(pe,ye);Me+=U(pe,Z,ie,ge,de)}else if(ge=x(_),typeof ge=="function")for(_=ge.call(_),ye=0;!(pe=_.next()).done;)pe=pe.value,ge=se+K(pe,ye++),Me+=U(pe,Z,ie,ge,de);else if(pe==="object")throw Z=String(_),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.");return Me}function R(_,Z,ie){if(_==null)return _;var se=[],de=0;return U(_,se,"","",function(pe){return Z.call(ie,pe,de++)}),se}function B(_){if(_._status===-1){var Z=_._result;Z=Z(),Z.then(function(ie){(_._status===0||_._status===-1)&&(_._status=1,_._result=ie)},function(ie){(_._status===0||_._status===-1)&&(_._status=2,_._result=ie)}),_._status===-1&&(_._status=0,_._result=Z)}if(_._status===1)return _._result.default;throw _._result}var H={current:null},te={transition:null},W={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:te,ReactCurrentOwner:G};e.Children={map:R,forEach:function(_,Z,ie){R(_,function(){Z.apply(this,arguments)},ie)},count:function(_){var Z=0;return R(_,function(){Z++}),Z},toArray:function(_){return R(_,function(Z){return Z})||[]},only:function(_){if(!z(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},e.Component=C,e.Fragment=a,e.Profiler=s,e.PureComponent=T,e.StrictMode=l,e.Suspense=h,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,e.cloneElement=function(_,Z,ie){if(_==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+_+".");var se=w({},_.props),de=_.key,pe=_.ref,Me=_._owner;if(Z!=null){if(Z.ref!==void 0&&(pe=Z.ref,Me=G.current),Z.key!==void 0&&(de=""+Z.key),_.type&&_.type.defaultProps)var ye=_.type.defaultProps;for(ge in Z)k.call(Z,ge)&&!D.hasOwnProperty(ge)&&(se[ge]=Z[ge]===void 0&&ye!==void 0?ye[ge]:Z[ge])}var ge=arguments.length-2;if(ge===1)se.children=ie;else if(1<ge){ye=Array(ge);for(var ce=0;ce<ge;ce++)ye[ce]=arguments[ce+2];se.children=ye}return{$$typeof:t,type:_.type,key:de,ref:pe,props:se,_owner:Me}},e.createContext=function(_){return _={$$typeof:d,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},_.Provider={$$typeof:u,_context:_},_.Consumer=_},e.createElement=V,e.createFactory=function(_){var Z=V.bind(null,_);return Z.type=_,Z},e.createRef=function(){return{current:null}},e.forwardRef=function(_){return{$$typeof:f,render:_}},e.isValidElement=z,e.lazy=function(_){return{$$typeof:v,_payload:{_status:-1,_result:_},_init:B}},e.memo=function(_,Z){return{$$typeof:p,type:_,compare:Z===void 0?null:Z}},e.startTransition=function(_){var Z=te.transition;te.transition={};try{_()}finally{te.transition=Z}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(_,Z){return H.current.useCallback(_,Z)},e.useContext=function(_){return H.current.useContext(_)},e.useDebugValue=function(){},e.useDeferredValue=function(_){return H.current.useDeferredValue(_)},e.useEffect=function(_,Z){return H.current.useEffect(_,Z)},e.useId=function(){return H.current.useId()},e.useImperativeHandle=function(_,Z,ie){return H.current.useImperativeHandle(_,Z,ie)},e.useInsertionEffect=function(_,Z){return H.current.useInsertionEffect(_,Z)},e.useLayoutEffect=function(_,Z){return H.current.useLayoutEffect(_,Z)},e.useMemo=function(_,Z){return H.current.useMemo(_,Z)},e.useReducer=function(_,Z,ie){return H.current.useReducer(_,Z,ie)},e.useRef=function(_){return H.current.useRef(_)},e.useState=function(_){return H.current.useState(_)},e.useSyncExternalStore=function(_,Z,ie){return H.current.useSyncExternalStore(_,Z,ie)},e.useTransition=function(){return H.current.useTransition()},e.version="18.2.0"}}),UM=IS({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=jM()}}),HM=FM(UM()),sj=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"";function uj(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function cj(e){for(const t in e)t.startsWith("on")&&delete e[t];return e}function FS(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}var GM=()=>HM.default.version.split(".")[0]==="19",dj=e=>GM()?e:e?"":void 0;/**
 * @license React
 * react.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *//**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function fj(e,t,n){return Math.min(Math.max(e,t),n)}var hj=(e,t)=>{if(!e&&!t)return{};const n=new Set([...Object.keys(e||{}),...Object.keys(t||{})]);return Array.from(n).reduce((a,l)=>({...a,[l]:_S(e==null?void 0:e[l],t==null?void 0:t[l])}),{})};function qM(e){const[t,n]=$S(e,Ix.variantKeys),{children:a,className:l,classNames:s,label:u,...d}=t,f=b.useMemo(()=>Ix({...n}),[FS(n)]),h=_S(s==null?void 0:s.base,l),p=u||a,v=b.useMemo(()=>p&&typeof p=="string"?p:d["aria-label"]?"":"Loading",[a,p,d["aria-label"]]),y=b.useCallback(()=>({"aria-label":v,className:f.base({class:h}),...d}),[v,f,h,d]);return{label:p,slots:f,classNames:s,getSpinnerProps:y}}var jS=gv((e,t)=>{const{slots:n,classNames:a,label:l,getSpinnerProps:s}=qM({...e});return St.jsxs("div",{ref:t,...s(),children:[St.jsxs("div",{className:n.wrapper({class:a==null?void 0:a.wrapper}),children:[St.jsx("i",{className:n.circle1({class:a==null?void 0:a.circle1})}),St.jsx("i",{className:n.circle2({class:a==null?void 0:a.circle2})})]}),l&&St.jsx("span",{className:n.label({class:a==null?void 0:a.label}),children:l})]})});jS.displayName="HeroUI.Spinner";var pj=jS;function US(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(n=US(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function HS(){for(var e,t,n=0,a="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=US(e))&&(a&&(a+=" "),a+=t);return a}let WM={data:""},YM=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||WM},XM=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,ZM=/\/\*[^]*?\*\/|  +/g,Ux=/\n+/g,Si=(e,t)=>{let n="",a="",l="";for(let s in e){let u=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+u+";":a+=s[1]=="f"?Si(u,s):s+"{"+Si(u,s[1]=="k"?"":t)+"}":typeof u=="object"?a+=Si(u,t?t.replace(/([^,])+/g,d=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,f=>/&/.test(f)?f.replace(/&/g,d):d?d+" "+f:f)):s):u!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),l+=Si.p?Si.p(s,u):s+":"+u+";")}return n+(t&&l?t+"{"+l+"}":l)+a},Da={},GS=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+GS(e[n]);return t}return e},QM=(e,t,n,a,l)=>{let s=GS(e),u=Da[s]||(Da[s]=(f=>{let h=0,p=11;for(;h<f.length;)p=101*p+f.charCodeAt(h++)>>>0;return"go"+p})(s));if(!Da[u]){let f=s!==e?e:(h=>{let p,v,y=[{}];for(;p=XM.exec(h.replace(ZM,""));)p[4]?y.shift():p[3]?(v=p[3].replace(Ux," ").trim(),y.unshift(y[0][v]=y[0][v]||{})):y[0][p[1]]=p[2].replace(Ux," ").trim();return y[0]})(e);Da[u]=Si(l?{["@keyframes "+u]:f}:f,n?"":"."+u)}let d=n&&Da.g?Da.g:null;return n&&(Da.g=Da[u]),((f,h,p,v)=>{v?h.data=h.data.replace(v,f):h.data.indexOf(f)===-1&&(h.data=p?f+h.data:h.data+f)})(Da[u],t,a,d),u},JM=(e,t,n)=>e.reduce((a,l,s)=>{let u=t[s];if(u&&u.call){let d=u(n),f=d&&d.props&&d.props.className||/^go/.test(d)&&d;u=f?"."+f:d&&typeof d=="object"?d.props?"":Si(d,""):d===!1?"":d}return a+l+(u??"")},"");function af(e){let t=this||{},n=e.call?e(t.p):e;return QM(n.unshift?n.raw?JM(n,[].slice.call(arguments,1),t.p):n.reduce((a,l)=>Object.assign(a,l&&l.call?l(t.p):l),{}):n,YM(t.target),t.g,t.o,t.k)}let qS,ig,lg;af.bind({g:1});let ka=af.bind({k:1});function e9(e,t,n,a){Si.p=t,qS=e,ig=n,lg=a}function Mi(e,t){let n=this||{};return function(){let a=arguments;function l(s,u){let d=Object.assign({},s),f=d.className||l.className;n.p=Object.assign({theme:ig&&ig()},d),n.o=/ *go\d+/.test(f),d.className=af.apply(n,a)+(f?" "+f:"");let h=e;return e[0]&&(h=d.as||e,delete d.as),lg&&h[0]&&lg(d),qS(h,d)}return l}}var t9=e=>typeof e=="function",Md=(e,t)=>t9(e)?e(t):e,n9=(()=>{let e=0;return()=>(++e).toString()})(),WS=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),r9=20,wv="default",YS=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(u=>u.id===t.toast.id?{...u,...t.toast}:u)};case 2:let{toast:a}=t;return YS(e,{type:e.toasts.find(u=>u.id===a.id)?1:0,toast:a});case 3:let{toastId:l}=t;return{...e,toasts:e.toasts.map(u=>u.id===l||l===void 0?{...u,dismissed:!0,visible:!1}:u)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(u=>u.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(u=>({...u,pauseDuration:u.pauseDuration+s}))}}},hd=[],XS={toasts:[],pausedAt:void 0,settings:{toastLimit:r9}},Xr={},ZS=(e,t=wv)=>{Xr[t]=YS(Xr[t]||XS,e),hd.forEach(([n,a])=>{n===t&&a(Xr[t])})},QS=e=>Object.keys(Xr).forEach(t=>ZS(e,t)),a9=e=>Object.keys(Xr).find(t=>Xr[t].toasts.some(n=>n.id===e)),lf=(e=wv)=>t=>{ZS(t,e)},i9={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},l9=(e={},t=wv)=>{let[n,a]=b.useState(Xr[t]||XS),l=b.useRef(Xr[t]);b.useEffect(()=>(l.current!==Xr[t]&&a(Xr[t]),hd.push([t,a]),()=>{let u=hd.findIndex(([d])=>d===t);u>-1&&hd.splice(u,1)}),[t]);let s=n.toasts.map(u=>{var d,f,h;return{...e,...e[u.type],...u,removeDelay:u.removeDelay||((d=e[u.type])==null?void 0:d.removeDelay)||(e==null?void 0:e.removeDelay),duration:u.duration||((f=e[u.type])==null?void 0:f.duration)||(e==null?void 0:e.duration)||i9[u.type],style:{...e.style,...(h=e[u.type])==null?void 0:h.style,...u.style}}});return{...n,toasts:s}},o9=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||n9()}),gu=e=>(t,n)=>{let a=o9(t,e,n);return lf(a.toasterId||a9(a.id))({type:2,toast:a}),a.id},Gt=(e,t)=>gu("blank")(e,t);Gt.error=gu("error");Gt.success=gu("success");Gt.loading=gu("loading");Gt.custom=gu("custom");Gt.dismiss=(e,t)=>{let n={type:3,toastId:e};t?lf(t)(n):QS(n)};Gt.dismissAll=e=>Gt.dismiss(void 0,e);Gt.remove=(e,t)=>{let n={type:4,toastId:e};t?lf(t)(n):QS(n)};Gt.removeAll=e=>Gt.remove(void 0,e);Gt.promise=(e,t,n)=>{let a=Gt.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(l=>{let s=t.success?Md(t.success,l):void 0;return s?Gt.success(s,{id:a,...n,...n==null?void 0:n.success}):Gt.dismiss(a),l}).catch(l=>{let s=t.error?Md(t.error,l):void 0;s?Gt.error(s,{id:a,...n,...n==null?void 0:n.error}):Gt.dismiss(a)}),e};var s9=1e3,u9=(e,t="default")=>{let{toasts:n,pausedAt:a}=l9(e,t),l=b.useRef(new Map).current,s=b.useCallback((v,y=s9)=>{if(l.has(v))return;let x=setTimeout(()=>{l.delete(v),u({type:4,toastId:v})},y);l.set(v,x)},[]);b.useEffect(()=>{if(a)return;let v=Date.now(),y=n.map(x=>{if(x.duration===1/0)return;let $=(x.duration||0)+x.pauseDuration-(v-x.createdAt);if($<0){x.visible&&Gt.dismiss(x.id);return}return setTimeout(()=>Gt.dismiss(x.id,t),$)});return()=>{y.forEach(x=>x&&clearTimeout(x))}},[n,a,t]);let u=b.useCallback(lf(t),[t]),d=b.useCallback(()=>{u({type:5,time:Date.now()})},[u]),f=b.useCallback((v,y)=>{u({type:1,toast:{id:v,height:y}})},[u]),h=b.useCallback(()=>{a&&u({type:6,time:Date.now()})},[a,u]),p=b.useCallback((v,y)=>{let{reverseOrder:x=!1,gutter:$=8,defaultPosition:w}=y||{},E=n.filter(T=>(T.position||w)===(v.position||w)&&T.height),C=E.findIndex(T=>T.id===v.id),M=E.filter((T,O)=>O<C&&T.visible).length;return E.filter(T=>T.visible).slice(...x?[M+1]:[0,M]).reduce((T,O)=>T+(O.height||0)+$,0)},[n]);return b.useEffect(()=>{n.forEach(v=>{if(v.dismissed)s(v.id,v.removeDelay);else{let y=l.get(v.id);y&&(clearTimeout(y),l.delete(v.id))}})},[n,s]),{toasts:n,handlers:{updateHeight:f,startPause:d,endPause:h,calculateOffset:p}}},c9=ka`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,d9=ka`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,f9=ka`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,h9=Mi("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

  animation: ${c9} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;

  &:after,
  &:before {
    content: '';
    animation: ${d9} 0.15s ease-out forwards;
    animation-delay: 150ms;
    position: absolute;
    border-radius: 3px;
    opacity: 0;
    background: ${e=>e.secondary||"#fff"};
    bottom: 9px;
    left: 4px;
    height: 2px;
    width: 12px;
  }

  &:before {
    animation: ${f9} 0.15s ease-out forwards;
    animation-delay: 180ms;
    transform: rotate(90deg);
  }
`,p9=ka`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
`,m9=Mi("div")`
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: ${e=>e.secondary||"#e0e0e0"};
  border-right-color: ${e=>e.primary||"#616161"};
  animation: ${p9} 1s linear infinite;
`,g9=ka`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(45deg);
	opacity: 1;
}`,v9=ka`
0% {
	height: 0;
	width: 0;
	opacity: 0;
}
40% {
  height: 0;
	width: 6px;
	opacity: 1;
}
100% {
  opacity: 1;
  height: 10px;
}`,b9=Mi("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#61d345"};
  position: relative;
  transform: rotate(45deg);

  animation: ${g9} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${v9} 0.2s ease-out forwards;
    opacity: 0;
    animation-delay: 200ms;
    position: absolute;
    border-right: 2px solid;
    border-bottom: 2px solid;
    border-color: ${e=>e.secondary||"#fff"};
    bottom: 6px;
    left: 6px;
    height: 10px;
    width: 6px;
  }
`,y9=Mi("div")`
  position: absolute;
`,x9=Mi("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,w9=ka`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,S9=Mi("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${w9} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,$9=({toast:e})=>{let{icon:t,type:n,iconTheme:a}=e;return t!==void 0?typeof t=="string"?b.createElement(S9,null,t):t:n==="blank"?null:b.createElement(x9,null,b.createElement(m9,{...a}),n!=="loading"&&b.createElement(y9,null,n==="error"?b.createElement(h9,{...a}):b.createElement(b9,{...a})))},E9=e=>`
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
`,C9=e=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
`,T9="0%{opacity:0;} 100%{opacity:1;}",D9="0%{opacity:1;} 100%{opacity:0;}",A9=Mi("div")`
  display: flex;
  align-items: center;
  background: #fff;
  color: #363636;
  line-height: 1.3;
  will-change: transform;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  pointer-events: auto;
  padding: 8px 10px;
  border-radius: 8px;
`,M9=Mi("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,R9=(e,t)=>{let n=e.includes("top")?1:-1,[a,l]=WS()?[T9,D9]:[E9(n),C9(n)];return{animation:t?`${ka(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${ka(l)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},P9=b.memo(({toast:e,position:t,style:n,children:a})=>{let l=e.height?R9(e.position||t||"top-center",e.visible):{opacity:0},s=b.createElement($9,{toast:e}),u=b.createElement(M9,{...e.ariaProps},Md(e.message,e));return b.createElement(A9,{className:e.className,style:{...l,...n,...e.style}},typeof a=="function"?a({icon:s,message:u}):b.createElement(b.Fragment,null,s,u))});e9(b.createElement);var z9=({id:e,className:t,style:n,onHeightUpdate:a,children:l})=>{let s=b.useCallback(u=>{if(u){let d=()=>{let f=u.getBoundingClientRect().height;a(e,f)};d(),new MutationObserver(d).observe(u,{subtree:!0,childList:!0,characterData:!0})}},[e,a]);return b.createElement("div",{ref:s,className:t,style:n},l)},O9=(e,t)=>{let n=e.includes("top"),a=n?{top:0}:{bottom:0},l=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:WS()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...a,...l}},B9=af`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`,Fc=16,mj=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:a,children:l,toasterId:s,containerStyle:u,containerClassName:d})=>{let{toasts:f,handlers:h}=u9(n,s);return b.createElement("div",{"data-rht-toaster":s||"",style:{position:"fixed",zIndex:9999,top:Fc,left:Fc,right:Fc,bottom:Fc,pointerEvents:"none",...u},className:d,onMouseEnter:h.startPause,onMouseLeave:h.endPause},f.map(p=>{let v=p.position||t,y=h.calculateOffset(p,{reverseOrder:e,gutter:a,defaultPosition:t}),x=O9(v,y);return b.createElement(z9,{id:p.id,key:p.id,onHeightUpdate:h.updateHeight,className:p.visible?B9:"",style:x},p.type==="custom"?Md(p.message,p):l?l(p):b.createElement(P9,{toast:p,position:v}))}))},gj=Gt;function JS(e,t){window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:t}))}function vj(e,t){const[n,a]=b.useState(e);return b.useEffect(()=>{const l=setTimeout(()=>{a(e)},t);return()=>{clearTimeout(l)}},[e,t]),n}const Hx=(e,t)=>{const n=JSON.stringify(t);window.localStorage.setItem(e,n),JS(e,n)},k9=e=>{window.localStorage.removeItem(e),JS(e,null)},Gx=e=>window.localStorage.getItem(e),L9=e=>(window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)),N9=()=>{throw Error("useLocalStorage is a client-only hook")};function bj(e,t){const n=()=>Gx(e),a=b.useSyncExternalStore(L9,n,N9),l=b.useCallback(s=>{try{const u=typeof s=="function"?s(JSON.parse(a)):s;u==null?k9(e):Hx(e,u)}catch(u){console.warn(u)}},[e,a]);return b.useEffect(()=>{Gx(e)===null&&typeof t<"u"&&Hx(e,t)},[e,t]),[a?JSON.parse(a):t,l]}var yj=(e,t)=>{var n;let a=[];const l=(n=b.Children.map(e,u=>b.isValidElement(u)&&u.type===t?(a.push(u),null):u))==null?void 0:n.filter(Boolean),s=a.length>=0?a:void 0;return[l,s]},_9=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),K9=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),qx=/^(data-.*)$/,V9=/^(aria-.*)$/,jc=/^(on[A-Z].*)$/;function I9(e,t={}){let{labelable:n=!0,enabled:a=!0,propNames:l,omitPropNames:s,omitEventNames:u,omitDataProps:d,omitEventProps:f}=t,h={};if(!a)return e;for(const p in e)s!=null&&s.has(p)||u!=null&&u.has(p)&&jc.test(p)||jc.test(p)&&!K9.has(p)||d&&qx.test(p)||f&&jc.test(p)||(Object.prototype.hasOwnProperty.call(e,p)&&(_9.has(p)||n&&V9.test(p)||l!=null&&l.has(p)||qx.test(p))||jc.test(p))&&(h[p]=e[p]);return h}const F9=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),j9=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function e$(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),a=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(a)return a.direction==="rtl";if(n.script)return F9.has(n.script)}let t=e.split("-")[0];return j9.has(t)}const t$={prefix:String(Math.round(Math.random()*1e10)),current:0},n$=oe.createContext(t$),U9=oe.createContext(!1);let jp=new WeakMap;function H9(e=!1){let t=b.useContext(n$),n=b.useRef(null);if(n.current===null&&!e){var a,l;let s=(l=oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||l===void 0||(a=l.ReactCurrentOwner)===null||a===void 0?void 0:a.current;if(s){let u=jp.get(s);u==null?jp.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==u.state&&(t.current=u.id,jp.delete(s))}n.current=++t.current}return n.current}function G9(e){let t=b.useContext(n$),n=H9(!!e),a=`react-aria${t.prefix}`;return e||`${a}-${n}`}function q9(e){let t=oe.useId(),[n]=b.useState(ml()),a=n?"react-aria":`react-aria${t$.prefix}`;return e||`${a}-${t}`}const r$=typeof oe.useId=="function"?q9:G9;function W9(){return!1}function Y9(){return!0}function X9(e){return()=>{}}function ml(){return typeof oe.useSyncExternalStore=="function"?oe.useSyncExternalStore(X9,W9,Y9):b.useContext(U9)}const Z9=Symbol.for("react-aria.i18n.locale");function a$(){let e=typeof window<"u"&&window[Z9]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:e$(e)?"rtl":"ltr"}}let og=a$(),Ls=new Set;function Wx(){og=a$();for(let e of Ls)e(og)}function i$(){let e=ml(),[t,n]=b.useState(og);return b.useEffect(()=>(Ls.size===0&&window.addEventListener("languagechange",Wx),Ls.add(n),()=>{Ls.delete(n),Ls.size===0&&window.removeEventListener("languagechange",Wx)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const l$=oe.createContext(null);function xj(e){let{locale:t,children:n}=e,a=i$(),l=oe.useMemo(()=>t?{locale:t,direction:e$(t)?"rtl":"ltr"}:a,[a,t]);return oe.createElement(l$.Provider,{value:l},n)}function Q9(){let e=i$();return b.useContext(l$)||e}var Lr=function(){return Lr=Object.assign||function(t){for(var n,a=1,l=arguments.length;a<l;a++){n=arguments[a];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Lr.apply(this,arguments)};function o$(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]]);return n}function J9(e,t,n,a){function l(s){return s instanceof n?s:new n(function(u){u(s)})}return new(n||(n=Promise))(function(s,u){function d(p){try{h(a.next(p))}catch(v){u(v)}}function f(p){try{h(a.throw(p))}catch(v){u(v)}}function h(p){p.done?s(p.value):l(p.value).then(d,f)}h((a=a.apply(e,t||[])).next())})}function eR(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},a,l,s,u=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return u.next=d(0),u.throw=d(1),u.return=d(2),typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(h){return function(p){return f([h,p])}}function f(h){if(a)throw new TypeError("Generator is already executing.");for(;u&&(u=0,h[0]&&(n=0)),n;)try{if(a=1,l&&(s=h[0]&2?l.return:h[0]?l.throw||((s=l.return)&&s.call(l),0):l.next)&&!(s=s.call(l,h[1])).done)return s;switch(l=0,s&&(h=[h[0]&2,s.value]),h[0]){case 0:case 1:s=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,l=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!s||h[1]>s[0]&&h[1]<s[3])){n.label=h[1];break}if(h[0]===6&&n.label<s[1]){n.label=s[1],s=h;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(h);break}s[2]&&n.ops.pop(),n.trys.pop();continue}h=t.call(e,n)}catch(p){h=[6,p],l=0}finally{a=s=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function vn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),l,s=[],u;try{for(;(t===void 0||t-- >0)&&!(l=a.next()).done;)s.push(l.value)}catch(d){u={error:d}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(u)throw u.error}}return s}function bn(e,t,n){if(n||arguments.length===2)for(var a=0,l=t.length,s;a<l;a++)(s||!(a in t))&&(s||(s=Array.prototype.slice.call(t,0,a)),s[a]=t[a]);return e.concat(s||Array.prototype.slice.call(t))}const tR=Symbol.for("react-aria.i18n.locale"),nR=Symbol.for("react-aria.i18n.strings");let to;class of{getStringForLocale(t,n){let l=this.getStringsForLocale(n)[t];if(!l)throw new Error(`Could not find intl message ${t} in ${n} locale`);return l}getStringsForLocale(t){let n=this.strings[t];return n||(n=rR(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[tR];if(to===void 0){let l=window[nR];if(!l)return null;to={};for(let s in l)to[s]=new of({[n]:l[s]},n)}let a=to==null?void 0:to[t];if(!a)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return a}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,a])=>a)),this.defaultLocale=n}}function rR(e,t,n="en-US"){if(t[e])return t[e];let a=aR(e);if(t[a])return t[a];for(let l in t)if(l.startsWith(a+"-"))return t[l];return t[n]}function aR(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Yx=new Map,Xx=new Map;class iR{format(t,n){let a=this.strings.getStringForLocale(t,this.locale);return typeof a=="function"?a(n,this):a}plural(t,n,a="cardinal"){let l=n["="+t];if(l)return typeof l=="function"?l():l;let s=this.locale+":"+a,u=Yx.get(s);u||(u=new Intl.PluralRules(this.locale,{type:a}),Yx.set(s,u));let d=u.select(t);return l=n[d]||n.other,typeof l=="function"?l():l}number(t){let n=Xx.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Xx.set(this.locale,n)),n.format(t)}select(t,n){let a=t[n]||t.other;return typeof a=="function"?a():a}constructor(t,n){this.locale=t,this.strings=n}}function lR(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s$(e,t,n){lR(e,t),t.set(e,n)}const $t=typeof document<"u"?oe.useLayoutEffect:()=>{};function Nr(e){const t=b.useRef(null);return $t(()=>{t.current=e},[e]),b.useCallback((...n)=>{const a=t.current;return a==null?void 0:a(...n)},[])}function oR(e){let[t,n]=b.useState(e),a=b.useRef(null),l=Nr(()=>{if(!a.current)return;let u=a.current.next();if(u.done){a.current=null;return}t===u.value?l():n(u.value)});$t(()=>{a.current&&l()});let s=Nr(u=>{a.current=u(t),l()});return[t,s]}let sR=!!(typeof window<"u"&&window.document&&window.document.createElement),bi=new Map;function Cr(e){let[t,n]=b.useState(e),a=b.useRef(null),l=r$(t),s=b.useCallback(u=>{a.current=u},[]);return sR&&(bi.has(l)&&!bi.get(l).includes(s)?bi.set(l,[...bi.get(l),s]):bi.set(l,[s])),$t(()=>{let u=l;return()=>{bi.delete(u)}},[l]),b.useEffect(()=>{let u=a.current;u&&(a.current=null,n(u))}),l}function uR(e,t){if(e===t)return e;let n=bi.get(e);if(n)return n.forEach(l=>l(t)),t;let a=bi.get(t);return a?(a.forEach(l=>l(e)),e):t}function Ci(e=[]){let t=Cr(),[n,a]=oR(t),l=b.useCallback(()=>{a(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,a]);return $t(l,[t,l,...e]),n}function ol(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const it=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Sr=e=>e&&"window"in e&&e.window===e?e:it(e).defaultView||window;function Wt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let a=e[n];for(let l in a){let s=t[l],u=a[l];typeof s=="function"&&typeof u=="function"&&l[0]==="o"&&l[1]==="n"&&l.charCodeAt(2)>=65&&l.charCodeAt(2)<=90?t[l]=ol(s,u):(l==="className"||l==="UNSAFE_className")&&typeof s=="string"&&typeof u=="string"?t[l]=HS(s,u):l==="id"&&s&&u?t.id=uR(s,u):t[l]=u!==void 0?u:s}}return t}function wj(...e){return e.length===1&&e[0]?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const cR=new Set(["id"]),dR=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),fR=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),hR=/^(data-.*)$/;function aa(e,t={}){let{labelable:n,isLink:a,propNames:l}=t,s={};for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(cR.has(u)||n&&dR.has(u)||a&&fR.has(u)||l!=null&&l.has(u)||hR.test(u))&&(s[u]=e[u]);return s}function tl(e){if(pR())e.focus({preventScroll:!0});else{let t=mR(e);e.focus(),gR(t)}}let Uc=null;function pR(){if(Uc==null){Uc=!1;try{document.createElement("div").focus({get preventScroll(){return Uc=!0,!0}})}catch{}}return Uc}function mR(e){let t=e.parentNode,n=[],a=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==a;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return a instanceof HTMLElement&&n.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft}),n}function gR(e){for(let{element:t,scrollTop:n,scrollLeft:a}of e)t.scrollTop=n,t.scrollLeft=a}function sf(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Sv(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ri(e){let t=null;return()=>(t==null&&(t=e()),t)}const Mo=Ri(function(){return Sv(/^Mac/i)}),vR=Ri(function(){return Sv(/^iPhone/i)}),u$=Ri(function(){return Sv(/^iPad/i)||Mo()&&navigator.maxTouchPoints>1}),$v=Ri(function(){return vR()||u$()}),Ev=Ri(function(){return sf(/AppleWebKit/i)&&!bR()}),bR=Ri(function(){return sf(/Chrome/i)}),c$=Ri(function(){return sf(/Android/i)}),yR=Ri(function(){return sf(/Firefox/i)}),d$=b.createContext({isNative:!0,open:wR,useHref:e=>e});function Sj(e){let{children:t,navigate:n,useHref:a}=e,l=b.useMemo(()=>({isNative:!1,open:(s,u,d,f)=>{h$(s,h=>{xR(h,u)?n(d,f):sl(h,u)})},useHref:a||(s=>s)}),[n,a]);return oe.createElement(d$.Provider,{value:l},t)}function f$(){return b.useContext(d$)}function xR(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function sl(e,t,n=!0){var a,l;let{metaKey:s,ctrlKey:u,altKey:d,shiftKey:f}=t;yR()&&(!((l=window.event)===null||l===void 0||(a=l.type)===null||a===void 0)&&a.startsWith("key"))&&e.target==="_blank"&&(Mo()?s=!0:u=!0);let h=Ev()&&Mo()&&!u$()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:u,altKey:d,shiftKey:f}):new MouseEvent("click",{metaKey:s,ctrlKey:u,altKey:d,shiftKey:f,bubbles:!0,cancelable:!0});sl.isOpening=n,tl(e),e.dispatchEvent(h),sl.isOpening=!1}sl.isOpening=!1;function h$(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function wR(e,t){h$(e,n=>sl(n,t))}function Cv(e){let t=f$();var n;const a=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?a:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let uo=new Map,sg=new Set;function Zx(){if(typeof window>"u")return;function e(a){return"propertyName"in a}let t=a=>{if(!e(a)||!a.target)return;let l=uo.get(a.target);l||(l=new Set,uo.set(a.target,l),a.target.addEventListener("transitioncancel",n,{once:!0})),l.add(a.propertyName)},n=a=>{if(!e(a)||!a.target)return;let l=uo.get(a.target);if(l&&(l.delete(a.propertyName),l.size===0&&(a.target.removeEventListener("transitioncancel",n),uo.delete(a.target)),uo.size===0)){for(let s of sg)s();sg.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Zx():document.addEventListener("DOMContentLoaded",Zx));function p$(e){requestAnimationFrame(()=>{uo.size===0?e():sg.add(e)})}function SR(){let e=b.useRef(new Map),t=b.useCallback((l,s,u,d)=>{let f=d!=null&&d.once?(...h)=>{e.current.delete(u),u(...h)}:u;e.current.set(u,{type:s,eventTarget:l,fn:f,options:d}),l.addEventListener(s,u,d)},[]),n=b.useCallback((l,s,u,d)=>{var f;let h=((f=e.current.get(u))===null||f===void 0?void 0:f.fn)||u;l.removeEventListener(s,h,d),e.current.delete(u)},[]),a=b.useCallback(()=>{e.current.forEach((l,s)=>{n(l.eventTarget,l.type,s,l.options)})},[n]);return b.useEffect(()=>a,[a]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:a}}function uf(e,t){let{id:n,"aria-label":a,"aria-labelledby":l}=e;return n=Cr(n),l&&a?l=[...new Set([n,...l.trim().split(/\s+/)])].join(" "):l&&(l=l.trim().split(/\s+/).join(" ")),!a&&!l&&t&&(a=t),{id:n,"aria-label":a,"aria-labelledby":l}}function $j(e){const t=b.useRef(null);return b.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function $R(){return typeof window.ResizeObserver<"u"}function Qx(e){const{ref:t,box:n,onResize:a}=e;b.useEffect(()=>{let l=t==null?void 0:t.current;if(l)if($R()){const s=new window.ResizeObserver(u=>{u.length&&a()});return s.observe(l,{box:n}),()=>{l&&s.unobserve(l)}}else return window.addEventListener("resize",a,!1),()=>{window.removeEventListener("resize",a,!1)}},[a,t,n])}function m$(e,t){$t(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Rd(e,t){if(!e)return!1;let n=window.getComputedStyle(e),a=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return a&&t&&(a=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),a}function g$(e,t){let n=e;for(Rd(n,t)&&(n=n.parentElement);n&&!Rd(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}let yr=typeof document<"u"&&window.visualViewport;function Ej(){let e=ml(),[t,n]=b.useState(()=>e?{width:0,height:0}:Jx());return b.useEffect(()=>{let a=()=>{n(l=>{let s=Jx();return s.width===l.width&&s.height===l.height?l:s})};return yr?yr.addEventListener("resize",a):window.addEventListener("resize",a),()=>{yr?yr.removeEventListener("resize",a):window.removeEventListener("resize",a)}},[]),t}function Jx(){return{width:yr&&(yr==null?void 0:yr.width)||window.innerWidth,height:yr&&(yr==null?void 0:yr.height)||window.innerHeight}}function ug(e){return e.mozInputSource===0&&e.isTrusted?!0:c$()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function ER(e){return!c$()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function CR(e,t,n){let a=b.useRef(t),l=Nr(()=>{n&&n(a.current)});b.useEffect(()=>{var s;let u=e==null||(s=e.current)===null||s===void 0?void 0:s.form;return u==null||u.addEventListener("reset",l),()=>{u==null||u.removeEventListener("reset",l)}},[e,l])}function Tv(e,t,n){let[a,l]=b.useState(e||t),s=b.useRef(e!==void 0),u=e!==void 0;b.useEffect(()=>{s.current,s.current=u},[u]);let d=u?e:a,f=b.useCallback((h,...p)=>{let v=(y,...x)=>{n&&(Object.is(d,y)||n(y,...x)),u||(d=y)};typeof h=="function"?l((x,...$)=>{let w=h(u?d:x,...$);return v(w,...p),u?x:w}):(u||l(h),v(h,...p))},[u,d,n]);return[d,f]}function cg(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}let Up=new Map;function TR(e){let{locale:t}=Q9(),n=t+(e?Object.entries(e).sort((l,s)=>l[0]<s[0]?-1:1).join():"");if(Up.has(n))return Up.get(n);let a=new Intl.Collator(t,e);return Up.set(n,a),a}const Zr={top:"top",bottom:"top",left:"left",right:"left"},Pd={top:"bottom",bottom:"top",left:"right",right:"left"},DR={top:"left",left:"top"},dg={top:"height",left:"width"},v$={width:"totalWidth",height:"totalHeight"},Hc={};let en=typeof document<"u"?window.visualViewport:null;function e4(e){let t=0,n=0,a=0,l=0,s=0,u=0,d={};var f;let h=((f=en==null?void 0:en.scale)!==null&&f!==void 0?f:1)>1;if(e.tagName==="BODY"){let $=document.documentElement;a=$.clientWidth,l=$.clientHeight;var p;t=(p=en==null?void 0:en.width)!==null&&p!==void 0?p:a;var v;n=(v=en==null?void 0:en.height)!==null&&v!==void 0?v:l,d.top=$.scrollTop||e.scrollTop,d.left=$.scrollLeft||e.scrollLeft,en&&(s=en.offsetTop,u=en.offsetLeft)}else({width:t,height:n,top:s,left:u}=Eo(e)),d.top=e.scrollTop,d.left=e.scrollLeft,a=t,l=n;if(Ev()&&(e.tagName==="BODY"||e.tagName==="HTML")&&h){d.top=0,d.left=0;var y;s=(y=en==null?void 0:en.pageTop)!==null&&y!==void 0?y:0;var x;u=(x=en==null?void 0:en.pageLeft)!==null&&x!==void 0?x:0}return{width:t,height:n,totalWidth:a,totalHeight:l,scroll:d,top:s,left:u}}function AR(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function t4(e,t,n,a,l,s,u){var d;let f=(d=l.scroll[e])!==null&&d!==void 0?d:0,h=a[dg[e]],p=a.scroll[Zr[e]]+s,v=h+a.scroll[Zr[e]]-s,y=t-f+u[e]-a[Zr[e]],x=t-f+n+u[e]-a[Zr[e]];return y<p?p-y:x>v?Math.max(v-x,p-y):0}function MR(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function n4(e){if(Hc[e])return Hc[e];let[t,n]=e.split(" "),a=Zr[t]||"right",l=DR[a];Zr[n]||(n="center");let s=dg[a],u=dg[l];return Hc[e]={placement:t,crossPlacement:n,axis:a,crossAxis:l,size:s,crossSize:u},Hc[e]}function Hp(e,t,n,a,l,s,u,d,f,h){let{placement:p,crossPlacement:v,axis:y,crossAxis:x,size:$,crossSize:w}=a,E={};var C;E[x]=(C=e[x])!==null&&C!==void 0?C:0;var M,T,O,P;v==="center"?E[x]+=(((M=e[w])!==null&&M!==void 0?M:0)-((T=n[w])!==null&&T!==void 0?T:0))/2:v!==x&&(E[x]+=((O=e[w])!==null&&O!==void 0?O:0)-((P=n[w])!==null&&P!==void 0?P:0)),E[x]+=s;const k=e[x]-n[w]+f+h,G=e[x]+e[w]-f-h;if(E[x]=cg(E[x],k,G),p===y){const D=d?u[$]:t[v$[$]];E[Pd[y]]=Math.floor(D-e[y]+l)}else E[y]=Math.floor(e[y]+e[$]+l);return E}function RR(e,t,n,a,l,s,u,d){const f=a?n.height:t[v$.height];var h;let p=e.top!=null?n.top+e.top:n.top+(f-((h=e.bottom)!==null&&h!==void 0?h:0)-u);var v,y,x,$,w,E;let C=d!=="top"?Math.max(0,t.height+t.top+((v=t.scroll.top)!==null&&v!==void 0?v:0)-p-(((y=l.top)!==null&&y!==void 0?y:0)+((x=l.bottom)!==null&&x!==void 0?x:0)+s)):Math.max(0,p+u-(t.top+(($=t.scroll.top)!==null&&$!==void 0?$:0))-(((w=l.top)!==null&&w!==void 0?w:0)+((E=l.bottom)!==null&&E!==void 0?E:0)+s));return Math.min(t.height-s*2,C)}function r4(e,t,n,a,l,s){let{placement:u,axis:d,size:f}=s;var h,p;if(u===d)return Math.max(0,n[d]-e[d]-((h=e.scroll[d])!==null&&h!==void 0?h:0)+t[d]-((p=a[d])!==null&&p!==void 0?p:0)-a[Pd[d]]-l);var v;return Math.max(0,e[f]+e[d]+e.scroll[d]-t[d]-n[d]-n[f]-((v=a[d])!==null&&v!==void 0?v:0)-a[Pd[d]]-l)}function PR(e,t,n,a,l,s,u,d,f,h,p,v,y,x,$,w){let E=n4(e),{size:C,crossAxis:M,crossSize:T,placement:O,crossPlacement:P}=E,k=Hp(t,d,n,E,p,v,h,y,$,w),G=p,D=r4(d,h,t,l,s+p,E);if(u&&a[C]>D){let se=n4(`${Pd[O]} ${P}`),de=Hp(t,d,n,se,p,v,h,y,$,w);r4(d,h,t,l,s+p,se)>D&&(E=se,k=de,G=p)}let V="bottom";E.axis==="top"?E.placement==="top"?V="top":E.placement==="bottom"&&(V="bottom"):E.crossAxis==="top"&&(E.crossPlacement==="top"?V="bottom":E.crossPlacement==="bottom"&&(V="top"));let j=t4(M,k[M],n[T],d,f,s,h);k[M]+=j;let z=RR(k,d,h,y,l,s,n.height,V);x&&x<z&&(z=x),n.height=Math.min(n.height,z),k=Hp(t,d,n,E,G,v,h,y,$,w),j=t4(M,k[M],n[T],d,f,s,h),k[M]+=j;let I={},L=t[M]+.5*t[T]-k[M]-l[Zr[M]];const K=$/2+w;var U,R,B,H;const te=Zr[M]==="left"?((U=l.left)!==null&&U!==void 0?U:0)+((R=l.right)!==null&&R!==void 0?R:0):((B=l.top)!==null&&B!==void 0?B:0)+((H=l.bottom)!==null&&H!==void 0?H:0),W=n[T]-te-$/2-w,_=t[M]+$/2-(k[M]+l[Zr[M]]),Z=t[M]+t[T]-$/2-(k[M]+l[Zr[M]]),ie=cg(L,_,Z);return I[M]=cg(ie,K,W),{position:k,maxHeight:z,arrowOffsetLeft:I.left,arrowOffsetTop:I.top,placement:E.placement}}function zR(e){let{placement:t,targetNode:n,overlayNode:a,scrollNode:l,padding:s,shouldFlip:u,boundaryElement:d,offset:f,crossOffset:h,maxHeight:p,arrowSize:v=0,arrowBoundaryOffset:y=0}=e,x=a instanceof HTMLElement?OR(a):document.documentElement,$=x===document.documentElement;const w=window.getComputedStyle(x).position;let E=!!w&&w!=="static",C=$?Eo(n):a4(n,x);if(!$){let{marginTop:I,marginLeft:L}=window.getComputedStyle(n);C.top+=parseInt(I,10)||0,C.left+=parseInt(L,10)||0}let M=Eo(a),T=MR(a);var O,P;M.width+=((O=T.left)!==null&&O!==void 0?O:0)+((P=T.right)!==null&&P!==void 0?P:0);var k,G;M.height+=((k=T.top)!==null&&k!==void 0?k:0)+((G=T.bottom)!==null&&G!==void 0?G:0);let D=AR(l),V=e4(d),j=e4(x),z=d.tagName==="BODY"?Eo(x):a4(x,d);return x.tagName==="HTML"&&d.tagName==="BODY"&&(j.scroll.top=0,j.scroll.left=0),PR(t,C,M,D,T,s,u,V,j,z,f,h,E,p,v,y)}function Eo(e){let{top:t,left:n,width:a,height:l}=e.getBoundingClientRect(),{scrollTop:s,scrollLeft:u,clientTop:d,clientLeft:f}=document.documentElement;return{top:t+s-d,left:n+u-f,width:a,height:l}}function a4(e,t){let n=window.getComputedStyle(e),a;if(n.position==="fixed"){let{top:l,left:s,width:u,height:d}=e.getBoundingClientRect();a={top:l,left:s,width:u,height:d}}else{a=Eo(e);let l=Eo(t),s=window.getComputedStyle(t);l.top+=(parseInt(s.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(s.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=l.top,a.left-=l.left}return a.top-=parseInt(n.marginTop,10)||0,a.left-=parseInt(n.marginLeft,10)||0,a}function OR(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!i4(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!i4(t);)t=t.parentElement;return t||document.documentElement}function i4(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const b$=new WeakMap;function BR(e){let{triggerRef:t,isOpen:n,onClose:a}=e;b.useEffect(()=>{if(!n||a===null)return;let l=s=>{let u=s.target;if(!t.current||u instanceof Node&&!u.contains(t.current)||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement)return;let d=a||b$.get(t.current);d&&d()};return window.addEventListener("scroll",l,!0),()=>{window.removeEventListener("scroll",l,!0)}},[n,a,t])}const kR=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),LR=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function NR(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),a=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(a)return a.direction==="rtl";if(n.script)return kR.has(n.script)}let t=e.split("-")[0];return LR.has(t)}const _R=Symbol.for("react-aria.i18n.locale");function y$(){let e=typeof window<"u"&&window[_R]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:NR(e)?"rtl":"ltr"}}let fg=y$(),Ns=new Set;function l4(){fg=y$();for(let e of Ns)e(fg)}function KR(){let e=ml(),[t,n]=b.useState(fg);return b.useEffect(()=>(Ns.size===0&&window.addEventListener("languagechange",l4),Ns.add(n),()=>{Ns.delete(n),Ns.size===0&&window.removeEventListener("languagechange",l4)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const VR=oe.createContext(null);function ia(){let e=KR();return b.useContext(VR)||e}const o4=new WeakMap;function IR(e){let t=o4.get(e);return t||(t=new of(e),o4.set(e,t)),t}function FR(e,t){return t&&of.getGlobalDictionaryForPackage(t)||IR(e)}function Ia(e,t){let{locale:n}=ia(),a=FR(e,t);return b.useMemo(()=>new iR(n,a),[n,a])}const Vr=typeof document<"u"?oe.useLayoutEffect:()=>{};var Gp;const jR=(Gp=oe.useInsertionEffect)!==null&&Gp!==void 0?Gp:Vr;function nn(e){const t=b.useRef(null);return jR(()=>{t.current=e},[e]),b.useCallback((...n)=>{const a=t.current;return a==null?void 0:a(...n)},[])}function UR(e){let[t,n]=b.useState(e),a=b.useRef(null),l=nn(()=>{if(!a.current)return;let u=a.current.next();if(u.done){a.current=null;return}t===u.value?l():n(u.value)});Vr(()=>{a.current&&l()});let s=nn(u=>{a.current=u(t),l()});return[t,s]}let HR=!!(typeof window<"u"&&window.document&&window.document.createElement),Co=new Map,_s;typeof FinalizationRegistry<"u"&&(_s=new FinalizationRegistry(e=>{Co.delete(e)}));function ea(e){let[t,n]=b.useState(e),a=b.useRef(null),l=r$(t),s=b.useRef(null);if(_s&&_s.register(s,l),HR){const u=Co.get(l);u&&!u.includes(a)?u.push(a):Co.set(l,[a])}return Vr(()=>{let u=l;return()=>{_s&&_s.unregister(s),Co.delete(u)}},[l]),b.useEffect(()=>{let u=a.current;return u&&n(u),()=>{u&&(a.current=null)}}),l}function GR(e,t){if(e===t)return e;let n=Co.get(e);if(n)return n.forEach(l=>l.current=t),t;let a=Co.get(t);return a?(a.forEach(l=>l.current=e),e):t}function s4(e=[]){let t=ea(),[n,a]=UR(t),l=b.useCallback(()=>{a(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,a]);return Vr(l,[t,l,...e]),n}function cf(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const qt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},_r=e=>e&&"window"in e&&e.window===e?e:qt(e).defaultView||window;function qR(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function WR(e){return qR(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let YR=!1,XR=!1;function zd(){return YR}function df(){return XR}function Kn(e,t){if(!df())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:WR(n)?n=n.host:n=n.parentNode}return!1}const ul=(e=document)=>{var t;if(!df())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function Dn(e){return df()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class ZR{get currentNode(){return this._currentNode}set currentNode(t){if(!Kn(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let a=t,l=t;for(this._currentNode=t;a&&a!==this.root;)if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const u=a,d=this._doc.createTreeWalker(u,this.whatToShow,{acceptNode:this._acceptNode});n.push(d),d.currentNode=l,this._currentSetFor.add(d),a=l=u.host}else a=a.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=l,this._currentSetFor.add(s),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return Kn(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let l;if(typeof this.filter=="function"?l=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(l=this.filter.acceptNode(t)),l===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let a=this.nextNode();return a&&(this.currentNode=a),a}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let l=this.previousNode();return l&&(this.currentNode=l),l}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var a;let s;if(typeof this.filter=="function"?s=this.filter(n):!((a=this.filter)===null||a===void 0)&&a.acceptNode&&(s=this.filter.acceptNode(n)),s===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let u=this.lastChild();return u&&(this.currentNode=u),u}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let l=this.previousNode();return l&&(this.currentNode=l),l}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,a,l){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=u=>{if(u.nodeType===Node.ELEMENT_NODE){const f=u.shadowRoot;if(f){const h=this._doc.createTreeWalker(f,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(h),NodeFilter.FILTER_ACCEPT}else{var d;if(typeof this.filter=="function")return this.filter(u);if(!((d=this.filter)===null||d===void 0)&&d.acceptNode)return this.filter.acceptNode(u);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=l??null,this.whatToShow=a??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,a,this._acceptNode));const s=n.shadowRoot;if(s){const u=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(u)}}}function QR(e,t,n,a){return df()?new ZR(e,t,n,a):e.createTreeWalker(t,n,a)}function ft(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let a=e[n];for(let l in a){let s=t[l],u=a[l];typeof s=="function"&&typeof u=="function"&&l[0]==="o"&&l[1]==="n"&&l.charCodeAt(2)>=65&&l.charCodeAt(2)<=90?t[l]=cf(s,u):(l==="className"||l==="UNSAFE_className")&&typeof s=="string"&&typeof u=="string"?t[l]=HS(s,u):l==="id"&&s&&u?t.id=GR(s,u):t[l]=u!==void 0?u:s}}return t}const JR=new Set(["id"]),eP=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),tP=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),nP=new Set(["dir","lang","hidden","inert","translate"]),u4=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),rP=/^(data-.*)$/;function ff(e,t={}){let{labelable:n,isLink:a,global:l,events:s=l,propNames:u}=t,d={};for(const f in e)Object.prototype.hasOwnProperty.call(e,f)&&(JR.has(f)||n&&eP.has(f)||a&&tP.has(f)||l&&nP.has(f)||s&&u4.has(f)||f.endsWith("Capture")&&u4.has(f.slice(0,-7))||u!=null&&u.has(f)||rP.test(f))&&(d[f]=e[f]);return d}function La(e){if(aP())e.focus({preventScroll:!0});else{let t=iP(e);e.focus(),lP(t)}}let Gc=null;function aP(){if(Gc==null){Gc=!1;try{document.createElement("div").focus({get preventScroll(){return Gc=!0,!0}})}catch{}}return Gc}function iP(e){let t=e.parentNode,n=[],a=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==a;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return a instanceof HTMLElement&&n.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft}),n}function lP(e){for(let{element:t,scrollTop:n,scrollLeft:a}of e)t.scrollTop=n,t.scrollLeft=a}function hf(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(a=>e.test(a.brand))||e.test(window.navigator.userAgent)}function Dv(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Fa(e){let t=null;return()=>(t==null&&(t=e()),t)}const cl=Fa(function(){return Dv(/^Mac/i)}),oP=Fa(function(){return Dv(/^iPhone/i)}),x$=Fa(function(){return Dv(/^iPad/i)||cl()&&navigator.maxTouchPoints>1}),Av=Fa(function(){return oP()||x$()}),sP=Fa(function(){return cl()||Av()}),uP=Fa(function(){return hf(/AppleWebKit/i)&&!w$()}),w$=Fa(function(){return hf(/Chrome/i)}),Od=Fa(function(){return hf(/Android/i)}),cP=Fa(function(){return hf(/Firefox/i)}),dP=b.createContext({isNative:!0,open:pP,useHref:e=>e});function vu(){return b.useContext(dP)}function fP(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function dl(e,t,n=!0){var a,l;let{metaKey:s,ctrlKey:u,altKey:d,shiftKey:f}=t;cP()&&(!((l=window.event)===null||l===void 0||(a=l.type)===null||a===void 0)&&a.startsWith("key"))&&e.target==="_blank"&&(cl()?s=!0:u=!0);let h=uP()&&cl()&&!x$()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:u,altKey:d,shiftKey:f}):new MouseEvent("click",{metaKey:s,ctrlKey:u,altKey:d,shiftKey:f,bubbles:!0,cancelable:!0});dl.isOpening=n,La(e),e.dispatchEvent(h),dl.isOpening=!1}dl.isOpening=!1;function hP(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function pP(e,t){hP(e,n=>dl(n,t))}function mP(e){let t=vu();var n;const a=t.useHref((n=e.href)!==null&&n!==void 0?n:"");return{"data-href":e.href?a:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function gP(e){let t=vu();var n;const a=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?a:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function vP(e,t,n,a){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&fP(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,a))}let $i=new Map,hg=new Set;function c4(){if(typeof window>"u")return;function e(a){return"propertyName"in a}let t=a=>{if(!e(a)||!a.target)return;let l=$i.get(a.target);l||(l=new Set,$i.set(a.target,l),a.target.addEventListener("transitioncancel",n,{once:!0})),l.add(a.propertyName)},n=a=>{if(!e(a)||!a.target)return;let l=$i.get(a.target);if(l&&(l.delete(a.propertyName),l.size===0&&(a.target.removeEventListener("transitioncancel",n),$i.delete(a.target)),$i.size===0)){for(let s of hg)s();hg.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?c4():document.addEventListener("DOMContentLoaded",c4));function bP(){for(const[e]of $i)"isConnected"in e&&!e.isConnected&&$i.delete(e)}function S$(e){requestAnimationFrame(()=>{bP(),$i.size===0?e():hg.add(e)})}function pf(){let e=b.useRef(new Map),t=b.useCallback((l,s,u,d)=>{let f=d!=null&&d.once?(...h)=>{e.current.delete(u),u(...h)}:u;e.current.set(u,{type:s,eventTarget:l,fn:f,options:d}),l.addEventListener(s,f,d)},[]),n=b.useCallback((l,s,u,d)=>{var f;let h=((f=e.current.get(u))===null||f===void 0?void 0:f.fn)||u;l.removeEventListener(s,h,d),e.current.delete(u)},[]),a=b.useCallback(()=>{e.current.forEach((l,s)=>{n(l.eventTarget,l.type,s,l.options)})},[n]);return b.useEffect(()=>a,[a]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:a}}function yP(e,t){let{id:n,"aria-label":a,"aria-labelledby":l}=e;return n=ea(n),l&&a?l=[...new Set([n,...l.trim().split(/\s+/)])].join(" "):l&&(l=l.trim().split(/\s+/).join(" ")),!a&&!l&&t&&(a=t),{id:n,"aria-label":a,"aria-labelledby":l}}function $$(e,t){const n=b.useRef(!0),a=b.useRef(null);b.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),b.useEffect(()=>{let l=a.current;n.current?n.current=!1:(!l||t.some((s,u)=>!Object.is(s,l[u])))&&e(),a.current=t},t)}function d4(e,t){const n=b.useRef(!0),a=b.useRef(null);Vr(()=>(n.current=!0,()=>{n.current=!1}),[]),Vr(()=>{n.current?n.current=!1:(!a.current||t.some((l,s)=>!Object.is(l,a[s])))&&e(),a.current=t},t)}function E$(e,t){Vr(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function eu(e,t){if(!e)return!1;let n=window.getComputedStyle(e),a=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return a&&t&&(a=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),a}function no(e,t){let n=e;for(eu(n,t)&&(n=n.parentElement);n&&!eu(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function xP(e,t){const n=[];for(;e&&e!==document.documentElement;)eu(e,t)&&n.push(e),e=e.parentElement;return n}function co(e){return cl()?e.metaKey:e.ctrlKey}let wP=0;const qp=new Map;function mf(e){let[t,n]=b.useState();return Vr(()=>{if(!e)return;let a=qp.get(e);if(a)n(a.element.id);else{let l=`react-aria-description-${wP++}`;n(l);let s=document.createElement("div");s.id=l,s.style.display="none",s.textContent=e,document.body.appendChild(s),a={refCount:0,element:s},qp.set(e,a)}return a.refCount++,()=>{a&&--a.refCount===0&&(a.element.remove(),qp.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function qc(e,t,n,a){let l=nn(n),s=n==null;b.useEffect(()=>{if(s||!e.current)return;let u=e.current;return u.addEventListener(t,l,a),()=>{u.removeEventListener(t,l,a)}},[e,t,a,s,l])}function C$(e,t){let n=f4(e,t,"left"),a=f4(e,t,"top"),l=t.offsetWidth,s=t.offsetHeight,u=e.scrollLeft,d=e.scrollTop,{borderTopWidth:f,borderLeftWidth:h,scrollPaddingTop:p,scrollPaddingRight:v,scrollPaddingBottom:y,scrollPaddingLeft:x}=getComputedStyle(e),{scrollMarginTop:$,scrollMarginRight:w,scrollMarginBottom:E,scrollMarginLeft:C}=getComputedStyle(t),M=u+parseInt(h,10),T=d+parseInt(f,10),O=M+e.clientWidth,P=T+e.clientHeight,k=parseInt(p,10)||0,G=parseInt(y,10)||0,D=parseInt(v,10)||0,V=parseInt(x,10)||0,j=parseInt($,10)||0,z=parseInt(E,10)||0,I=parseInt(w,10)||0,L=parseInt(C,10)||0,K=n-L,U=n+l+I,R=a-j,B=a+s+z,H=u+parseInt(h,10)+V,te=O-D,W=d+parseInt(f,10)+k,_=P-G;(K>H||U<te)&&(K<=u+V?u=K-parseInt(h,10)-V:U>O-D&&(u+=U-O+D)),(R>W||B<_)&&(R<=T+k?d=R-parseInt(f,10)-k:B>P-G&&(d+=B-P+G)),e.scrollTo({left:u,top:d})}function f4(e,t,n){const a=n==="left"?"offsetLeft":"offsetTop";let l=0;for(;t.offsetParent&&(l+=t[a],t.offsetParent!==e);){if(t.offsetParent.contains(e)){l-=e[a];break}t=t.offsetParent}return l}function yi(e,t){if(e&&document.contains(e)){let u=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(u).overflow==="hidden")&&!w$()){var n;let{left:f,top:h}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:p,top:v}=e.getBoundingClientRect();if(Math.abs(f-p)>1||Math.abs(h-v)>1){var a,l,s;t==null||(l=t.containingElement)===null||l===void 0||(a=l.scrollIntoView)===null||a===void 0||a.call(l,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}else{let f=xP(e);for(let h of f)C$(h,e)}}}function T$(e){return e.pointerType===""&&e.isTrusted?!0:Od()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function SP(e){return!Od()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function $P(e,t,n){let a=nn(()=>{n&&n(t)});b.useEffect(()=>{var l;let s=e==null||(l=e.current)===null||l===void 0?void 0:l.form;return s==null||s.addEventListener("reset",a),()=>{s==null||s.removeEventListener("reset",a)}},[e,a])}const EP="react-aria-clear-focus",CP="react-aria-focus",TP=typeof Element<"u"&&"checkVisibility"in Element.prototype;function DP(e){const t=_r(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:a}=e.style,l=n!=="none"&&a!=="hidden"&&a!=="collapse";if(l){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:u,visibility:d}=s(e);l=u!=="none"&&d!=="hidden"&&d!=="collapse"}return l}function AP(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Mv(e,t){return TP?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&DP(e)&&AP(e,t)&&(!e.parentElement||Mv(e.parentElement,e))}const Rv=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],MP=Rv.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Rv.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const RP=Rv.join(':not([hidden]):not([tabindex="-1"]),');function D$(e){return e.matches(MP)&&Mv(e)&&!A$(e)}function PP(e){return e.matches(RP)&&Mv(e)&&!A$(e)}function A$(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}let Wp=new Map;function Pv(e){let{locale:t}=ia(),n=t+(e?Object.entries(e).sort((l,s)=>l[0]<s[0]?-1:1).join():"");if(Wp.has(n))return Wp.get(n);let a=new Intl.Collator(t,e);return Wp.set(n,a),a}let Mt=typeof document<"u"?window.visualViewport:null;function Cj(e){let{direction:t}=ia(),{arrowSize:n=0,targetRef:a,overlayRef:l,scrollRef:s=l,placement:u="bottom",containerPadding:d=12,shouldFlip:f=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:p=0,crossOffset:v=0,shouldUpdatePosition:y=!0,isOpen:x=!0,onClose:$,maxHeight:w,arrowBoundaryOffset:E=0}=e,[C,M]=b.useState(null),T=[y,u,l.current,a.current,s.current,d,f,h,p,v,x,t,w,E,n],O=b.useRef(Mt==null?void 0:Mt.scale);b.useEffect(()=>{x&&(O.current=Mt==null?void 0:Mt.scale)},[x]);let P=b.useCallback(()=>{if(y===!1||!x||!l.current||!a.current||!h||(Mt==null?void 0:Mt.scale)!==O.current)return;let j=null;if(s.current&&s.current.contains(document.activeElement)){var z;let H=(z=document.activeElement)===null||z===void 0?void 0:z.getBoundingClientRect(),te=s.current.getBoundingClientRect();var I;if(j={type:"top",offset:((I=H==null?void 0:H.top)!==null&&I!==void 0?I:0)-te.top},j.offset>te.height/2){j.type="bottom";var L;j.offset=((L=H==null?void 0:H.bottom)!==null&&L!==void 0?L:0)-te.bottom}}let K=l.current;if(!w&&l.current){var U;K.style.top="0px",K.style.bottom="";var R;K.style.maxHeight=((R=(U=window.visualViewport)===null||U===void 0?void 0:U.height)!==null&&R!==void 0?R:window.innerHeight)+"px"}let B=zR({placement:OP(u,t),overlayNode:l.current,targetNode:a.current,scrollNode:s.current||l.current,padding:d,shouldFlip:f,boundaryElement:h,offset:p,crossOffset:v,maxHeight:w,arrowSize:n,arrowBoundaryOffset:E});if(B.position){if(K.style.top="",K.style.bottom="",K.style.left="",K.style.right="",Object.keys(B.position).forEach(H=>K.style[H]=B.position[H]+"px"),K.style.maxHeight=B.maxHeight!=null?B.maxHeight+"px":"",j&&document.activeElement&&s.current){let H=document.activeElement.getBoundingClientRect(),te=s.current.getBoundingClientRect(),W=H[j.type]-te[j.type];s.current.scrollTop+=W-j.offset}M(B)}},T);$t(P,T),zP(P),Qx({ref:l,onResize:P}),Qx({ref:a,onResize:P});let k=b.useRef(!1);$t(()=>{let j,z=()=>{k.current=!0,clearTimeout(j),j=setTimeout(()=>{k.current=!1},500),P()},I=()=>{k.current&&z()};return Mt==null||Mt.addEventListener("resize",z),Mt==null||Mt.addEventListener("scroll",I),()=>{Mt==null||Mt.removeEventListener("resize",z),Mt==null||Mt.removeEventListener("scroll",I)}},[P]);let G=b.useCallback(()=>{k.current||$==null||$()},[$,k]);BR({triggerRef:a,isOpen:x,onClose:$&&G});var D,V;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...C==null?void 0:C.position,maxHeight:(D=C==null?void 0:C.maxHeight)!==null&&D!==void 0?D:"100vh"}},placement:(V=C==null?void 0:C.placement)!==null&&V!==void 0?V:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:C==null?void 0:C.arrowOffsetLeft,top:C==null?void 0:C.arrowOffsetTop}},updatePosition:P}}function zP(e){$t(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function OP(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}let po="default",pg="",pd=new WeakMap;function h4(e){if($v()){if(po==="default"){const t=it(e);pg=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}po="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(pd.set(e,e.style.userSelect),e.style.userSelect="none")}function Wc(e){if($v()){if(po!=="disabled")return;po="restoring",setTimeout(()=>{p$(()=>{if(po==="restoring"){const t=it(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=pg||""),pg="",po="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&pd.has(e)){let t=pd.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),pd.delete(e)}}const zv=oe.createContext({register:()=>{}});zv.displayName="PressResponderContext";function BP(e,t){return t.get?t.get.call(e):t.value}function M$(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function R$(e,t){var n=M$(e,t,"get");return BP(e,n)}function kP(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Bd(e,t,n){var a=M$(e,t,"set");return kP(e,a,n),n}function LP(e){let t=b.useContext(zv);if(t){let{register:n,...a}=t;e=Wt(a,e),n()}return m$(t,e.ref),e}var Yc=new WeakMap;let Xc=class{continuePropagation(){Bd(this,Yc,!1)}get shouldStopPropagation(){return R$(this,Yc)}constructor(t,n,a,l){s$(this,Yc,{writable:!0,value:void 0}),Bd(this,Yc,!0);var s;let u=(s=l==null?void 0:l.target)!==null&&s!==void 0?s:a.currentTarget;const d=u==null?void 0:u.getBoundingClientRect();let f,h=0,p,v=null;a.clientX!=null&&a.clientY!=null&&(p=a.clientX,v=a.clientY),d&&(p!=null&&v!=null?(f=p-d.left,h=v-d.top):(f=d.width/2,h=d.height/2)),this.type=t,this.pointerType=n,this.target=a.currentTarget,this.shiftKey=a.shiftKey,this.metaKey=a.metaKey,this.ctrlKey=a.ctrlKey,this.altKey=a.altKey,this.x=f,this.y=h}};const p4=Symbol("linkClicked");function Dj(e){let{onPress:t,onPressChange:n,onPressStart:a,onPressEnd:l,onPressUp:s,isDisabled:u,isPressed:d,preventFocusOnPress:f,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:p,ref:v,...y}=LP(e),[x,$]=b.useState(!1),w=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:E,removeAllGlobalListeners:C}=SR(),M=Nr((D,V)=>{let j=w.current;if(u||j.didFirePressStart)return!1;let z=!0;if(j.isTriggeringEvent=!0,a){let I=new Xc("pressstart",V,D);a(I),z=I.shouldStopPropagation}return n&&n(!0),j.isTriggeringEvent=!1,j.didFirePressStart=!0,$(!0),z}),T=Nr((D,V,j=!0)=>{let z=w.current;if(!z.didFirePressStart)return!1;z.ignoreClickAfterPress=!0,z.didFirePressStart=!1,z.isTriggeringEvent=!0;let I=!0;if(l){let L=new Xc("pressend",V,D);l(L),I=L.shouldStopPropagation}if(n&&n(!1),$(!1),t&&j&&!u){let L=new Xc("press",V,D);t(L),I&&(I=L.shouldStopPropagation)}return z.isTriggeringEvent=!1,I}),O=Nr((D,V)=>{let j=w.current;if(u)return!1;if(s){j.isTriggeringEvent=!0;let z=new Xc("pressup",V,D);return s(z),j.isTriggeringEvent=!1,z.shouldStopPropagation}return!0}),P=Nr(D=>{let V=w.current;V.isPressed&&V.target&&(V.isOverTarget&&V.pointerType!=null&&T(Aa(V.target,D),V.pointerType,!1),V.isPressed=!1,V.isOverTarget=!1,V.activePointerId=null,V.pointerType=null,C(),p||Wc(V.target))}),k=Nr(D=>{h&&P(D)}),G=b.useMemo(()=>{let D=w.current,V={onKeyDown(z){if(Yp(z.nativeEvent,z.currentTarget)&&z.currentTarget.contains(z.target)){var I;g4(z.target,z.key)&&z.preventDefault();let L=!0;if(!D.isPressed&&!z.repeat){D.target=z.currentTarget,D.isPressed=!0,L=M(z,"keyboard");let K=z.currentTarget,U=R=>{Yp(R,K)&&!R.repeat&&K.contains(R.target)&&D.target&&O(Aa(D.target,R),"keyboard")};E(it(z.currentTarget),"keyup",ol(U,j),!0)}L&&z.stopPropagation(),z.metaKey&&Mo()&&((I=D.metaKeyEvents)===null||I===void 0||I.set(z.key,z.nativeEvent))}else z.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick(z){if(!(z&&!z.currentTarget.contains(z.target))&&z&&z.button===0&&!D.isTriggeringEvent&&!sl.isOpening){let I=!0;if(u&&z.preventDefault(),!D.ignoreClickAfterPress&&!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||ug(z.nativeEvent))){!u&&!f&&tl(z.currentTarget);let L=M(z,"virtual"),K=O(z,"virtual"),U=T(z,"virtual");I=L&&K&&U}D.ignoreEmulatedMouseEvents=!1,D.ignoreClickAfterPress=!1,I&&z.stopPropagation()}}},j=z=>{var I;if(D.isPressed&&D.target&&Yp(z,D.target)){var L;g4(z.target,z.key)&&z.preventDefault();let U=z.target;T(Aa(D.target,z),"keyboard",D.target.contains(U)),C(),z.key!=="Enter"&&Ov(D.target)&&D.target.contains(U)&&!z[p4]&&(z[p4]=!0,sl(D.target,z,!1)),D.isPressed=!1,(L=D.metaKeyEvents)===null||L===void 0||L.delete(z.key)}else if(z.key==="Meta"&&(!((I=D.metaKeyEvents)===null||I===void 0)&&I.size)){var K;let U=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let R of U.values())(K=D.target)===null||K===void 0||K.dispatchEvent(new KeyboardEvent("keyup",R))}};if(typeof PointerEvent<"u"){V.onPointerDown=U=>{if(U.button!==0||!U.currentTarget.contains(U.target))return;if(ER(U.nativeEvent)){D.pointerType="virtual";return}Xp(U.currentTarget)&&U.preventDefault(),D.pointerType=U.pointerType;let R=!0;D.isPressed||(D.isPressed=!0,D.isOverTarget=!0,D.activePointerId=U.pointerId,D.target=U.currentTarget,!u&&!f&&tl(U.currentTarget),p||h4(D.target),R=M(U,D.pointerType),E(it(U.currentTarget),"pointermove",z,!1),E(it(U.currentTarget),"pointerup",I,!1),E(it(U.currentTarget),"pointercancel",K,!1)),R&&U.stopPropagation()},V.onMouseDown=U=>{U.currentTarget.contains(U.target)&&U.button===0&&(Xp(U.currentTarget)&&U.preventDefault(),U.stopPropagation())},V.onPointerUp=U=>{!U.currentTarget.contains(U.target)||D.pointerType==="virtual"||U.button===0&&ro(U,U.currentTarget)&&O(U,D.pointerType||U.pointerType)};let z=U=>{U.pointerId===D.activePointerId&&(D.target&&ro(U,D.target)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,M(Aa(D.target,U),D.pointerType)):D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,T(Aa(D.target,U),D.pointerType,!1),k(U)))},I=U=>{U.pointerId===D.activePointerId&&D.isPressed&&U.button===0&&D.target&&(ro(U,D.target)&&D.pointerType!=null?T(Aa(D.target,U),D.pointerType):D.isOverTarget&&D.pointerType!=null&&T(Aa(D.target,U),D.pointerType,!1),D.isPressed=!1,D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,C(),p||Wc(D.target),"ontouchend"in D.target&&U.pointerType!=="mouse"&&E(D.target,"touchend",L,{once:!0}))},L=U=>{P$(U.currentTarget)&&U.preventDefault()},K=U=>{P(U)};V.onDragStart=U=>{U.currentTarget.contains(U.target)&&P(U)}}else{V.onMouseDown=L=>{if(L.button!==0||!L.currentTarget.contains(L.target))return;if(Xp(L.currentTarget)&&L.preventDefault(),D.ignoreEmulatedMouseEvents){L.stopPropagation();return}D.isPressed=!0,D.isOverTarget=!0,D.target=L.currentTarget,D.pointerType=ug(L.nativeEvent)?"virtual":"mouse",!u&&!f&&tl(L.currentTarget),M(L,D.pointerType)&&L.stopPropagation(),E(it(L.currentTarget),"mouseup",z,!1)},V.onMouseEnter=L=>{if(!L.currentTarget.contains(L.target))return;let K=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!0,K=M(L,D.pointerType)),K&&L.stopPropagation()},V.onMouseLeave=L=>{if(!L.currentTarget.contains(L.target))return;let K=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!1,K=T(L,D.pointerType,!1),k(L)),K&&L.stopPropagation()},V.onMouseUp=L=>{L.currentTarget.contains(L.target)&&!D.ignoreEmulatedMouseEvents&&L.button===0&&O(L,D.pointerType||"mouse")};let z=L=>{if(L.button===0){if(D.isPressed=!1,C(),D.ignoreEmulatedMouseEvents){D.ignoreEmulatedMouseEvents=!1;return}D.target&&ro(L,D.target)&&D.pointerType!=null?T(Aa(D.target,L),D.pointerType):D.target&&D.isOverTarget&&D.pointerType!=null&&T(Aa(D.target,L),D.pointerType,!1),D.isOverTarget=!1}};V.onTouchStart=L=>{if(!L.currentTarget.contains(L.target))return;let K=NP(L.nativeEvent);if(!K)return;D.activePointerId=K.identifier,D.ignoreEmulatedMouseEvents=!0,D.isOverTarget=!0,D.isPressed=!0,D.target=L.currentTarget,D.pointerType="touch",!u&&!f&&tl(L.currentTarget),p||h4(D.target),M(mi(D.target,L),D.pointerType)&&L.stopPropagation(),E(Sr(L.currentTarget),"scroll",I,!0)},V.onTouchMove=L=>{if(!L.currentTarget.contains(L.target))return;if(!D.isPressed){L.stopPropagation();return}let K=m4(L.nativeEvent,D.activePointerId),U=!0;K&&ro(K,L.currentTarget)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,U=M(mi(D.target,L),D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,U=T(mi(D.target,L),D.pointerType,!1),k(mi(D.target,L))),U&&L.stopPropagation()},V.onTouchEnd=L=>{if(!L.currentTarget.contains(L.target))return;if(!D.isPressed){L.stopPropagation();return}let K=m4(L.nativeEvent,D.activePointerId),U=!0;K&&ro(K,L.currentTarget)&&D.pointerType!=null?(O(mi(D.target,L),D.pointerType),U=T(mi(D.target,L),D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(U=T(mi(D.target,L),D.pointerType,!1)),U&&L.stopPropagation(),D.isPressed=!1,D.activePointerId=null,D.isOverTarget=!1,D.ignoreEmulatedMouseEvents=!0,D.target&&!p&&Wc(D.target),C()},V.onTouchCancel=L=>{L.currentTarget.contains(L.target)&&(L.stopPropagation(),D.isPressed&&P(mi(D.target,L)))};let I=L=>{D.isPressed&&L.target.contains(D.target)&&P({currentTarget:D.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};V.onDragStart=L=>{L.currentTarget.contains(L.target)&&P(L)}}return V},[E,u,f,C,p,P,k,T,M,O]);return b.useEffect(()=>()=>{var D;p||Wc((D=w.current.target)!==null&&D!==void 0?D:void 0)},[p]),{isPressed:d||x,pressProps:Wt(y,G)}}function Ov(e){return e.tagName==="A"&&e.hasAttribute("href")}function Yp(e,t){const{key:n,code:a}=e,l=t,s=l.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||a==="Space")&&!(l instanceof Sr(l).HTMLInputElement&&!z$(l,n)||l instanceof Sr(l).HTMLTextAreaElement||l.isContentEditable)&&!((s==="link"||!s&&Ov(l))&&n!=="Enter")}function NP(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function m4(e,t){const n=e.changedTouches;for(let a=0;a<n.length;a++){const l=n[a];if(l.identifier===t)return l}return null}function mi(e,t){let n=0,a=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,a=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:a}}function Aa(e,t){let n=t.clientX,a=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:a}}function _P(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function KP(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ro(e,t){let n=t.getBoundingClientRect(),a=_P(e);return KP(n,a)}function Xp(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function P$(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Ov(e)}function g4(e,t){return e instanceof HTMLInputElement?!z$(e,t):P$(e)}const VP=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function z$(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":VP.has(e.type)}function IP({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return oe.createElement(zv.Provider,{value:t},e)}class FP{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function O$(e){let t=b.useRef({isFocused:!1,observer:null});$t(()=>{const a=t.current;return()=>{a.observer&&(a.observer.disconnect(),a.observer=null)}},[]);let n=Nr(a=>{e==null||e(a)});return b.useCallback(a=>{if(a.target instanceof HTMLButtonElement||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement||a.target instanceof HTMLSelectElement){t.current.isFocused=!0;let l=a.target,s=u=>{t.current.isFocused=!1,l.disabled&&n(new FP("blur",u)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};l.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&l.disabled){var u;(u=t.current.observer)===null||u===void 0||u.disconnect();let d=l===document.activeElement?null:document.activeElement;l.dispatchEvent(new FocusEvent("blur",{relatedTarget:d})),l.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:d}))}}),t.current.observer.observe(l,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function B$(e){let{isDisabled:t,onFocus:n,onBlur:a,onFocusChange:l}=e;const s=b.useCallback(f=>{if(f.target===f.currentTarget)return a&&a(f),l&&l(!1),!0},[a,l]),u=O$(s),d=b.useCallback(f=>{const h=it(f.target);f.target===f.currentTarget&&h.activeElement===f.target&&(n&&n(f),l&&l(!0),u(f))},[l,n,u]);return{focusProps:{onFocus:!t&&(n||l||a)?d:void 0,onBlur:!t&&(a||l)?s:void 0}}}let gl=null,mg=new Set,Fs=new Map,fl=!1,gg=!1;const jP={Tab:!0,Escape:!0};function gf(e,t){for(let n of mg)n(e,t)}function UP(e){return!(e.metaKey||!Mo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function kd(e){fl=!0,UP(e)&&(gl="keyboard",gf("keyboard",e))}function wr(e){gl="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(fl=!0,gf("pointer",e))}function k$(e){ug(e)&&(fl=!0,gl="virtual")}function L$(e){e.target===window||e.target===document||(!fl&&!gg&&(gl="virtual",gf("virtual",e)),fl=!1,gg=!1)}function N$(){fl=!1,gg=!0}function vg(e){if(typeof window>"u"||Fs.get(Sr(e)))return;const t=Sr(e),n=it(e);let a=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){fl=!0,a.apply(this,arguments)},n.addEventListener("keydown",kd,!0),n.addEventListener("keyup",kd,!0),n.addEventListener("click",k$,!0),t.addEventListener("focus",L$,!0),t.addEventListener("blur",N$,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",wr,!0),n.addEventListener("pointermove",wr,!0),n.addEventListener("pointerup",wr,!0)):(n.addEventListener("mousedown",wr,!0),n.addEventListener("mousemove",wr,!0),n.addEventListener("mouseup",wr,!0)),t.addEventListener("beforeunload",()=>{_$(e)},{once:!0}),Fs.set(t,{focus:a})}const _$=(e,t)=>{const n=Sr(e),a=it(e);t&&a.removeEventListener("DOMContentLoaded",t),Fs.has(n)&&(n.HTMLElement.prototype.focus=Fs.get(n).focus,a.removeEventListener("keydown",kd,!0),a.removeEventListener("keyup",kd,!0),a.removeEventListener("click",k$,!0),n.removeEventListener("focus",L$,!0),n.removeEventListener("blur",N$,!1),typeof PointerEvent<"u"?(a.removeEventListener("pointerdown",wr,!0),a.removeEventListener("pointermove",wr,!0),a.removeEventListener("pointerup",wr,!0)):(a.removeEventListener("mousedown",wr,!0),a.removeEventListener("mousemove",wr,!0),a.removeEventListener("mouseup",wr,!0)),Fs.delete(n))};function HP(e){const t=it(e);let n;return t.readyState!=="loading"?vg(e):(n=()=>{vg(e)},t.addEventListener("DOMContentLoaded",n)),()=>_$(e,n)}typeof document<"u"&&HP();function tu(){return gl!=="pointer"}function K$(){return gl}function GP(e){gl=e,gf(e,null)}const qP=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function WP(e,t,n){var a;const l=typeof window<"u"?Sr(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?Sr(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,u=typeof window<"u"?Sr(n==null?void 0:n.target).HTMLElement:HTMLElement,d=typeof window<"u"?Sr(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof l&&!qP.has(n==null||(a=n.target)===null||a===void 0?void 0:a.type)||(n==null?void 0:n.target)instanceof s||(n==null?void 0:n.target)instanceof u&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof d&&!jP[n.key])}function YP(e,t,n){vg(),b.useEffect(()=>{let a=(l,s)=>{WP(!!(n!=null&&n.isTextInput),l,s)&&e(tu())};return mg.add(a),()=>{mg.delete(a)}},t)}function Bv(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:a,onFocusWithinChange:l}=e,s=b.useRef({isFocusWithin:!1}),u=b.useCallback(h=>{s.current.isFocusWithin&&!h.currentTarget.contains(h.relatedTarget)&&(s.current.isFocusWithin=!1,n&&n(h),l&&l(!1))},[n,l,s]),d=O$(u),f=b.useCallback(h=>{!s.current.isFocusWithin&&document.activeElement===h.target&&(a&&a(h),l&&l(!0),s.current.isFocusWithin=!0,d(h))},[a,l,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:u}}}let Ld=!1,Zp=0;function bg(){Ld=!0,setTimeout(()=>{Ld=!1},50)}function v4(e){e.pointerType==="touch"&&bg()}function XP(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",v4):document.addEventListener("touchend",bg),Zp++,()=>{Zp--,!(Zp>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",v4):document.removeEventListener("touchend",bg))}}function kv(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:a,isDisabled:l}=e,[s,u]=b.useState(!1),d=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(XP,[]);let{hoverProps:f,triggerHoverEnd:h}=b.useMemo(()=>{let p=(x,$)=>{if(d.pointerType=$,l||$==="touch"||d.isHovered||!x.currentTarget.contains(x.target))return;d.isHovered=!0;let w=x.currentTarget;d.target=w,t&&t({type:"hoverstart",target:w,pointerType:$}),n&&n(!0),u(!0)},v=(x,$)=>{if(d.pointerType="",d.target=null,$==="touch"||!d.isHovered)return;d.isHovered=!1;let w=x.currentTarget;a&&a({type:"hoverend",target:w,pointerType:$}),n&&n(!1),u(!1)},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=x=>{Ld&&x.pointerType==="mouse"||p(x,x.pointerType)},y.onPointerLeave=x=>{!l&&x.currentTarget.contains(x.target)&&v(x,x.pointerType)}):(y.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=x=>{!d.ignoreEmulatedMouseEvents&&!Ld&&p(x,"mouse"),d.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=x=>{!l&&x.currentTarget.contains(x.target)&&v(x,"mouse")}),{hoverProps:y,triggerHoverEnd:v}},[t,n,a,l,d]);return b.useEffect(()=>{l&&h({currentTarget:d.target},d.pointerType)},[l]),{hoverProps:f,isHovered:s}}function ZP(e){let{ref:t,onInteractOutside:n,isDisabled:a,onInteractOutsideStart:l}=e,s=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),u=Nr(f=>{n&&Zc(f,t)&&(l&&l(f),s.current.isPointerDown=!0)}),d=Nr(f=>{n&&n(f)});b.useEffect(()=>{let f=s.current;if(a)return;const h=t.current,p=it(h);if(typeof PointerEvent<"u"){let v=y=>{f.isPointerDown&&Zc(y,t)&&d(y),f.isPointerDown=!1};return p.addEventListener("pointerdown",u,!0),p.addEventListener("pointerup",v,!0),()=>{p.removeEventListener("pointerdown",u,!0),p.removeEventListener("pointerup",v,!0)}}else{let v=x=>{f.ignoreEmulatedMouseEvents?f.ignoreEmulatedMouseEvents=!1:f.isPointerDown&&Zc(x,t)&&d(x),f.isPointerDown=!1},y=x=>{f.ignoreEmulatedMouseEvents=!0,f.isPointerDown&&Zc(x,t)&&d(x),f.isPointerDown=!1};return p.addEventListener("mousedown",u,!0),p.addEventListener("mouseup",v,!0),p.addEventListener("touchstart",u,!0),p.addEventListener("touchend",y,!0),()=>{p.removeEventListener("mousedown",u,!0),p.removeEventListener("mouseup",v,!0),p.removeEventListener("touchstart",u,!0),p.removeEventListener("touchend",y,!0)}}},[t,a,u,d])}function Zc(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function b4(e){if(!e)return;let t=!0;return n=>{let a={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(a),t&&n.stopPropagation()}}function QP(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:b4(e.onKeyDown),onKeyUp:b4(e.onKeyUp)}}}function Nd(e){const t=it(e);if(K$()==="virtual"){let n=t.activeElement;p$(()=>{t.activeElement===n&&e.isConnected&&tl(e)})}else tl(e)}function JP(e){const t=Sr(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:a}=e.style,l=n!=="none"&&a!=="hidden"&&a!=="collapse";if(l){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:u,visibility:d}=s(e);l=u!=="none"&&d!=="hidden"&&d!=="collapse"}return l}function ez(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function V$(e,t){return e.nodeName!=="#comment"&&JP(e)&&ez(e,t)&&(!e.parentElement||V$(e.parentElement,e))}const y4=oe.createContext(null),yg="react-aria-focus-scope-restore";let Je=null;function tz(e){let{children:t,contain:n,restoreFocus:a,autoFocus:l}=e,s=b.useRef(null),u=b.useRef(null),d=b.useRef([]),{parentNode:f}=b.useContext(y4)||{},h=b.useMemo(()=>new wg({scopeRef:d}),[d]);$t(()=>{let y=f||Kt.root;if(Kt.getTreeNode(y.scopeRef)&&Je&&!_d(Je,y.scopeRef)){let x=Kt.getTreeNode(Je);x&&(y=x)}y.addChild(h),Kt.addNode(h)},[h,f]),$t(()=>{let y=Kt.getTreeNode(d);y&&(y.contain=!!n)},[n]),$t(()=>{var y;let x=(y=s.current)===null||y===void 0?void 0:y.nextSibling,$=[],w=E=>E.stopPropagation();for(;x&&x!==u.current;)$.push(x),x.addEventListener(yg,w),x=x.nextSibling;return d.current=$,()=>{for(let E of $)E.removeEventListener(yg,w)}},[t]),sz(d,a,n),iz(d,n),uz(d,a,n),oz(d,l),b.useEffect(()=>{const y=it(d.current?d.current[0]:void 0).activeElement;let x=null;if(Tr(y,d.current)){for(let $ of Kt.traverse())$.scopeRef&&Tr(y,$.scopeRef.current)&&(x=$);x===Kt.getTreeNode(d)&&(Je=x.scopeRef)}},[d]),$t(()=>()=>{var y,x,$;let w=($=(x=Kt.getTreeNode(d))===null||x===void 0||(y=x.parent)===null||y===void 0?void 0:y.scopeRef)!==null&&$!==void 0?$:null;(d===Je||_d(d,Je))&&(!w||Kt.getTreeNode(w))&&(Je=w),Kt.removeTreeNode(d)},[d]);let p=b.useMemo(()=>nz(d),[]),v=b.useMemo(()=>({focusManager:p,parentNode:h}),[h,p]);return oe.createElement(y4.Provider,{value:v},oe.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,oe.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:u}))}function nz(e){return{focusNext(t={}){let n=e.current,{from:a,tabbable:l,wrap:s,accept:u}=t,d=a||it(n[0]).activeElement,f=n[0].previousElementSibling,h=nl(n),p=za(h,{tabbable:l,accept:u},n);p.currentNode=Tr(d,n)?d:f;let v=p.nextNode();return!v&&s&&(p.currentNode=f,v=p.nextNode()),v&&Pa(v,!0),v},focusPrevious(t={}){let n=e.current,{from:a,tabbable:l,wrap:s,accept:u}=t,d=a||it(n[0]).activeElement,f=n[n.length-1].nextElementSibling,h=nl(n),p=za(h,{tabbable:l,accept:u},n);p.currentNode=Tr(d,n)?d:f;let v=p.previousNode();return!v&&s&&(p.currentNode=f,v=p.previousNode()),v&&Pa(v,!0),v},focusFirst(t={}){let n=e.current,{tabbable:a,accept:l}=t,s=nl(n),u=za(s,{tabbable:a,accept:l},n);u.currentNode=n[0].previousElementSibling;let d=u.nextNode();return d&&Pa(d,!0),d},focusLast(t={}){let n=e.current,{tabbable:a,accept:l}=t,s=nl(n),u=za(s,{tabbable:a,accept:l},n);u.currentNode=n[n.length-1].nextElementSibling;let d=u.previousNode();return d&&Pa(d,!0),d}}}const Lv=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],rz=Lv.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Lv.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const az=Lv.join(':not([hidden]):not([tabindex="-1"]),');function nl(e){return e[0].parentElement}function Ks(e){let t=Kt.getTreeNode(Je);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function iz(e,t){let n=b.useRef(void 0),a=b.useRef(void 0);$t(()=>{let l=e.current;if(!t){a.current&&(cancelAnimationFrame(a.current),a.current=void 0);return}const s=it(l?l[0]:void 0);let u=h=>{if(h.key!=="Tab"||h.altKey||h.ctrlKey||h.metaKey||!Ks(e)||h.isComposing)return;let p=s.activeElement,v=e.current;if(!v||!Tr(p,v))return;let y=nl(v),x=za(y,{tabbable:!0},v);if(!p)return;x.currentNode=p;let $=h.shiftKey?x.previousNode():x.nextNode();$||(x.currentNode=h.shiftKey?v[v.length-1].nextElementSibling:v[0].previousElementSibling,$=h.shiftKey?x.previousNode():x.nextNode()),h.preventDefault(),$&&Pa($,!0)},d=h=>{(!Je||_d(Je,e))&&Tr(h.target,e.current)?(Je=e,n.current=h.target):Ks(e)&&!Ei(h.target,e)?n.current?n.current.focus():Je&&Je.current&&xg(Je.current):Ks(e)&&(n.current=h.target)},f=h=>{a.current&&cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{if(s.activeElement&&Ks(e)&&!Ei(s.activeElement,e))if(Je=e,s.body.contains(h.target)){var p;n.current=h.target,(p=n.current)===null||p===void 0||p.focus()}else Je.current&&xg(Je.current)})};return s.addEventListener("keydown",u,!1),s.addEventListener("focusin",d,!1),l==null||l.forEach(h=>h.addEventListener("focusin",d,!1)),l==null||l.forEach(h=>h.addEventListener("focusout",f,!1)),()=>{s.removeEventListener("keydown",u,!1),s.removeEventListener("focusin",d,!1),l==null||l.forEach(h=>h.removeEventListener("focusin",d,!1)),l==null||l.forEach(h=>h.removeEventListener("focusout",f,!1))}},[e,t]),$t(()=>()=>{a.current&&cancelAnimationFrame(a.current)},[a])}function I$(e){return Ei(e)}function Tr(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ei(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Kt.traverse(Kt.getTreeNode(t)))if(n&&Tr(e,n.current))return!0;return!1}function lz(e){return Ei(e,Je)}function _d(e,t){var n;let a=(n=Kt.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;a;){if(a.scopeRef===e)return!0;a=a.parent}return!1}function Pa(e,t=!1){if(e!=null&&!t)try{Nd(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function F$(e,t=!0){let n=e[0].previousElementSibling,a=nl(e),l=za(a,{tabbable:t},e);l.currentNode=n;let s=l.nextNode();return t&&!s&&(a=nl(e),l=za(a,{tabbable:!1},e),l.currentNode=n,s=l.nextNode()),s}function xg(e,t=!0){Pa(F$(e,t))}function oz(e,t){const n=oe.useRef(t);b.useEffect(()=>{if(n.current){Je=e;const a=it(e.current?e.current[0]:void 0);!Tr(a.activeElement,Je.current)&&e.current&&xg(e.current)}n.current=!1},[e])}function sz(e,t,n){$t(()=>{if(t||n)return;let a=e.current;const l=it(a?a[0]:void 0);let s=u=>{let d=u.target;Tr(d,e.current)?Je=e:I$(d)||(Je=null)};return l.addEventListener("focusin",s,!1),a==null||a.forEach(u=>u.addEventListener("focusin",s,!1)),()=>{l.removeEventListener("focusin",s,!1),a==null||a.forEach(u=>u.removeEventListener("focusin",s,!1))}},[e,t,n])}function x4(e){let t=Kt.getTreeNode(Je);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function uz(e,t,n){const a=b.useRef(typeof document<"u"?it(e.current?e.current[0]:void 0).activeElement:null);$t(()=>{let l=e.current;const s=it(l?l[0]:void 0);if(!t||n)return;let u=()=>{(!Je||_d(Je,e))&&Tr(s.activeElement,e.current)&&(Je=e)};return s.addEventListener("focusin",u,!1),l==null||l.forEach(d=>d.addEventListener("focusin",u,!1)),()=>{s.removeEventListener("focusin",u,!1),l==null||l.forEach(d=>d.removeEventListener("focusin",u,!1))}},[e,n]),$t(()=>{const l=it(e.current?e.current[0]:void 0);if(!t)return;let s=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Ks(e)||u.isComposing)return;let d=l.activeElement;if(!Ei(d,e)||!x4(e))return;let f=Kt.getTreeNode(e);if(!f)return;let h=f.nodeToRestore,p=za(l.body,{tabbable:!0});p.currentNode=d;let v=u.shiftKey?p.previousNode():p.nextNode();if((!h||!l.body.contains(h)||h===l.body)&&(h=void 0,f.nodeToRestore=void 0),(!v||!Ei(v,e))&&h){p.currentNode=h;do v=u.shiftKey?p.previousNode():p.nextNode();while(Ei(v,e));u.preventDefault(),u.stopPropagation(),v?Pa(v,!0):I$(h)?Pa(h,!0):d.blur()}};return n||l.addEventListener("keydown",s,!0),()=>{n||l.removeEventListener("keydown",s,!0)}},[e,t,n]),$t(()=>{const l=it(e.current?e.current[0]:void 0);if(!t)return;let s=Kt.getTreeNode(e);if(s){var u;return s.nodeToRestore=(u=a.current)!==null&&u!==void 0?u:void 0,()=>{let d=Kt.getTreeNode(e);if(!d)return;let f=d.nodeToRestore;if(t&&f&&(l.activeElement&&Ei(l.activeElement,e)||l.activeElement===l.body&&x4(e))){let h=Kt.clone();requestAnimationFrame(()=>{if(l.activeElement===l.body){let p=h.getTreeNode(e);for(;p;){if(p.nodeToRestore&&p.nodeToRestore.isConnected){w4(p.nodeToRestore);return}p=p.parent}for(p=h.getTreeNode(e);p;){if(p.scopeRef&&p.scopeRef.current&&Kt.getTreeNode(p.scopeRef)){let v=F$(p.scopeRef.current,!0);w4(v);return}p=p.parent}}})}}}},[e,t])}function w4(e){e.dispatchEvent(new CustomEvent(yg,{bubbles:!0,cancelable:!0}))&&Pa(e)}function za(e,t,n){let a=t!=null&&t.tabbable?az:rz,l=it(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var u;return!(t==null||(u=t.from)===null||u===void 0)&&u.contains(s)?NodeFilter.FILTER_REJECT:s.matches(a)&&V$(s)&&(!n||Tr(s,n))&&(!(t!=null&&t.accept)||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(l.currentNode=t.from),l}let cz=class j${get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,a){let l=this.fastMap.get(n??null);if(!l)return;let s=new wg({scopeRef:t});l.addChild(s),s.parent=l,this.fastMap.set(t,s),a&&(s.nodeToRestore=a)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let a=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Tr(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let l=n.children;a&&(a.removeChild(n),l.size>0&&l.forEach(s=>a&&a.addChild(s))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new j$;var a;for(let l of this.traverse())n.addTreeNode(l.scopeRef,(a=(t=l.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&a!==void 0?a:null,l.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new wg({scopeRef:null}),this.fastMap.set(null,this.root)}},wg=class{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}},Kt=new cz;function Mj(e={}){let{autoFocus:t=!1,isTextInput:n,within:a}=e,l=b.useRef({isFocused:!1,isFocusVisible:t||tu()}),[s,u]=b.useState(!1),[d,f]=b.useState(()=>l.current.isFocused&&l.current.isFocusVisible),h=b.useCallback(()=>f(l.current.isFocused&&l.current.isFocusVisible),[]),p=b.useCallback(x=>{l.current.isFocused=x,u(x),h()},[h]);YP(x=>{l.current.isFocusVisible=x,h()},[],{isTextInput:n});let{focusProps:v}=B$({isDisabled:a,onFocusChange:p}),{focusWithinProps:y}=Bv({isDisabled:!a,onFocusWithinChange:p});return{isFocused:s,isFocusVisible:d,focusProps:a?y:v}}let dz=oe.createContext(null);function fz(e){let t=b.useContext(dz)||{};m$(t,e);let{ref:n,...a}=t;return a}function hz(e,t){let{focusProps:n}=B$(e),{keyboardProps:a}=QP(e),l=Wt(n,a),s=fz(t),u=e.isDisabled?{}:s,d=b.useRef(e.autoFocus);return b.useEffect(()=>{d.current&&t.current&&Nd(t.current),d.current=!1},[t]),{focusableProps:Wt({...l,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},u)}}function pz(e,t){let n=t==null?void 0:t.isDisabled,[a,l]=b.useState(!1);return $t(()=>{if(e!=null&&e.current&&!n){let s=()=>{if(e.current){let d=za(e.current,{tabbable:!0});l(!!d.nextNode())}};s();let u=new MutationObserver(s);return u.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{u.disconnect()}}}),n?!1:a}const Ma=[];function mz(e,t){let{onClose:n,shouldCloseOnBlur:a,isOpen:l,isDismissable:s=!1,isKeyboardDismissDisabled:u=!1,shouldCloseOnInteractOutside:d}=e;b.useEffect(()=>(l&&Ma.push(t),()=>{let $=Ma.indexOf(t);$>=0&&Ma.splice($,1)}),[l,t]);let f=()=>{Ma[Ma.length-1]===t&&n&&n()},h=$=>{(!d||d($.target))&&Ma[Ma.length-1]===t&&($.stopPropagation(),$.preventDefault())},p=$=>{(!d||d($.target))&&(Ma[Ma.length-1]===t&&($.stopPropagation(),$.preventDefault()),f())},v=$=>{$.key==="Escape"&&!u&&!$.nativeEvent.isComposing&&($.stopPropagation(),$.preventDefault(),f())};ZP({ref:t,onInteractOutside:s&&l?p:void 0,onInteractOutsideStart:h});let{focusWithinProps:y}=Bv({isDisabled:!a,onBlurWithin:$=>{!$.relatedTarget||lz($.relatedTarget)||(!d||d($.relatedTarget))&&(n==null||n())}}),x=$=>{$.target===$.currentTarget&&$.preventDefault()};return{overlayProps:{onKeyDown:v,...y},underlayProps:{onPointerDown:x}}}function Rj(e,t,n){let{type:a}=e,{isOpen:l}=t;b.useEffect(()=>{n&&n.current&&b$.set(n.current,t.close)});let s;a==="menu"?s=!0:a==="listbox"&&(s="listbox");let u=Cr();return{triggerProps:{"aria-haspopup":s,"aria-expanded":l,"aria-controls":l?u:void 0,onPress:t.toggle},overlayProps:{id:u}}}const Qp=typeof document<"u"&&window.visualViewport,gz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Qc=0,Jp;function vz(e={}){let{isDisabled:t}=e;$t(()=>{if(!t)return Qc++,Qc===1&&($v()?Jp=yz():Jp=bz()),()=>{Qc--,Qc===0&&Jp()}},[t])}function bz(){return ol(mo(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),mo(document.documentElement,"overflow","hidden"))}function yz(){let e,t,n=h=>{e=g$(h.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=mo(e,"overscrollBehavior","contain"))},a=h=>{if(!e||e===document.documentElement||e===document.body){h.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&h.preventDefault()},l=h=>{let p=h.target;$4(p)&&p!==document.activeElement&&(h.preventDefault(),d(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""})),t&&t()},s=h=>{let p=h.target;$4(p)&&(d(),p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",Qp&&(Qp.height<window.innerHeight?requestAnimationFrame(()=>{S4(p)}):Qp.addEventListener("resize",()=>S4(p),{once:!0}))}))},u=null,d=()=>{if(u)return;let h=()=>{window.scrollTo(0,0)},p=window.pageXOffset,v=window.pageYOffset;u=ol(zs(window,"scroll",h),mo(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),mo(document.documentElement,"overflow","hidden"),mo(document.body,"marginTop",`-${v}px`),()=>{window.scrollTo(p,v)}),window.scrollTo(0,0)},f=ol(zs(document,"touchstart",n,{passive:!1,capture:!0}),zs(document,"touchmove",a,{passive:!1,capture:!0}),zs(document,"touchend",l,{passive:!1,capture:!0}),zs(document,"focus",s,!0));return()=>{t==null||t(),u==null||u(),f()}}function mo(e,t,n){let a=e.style[t];return e.style[t]=n,()=>{e.style[t]=a}}function zs(e,t,n,a){return e.addEventListener(t,n,a),()=>{e.removeEventListener(t,n,a)}}function S4(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let a=g$(n);if(a!==document.documentElement&&a!==document.body&&a!==n){let l=a.getBoundingClientRect().top,s=n.getBoundingClientRect().top;s>l+n.clientHeight&&(a.scrollTop+=s-l)}n=a.parentElement}}function $4(e){return e instanceof HTMLInputElement&&!gz.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Sg=oe.createContext(null);function xz(e){let{children:t}=e,n=b.useContext(Sg),[a,l]=b.useState(0),s=b.useMemo(()=>({parent:n,modalCount:a,addModal(){l(u=>u+1),n&&n.addModal()},removeModal(){l(u=>u-1),n&&n.removeModal()}}),[n,a]);return oe.createElement(Sg.Provider,{value:s},t)}function wz(){let e=b.useContext(Sg);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function Sz(e){let{modalProviderProps:t}=wz();return oe.createElement("div",{"data-overlay-container":!0,...e,...t})}function $z(e){return oe.createElement(xz,null,oe.createElement(Sz,e))}function Pj(e){let t=ml(),{portalContainer:n=t?null:document.body,...a}=e;if(oe.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let l=oe.createElement($z,a);return SS.createPortal(l,n)}var U$={};U$={dismiss:"تجاهل"};var H$={};H$={dismiss:"Отхвърляне"};var G$={};G$={dismiss:"Odstranit"};var q$={};q$={dismiss:"Luk"};var W$={};W$={dismiss:"Schließen"};var Y$={};Y$={dismiss:"Απόρριψη"};var X$={};X$={dismiss:"Dismiss"};var Z$={};Z$={dismiss:"Descartar"};var Q$={};Q$={dismiss:"Lõpeta"};var J$={};J$={dismiss:"Hylkää"};var e2={};e2={dismiss:"Rejeter"};var t2={};t2={dismiss:"התעלם"};var n2={};n2={dismiss:"Odbaci"};var r2={};r2={dismiss:"Elutasítás"};var a2={};a2={dismiss:"Ignora"};var i2={};i2={dismiss:"閉じる"};var l2={};l2={dismiss:"무시"};var o2={};o2={dismiss:"Atmesti"};var s2={};s2={dismiss:"Nerādīt"};var u2={};u2={dismiss:"Lukk"};var c2={};c2={dismiss:"Negeren"};var d2={};d2={dismiss:"Zignoruj"};var f2={};f2={dismiss:"Descartar"};var h2={};h2={dismiss:"Dispensar"};var p2={};p2={dismiss:"Revocare"};var m2={};m2={dismiss:"Пропустить"};var g2={};g2={dismiss:"Zrušiť"};var v2={};v2={dismiss:"Opusti"};var b2={};b2={dismiss:"Odbaci"};var y2={};y2={dismiss:"Avvisa"};var x2={};x2={dismiss:"Kapat"};var w2={};w2={dismiss:"Скасувати"};var S2={};S2={dismiss:"取消"};var $2={};$2={dismiss:"關閉"};var E2={};E2={"ar-AE":U$,"bg-BG":H$,"cs-CZ":G$,"da-DK":q$,"de-DE":W$,"el-GR":Y$,"en-US":X$,"es-ES":Z$,"et-EE":Q$,"fi-FI":J$,"fr-FR":e2,"he-IL":t2,"hr-HR":n2,"hu-HU":r2,"it-IT":a2,"ja-JP":i2,"ko-KR":l2,"lt-LT":o2,"lv-LV":s2,"nb-NO":u2,"nl-NL":c2,"pl-PL":d2,"pt-BR":f2,"pt-PT":h2,"ro-RO":p2,"ru-RU":m2,"sk-SK":g2,"sl-SI":v2,"sr-SP":b2,"sv-SE":y2,"tr-TR":x2,"uk-UA":w2,"zh-CN":S2,"zh-TW":$2};function Nv(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function C2(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function T2(e){let t=b.useRef({isFocused:!1,observer:null});Vr(()=>{const a=t.current;return()=>{a.observer&&(a.observer.disconnect(),a.observer=null)}},[]);let n=nn(a=>{e==null||e(a)});return b.useCallback(a=>{if(a.target instanceof HTMLButtonElement||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement||a.target instanceof HTMLSelectElement){t.current.isFocused=!0;let l=a.target,s=u=>{if(t.current.isFocused=!1,l.disabled){let d=Nv(u);n(d)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};l.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&l.disabled){var u;(u=t.current.observer)===null||u===void 0||u.disconnect();let d=l===document.activeElement?null:document.activeElement;l.dispatchEvent(new FocusEvent("blur",{relatedTarget:d})),l.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:d}))}}),t.current.observer.observe(l,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Kd=!1;function Ez(e){for(;e&&!D$(e);)e=e.parentElement;let t=_r(e),n=t.document.activeElement;if(!n||n===e)return;Kd=!0;let a=!1,l=p=>{(p.target===n||a)&&p.stopImmediatePropagation()},s=p=>{(p.target===n||a)&&(p.stopImmediatePropagation(),!e&&!a&&(a=!0,La(n),f()))},u=p=>{(p.target===e||a)&&p.stopImmediatePropagation()},d=p=>{(p.target===e||a)&&(p.stopImmediatePropagation(),a||(a=!0,La(n),f()))};t.addEventListener("blur",l,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",d,!0),t.addEventListener("focus",u,!0);let f=()=>{cancelAnimationFrame(h),t.removeEventListener("blur",l,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",d,!0),t.removeEventListener("focus",u,!0),Kd=!1,a=!1},h=requestAnimationFrame(f);return f}let go="default",$g="",md=new WeakMap;function Cz(e){if(Av()){if(go==="default"){const t=qt(e);$g=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}go="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";md.set(e,e.style[t]),e.style[t]="none"}}function E4(e){if(Av()){if(go!=="disabled")return;go="restoring",setTimeout(()=>{S$(()=>{if(go==="restoring"){const t=qt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=$g||""),$g="",go="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&md.has(e)){let t=md.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),md.delete(e)}}const D2=oe.createContext({register:()=>{}});D2.displayName="PressResponderContext";function Tz(e){let t=b.useContext(D2);if(t){let{register:n,...a}=t;e=ft(a,e),n()}return E$(t,e.ref),e}var Jc=new WeakMap;class ed{continuePropagation(){Bd(this,Jc,!1)}get shouldStopPropagation(){return R$(this,Jc)}constructor(t,n,a,l){s$(this,Jc,{writable:!0,value:void 0}),Bd(this,Jc,!0);var s;let u=(s=l==null?void 0:l.target)!==null&&s!==void 0?s:a.currentTarget;const d=u==null?void 0:u.getBoundingClientRect();let f,h=0,p,v=null;a.clientX!=null&&a.clientY!=null&&(p=a.clientX,v=a.clientY),d&&(p!=null&&v!=null?(f=p-d.left,h=v-d.top):(f=d.width/2,h=d.height/2)),this.type=t,this.pointerType=n,this.target=a.currentTarget,this.shiftKey=a.shiftKey,this.metaKey=a.metaKey,this.ctrlKey=a.ctrlKey,this.altKey=a.altKey,this.x=f,this.y=h}}const C4=Symbol("linkClicked"),T4="react-aria-pressable-style",D4="data-react-aria-pressable";function Na(e){let{onPress:t,onPressChange:n,onPressStart:a,onPressEnd:l,onPressUp:s,onClick:u,isDisabled:d,isPressed:f,preventFocusOnPress:h,shouldCancelOnPointerExit:p,allowTextSelectionOnPress:v,ref:y,...x}=Tz(e),[$,w]=b.useState(!1),E=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:C,removeAllGlobalListeners:M}=pf(),T=nn((z,I)=>{let L=E.current;if(d||L.didFirePressStart)return!1;let K=!0;if(L.isTriggeringEvent=!0,a){let U=new ed("pressstart",I,z);a(U),K=U.shouldStopPropagation}return n&&n(!0),L.isTriggeringEvent=!1,L.didFirePressStart=!0,w(!0),K}),O=nn((z,I,L=!0)=>{let K=E.current;if(!K.didFirePressStart)return!1;K.didFirePressStart=!1,K.isTriggeringEvent=!0;let U=!0;if(l){let R=new ed("pressend",I,z);l(R),U=R.shouldStopPropagation}if(n&&n(!1),w(!1),t&&L&&!d){let R=new ed("press",I,z);t(R),U&&(U=R.shouldStopPropagation)}return K.isTriggeringEvent=!1,U}),P=nn((z,I)=>{let L=E.current;if(d)return!1;if(s){L.isTriggeringEvent=!0;let K=new ed("pressup",I,z);return s(K),L.isTriggeringEvent=!1,K.shouldStopPropagation}return!0}),k=nn(z=>{let I=E.current;if(I.isPressed&&I.target){I.didFirePressStart&&I.pointerType!=null&&O(Wi(I.target,z),I.pointerType,!1),I.isPressed=!1,I.isOverTarget=!1,I.activePointerId=null,I.pointerType=null,M(),v||E4(I.target);for(let L of I.disposables)L();I.disposables=[]}}),G=nn(z=>{p&&k(z)}),D=nn(z=>{d||u==null||u(z)}),V=nn((z,I)=>{if(!d&&u){let L=new MouseEvent("click",z);C2(L,I),u(Nv(L))}}),j=b.useMemo(()=>{let z=E.current,I={onKeyDown(K){if(em(K.nativeEvent,K.currentTarget)&&Kn(K.currentTarget,Dn(K.nativeEvent))){var U;A4(Dn(K.nativeEvent),K.key)&&K.preventDefault();let R=!0;if(!z.isPressed&&!K.repeat){z.target=K.currentTarget,z.isPressed=!0,z.pointerType="keyboard",R=T(K,"keyboard");let B=K.currentTarget,H=te=>{em(te,B)&&!te.repeat&&Kn(B,Dn(te))&&z.target&&P(Wi(z.target,te),"keyboard")};C(qt(K.currentTarget),"keyup",cf(H,L),!0)}R&&K.stopPropagation(),K.metaKey&&cl()&&((U=z.metaKeyEvents)===null||U===void 0||U.set(K.key,K.nativeEvent))}else K.key==="Meta"&&(z.metaKeyEvents=new Map)},onClick(K){if(!(K&&!Kn(K.currentTarget,Dn(K.nativeEvent)))&&K&&K.button===0&&!z.isTriggeringEvent&&!dl.isOpening){let U=!0;if(d&&K.preventDefault(),!z.ignoreEmulatedMouseEvents&&!z.isPressed&&(z.pointerType==="virtual"||T$(K.nativeEvent))){let R=T(K,"virtual"),B=P(K,"virtual"),H=O(K,"virtual");D(K),U=R&&B&&H}else if(z.isPressed&&z.pointerType!=="keyboard"){let R=z.pointerType||K.nativeEvent.pointerType||"virtual",B=P(Wi(K.currentTarget,K),R),H=O(Wi(K.currentTarget,K),R,!0);U=B&&H,z.isOverTarget=!1,D(K),k(K)}z.ignoreEmulatedMouseEvents=!1,U&&K.stopPropagation()}}},L=K=>{var U;if(z.isPressed&&z.target&&em(K,z.target)){var R;A4(Dn(K),K.key)&&K.preventDefault();let H=Dn(K),te=Kn(z.target,Dn(K));O(Wi(z.target,K),"keyboard",te),te&&V(K,z.target),M(),K.key!=="Enter"&&_v(z.target)&&Kn(z.target,H)&&!K[C4]&&(K[C4]=!0,dl(z.target,K,!1)),z.isPressed=!1,(R=z.metaKeyEvents)===null||R===void 0||R.delete(K.key)}else if(K.key==="Meta"&&(!((U=z.metaKeyEvents)===null||U===void 0)&&U.size)){var B;let H=z.metaKeyEvents;z.metaKeyEvents=void 0;for(let te of H.values())(B=z.target)===null||B===void 0||B.dispatchEvent(new KeyboardEvent("keyup",te))}};if(typeof PointerEvent<"u"){I.onPointerDown=R=>{if(R.button!==0||!Kn(R.currentTarget,Dn(R.nativeEvent)))return;if(SP(R.nativeEvent)){z.pointerType="virtual";return}z.pointerType=R.pointerType;let B=!0;if(!z.isPressed){z.isPressed=!0,z.isOverTarget=!0,z.activePointerId=R.pointerId,z.target=R.currentTarget,v||Cz(z.target),B=T(R,z.pointerType);let H=Dn(R.nativeEvent);"releasePointerCapture"in H&&H.releasePointerCapture(R.pointerId),C(qt(R.currentTarget),"pointerup",K,!1),C(qt(R.currentTarget),"pointercancel",U,!1)}B&&R.stopPropagation()},I.onMouseDown=R=>{if(Kn(R.currentTarget,Dn(R.nativeEvent))&&R.button===0){if(h){let B=Ez(R.target);B&&z.disposables.push(B)}R.stopPropagation()}},I.onPointerUp=R=>{!Kn(R.currentTarget,Dn(R.nativeEvent))||z.pointerType==="virtual"||R.button===0&&!z.isPressed&&P(R,z.pointerType||R.pointerType)},I.onPointerEnter=R=>{R.pointerId===z.activePointerId&&z.target&&!z.isOverTarget&&z.pointerType!=null&&(z.isOverTarget=!0,T(Wi(z.target,R),z.pointerType))},I.onPointerLeave=R=>{R.pointerId===z.activePointerId&&z.target&&z.isOverTarget&&z.pointerType!=null&&(z.isOverTarget=!1,O(Wi(z.target,R),z.pointerType,!1),G(R))};let K=R=>{if(R.pointerId===z.activePointerId&&z.isPressed&&R.button===0&&z.target){if(Kn(z.target,Dn(R))&&z.pointerType!=null){let B=!1,H=setTimeout(()=>{z.isPressed&&z.target instanceof HTMLElement&&(B?k(R):(La(z.target),z.target.click()))},80);C(R.currentTarget,"click",()=>B=!0,!0),z.disposables.push(()=>clearTimeout(H))}else k(R);z.isOverTarget=!1}},U=R=>{k(R)};I.onDragStart=R=>{Kn(R.currentTarget,Dn(R.nativeEvent))&&k(R)}}return I},[C,d,h,M,v,k,G,O,T,P,D,V]);return b.useEffect(()=>{if(!y)return;const z=qt(y.current);if(!z||!z.head||z.getElementById(T4))return;const I=z.createElement("style");I.id=T4,I.textContent=`
@layer {
  [${D4}] {
    touch-action: pan-x pan-y pinch-zoom;
  }
}
    `.trim(),z.head.prepend(I)},[y]),b.useEffect(()=>{let z=E.current;return()=>{var I;v||E4((I=z.target)!==null&&I!==void 0?I:void 0);for(let L of z.disposables)L();z.disposables=[]}},[v]),{isPressed:f||$,pressProps:ft(x,j,{[D4]:!0})}}function _v(e){return e.tagName==="A"&&e.hasAttribute("href")}function em(e,t){const{key:n,code:a}=e,l=t,s=l.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||a==="Space")&&!(l instanceof _r(l).HTMLInputElement&&!A2(l,n)||l instanceof _r(l).HTMLTextAreaElement||l.isContentEditable)&&!((s==="link"||!s&&_v(l))&&n!=="Enter")}function Wi(e,t){let n=t.clientX,a=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:a}}function Dz(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_v(e)}function A4(e,t){return e instanceof HTMLInputElement?!A2(e,t):Dz(e)}const Az=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function A2(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Az.has(e.type)}let _a=null,nu=new Set,js=new Map,hl=!1,Eg=!1;const Mz={Tab:!0,Escape:!0};function vf(e,t){for(let n of nu)n(e,t)}function Rz(e){return!(e.metaKey||!cl()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Vd(e){hl=!0,Rz(e)&&(_a="keyboard",vf("keyboard",e))}function To(e){_a="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(hl=!0,vf("pointer",e))}function M2(e){T$(e)&&(hl=!0,_a="virtual")}function R2(e){e.target===window||e.target===document||Kd||!e.isTrusted||(!hl&&!Eg&&(_a="virtual",vf("virtual",e)),hl=!1,Eg=!1)}function P2(){Kd||(hl=!1,Eg=!0)}function Id(e){if(typeof window>"u"||typeof document>"u"||js.get(_r(e)))return;const t=_r(e),n=qt(e);let a=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){hl=!0,a.apply(this,arguments)},n.addEventListener("keydown",Vd,!0),n.addEventListener("keyup",Vd,!0),n.addEventListener("click",M2,!0),t.addEventListener("focus",R2,!0),t.addEventListener("blur",P2,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",To,!0),n.addEventListener("pointermove",To,!0),n.addEventListener("pointerup",To,!0)),t.addEventListener("beforeunload",()=>{z2(e)},{once:!0}),js.set(t,{focus:a})}const z2=(e,t)=>{const n=_r(e),a=qt(e);t&&a.removeEventListener("DOMContentLoaded",t),js.has(n)&&(n.HTMLElement.prototype.focus=js.get(n).focus,a.removeEventListener("keydown",Vd,!0),a.removeEventListener("keyup",Vd,!0),a.removeEventListener("click",M2,!0),n.removeEventListener("focus",R2,!0),n.removeEventListener("blur",P2,!1),typeof PointerEvent<"u"&&(a.removeEventListener("pointerdown",To,!0),a.removeEventListener("pointermove",To,!0),a.removeEventListener("pointerup",To,!0)),js.delete(n))};function Pz(e){const t=qt(e);let n;return t.readyState!=="loading"?Id(e):(n=()=>{Id(e)},t.addEventListener("DOMContentLoaded",n)),()=>z2(e,n)}typeof document<"u"&&Pz();function bf(){return _a!=="pointer"}function Cg(){return _a}function zz(e){_a=e,vf(e,null)}function Oz(){Id();let[e,t]=b.useState(_a);return b.useEffect(()=>{let n=()=>{t(_a)};return nu.add(n),()=>{nu.delete(n)}},[]),ml()?null:e}const Bz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kz(e,t,n){let a=qt(n==null?void 0:n.target);const l=typeof window<"u"?_r(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?_r(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,u=typeof window<"u"?_r(n==null?void 0:n.target).HTMLElement:HTMLElement,d=typeof window<"u"?_r(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||a.activeElement instanceof l&&!Bz.has(a.activeElement.type)||a.activeElement instanceof s||a.activeElement instanceof u&&a.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof d&&!Mz[n.key])}function Lz(e,t,n){Id(),b.useEffect(()=>{let a=(l,s)=>{kz(!!(n!=null&&n.isTextInput),l,s)&&e(bf())};return nu.add(a),()=>{nu.delete(a)}},t)}function tr(e){const t=qt(e),n=ul(t);if(Cg()==="virtual"){let a=n;S$(()=>{ul(t)===a&&e.isConnected&&La(e)})}else La(e)}function Kv(e){let{isDisabled:t,onFocus:n,onBlur:a,onFocusChange:l}=e;const s=b.useCallback(f=>{if(f.target===f.currentTarget)return a&&a(f),l&&l(!1),!0},[a,l]),u=T2(s),d=b.useCallback(f=>{const h=qt(f.target),p=h?ul(h):ul();f.target===f.currentTarget&&p===Dn(f.nativeEvent)&&(n&&n(f),l&&l(!0),u(f))},[l,n,u]);return{focusProps:{onFocus:!t&&(n||l||a)?d:void 0,onBlur:!t&&(a||l)?s:void 0}}}function M4(e){if(!e)return;let t=!0;return n=>{let a={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(a),t&&n.stopPropagation()}}function O2(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:M4(e.onKeyDown),onKeyUp:M4(e.onKeyUp)}}}let Nz=oe.createContext(null);function _z(e){let t=b.useContext(Nz)||{};E$(t,e);let{ref:n,...a}=t;return a}function bu(e,t){let{focusProps:n}=Kv(e),{keyboardProps:a}=O2(e),l=ft(n,a),s=_z(t),u=e.isDisabled?{}:s,d=b.useRef(e.autoFocus);b.useEffect(()=>{d.current&&t.current&&tr(t.current),d.current=!1},[t]);let f=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(f=void 0),{focusableProps:ft({...l,tabIndex:f},u)}}function B2(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:a,onFocusWithinChange:l}=e,s=b.useRef({isFocusWithin:!1}),{addGlobalListener:u,removeAllGlobalListeners:d}=pf(),f=b.useCallback(v=>{v.currentTarget.contains(v.target)&&s.current.isFocusWithin&&!v.currentTarget.contains(v.relatedTarget)&&(s.current.isFocusWithin=!1,d(),n&&n(v),l&&l(!1))},[n,l,s,d]),h=T2(f),p=b.useCallback(v=>{if(!v.currentTarget.contains(v.target))return;const y=qt(v.target),x=ul(y);if(!s.current.isFocusWithin&&x===Dn(v.nativeEvent)){a&&a(v),l&&l(!0),s.current.isFocusWithin=!0,h(v);let $=v.currentTarget;u(y,"focus",w=>{if(s.current.isFocusWithin&&!Kn($,w.target)){let E=new y.defaultView.FocusEvent("blur",{relatedTarget:w.target});C2(E,$);let C=Nv(E);f(C)}},{capture:!0})}},[a,l,h,u,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:p,onBlur:f}}}let Tg=!1,td=0;function Kz(){Tg=!0,setTimeout(()=>{Tg=!1},50)}function R4(e){e.pointerType==="touch"&&Kz()}function Vz(){if(!(typeof document>"u"))return td===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",R4),td++,()=>{td--,!(td>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",R4)}}function Iz(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:a,isDisabled:l}=e,[s,u]=b.useState(!1),d=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(Vz,[]);let{addGlobalListener:f,removeAllGlobalListeners:h}=pf(),{hoverProps:p,triggerHoverEnd:v}=b.useMemo(()=>{let y=(w,E)=>{if(d.pointerType=E,l||E==="touch"||d.isHovered||!w.currentTarget.contains(w.target))return;d.isHovered=!0;let C=w.currentTarget;d.target=C,f(qt(w.target),"pointerover",M=>{d.isHovered&&d.target&&!Kn(d.target,M.target)&&x(M,M.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:C,pointerType:E}),n&&n(!0),u(!0)},x=(w,E)=>{let C=d.target;d.pointerType="",d.target=null,!(E==="touch"||!d.isHovered||!C)&&(d.isHovered=!1,h(),a&&a({type:"hoverend",target:C,pointerType:E}),n&&n(!1),u(!1))},$={};return typeof PointerEvent<"u"&&($.onPointerEnter=w=>{Tg&&w.pointerType==="mouse"||y(w,w.pointerType)},$.onPointerLeave=w=>{!l&&w.currentTarget.contains(w.target)&&x(w,w.pointerType)}),{hoverProps:$,triggerHoverEnd:x}},[t,n,a,l,d,f,h]);return b.useEffect(()=>{l&&v({currentTarget:d.target},d.pointerType)},[l]),{hoverProps:p,isHovered:s}}const Fz=500;function k2(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:a,onLongPress:l,threshold:s=Fz,accessibilityDescription:u}=e;const d=b.useRef(void 0);let{addGlobalListener:f,removeGlobalListener:h}=pf(),{pressProps:p}=Na({isDisabled:t,onPressStart(y){if(y.continuePropagation(),(y.pointerType==="mouse"||y.pointerType==="touch")&&(n&&n({...y,type:"longpressstart"}),d.current=setTimeout(()=>{y.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),qt(y.target).activeElement!==y.target&&La(y.target),l&&l({...y,type:"longpress"}),d.current=void 0},s),y.pointerType==="touch")){let x=$=>{$.preventDefault()};f(y.target,"contextmenu",x,{once:!0}),f(window,"pointerup",()=>{setTimeout(()=>{h(y.target,"contextmenu",x)},30)},{once:!0})}},onPressEnd(y){d.current&&clearTimeout(d.current),a&&(y.pointerType==="mouse"||y.pointerType==="touch")&&a({...y,type:"longpressend"})}}),v=mf(l&&!t?u:void 0);return{longPressProps:ft(p,v)}}const P4={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function jz(e={}){let{style:t,isFocusable:n}=e,[a,l]=b.useState(!1),{focusWithinProps:s}=B2({isDisabled:!n,onFocusWithinChange:d=>l(d)}),u=b.useMemo(()=>a?t:t?{...P4,...t}:P4,[a]);return{visuallyHiddenProps:{...s,style:u}}}function Uz(e){let{children:t,elementType:n="div",isFocusable:a,style:l,...s}=e,{visuallyHiddenProps:u}=jz(e);return oe.createElement(n,ft(s,u),t)}function Hz(e){return e&&e.__esModule?e.default:e}function zj(e){let{onDismiss:t,...n}=e,a=Ia(Hz(E2),"@react-aria/overlays"),l=uf(n,a.format("dismiss")),s=()=>{t&&t()};return oe.createElement(Uz,null,oe.createElement("button",{...l,tabIndex:-1,onClick:s,style:{width:1,height:1}}))}let Os=new WeakMap,gr=[];function Gz(e,t=document.body){let n=new Set(e),a=new Set,l=f=>{for(let y of f.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(y);let h=y=>{if(n.has(y)||y.parentElement&&a.has(y.parentElement)&&y.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let x of n)if(y.contains(x))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},p=document.createTreeWalker(f,NodeFilter.SHOW_ELEMENT,{acceptNode:h}),v=h(f);if(v===NodeFilter.FILTER_ACCEPT&&s(f),v!==NodeFilter.FILTER_REJECT){let y=p.nextNode();for(;y!=null;)s(y),y=p.nextNode()}},s=f=>{var h;let p=(h=Os.get(f))!==null&&h!==void 0?h:0;f.getAttribute("aria-hidden")==="true"&&p===0||(p===0&&f.setAttribute("aria-hidden","true"),a.add(f),Os.set(f,p+1))};gr.length&&gr[gr.length-1].disconnect(),l(t);let u=new MutationObserver(f=>{for(let h of f)if(!(h.type!=="childList"||h.addedNodes.length===0)&&![...n,...a].some(p=>p.contains(h.target))){for(let p of h.removedNodes)p instanceof Element&&(n.delete(p),a.delete(p));for(let p of h.addedNodes)(p instanceof HTMLElement||p instanceof SVGElement)&&(p.dataset.liveAnnouncer==="true"||p.dataset.reactAriaTopLayer==="true")?n.add(p):p instanceof Element&&l(p)}});u.observe(t,{childList:!0,subtree:!0});let d={observe(){u.observe(t,{childList:!0,subtree:!0})},disconnect(){u.disconnect()}};return gr.push(d),()=>{u.disconnect();for(let f of a){let h=Os.get(f);h!=null&&(h===1?(f.removeAttribute("aria-hidden"),Os.delete(f)):Os.set(f,h-1))}d===gr[gr.length-1]?(gr.pop(),gr.length&&gr[gr.length-1].observe()):gr.splice(gr.indexOf(d),1)}}const qz=b.createContext({});function Wz(){var e;return(e=b.useContext(qz))!==null&&e!==void 0?e:{}}const L2=oe.createContext(null);function Oj(e){let t=ml(),{portalContainer:n=t?null:document.body,isExiting:a}=e,[l,s]=b.useState(!1),u=b.useMemo(()=>({contain:l,setContain:s}),[l,s]),{getContainer:d}=Wz();if(!e.portalContainer&&d&&(n=d()),!n)return null;let f=e.children;return e.disableFocusManagement||(f=oe.createElement(tz,{restoreFocus:!0,contain:l&&!a},f)),f=oe.createElement(L2.Provider,{value:u},oe.createElement(IP,null,f)),SS.createPortal(f,n)}function N2(){let e=b.useContext(L2),t=e==null?void 0:e.setContain;$t(()=>{t==null||t(!0)},[t])}const ru=b.createContext({});function yu(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Vv=typeof window<"u",Iv=Vv?b.useLayoutEffect:b.useEffect,yf=b.createContext(null);function Fv(e,t){e.indexOf(t)===-1&&e.push(t)}function jv(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ka=(e,t,n)=>n>t?t:n<e?e:n;let Uv=()=>{};const Va={},_2=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function K2(e){return typeof e=="object"&&e!==null}const V2=e=>/^0[^.\s]+$/u.test(e);function Hv(e){let t;return()=>(t===void 0&&(t=e()),t)}const Er=e=>e,Yz=(e,t)=>n=>t(e(n)),xu=(...e)=>e.reduce(Yz),au=(e,t,n)=>{const a=t-e;return a===0?1:(n-e)/a};class Gv{constructor(){this.subscriptions=[]}add(t){return Fv(this.subscriptions,t),()=>jv(this.subscriptions,t)}notify(t,n,a){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](t,n,a);else for(let s=0;s<l;s++){const u=this.subscriptions[s];u&&u(t,n,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Qr=e=>e*1e3,$r=e=>e/1e3;function I2(e,t){return t?e*(1e3/t):0}const F2=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Xz=1e-7,Zz=12;function Qz(e,t,n,a,l){let s,u,d=0;do u=t+(n-t)/2,s=F2(u,a,l)-e,s>0?n=u:t=u;while(Math.abs(s)>Xz&&++d<Zz);return u}function wu(e,t,n,a){if(e===t&&n===a)return Er;const l=s=>Qz(s,0,1,e,n);return s=>s===0||s===1?s:F2(l(s),t,a)}const j2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,U2=e=>t=>1-e(1-t),H2=wu(.33,1.53,.69,.99),qv=U2(H2),G2=j2(qv),q2=e=>(e*=2)<1?.5*qv(e):.5*(2-Math.pow(2,-10*(e-1))),Wv=e=>1-Math.sin(Math.acos(e)),W2=U2(Wv),Y2=j2(Wv),Jz=wu(.42,0,1,1),eO=wu(0,0,.58,1),X2=wu(.42,0,.58,1),tO=e=>Array.isArray(e)&&typeof e[0]!="number",Z2=e=>Array.isArray(e)&&typeof e[0]=="number",nO={linear:Er,easeIn:Jz,easeInOut:X2,easeOut:eO,circIn:Wv,circInOut:Y2,circOut:W2,backIn:qv,backInOut:G2,backOut:H2,anticipate:q2},rO=e=>typeof e=="string",z4=e=>{if(Z2(e)){Uv(e.length===4);const[t,n,a,l]=e;return wu(t,n,a,l)}else if(rO(e))return nO[e];return e},nd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function aO(e,t){let n=new Set,a=new Set,l=!1,s=!1;const u=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function f(p){u.has(p)&&(h.schedule(p),e()),p(d)}const h={schedule:(p,v=!1,y=!1)=>{const $=y&&l?n:a;return v&&u.add(p),$.has(p)||$.add(p),p},cancel:p=>{a.delete(p),u.delete(p)},process:p=>{if(d=p,l){s=!0;return}l=!0,[n,a]=[a,n],n.forEach(f),n.clear(),l=!1,s&&(s=!1,h.process(p))}};return h}const iO=40;function Q2(e,t){let n=!1,a=!0;const l={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,u=nd.reduce((T,O)=>(T[O]=aO(s),T),{}),{setup:d,read:f,resolveKeyframes:h,preUpdate:p,update:v,preRender:y,render:x,postRender:$}=u,w=()=>{const T=Va.useManualTiming?l.timestamp:performance.now();n=!1,Va.useManualTiming||(l.delta=a?1e3/60:Math.max(Math.min(T-l.timestamp,iO),1)),l.timestamp=T,l.isProcessing=!0,d.process(l),f.process(l),h.process(l),p.process(l),v.process(l),y.process(l),x.process(l),$.process(l),l.isProcessing=!1,n&&t&&(a=!1,e(w))},E=()=>{n=!0,a=!0,l.isProcessing||e(w)};return{schedule:nd.reduce((T,O)=>{const P=u[O];return T[O]=(k,G=!1,D=!1)=>(n||E(),P.schedule(k,G,D)),T},{}),cancel:T=>{for(let O=0;O<nd.length;O++)u[nd[O]].cancel(T)},state:l,steps:u}}const{schedule:lt,cancel:Ti,state:fn,steps:tm}=Q2(typeof requestAnimationFrame<"u"?requestAnimationFrame:Er,!0);let gd;function lO(){gd=void 0}const Vn={now:()=>(gd===void 0&&Vn.set(fn.isProcessing||Va.useManualTiming?fn.timestamp:performance.now()),gd),set:e=>{gd=e,queueMicrotask(lO)}},J2=e=>t=>typeof t=="string"&&t.startsWith(e),Yv=J2("--"),oO=J2("var(--"),Xv=e=>oO(e)?sO.test(e.split("/*")[0].trim()):!1,sO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Bo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},iu={...Bo,transform:e=>Ka(0,1,e)},rd={...Bo,default:1},Us=e=>Math.round(e*1e5)/1e5,Zv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uO(e){return e==null}const cO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Qv=(e,t)=>n=>!!(typeof n=="string"&&cO.test(n)&&n.startsWith(e)||t&&!uO(n)&&Object.prototype.hasOwnProperty.call(n,t)),e5=(e,t,n)=>a=>{if(typeof a!="string")return a;const[l,s,u,d]=a.match(Zv);return{[e]:parseFloat(l),[t]:parseFloat(s),[n]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},dO=e=>Ka(0,255,e),nm={...Bo,transform:e=>Math.round(dO(e))},rl={test:Qv("rgb","red"),parse:e5("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:a=1})=>"rgba("+nm.transform(e)+", "+nm.transform(t)+", "+nm.transform(n)+", "+Us(iu.transform(a))+")"};function fO(e){let t="",n="",a="",l="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),a=e.substring(5,7),l=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),a=e.substring(3,4),l=e.substring(4,5),t+=t,n+=n,a+=a,l+=l),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(a,16),alpha:l?parseInt(l,16)/255:1}}const Dg={test:Qv("#"),parse:fO,transform:rl.transform},Su=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vi=Su("deg"),Jr=Su("%"),xe=Su("px"),hO=Su("vh"),pO=Su("vw"),O4={...Jr,parse:e=>Jr.parse(e)/100,transform:e=>Jr.transform(e*100)},vo={test:Qv("hsl","hue"),parse:e5("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+Jr.transform(Us(t))+", "+Jr.transform(Us(n))+", "+Us(iu.transform(a))+")"},Vt={test:e=>rl.test(e)||Dg.test(e)||vo.test(e),parse:e=>rl.test(e)?rl.parse(e):vo.test(e)?vo.parse(e):Dg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?rl.transform(e):vo.transform(e),getAnimatableNone:e=>{const t=Vt.parse(e);return t.alpha=0,Vt.transform(t)}},mO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gO(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Zv))==null?void 0:t.length)||0)+(((n=e.match(mO))==null?void 0:n.length)||0)>0}const t5="number",n5="color",vO="var",bO="var(",B4="${}",yO=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function lu(e){const t=e.toString(),n=[],a={color:[],number:[],var:[]},l=[];let s=0;const d=t.replace(yO,f=>(Vt.test(f)?(a.color.push(s),l.push(n5),n.push(Vt.parse(f))):f.startsWith(bO)?(a.var.push(s),l.push(vO),n.push(f)):(a.number.push(s),l.push(t5),n.push(parseFloat(f))),++s,B4)).split(B4);return{values:n,split:d,indexes:a,types:l}}function r5(e){return lu(e).values}function a5(e){const{split:t,types:n}=lu(e),a=t.length;return l=>{let s="";for(let u=0;u<a;u++)if(s+=t[u],l[u]!==void 0){const d=n[u];d===t5?s+=Us(l[u]):d===n5?s+=Vt.transform(l[u]):s+=l[u]}return s}}const xO=e=>typeof e=="number"?0:Vt.test(e)?Vt.getAnimatableNone(e):e;function wO(e){const t=r5(e);return a5(e)(t.map(xO))}const Di={test:gO,parse:r5,createTransformer:a5,getAnimatableNone:wO};function rm(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function SO({hue:e,saturation:t,lightness:n,alpha:a}){e/=360,t/=100,n/=100;let l=0,s=0,u=0;if(!t)l=s=u=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;l=rm(f,d,e+1/3),s=rm(f,d,e),u=rm(f,d,e-1/3)}return{red:Math.round(l*255),green:Math.round(s*255),blue:Math.round(u*255),alpha:a}}function Fd(e,t){return n=>n>0?t:e}const pt=(e,t,n)=>e+(t-e)*n,am=(e,t,n)=>{const a=e*e,l=n*(t*t-a)+a;return l<0?0:Math.sqrt(l)},$O=[Dg,rl,vo],EO=e=>$O.find(t=>t.test(e));function k4(e){const t=EO(e);if(!t)return!1;let n=t.parse(e);return t===vo&&(n=SO(n)),n}const L4=(e,t)=>{const n=k4(e),a=k4(t);if(!n||!a)return Fd(e,t);const l={...n};return s=>(l.red=am(n.red,a.red,s),l.green=am(n.green,a.green,s),l.blue=am(n.blue,a.blue,s),l.alpha=pt(n.alpha,a.alpha,s),rl.transform(l))},Ag=new Set(["none","hidden"]);function CO(e,t){return Ag.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function TO(e,t){return n=>pt(e,t,n)}function Jv(e){return typeof e=="number"?TO:typeof e=="string"?Xv(e)?Fd:Vt.test(e)?L4:MO:Array.isArray(e)?i5:typeof e=="object"?Vt.test(e)?L4:DO:Fd}function i5(e,t){const n=[...e],a=n.length,l=e.map((s,u)=>Jv(s)(s,t[u]));return s=>{for(let u=0;u<a;u++)n[u]=l[u](s);return n}}function DO(e,t){const n={...e,...t},a={};for(const l in n)e[l]!==void 0&&t[l]!==void 0&&(a[l]=Jv(e[l])(e[l],t[l]));return l=>{for(const s in a)n[s]=a[s](l);return n}}function AO(e,t){const n=[],a={color:0,var:0,number:0};for(let l=0;l<t.values.length;l++){const s=t.types[l],u=e.indexes[s][a[s]],d=e.values[u]??0;n[l]=d,a[s]++}return n}const MO=(e,t)=>{const n=Di.createTransformer(t),a=lu(e),l=lu(t);return a.indexes.var.length===l.indexes.var.length&&a.indexes.color.length===l.indexes.color.length&&a.indexes.number.length>=l.indexes.number.length?Ag.has(e)&&!l.values.length||Ag.has(t)&&!a.values.length?CO(e,t):xu(i5(AO(a,l),l.values),n):Fd(e,t)};function l5(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?pt(e,t,n):Jv(e)(e,t)}const RO=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>lt.update(t,n),stop:()=>Ti(t),now:()=>fn.isProcessing?fn.timestamp:Vn.now()}},o5=(e,t,n=10)=>{let a="";const l=Math.max(Math.round(t/n),2);for(let s=0;s<l;s++)a+=Math.round(e(s/(l-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`},jd=2e4;function eb(e){let t=0;const n=50;let a=e.next(t);for(;!a.done&&t<jd;)t+=n,a=e.next(t);return t>=jd?1/0:t}function PO(e,t=100,n){const a=n({...e,keyframes:[0,t]}),l=Math.min(eb(a),jd);return{type:"keyframes",ease:s=>a.next(l*s).value/t,duration:$r(l)}}const zO=5;function s5(e,t,n){const a=Math.max(t-zO,0);return I2(n-e(a),t-a)}const wt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},im=.001;function OO({duration:e=wt.duration,bounce:t=wt.bounce,velocity:n=wt.velocity,mass:a=wt.mass}){let l,s,u=1-t;u=Ka(wt.minDamping,wt.maxDamping,u),e=Ka(wt.minDuration,wt.maxDuration,$r(e)),u<1?(l=h=>{const p=h*u,v=p*e,y=p-n,x=Mg(h,u),$=Math.exp(-v);return im-y/x*$},s=h=>{const v=h*u*e,y=v*n+n,x=Math.pow(u,2)*Math.pow(h,2)*e,$=Math.exp(-v),w=Mg(Math.pow(h,2),u);return(-l(h)+im>0?-1:1)*((y-x)*$)/w}):(l=h=>{const p=Math.exp(-h*e),v=(h-n)*e+1;return-im+p*v},s=h=>{const p=Math.exp(-h*e),v=(n-h)*(e*e);return p*v});const d=5/e,f=kO(l,s,d);if(e=Qr(e),isNaN(f))return{stiffness:wt.stiffness,damping:wt.damping,duration:e};{const h=Math.pow(f,2)*a;return{stiffness:h,damping:u*2*Math.sqrt(a*h),duration:e}}}const BO=12;function kO(e,t,n){let a=n;for(let l=1;l<BO;l++)a=a-e(a)/t(a);return a}function Mg(e,t){return e*Math.sqrt(1-t*t)}const LO=["duration","bounce"],NO=["stiffness","damping","mass"];function N4(e,t){return t.some(n=>e[n]!==void 0)}function _O(e){let t={velocity:wt.velocity,stiffness:wt.stiffness,damping:wt.damping,mass:wt.mass,isResolvedFromDuration:!1,...e};if(!N4(e,NO)&&N4(e,LO))if(e.visualDuration){const n=e.visualDuration,a=2*Math.PI/(n*1.2),l=a*a,s=2*Ka(.05,1,1-(e.bounce||0))*Math.sqrt(l);t={...t,mass:wt.mass,stiffness:l,damping:s}}else{const n=OO(e);t={...t,...n,mass:wt.mass},t.isResolvedFromDuration=!0}return t}function Ud(e=wt.visualDuration,t=wt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:a,restDelta:l}=n;const s=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],d={done:!1,value:s},{stiffness:f,damping:h,mass:p,duration:v,velocity:y,isResolvedFromDuration:x}=_O({...n,velocity:-$r(n.velocity||0)}),$=y||0,w=h/(2*Math.sqrt(f*p)),E=u-s,C=$r(Math.sqrt(f/p)),M=Math.abs(E)<5;a||(a=M?wt.restSpeed.granular:wt.restSpeed.default),l||(l=M?wt.restDelta.granular:wt.restDelta.default);let T;if(w<1){const P=Mg(C,w);T=k=>{const G=Math.exp(-w*C*k);return u-G*(($+w*C*E)/P*Math.sin(P*k)+E*Math.cos(P*k))}}else if(w===1)T=P=>u-Math.exp(-C*P)*(E+($+C*E)*P);else{const P=C*Math.sqrt(w*w-1);T=k=>{const G=Math.exp(-w*C*k),D=Math.min(P*k,300);return u-G*(($+w*C*E)*Math.sinh(D)+P*E*Math.cosh(D))/P}}const O={calculatedDuration:x&&v||null,next:P=>{const k=T(P);if(x)d.done=P>=v;else{let G=P===0?$:0;w<1&&(G=P===0?Qr($):s5(T,P,k));const D=Math.abs(G)<=a,V=Math.abs(u-k)<=l;d.done=D&&V}return d.value=d.done?u:k,d},toString:()=>{const P=Math.min(eb(O),jd),k=o5(G=>O.next(P*G).value,P,30);return P+"ms "+k},toTransition:()=>{}};return O}Ud.applyToOptions=e=>{const t=PO(e,100,Ud);return e.ease=t.ease,e.duration=Qr(t.duration),e.type="keyframes",e};function Rg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:a=325,bounceDamping:l=10,bounceStiffness:s=500,modifyTarget:u,min:d,max:f,restDelta:h=.5,restSpeed:p}){const v=e[0],y={done:!1,value:v},x=D=>d!==void 0&&D<d||f!==void 0&&D>f,$=D=>d===void 0?f:f===void 0||Math.abs(d-D)<Math.abs(f-D)?d:f;let w=n*t;const E=v+w,C=u===void 0?E:u(E);C!==E&&(w=C-v);const M=D=>-w*Math.exp(-D/a),T=D=>C+M(D),O=D=>{const V=M(D),j=T(D);y.done=Math.abs(V)<=h,y.value=y.done?C:j};let P,k;const G=D=>{x(y.value)&&(P=D,k=Ud({keyframes:[y.value,$(y.value)],velocity:s5(T,D,y.value),damping:l,stiffness:s,restDelta:h,restSpeed:p}))};return G(0),{calculatedDuration:null,next:D=>{let V=!1;return!k&&P===void 0&&(V=!0,O(D),G(D)),P!==void 0&&D>=P?k.next(D-P):(!V&&O(D),y)}}}function KO(e,t,n){const a=[],l=n||Va.mix||l5,s=e.length-1;for(let u=0;u<s;u++){let d=l(e[u],e[u+1]);if(t){const f=Array.isArray(t)?t[u]||Er:t;d=xu(f,d)}a.push(d)}return a}function VO(e,t,{clamp:n=!0,ease:a,mixer:l}={}){const s=e.length;if(Uv(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=KO(t,a,l),f=d.length,h=p=>{if(u&&p<e[0])return t[0];let v=0;if(f>1)for(;v<e.length-2&&!(p<e[v+1]);v++);const y=au(e[v],e[v+1],p);return d[v](y)};return n?p=>h(Ka(e[0],e[s-1],p)):h}function IO(e,t){const n=e[e.length-1];for(let a=1;a<=t;a++){const l=au(0,t,a);e.push(pt(n,1,l))}}function FO(e){const t=[0];return IO(t,e.length-1),t}function jO(e,t){return e.map(n=>n*t)}function UO(e,t){return e.map(()=>t||X2).splice(0,e.length-1)}function Hs({duration:e=300,keyframes:t,times:n,ease:a="easeInOut"}){const l=tO(a)?a.map(z4):z4(a),s={done:!1,value:t[0]},u=jO(n&&n.length===t.length?n:FO(t),e),d=VO(u,t,{ease:Array.isArray(l)?l:UO(t,l)});return{calculatedDuration:e,next:f=>(s.value=d(f),s.done=f>=e,s)}}const HO=e=>e!==null;function tb(e,{repeat:t,repeatType:n="loop"},a,l=1){const s=e.filter(HO),d=l<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!d||a===void 0?s[d]:a}const GO={decay:Rg,inertia:Rg,tween:Hs,keyframes:Hs,spring:Ud};function u5(e){typeof e.type=="string"&&(e.type=GO[e.type])}class nb{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const qO=e=>e/100;class rb extends nb{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var a,l;const{motionValue:n}=this.options;n&&n.updatedAt!==Vn.now()&&this.tick(Vn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(l=(a=this.options).onStop)==null||l.call(a))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;u5(t);const{type:n=Hs,repeat:a=0,repeatDelay:l=0,repeatType:s,velocity:u=0}=t;let{keyframes:d}=t;const f=n||Hs;f!==Hs&&typeof d[0]!="number"&&(this.mixKeyframes=xu(qO,l5(d[0],d[1])),d=[0,100]);const h=f({...t,keyframes:d});s==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...d].reverse(),velocity:-u})),h.calculatedDuration===null&&(h.calculatedDuration=eb(h));const{calculatedDuration:p}=h;this.calculatedDuration=p,this.resolvedDuration=p+l,this.totalDuration=this.resolvedDuration*(a+1)-l,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:a,totalDuration:l,mixKeyframes:s,mirroredGenerator:u,resolvedDuration:d,calculatedDuration:f}=this;if(this.startTime===null)return a.next(0);const{delay:h=0,keyframes:p,repeat:v,repeatType:y,repeatDelay:x,type:$,onUpdate:w,finalKeyframe:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-l/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const C=this.currentTime-h*(this.playbackSpeed>=0?1:-1),M=this.playbackSpeed>=0?C<0:C>l;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let T=this.currentTime,O=a;if(v){const D=Math.min(this.currentTime,l)/d;let V=Math.floor(D),j=D%1;!j&&D>=1&&(j=1),j===1&&V--,V=Math.min(V,v+1),!!(V%2)&&(y==="reverse"?(j=1-j,x&&(j-=x/d)):y==="mirror"&&(O=u)),T=Ka(0,1,j)*d}const P=M?{done:!1,value:p[0]}:O.next(T);s&&(P.value=s(P.value));let{done:k}=P;!M&&f!==null&&(k=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const G=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return G&&$!==Rg&&(P.value=tb(p,this.options,E,this.speed)),w&&w(P.value),G&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return $r(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+$r(t)}get time(){return $r(this.currentTime)}set time(t){var n;t=Qr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Vn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=$r(this.currentTime))}play(){var l,s;if(this.isStopped)return;const{driver:t=RO,startTime:n}=this.options;this.driver||(this.driver=t(u=>this.tick(u))),(s=(l=this.options).onPlay)==null||s.call(l);const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=n??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Vn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function WO(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const al=e=>e*180/Math.PI,Pg=e=>{const t=al(Math.atan2(e[1],e[0]));return zg(t)},YO={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Pg,rotateZ:Pg,skewX:e=>al(Math.atan(e[1])),skewY:e=>al(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},zg=e=>(e=e%360,e<0&&(e+=360),e),_4=Pg,K4=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),V4=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),XO={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:K4,scaleY:V4,scale:e=>(K4(e)+V4(e))/2,rotateX:e=>zg(al(Math.atan2(e[6],e[5]))),rotateY:e=>zg(al(Math.atan2(-e[2],e[0]))),rotateZ:_4,rotate:_4,skewX:e=>al(Math.atan(e[4])),skewY:e=>al(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Og(e){return e.includes("scale")?1:0}function Bg(e,t){if(!e||e==="none")return Og(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,l;if(n)a=XO,l=n;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=YO,l=d}if(!l)return Og(t);const s=a[t],u=l[1].split(",").map(QO);return typeof s=="function"?s(u):u[s]}const ZO=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Bg(n,t)};function QO(e){return parseFloat(e.trim())}const ko=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vl=new Set(ko),I4=e=>e===Bo||e===xe,JO=new Set(["x","y","z"]),eB=ko.filter(e=>!JO.has(e));function tB(e){const t=[];return eB.forEach(n=>{const a=e.getValue(n);a!==void 0&&(t.push([n,a.get()]),a.set(n.startsWith("scale")?1:0))}),t}const il={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Bg(t,"x"),y:(e,{transform:t})=>Bg(t,"y")};il.translateX=il.x;il.translateY=il.y;const ll=new Set;let kg=!1,Lg=!1,Ng=!1;function c5(){if(Lg){const e=Array.from(ll).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),n=new Map;t.forEach(a=>{const l=tB(a);l.length&&(n.set(a,l),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();const l=n.get(a);l&&l.forEach(([s,u])=>{var d;(d=a.getValue(s))==null||d.set(u)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}Lg=!1,kg=!1,ll.forEach(e=>e.complete(Ng)),ll.clear()}function d5(){ll.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Lg=!0)})}function nB(){Ng=!0,d5(),c5(),Ng=!1}class ab{constructor(t,n,a,l,s,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=a,this.motionValue=l,this.element=s,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(ll.add(this),kg||(kg=!0,lt.read(d5),lt.resolveKeyframes(c5))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:a,motionValue:l}=this;if(t[0]===null){const s=l==null?void 0:l.get(),u=t[t.length-1];if(s!==void 0)t[0]=s;else if(a&&n){const d=a.readValue(n,u);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=u),l&&s===void 0&&l.set(t[0])}WO(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ll.delete(this)}cancel(){this.state==="scheduled"&&(ll.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const rB=e=>e.startsWith("--");function aB(e,t,n){rB(t)?e.style.setProperty(t,n):e.style[t]=n}const iB=Hv(()=>window.ScrollTimeline!==void 0),lB={};function oB(e,t){const n=Hv(e);return()=>lB[t]??n()}const f5=oB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Vs=([e,t,n,a])=>`cubic-bezier(${e}, ${t}, ${n}, ${a})`,F4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vs([0,.65,.55,1]),circOut:Vs([.55,0,1,.45]),backIn:Vs([.31,.01,.66,-.59]),backOut:Vs([.33,1.53,.69,.99])};function h5(e,t){if(e)return typeof e=="function"?f5()?o5(e,t):"ease-out":Z2(e)?Vs(e):Array.isArray(e)?e.map(n=>h5(n,t)||F4.easeOut):F4[e]}function sB(e,t,n,{delay:a=0,duration:l=300,repeat:s=0,repeatType:u="loop",ease:d="easeOut",times:f}={},h=void 0){const p={[t]:n};f&&(p.offset=f);const v=h5(d,l);Array.isArray(v)&&(p.easing=v);const y={delay:a,duration:l,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:s+1,direction:u==="reverse"?"alternate":"normal"};return h&&(y.pseudoElement=h),e.animate(p,y)}function p5(e){return typeof e=="function"&&"applyToOptions"in e}function uB({type:e,...t}){return p5(e)&&f5()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class cB extends nb{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:a,keyframes:l,pseudoElement:s,allowFlatten:u=!1,finalKeyframe:d,onComplete:f}=t;this.isPseudoElement=!!s,this.allowFlatten=u,this.options=t,Uv(typeof t.type!="string");const h=uB(t);this.animation=sB(n,a,l,h,s),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=tb(l,this.options,d,this.speed);this.updateMotionValue?this.updateMotionValue(p):aB(n,a,p),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,a;const t=((a=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:a.call(n).duration)||0;return $r(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+$r(t)}get time(){return $r(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Qr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var a;return this.allowFlatten&&((a=this.animation.effect)==null||a.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&iB()?(this.animation.timeline=t,Er):n(this)}}const m5={anticipate:q2,backInOut:G2,circInOut:Y2};function dB(e){return e in m5}function fB(e){typeof e.ease=="string"&&dB(e.ease)&&(e.ease=m5[e.ease])}const j4=10;class hB extends cB{constructor(t){fB(t),u5(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:a,onComplete:l,element:s,...u}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const d=new rb({...u,autoplay:!1}),f=Qr(this.finishedTime??this.time);n.setWithVelocity(d.sample(f-j4).value,d.sample(f).value,j4),d.stop()}}const U4=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Di.test(e)||e==="0")&&!e.startsWith("url("));function pB(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function mB(e,t,n,a){const l=e[0];if(l===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],u=U4(l,t),d=U4(s,t);return!u||!d?!1:pB(e)||(n==="spring"||p5(n))&&a}function _g(e){e.duration=0,e.type="keyframes"}const gB=new Set(["opacity","clipPath","filter","transform"]),vB=Hv(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function bB(e){var p;const{motionValue:t,name:n,repeatDelay:a,repeatType:l,damping:s,type:u}=e;if(!(((p=t==null?void 0:t.owner)==null?void 0:p.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=t.owner.getProps();return vB()&&n&&gB.has(n)&&(n!=="transform"||!h)&&!f&&!a&&l!=="mirror"&&s!==0&&u!=="inertia"}const yB=40;class xB extends nb{constructor({autoplay:t=!0,delay:n=0,type:a="keyframes",repeat:l=0,repeatDelay:s=0,repeatType:u="loop",keyframes:d,name:f,motionValue:h,element:p,...v}){var $;super(),this.stop=()=>{var w,E;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(E=this.keyframeResolver)==null||E.cancel()},this.createdAt=Vn.now();const y={autoplay:t,delay:n,type:a,repeat:l,repeatDelay:s,repeatType:u,name:f,motionValue:h,element:p,...v},x=(p==null?void 0:p.KeyframeResolver)||ab;this.keyframeResolver=new x(d,(w,E,C)=>this.onKeyframesResolved(w,E,y,!C),f,h,p),($=this.keyframeResolver)==null||$.scheduleResolve()}onKeyframesResolved(t,n,a,l){this.keyframeResolver=void 0;const{name:s,type:u,velocity:d,delay:f,isHandoff:h,onUpdate:p}=a;this.resolvedAt=Vn.now(),mB(t,s,u,d)||((Va.instantAnimations||!f)&&(p==null||p(tb(t,a,n))),t[0]=t[t.length-1],_g(a),a.repeat=0);const y={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>yB?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...a,keyframes:t},x=!h&&bB(y)?new hB({...y,element:y.motionValue.owner.current}):new rb(y);x.finished.then(()=>this.notifyFinished()).catch(Er),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),nB()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const wB=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function SB(e){const t=wB.exec(e);if(!t)return[,];const[,n,a,l]=t;return[`--${n??a}`,l]}function g5(e,t,n=1){const[a,l]=SB(e);if(!a)return;const s=window.getComputedStyle(t).getPropertyValue(a);if(s){const u=s.trim();return _2(u)?parseFloat(u):u}return Xv(l)?g5(l,t,n+1):l}function ib(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const v5=new Set(["width","height","top","left","right","bottom",...ko]),$B={test:e=>e==="auto",parse:e=>e},b5=e=>t=>t.test(e),y5=[Bo,xe,Jr,vi,pO,hO,$B],H4=e=>y5.find(b5(e));function EB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||V2(e):!0}const CB=new Set(["brightness","contrast","saturate","opacity"]);function TB(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[a]=n.match(Zv)||[];if(!a)return e;const l=n.replace(a,"");let s=CB.has(t)?1:0;return a!==n&&(s*=100),t+"("+s+l+")"}const DB=/\b([a-z-]*)\(.*?\)/gu,Kg={...Di,getAnimatableNone:e=>{const t=e.match(DB);return t?t.map(TB).join(" "):e}},G4={...Bo,transform:Math.round},AB={rotate:vi,rotateX:vi,rotateY:vi,rotateZ:vi,scale:rd,scaleX:rd,scaleY:rd,scaleZ:rd,skew:vi,skewX:vi,skewY:vi,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:iu,originX:O4,originY:O4,originZ:xe},lb={borderWidth:xe,borderTopWidth:xe,borderRightWidth:xe,borderBottomWidth:xe,borderLeftWidth:xe,borderRadius:xe,radius:xe,borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomRightRadius:xe,borderBottomLeftRadius:xe,width:xe,maxWidth:xe,height:xe,maxHeight:xe,top:xe,right:xe,bottom:xe,left:xe,padding:xe,paddingTop:xe,paddingRight:xe,paddingBottom:xe,paddingLeft:xe,margin:xe,marginTop:xe,marginRight:xe,marginBottom:xe,marginLeft:xe,backgroundPositionX:xe,backgroundPositionY:xe,...AB,zIndex:G4,fillOpacity:iu,strokeOpacity:iu,numOctaves:G4},MB={...lb,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:Kg,WebkitFilter:Kg},x5=e=>MB[e];function w5(e,t){let n=x5(e);return n!==Kg&&(n=Di),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const RB=new Set(["auto","none","0"]);function PB(e,t,n){let a=0,l;for(;a<e.length&&!l;){const s=e[a];typeof s=="string"&&!RB.has(s)&&lu(s).values.length&&(l=e[a]),a++}if(l&&n)for(const s of t)e[s]=w5(n,l)}class zB extends ab{constructor(t,n,a,l,s){super(t,n,a,l,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:a}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),Xv(h))){const p=g5(h,n.current);p!==void 0&&(t[f]=p),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!v5.has(a)||t.length!==2)return;const[l,s]=t,u=H4(l),d=H4(s);if(u!==d)if(I4(u)&&I4(d))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else il[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,a=[];for(let l=0;l<t.length;l++)(t[l]===null||EB(t[l]))&&a.push(l);a.length&&PB(t,a,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=il[a](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const l=n[n.length-1];l!==void 0&&t.getValue(a,l).jump(l,!1)}measureEndState(){var d;const{element:t,name:n,unresolvedKeyframes:a}=this;if(!t||!t.current)return;const l=t.getValue(n);l&&l.jump(this.measuredOrigin,!1);const s=a.length-1,u=a[s];a[s]=il[n](t.measureViewportBox(),window.getComputedStyle(t.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),(d=this.removedTransforms)!=null&&d.length&&this.removedTransforms.forEach(([f,h])=>{t.getValue(f).set(h)}),this.resolveNoneKeyframes()}}const OB=new Set(["opacity","clipPath","filter","transform"]);function BB(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;const l=(n==null?void 0:n[e])??a.querySelectorAll(e);return l?Array.from(l):[]}return Array.from(e)}const S5=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function $5(e){return K2(e)&&"offsetHeight"in e}const q4=30,kB=e=>!isNaN(parseFloat(e));class E5{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{var s;const l=Vn.now();if(this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Vn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=kB(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Gv);const a=this.events[t].add(n);return t==="change"?()=>{a(),lt.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,a){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Vn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>q4)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,q4);return I2(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ro(e,t){return new E5(e,t)}const{schedule:ob}=Q2(queueMicrotask,!1),Br={x:!1,y:!1};function C5(){return Br.x||Br.y}function LB(e){return e==="x"||e==="y"?Br[e]?null:(Br[e]=!0,()=>{Br[e]=!1}):Br.x||Br.y?null:(Br.x=Br.y=!0,()=>{Br.x=Br.y=!1})}function T5(e,t){const n=BB(e),a=new AbortController,l={passive:!0,...t,signal:a.signal};return[n,l,()=>a.abort()]}function W4(e){return!(e.pointerType==="touch"||C5())}function NB(e,t,n={}){const[a,l,s]=T5(e,n),u=d=>{if(!W4(d))return;const{target:f}=d,h=t(f,d);if(typeof h!="function"||!f)return;const p=v=>{W4(v)&&(h(v),f.removeEventListener("pointerleave",p))};f.addEventListener("pointerleave",p,l)};return a.forEach(d=>{d.addEventListener("pointerenter",u,l)}),s}const D5=(e,t)=>t?e===t?!0:D5(e,t.parentElement):!1,sb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_B=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function KB(e){return _B.has(e.tagName)||e.tabIndex!==-1}const vd=new WeakSet;function Y4(e){return t=>{t.key==="Enter"&&e(t)}}function lm(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const VB=(e,t)=>{const n=e.currentTarget;if(!n)return;const a=Y4(()=>{if(vd.has(n))return;lm(n,"down");const l=Y4(()=>{lm(n,"up")}),s=()=>lm(n,"cancel");n.addEventListener("keyup",l,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",a,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",a),t)};function X4(e){return sb(e)&&!C5()}function IB(e,t,n={}){const[a,l,s]=T5(e,n),u=d=>{const f=d.currentTarget;if(!X4(d))return;vd.add(f);const h=t(f,d),p=(x,$)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",y),vd.has(f)&&vd.delete(f),X4(x)&&typeof h=="function"&&h(x,{success:$})},v=x=>{p(x,f===window||f===document||n.useGlobalTarget||D5(f,x.target))},y=x=>{p(x,!1)};window.addEventListener("pointerup",v,l),window.addEventListener("pointercancel",y,l)};return a.forEach(d=>{(n.useGlobalTarget?window:d).addEventListener("pointerdown",u,l),$5(d)&&(d.addEventListener("focus",h=>VB(h,l)),!KB(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),s}function A5(e){return K2(e)&&"ownerSVGElement"in e}function FB(e){return A5(e)&&e.tagName==="svg"}const yn=e=>!!(e&&e.getVelocity),jB=[...y5,Vt,Di],UB=e=>jB.find(b5(e)),ou=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Z4(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function HB(...e){return t=>{let n=!1;const a=e.map(l=>{const s=Z4(l,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let l=0;l<a.length;l++){const s=a[l];typeof s=="function"?s():Z4(e[l],null)}}}}function GB(...e){return b.useCallback(HB(...e),e)}class qB extends b.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const a=n.offsetParent,l=$5(a)&&a.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=l-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function WB({children:e,isPresent:t,anchorX:n,root:a}){const l=b.useId(),s=b.useRef(null),u=b.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=b.useContext(ou),f=GB(s,e==null?void 0:e.ref);return b.useInsertionEffect(()=>{const{width:h,height:p,top:v,left:y,right:x}=u.current;if(t||!s.current||!h||!p)return;const $=n==="left"?`left: ${y}`:`right: ${x}`;s.current.dataset.motionPopId=l;const w=document.createElement("style");d&&(w.nonce=d);const E=a??document.head;return E.appendChild(w),w.sheet&&w.sheet.insertRule(`
          [data-motion-pop-id="${l}"] {
            position: absolute !important;
            width: ${h}px !important;
            height: ${p}px !important;
            ${$}px !important;
            top: ${v}px !important;
          }
        `),()=>{E.contains(w)&&E.removeChild(w)}},[t]),St.jsx(qB,{isPresent:t,childRef:s,sizeRef:u,children:b.cloneElement(e,{ref:f})})}const YB=({children:e,initial:t,isPresent:n,onExitComplete:a,custom:l,presenceAffectsLayout:s,mode:u,anchorX:d,root:f})=>{const h=yu(XB),p=b.useId();let v=!0,y=b.useMemo(()=>(v=!1,{id:p,initial:t,isPresent:n,custom:l,onExitComplete:x=>{h.set(x,!0);for(const $ of h.values())if(!$)return;a&&a()},register:x=>(h.set(x,!1),()=>h.delete(x))}),[n,h,a]);return s&&v&&(y={...y}),b.useMemo(()=>{h.forEach((x,$)=>h.set($,!1))},[n]),b.useEffect(()=>{!n&&!h.size&&a&&a()},[n]),u==="popLayout"&&(e=St.jsx(WB,{isPresent:n,anchorX:d,root:f,children:e})),St.jsx(yf.Provider,{value:y,children:e})};function XB(){return new Map}function M5(e=!0){const t=b.useContext(yf);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:a,register:l}=t,s=b.useId();b.useEffect(()=>{if(e)return l(s)},[e]);const u=b.useCallback(()=>e&&a&&a(s),[s,a,e]);return!n&&a?[!1,u]:[!0]}const ad=e=>e.key||"";function Q4(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const Bj=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:l=!0,mode:s="sync",propagate:u=!1,anchorX:d="left",root:f})=>{const[h,p]=M5(u),v=b.useMemo(()=>Q4(e),[e]),y=u&&!h?[]:v.map(ad),x=b.useRef(!0),$=b.useRef(v),w=yu(()=>new Map),[E,C]=b.useState(v),[M,T]=b.useState(v);Iv(()=>{x.current=!1,$.current=v;for(let k=0;k<M.length;k++){const G=ad(M[k]);y.includes(G)?w.delete(G):w.get(G)!==!0&&w.set(G,!1)}},[M,y.length,y.join("-")]);const O=[];if(v!==E){let k=[...v];for(let G=0;G<M.length;G++){const D=M[G],V=ad(D);y.includes(V)||(k.splice(G,0,D),O.push(D))}return s==="wait"&&O.length&&(k=O),T(Q4(k)),C(v),null}const{forceRender:P}=b.useContext(ru);return St.jsx(St.Fragment,{children:M.map(k=>{const G=ad(k),D=u&&!h?!1:v===M||y.includes(G),V=()=>{if(w.has(G))w.set(G,!0);else return;let j=!0;w.forEach(z=>{z||(j=!1)}),j&&(P==null||P(),T($.current),u&&(p==null||p()),a&&a())};return St.jsx(YB,{isPresent:D,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:l,mode:s,root:f,onExitComplete:D?void 0:V,anchorX:d,children:k},G)})})},ZB=b.createContext(null);function QB(){const e=b.useRef(!1);return Iv(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function JB(){const e=QB(),[t,n]=b.useState(0),a=b.useCallback(()=>{e.current&&n(t+1)},[t]);return[b.useCallback(()=>lt.postRender(a),[a]),t]}const ek=e=>!e.isLayoutDirty&&e.willUpdate(!1);function J4(){const e=new Set,t=new WeakMap,n=()=>e.forEach(ek);return{add:a=>{e.add(a),t.set(a,a.addEventListener("willUpdate",n))},remove:a=>{e.delete(a);const l=t.get(a);l&&(l(),t.delete(a)),n()},dirty:n}}const R5=e=>e===!0,tk=e=>R5(e===!0)||e==="id",kj=({children:e,id:t,inherit:n=!0})=>{const a=b.useContext(ru),l=b.useContext(ZB),[s,u]=JB(),d=b.useRef(null),f=a.id||l;d.current===null&&(tk(n)&&f&&(t=t?f+"-"+t:f),d.current={id:t,group:R5(n)&&a.group||J4()});const h=b.useMemo(()=>({...d.current,forceRender:s}),[u]);return St.jsx(ru.Provider,{value:h,children:e})},ub=b.createContext({strict:!1}),e3={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Po={};for(const e in e3)Po[e]={isEnabled:t=>e3[e].some(n=>!!t[n])};function Vg(e){for(const t in e)Po[t]={...Po[t],...e[t]}}function Lj({children:e,features:t,strict:n=!1}){const[,a]=b.useState(!om(t)),l=b.useRef(void 0);if(!om(t)){const{renderer:s,...u}=t;l.current=s,Vg(u)}return b.useEffect(()=>{om(t)&&t().then(({renderer:s,...u})=>{Vg(u),l.current=s,a(!0)})},[]),St.jsx(ub.Provider,{value:{renderer:l.current,strict:n},children:e})}function om(e){return typeof e=="function"}const nk=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Hd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nk.has(e)}let P5=e=>!Hd(e);function z5(e){typeof e=="function"&&(P5=t=>t.startsWith("on")?!Hd(t):e(t))}try{z5(require("@emotion/is-prop-valid").default)}catch{}function rk(e,t,n){const a={};for(const l in e)l==="values"&&typeof e.values=="object"||(P5(l)||n===!0&&Hd(l)||!t&&!Hd(l)||e.draggable&&l.startsWith("onDrag"))&&(a[l]=e[l]);return a}function Nj({children:e,isValidProp:t,...n}){t&&z5(t),n={...b.useContext(ou),...n},n.isStatic=yu(()=>n.isStatic);const a=b.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return St.jsx(ou.Provider,{value:a,children:e})}const xf=b.createContext({});function wf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function su(e){return typeof e=="string"||Array.isArray(e)}const cb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],db=["initial",...cb];function Sf(e){return wf(e.animate)||db.some(t=>su(e[t]))}function O5(e){return!!(Sf(e)||e.variants)}function ak(e,t){if(Sf(e)){const{initial:n,animate:a}=e;return{initial:n===!1||su(n)?n:void 0,animate:su(a)?a:void 0}}return e.inherit!==!1?t:{}}function ik(e){const{initial:t,animate:n}=ak(e,b.useContext(xf));return b.useMemo(()=>({initial:t,animate:n}),[t3(t),t3(n)])}function t3(e){return Array.isArray(e)?e.join(" "):e}const uu={};function lk(e){for(const t in e)uu[t]=e[t],Yv(t)&&(uu[t].isCSSVariable=!0)}function B5(e,{layout:t,layoutId:n}){return vl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!uu[e]||e==="opacity")}const ok={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sk=ko.length;function uk(e,t,n){let a="",l=!0;for(let s=0;s<sk;s++){const u=ko[s],d=e[u];if(d===void 0)continue;let f=!0;if(typeof d=="number"?f=d===(u.startsWith("scale")?1:0):f=parseFloat(d)===0,!f||n){const h=S5(d,lb[u]);if(!f){l=!1;const p=ok[u]||u;a+=`${p}(${h}) `}n&&(t[u]=h)}}return a=a.trim(),n?a=n(t,l?"":a):l&&(a="none"),a}function fb(e,t,n){const{style:a,vars:l,transformOrigin:s}=e;let u=!1,d=!1;for(const f in t){const h=t[f];if(vl.has(f)){u=!0;continue}else if(Yv(f)){l[f]=h;continue}else{const p=S5(h,lb[f]);f.startsWith("origin")?(d=!0,s[f]=p):a[f]=p}}if(t.transform||(u||n?a.transform=uk(t,e.transform,n):a.transform&&(a.transform="none")),d){const{originX:f="50%",originY:h="50%",originZ:p=0}=s;a.transformOrigin=`${f} ${h} ${p}`}}const hb=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function k5(e,t,n){for(const a in t)!yn(t[a])&&!B5(a,n)&&(e[a]=t[a])}function ck({transformTemplate:e},t){return b.useMemo(()=>{const n=hb();return fb(n,t,e),Object.assign({},n.vars,n.style)},[t])}function dk(e,t){const n=e.style||{},a={};return k5(a,n,e),Object.assign(a,ck(e,t)),a}function fk(e,t){const n={},a=dk(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=a,n}const hk={offset:"stroke-dashoffset",array:"stroke-dasharray"},pk={offset:"strokeDashoffset",array:"strokeDasharray"};function mk(e,t,n=1,a=0,l=!0){e.pathLength=1;const s=l?hk:pk;e[s.offset]=xe.transform(-a);const u=xe.transform(t),d=xe.transform(n);e[s.array]=`${u} ${d}`}function L5(e,{attrX:t,attrY:n,attrScale:a,pathLength:l,pathSpacing:s=1,pathOffset:u=0,...d},f,h,p){if(fb(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:y}=e;v.transform&&(y.transform=v.transform,delete v.transform),(y.transform||v.transformOrigin)&&(y.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),y.transform&&(y.transformBox=(p==null?void 0:p.transformBox)??"fill-box",delete v.transformBox),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),a!==void 0&&(v.scale=a),l!==void 0&&mk(v,l,s,u,!1)}const N5=()=>({...hb(),attrs:{}}),_5=e=>typeof e=="string"&&e.toLowerCase()==="svg";function gk(e,t,n,a){const l=b.useMemo(()=>{const s=N5();return L5(s,t,_5(a),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};k5(s,e.style,e),l.style={...s,...l.style}}return l}const vk=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function pb(e){return typeof e!="string"||e.includes("-")?!1:!!(vk.indexOf(e)>-1||/[A-Z]/u.test(e))}function bk(e,t,n,{latestValues:a},l,s=!1){const d=(pb(e)?gk:fk)(t,a,l,e),f=rk(t,typeof e=="string",s),h=e!==b.Fragment?{...f,...d,ref:n}:{},{children:p}=t,v=b.useMemo(()=>yn(p)?p.get():p,[p]);return b.createElement(e,{...h,children:v})}function n3(e){const t=[{},{}];return e==null||e.values.forEach((n,a)=>{t[0][a]=n.get(),t[1][a]=n.getVelocity()}),t}function mb(e,t,n,a){if(typeof t=="function"){const[l,s]=n3(a);t=t(n!==void 0?n:e.custom,l,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[l,s]=n3(a);t=t(n!==void 0?n:e.custom,l,s)}return t}function bd(e){return yn(e)?e.get():e}function yk({scrapeMotionValuesFromProps:e,createRenderState:t},n,a,l){return{latestValues:xk(n,a,l,e),renderState:t()}}function xk(e,t,n,a){const l={},s=a(e,{});for(const y in s)l[y]=bd(s[y]);let{initial:u,animate:d}=e;const f=Sf(e),h=O5(e);t&&h&&!f&&e.inherit!==!1&&(u===void 0&&(u=t.initial),d===void 0&&(d=t.animate));let p=n?n.initial===!1:!1;p=p||u===!1;const v=p?d:u;if(v&&typeof v!="boolean"&&!wf(v)){const y=Array.isArray(v)?v:[v];for(let x=0;x<y.length;x++){const $=mb(e,y[x]);if($){const{transitionEnd:w,transition:E,...C}=$;for(const M in C){let T=C[M];if(Array.isArray(T)){const O=p?T.length-1:0;T=T[O]}T!==null&&(l[M]=T)}for(const M in w)l[M]=w[M]}}}return l}const K5=e=>(t,n)=>{const a=b.useContext(xf),l=b.useContext(yf),s=()=>yk(e,t,a,l);return n?s():yu(s)};function gb(e,t,n){var s;const{style:a}=e,l={};for(const u in a)(yn(a[u])||t.style&&yn(t.style[u])||B5(u,e)||((s=n==null?void 0:n.getValue(u))==null?void 0:s.liveStyle)!==void 0)&&(l[u]=a[u]);return l}const wk=K5({scrapeMotionValuesFromProps:gb,createRenderState:hb});function V5(e,t,n){const a=gb(e,t,n);for(const l in e)if(yn(e[l])||yn(t[l])){const s=ko.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;a[s]=e[l]}return a}const Sk=K5({scrapeMotionValuesFromProps:V5,createRenderState:N5}),$k=Symbol.for("motionComponentSymbol");function bo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ek(e,t,n){return b.useCallback(a=>{a&&e.onMount&&e.onMount(a),t&&(a?t.mount(a):t.unmount()),n&&(typeof n=="function"?n(a):bo(n)&&(n.current=a))},[t])}const vb=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ck="framerAppearId",I5="data-"+vb(Ck),F5=b.createContext({});function Tk(e,t,n,a,l){var w,E;const{visualElement:s}=b.useContext(xf),u=b.useContext(ub),d=b.useContext(yf),f=b.useContext(ou).reducedMotion,h=b.useRef(null);a=a||u.renderer,!h.current&&a&&(h.current=a(e,{visualState:t,parent:s,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const p=h.current,v=b.useContext(F5);p&&!p.projection&&l&&(p.type==="html"||p.type==="svg")&&Dk(h.current,n,l,v);const y=b.useRef(!1);b.useInsertionEffect(()=>{p&&y.current&&p.update(n,d)});const x=n[I5],$=b.useRef(!!x&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,x))&&((E=window.MotionHasOptimisedAnimation)==null?void 0:E.call(window,x)));return Iv(()=>{p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),$.current&&p.animationState&&p.animationState.animateChanges())}),b.useEffect(()=>{p&&(!$.current&&p.animationState&&p.animationState.animateChanges(),$.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,x)}),$.current=!1),p.enteringChildren=void 0)}),p}function Dk(e,t,n,a){const{layoutId:l,layout:s,drag:u,dragConstraints:d,layoutScroll:f,layoutRoot:h,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:j5(e.parent)),e.projection.setOptions({layoutId:l,layout:s,alwaysMeasureLayout:!!u||d&&bo(d),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:a,crossfade:p,layoutScroll:f,layoutRoot:h})}function j5(e){if(e)return e.options.allowProjection!==!1?e.projection:j5(e.parent)}function sm(e,{forwardMotionProps:t=!1}={},n,a){n&&Vg(n);const l=pb(e)?Sk:wk;function s(d,f){let h;const p={...b.useContext(ou),...d,layoutId:Ak(d)},{isStatic:v}=p,y=ik(d),x=l(d,v);if(!v&&Vv){Mk();const $=Rk(p);h=$.MeasureLayout,y.visualElement=Tk(e,x,p,a,$.ProjectionNode)}return St.jsxs(xf.Provider,{value:y,children:[h&&y.visualElement?St.jsx(h,{visualElement:y.visualElement,...p}):null,bk(e,d,Ek(x,y.visualElement,f),x,v,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=b.forwardRef(s);return u[$k]=e,u}function Ak({layoutId:e}){const t=b.useContext(ru).id;return t&&e!==void 0?t+"-"+e:e}function Mk(e,t){b.useContext(ub).strict}function Rk(e){const{drag:t,layout:n}=Po;if(!t&&!n)return{};const a={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function U5(e,t){if(typeof Proxy>"u")return sm;const n=new Map,a=(s,u)=>sm(s,u,e,t),l=(s,u)=>a(s,u);return new Proxy(l,{get:(s,u)=>u==="create"?a:(n.has(u)||n.set(u,sm(u,void 0,e,t)),n.get(u))})}const _j=U5();function H5({top:e,left:t,right:n,bottom:a}){return{x:{min:t,max:n},y:{min:e,max:a}}}function Pk({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zk(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:a.y,right:a.x}}function um(e){return e===void 0||e===1}function Ig({scale:e,scaleX:t,scaleY:n}){return!um(e)||!um(t)||!um(n)}function Xi(e){return Ig(e)||G5(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function G5(e){return r3(e.x)||r3(e.y)}function r3(e){return e&&e!=="0%"}function Gd(e,t,n){const a=e-n,l=t*a;return n+l}function a3(e,t,n,a,l){return l!==void 0&&(e=Gd(e,l,a)),Gd(e,n,a)+t}function Fg(e,t=0,n=1,a,l){e.min=a3(e.min,t,n,a,l),e.max=a3(e.max,t,n,a,l)}function q5(e,{x:t,y:n}){Fg(e.x,t.translate,t.scale,t.originPoint),Fg(e.y,n.translate,n.scale,n.originPoint)}const i3=.999999999999,l3=1.0000000000001;function Ok(e,t,n,a=!1){const l=n.length;if(!l)return;t.x=t.y=1;let s,u;for(let d=0;d<l;d++){s=n[d],u=s.projectionDelta;const{visualElement:f}=s.options;f&&f.props.style&&f.props.style.display==="contents"||(a&&s.options.layoutScroll&&s.scroll&&s!==s.root&&xo(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,q5(e,u)),a&&Xi(s.latestValues)&&xo(e,s.latestValues))}t.x<l3&&t.x>i3&&(t.x=1),t.y<l3&&t.y>i3&&(t.y=1)}function yo(e,t){e.min=e.min+t,e.max=e.max+t}function o3(e,t,n,a,l=.5){const s=pt(e.min,e.max,l);Fg(e,t,n,s,a)}function xo(e,t){o3(e.x,t.x,t.scaleX,t.scale,t.originX),o3(e.y,t.y,t.scaleY,t.scale,t.originY)}function W5(e,t){return H5(zk(e.getBoundingClientRect(),t))}function Bk(e,t,n){const a=W5(e,n),{scroll:l}=t;return l&&(yo(a.x,l.offset.x),yo(a.y,l.offset.y)),a}const s3=()=>({translate:0,scale:1,origin:0,originPoint:0}),wo=()=>({x:s3(),y:s3()}),u3=()=>({min:0,max:0}),Rt=()=>({x:u3(),y:u3()}),jg={current:null},Y5={current:!1};function kk(){if(Y5.current=!0,!!Vv)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>jg.current=e.matches;e.addEventListener("change",t),t()}else jg.current=!1}const Lk=new WeakMap;function Nk(e,t,n){for(const a in t){const l=t[a],s=n[a];if(yn(l))e.addValue(a,l);else if(yn(s))e.addValue(a,Ro(l,{owner:e}));else if(s!==l)if(e.hasValue(a)){const u=e.getValue(a);u.liveStyle===!0?u.jump(l):u.hasAnimated||u.set(l)}else{const u=e.getStaticValue(a);e.addValue(a,Ro(u!==void 0?u:l,{owner:e}))}}for(const a in n)t[a]===void 0&&e.removeValue(a);return t}const c3=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class _k{scrapeMotionValuesFromProps(t,n,a){return{}}constructor({parent:t,props:n,presenceContext:a,reducedMotionConfig:l,blockInitialAnimation:s,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ab,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=Vn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,lt.render(this.render,!1,!0))};const{latestValues:f,renderState:h}=u;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=l,this.options=d,this.blockInitialAnimation=!!s,this.isControllingVariants=Sf(n),this.isVariantNode=O5(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in v){const x=v[y];f[y]!==void 0&&yn(x)&&x.set(f[y])}}mount(t){var n;this.current=t,Lk.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,l)=>this.bindToMotionValue(l,a)),Y5.current||kk(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:jg.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ti(this.notifyUpdate),Ti(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const a=this.features[n];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const a=vl.has(t);a&&this.onBindTransform&&this.onBindTransform();const l=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&lt.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{l(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Po){const n=Po[t];if(!n)continue;const{isEnabled:a,Feature:l}=n;if(!this.features[t]&&l&&a(this.props)&&(this.features[t]=new l(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Rt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let a=0;a<c3.length;a++){const l=c3[a];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const s="on"+l,u=t[s];u&&(this.propEventSubscriptions[l]=this.on(l,u))}this.prevMotionValues=Nk(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const a=this.values.get(t);n!==a&&(a&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let a=this.values.get(t);return a===void 0&&n!==void 0&&(a=Ro(n===null?void 0:n,{owner:this}),this.addValue(t,a)),a}readValue(t,n){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(_2(a)||V2(a))?a=parseFloat(a):!UB(a)&&Di.test(n)&&(a=w5(t,n)),this.setBaseTarget(t,yn(a)?a.get():a)),yn(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let a;if(typeof n=="string"||typeof n=="object"){const u=mb(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);u&&(a=u[t])}if(n&&a!==void 0)return a;const l=this.getBaseTargetFromProps(this.props,t);return l!==void 0&&!yn(l)?l:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Gv),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ob.render(this.render)}}class X5 extends _k{constructor(){super(...arguments),this.KeyframeResolver=zB}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:a}){delete n[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;yn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Z5(e,{style:t,vars:n},a,l){const s=e.style;let u;for(u in t)s[u]=t[u];l==null||l.applyProjectionStyles(s,a);for(u in n)s.setProperty(u,n[u])}function Kk(e){return window.getComputedStyle(e)}class Vk extends X5{constructor(){super(...arguments),this.type="html",this.renderInstance=Z5}readValueFromInstance(t,n){var a;if(vl.has(n))return(a=this.projection)!=null&&a.isProjecting?Og(n):ZO(t,n);{const l=Kk(t),s=(Yv(n)?l.getPropertyValue(n):l[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return W5(t,n)}build(t,n,a){fb(t,n,a.transformTemplate)}scrapeMotionValuesFromProps(t,n,a){return gb(t,n,a)}}const Q5=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ik(e,t,n,a){Z5(e,t,void 0,a);for(const l in t.attrs)e.setAttribute(Q5.has(l)?l:vb(l),t.attrs[l])}class Fk extends X5{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Rt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vl.has(n)){const a=x5(n);return a&&a.default||0}return n=Q5.has(n)?n:vb(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,a){return V5(t,n,a)}build(t,n,a){L5(t,n,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,n,a,l){Ik(t,n,a,l)}mount(t){this.isSVGTag=_5(t.tagName),super.mount(t)}}const J5=(e,t)=>pb(e)?new Fk(t):new Vk(t,{allowProjection:e!==b.Fragment});function Do(e,t,n){const a=e.getProps();return mb(a,t,n!==void 0?n:a.custom,e)}const Ug=e=>Array.isArray(e);function jk(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ro(n))}function Uk(e){return Ug(e)?e[e.length-1]||0:e}function Hk(e,t){const n=Do(e,t);let{transitionEnd:a={},transition:l={},...s}=n||{};s={...s,...a};for(const u in s){const d=Uk(s[u]);jk(e,u,d)}}function Gk(e){return!!(yn(e)&&e.add)}function Hg(e,t){const n=e.getValue("willChange");if(Gk(n))return n.add(t);if(!n&&Va.WillChange){const a=new Va.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function eE(e){return e.props[I5]}const qk=e=>e!==null;function Wk(e,{repeat:t,repeatType:n="loop"},a){const l=e.filter(qk),s=t&&n!=="loop"&&t%2===1?0:l.length-1;return l[s]}const Yk={type:"spring",stiffness:500,damping:25,restSpeed:10},Xk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Zk={type:"keyframes",duration:.8},Qk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Jk=(e,{keyframes:t})=>t.length>2?Zk:vl.has(e)?e.startsWith("scale")?Xk(t[1]):Yk:Qk;function eL({when:e,delay:t,delayChildren:n,staggerChildren:a,staggerDirection:l,repeat:s,repeatType:u,repeatDelay:d,from:f,elapsed:h,...p}){return!!Object.keys(p).length}const bb=(e,t,n,a={},l,s)=>u=>{const d=ib(a,e)||{},f=d.delay||a.delay||0;let{elapsed:h=0}=a;h=h-Qr(f);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-h,onUpdate:y=>{t.set(y),d.onUpdate&&d.onUpdate(y)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:s?void 0:l};eL(d)||Object.assign(p,Jk(e,p)),p.duration&&(p.duration=Qr(p.duration)),p.repeatDelay&&(p.repeatDelay=Qr(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let v=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(_g(p),p.delay===0&&(v=!0)),(Va.instantAnimations||Va.skipAnimations)&&(v=!0,_g(p),p.delay=0),p.allowFlatten=!d.type&&!d.ease,v&&!s&&t.get()!==void 0){const y=Wk(p.keyframes,d);if(y!==void 0){lt.update(()=>{p.onUpdate(y),p.onComplete()});return}}return d.isSync?new rb(p):new xB(p)};function tL({protectedKeys:e,needsAnimating:t},n){const a=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,a}function tE(e,t,{delay:n=0,transitionOverride:a,type:l}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:u,...d}=t;a&&(s=a);const f=[],h=l&&e.animationState&&e.animationState.getState()[l];for(const p in d){const v=e.getValue(p,e.latestValues[p]??null),y=d[p];if(y===void 0||h&&tL(h,p))continue;const x={delay:n,...ib(s||{},p)},$=v.get();if($!==void 0&&!v.isAnimating&&!Array.isArray(y)&&y===$&&!x.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const C=eE(e);if(C){const M=window.MotionHandoffAnimation(C,p,lt);M!==null&&(x.startTime=M,w=!0)}}Hg(e,p),v.start(bb(p,v,y,e.shouldReduceMotion&&v5.has(p)?{type:!1}:x,e,w));const E=v.animation;E&&f.push(E)}return u&&Promise.all(f).then(()=>{lt.update(()=>{u&&Hk(e,u)})}),f}function nE(e,t,n,a=0,l=1){const s=Array.from(e).sort((h,p)=>h.sortNodePosition(p)).indexOf(t),u=e.size,d=(u-1)*a;return typeof n=="function"?n(s,u):l===1?s*a:d-s*a}function Gg(e,t,n={}){var f;const a=Do(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:l=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(l=n.transitionOverride);const s=a?()=>Promise.all(tE(e,a,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:p=0,staggerChildren:v,staggerDirection:y}=l;return nL(e,t,h,p,v,y,n)}:()=>Promise.resolve(),{when:d}=l;if(d){const[h,p]=d==="beforeChildren"?[s,u]:[u,s];return h().then(()=>p())}else return Promise.all([s(),u(n.delay)])}function nL(e,t,n=0,a=0,l=0,s=1,u){const d=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),d.push(Gg(f,t,{...u,delay:n+(typeof a=="function"?0:a)+nE(e.variantChildren,f,a,l,s)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(d)}function rL(e,t,n={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){const l=t.map(s=>Gg(e,s,n));a=Promise.all(l)}else if(typeof t=="string")a=Gg(e,t,n);else{const l=typeof t=="function"?Do(e,t,n.custom):t;a=Promise.all(tE(e,l,n))}return a.then(()=>{e.notify("AnimationComplete",t)})}function rE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let a=0;a<n;a++)if(t[a]!==e[a])return!1;return!0}const aL=db.length;function aE(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?aE(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<aL;n++){const a=db[n],l=e.props[a];(su(l)||l===!1)&&(t[a]=l)}return t}const iL=[...cb].reverse(),lL=cb.length;function oL(e){return t=>Promise.all(t.map(({animation:n,options:a})=>rL(e,n,a)))}function sL(e){let t=oL(e),n=d3(),a=!0;const l=f=>(h,p)=>{var y;const v=Do(e,p,f==="exit"?(y=e.presenceContext)==null?void 0:y.custom:void 0);if(v){const{transition:x,transitionEnd:$,...w}=v;h={...h,...w,...$}}return h};function s(f){t=f(e)}function u(f){const{props:h}=e,p=aE(e.parent)||{},v=[],y=new Set;let x={},$=1/0;for(let E=0;E<lL;E++){const C=iL[E],M=n[C],T=h[C]!==void 0?h[C]:p[C],O=su(T),P=C===f?M.isActive:null;P===!1&&($=E);let k=T===p[C]&&T!==h[C]&&O;if(k&&a&&e.manuallyAnimateOnMount&&(k=!1),M.protectedKeys={...x},!M.isActive&&P===null||!T&&!M.prevProp||wf(T)||typeof T=="boolean")continue;const G=uL(M.prevProp,T);let D=G||C===f&&M.isActive&&!k&&O||E>$&&O,V=!1;const j=Array.isArray(T)?T:[T];let z=j.reduce(l(C),{});P===!1&&(z={});const{prevResolvedValues:I={}}=M,L={...I,...z},K=B=>{D=!0,y.has(B)&&(V=!0,y.delete(B)),M.needsAnimating[B]=!0;const H=e.getValue(B);H&&(H.liveStyle=!1)};for(const B in L){const H=z[B],te=I[B];if(x.hasOwnProperty(B))continue;let W=!1;Ug(H)&&Ug(te)?W=!rE(H,te):W=H!==te,W?H!=null?K(B):y.add(B):H!==void 0&&y.has(B)?K(B):M.protectedKeys[B]=!0}M.prevProp=T,M.prevResolvedValues=z,M.isActive&&(x={...x,...z}),a&&e.blockInitialAnimation&&(D=!1);const U=k&&G;D&&(!U||V)&&v.push(...j.map(B=>{const H={type:C};if(typeof B=="string"&&a&&!U&&e.manuallyAnimateOnMount&&e.parent){const{parent:te}=e,W=Do(te,B);if(te.enteringChildren&&W){const{delayChildren:_}=W.transition||{};H.delay=nE(te.enteringChildren,e,_)}}return{animation:B,options:H}}))}if(y.size){const E={};if(typeof h.initial!="boolean"){const C=Do(e,Array.isArray(h.initial)?h.initial[0]:h.initial);C&&C.transition&&(E.transition=C.transition)}y.forEach(C=>{const M=e.getBaseTarget(C),T=e.getValue(C);T&&(T.liveStyle=!0),E[C]=M??null}),v.push({animation:E})}let w=!!v.length;return a&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(w=!1),a=!1,w?t(v):Promise.resolve()}function d(f,h){var v;if(n[f].isActive===h)return Promise.resolve();(v=e.variantChildren)==null||v.forEach(y=>{var x;return(x=y.animationState)==null?void 0:x.setActive(f,h)}),n[f].isActive=h;const p=u(f);for(const y in n)n[y].protectedKeys={};return p}return{animateChanges:u,setActive:d,setAnimateFunction:s,getState:()=>n,reset:()=>{n=d3()}}}function uL(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rE(t,e):!1}function Yi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function d3(){return{animate:Yi(!0),whileInView:Yi(),whileHover:Yi(),whileTap:Yi(),whileDrag:Yi(),whileFocus:Yi(),exit:Yi()}}class Pi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class cL extends Pi{constructor(t){super(t),t.animationState||(t.animationState=sL(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();wf(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let dL=0;class fL extends Pi{constructor(){super(...arguments),this.id=dL++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;const l=this.node.animationState.setActive("exit",!t);n&&!t&&l.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const iE={animation:{Feature:cL},exit:{Feature:fL}};function cu(e,t,n,a={passive:!0}){return e.addEventListener(t,n,a),()=>e.removeEventListener(t,n)}function $u(e){return{point:{x:e.pageX,y:e.pageY}}}const hL=e=>t=>sb(t)&&e(t,$u(t));function Gs(e,t,n,a){return cu(e,t,hL(n),a)}const lE=1e-4,pL=1-lE,mL=1+lE,oE=.01,gL=0-oE,vL=0+oE;function An(e){return e.max-e.min}function bL(e,t,n){return Math.abs(e-t)<=n}function f3(e,t,n,a=.5){e.origin=a,e.originPoint=pt(t.min,t.max,e.origin),e.scale=An(n)/An(t),e.translate=pt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=pL&&e.scale<=mL||isNaN(e.scale))&&(e.scale=1),(e.translate>=gL&&e.translate<=vL||isNaN(e.translate))&&(e.translate=0)}function qs(e,t,n,a){f3(e.x,t.x,n.x,a?a.originX:void 0),f3(e.y,t.y,n.y,a?a.originY:void 0)}function h3(e,t,n){e.min=n.min+t.min,e.max=e.min+An(t)}function yL(e,t,n){h3(e.x,t.x,n.x),h3(e.y,t.y,n.y)}function p3(e,t,n){e.min=t.min-n.min,e.max=e.min+An(t)}function Ws(e,t,n){p3(e.x,t.x,n.x),p3(e.y,t.y,n.y)}function br(e){return[e("x"),e("y")]}const sE=({current:e})=>e?e.ownerDocument.defaultView:null,m3=(e,t)=>Math.abs(e-t);function xL(e,t){const n=m3(e.x,t.x),a=m3(e.y,t.y);return Math.sqrt(n**2+a**2)}class uE{constructor(t,n,{transformPagePoint:a,contextWindow:l=window,dragSnapToOrigin:s=!1,distanceThreshold:u=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=dm(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,$=xL(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!$)return;const{point:w}=y,{timestamp:E}=fn;this.history.push({...w,timestamp:E});const{onStart:C,onMove:M}=this.handlers;x||(C&&C(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,y)},this.handlePointerMove=(y,x)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=cm(x,this.transformPagePoint),lt.update(this.updatePoint,!0)},this.handlePointerUp=(y,x)=>{this.end();const{onEnd:$,onSessionEnd:w,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=dm(y.type==="pointercancel"?this.lastMoveEventInfo:cm(x,this.transformPagePoint),this.history);this.startEvent&&$&&$(y,C),w&&w(y,C)},!sb(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=a,this.distanceThreshold=u,this.contextWindow=l||window;const d=$u(t),f=cm(d,this.transformPagePoint),{point:h}=f,{timestamp:p}=fn;this.history=[{...h,timestamp:p}];const{onSessionStart:v}=n;v&&v(t,dm(f,this.history)),this.removeListeners=xu(Gs(this.contextWindow,"pointermove",this.handlePointerMove),Gs(this.contextWindow,"pointerup",this.handlePointerUp),Gs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ti(this.updatePoint)}}function cm(e,t){return t?{point:t(e.point)}:e}function g3(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dm({point:e},t){return{point:e,delta:g3(e,cE(t)),offset:g3(e,wL(t)),velocity:SL(t,.1)}}function wL(e){return e[0]}function cE(e){return e[e.length-1]}function SL(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,a=null;const l=cE(e);for(;n>=0&&(a=e[n],!(l.timestamp-a.timestamp>Qr(t)));)n--;if(!a)return{x:0,y:0};const s=$r(l.timestamp-a.timestamp);if(s===0)return{x:0,y:0};const u={x:(l.x-a.x)/s,y:(l.y-a.y)/s};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function $L(e,{min:t,max:n},a){return t!==void 0&&e<t?e=a?pt(t,e,a.min):Math.max(e,t):n!==void 0&&e>n&&(e=a?pt(n,e,a.max):Math.min(e,n)),e}function v3(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function EL(e,{top:t,left:n,bottom:a,right:l}){return{x:v3(e.x,n,l),y:v3(e.y,t,a)}}function b3(e,t){let n=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,a]=[a,n]),{min:n,max:a}}function CL(e,t){return{x:b3(e.x,t.x),y:b3(e.y,t.y)}}function TL(e,t){let n=.5;const a=An(e),l=An(t);return l>a?n=au(t.min,t.max-a,e.min):a>l&&(n=au(e.min,e.max-l,t.min)),Ka(0,1,n)}function DL(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const qg=.35;function AL(e=qg){return e===!1?e=0:e===!0&&(e=qg),{x:y3(e,"left","right"),y:y3(e,"top","bottom")}}function y3(e,t,n){return{min:x3(e,t),max:x3(e,n)}}function x3(e,t){return typeof e=="number"?e:e[t]||0}const ML=new WeakMap;class RL{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Rt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:a}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const s=v=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor($u(v).point)},u=(v,y)=>{const{drag:x,dragPropagation:$,onDragStart:w}=this.getProps();if(x&&!$&&(this.openDragLock&&this.openDragLock(),this.openDragLock=LB(x),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=y,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),br(C=>{let M=this.getAxisMotionValue(C).get()||0;if(Jr.test(M)){const{projection:T}=this.visualElement;if(T&&T.layout){const O=T.layout.layoutBox[C];O&&(M=An(O)*(parseFloat(M)/100))}}this.originPoint[C]=M}),w&&lt.postRender(()=>w(v,y)),Hg(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},d=(v,y)=>{this.latestPointerEvent=v,this.latestPanInfo=y;const{dragPropagation:x,dragDirectionLock:$,onDirectionLock:w,onDrag:E}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:C}=y;if($&&this.currentDirection===null){this.currentDirection=PL(C),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",y.point,C),this.updateAxis("y",y.point,C),this.visualElement.render(),E&&E(v,y)},f=(v,y)=>{this.latestPointerEvent=v,this.latestPanInfo=y,this.stop(v,y),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>br(v=>{var y;return this.getAnimationState(v)==="paused"&&((y=this.getAxisMotionValue(v).animation)==null?void 0:y.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new uE(t,{onSessionStart:s,onStart:u,onMove:d,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:a,contextWindow:sE(this.visualElement)})}stop(t,n){const a=t||this.latestPointerEvent,l=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!l||!a)return;const{velocity:u}=l;this.startAnimation(u);const{onDragEnd:d}=this.getProps();d&&lt.postRender(()=>d(a,l))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,a){const{drag:l}=this.getProps();if(!a||!id(t,l,this.currentDirection))return;const s=this.getAxisMotionValue(t);let u=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(u=$L(u,this.constraints[t],this.elastic[t])),s.set(u)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,l=this.constraints;t&&bo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=EL(a.layoutBox,t):this.constraints=!1,this.elastic=AL(n),l!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&br(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=DL(a.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!bo(t))return!1;const a=t.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const s=Bk(a,l.root,this.visualElement.getTransformPagePoint());let u=CL(l.layout.layoutBox,s);if(n){const d=n(Pk(u));this.hasMutatedConstraints=!!d,d&&(u=H5(d))}return u}startAnimation(t){const{drag:n,dragMomentum:a,dragElastic:l,dragTransition:s,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},h=br(p=>{if(!id(p,n,this.currentDirection))return;let v=f&&f[p]||{};u&&(v={min:0,max:0});const y=l?200:1e6,x=l?40:1e7,$={type:"inertia",velocity:a?t[p]:0,bounceStiffness:y,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...s,...v};return this.startAxisValueAnimation(p,$)});return Promise.all(h).then(d)}startAxisValueAnimation(t,n){const a=this.getAxisMotionValue(t);return Hg(this.visualElement,t),a.start(bb(t,a,0,n,this.visualElement,!1))}stopAnimation(){br(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){br(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps(),l=a[n];return l||this.visualElement.getValue(t,(a.initial?a.initial[t]:void 0)||0)}snapToCursor(t){br(n=>{const{drag:a}=this.getProps();if(!id(n,a,this.currentDirection))return;const{projection:l}=this.visualElement,s=this.getAxisMotionValue(n);if(l&&l.layout){const{min:u,max:d}=l.layout.layoutBox[n];s.set(t[n]-pt(u,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:a}=this.visualElement;if(!bo(n)||!a||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};br(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const f=d.get();l[u]=TL({min:f,max:f},this.constraints[u])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),br(u=>{if(!id(u,t,null))return;const d=this.getAxisMotionValue(u),{min:f,max:h}=this.constraints[u];d.set(pt(f,h,l[u]))})}addListeners(){if(!this.visualElement.current)return;ML.set(this.visualElement,this);const t=this.visualElement.current,n=Gs(t,"pointerdown",f=>{const{drag:h,dragListener:p=!0}=this.getProps();h&&p&&this.start(f)}),a=()=>{const{dragConstraints:f}=this.getProps();bo(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,s=l.addEventListener("measure",a);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),lt.read(a);const u=cu(window,"resize",()=>this.scalePositionWithinConstraints()),d=l.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(br(p=>{const v=this.getAxisMotionValue(p);v&&(this.originPoint[p]+=f[p].translate,v.set(v.get()+f[p].translate))}),this.visualElement.render())}));return()=>{u(),n(),s(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:a=!1,dragPropagation:l=!1,dragConstraints:s=!1,dragElastic:u=qg,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:a,dragPropagation:l,dragConstraints:s,dragElastic:u,dragMomentum:d}}}function id(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function PL(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class zL extends Pi{constructor(t){super(t),this.removeGroupControls=Er,this.removeListeners=Er,this.controls=new RL(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Er}unmount(){this.removeGroupControls(),this.removeListeners()}}const w3=e=>(t,n)=>{e&&lt.postRender(()=>e(t,n))};class OL extends Pi{constructor(){super(...arguments),this.removePointerDownListener=Er}onPointerDown(t){this.session=new uE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:a,onPanEnd:l}=this.node.getProps();return{onSessionStart:w3(t),onStart:w3(n),onMove:a,onEnd:(s,u)=>{delete this.session,l&&lt.postRender(()=>l(s,u))}}}mount(){this.removePointerDownListener=Gs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const yd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function S3(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Bs={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xe.test(e))e=parseFloat(e);else return e;const n=S3(e,t.target.x),a=S3(e,t.target.y);return`${n}% ${a}%`}},BL={correct:(e,{treeScale:t,projectionDelta:n})=>{const a=e,l=Di.parse(e);if(l.length>5)return a;const s=Di.createTransformer(e),u=typeof l[0]!="number"?1:0,d=n.x.scale*t.x,f=n.y.scale*t.y;l[0+u]/=d,l[1+u]/=f;const h=pt(d,f,.5);return typeof l[2+u]=="number"&&(l[2+u]/=h),typeof l[3+u]=="number"&&(l[3+u]/=h),s(l)}};let fm=!1;class kL extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a,layoutId:l}=this.props,{projection:s}=t;lk(LL),s&&(n.group&&n.group.add(s),a&&a.register&&l&&a.register(s),fm&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),yd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:a,drag:l,isPresent:s}=this.props,{projection:u}=a;return u&&(u.isPresent=s,fm=!0,l||t.layoutDependency!==n||n===void 0||t.isPresent!==s?u.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?u.promote():u.relegate()||lt.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ob.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a}=this.props,{projection:l}=t;fm=!0,l&&(l.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(l),a&&a.deregister&&a.deregister(l))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function dE(e){const[t,n]=M5(),a=b.useContext(ru);return St.jsx(kL,{...e,layoutGroup:a,switchLayoutGroup:b.useContext(F5),isPresent:t,safeToRemove:n})}const LL={borderRadius:{...Bs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Bs,borderTopRightRadius:Bs,borderBottomLeftRadius:Bs,borderBottomRightRadius:Bs,boxShadow:BL};function NL(e,t,n){const a=yn(e)?e:Ro(e);return a.start(bb("",a,t,n)),a.animation}const _L=(e,t)=>e.depth-t.depth;class KL{constructor(){this.children=[],this.isDirty=!1}add(t){Fv(this.children,t),this.isDirty=!0}remove(t){jv(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_L),this.isDirty=!1,this.children.forEach(t)}}function VL(e,t){const n=Vn.now(),a=({timestamp:l})=>{const s=l-n;s>=t&&(Ti(a),e(s-t))};return lt.setup(a,!0),()=>Ti(a)}const fE=["TopLeft","TopRight","BottomLeft","BottomRight"],IL=fE.length,$3=e=>typeof e=="string"?parseFloat(e):e,E3=e=>typeof e=="number"||xe.test(e);function FL(e,t,n,a,l,s){l?(e.opacity=pt(0,n.opacity??1,jL(a)),e.opacityExit=pt(t.opacity??1,0,UL(a))):s&&(e.opacity=pt(t.opacity??1,n.opacity??1,a));for(let u=0;u<IL;u++){const d=`border${fE[u]}Radius`;let f=C3(t,d),h=C3(n,d);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||E3(f)===E3(h)?(e[d]=Math.max(pt($3(f),$3(h),a),0),(Jr.test(h)||Jr.test(f))&&(e[d]+="%")):e[d]=h}(t.rotate||n.rotate)&&(e.rotate=pt(t.rotate||0,n.rotate||0,a))}function C3(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const jL=hE(0,.5,W2),UL=hE(.5,.95,Er);function hE(e,t,n){return a=>a<e?0:a>t?1:n(au(e,t,a))}function T3(e,t){e.min=t.min,e.max=t.max}function vr(e,t){T3(e.x,t.x),T3(e.y,t.y)}function D3(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function A3(e,t,n,a,l){return e-=t,e=Gd(e,1/n,a),l!==void 0&&(e=Gd(e,1/l,a)),e}function HL(e,t=0,n=1,a=.5,l,s=e,u=e){if(Jr.test(t)&&(t=parseFloat(t),t=pt(u.min,u.max,t/100)-u.min),typeof t!="number")return;let d=pt(s.min,s.max,a);e===s&&(d-=t),e.min=A3(e.min,t,n,d,l),e.max=A3(e.max,t,n,d,l)}function M3(e,t,[n,a,l],s,u){HL(e,t[n],t[a],t[l],t.scale,s,u)}const GL=["x","scaleX","originX"],qL=["y","scaleY","originY"];function R3(e,t,n,a){M3(e.x,t,GL,n?n.x:void 0,a?a.x:void 0),M3(e.y,t,qL,n?n.y:void 0,a?a.y:void 0)}function P3(e){return e.translate===0&&e.scale===1}function pE(e){return P3(e.x)&&P3(e.y)}function z3(e,t){return e.min===t.min&&e.max===t.max}function WL(e,t){return z3(e.x,t.x)&&z3(e.y,t.y)}function O3(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function mE(e,t){return O3(e.x,t.x)&&O3(e.y,t.y)}function B3(e){return An(e.x)/An(e.y)}function k3(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class YL{constructor(){this.members=[]}add(t){Fv(this.members,t),t.scheduleRender()}remove(t){if(jv(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(l=>t===l);if(n===0)return!1;let a;for(let l=n;l>=0;l--){const s=this.members[l];if(s.isPresent!==!1){a=s;break}}return a?(this.promote(a),!0):!1}promote(t,n){const a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.instance&&a.scheduleRender(),t.scheduleRender(),t.resumeFrom=a,n&&(t.resumeFrom.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:l}=t.options;l===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:a}=t;n.onExitComplete&&n.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function XL(e,t,n){let a="";const l=e.x.translate/t.x,s=e.y.translate/t.y,u=(n==null?void 0:n.z)||0;if((l||s||u)&&(a=`translate3d(${l}px, ${s}px, ${u}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:p,rotateX:v,rotateY:y,skewX:x,skewY:$}=n;h&&(a=`perspective(${h}px) ${a}`),p&&(a+=`rotate(${p}deg) `),v&&(a+=`rotateX(${v}deg) `),y&&(a+=`rotateY(${y}deg) `),x&&(a+=`skewX(${x}deg) `),$&&(a+=`skewY(${$}deg) `)}const d=e.x.scale*t.x,f=e.y.scale*t.y;return(d!==1||f!==1)&&(a+=`scale(${d}, ${f})`),a||"none"}const hm=["","X","Y","Z"],ZL=1e3;let QL=0;function pm(e,t,n,a){const{latestValues:l}=t;l[e]&&(n[e]=l[e],t.setStaticValue(e,0),a&&(a[e]=0))}function gE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=eE(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:l,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",lt,!(l||s))}const{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&gE(a)}function vE({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:a,resetTransform:l}){return class{constructor(u={},d=t==null?void 0:t()){this.id=QL++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(tN),this.nodes.forEach(iN),this.nodes.forEach(lN),this.nodes.forEach(nN)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new KL)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Gv),this.eventHandlers.get(u).add(d)}notifyListeners(u,...d){const f=this.eventHandlers.get(u);f&&f.notify(...d)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=A5(u)&&!FB(u),this.instance=u;const{layoutId:d,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||d)&&(this.isLayoutDirty=!0),e){let p,v=0;const y=()=>this.root.updateBlockedByResize=!1;lt.read(()=>{v=window.innerWidth}),e(u,()=>{const x=window.innerWidth;x!==v&&(v=x,this.root.updateBlockedByResize=!0,p&&p(),p=VL(y,250),yd.hasAnimatedSinceResize&&(yd.hasAnimatedSinceResize=!1,this.nodes.forEach(_3)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&h&&(d||f)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:v,hasRelativeLayoutChanged:y,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||h.getDefaultTransition()||dN,{onLayoutAnimationStart:w,onLayoutAnimationComplete:E}=h.getProps(),C=!this.targetLayout||!mE(this.targetLayout,x),M=!v&&y;if(this.options.layoutRoot||this.resumeFrom||M||v&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...ib($,"layout"),onPlay:w,onComplete:E};(h.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(p,M)}else v||_3(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ti(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(oN),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&gE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const v=this.path[p];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:d,layout:f}=this.options;if(d===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(L3);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(N3);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(aN),this.nodes.forEach(JL),this.nodes.forEach(eN)):this.nodes.forEach(N3),this.clearAllSnapshots();const d=Vn.now();fn.delta=Ka(0,1e3/60,d-fn.timestamp),fn.timestamp=d,fn.isProcessing=!0,tm.update.process(fn),tm.preRender.process(fn),tm.render.process(fn),fn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ob.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rN),this.sharedNodes.forEach(sN)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,lt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){lt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!An(this.snapshot.measuredBox.x)&&!An(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Rt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(d=!1),d&&this.instance){const f=a(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!l)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!pE(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,p=h!==this.prevTransformTemplateValue;u&&this.instance&&(d||Xi(this.latestValues)||p)&&(l(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return u&&(f=this.removeTransform(f)),fN(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:u}=this.options;if(!u)return Rt();const d=u.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(hN))){const{scroll:p}=this.root;p&&(yo(d.x,p.offset.x),yo(d.y,p.offset.y))}return d}removeElementScroll(u){var f;const d=Rt();if(vr(d,u),(f=this.scroll)!=null&&f.wasRoot)return d;for(let h=0;h<this.path.length;h++){const p=this.path[h],{scroll:v,options:y}=p;p!==this.root&&v&&y.layoutScroll&&(v.wasRoot&&vr(d,u),yo(d.x,v.offset.x),yo(d.y,v.offset.y))}return d}applyTransform(u,d=!1){const f=Rt();vr(f,u);for(let h=0;h<this.path.length;h++){const p=this.path[h];!d&&p.options.layoutScroll&&p.scroll&&p!==p.root&&xo(f,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Xi(p.latestValues)&&xo(f,p.latestValues)}return Xi(this.latestValues)&&xo(f,this.latestValues),f}removeTransform(u){const d=Rt();vr(d,u);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Xi(h.latestValues))continue;Ig(h.latestValues)&&h.updateSnapshot();const p=Rt(),v=h.measurePageBox();vr(p,v),R3(d,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,p)}return Xi(this.latestValues)&&R3(d,this.latestValues),d}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==fn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var y;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==d;if(!(u||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:v}=this.options;if(!(!this.layout||!(p||v))){if(this.resolvedRelativeTargetAt=fn.timestamp,!this.targetDelta&&!this.relativeTarget){const x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Rt(),this.relativeTargetOrigin=Rt(),Ws(this.relativeTargetOrigin,this.layout.layoutBox,x.layout.layoutBox),vr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Rt(),this.targetWithTransforms=Rt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),yL(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):vr(this.target,this.layout.layoutBox),q5(this.target,this.targetDelta)):vr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Rt(),this.relativeTargetOrigin=Rt(),Ws(this.relativeTargetOrigin,this.target,x.target),vr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ig(this.parent.latestValues)||G5(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var $;const u=this.getLead(),d=!!this.resumingFrom||this!==u;let f=!0;if((this.isProjectionDirty||($=this.parent)!=null&&$.isProjectionDirty)&&(f=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===fn.timestamp&&(f=!1),f)return;const{layout:h,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||p))return;vr(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,y=this.treeScale.y;Ok(this.layoutCorrected,this.treeScale,this.path,d),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=Rt());const{target:x}=u;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(D3(this.prevProjectionDelta.x,this.projectionDelta.x),D3(this.prevProjectionDelta.y,this.projectionDelta.y)),qs(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==y||!k3(this.projectionDelta.x,this.prevProjectionDelta.x)||!k3(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var d;if((d=this.options.visualElement)==null||d.scheduleRender(),u){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=wo(),this.projectionDelta=wo(),this.projectionDeltaWithTransform=wo()}setAnimationOrigin(u,d=!1){const f=this.snapshot,h=f?f.latestValues:{},p={...this.latestValues},v=wo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const y=Rt(),x=f?f.source:void 0,$=this.layout?this.layout.source:void 0,w=x!==$,E=this.getStack(),C=!E||E.members.length<=1,M=!!(w&&!C&&this.options.crossfade===!0&&!this.path.some(cN));this.animationProgress=0;let T;this.mixTargetDelta=O=>{const P=O/1e3;K3(v.x,u.x,P),K3(v.y,u.y,P),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ws(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),uN(this.relativeTarget,this.relativeTargetOrigin,y,P),T&&WL(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Rt()),vr(T,this.relativeTarget)),w&&(this.animationValues=p,FL(p,h,this.latestValues,P,M,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var d,f,h;this.notifyListeners("animationStart"),(d=this.currentAnimation)==null||d.stop(),(h=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||h.stop(),this.pendingAnimation&&(Ti(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=lt.update(()=>{yd.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ro(0)),this.currentAnimation=NL(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),u.onUpdate&&u.onUpdate(p)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ZL),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:f,layout:h,latestValues:p}=u;if(!(!d||!f||!h)){if(this!==u&&this.layout&&h&&bE(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Rt();const v=An(this.layout.layoutBox.x);f.x.min=u.target.x.min,f.x.max=f.x.min+v;const y=An(this.layout.layoutBox.y);f.y.min=u.target.y.min,f.y.max=f.y.min+y}vr(d,f),xo(d,p),qs(this.projectionDeltaWithTransform,this.layoutCorrected,d,p)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new YL),this.sharedNodes.get(u).add(d);const h=d.options.initialPromotionConfig;d.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(d):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var d;const{layoutId:u}=this.options;return u?((d=this.getStack())==null?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:u}=this.options;return u?(d=this.getStack())==null?void 0:d.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:f}=u;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const h={};f.z&&pm("z",u,h,this.animationValues);for(let p=0;p<hm.length;p++)pm(`rotate${hm[p]}`,u,h,this.animationValues),pm(`skew${hm[p]}`,u,h,this.animationValues);u.render();for(const p in h)u.setStaticValue(p,h[p]),this.animationValues&&(this.animationValues[p]=h[p]);u.scheduleRender()}applyProjectionStyles(u,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=bd(d==null?void 0:d.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=bd(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!Xi(this.latestValues)&&(u.transform=f?f({},""):"none",this.hasProjected=!1);return}u.visibility="";const p=h.animationValues||h.latestValues;this.applyTransformsToTarget();let v=XL(this.projectionDeltaWithTransform,this.treeScale,p);f&&(v=f(p,v)),u.transform=v;const{x:y,y:x}=this.projectionDelta;u.transformOrigin=`${y.origin*100}% ${x.origin*100}% 0`,h.animationValues?u.opacity=h===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:u.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const $ in uu){if(p[$]===void 0)continue;const{correct:w,applyTo:E,isCSSVariable:C}=uu[$],M=v==="none"?p[$]:w(p[$],h);if(E){const T=E.length;for(let O=0;O<T;O++)u[E[O]]=M}else C?this.options.visualElement.renderState.vars[$]=M:u[$]=M}this.options.layoutId&&(u.pointerEvents=h===this?bd(d==null?void 0:d.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var d;return(d=u.currentAnimation)==null?void 0:d.stop()}),this.root.nodes.forEach(L3),this.root.sharedNodes.clear()}}}function JL(e){e.updateLayout()}function eN(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:l}=e.layout,{animationType:s}=e.options,u=t.source!==e.layout.source;s==="size"?br(v=>{const y=u?t.measuredBox[v]:t.layoutBox[v],x=An(y);y.min=a[v].min,y.max=y.min+x}):bE(s,t.layoutBox,a)&&br(v=>{const y=u?t.measuredBox[v]:t.layoutBox[v],x=An(a[v]);y.max=y.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[v].max=e.relativeTarget[v].min+x)});const d=wo();qs(d,a,t.layoutBox);const f=wo();u?qs(f,e.applyTransform(l,!0),t.measuredBox):qs(f,a,t.layoutBox);const h=!pE(d);let p=!1;if(!e.resumeFrom){const v=e.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:y,layout:x}=v;if(y&&x){const $=Rt();Ws($,t.layoutBox,y.layoutBox);const w=Rt();Ws(w,a,x.layoutBox),mE($,w)||(p=!0),v.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=$,e.relativeParent=v)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:f,layoutDelta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function tN(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nN(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rN(e){e.clearSnapshot()}function L3(e){e.clearMeasurements()}function N3(e){e.isLayoutDirty=!1}function aN(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function _3(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iN(e){e.resolveTargetDelta()}function lN(e){e.calcProjection()}function oN(e){e.resetSkewAndRotation()}function sN(e){e.removeLeadSnapshot()}function K3(e,t,n){e.translate=pt(t.translate,0,n),e.scale=pt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function V3(e,t,n,a){e.min=pt(t.min,n.min,a),e.max=pt(t.max,n.max,a)}function uN(e,t,n,a){V3(e.x,t.x,n.x,a),V3(e.y,t.y,n.y,a)}function cN(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const dN={duration:.45,ease:[.4,0,.1,1]},I3=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),F3=I3("applewebkit/")&&!I3("chrome/")?Math.round:Er;function j3(e){e.min=F3(e.min),e.max=F3(e.max)}function fN(e){j3(e.x),j3(e.y)}function bE(e,t,n){return e==="position"||e==="preserve-aspect"&&!bL(B3(t),B3(n),.2)}function hN(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const pN=vE({attachResizeListener:(e,t)=>cu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),mm={current:void 0},yE=vE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!mm.current){const e=new pN({});e.mount(window),e.setOptions({layoutScroll:!0}),mm.current=e}return mm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),xE={pan:{Feature:OL},drag:{Feature:zL,ProjectionNode:yE,MeasureLayout:dE}};function U3(e,t,n){const{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",n==="Start");const l="onHover"+n,s=a[l];s&&lt.postRender(()=>s(t,$u(t)))}class mN extends Pi{mount(){const{current:t}=this.node;t&&(this.unmount=NB(t,(n,a)=>(U3(this.node,a,"Start"),l=>U3(this.node,l,"End"))))}unmount(){}}class gN extends Pi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xu(cu(this.node.current,"focus",()=>this.onFocus()),cu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function H3(e,t,n){const{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",n==="Start");const l="onTap"+(n==="End"?"":n),s=a[l];s&&lt.postRender(()=>s(t,$u(t)))}class vN extends Pi{mount(){const{current:t}=this.node;t&&(this.unmount=IB(t,(n,a)=>(H3(this.node,a,"Start"),(l,{success:s})=>H3(this.node,l,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Wg=new WeakMap,gm=new WeakMap,bN=e=>{const t=Wg.get(e.target);t&&t(e)},yN=e=>{e.forEach(bN)};function xN({root:e,...t}){const n=e||document;gm.has(n)||gm.set(n,{});const a=gm.get(n),l=JSON.stringify(t);return a[l]||(a[l]=new IntersectionObserver(yN,{root:e,...t})),a[l]}function wN(e,t,n){const a=xN(t);return Wg.set(e,n),a.observe(e),()=>{Wg.delete(e),a.unobserve(e)}}const SN={some:0,all:1};class $N extends Pi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:a,amount:l="some",once:s}=t,u={root:n?n.current:void 0,rootMargin:a,threshold:typeof l=="number"?l:SN[l]},d=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,s&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:p,onViewportLeave:v}=this.node.getProps(),y=h?p:v;y&&y(f)};return wN(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(EN(t,n))&&this.startObserver()}unmount(){}}function EN({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const wE={inView:{Feature:$N},tap:{Feature:vN},focus:{Feature:gN},hover:{Feature:mN}},SE={layout:{ProjectionNode:yE,MeasureLayout:dE}},CN={...iE,...wE,...xE,...SE},Vj=U5(CN,J5),yb={renderer:J5,...iE,...wE},Ij={...yb,...xE,...SE};class TN extends E5{constructor(){super(...arguments),this.isEnabled=!1}add(t){(vl.has(t)||OB.has(t))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?"transform":"auto")}}function Fj(){return yu(()=>new TN("auto"))}function jj(e,t){let{role:n="dialog"}=e,a=Ci();a=e["aria-label"]?void 0:a;let l=b.useRef(!1);return b.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Nd(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(l.current=!0,t.current&&(t.current.blur(),Nd(t.current)),l.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),N2(),{dialogProps:{...aa(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||a,onBlur:s=>{l.current&&s.stopPropagation()}},titleProps:{id:a}}}function Uj(e={shouldBlockScroll:!0},t,n){let{overlayProps:a,underlayProps:l}=mz({...e,isOpen:t.isOpen,onClose:t.close},n);return vz({isDisabled:!t.isOpen||!e.shouldBlockScroll}),N2(),b.useEffect(()=>{if(t.isOpen&&n.current)return Gz([n.current])},[t.isOpen,n]),{modalProps:Wt(a),underlayProps:l}}function DN(e,t,n){let[a,l]=b.useState(e||t),s=b.useRef(e!==void 0),u=e!==void 0;b.useEffect(()=>{let h=s.current;h!==u&&console.warn(`WARN: A component changed from ${h?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}.`),s.current=u},[u]);let d=u?e:a,f=b.useCallback((h,...p)=>{let v=(y,...x)=>{n&&(Object.is(d,y)||n(y,...x)),u||(d=y)};typeof h=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),l((x,...$)=>{let w=h(u?d:x,...$);return v(w,...p),u?x:w})):(u||l(h),v(h,...p))},[u,d,n]);return[d,f]}var AN=yb;const Hj=Object.freeze(Object.defineProperty({__proto__:null,default:AN},Symbol.toStringTag,{value:"Module"}));function $E(e){let{id:t,label:n,"aria-labelledby":a,"aria-label":l,labelElementType:s="label"}=e;t=ea(t);let u=ea(),d={};n&&(a=a?`${u} ${a}`:u,d={id:u,htmlFor:s==="label"?t:void 0});let f=yP({id:t,"aria-label":l,"aria-labelledby":a});return{labelProps:d,fieldProps:f}}function MN(e){let{description:t,errorMessage:n,isInvalid:a,validationState:l}=e,{labelProps:s,fieldProps:u}=$E(e),d=s4([!!t,!!n,a,l]),f=s4([!!t,!!n,a,l]);return u=ft(u,{"aria-describedby":[d,f,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:u,descriptionProps:{id:d},errorMessageProps:{id:f}}}function EE(e,t,n){let{validationBehavior:a,focus:l}=e;Vr(()=>{if(a==="native"&&(n!=null&&n.current)&&!n.current.disabled){let h=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(h),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(PN(n.current))}});let s=b.useRef(!1),u=nn(()=>{s.current||t.resetValidation()}),d=nn(h=>{var p;t.displayValidation.isInvalid||t.commitValidation();let v=n==null||(p=n.current)===null||p===void 0?void 0:p.form;if(!h.defaultPrevented&&n&&v&&zN(v)===n.current){var y;l?l():(y=n.current)===null||y===void 0||y.focus(),zz("keyboard")}h.preventDefault()}),f=nn(()=>{t.commitValidation()});b.useEffect(()=>{let h=n==null?void 0:n.current;if(!h)return;let p=h.form,v=p==null?void 0:p.reset;return p&&(p.reset=()=>{s.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,v==null||v.call(p),s.current=!1}),h.addEventListener("invalid",d),h.addEventListener("change",f),p==null||p.addEventListener("reset",u),()=>{h.removeEventListener("invalid",d),h.removeEventListener("change",f),p==null||p.removeEventListener("reset",u),p&&(p.reset=v)}},[n,d,f,u,a])}function RN(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function PN(e){return{isInvalid:!e.validity.valid,validationDetails:RN(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function zN(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const CE={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},TE={...CE,customError:!0,valid:!1},fo={isInvalid:!1,validationDetails:CE,validationErrors:[]},ON=b.createContext({}),qd="__formValidationState"+Date.now();function xb(e){if(e[qd]){let{realtimeValidation:t,displayValidation:n,updateValidation:a,resetValidation:l,commitValidation:s}=e[qd];return{realtimeValidation:t,displayValidation:n,updateValidation:a,resetValidation:l,commitValidation:s}}return BN(e)}function BN(e){let{isInvalid:t,validationState:n,name:a,value:l,builtinValidation:s,validate:u,validationBehavior:d="aria"}=e;n&&(t||(t=n==="invalid"));let f=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:TE}:null,h=b.useMemo(()=>{if(!u||l==null)return null;let j=kN(u,l);return G3(j)},[u,l]);s!=null&&s.validationDetails.valid&&(s=void 0);let p=b.useContext(ON),v=b.useMemo(()=>a?Array.isArray(a)?a.flatMap(j=>Yg(p[j])):Yg(p[a]):[],[p,a]),[y,x]=b.useState(p),[$,w]=b.useState(!1);p!==y&&(x(p),w(!1));let E=b.useMemo(()=>G3($?[]:v),[$,v]),C=b.useRef(fo),[M,T]=b.useState(fo),O=b.useRef(fo),P=()=>{if(!k)return;G(!1);let j=h||s||C.current;vm(j,O.current)||(O.current=j,T(j))},[k,G]=b.useState(!1);return b.useEffect(P),{realtimeValidation:f||E||h||s||fo,displayValidation:d==="native"?f||E||M:f||E||h||s||M,updateValidation(j){d==="aria"&&!vm(M,j)?T(j):C.current=j},resetValidation(){let j=fo;vm(j,O.current)||(O.current=j,T(j)),d==="native"&&G(!1),w(!0)},commitValidation(){d==="native"&&G(!0),w(!0)}}}function Yg(e){return e?Array.isArray(e)?e:[e]:[]}function kN(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Yg(n)}return[]}function G3(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:TE}:null}function vm(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,a)=>n===t.validationErrors[a])&&Object.entries(e.validationDetails).every(([n,a])=>t.validationDetails[n]===a)}function Gj(e,t){let{inputElementType:n="input",isDisabled:a=!1,isRequired:l=!1,isReadOnly:s=!1,type:u="text",validationBehavior:d="aria"}=e,[f,h]=DN(e.value,e.defaultValue||"",e.onChange),{focusableProps:p}=hz(e,t),v=xb({...e,value:f}),{isInvalid:y,validationErrors:x,validationDetails:$}=v.displayValidation,{labelProps:w,fieldProps:E,descriptionProps:C,errorMessageProps:M}=MN({...e,isInvalid:y,errorMessage:e.errorMessage||x}),T=aa(e,{labelable:!0});const O={type:u,pattern:e.pattern};return CR(t,f,h),EE(e,v,t),b.useEffect(()=>{if(t.current instanceof Sr(t.current).HTMLTextAreaElement){let P=t.current;Object.defineProperty(P,"defaultValue",{get:()=>P.value,set:()=>{},configurable:!0})}},[t]),{labelProps:w,inputProps:Wt(T,n==="input"?O:void 0,{disabled:a,readOnly:s,required:l&&d==="native","aria-required":l&&d==="aria"||void 0,"aria-invalid":y||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:f,onChange:P=>h(P.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...p,...E}),descriptionProps:C,errorMessageProps:M,isInvalid:y,validationErrors:x,validationDetails:$}}const DE={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},AE={...DE,customError:!0,valid:!1},ks={isInvalid:!1,validationDetails:DE,validationErrors:[]},LN=b.createContext({}),q3="__formValidationState"+Date.now();function NN(e){if(e[q3]){let{realtimeValidation:t,displayValidation:n,updateValidation:a,resetValidation:l,commitValidation:s}=e[q3];return{realtimeValidation:t,displayValidation:n,updateValidation:a,resetValidation:l,commitValidation:s}}return _N(e)}function _N(e){let{isInvalid:t,validationState:n,name:a,value:l,builtinValidation:s,validate:u,validationBehavior:d="aria"}=e;n&&(t||(t=n==="invalid"));let f=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:AE}:null,h=b.useMemo(()=>{if(!u||l==null)return null;let j=KN(u,l);return W3(j)},[u,l]);s!=null&&s.validationDetails.valid&&(s=void 0);let p=b.useContext(LN),v=b.useMemo(()=>a?Array.isArray(a)?a.flatMap(j=>Xg(p[j])):Xg(p[a]):[],[p,a]),[y,x]=b.useState(p),[$,w]=b.useState(!1);p!==y&&(x(p),w(!1));let E=b.useMemo(()=>W3($?[]:v),[$,v]),C=b.useRef(ks),[M,T]=b.useState(ks),O=b.useRef(ks),P=()=>{if(!k)return;G(!1);let j=h||s||C.current;bm(j,O.current)||(O.current=j,T(j))},[k,G]=b.useState(!1);return b.useEffect(P),{realtimeValidation:f||E||h||s||ks,displayValidation:d==="native"?f||E||M:f||E||h||s||M,updateValidation(j){d==="aria"&&!bm(M,j)?T(j):C.current=j},resetValidation(){let j=ks;bm(j,O.current)||(O.current=j,T(j)),d==="native"&&G(!1),w(!0)},commitValidation(){d==="native"&&G(!0),w(!0)}}}function Xg(e){return e?Array.isArray(e)?e:[e]:[]}function KN(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Xg(n)}return[]}function W3(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:AE}:null}function bm(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,a)=>n===t.validationErrors[a])&&Object.entries(e.validationDetails).every(([n,a])=>t.validationDetails[n]===a)}function ME(e,t,n){let{isDisabled:a=!1,isReadOnly:l=!1,value:s,name:u,form:d,children:f,"aria-label":h,"aria-labelledby":p,validationState:v="valid",isInvalid:y,onPressStart:x,onPressEnd:$,onPressChange:w,onPress:E,onPressUp:C,onClick:M}=e,T=z=>{z.stopPropagation(),t.setSelected(z.target.checked)},{pressProps:O,isPressed:P}=Na({onPressStart:x,onPressEnd:$,onPressChange:w,onPress:E,onPressUp:C,onClick:M,isDisabled:a}),{pressProps:k,isPressed:G}=Na({onPressStart:x,onPressEnd:$,onPressChange:w,onPressUp:C,onClick:M,onPress(z){var I;E==null||E(z),t.toggle(),(I=n.current)===null||I===void 0||I.focus()},isDisabled:a||l}),{focusableProps:D}=bu(e,n),V=ft(O,D),j=ff(e,{labelable:!0});return $P(n,t.defaultSelected,t.setSelected),{labelProps:ft(k,{onClick:z=>z.preventDefault()}),inputProps:ft(j,{"aria-invalid":y||v==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":l||void 0,onChange:T,disabled:a,...s==null?{}:{value:s},name:u,form:d,type:"checkbox",...V}),isSelected:t.isSelected,isPressed:P||G,isDisabled:a,isReadOnly:l,isInvalid:y||v==="invalid"}}function qj(e,t,n){let{labelProps:a,inputProps:l,isSelected:s,isPressed:u,isDisabled:d,isReadOnly:f}=ME(e,t,n);return{labelProps:a,inputProps:{...l,role:"switch",checked:s},isSelected:s,isPressed:u,isDisabled:d,isReadOnly:f}}function VN(e){let[t,n]=Tv(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const a=b.useCallback(()=>{n(!0)},[n]),l=b.useCallback(()=>{n(!1)},[n]),s=b.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:a,close:l,toggle:s}}function Wj(e,t){let n=aa(e,{labelable:!0}),{hoverProps:a}=kv({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:Wt(n,a,{role:"tooltip"})}}function IN(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...qt(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(s=>!s.form);else{var n,a;let s=(a=e.form)===null||a===void 0||(n=a.elements)===null||n===void 0?void 0:n.namedItem(e.name);t=[...s??[]]}return t?!t.some(s=>s.checked):!1}function RE(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Wd(e,t,n){let a=t!=null&&t.tabbable?PP:D$,l=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,s=qt(l),u=QR(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(d){var f;return!(t==null||(f=t.from)===null||f===void 0)&&f.contains(d)||t!=null&&t.tabbable&&d.tagName==="INPUT"&&d.getAttribute("type")==="radio"&&(!IN(d)||u.currentNode.tagName==="INPUT"&&u.currentNode.type==="radio"&&u.currentNode.name===d.name)?NodeFilter.FILTER_REJECT:a(d)&&(!n||RE(d,n))&&(!(t!=null&&t.accept)||t.accept(d))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(u.currentNode=t.from),u}class wb{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,a){let l=this.fastMap.get(n??null);if(!l)return;let s=new Y3({scopeRef:t});l.addChild(s),s.parent=l,this.fastMap.set(t,s),a&&(s.nodeToRestore=a)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let a=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&RE(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let l=n.children;a&&(a.removeChild(n),l.size>0&&l.forEach(s=>a&&a.addChild(s))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new wb;var a;for(let l of this.traverse())n.addTreeNode(l.scopeRef,(a=(t=l.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&a!==void 0?a:null,l.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Y3({scopeRef:null}),this.fastMap.set(null,this.root)}}class Y3{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new wb;function Yj(e={}){let{autoFocus:t=!1,isTextInput:n,within:a}=e,l=b.useRef({isFocused:!1,isFocusVisible:t||bf()}),[s,u]=b.useState(!1),[d,f]=b.useState(()=>l.current.isFocused&&l.current.isFocusVisible),h=b.useCallback(()=>f(l.current.isFocused&&l.current.isFocusVisible),[]),p=b.useCallback(x=>{l.current.isFocused=x,u(x),h()},[h]);Lz(x=>{l.current.isFocusVisible=x,h()},[],{isTextInput:n});let{focusProps:v}=Kv({isDisabled:a,onFocusChange:p}),{focusWithinProps:y}=B2({isDisabled:!a,onFocusWithinChange:p});return{isFocused:s,isFocusVisible:d,focusProps:a?y:v}}function FN(e,t){let n=t==null?void 0:t.isDisabled,[a,l]=b.useState(!1);return Vr(()=>{if(e!=null&&e.current&&!n){let s=()=>{if(e.current){let d=Wd(e.current,{tabbable:!0});l(!!d.nextNode())}};s();let u=new MutationObserver(s);return u.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{u.disconnect()}}}),n?!1:a}function PE(e){let t=UN(qt(e));t!==e&&(t&&jN(t,e),e&&zE(e,t))}function jN(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function zE(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function UN(e){let t=ul(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}function Xj(e,t,n){let{isDisabled:a,trigger:l}=e,s=Cr(),u=b.useRef(!1),d=b.useRef(!1),f=()=>{(u.current||d.current)&&t.open(d.current)},h=C=>{!u.current&&!d.current&&t.close(C)};b.useEffect(()=>{let C=M=>{n&&n.current&&M.key==="Escape"&&(M.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",C,!0),()=>{document.removeEventListener("keydown",C,!0)}},[n,t]);let p=()=>{l!=="focus"&&(K$()==="pointer"?u.current=!0:u.current=!1,f())},v=()=>{l!=="focus"&&(d.current=!1,u.current=!1,h())},y=()=>{d.current=!1,u.current=!1,h(!0)},x=()=>{tu()&&(d.current=!0,f())},$=()=>{d.current=!1,u.current=!1,h(!0)},{hoverProps:w}=kv({isDisabled:a,onHoverStart:p,onHoverEnd:v}),{focusableProps:E}=bu({isDisabled:a,onFocus:x,onBlur:$},n);return{triggerProps:{"aria-describedby":t.isOpen?s:void 0,...Wt(E,w,{onPointerDown:y,onKeyDown:y})},tooltipProps:{id:s}}}function HN(e,t){let{elementType:n="a",onPress:a,onPressStart:l,onPressEnd:s,onClick:u,isDisabled:d,...f}=e,h={};n!=="a"&&(h={role:"link",tabIndex:d?void 0:0});let{focusableProps:p}=bu(e,t),{pressProps:v,isPressed:y}=Na({onPress:a,onPressStart:l,onPressEnd:s,onClick:u,isDisabled:d,ref:t}),x=ff(f,{labelable:!0}),$=ft(p,v),w=vu(),E=gP(e);return{isPressed:y,linkProps:ft(x,E,{...$,...h,"aria-disabled":d||void 0,"aria-current":e["aria-current"],onClick:C=>{var M;(M=v.onClick)===null||M===void 0||M.call(v,C),vP(C,w,e.href,e.routerOptions)}})}}function Zj(e,t){let{isCurrent:n,isDisabled:a,"aria-current":l,elementType:s="a",...u}=e,{linkProps:d}=HN({isDisabled:a||n,elementType:s,...u},t),f=/^h[1-6]$/.test(s),h={};return f||(h=d),n&&(h["aria-current"]=l||"page",h.tabIndex=e.autoFocus?-1:void 0),{itemProps:{"aria-disabled":a,...h}}}var OE={};OE={breadcrumbs:"عناصر الواجهة"};var BE={};BE={breadcrumbs:"Трохи хляб"};var kE={};kE={breadcrumbs:"Popis cesty"};var LE={};LE={breadcrumbs:"Brødkrummer"};var NE={};NE={breadcrumbs:"Breadcrumbs"};var _E={};_E={breadcrumbs:"Πλοηγήσεις breadcrumb"};var KE={};KE={breadcrumbs:"Breadcrumbs"};var VE={};VE={breadcrumbs:"Migas de pan"};var IE={};IE={breadcrumbs:"Lingiread"};var FE={};FE={breadcrumbs:"Navigointilinkit"};var jE={};jE={breadcrumbs:"Chemin de navigation"};var UE={};UE={breadcrumbs:"שבילי ניווט"};var HE={};HE={breadcrumbs:"Navigacijski putovi"};var GE={};GE={breadcrumbs:"Morzsamenü"};var qE={};qE={breadcrumbs:"Breadcrumb"};var WE={};WE={breadcrumbs:"パンくずリスト"};var YE={};YE={breadcrumbs:"탐색 표시"};var XE={};XE={breadcrumbs:"Naršymo kelias"};var ZE={};ZE={breadcrumbs:"Atpakaļceļi"};var QE={};QE={breadcrumbs:"Navigasjonsstier"};var JE={};JE={breadcrumbs:"Broodkruimels"};var eC={};eC={breadcrumbs:"Struktura nawigacyjna"};var tC={};tC={breadcrumbs:"Caminho detalhado"};var nC={};nC={breadcrumbs:"Categorias"};var rC={};rC={breadcrumbs:"Miez de pâine"};var aC={};aC={breadcrumbs:"Навигация"};var iC={};iC={breadcrumbs:"Navigačné prvky Breadcrumbs"};var lC={};lC={breadcrumbs:"Drobtine"};var oC={};oC={breadcrumbs:"Putanje navigacije"};var sC={};sC={breadcrumbs:"Sökvägar"};var uC={};uC={breadcrumbs:"İçerik haritaları"};var cC={};cC={breadcrumbs:"Навігаційна стежка"};var dC={};dC={breadcrumbs:"导航栏"};var fC={};fC={breadcrumbs:"導覽列"};var hC={};hC={"ar-AE":OE,"bg-BG":BE,"cs-CZ":kE,"da-DK":LE,"de-DE":NE,"el-GR":_E,"en-US":KE,"es-ES":VE,"et-EE":IE,"fi-FI":FE,"fr-FR":jE,"he-IL":UE,"hr-HR":HE,"hu-HU":GE,"it-IT":qE,"ja-JP":WE,"ko-KR":YE,"lt-LT":XE,"lv-LV":ZE,"nb-NO":QE,"nl-NL":JE,"pl-PL":eC,"pt-BR":tC,"pt-PT":nC,"ro-RO":rC,"ru-RU":aC,"sk-SK":iC,"sl-SI":lC,"sr-SP":oC,"sv-SE":sC,"tr-TR":uC,"uk-UA":cC,"zh-CN":dC,"zh-TW":fC};function GN(e){return e&&e.__esModule?e.default:e}function Qj(e){let{"aria-label":t,...n}=e,a=Ia(GN(hC),"@react-aria/breadcrumbs");return{navProps:{...aa(n,{labelable:!0}),"aria-label":t||a.format("breadcrumbs")}}}function qN(e){const[t,n]=$S(e,Fx.variantKeys),{as:a,children:l,className:s,...u}=t,d=a||"code",f=b.useMemo(()=>Fx({...n,className:s}),[FS(n),s]);return{Component:d,children:l,getCodeProps:()=>({className:f,...u})}}var pC=gv((e,t)=>{const{Component:n,children:a,getCodeProps:l}=qN({...e});return St.jsx(n,{ref:t,...l(),children:a})});pC.displayName="HeroUI.Code";var Jj=pC;const mC=new WeakMap;function Yd(e,t,n){return e?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${mC.get(e)}-${n}-${t}`):""}function Zg(e){return sP()?e.altKey:e.ctrlKey}function xd(e,t){var n,a;let l=`[data-key="${CSS.escape(String(t))}"]`,s=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return s&&(l=`[data-collection="${CSS.escape(s)}"]${l}`),(a=e.current)===null||a===void 0?void 0:a.querySelector(l)}const gC=new WeakMap;function WN(e){let t=ea();return gC.set(e,t),t}function YN(e){return gC.get(e)}const XN=1e3;function ZN(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:a}=e,l=b.useRef({search:"",timeout:void 0}).current,s=u=>{let d=QN(u.key);if(!(!d||u.ctrlKey||u.metaKey||!u.currentTarget.contains(u.target)||l.search.length===0&&d===" ")){if(d===" "&&l.search.trim().length>0&&(u.preventDefault(),"continuePropagation"in u||u.stopPropagation()),l.search+=d,t.getKeyForSearch!=null){let f=t.getKeyForSearch(l.search,n.focusedKey);f==null&&(f=t.getKeyForSearch(l.search)),f!=null&&(n.setFocusedKey(f),a&&a(f))}clearTimeout(l.timeout),l.timeout=setTimeout(()=>{l.search=""},XN)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function QN(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Sb(e){let{selectionManager:t,keyboardDelegate:n,ref:a,autoFocus:l=!1,shouldFocusWrap:s=!1,disallowEmptySelection:u=!1,disallowSelectAll:d=!1,escapeKeyBehavior:f="clearSelection",selectOnFocus:h=t.selectionBehavior==="replace",disallowTypeAhead:p=!1,shouldUseVirtualFocus:v,allowsTabNavigation:y=!1,isVirtualized:x,scrollRef:$=a,linkBehavior:w="action"}=e,{direction:E}=ia(),C=vu(),M=B=>{var H;if(B.altKey&&B.key==="Tab"&&B.preventDefault(),!(!((H=a.current)===null||H===void 0)&&H.contains(B.target)))return;const te=(ue,Se)=>{if(ue!=null){if(t.isLink(ue)&&w==="selection"&&h&&!Zg(B)){Yr.flushSync(()=>{t.setFocusedKey(ue,Se)});let Le=xd(a,ue),Ae=t.getItemProps(ue);Le&&C.open(Le,B,Ae.href,Ae.routerOptions);return}if(t.setFocusedKey(ue,Se),t.isLink(ue)&&w==="override")return;B.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ue):h&&!Zg(B)&&t.replaceSelection(ue)}};switch(B.key){case"ArrowDown":if(n.getKeyBelow){var W,_,Z;let ue=t.focusedKey!=null?(W=n.getKeyBelow)===null||W===void 0?void 0:W.call(n,t.focusedKey):(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n);ue==null&&s&&(ue=(Z=n.getFirstKey)===null||Z===void 0?void 0:Z.call(n,t.focusedKey)),ue!=null&&(B.preventDefault(),te(ue))}break;case"ArrowUp":if(n.getKeyAbove){var ie,se,de;let ue=t.focusedKey!=null?(ie=n.getKeyAbove)===null||ie===void 0?void 0:ie.call(n,t.focusedKey):(se=n.getLastKey)===null||se===void 0?void 0:se.call(n);ue==null&&s&&(ue=(de=n.getLastKey)===null||de===void 0?void 0:de.call(n,t.focusedKey)),ue!=null&&(B.preventDefault(),te(ue))}break;case"ArrowLeft":if(n.getKeyLeftOf){var pe,Me,ye;let ue=t.focusedKey!=null?(pe=n.getKeyLeftOf)===null||pe===void 0?void 0:pe.call(n,t.focusedKey):null;ue==null&&s&&(ue=E==="rtl"?(Me=n.getFirstKey)===null||Me===void 0?void 0:Me.call(n,t.focusedKey):(ye=n.getLastKey)===null||ye===void 0?void 0:ye.call(n,t.focusedKey)),ue!=null&&(B.preventDefault(),te(ue,E==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var ge,ce,gt;let ue=t.focusedKey!=null?(ge=n.getKeyRightOf)===null||ge===void 0?void 0:ge.call(n,t.focusedKey):null;ue==null&&s&&(ue=E==="rtl"?(ce=n.getLastKey)===null||ce===void 0?void 0:ce.call(n,t.focusedKey):(gt=n.getFirstKey)===null||gt===void 0?void 0:gt.call(n,t.focusedKey)),ue!=null&&(B.preventDefault(),te(ue,E==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&B.shiftKey)return;B.preventDefault();let ue=n.getFirstKey(t.focusedKey,co(B));t.setFocusedKey(ue),ue!=null&&(co(B)&&B.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ue):h&&t.replaceSelection(ue))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&B.shiftKey)return;B.preventDefault();let ue=n.getLastKey(t.focusedKey,co(B));t.setFocusedKey(ue),ue!=null&&(co(B)&&B.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ue):h&&t.replaceSelection(ue))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let ue=n.getKeyPageBelow(t.focusedKey);ue!=null&&(B.preventDefault(),te(ue))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let ue=n.getKeyPageAbove(t.focusedKey);ue!=null&&(B.preventDefault(),te(ue))}break;case"a":co(B)&&t.selectionMode==="multiple"&&d!==!0&&(B.preventDefault(),t.selectAll());break;case"Escape":f==="clearSelection"&&!u&&t.selectedKeys.size!==0&&(B.stopPropagation(),B.preventDefault(),t.clearSelection());break;case"Tab":if(!y){if(B.shiftKey)a.current.focus();else{let ue=Wd(a.current,{tabbable:!0}),Se,Le;do Le=ue.lastChild(),Le&&(Se=Le);while(Le);Se&&!Se.contains(document.activeElement)&&La(Se)}break}}},T=b.useRef({top:0,left:0});qc($,"scroll",x?void 0:()=>{var B,H,te,W;T.current={top:(te=(B=$.current)===null||B===void 0?void 0:B.scrollTop)!==null&&te!==void 0?te:0,left:(W=(H=$.current)===null||H===void 0?void 0:H.scrollLeft)!==null&&W!==void 0?W:0}});let O=B=>{if(t.isFocused){B.currentTarget.contains(B.target)||t.setFocused(!1);return}if(B.currentTarget.contains(B.target)){if(t.setFocused(!0),t.focusedKey==null){var H,te;let Z=se=>{se!=null&&(t.setFocusedKey(se),h&&!t.isSelected(se)&&t.replaceSelection(se))},ie=B.relatedTarget;var W,_;ie&&B.currentTarget.compareDocumentPosition(ie)&Node.DOCUMENT_POSITION_FOLLOWING?Z((W=t.lastSelectedKey)!==null&&W!==void 0?W:(H=n.getLastKey)===null||H===void 0?void 0:H.call(n)):Z((_=t.firstSelectedKey)!==null&&_!==void 0?_:(te=n.getFirstKey)===null||te===void 0?void 0:te.call(n))}else!x&&$.current&&($.current.scrollTop=T.current.top,$.current.scrollLeft=T.current.left);if(t.focusedKey!=null&&$.current){let Z=xd(a,t.focusedKey);Z instanceof HTMLElement&&(!Z.contains(document.activeElement)&&!v&&La(Z),Cg()==="keyboard"&&yi(Z,{containingElement:a.current}))}}},P=B=>{B.currentTarget.contains(B.relatedTarget)||t.setFocused(!1)},k=b.useRef(!1);qc(a,CP,v?B=>{let{detail:H}=B;B.stopPropagation(),t.setFocused(!0),(H==null?void 0:H.focusStrategy)==="first"&&(k.current=!0)}:void 0);let G=nn(()=>{var B,H;let te=(H=(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n))!==null&&H!==void 0?H:null;if(te==null){let W=ul();PE(a.current),zE(W,null),t.collection.size>0&&(k.current=!1)}else t.setFocusedKey(te),k.current=!1});d4(()=>{k.current&&G()},[t.collection,G]);let D=nn(()=>{t.collection.size>0&&(k.current=!1)});d4(()=>{D()},[t.focusedKey,D]),qc(a,EP,v?B=>{var H;B.stopPropagation(),t.setFocused(!1),!((H=B.detail)===null||H===void 0)&&H.clearFocusKey&&t.setFocusedKey(null)}:void 0);const V=b.useRef(l),j=b.useRef(!1);b.useEffect(()=>{if(V.current){var B,H;let _=null;var te;l==="first"&&(_=(te=(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n))!==null&&te!==void 0?te:null);var W;l==="last"&&(_=(W=(H=n.getLastKey)===null||H===void 0?void 0:H.call(n))!==null&&W!==void 0?W:null);let Z=t.selectedKeys;if(Z.size){for(let ie of Z)if(t.canSelectItem(ie)){_=ie;break}}t.setFocused(!0),t.setFocusedKey(_),_==null&&!v&&a.current&&tr(a.current),t.collection.size>0&&(V.current=!1,j.current=!0)}});let z=b.useRef(t.focusedKey),I=b.useRef(null);b.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==z.current||j.current)&&$.current&&a.current){let B=Cg(),H=xd(a,t.focusedKey);if(!(H instanceof HTMLElement))return;(B==="keyboard"||j.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{$.current&&(C$($.current,H),B!=="virtual"&&yi(H,{containingElement:a.current}))}))}!v&&t.isFocused&&t.focusedKey==null&&z.current!=null&&a.current&&tr(a.current),z.current=t.focusedKey,j.current=!1}),b.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),qc(a,"react-aria-focus-scope-restore",B=>{B.preventDefault(),t.setFocused(!0)});let L={onKeyDown:M,onFocus:O,onBlur:P,onMouseDown(B){$.current===B.target&&B.preventDefault()}},{typeSelectProps:K}=ZN({keyboardDelegate:n,selectionManager:t});p||(L=ft(K,L));let U;v||(U=t.focusedKey==null?0:-1);let R=WN(t.collection);return{collectionProps:ft(L,{tabIndex:U,"data-collection":R})}}function Eu(e){let{id:t,selectionManager:n,key:a,ref:l,shouldSelectOnPressUp:s,shouldUseVirtualFocus:u,focus:d,isDisabled:f,onAction:h,allowsDifferentPressOrigin:p,linkBehavior:v="action"}=e,y=vu();t=ea(t);let x=W=>{if(W.pointerType==="keyboard"&&Zg(W))n.toggleSelection(a);else{if(n.selectionMode==="none")return;if(n.isLink(a)){if(v==="selection"&&l.current){let _=n.getItemProps(a);y.open(l.current,W,_.href,_.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(v==="override"||v==="none")return}n.selectionMode==="single"?n.isSelected(a)&&!n.disallowEmptySelection?n.toggleSelection(a):n.replaceSelection(a):W&&W.shiftKey?n.extendSelection(a):n.selectionBehavior==="toggle"||W&&(co(W)||W.pointerType==="touch"||W.pointerType==="virtual")?n.toggleSelection(a):n.replaceSelection(a)}};b.useEffect(()=>{a===n.focusedKey&&n.isFocused&&(u?PE(l.current):d?d():document.activeElement!==l.current&&l.current&&tr(l.current))},[l,a,n.focusedKey,n.childFocusStrategy,n.isFocused,u]),f=f||n.isDisabled(a);let $={};!u&&!f?$={tabIndex:a===n.focusedKey?0:-1,onFocus(W){W.target===l.current&&n.setFocusedKey(a)}}:f&&($.onMouseDown=W=>{W.preventDefault()});let w=n.isLink(a)&&v==="override",E=h&&e.UNSTABLE_itemBehavior==="action",C=n.isLink(a)&&v!=="selection"&&v!=="none",M=!f&&n.canSelectItem(a)&&!w&&!E,T=(h||C)&&!f,O=T&&(n.selectionBehavior==="replace"?!M:!M||n.isEmpty),P=T&&M&&n.selectionBehavior==="replace",k=O||P,G=b.useRef(null),D=k&&M,V=b.useRef(!1),j=b.useRef(!1),z=n.getItemProps(a),I=W=>{if(h){var _;h(),(_=l.current)===null||_===void 0||_.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}C&&l.current&&y.open(l.current,W,z.href,z.routerOptions)},L={ref:l};if(s?(L.onPressStart=W=>{G.current=W.pointerType,V.current=D,W.pointerType==="keyboard"&&(!k||Z3())&&x(W)},p?(L.onPressUp=O?void 0:W=>{W.pointerType==="mouse"&&M&&x(W)},L.onPress=O?I:W=>{W.pointerType!=="keyboard"&&W.pointerType!=="mouse"&&M&&x(W)}):L.onPress=W=>{if(O||P&&W.pointerType!=="mouse"){if(W.pointerType==="keyboard"&&!X3())return;I(W)}else W.pointerType!=="keyboard"&&M&&x(W)}):(L.onPressStart=W=>{G.current=W.pointerType,V.current=D,j.current=O,M&&(W.pointerType==="mouse"&&!O||W.pointerType==="keyboard"&&(!T||Z3()))&&x(W)},L.onPress=W=>{(W.pointerType==="touch"||W.pointerType==="pen"||W.pointerType==="virtual"||W.pointerType==="keyboard"&&k&&X3()||W.pointerType==="mouse"&&j.current)&&(k?I(W):M&&x(W))}),$["data-collection"]=YN(n.collection),$["data-key"]=a,L.preventFocusOnPress=u,u&&(L=ft(L,{onPressStart(W){W.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(a))},onPress(W){W.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(a))}})),z)for(let W of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])z[W]&&(L[W]=cf(L[W],z[W]));let{pressProps:K,isPressed:U}=Na(L),R=P?W=>{G.current==="mouse"&&(W.stopPropagation(),W.preventDefault(),I(W))}:void 0,{longPressProps:B}=k2({isDisabled:!D,onLongPress(W){W.pointerType==="touch"&&(x(W),n.setSelectionBehavior("toggle"))}}),H=W=>{G.current==="touch"&&V.current&&W.preventDefault()},te=v!=="none"&&n.isLink(a)?W=>{dl.isOpening||W.preventDefault()}:void 0;return{itemProps:ft($,M||O||u&&!f?K:{},D?B:{},{onDoubleClick:R,onDragStartCapture:H,onClick:te,id:t},u?{onMouseDown:W=>W.preventDefault()}:void 0),isPressed:U,isSelected:n.isSelected(a),isFocused:n.isFocused&&n.focusedKey===a,isDisabled:f,allowsSelection:M,hasAction:k}}function X3(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Z3(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}let Qg=class{getItemRect(t){let n=this.ref.current;if(!n)return null;let a=t!=null?xd(this.ref,t):null;if(!a)return null;let l=n.getBoundingClientRect(),s=a.getBoundingClientRect();return{x:s.left-l.left-n.clientLeft+n.scrollLeft,y:s.top-l.top-n.clientTop+n.scrollTop,width:s.width,height:s.height}}getContentSize(){let t=this.ref.current;var n,a;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(a=t==null?void 0:t.scrollHeight)!==null&&a!==void 0?a:0}}getVisibleRect(){let t=this.ref.current;var n,a,l,s;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(a=t==null?void 0:t.scrollTop)!==null&&a!==void 0?a:0,width:(l=t==null?void 0:t.clientWidth)!==null&&l!==void 0?l:0,height:(s=t==null?void 0:t.clientHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}},JN=class{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let a=t;for(;a!=null;){let l=this.collection.getItem(a);if((l==null?void 0:l.type)==="item"&&!this.isDisabled(l))return a;a=n(a)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,a=>this.collection.getKeyAfter(a))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,a=>this.collection.getKeyBefore(a))}findKey(t,n,a){let l=t,s=this.layoutDelegate.getItemRect(l);if(!s||l==null)return null;let u=s;do{if(l=n(l),l==null)break;s=this.layoutDelegate.getItemRect(l)}while(s&&a(u,s)&&l!=null);return l}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,a=>this.layoutDelegate[n](a))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,a=>this.getNextColumn(a,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,a=>this.layoutDelegate[n](a))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,a=>this.getNextColumn(a,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,a=this.layoutDelegate.getItemRect(t);if(!a)return null;if(n&&!eu(n))return this.getFirstKey();let l=t;if(this.orientation==="horizontal"){let s=Math.max(0,a.x+a.width-this.layoutDelegate.getVisibleRect().width);for(;a&&a.x>s&&l!=null;)l=this.getKeyAbove(l),a=l==null?null:this.layoutDelegate.getItemRect(l)}else{let s=Math.max(0,a.y+a.height-this.layoutDelegate.getVisibleRect().height);for(;a&&a.y>s&&l!=null;)l=this.getKeyAbove(l),a=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,a=this.layoutDelegate.getItemRect(t);if(!a)return null;if(n&&!eu(n))return this.getLastKey();let l=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,a.y-a.width+this.layoutDelegate.getVisibleRect().width);for(;a&&a.x<s&&l!=null;)l=this.getKeyBelow(l),a=l==null?null:this.layoutDelegate.getItemRect(l)}else{let s=Math.min(this.layoutDelegate.getContentSize().height,a.y-a.height+this.layoutDelegate.getVisibleRect().height);for(;a&&a.y<s&&l!=null;)l=this.getKeyBelow(l),a=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let a=this.collection,l=n||this.getFirstKey();for(;l!=null;){let s=a.getItem(l);if(!s)return null;let u=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(u,t)===0)return l;l=this.getNextKey(l)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Qg(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Qg(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function $b(e){let{selectionManager:t,collection:n,disabledKeys:a,ref:l,keyboardDelegate:s,layoutDelegate:u}=e,d=Pv({usage:"search",sensitivity:"base"}),f=t.disabledBehavior,h=b.useMemo(()=>s||new JN({collection:n,disabledKeys:a,disabledBehavior:f,ref:l,collator:d,layoutDelegate:u}),[s,u,n,a,l,d,f]),{collectionProps:p}=Sb({...e,ref:l,selectionManager:t,keyboardDelegate:h});return{listProps:p}}function nU(e,t,n){let{key:a,isDisabled:l,shouldSelectOnPressUp:s}=e,{selectionManager:u,selectedKey:d}=t,f=a===d,h=l||t.isDisabled||t.selectionManager.isDisabled(a),{itemProps:p,isPressed:v}=Eu({selectionManager:u,key:a,ref:n,isDisabled:h,shouldSelectOnPressUp:s,linkBehavior:"selection"}),y=Yd(t,a,"tab"),x=Yd(t,a,"tabpanel"),{tabIndex:$}=p,w=t.collection.getItem(a),E=aa(w==null?void 0:w.props,{labelable:!0});delete E.id;let C=Cv(w==null?void 0:w.props);return{tabProps:Wt(E,C,p,{id:y,"aria-selected":f,"aria-disabled":h||void 0,"aria-controls":f?x:void 0,tabIndex:h?void 0:$,role:"tab"}),isSelected:f,isDisabled:h,isPressed:v}}function rU(e,t,n){let a=pz(n)?void 0:0;var l;const s=Yd(t,(l=e.id)!==null&&l!==void 0?l:t==null?void 0:t.selectedKey,"tabpanel"),u=uf({...e,id:s,"aria-labelledby":Yd(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:Wt(u,{tabIndex:a,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class e_{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}isDisabled(t){var n,a;return this.disabledKeys.has(t)||!!(!((a=this.collection.getItem(t))===null||a===void 0||(n=a.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}getKeyAbove(t){return this.tabDirection?null:this.getPreviousKey(t)}getKeyBelow(t){return this.tabDirection?null:this.getNextKey(t)}getNextKey(t){do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(this.isDisabled(t));return t}getPreviousKey(t){do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(this.isDisabled(t));return t}constructor(t,n,a,l=new Set){this.collection=t,this.flipDirection=n==="rtl"&&a==="horizontal",this.disabledKeys=l,this.tabDirection=a==="horizontal"}}function aU(e,t,n){let{orientation:a="horizontal",keyboardActivation:l="automatic"}=e,{collection:s,selectionManager:u,disabledKeys:d}=t,{direction:f}=ia(),h=b.useMemo(()=>new e_(s,f,a,d),[s,d,a,f]),{collectionProps:p}=Sb({ref:n,selectionManager:u,keyboardDelegate:h,selectOnFocus:l==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),v=Cr();mC.set(t,v);let y=uf({...e,id:v});return{tabListProps:{...Wt(p,y),role:"tablist","aria-orientation":a,tabIndex:void 0}}}class kr extends Set{constructor(t,n,a){super(t),t instanceof kr?(this.anchorKey=n??t.anchorKey,this.currentKey=a??t.currentKey):(this.anchorKey=n??null,this.currentKey=a??null)}}function t_(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function n_(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:a,selectionBehavior:l="toggle",disabledBehavior:s="all"}=e,u=b.useRef(!1),[,d]=b.useState(!1),f=b.useRef(null),h=b.useRef(null),[,p]=b.useState(null),v=b.useMemo(()=>Q3(e.selectedKeys),[e.selectedKeys]),y=b.useMemo(()=>Q3(e.defaultSelectedKeys,new kr),[e.defaultSelectedKeys]),[x,$]=Tv(v,y,e.onSelectionChange),w=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[E,C]=b.useState(l);l==="replace"&&E==="toggle"&&typeof x=="object"&&x.size===0&&C("replace");let M=b.useRef(l);return b.useEffect(()=>{l!==M.current&&(C(l),M.current=l)},[l]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:E,setSelectionBehavior:C,get isFocused(){return u.current},setFocused(T){u.current=T,d(T)},get focusedKey(){return f.current},get childFocusStrategy(){return h.current},setFocusedKey(T,O="first"){f.current=T,h.current=O,p(T)},selectedKeys:x,setSelectedKeys(T){(a||!t_(T,x))&&$(T)},disabledKeys:w,disabledBehavior:s}}function Q3(e,t){return e?e==="all"?"all":new kr(e):t}function vC(e){return null}vC.getCollectionNode=function*(t,n){let{childItems:a,title:l,children:s}=t,u=t.title||t.children,d=t.textValue||(typeof u=="string"?u:"")||t["aria-label"]||"";!d&&(n!=null&&n.suppressTextValueWarning),yield{type:"item",props:t,rendered:u,textValue:d,"aria-label":t["aria-label"],hasChildNodes:r_(t),*childNodes(){if(a)for(let f of a)yield{type:"item",value:f};else if(l){let f=[];oe.Children.forEach(s,h=>{f.push({type:"item",element:h})}),yield*f}}}};function r_(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&oe.Children.count(e.children)>0)}let iU=vC;class a_{build(t,n){return this.context=n,J3(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:a}=t;if(oe.isValidElement(n)&&n.type===oe.Fragment)yield*this.iterateCollection({children:n.props.children,items:a});else if(typeof n=="function"){if(!a)throw new Error("props.children was a function but props.items is missing");let l=0;for(let s of a)yield*this.getFullNode({value:s,index:l},{renderer:n}),l++}else{let l=[];oe.Children.forEach(n,u=>{u&&l.push(u)});let s=0;for(let u of l){let d=this.getFullNode({element:u,index:s},{});for(let f of d)s++,yield f}}}getKey(t,n,a,l){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${l}${n.key}`;let s=n.value;if(s!=null){var u;let d=(u=s.key)!==null&&u!==void 0?u:s.id;if(d==null)throw new Error("No key found for item");return d}return l?`${l}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,a,l){if(oe.isValidElement(t.element)&&t.element.type===oe.Fragment){let E=[];oe.Children.forEach(t.element.props.children,M=>{E.push(M)});var s;let C=(s=t.index)!==null&&s!==void 0?s:0;for(const M of E)yield*this.getFullNode({element:M,index:C++},n,a,l);return}let u=t.element;if(!u&&t.value&&n&&n.renderer){let E=this.cache.get(t.value);if(E&&(!E.shouldInvalidate||!E.shouldInvalidate(this.context))){E.index=t.index,E.parentKey=l?l.key:null,yield E;return}u=n.renderer(t.value)}if(oe.isValidElement(u)){let E=u.type;if(typeof E!="function"&&typeof E.getCollectionNode!="function"){let O=u.type;throw new Error(`Unknown element <${O}> in collection.`)}let C=E.getCollectionNode(u.props,this.context);var d;let M=(d=t.index)!==null&&d!==void 0?d:0,T=C.next();for(;!T.done&&T.value;){let O=T.value;t.index=M;var f;let P=(f=O.key)!==null&&f!==void 0?f:null;P==null&&(P=O.element?null:this.getKey(u,t,n,a));let G=[...this.getFullNode({...O,key:P,index:M,wrapper:i_(t.wrapper,O.wrapper)},this.getChildState(n,O),a?`${a}${u.key}`:u.key,l)];for(let D of G){var h,p;D.value=(p=(h=O.value)!==null&&h!==void 0?h:t.value)!==null&&p!==void 0?p:null,D.value&&this.cache.set(D.value,D);var v;if(t.type&&D.type!==t.type)throw new Error(`Unsupported type <${ym(D.type)}> in <${ym((v=l==null?void 0:l.type)!==null&&v!==void 0?v:"unknown parent type")}>. Only <${ym(t.type)}> is supported.`);M++,yield D}T=C.next(G)}return}if(t.key==null||t.type==null)return;let y=this;var x,$;let w={type:t.type,props:t.props,key:t.key,parentKey:l?l.key:null,value:(x=t.value)!==null&&x!==void 0?x:null,level:l?l.level+1:0,index:t.index,rendered:t.rendered,textValue:($=t.textValue)!==null&&$!==void 0?$:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:J3(function*(){if(!t.hasChildNodes||!t.childNodes)return;let E=0;for(let C of t.childNodes()){C.key!=null&&(C.key=`${w.key}${C.key}`);let M=y.getFullNode({...C,index:E},y.getChildState(n,C),w.key,w);for(let T of M)E++,yield T}})};yield w}constructor(){this.cache=new WeakMap}}function J3(e){let t=[],n=null;return{*[Symbol.iterator](){for(let a of t)yield a;n||(n=e());for(let a of n)t.push(a),yield a}}}function i_(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function ym(e){return e[0].toUpperCase()+e.slice(1)}function l_(e,t,n){let a=b.useMemo(()=>new a_,[]),{children:l,items:s,collection:u}=e;return b.useMemo(()=>{if(u)return u;let f=a.build({children:l,items:s},n);return t(f)},[a,l,s,u,n,t])}function mn(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Zi(e){return Is(e,0)}function Is(e,t){if(t<0)return;let n=0;for(let a of e){if(n===t)return a;n++}}function So(e){let t;for(let n of e)t=n;return t}function xm(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let a=[...ew(e,t),t],l=[...ew(e,n),n],s=a.slice(0,l.length).findIndex((u,d)=>u!==l[d]);return s!==-1?(t=a[s],n=l[s],t.index-n.index):a.findIndex(u=>u===n)>=0?1:(l.findIndex(u=>u===t)>=0,-1)}function ew(e,t){let n=[],a=t;for(;(a==null?void 0:a.parentKey)!=null;)a=e.getItem(a.parentKey),a&&n.unshift(a);return n}const tw=new WeakMap;function bC(e){let t=tw.get(e);if(t!=null)return t;let n=0,a=l=>{for(let s of l)s.type==="section"?a(mn(s,e)):s.type==="item"&&n++};return a(e),tw.set(e,n),n}class Eb{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(a=>n.has(a)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let a of this.state.selectedKeys){let l=this.collection.getItem(a);(!t||l&&xm(this.collection,l,t)<0)&&(t=l)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let a of this.state.selectedKeys){let l=this.collection.getItem(a);(!t||l&&xm(this.collection,l,t)>0)&&(t=l)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let a;if(this.state.selectedKeys==="all")a=new kr([n],n,n);else{let u=this.state.selectedKeys;var l;let d=(l=u.anchorKey)!==null&&l!==void 0?l:n;a=new kr(u,d,n);var s;for(let f of this.getKeyRange(d,(s=u.currentKey)!==null&&s!==void 0?s:n))a.delete(f);for(let f of this.getKeyRange(n,d))this.canSelectItem(f)&&a.add(f)}this.state.setSelectedKeys(a)}getKeyRange(t,n){let a=this.collection.getItem(t),l=this.collection.getItem(n);return a&&l?xm(this.collection,a,l)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var a;if(!((a=this.layoutDelegate)===null||a===void 0)&&a.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let l=[],s=t;for(;s!=null;){let u=this.collection.getItem(s);if(u&&(u.type==="item"||u.type==="cell"&&this.allowsCellSelection)&&l.push(s),s===n)return l;s=this.collection.getKeyAfter(s)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let a=new kr(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);a.has(n)?a.delete(n):this.canSelectItem(n)&&(a.add(n),a.anchorKey=n,a.currentKey=n),!(this.disallowEmptySelection&&a.size===0)&&this.state.setSelectedKeys(a)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let a=this.canSelectItem(n)?new kr([n],n,n):new kr;this.state.setSelectedKeys(a)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new kr;for(let a of t){let l=this.getKey(a);if(l!=null&&(n.add(l),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=a=>{for(;a!=null;){if(this.canSelectItem(a)){var l;let u=this.collection.getItem(a);(u==null?void 0:u.type)==="item"&&t.push(a);var s;u!=null&&u.hasChildNodes&&(this.allowsCellSelection||u.type!=="item")&&n((s=(l=Zi(mn(u,this.collection)))===null||l===void 0?void 0:l.key)!==null&&s!==void 0?s:null)}a=this.collection.getKeyAfter(a)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new kr)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let a of t)if(!n.has(a))return!1;for(let a of n)if(!t.has(a))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let a=this.collection.getItem(t);return!(!a||!(a==null||(n=a.props)===null||n===void 0)&&n.isDisabled||a.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,a;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((a=this.collection.getItem(t))===null||a===void 0||(n=a.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,a;return!!(!((a=this.collection.getItem(t))===null||a===void 0||(n=a.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new Eb(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,a){this.collection=t,this.state=n;var l;this.allowsCellSelection=(l=a==null?void 0:a.allowsCellSelection)!==null&&l!==void 0?l:!1,this._isSelectAll=null,this.layoutDelegate=(a==null?void 0:a.layoutDelegate)||null}}class nw{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var a;return n&&(a=n.prevKey)!==null&&a!==void 0?a:null}getKeyAfter(t){let n=this.keyMap.get(t);var a;return n&&(a=n.nextKey)!==null&&a!==void 0?a:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=u=>{if(this.keyMap.set(u.key,u),u.childNodes&&u.type==="section")for(let d of u.childNodes)n(d)};for(let u of t)n(u);let a=null,l=0;for(let[u,d]of this.keyMap)a?(a.nextKey=u,d.prevKey=a.key):(this.firstKey=u,d.prevKey=void 0),d.type==="item"&&(d.index=l++),a=d,a.nextKey=void 0;var s;this.lastKey=(s=a==null?void 0:a.key)!==null&&s!==void 0?s:null}}function o_(e){let{filter:t,layoutDelegate:n}=e,a=n_(e),l=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=b.useCallback(p=>t?new nw(t(p)):new nw(p),[t]),u=b.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),d=l_(e,s,u),f=b.useMemo(()=>new Eb(d,a,{layoutDelegate:n}),[d,a,n]);const h=b.useRef(null);return b.useEffect(()=>{if(a.focusedKey!=null&&!d.getItem(a.focusedKey)&&h.current){const C=h.current.getItem(a.focusedKey),M=[...h.current.getKeys()].map(D=>{const V=h.current.getItem(D);return(V==null?void 0:V.type)==="item"?V:null}).filter(D=>D!==null),T=[...d.getKeys()].map(D=>{const V=d.getItem(D);return(V==null?void 0:V.type)==="item"?V:null}).filter(D=>D!==null);var p,v;const O=((p=M==null?void 0:M.length)!==null&&p!==void 0?p:0)-((v=T==null?void 0:T.length)!==null&&v!==void 0?v:0);var y,x,$;let P=Math.min(O>1?Math.max(((y=C==null?void 0:C.index)!==null&&y!==void 0?y:0)-O+1,0):(x=C==null?void 0:C.index)!==null&&x!==void 0?x:0,(($=T==null?void 0:T.length)!==null&&$!==void 0?$:0)-1),k=null,G=!1;for(;P>=0;){if(!f.isDisabled(T[P].key)){k=T[P];break}if(P<T.length-1&&!G)P++;else{G=!0;var w,E;P>((w=C==null?void 0:C.index)!==null&&w!==void 0?w:0)&&(P=(E=C==null?void 0:C.index)!==null&&E!==void 0?E:0),P--}}a.setFocusedKey(k?k.key:null)}h.current=d},[d,f,a,a.focusedKey]),{collection:d,disabledKeys:l,selectionManager:f}}function s_(e){const{collection:t,disabledKeys:n,selectionManager:a,selectionManager:{setSelectedKeys:l,selectedKeys:s,selectionMode:u}}=o_(e),d=b.useMemo(()=>!e.isLoading&&s.size!==0?Array.from(s).filter(Boolean).filter(h=>!t.getItem(h)):[],[s,t]),f=s.size!==0?Array.from(s).map(h=>t.getItem(h)).filter(Boolean):null;return d.length&&console.warn(`Select: Keys "${d.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:n,selectionManager:a,selectionMode:u,selectedKeys:s,setSelectedKeys:l.bind(a),selectedItems:f}}function u_(e){let t=VN(e),[n,a]=b.useState(null),[l,s]=b.useState([]),u=()=>{s([]),t.close()};return{focusStrategy:n,...t,open(h=null){a(h),t.open()},toggle(h=null){a(h),t.toggle()},close(){u()},expandedKeysStack:l,openSubmenu:(h,p)=>{s(v=>p>v.length?v:[...v.slice(0,p),h])},closeSubmenu:(h,p)=>{s(v=>v[p]===h?v.slice(0,p):v)}}}function lU({validate:e,validationBehavior:t,...n}){const[a,l]=b.useState(!1),[s,u]=b.useState(null),d=u_(n),f=s_({...n,onSelectionChange:v=>{n.onSelectionChange!=null&&(v==="all"?n.onSelectionChange(new Set(f.collection.getKeys())):n.onSelectionChange(v)),n.selectionMode==="single"&&d.close()}}),h=NN({...n,validationBehavior:t,validate:v=>{if(!e)return;const y=Array.from(v);return e(n.selectionMode==="single"?y[0]:y)},value:f.selectedKeys}),p=f.collection.size===0&&n.hideEmptyContent;return{...h,...f,...d,focusStrategy:s,close(){d.close()},open(v=null){p||(u(v),d.open())},toggle(v=null){p||(u(v),d.toggle())},isFocused:a,setFocused:l}}function c_(e){let{id:t,label:n,"aria-labelledby":a,"aria-label":l,labelElementType:s="label"}=e;t=Cr(t);let u=Cr(),d={};n?(a=a?`${u} ${a}`:u,d={id:u,htmlFor:s==="label"?t:void 0}):!a&&!l&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let f=uf({id:t,"aria-label":l,"aria-labelledby":a});return{labelProps:d,fieldProps:f}}function d_(e){let{description:t,errorMessage:n,isInvalid:a,validationState:l}=e,{labelProps:s,fieldProps:u}=c_(e),d=Ci([!!t,!!n,a,l]),f=Ci([!!t,!!n,a,l]);return u=Wt(u,{"aria-describedby":[d,f,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:u,descriptionProps:{id:d},errorMessageProps:{id:f}}}var yC={};yC={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var xC={};xC={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var wC={};wC={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var SC={};SC={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var $C={};$C={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var EC={};EC={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var CC={};CC={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var TC={};TC={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var DC={};DC={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var AC={};AC={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var MC={};MC={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var RC={};RC={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var PC={};PC={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var zC={};zC={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var OC={};OC={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var BC={};BC={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var kC={};kC={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var LC={};LC={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var NC={};NC={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var _C={};_C={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var KC={};KC={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var VC={};VC={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var IC={};IC={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var FC={};FC={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var jC={};jC={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var UC={};UC={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var HC={};HC={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var GC={};GC={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var qC={};qC={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var WC={};WC={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var YC={};YC={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var XC={};XC={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var ZC={};ZC={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var QC={};QC={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var JC={};JC={"ar-AE":yC,"bg-BG":xC,"cs-CZ":wC,"da-DK":SC,"de-DE":$C,"el-GR":EC,"en-US":CC,"es-ES":TC,"et-EE":DC,"fi-FI":AC,"fr-FR":MC,"he-IL":RC,"hr-HR":PC,"hu-HU":zC,"it-IT":OC,"ja-JP":BC,"ko-KR":kC,"lt-LT":LC,"lv-LV":NC,"nb-NO":_C,"nl-NL":KC,"pl-PL":VC,"pt-BR":IC,"pt-PT":FC,"ro-RO":jC,"ru-RU":UC,"sk-SK":HC,"sl-SI":GC,"sr-SP":qC,"sv-SE":WC,"tr-TR":YC,"uk-UA":XC,"zh-CN":ZC,"zh-TW":QC};const f_=new WeakMap;function h_(e,t,n){let{type:a}=e,{isOpen:l}=t;b.useEffect(()=>{n&&n.current&&f_.set(n.current,t.close)});let s;a==="menu"?s=!0:a==="listbox"&&(s="listbox");let u=ea();return{triggerProps:{"aria-haspopup":s,"aria-expanded":l,"aria-controls":l?u:void 0,onPress:t.toggle},overlayProps:{id:u}}}function p_(e){return e&&e.__esModule?e.default:e}function m_(e,t,n){let{type:a="menu",isDisabled:l,trigger:s="press"}=e,u=Cr(),{triggerProps:d,overlayProps:f}=h_({type:a},t,n),h=x=>{if(!l&&!(s==="longPress"&&!x.altKey)&&n&&n.current)switch(x.key){case"Enter":case" ":if(s==="longPress")return;case"ArrowDown":"continuePropagation"in x||x.stopPropagation(),x.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in x||x.stopPropagation(),x.preventDefault(),t.toggle("last");break;default:"continuePropagation"in x&&x.continuePropagation()}},p=Ia(p_(JC),"@react-aria/menu"),{longPressProps:v}=k2({isDisabled:l||s!=="longPress",accessibilityDescription:p.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),y={onPressStart(x){x.pointerType!=="touch"&&x.pointerType!=="keyboard"&&!l&&t.open(x.pointerType==="virtual"?"first":null)},onPress(x){x.pointerType==="touch"&&!l&&t.toggle()}};return delete d.onPress,{menuTriggerProps:{...d,...s==="press"?y:v,id:u,onKeyDown:h},menuProps:{...f,"aria-labelledby":u,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const e6=new WeakMap;function oU(e,t,n){let{shouldFocusWrap:a=!0,onKeyDown:l,onKeyUp:s,...u}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let d=aa(e,{labelable:!0}),{listProps:f}=$b({...u,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:a,linkBehavior:"override"});return e6.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:Wt(d,{onKeyDown:l,onKeyUp:s},{role:"menu",...f,onKeyDown:h=>{var p;h.key!=="Escape"&&((p=f.onKeyDown)===null||p===void 0||p.call(f,h))}})}}function sU(e,t,n){let{id:a,key:l,closeOnSelect:s,isVirtualized:u,"aria-haspopup":d,onPressStart:f,onPressUp:h,onPress:p,onPressChange:v,onPressEnd:y,onHoverStart:x,onHoverChange:$,onHoverEnd:w,onKeyDown:E,onKeyUp:C,onFocus:M,onFocusChange:T,onBlur:O,selectionManager:P=t.selectionManager}=e,k=!!d,G=k&&e["aria-expanded"]==="true";var D;let V=(D=e.isDisabled)!==null&&D!==void 0?D:P.isDisabled(l);var j;let z=(j=e.isSelected)!==null&&j!==void 0?j:P.isSelected(l),I=e6.get(t),L=t.collection.getItem(l),K=e.onClose||I.onClose,U=f$(),R=Se=>{var Le;if(!k){if(!(L==null||(Le=L.props)===null||Le===void 0)&&Le.onAction?L.props.onAction():e.onAction&&e.onAction(l),I.onAction){let Ae=I.onAction;Ae(l)}Se.target instanceof HTMLAnchorElement&&L&&U.open(Se.target,Se,L.props.href,L.props.routerOptions)}},B="menuitem";k||(P.selectionMode==="single"?B="menuitemradio":P.selectionMode==="multiple"&&(B="menuitemcheckbox"));let H=Ci(),te=Ci(),W=Ci(),_={id:a,"aria-disabled":V||void 0,role:B,"aria-label":e["aria-label"],"aria-labelledby":H,"aria-describedby":[te,W].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":d,"aria-expanded":e["aria-expanded"]};P.selectionMode!=="none"&&!k&&(_["aria-checked"]=z),u&&(_["aria-posinset"]=L==null?void 0:L.index,_["aria-setsize"]=bC(t.collection));let Z=Se=>{Se.pointerType==="keyboard"&&R(Se),f==null||f(Se)},ie=Se=>{Se.pointerType!=="keyboard"&&(R(Se),!k&&K&&(s??(P.selectionMode!=="multiple"||P.isLink(l)))&&K()),h==null||h(Se)},{itemProps:se,isFocused:de}=Eu({selectionManager:P,key:l,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:pe,isPressed:Me}=Na({onPressStart:Z,onPress:p,onPressUp:ie,onPressChange:v,onPressEnd:y,isDisabled:V}),{hoverProps:ye}=Iz({isDisabled:V,onHoverStart(Se){!bf()&&!(G&&d==="dialog")&&(P.setFocused(!0),P.setFocusedKey(l)),x==null||x(Se)},onHoverChange:$,onHoverEnd:w}),{keyboardProps:ge}=O2({onKeyDown:Se=>{if(Se.repeat){Se.continuePropagation();return}switch(Se.key){case" ":!V&&P.selectionMode==="none"&&!k&&s!==!1&&K&&K();break;case"Enter":!V&&s!==!1&&!k&&K&&K();break;default:k||Se.continuePropagation(),E==null||E(Se);break}},onKeyUp:C}),{focusProps:ce}=Kv({onBlur:O,onFocus:M,onFocusChange:T}),gt=aa(L==null?void 0:L.props);delete gt.id;let ue=Cv(L==null?void 0:L.props);return{menuItemProps:{..._,...Wt(gt,ue,k?{onFocus:se.onFocus,"data-key":se["data-key"]}:se,pe,ye,ge,ce),tabIndex:se.tabIndex!=null&&G?-1:se.tabIndex},labelProps:{id:H},descriptionProps:{id:te},keyboardShortcutProps:{id:W},isFocused:de,isSelected:z,isPressed:Me,isDisabled:V}}function uU(e){let{heading:t,"aria-label":n}=e,a=Cr();return{itemProps:{role:"presentation"},headingProps:t?{id:a,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?a:void 0}}}const g_=1e3;function v_(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:a}=e,l=b.useRef({search:"",timeout:void 0}).current,s=u=>{let d=b_(u.key);if(!(!d||u.ctrlKey||u.metaKey||!u.currentTarget.contains(u.target))){if(d===" "&&l.search.trim().length>0&&(u.preventDefault(),"continuePropagation"in u||u.stopPropagation()),l.search+=d,t.getKeyForSearch!=null){let f=t.getKeyForSearch(l.search,n.focusedKey);f==null&&(f=t.getKeyForSearch(l.search)),f!=null&&(n.setFocusedKey(f),a&&a(f))}clearTimeout(l.timeout),l.timeout=setTimeout(()=>{l.search=""},g_)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function b_(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}class rw{getItemRect(t){let n=this.ref.current;if(!n)return null;let a=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!a)return null;let l=n.getBoundingClientRect(),s=a.getBoundingClientRect();return{x:s.left-l.left+n.scrollLeft,y:s.top-l.top+n.scrollTop,width:s.width,height:s.height}}getContentSize(){let t=this.ref.current;var n,a;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(a=t==null?void 0:t.scrollHeight)!==null&&a!==void 0?a:0}}getVisibleRect(){let t=this.ref.current;var n,a,l,s;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(a=t==null?void 0:t.scrollTop)!==null&&a!==void 0?a:0,width:(l=t==null?void 0:t.offsetWidth)!==null&&l!==void 0?l:0,height:(s=t==null?void 0:t.offsetHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}}class y_{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let a=t;for(;a!=null;){let l=this.collection.getItem(a);if((l==null?void 0:l.type)==="item"&&!this.isDisabled(l))return a;a=n(a)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,a=>this.collection.getKeyAfter(a))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,a=>this.collection.getKeyBefore(a))}findKey(t,n,a){let l=t,s=this.layoutDelegate.getItemRect(l);if(!s||l==null)return null;let u=s;do{if(l=n(l),l==null)break;s=this.layoutDelegate.getItemRect(l)}while(s&&a(u,s)&&l!=null);return l}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,a=>this.layoutDelegate[n](a))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,a=>this.getNextColumn(a,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,a=>this.layoutDelegate[n](a))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,a=>this.getNextColumn(a,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,a=this.layoutDelegate.getItemRect(t);if(!a)return null;if(n&&!Rd(n))return this.getFirstKey();let l=t;if(this.orientation==="horizontal"){let s=Math.max(0,a.x+a.width-this.layoutDelegate.getVisibleRect().width);for(;a&&a.x>s&&l!=null;)l=this.getKeyAbove(l),a=l==null?null:this.layoutDelegate.getItemRect(l)}else{let s=Math.max(0,a.y+a.height-this.layoutDelegate.getVisibleRect().height);for(;a&&a.y>s&&l!=null;)l=this.getKeyAbove(l),a=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,a=this.layoutDelegate.getItemRect(t);if(!a)return null;if(n&&!Rd(n))return this.getLastKey();let l=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,a.y-a.width+this.layoutDelegate.getVisibleRect().width);for(;a&&a.x<s&&l!=null;)l=this.getKeyBelow(l),a=l==null?null:this.layoutDelegate.getItemRect(l)}else{let s=Math.min(this.layoutDelegate.getContentSize().height,a.y-a.height+this.layoutDelegate.getVisibleRect().height);for(;a&&a.y<s&&l!=null;)l=this.getKeyBelow(l),a=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let a=this.collection,l=n||this.getFirstKey();for(;l!=null;){let s=a.getItem(l);if(!s)return null;let u=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(u,t)===0)return l;l=this.getNextKey(l)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new rw(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new rw(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function cU(e,t,n){const{disallowEmptySelection:a,isDisabled:l}=e,s=TR({usage:"search",sensitivity:"base"}),u=b.useMemo(()=>new y_(t.collection,t.disabledKeys,null,s),[t.collection,t.disabledKeys,s]),{menuTriggerProps:d,menuProps:f}=m_({isDisabled:l,type:"listbox"},t,n),h=P=>{if(t.selectionMode==="single")switch(P.key){case"ArrowLeft":{P.preventDefault();const k=t.selectedKeys.size>0?u.getKeyAbove(t.selectedKeys.values().next().value):u.getFirstKey();k&&t.setSelectedKeys([k]);break}case"ArrowRight":{P.preventDefault();const k=t.selectedKeys.size>0?u.getKeyBelow(t.selectedKeys.values().next().value):u.getFirstKey();k&&t.setSelectedKeys([k]);break}}},{typeSelectProps:p}=v_({keyboardDelegate:u,selectionManager:t.selectionManager,onTypeSelect(P){t.setSelectedKeys([P])}}),{isInvalid:v,validationErrors:y,validationDetails:x}=t.displayValidation,{labelProps:$,fieldProps:w,descriptionProps:E,errorMessageProps:C}=d_({...e,labelElementType:"span",isInvalid:v,errorMessage:e.errorMessage||y});p.onKeyDown=p.onKeyDownCapture,delete p.onKeyDownCapture;const M=aa(e,{labelable:!0}),T=Wt(p,d,w),O=Cr();return{labelProps:{...$,onClick:()=>{var P;e.isDisabled||((P=n.current)==null||P.focus(),GP("keyboard"))}},triggerProps:Wt(M,{...T,onKeyDown:ol(T.onKeyDown,h,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[O,M["aria-label"]!==void 0?M["aria-labelledby"]!==void 0?M["aria-labelledby"]:T.id:T["aria-labelledby"]].join(" "),onFocus(P){t.isFocused||(e.onFocus&&e.onFocus(P),t.setFocused(!0))},onBlur(P){t.isOpen||(e.onBlur&&e.onBlur(P),t.setFocused(!1))}}),valueProps:{id:O},menuProps:{...f,disallowEmptySelection:a,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:P=>{P.currentTarget.contains(P.relatedTarget)||(e.onBlur&&e.onBlur(P),t.setFocused(!1))},onFocus:f==null?void 0:f.onFocus,"aria-labelledby":[w["aria-labelledby"],T["aria-label"]&&!w["aria-labelledby"]?T.id:null].filter(Boolean).join(" ")},descriptionProps:E,errorMessageProps:C,isInvalid:v,validationErrors:y,validationDetails:x}}const Cb=new WeakMap;function x_(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function w_(e,t){let n=Cb.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${x_(t)}`}function dU(e,t,n){let a=aa(e,{labelable:!0}),l=e.selectionBehavior||"toggle",s=e.linkBehavior||(l==="replace"?"action":"override");l==="toggle"&&s==="action"&&(s="override");let{listProps:u}=$b({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:d}=Bv({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),f=Cr(e.id);Cb.set(t,{id:f,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:s});let{labelProps:h,fieldProps:p}=$E({...e,id:f,labelElementType:"span"});return{labelProps:h,listBoxProps:Wt(a,d,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Wt(p,u)})}}function fU(e,t,n){var a,l;let{key:s}=e,u=Cb.get(t);var d;let f=(d=e.isDisabled)!==null&&d!==void 0?d:t.selectionManager.isDisabled(s);var h;let p=(h=e.isSelected)!==null&&h!==void 0?h:t.selectionManager.isSelected(s);var v;let y=(v=e.shouldSelectOnPressUp)!==null&&v!==void 0?v:u==null?void 0:u.shouldSelectOnPressUp;var x;let $=(x=e.shouldFocusOnHover)!==null&&x!==void 0?x:u==null?void 0:u.shouldFocusOnHover;var w;let E=(w=e.shouldUseVirtualFocus)!==null&&w!==void 0?w:u==null?void 0:u.shouldUseVirtualFocus;var C;let M=(C=e.isVirtualized)!==null&&C!==void 0?C:u==null?void 0:u.isVirtualized,T=Ci(),O=Ci(),P={role:"option","aria-disabled":f||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?p:void 0};Mo()&&Ev()||(P["aria-label"]=e["aria-label"],P["aria-labelledby"]=T,P["aria-describedby"]=O);let k=t.collection.getItem(s);if(M){let R=Number(k==null?void 0:k.index);P["aria-posinset"]=Number.isNaN(R)?void 0:R+1,P["aria-setsize"]=bC(t.collection)}let G=u!=null&&u.onAction?()=>{var R;return u==null||(R=u.onAction)===null||R===void 0?void 0:R.call(u,s)}:void 0,{itemProps:D,isPressed:V,isFocused:j,hasAction:z,allowsSelection:I}=Eu({selectionManager:t.selectionManager,key:s,ref:n,shouldSelectOnPressUp:y,allowsDifferentPressOrigin:y&&$,isVirtualized:M,shouldUseVirtualFocus:E,isDisabled:f,onAction:G||!(k==null||(a=k.props)===null||a===void 0)&&a.onAction?ol(k==null||(l=k.props)===null||l===void 0?void 0:l.onAction,G):void 0,linkBehavior:u==null?void 0:u.linkBehavior}),{hoverProps:L}=kv({isDisabled:f||!$,onHoverStart(){tu()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(s))}}),K=aa(k==null?void 0:k.props);delete K.id;let U=Cv(k==null?void 0:k.props);return{optionProps:{...P,...Wt(K,D,L,U),id:w_(t,s)},labelProps:{id:T},descriptionProps:{id:O},isFocused:j,isFocusVisible:j&&tu(),isSelected:p,isDisabled:f,isPressed:V,allowsSelection:I,hasAction:z}}function hU(e){let{heading:t,"aria-label":n}=e,a=Cr();return{itemProps:{role:"presentation"},headingProps:t?{id:a,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?a:void 0}}}function S_(e){let t=I9(e,{enabled:typeof e.elementType=="string"}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}function $_(e){const{as:t,className:n,orientation:a,...l}=e;let s=t||"hr";s==="hr"&&a==="vertical"&&(s="div");const{separatorProps:u}=S_({elementType:typeof s=="string"?s:"hr",orientation:a}),d=b.useMemo(()=>yv({orientation:a,className:n}),[a,n]),f=b.useCallback((h={})=>({className:d,role:"separator","data-orientation":a,...u,...l,...h}),[d,a,u,l]);return{Component:s,getDividerProps:f}}var t6=gv((e,t)=>{const{Component:n,getDividerProps:a}=$_({...e});return St.jsx(n,{ref:t,...a()})});t6.displayName="HeroUI.Divider";var pU=t6;function ao(e,t,n){let a=n.initialDeps??[],l;return()=>{var s,u,d,f;let h;n.key&&((s=n.debug)!=null&&s.call(n))&&(h=Date.now());const p=e();if(!(p.length!==a.length||p.some((x,$)=>a[$]!==x)))return l;a=p;let y;if(n.key&&((u=n.debug)!=null&&u.call(n))&&(y=Date.now()),l=t(...p),n.key&&((d=n.debug)!=null&&d.call(n))){const x=Math.round((Date.now()-h)*100)/100,$=Math.round((Date.now()-y)*100)/100,w=$/16,E=(C,M)=>{for(C=String(C);C.length<M;)C=" "+C;return C};console.info(`%c⏱ ${E($,5)} /${E(x,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(f=n==null?void 0:n.onChange)==null||f.call(n,l),l}}function wm(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const E_=(e,t)=>Math.abs(e-t)<1,C_=(e,t,n)=>{let a;return function(...l){e.clearTimeout(a),a=e.setTimeout(()=>t.apply(this,l),n)}},T_=e=>e,D_=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),a=[];for(let l=t;l<=n;l++)a.push(l);return a},A_=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;const l=u=>{const{width:d,height:f}=u;t({width:Math.round(d),height:Math.round(f)})};if(l(n.getBoundingClientRect()),!a.ResizeObserver)return()=>{};const s=new a.ResizeObserver(u=>{const d=u[0];if(d!=null&&d.borderBoxSize){const f=d.borderBoxSize[0];if(f){l({width:f.inlineSize,height:f.blockSize});return}}l(n.getBoundingClientRect())});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},aw={passive:!0},M_=typeof window>"u"?!0:"onscrollend"in window,R_=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;let l=0;const s=e.options.useScrollendEvent&&M_?()=>{}:C_(a,()=>{t(l,!1)},e.options.isScrollingResetDelay),u=h=>()=>{const{horizontal:p,isRtl:v}=e.options;l=p?n.scrollLeft*(v&&-1||1):n.scrollTop,s(),t(l,h)},d=u(!0),f=u(!1);return f(),n.addEventListener("scroll",d,aw),n.addEventListener("scrollend",f,aw),()=>{n.removeEventListener("scroll",d),n.removeEventListener("scrollend",f)}},P_=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const a=t.borderBoxSize[0];if(a)return Math.round(a[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},z_=(e,{adjustments:t=0,behavior:n},a)=>{var l,s;const u=e+t;(s=(l=a.scrollElement)==null?void 0:l.scrollTo)==null||s.call(l,{[a.options.horizontal?"left":"top"]:u,behavior:n})};let O_=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const a=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(l=>{l.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var l;(l=a())==null||l.disconnect(),n=null},observe:l=>{var s;return(s=a())==null?void 0:s.observe(l,{box:"border-box"})},unobserve:l=>{var s;return(s=a())==null?void 0:s.unobserve(l)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([a,l])=>{typeof l>"u"&&delete n[a]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:T_,rangeExtractor:D_,onChange:()=>{},measureElement:P_,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...n}},this.notify=n=>{var a,l;(l=(a=this.options).onChange)==null||l.call(a,this,n)},this.maybeNotify=ao(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const a=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==a){if(this.cleanup(),!a){this.maybeNotify();return}this.scrollElement=a,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(l=>{this.observer.observe(l)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(l,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<l?"forward":"backward":null,this.scrollOffset=l,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,a)=>{const l=new Map,s=new Map;for(let u=a-1;u>=0;u--){const d=n[u];if(l.has(d.lane))continue;const f=s.get(d.lane);if(f==null||d.end>f.end?s.set(d.lane,d):d.end<f.end&&l.set(d.lane,!0),l.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((u,d)=>u.end===d.end?u.index-d.index:u.end-d.end)[0]:void 0},this.getMeasurementOptions=ao(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,a,l,s,u)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:a,scrollMargin:l,getItemKey:s,enabled:u}),{key:!1}),this.getMeasurements=ao(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:a,scrollMargin:l,getItemKey:s,enabled:u},d)=>{if(!u)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(p=>{this.itemSizeCache.set(p.key,p.size)}));const f=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const h=this.measurementsCache.slice(0,f);for(let p=f;p<n;p++){const v=s(p),y=this.options.lanes===1?h[p-1]:this.getFurthestMeasurement(h,p),x=y?y.end+this.options.gap:a+l,$=d.get(v),w=typeof $=="number"?$:this.options.estimateSize(p),E=x+w,C=y?y.lane:p%this.options.lanes;h[p]={index:p,start:x,size:w,end:E,key:v,lane:C}}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ao(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,a,l)=>this.range=n.length>0&&a>0?B_({measurements:n,outerSize:a,scrollOffset:l}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=ao(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,a,l,s)=>a===null?[]:n({startIndex:a.startIndex,endIndex:a.endIndex,overscan:l,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const a=this.options.indexAttribute,l=n.getAttribute(a);return l?parseInt(l,10):(console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1)},this._measureElement=(n,a)=>{const l=this.indexFromElement(n),s=this.measurementsCache[l];if(!s)return;const u=s.key,d=this.elementsCache.get(u);d!==n&&(d&&this.observer.unobserve(d),this.observer.observe(n),this.elementsCache.set(u,n)),n.isConnected&&this.resizeItem(l,this.options.measureElement(n,a,this))},this.resizeItem=(n,a)=>{const l=this.measurementsCache[n];if(!l)return;const s=this.itemSizeCache.get(l.key)??l.size,u=a-s;u!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(l,u,this):l.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=u,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(l.index),this.itemSizeCache=new Map(this.itemSizeCache.set(l.key,a)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((a,l)=>{a.isConnected||(this.observer.unobserve(a),this.elementsCache.delete(l))});return}this._measureElement(n,void 0)},this.getVirtualItems=ao(()=>[this.getIndexes(),this.getMeasurements()],(n,a)=>{const l=[];for(let s=0,u=n.length;s<u;s++){const d=n[s],f=a[d];l.push(f)}return l},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const a=this.getMeasurements();if(a.length!==0)return wm(a[n6(0,a.length-1,l=>wm(a[l]).start,n)])},this.getOffsetForAlignment=(n,a)=>{const l=this.getSize(),s=this.getScrollOffset();a==="auto"&&n>=s+l&&(a="end"),a==="end"&&(n-=l);const u=this.options.horizontal?"scrollWidth":"scrollHeight",f=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[u]:this.scrollElement[u]:0)-l;return Math.max(Math.min(f,n),0)},this.getOffsetForIndex=(n,a="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const l=this.measurementsCache[n];if(!l)return;const s=this.getSize(),u=this.getScrollOffset();if(a==="auto")if(l.end>=u+s-this.options.scrollPaddingEnd)a="end";else if(l.start<=u+this.options.scrollPaddingStart)a="start";else return[u,a];const d=l.start-this.options.scrollPaddingStart+(l.size-s)/2;switch(a){case"center":return[this.getOffsetForAlignment(d,a),a];case"end":return[this.getOffsetForAlignment(l.end+this.options.scrollPaddingEnd,a),a];default:return[this.getOffsetForAlignment(l.start-this.options.scrollPaddingStart,a),a]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:a="start",behavior:l}={})=>{this.cancelScrollToIndex(),l==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,a),{adjustments:void 0,behavior:l})},this.scrollToIndex=(n,{align:a="auto",behavior:l}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),l==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const s=this.getOffsetForIndex(n,a);if(!s)return;const[u,d]=s;this._scrollToOffset(u,{adjustments:void 0,behavior:l}),l!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[h]=wm(this.getOffsetForIndex(n,d));E_(h,this.getScrollOffset())||this.scrollToIndex(n,{align:d,behavior:l})}else this.scrollToIndex(n,{align:d,behavior:l})}))},this.scrollBy=(n,{behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:a})},this.getTotalSize=()=>{var n;const a=this.getMeasurements();let l;return a.length===0?l=this.options.paddingStart:l=this.options.lanes===1?((n=a[a.length-1])==null?void 0:n.end)??0:Math.max(...a.slice(-this.options.lanes).map(s=>s.end)),Math.max(l-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:a,behavior:l})=>{this.options.scrollToFn(n,{behavior:l,adjustments:a},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}};const n6=(e,t,n,a)=>{for(;e<=t;){const l=(e+t)/2|0,s=n(l);if(s<a)e=l+1;else if(s>a)t=l-1;else return l}return e>0?e-1:0};function B_({measurements:e,outerSize:t,scrollOffset:n}){const a=e.length-1,s=n6(0,a,d=>e[d].start,n);let u=s;for(;u<a&&e[u].end<n+t;)u++;return{startIndex:s,endIndex:u}}const iw=typeof document<"u"?b.useLayoutEffect:b.useEffect;function k_(e){const t=b.useReducer(()=>({}),{})[1],n={...e,onChange:(l,s)=>{var u;s?Yr.flushSync(t):t(),(u=e.onChange)==null||u.call(e,l,s)}},[a]=b.useState(()=>new O_(n));return a.setOptions(n),iw(()=>a._didMount(),[]),iw(()=>a._willUpdate()),a}function gU(e){return k_({observeElementRect:A_,observeElementOffset:R_,scrollToFn:z_,...e})}var L_=function(e){return function(t,n){var a=b.useRef(!1);e(function(){return function(){a.current=!1}},[]),e(function(){if(!a.current)a.current=!0;else return t()},n)}},N_=function(e){return typeof e=="function"},io=function(e){var t=b.useRef(e);t.current=b.useMemo(function(){return e},[e]);var n=b.useRef(void 0);return n.current||(n.current=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return t.current.apply(this,a)}),n.current};const Jg=L_(b.useEffect);var r6=function(e,t){var n=t.manual,a=t.ready,l=a===void 0?!0:a,s=t.defaultParams,u=s===void 0?[]:s,d=t.refreshDeps,f=d===void 0?[]:d,h=t.refreshDepsAction,p=b.useRef(!1);return p.current=!1,Jg(function(){!n&&l&&(p.current=!0,e.run.apply(e,bn([],vn(u),!1)))},[l]),Jg(function(){p.current||n||(p.current=!0,h?h():e.refresh())},bn([],vn(f),!1)),{onBefore:function(){if(!l)return{stopNow:!0}}}};r6.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,a=e.manual;return{loading:!a&&n}};function __(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}var a6=function(e,t){var n=b.useRef({deps:t,obj:void 0,initialized:!1}).current;return(n.initialized===!1||!__(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj};function i6(e){var t=b.useRef(e);return t.current=e,t}var Tb=function(e){var t=i6(e);b.useEffect(function(){return function(){t.current()}},[])},wd=new Map,K_=function(e,t,n){var a=wd.get(e);a!=null&&a.timer&&clearTimeout(a.timer);var l=void 0;t>-1&&(l=setTimeout(function(){wd.delete(e)},t)),wd.set(e,Lr(Lr({},n),{timer:l}))},V_=function(e){return wd.get(e)},Sd=new Map,I_=function(e){return Sd.get(e)},F_=function(e,t){Sd.set(e,t),t.then(function(n){return Sd.delete(e),n}).catch(function(){Sd.delete(e)})},Qi={},j_=function(e,t){Qi[e]&&Qi[e].forEach(function(n){return n(t)})},Sm=function(e,t){return Qi[e]||(Qi[e]=[]),Qi[e].push(t),function(){var a=Qi[e].indexOf(t);Qi[e].splice(a,1)}},U_=function(e,t){var n=t.cacheKey,a=t.cacheTime,l=a===void 0?300*1e3:a,s=t.staleTime,u=s===void 0?0:s,d=t.setCache,f=t.getCache,h=b.useRef(void 0),p=b.useRef(void 0),v=function(x,$){d?d($):K_(x,l,$),j_(x,$.data)},y=function(x,$){return $===void 0&&($=[]),f?f($):V_(x)};return a6(function(){if(n){var x=y(n);x&&Object.hasOwnProperty.call(x,"data")&&(e.state.data=x.data,e.state.params=x.params,(u===-1||Date.now()-x.time<=u)&&(e.state.loading=!1)),h.current=Sm(n,function($){e.setState({data:$})})}},[]),Tb(function(){var x;(x=h.current)===null||x===void 0||x.call(h)}),n?{onBefore:function(x){var $=y(n,x);return!$||!Object.hasOwnProperty.call($,"data")?{}:u===-1||Date.now()-$.time<=u?{loading:!1,data:$==null?void 0:$.data,error:void 0,returnNow:!0}:{data:$==null?void 0:$.data,error:void 0}},onRequest:function(x,$){var w=I_(n);return w&&w!==p.current?{servicePromise:w}:(w=x.apply(void 0,bn([],vn($),!1)),p.current=w,F_(n,w),{servicePromise:w})},onSuccess:function(x,$){var w;n&&((w=h.current)===null||w===void 0||w.call(h),v(n,{data:x,params:$,time:Date.now()}),h.current=Sm(n,function(E){e.setState({data:E})}))},onMutate:function(x){var $;n&&(($=h.current)===null||$===void 0||$.call(h),v(n,{data:x,params:e.state.params,time:Date.now()}),h.current=Sm(n,function(w){e.setState({data:w})}))}}:{}},$m,lw;function Db(){if(lw)return $m;lw=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return $m=e,$m}var Em,ow;function H_(){if(ow)return Em;ow=1;var e=typeof _c=="object"&&_c&&_c.Object===Object&&_c;return Em=e,Em}var Cm,sw;function l6(){if(sw)return Cm;sw=1;var e=H_(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Cm=n,Cm}var Tm,uw;function G_(){if(uw)return Tm;uw=1;var e=l6(),t=function(){return e.Date.now()};return Tm=t,Tm}var Dm,cw;function q_(){if(cw)return Dm;cw=1;var e=/\s/;function t(n){for(var a=n.length;a--&&e.test(n.charAt(a)););return a}return Dm=t,Dm}var Am,dw;function W_(){if(dw)return Am;dw=1;var e=q_(),t=/^\s+/;function n(a){return a&&a.slice(0,e(a)+1).replace(t,"")}return Am=n,Am}var Mm,fw;function o6(){if(fw)return Mm;fw=1;var e=l6(),t=e.Symbol;return Mm=t,Mm}var Rm,hw;function Y_(){if(hw)return Rm;hw=1;var e=o6(),t=Object.prototype,n=t.hasOwnProperty,a=t.toString,l=e?e.toStringTag:void 0;function s(u){var d=n.call(u,l),f=u[l];try{u[l]=void 0;var h=!0}catch{}var p=a.call(u);return h&&(d?u[l]=f:delete u[l]),p}return Rm=s,Rm}var Pm,pw;function X_(){if(pw)return Pm;pw=1;var e=Object.prototype,t=e.toString;function n(a){return t.call(a)}return Pm=n,Pm}var zm,mw;function s6(){if(mw)return zm;mw=1;var e=o6(),t=Y_(),n=X_(),a="[object Null]",l="[object Undefined]",s=e?e.toStringTag:void 0;function u(d){return d==null?d===void 0?l:a:s&&s in Object(d)?t(d):n(d)}return zm=u,zm}var Om,gw;function u6(){if(gw)return Om;gw=1;function e(t){return t!=null&&typeof t=="object"}return Om=e,Om}var Bm,vw;function Z_(){if(vw)return Bm;vw=1;var e=s6(),t=u6(),n="[object Symbol]";function a(l){return typeof l=="symbol"||t(l)&&e(l)==n}return Bm=a,Bm}var km,bw;function Q_(){if(bw)return km;bw=1;var e=W_(),t=Db(),n=Z_(),a=NaN,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,d=parseInt;function f(h){if(typeof h=="number")return h;if(n(h))return a;if(t(h)){var p=typeof h.valueOf=="function"?h.valueOf():h;h=t(p)?p+"":p}if(typeof h!="string")return h===0?h:+h;h=e(h);var v=s.test(h);return v||u.test(h)?d(h.slice(2),v?2:8):l.test(h)?a:+h}return km=f,km}var Lm,yw;function c6(){if(yw)return Lm;yw=1;var e=Db(),t=G_(),n=Q_(),a="Expected a function",l=Math.max,s=Math.min;function u(d,f,h){var p,v,y,x,$,w,E=0,C=!1,M=!1,T=!0;if(typeof d!="function")throw new TypeError(a);f=n(f)||0,e(h)&&(C=!!h.leading,M="maxWait"in h,y=M?l(n(h.maxWait)||0,f):y,T="trailing"in h?!!h.trailing:T);function O(L){var K=p,U=v;return p=v=void 0,E=L,x=d.apply(U,K),x}function P(L){return E=L,$=setTimeout(D,f),C?O(L):x}function k(L){var K=L-w,U=L-E,R=f-K;return M?s(R,y-U):R}function G(L){var K=L-w,U=L-E;return w===void 0||K>=f||K<0||M&&U>=y}function D(){var L=t();if(G(L))return V(L);$=setTimeout(D,k(L))}function V(L){return $=void 0,T&&p?O(L):(p=v=void 0,x)}function j(){$!==void 0&&clearTimeout($),E=0,p=w=v=$=void 0}function z(){return $===void 0?x:V(t())}function I(){var L=t(),K=G(L);if(p=arguments,v=this,w=L,K){if($===void 0)return P(w);if(M)return clearTimeout($),$=setTimeout(D,f),O(w)}return $===void 0&&($=setTimeout(D,f)),x}return I.cancel=j,I.flush=z,I}return Lm=u,Lm}var J_=c6();const eK=tf(J_);var tK=function(e,t){var n=t.debounceWait,a=t.debounceLeading,l=t.debounceTrailing,s=t.debounceMaxWait,u=b.useRef(void 0),d=b.useMemo(function(){var f={};return a!==void 0&&(f.leading=a),l!==void 0&&(f.trailing=l),s!==void 0&&(f.maxWait=s),f},[a,l,s]);return b.useEffect(function(){if(n){var f=e.runAsync.bind(e);return u.current=eK(function(h){h()},n,d),e.runAsync=function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new Promise(function(v,y){var x;(x=u.current)===null||x===void 0||x.call(u,function(){f.apply(void 0,bn([],vn(h),!1)).then(v).catch(y)})})},function(){var h;(h=u.current)===null||h===void 0||h.cancel(),e.runAsync=f}}},[n,d]),n?{onCancel:function(){var f;(f=u.current)===null||f===void 0||f.cancel()}}:{}},nK=function(e,t){var n=t.loadingDelay,a=t.ready,l=b.useRef(void 0);if(!n)return{};var s=function(){l.current&&clearTimeout(l.current)};return{onBefore:function(){return s(),a!==!1&&(l.current=setTimeout(function(){e.setState({loading:!0})},n)),{loading:!1}},onFinally:function(){s()},onCancel:function(){s()}}},$f=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ab(){return $f?document.visibilityState!=="hidden":!0}var $d=new Set;function rK(e){return $d.add(e),function(){$d.has(e)&&$d.delete(e)}}if($f){var aK=function(){Ab()&&$d.forEach(function(e){return e()})};window.addEventListener("visibilitychange",aK,!1)}var iK=function(e,t){var n=t.pollingInterval,a=t.pollingWhenHidden,l=a===void 0?!0:a,s=t.pollingErrorRetryCount,u=s===void 0?-1:s,d=b.useRef(void 0),f=b.useRef(void 0),h=b.useRef(0),p=function(){var v;d.current&&clearTimeout(d.current),(v=f.current)===null||v===void 0||v.call(f)};return Jg(function(){n||p()},[n]),n?{onBefore:function(){p()},onError:function(){h.current+=1},onSuccess:function(){h.current=0},onFinally:function(){u===-1||u!==-1&&h.current<=u?d.current=setTimeout(function(){!l&&!Ab()?f.current=rK(function(){e.refresh()}):e.refresh()},n):h.current=0},onCancel:function(){p()}}:{}};function lK(e,t){var n=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];n||(n=!0,e.apply(void 0,bn([],vn(a),!1)),setTimeout(function(){n=!1},t))}}var oK=function(){return $f&&typeof navigator.onLine<"u"?navigator.onLine:!0},Ed=new Set;function sK(e){return Ed.add(e),function(){Ed.has(e)&&Ed.delete(e)}}if($f){var xw=function(){!Ab()||!oK()||Ed.forEach(function(e){return e()})};window.addEventListener("visibilitychange",xw,!1),window.addEventListener("focus",xw,!1)}var uK=function(e,t){var n=t.refreshOnWindowFocus,a=t.focusTimespan,l=a===void 0?5e3:a,s=b.useRef(void 0),u=function(){var d;(d=s.current)===null||d===void 0||d.call(s)};return b.useEffect(function(){if(n){var d=lK(e.refresh.bind(e),l);s.current=sK(function(){d()})}return function(){u()}},[n,l]),Tb(function(){u()}),{}},cK=function(e,t){var n=t.retryInterval,a=t.retryCount,l=b.useRef(void 0),s=b.useRef(0),u=b.useRef(!1);return a?{onBefore:function(){u.current||(s.current=0),u.current=!1,l.current&&clearTimeout(l.current)},onSuccess:function(){s.current=0},onError:function(){if(s.current+=1,a===-1||s.current<=a){var d=n??Math.min(1e3*Math.pow(2,s.current),3e4);l.current=setTimeout(function(){u.current=!0,e.refresh()},d)}else s.current=0},onCancel:function(){s.current=0,l.current&&clearTimeout(l.current)}}:{}},Nm,ww;function dK(){if(ww)return Nm;ww=1;var e=c6(),t=Db(),n="Expected a function";function a(l,s,u){var d=!0,f=!0;if(typeof l!="function")throw new TypeError(n);return t(u)&&(d="leading"in u?!!u.leading:d,f="trailing"in u?!!u.trailing:f),e(l,s,{leading:d,maxWait:s,trailing:f})}return Nm=a,Nm}var fK=dK();const hK=tf(fK);var pK=function(e,t){var n=t.throttleWait,a=t.throttleLeading,l=t.throttleTrailing,s=b.useRef(void 0),u={};return a!==void 0&&(u.leading=a),l!==void 0&&(u.trailing=l),b.useEffect(function(){if(n){var d=e.runAsync.bind(e);return s.current=hK(function(f){f()},n,u),e.runAsync=function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return new Promise(function(p,v){var y;(y=s.current)===null||y===void 0||y.call(s,function(){d.apply(void 0,bn([],vn(f),!1)).then(p).catch(v)})})},function(){var f;e.runAsync=d,(f=s.current)===null||f===void 0||f.cancel()}}},[n,a,l]),n?{onCancel:function(){var d;(d=s.current)===null||d===void 0||d.cancel()}}:{}},mK=function(e){b.useEffect(function(){var t=e==null?void 0:e();if(!(t&&typeof t=="object"&&typeof t.then=="function"))return t},[])},gK=function(){var e=vn(b.useState({}),2),t=e[1];return b.useCallback(function(){return t({})},[])},vK=(function(){function e(t,n,a,l){l===void 0&&(l={}),this.serviceRef=t,this.options=n,this.subscribe=a,this.initState=l,this.pluginImpls=[],this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Lr(Lr(Lr({},this.state),{loading:!n.manual}),l)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Lr(Lr({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];var l=this.pluginImpls.map(function(s){var u;return(u=s[t])===null||u===void 0?void 0:u.call.apply(u,bn([s],vn(n),!1))}).filter(Boolean);return Object.assign.apply(Object,bn([{}],vn(l),!1))},e.prototype.runAsync=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return J9(this,void 0,void 0,function(){var a,l,s,u,d,f,h,p,v,y,x,$,w,E,C,M,T,O,P,k,G;return eR(this,function(D){switch(D.label){case 0:if(this.count+=1,a=this.count,l=this.runPluginHandler("onBefore",t),s=l.stopNow,u=s===void 0?!1:s,d=l.returnNow,f=d===void 0?!1:d,h=o$(l,["stopNow","returnNow"]),u)return[2,new Promise(function(){})];if(this.setState(Lr({loading:!0,params:t},h)),f)return[2,Promise.resolve(h.data)];(w=($=this.options).onBefore)===null||w===void 0||w.call($,t),D.label=1;case 1:return D.trys.push([1,3,,4]),p=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,p||(p=(x=this.serviceRef).current.apply(x,bn([],vn(t),!1))),[4,p];case 2:return v=D.sent(),a!==this.count?[2,new Promise(function(){})]:(this.setState({data:v,error:void 0,loading:!1}),(C=(E=this.options).onSuccess)===null||C===void 0||C.call(E,v,t),this.runPluginHandler("onSuccess",v,t),(T=(M=this.options).onFinally)===null||T===void 0||T.call(M,t,v,void 0),a===this.count&&this.runPluginHandler("onFinally",t,v,void 0),[2,v]);case 3:if(y=D.sent(),a!==this.count)return[2,new Promise(function(){})];throw this.setState({error:y,loading:!1}),(P=(O=this.options).onError)===null||P===void 0||P.call(O,y,t),this.runPluginHandler("onError",y,t),(G=(k=this.options).onFinally)===null||G===void 0||G.call(k,t,void 0,y),a===this.count&&this.runPluginHandler("onFinally",t,void 0,y),y;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];this.runAsync.apply(this,bn([],vn(n),!1)).catch(function(l){t.options.onError||console.error(l)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,bn([],vn(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,bn([],vn(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=N_(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n})},e})();function bK(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var a=t.manual,l=a===void 0?!1:a,s=t.ready,u=s===void 0?!0:s,d=o$(t,["manual","ready"]),f=Lr({manual:l,ready:u},d),h=i6(e),p=gK(),v=a6(function(){var y=n.map(function(x){var $;return($=x==null?void 0:x.onInit)===null||$===void 0?void 0:$.call(x,f)}).filter(Boolean);return new vK(h,f,p,Object.assign.apply(Object,bn([{}],vn(y),!1)))},[]);return v.options=f,v.pluginImpls=n.map(function(y){return y(v,f)}),mK(function(){if(!l&&u){var y=v.state.params||t.defaultParams||[];v.run.apply(v,bn([],vn(y),!1))}}),Tb(function(){v.cancel()}),{loading:v.state.loading,data:v.state.data,error:v.state.error,params:v.state.params||[],cancel:io(v.cancel.bind(v)),refresh:io(v.refresh.bind(v)),refreshAsync:io(v.refreshAsync.bind(v)),run:io(v.run.bind(v)),runAsync:io(v.runAsync.bind(v)),mutate:io(v.mutate.bind(v))}}function vU(e,t,n){return bK(e,t,bn(bn([],vn([]),!1),[tK,nK,iK,uK,pK,r6,U_,cK],!1))}var _m,Sw;function yK(){if(Sw)return _m;Sw=1;function e(t,n){return function(a){return t(n(a))}}return _m=e,_m}var Km,$w;function xK(){if($w)return Km;$w=1;var e=yK(),t=e(Object.getPrototypeOf,Object);return Km=t,Km}var Vm,Ew;function bU(){if(Ew)return Vm;Ew=1;var e=s6(),t=xK(),n=u6(),a="[object Object]",l=Function.prototype,s=Object.prototype,u=l.toString,d=s.hasOwnProperty,f=u.call(Object);function h(p){if(!n(p)||e(p)!=a)return!1;var v=t(p);if(v===null)return!0;var y=d.call(v,"constructor")&&v.constructor;return typeof y=="function"&&y instanceof y&&u.call(y)==f}return Vm=h,Vm}function yU(e){return typeof e=="function"}var wK=e=>e?"true":void 0;function d6(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=d6(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}function f6(...e){for(var t=0,n,a,l="";t<e.length;)(n=e[t++])&&(a=d6(n))&&(l&&(l+=" "),l+=a);return l}var xU=(...e)=>{let t=" ";for(const n of e)if(typeof n=="string"&&n.length>0){t=n;break}return t};function wU(...e){return function(n){e.some(a=>(a==null||a(n),n==null?void 0:n.defaultPrevented))}}function SK(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function gi(e,t){const n=t-e+1;return Array.from({length:n},(a,l)=>l+e)}function $K(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}var Cw=new Map;function EK(e,t){if(e===t)return e;let n=Cw.get(e);if(n)return n.forEach(l=>l.current=t),t;let a=Cw.get(t);return a?(a.forEach(l=>l.current=e),e):t}function SU(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let a=e[n];for(let l in a){let s=t[l],u=a[l];typeof s=="function"&&typeof u=="function"&&l[0]==="o"&&l[1]==="n"&&l.charCodeAt(2)>=65&&l.charCodeAt(2)<=90?t[l]=$K(s,u):(l==="className"||l==="UNSAFE_className")&&typeof s=="string"&&typeof u=="string"?t[l]=f6(s,u):l==="id"&&s&&u?t.id=EK(s,u):t[l]=u!==void 0?u:s}}return t}function $U(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const a=e.map(l=>{const s=Tw(l,t);return n||(n=typeof s=="function"),s});if(n)return()=>{a.forEach((l,s)=>{typeof l=="function"?l==null||l():Tw(e[s],null)})}}}function Tw(e,t){if(typeof e=="function")return()=>e(t);e!=null&&"current"in e&&(e.current=t)}var CK=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),TK=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),Dw=/^(data-.*)$/,DK=/^(aria-.*)$/,ld=/^(on[A-Z].*)$/;function h6(e,t={}){let{labelable:n=!0,enabled:a=!0,propNames:l,omitPropNames:s,omitEventNames:u,omitDataProps:d,omitEventProps:f}=t,h={};if(!a)return e;for(const p in e)s!=null&&s.has(p)||u!=null&&u.has(p)&&ld.test(p)||ld.test(p)&&!TK.has(p)||d&&Dw.test(p)||f&&ld.test(p)||(Object.prototype.hasOwnProperty.call(e,p)&&(CK.has(p)||n&&DK.test(p)||l!=null&&l.has(p)||Dw.test(p))||ld.test(p))&&(h[p]=e[p]);return h}var AK=(e=>(e.DOTS="dots",e.PREV="prev",e.NEXT="next",e))(AK||{});function EU(e){const{page:t,total:n,siblings:a=1,boundaries:l=1,initialPage:s=1,showControls:u=!1,onChange:d}=e,[f,h]=b.useState(t||s),{direction:p}=ia(),v=p==="rtl",y=O=>{h(O),d&&d(O)};b.useEffect(()=>{t&&t!==f&&h(t)},[t]);const x=b.useCallback(O=>{O<=0?y(1):O>n?y(n):y(O)},[n,f,y]),$=()=>x(f+1),w=()=>x(f-1),E=()=>x(1),C=()=>x(n),M=b.useCallback(O=>u?["prev",...O,"next"]:O,[v,u]);return{range:b.useMemo(()=>{if(a*2+3+l*2>=n)return M(gi(1,n));const P=Math.max(f-a,l),k=Math.min(f+a,n-l),G=P>l+2,D=k<n-(l+1);if(!G&&D){const V=a*2+l+2;return M([...gi(1,V),"dots",...gi(n-(l-1),n)])}if(G&&!D){const V=l+1+2*a;return M([...gi(1,l),"dots",...gi(n-V,n)])}return M([...gi(1,l),"dots",...gi(P,k),"dots",...gi(n-l+1,n)])},[n,f,a,l,M]),activePage:f,setPage:x,next:$,previous:w,first:E,last:C}}function MK(e){let t=h6(e,{enabled:typeof e.elementType=="string"}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}function RK(e){const{as:t,className:n,orientation:a,...l}=e;let s=t||"hr";s==="hr"&&a==="vertical"&&(s="div");const{separatorProps:u}=MK({elementType:typeof s=="string"?s:"hr",orientation:a}),d=b.useMemo(()=>yv({orientation:a,className:n}),[a,n]),f=b.useCallback((h={})=>({className:d,role:"separator","data-orientation":a,...u,...l,...h}),[d,a,u,l]);return{Component:s,getDividerProps:f}}function PK(e){return b.forwardRef(e)}var p6=PK((e,t)=>{const{Component:n,getDividerProps:a}=RK({...e});return St.jsx(n,{ref:t,...a()})});p6.displayName="HeroUI.Divider";var CU=p6;function zK(e,t){let{elementType:n="button",isDisabled:a,onPress:l,onPressStart:s,onPressEnd:u,onPressUp:d,onPressChange:f,preventFocusOnPress:h,allowFocusWhenDisabled:p,onClick:v,href:y,target:x,rel:$,type:w="button"}=e,E;n==="button"?E={type:w,disabled:a,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:E={role:"button",href:n==="a"&&!a?y:void 0,target:n==="a"?x:void 0,type:n==="input"?w:void 0,disabled:n==="input"?a:void 0,"aria-disabled":!a||n==="input"?void 0:a,rel:n==="a"?$:void 0};let{pressProps:C,isPressed:M}=Na({onPressStart:s,onPressEnd:u,onPressChange:f,onPress:l,onPressUp:d,onClick:v,isDisabled:a,preventFocusOnPress:h,ref:t}),{focusableProps:T}=bu(e,t);p&&(T.tabIndex=a?-1:T.tabIndex);let O=ft(T,C,ff(e,{labelable:!0}));return{isPressed:M,buttonProps:ft(E,O,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function TU(e,t,n){let{item:a,isDisabled:l}=e,s=a.key,u=t.selectionManager,d=b.useId(),f=b.useId(),h=t.disabledKeys.has(a.key)||l;b.useEffect(()=>{s===t.focusedKey&&document.activeElement!==n.current&&n.current&&tr(n.current)},[n,s,t.focusedKey]);let p=b.useCallback(w=>{u.canSelectItem(s)&&(u.select(s,w),t.toggleKey(s))},[s,u]);const v=b.useCallback(w=>{u.selectionBehavior==="replace"&&u.extendSelection(w),u.setFocusedKey(w)},[u]),y=b.useCallback(w=>{const C={ArrowDown:()=>{const M=t.collection.getKeyAfter(s);if(M&&t.disabledKeys.has(M)){const T=t.collection.getKeyAfter(M);T&&v(T)}else M&&v(M)},ArrowUp:()=>{const M=t.collection.getKeyBefore(s);if(M&&t.disabledKeys.has(M)){const T=t.collection.getKeyBefore(M);T&&v(T)}else M&&v(M)},Home:()=>{const M=t.collection.getFirstKey();M&&v(M)},End:()=>{const M=t.collection.getLastKey();M&&v(M)}}[w.key];C&&(w.preventDefault(),u.canSelectItem(s)&&C(w))},[s,u]);let{buttonProps:x}=zK({id:d,elementType:"button",isDisabled:h,onKeyDown:y,onPress:p},n),$=t.selectionManager.isSelected(a.key);return{buttonProps:{...x,"aria-expanded":$,"aria-controls":$?f:void 0},regionProps:{id:f,role:"region","aria-labelledby":d}}}function DU(e,t,n){let{listProps:a}=$b({...e,...t,allowsTabNavigation:!0,disallowSelectAll:!0,ref:n});return delete a.onKeyDownCapture,{accordionProps:{...a,tabIndex:void 0}}}function OK(e){let t=h6(e,{enabled:typeof e.elementType=="string"}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}function BK(e){const{as:t,className:n,orientation:a,...l}=e;let s=t||"hr";s==="hr"&&a==="vertical"&&(s="div");const{separatorProps:u}=OK({elementType:typeof s=="string"?s:"hr",orientation:a}),d=b.useMemo(()=>yv({orientation:a,className:n}),[a,n]),f=b.useCallback((h={})=>({className:d,role:"separator","data-orientation":a,...u,...l,...h}),[d,a,u,l]);return{Component:s,getDividerProps:f}}function m6(e){return b.forwardRef(e)}var kK=(e,t,n=!0)=>{if(!t)return[e,{}];const a=t.reduce((l,s)=>s in e?{...l,[s]:e[s]}:l,{});return n?[Object.keys(e).filter(s=>!t.includes(s)).reduce((s,u)=>({...s,[u]:e[u]}),{}),a]:[e,a]},g6=m6((e,t)=>{const{Component:n,getDividerProps:a}=BK({...e});return St.jsx(n,{ref:t,...a()})});g6.displayName="HeroUI.Divider";var AU=g6;function Aw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ev(e,t){return ev=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ev(e,t)}function LK(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ev(e,t)}var Mw=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function NK(e,t){return!!(e===t||Mw(e)&&Mw(t))}function _K(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!NK(e[n],t[n]))return!1;return!0}function Im(e,t){t===void 0&&(t=_K);var n,a=[],l,s=!1;function u(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return s&&n===this&&t(d,a)||(l=e.apply(this,d),s=!0,n=this,a=d),l}return u}var KK=typeof performance=="object"&&typeof performance.now=="function",Rw=KK?function(){return performance.now()}:function(){return Date.now()};function Pw(e){cancelAnimationFrame(e.id)}function VK(e,t){var n=Rw();function a(){Rw()-n>=t?e.call(null):l.id=requestAnimationFrame(a)}var l={id:requestAnimationFrame(a)};return l}var Fm=-1;function zw(e){if(e===void 0&&(e=!1),Fm===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Fm=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Fm}var lo=null;function Ow(e){if(e===void 0&&(e=!1),lo===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var a=document.createElement("div"),l=a.style;return l.width="100px",l.height="100px",t.appendChild(a),document.body.appendChild(t),t.scrollLeft>0?lo="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?lo="negative":lo="positive-ascending"),document.body.removeChild(t),lo}return lo}var IK=150,FK=function(t,n){return t};function jK(e){var t,n=e.getItemOffset,a=e.getEstimatedTotalSize,l=e.getItemSize,s=e.getOffsetForIndexAndAlignment,u=e.getStartIndexForOffset,d=e.getStopIndexForStartIndex,f=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=(function(v){LK(y,v);function y($){var w;return w=v.call(this,$)||this,w._instanceProps=f(w.props,Aw(w)),w._outerRef=void 0,w._resetIsScrollingTimeoutId=null,w.state={instance:Aw(w),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof w.props.initialScrollOffset=="number"?w.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},w._callOnItemsRendered=void 0,w._callOnItemsRendered=Im(function(E,C,M,T){return w.props.onItemsRendered({overscanStartIndex:E,overscanStopIndex:C,visibleStartIndex:M,visibleStopIndex:T})}),w._callOnScroll=void 0,w._callOnScroll=Im(function(E,C,M){return w.props.onScroll({scrollDirection:E,scrollOffset:C,scrollUpdateWasRequested:M})}),w._getItemStyle=void 0,w._getItemStyle=function(E){var C=w.props,M=C.direction,T=C.itemSize,O=C.layout,P=w._getItemStyleCache(h&&T,h&&O,h&&M),k;if(P.hasOwnProperty(E))k=P[E];else{var G=n(w.props,E,w._instanceProps),D=l(w.props,E,w._instanceProps),V=M==="horizontal"||O==="horizontal",j=M==="rtl",z=V?G:0;P[E]=k={position:"absolute",left:j?void 0:z,right:j?z:void 0,top:V?0:G,height:V?"100%":D,width:V?D:"100%"}}return k},w._getItemStyleCache=void 0,w._getItemStyleCache=Im(function(E,C,M){return{}}),w._onScrollHorizontal=function(E){var C=E.currentTarget,M=C.clientWidth,T=C.scrollLeft,O=C.scrollWidth;w.setState(function(P){if(P.scrollOffset===T)return null;var k=w.props.direction,G=T;if(k==="rtl")switch(Ow()){case"negative":G=-T;break;case"positive-descending":G=O-M-T;break}return G=Math.max(0,Math.min(G,O-M)),{isScrolling:!0,scrollDirection:P.scrollOffset<G?"forward":"backward",scrollOffset:G,scrollUpdateWasRequested:!1}},w._resetIsScrollingDebounced)},w._onScrollVertical=function(E){var C=E.currentTarget,M=C.clientHeight,T=C.scrollHeight,O=C.scrollTop;w.setState(function(P){if(P.scrollOffset===O)return null;var k=Math.max(0,Math.min(O,T-M));return{isScrolling:!0,scrollDirection:P.scrollOffset<k?"forward":"backward",scrollOffset:k,scrollUpdateWasRequested:!1}},w._resetIsScrollingDebounced)},w._outerRefSetter=function(E){var C=w.props.outerRef;w._outerRef=E,typeof C=="function"?C(E):C!=null&&typeof C=="object"&&C.hasOwnProperty("current")&&(C.current=E)},w._resetIsScrollingDebounced=function(){w._resetIsScrollingTimeoutId!==null&&Pw(w._resetIsScrollingTimeoutId),w._resetIsScrollingTimeoutId=VK(w._resetIsScrolling,IK)},w._resetIsScrolling=function(){w._resetIsScrollingTimeoutId=null,w.setState({isScrolling:!1},function(){w._getItemStyleCache(-1,null)})},w}y.getDerivedStateFromProps=function(w,E){return UK(w,E),p(w),null};var x=y.prototype;return x.scrollTo=function(w){w=Math.max(0,w),this.setState(function(E){return E.scrollOffset===w?null:{scrollDirection:E.scrollOffset<w?"forward":"backward",scrollOffset:w,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},x.scrollToItem=function(w,E){E===void 0&&(E="auto");var C=this.props,M=C.itemCount,T=C.layout,O=this.state.scrollOffset;w=Math.max(0,Math.min(w,M-1));var P=0;if(this._outerRef){var k=this._outerRef;T==="vertical"?P=k.scrollWidth>k.clientWidth?zw():0:P=k.scrollHeight>k.clientHeight?zw():0}this.scrollTo(s(this.props,w,E,O,this._instanceProps,P))},x.componentDidMount=function(){var w=this.props,E=w.direction,C=w.initialScrollOffset,M=w.layout;if(typeof C=="number"&&this._outerRef!=null){var T=this._outerRef;E==="horizontal"||M==="horizontal"?T.scrollLeft=C:T.scrollTop=C}this._callPropsCallbacks()},x.componentDidUpdate=function(){var w=this.props,E=w.direction,C=w.layout,M=this.state,T=M.scrollOffset,O=M.scrollUpdateWasRequested;if(O&&this._outerRef!=null){var P=this._outerRef;if(E==="horizontal"||C==="horizontal")if(E==="rtl")switch(Ow()){case"negative":P.scrollLeft=-T;break;case"positive-ascending":P.scrollLeft=T;break;default:var k=P.clientWidth,G=P.scrollWidth;P.scrollLeft=G-k-T;break}else P.scrollLeft=T;else P.scrollTop=T}this._callPropsCallbacks()},x.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Pw(this._resetIsScrollingTimeoutId)},x.render=function(){var w=this.props,E=w.children,C=w.className,M=w.direction,T=w.height,O=w.innerRef,P=w.innerElementType,k=w.innerTagName,G=w.itemCount,D=w.itemData,V=w.itemKey,j=V===void 0?FK:V,z=w.layout,I=w.outerElementType,L=w.outerTagName,K=w.style,U=w.useIsScrolling,R=w.width,B=this.state.isScrolling,H=M==="horizontal"||z==="horizontal",te=H?this._onScrollHorizontal:this._onScrollVertical,W=this._getRangeToRender(),_=W[0],Z=W[1],ie=[];if(G>0)for(var se=_;se<=Z;se++)ie.push(b.createElement(E,{data:D,key:j(se,D),index:se,isScrolling:U?B:void 0,style:this._getItemStyle(se)}));var de=a(this.props,this._instanceProps);return b.createElement(I||L||"div",{className:C,onScroll:te,ref:this._outerRefSetter,style:m7({position:"relative",height:T,width:R,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:M},K)},b.createElement(P||k||"div",{children:ie,ref:O,style:{height:H?"100%":de,pointerEvents:B?"none":void 0,width:H?de:"100%"}}))},x._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var w=this.props.itemCount;if(w>0){var E=this._getRangeToRender(),C=E[0],M=E[1],T=E[2],O=E[3];this._callOnItemsRendered(C,M,T,O)}}if(typeof this.props.onScroll=="function"){var P=this.state,k=P.scrollDirection,G=P.scrollOffset,D=P.scrollUpdateWasRequested;this._callOnScroll(k,G,D)}},x._getRangeToRender=function(){var w=this.props,E=w.itemCount,C=w.overscanCount,M=this.state,T=M.isScrolling,O=M.scrollDirection,P=M.scrollOffset;if(E===0)return[0,0,0,0];var k=u(this.props,P,this._instanceProps),G=d(this.props,k,P,this._instanceProps),D=!T||O==="backward"?Math.max(1,C):1,V=!T||O==="forward"?Math.max(1,C):1;return[Math.max(0,k-D),Math.max(0,Math.min(E-1,G+V)),k,G]},y})(b.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var UK=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},HK=50,$o=function(t,n,a){var l=t,s=l.itemSize,u=a.itemMetadataMap,d=a.lastMeasuredIndex;if(n>d){var f=0;if(d>=0){var h=u[d];f=h.offset+h.size}for(var p=d+1;p<=n;p++){var v=s(p);u[p]={offset:f,size:v},f+=v}a.lastMeasuredIndex=n}return u[n]},GK=function(t,n,a){var l=n.itemMetadataMap,s=n.lastMeasuredIndex,u=s>0?l[s].offset:0;return u>=a?v6(t,n,s,0,a):qK(t,n,Math.max(0,s),a)},v6=function(t,n,a,l,s){for(;l<=a;){var u=l+Math.floor((a-l)/2),d=$o(t,u,n).offset;if(d===s)return u;d<s?l=u+1:d>s&&(a=u-1)}return l>0?l-1:0},qK=function(t,n,a,l){for(var s=t.itemCount,u=1;a<s&&$o(t,a,n).offset<l;)a+=u,u*=2;return v6(t,n,Math.min(a,s-1),Math.floor(a/2),l)},Bw=function(t,n){var a=t.itemCount,l=n.itemMetadataMap,s=n.estimatedItemSize,u=n.lastMeasuredIndex,d=0;if(u>=a&&(u=a-1),u>=0){var f=l[u];d=f.offset+f.size}var h=a-u-1,p=h*s;return d+p},MU=jK({getItemOffset:function(t,n,a){return $o(t,n,a).offset},getItemSize:function(t,n,a){return a.itemMetadataMap[n].size},getEstimatedTotalSize:Bw,getOffsetForIndexAndAlignment:function(t,n,a,l,s,u){var d=t.direction,f=t.height,h=t.layout,p=t.width,v=d==="horizontal"||h==="horizontal",y=v?p:f,x=$o(t,n,s),$=Bw(t,s),w=Math.max(0,Math.min($-y,x.offset)),E=Math.max(0,x.offset-y+x.size+u);switch(a==="smart"&&(l>=E-y&&l<=w+y?a="auto":a="center"),a){case"start":return w;case"end":return E;case"center":return Math.round(E+(w-E)/2);case"auto":default:return l>=E&&l<=w?l:l<E?E:w}},getStartIndexForOffset:function(t,n,a){return GK(t,a,n)},getStopIndexForStartIndex:function(t,n,a,l){for(var s=t.direction,u=t.height,d=t.itemCount,f=t.layout,h=t.width,p=s==="horizontal"||f==="horizontal",v=p?h:u,y=$o(t,n,l),x=a+v,$=y.offset+y.size,w=n;w<d-1&&$<x;)w++,$+=$o(t,w,l).size;return w},initInstanceProps:function(t,n){var a=t,l=a.estimatedItemSize,s={itemMetadataMap:{},estimatedItemSize:l||HK,lastMeasuredIndex:-1};return n.resetAfterIndex=function(u,d){d===void 0&&(d=!0),s.lastMeasuredIndex=Math.min(s.lastMeasuredIndex,u-1),n._getItemStyleCache(-1),d&&n.forceUpdate()},s},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){t.itemSize}});const Mb=new WeakMap;function tv(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function WK(e,t){let n=Mb.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${tv(t)}`}function b6(e,t,n){let a=Mb.get(e);if(!a)throw new Error("Unknown grid");return`${a}-${tv(t)}-${tv(n)}`}function y6(e,t){return[...e.collection.rowHeaderColumnKeys].map(n=>b6(e,t,n)).join(" ")}var x6={};x6={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var w6={};w6={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var S6={};S6={ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var $6={};$6={ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var E6={};E6={ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var C6={};C6={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var T6={};T6={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing"};var D6={};D6={ascending:"ascendente",ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,columnSize:e=>`${e.value} píxeles`,descending:"descendente",descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var A6={};A6={ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var M6={};M6={ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var R6={};R6={ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var P6={};P6={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var z6={};z6={ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var O6={};O6={ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var B6={};B6={ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var k6={};k6={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var L6={};L6={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var N6={};N6={ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var _6={};_6={ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,columnSize:e=>`${e.value} pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var K6={};K6={ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var V6={};V6={ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var I6={};I6={ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var F6={};F6={ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var j6={};j6={ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var U6={};U6={ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var H6={};H6={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var G6={};G6={ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var q6={};q6={ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var W6={};W6={ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var Y6={};Y6={ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var X6={};X6={ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var Z6={};Z6={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var Q6={};Q6={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,resizerDescription:"按“输入”键开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var J6={};J6={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var Ef={};Ef={"ar-AE":x6,"bg-BG":w6,"cs-CZ":S6,"da-DK":$6,"de-DE":E6,"el-GR":C6,"en-US":T6,"es-ES":D6,"et-EE":A6,"fi-FI":M6,"fr-FR":R6,"he-IL":P6,"hr-HR":z6,"hu-HU":O6,"it-IT":B6,"ja-JP":k6,"ko-KR":L6,"lt-LT":N6,"lv-LV":_6,"nb-NO":K6,"nl-NL":V6,"pl-PL":I6,"pt-BR":F6,"pt-PT":j6,"ro-RO":U6,"ru-RU":H6,"sk-SK":G6,"sl-SI":q6,"sr-SP":W6,"sv-SE":Y6,"tr-TR":X6,"uk-UA":Z6,"zh-CN":Q6,"zh-TW":J6};class eT{isCell(t){return t.type==="cell"}isRow(t){return t.type==="row"||t.type==="item"}isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findPreviousKey(t,n){let a=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;a!=null;){let l=this.collection.getItem(a);if(!l)return null;if(!this.isDisabled(l)&&(!n||n(l)))return a;a=this.collection.getKeyBefore(a)}return null}findNextKey(t,n){let a=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;a!=null;){let l=this.collection.getItem(a);if(!l)return null;if(!this.isDisabled(l)&&(!n||n(l)))return a;if(a=this.collection.getKeyAfter(a),a==null)return null}return null}getKeyForItemInRowByIndex(t,n=0){if(n<0)return null;let a=this.collection.getItem(t);if(!a)return null;let l=0;for(let d of mn(a,this.collection)){var s;if(d.colSpan&&d.colSpan+l>n)return(s=d.key)!==null&&s!==void 0?s:null;d.colSpan&&(l=l+d.colSpan-1);var u;if(l===n)return(u=d.key)!==null&&u!==void 0?u:null;l++}return null}getKeyBelow(t){let n=t,a=this.collection.getItem(n);if(!a)return null;var l;if(this.isCell(a)&&(n=(l=a.parentKey)!==null&&l!==void 0?l:null),n==null)return null;if(n=this.findNextKey(n,s=>s.type==="item"),n!=null){if(this.isCell(a)){let s=a.colIndex?a.colIndex:a.index;return this.getKeyForItemInRowByIndex(n,s)}if(this.focusMode==="row")return n}return null}getKeyAbove(t){let n=t,a=this.collection.getItem(n);if(!a)return null;var l;if(this.isCell(a)&&(n=(l=a.parentKey)!==null&&l!==void 0?l:null),n==null)return null;if(n=this.findPreviousKey(n,s=>s.type==="item"),n!=null){if(this.isCell(a)){let s=a.colIndex?a.colIndex:a.index;return this.getKeyForItemInRowByIndex(n,s)}if(this.focusMode==="row")return n}return null}getKeyRightOf(t){let n=this.collection.getItem(t);if(!n)return null;if(this.isRow(n)){var a,l;let p=mn(n,this.collection);var s;return(s=this.direction==="rtl"?(a=So(p))===null||a===void 0?void 0:a.key:(l=Zi(p))===null||l===void 0?void 0:l.key)!==null&&s!==void 0?s:null}if(this.isCell(n)&&n.parentKey!=null){let p=this.collection.getItem(n.parentKey);if(!p)return null;let v=mn(p,this.collection);var u;let y=(u=this.direction==="rtl"?Is(v,n.index-1):Is(v,n.index+1))!==null&&u!==void 0?u:null;var d;if(y)return(d=y.key)!==null&&d!==void 0?d:null;var f;if(this.focusMode==="row")return(f=n.parentKey)!==null&&f!==void 0?f:null;var h;return(h=this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t))!==null&&h!==void 0?h:null}return null}getKeyLeftOf(t){let n=this.collection.getItem(t);if(!n)return null;if(this.isRow(n)){var a,l;let p=mn(n,this.collection);var s;return(s=this.direction==="rtl"?(a=Zi(p))===null||a===void 0?void 0:a.key:(l=So(p))===null||l===void 0?void 0:l.key)!==null&&s!==void 0?s:null}if(this.isCell(n)&&n.parentKey!=null){let p=this.collection.getItem(n.parentKey);if(!p)return null;let v=mn(p,this.collection);var u;let y=(u=this.direction==="rtl"?Is(v,n.index+1):Is(v,n.index-1))!==null&&u!==void 0?u:null;var d;if(y)return(d=y.key)!==null&&d!==void 0?d:null;var f;if(this.focusMode==="row")return(f=n.parentKey)!==null&&f!==void 0?f:null;var h;return(h=this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t))!==null&&h!==void 0?h:null}return null}getFirstKey(t,n){let a=t??null,l;if(a!=null){if(l=this.collection.getItem(a),!l)return null;if(this.isCell(l)&&!n&&l.parentKey!=null){var s;let h=this.collection.getItem(l.parentKey);if(!h)return null;var u;return(u=(s=Zi(mn(h,this.collection)))===null||s===void 0?void 0:s.key)!==null&&u!==void 0?u:null}}if(a=this.findNextKey(void 0,h=>h.type==="item"),a!=null&&(l&&this.isCell(l)&&n||this.focusMode==="cell")){var d;let h=this.collection.getItem(a);if(!h)return null;var f;a=(f=(d=Zi(mn(h,this.collection)))===null||d===void 0?void 0:d.key)!==null&&f!==void 0?f:null}return a}getLastKey(t,n){let a=t??null,l;if(a!=null){if(l=this.collection.getItem(a),!l)return null;if(this.isCell(l)&&!n&&l.parentKey!=null){var s;let h=this.collection.getItem(l.parentKey);if(!h)return null;let p=mn(h,this.collection);var u;return(u=(s=So(p))===null||s===void 0?void 0:s.key)!==null&&u!==void 0?u:null}}if(a=this.findPreviousKey(void 0,h=>h.type==="item"),a!=null&&(l&&this.isCell(l)&&n||this.focusMode==="cell")){var d;let h=this.collection.getItem(a);if(!h)return null;let p=mn(h,this.collection);var f;a=(f=(d=So(p))===null||d===void 0?void 0:d.key)!==null&&f!==void 0?f:null}return a}getKeyPageAbove(t){let n=t,a=this.layoutDelegate.getItemRect(n);if(!a)return null;let l=Math.max(0,a.y+a.height-this.layoutDelegate.getVisibleRect().height);for(;a&&a.y>l&&n!=null;){var s;if(n=(s=this.getKeyAbove(n))!==null&&s!==void 0?s:null,n==null)break;a=this.layoutDelegate.getItemRect(n)}return n}getKeyPageBelow(t){let n=t,a=this.layoutDelegate.getItemRect(n);if(!a)return null;let l=this.layoutDelegate.getVisibleRect().height,s=Math.min(this.layoutDelegate.getContentSize().height,a.y+l);for(;a&&a.y+a.height<s;){let u=this.getKeyBelow(n);if(u==null)break;a=this.layoutDelegate.getItemRect(u),n=u}return n}getKeyForSearch(t,n){let a=n??null;if(!this.collator)return null;let l=this.collection;if(a=n??this.getFirstKey(),a==null)return null;let s=l.getItem(a);if(!s)return null;var u;s.type==="cell"&&(a=(u=s.parentKey)!==null&&u!==void 0?u:null);let d=!1;for(;a!=null;){let p=l.getItem(a);if(!p)return null;if(p.textValue){let v=p.textValue.slice(0,t.length);if(this.collator.compare(v,t)===0){var f,h;return this.isRow(p)&&this.focusMode==="cell"?(h=(f=Zi(mn(p,this.collection)))===null||f===void 0?void 0:f.key)!==null&&h!==void 0?h:null:p.key}}a=this.findNextKey(a,v=>v.type==="item"),a==null&&!d&&(a=this.getFirstKey(),d=!0)}return null}constructor(t){if(this.collection=t.collection,this.disabledKeys=t.disabledKeys,this.disabledBehavior=t.disabledBehavior||"all",this.direction=t.direction,this.collator=t.collator,!t.layout&&!t.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=t.layoutDelegate||(t.layout?new YK(t.layout):new Qg(t.ref));var n;this.focusMode=(n=t.focusMode)!==null&&n!==void 0?n:"row"}}class YK{getContentSize(){return this.layout.getContentSize()}getItemRect(t){var n;return((n=this.layout.getLayoutInfo(t))===null||n===void 0?void 0:n.rect)||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}constructor(t){this.layout=t}}const Rb=new WeakMap;var tT={};tT={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var nT={};nT={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var rT={};rT={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var aT={};aT={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var iT={};iT={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var lT={};lT={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var oT={};oT={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var sT={};sT={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var uT={};uT={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var cT={};cT={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var dT={};dT={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var fT={};fT={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var hT={};hT={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var pT={};pT={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var mT={};mT={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var gT={};gT={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var vT={};vT={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var bT={};bT={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var yT={};yT={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var xT={};xT={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var wT={};wT={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var ST={};ST={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var $T={};$T={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var ET={};ET={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var CT={};CT={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var TT={};TT={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var DT={};DT={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var AT={};AT={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var MT={};MT={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var RT={};RT={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var PT={};PT={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var zT={};zT={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var OT={};OT={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var BT={};BT={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var Cf={};Cf={"ar-AE":tT,"bg-BG":nT,"cs-CZ":rT,"da-DK":aT,"de-DE":iT,"el-GR":lT,"en-US":oT,"es-ES":sT,"et-EE":uT,"fi-FI":cT,"fr-FR":dT,"he-IL":fT,"hr-HR":hT,"hu-HU":pT,"it-IT":mT,"ja-JP":gT,"ko-KR":vT,"lt-LT":bT,"lv-LV":yT,"nb-NO":xT,"nl-NL":wT,"pl-PL":ST,"pt-BR":$T,"pt-PT":ET,"ro-RO":CT,"ru-RU":TT,"sk-SK":DT,"sl-SI":AT,"sr-SP":MT,"sv-SE":RT,"tr-TR":PT,"uk-UA":zT,"zh-CN":OT,"zh-TW":BT};const kT=7e3;let Wr=null;function LT(e,t="assertive",n=kT){Wr?Wr.announce(e,t,n):(Wr=new XK,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Wr.announce(e,t,n):setTimeout(()=>{Wr!=null&&Wr.isAttached()&&(Wr==null||Wr.announce(e,t,n))},100))}class XK{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",a=kT){var l,s;if(!this.node)return;let u=document.createElement("div");typeof t=="object"?(u.setAttribute("role","img"),u.setAttribute("aria-labelledby",t["aria-labelledby"])):u.textContent=t,n==="assertive"?(l=this.assertiveLog)===null||l===void 0||l.appendChild(u):(s=this.politeLog)===null||s===void 0||s.appendChild(u),t!==""&&setTimeout(()=>{u.remove()},a)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function ZK(e){return e&&e.__esModule?e.default:e}function QK(e,t){let{getRowText:n=d=>{var f,h,p,v;return(v=(f=(h=t.collection).getTextValue)===null||f===void 0?void 0:f.call(h,d))!==null&&v!==void 0?v:(p=t.collection.getItem(d))===null||p===void 0?void 0:p.textValue}}=e,a=Ia(ZK(Cf),"@react-aria/grid"),l=t.selectionManager.rawSelection,s=b.useRef(l),u=nn(()=>{var d;if(!t.selectionManager.isFocused||l===s.current){s.current=l;return}let f=kw(l,s.current),h=kw(s.current,l),p=t.selectionManager.selectionBehavior==="replace",v=[];if(t.selectionManager.selectedKeys.size===1&&p){let y=t.selectionManager.selectedKeys.keys().next().value;if(y!=null&&t.collection.getItem(y)){let x=n(y);x&&v.push(a.format("selectedItem",{item:x}))}}else if(f.size===1&&h.size===0){let y=f.keys().next().value;if(y!=null){let x=n(y);x&&v.push(a.format("selectedItem",{item:x}))}}else if(h.size===1&&f.size===0){let y=h.keys().next().value;if(y!=null&&t.collection.getItem(y)){let x=n(y);x&&v.push(a.format("deselectedItem",{item:x}))}}t.selectionManager.selectionMode==="multiple"&&(v.length===0||l==="all"||l.size>1||s.current==="all"||((d=s.current)===null||d===void 0?void 0:d.size)>1)&&v.push(l==="all"?a.format("selectedAll"):a.format("selectedCount",{count:l.size})),v.length>0&&LT(v.join(" ")),s.current=l});$$(()=>{if(t.selectionManager.isFocused)u();else{let d=requestAnimationFrame(u);return()=>cancelAnimationFrame(d)}},[l,t.selectionManager.isFocused])}function kw(e,t){let n=new Set;if(e==="all"||t==="all")return n;for(let a of e.keys())t.has(a)||n.add(a);return n}function JK(e){return e&&e.__esModule?e.default:e}function eV(e){let t=Ia(JK(Cf),"@react-aria/grid"),n=Oz(),a=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,l=b.useMemo(()=>{let u=e.selectionManager.selectionMode,d=e.selectionManager.selectionBehavior,f;return a&&(f=t.format("longPressToSelect")),d==="replace"&&u!=="none"&&e.hasItemActions?f:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,a]);return mf(l)}function tV(e,t,n){let{isVirtualized:a,disallowTypeAhead:l,keyboardDelegate:s,focusMode:u,scrollRef:d,getRowText:f,onRowAction:h,onCellAction:p,escapeKeyBehavior:v="clearSelection",shouldSelectOnPressUp:y}=e,{selectionManager:x}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let $=Pv({usage:"search",sensitivity:"base"}),{direction:w}=ia(),E=t.selectionManager.disabledBehavior,C=b.useMemo(()=>s||new eT({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:E,ref:n,direction:w,collator:$,focusMode:u}),[s,t.collection,t.disabledKeys,E,n,w,$,u]),{collectionProps:M}=Sb({ref:n,selectionManager:x,keyboardDelegate:C,isVirtualized:a,scrollRef:d,disallowTypeAhead:l,escapeKeyBehavior:v}),T=ea(e.id);Rb.set(t,{keyboardDelegate:C,actions:{onRowAction:h,onCellAction:p},shouldSelectOnPressUp:y});let O=eV({selectionManager:x,hasItemActions:!!(h||p)}),P=ff(e,{labelable:!0}),k=b.useCallback(j=>{if(x.isFocused){j.currentTarget.contains(j.target)||x.setFocused(!1);return}j.currentTarget.contains(j.target)&&x.setFocused(!0)},[x]),G=b.useMemo(()=>({onBlur:M.onBlur,onFocus:k}),[k,M.onBlur]),D=FN(n,{isDisabled:t.collection.size!==0}),V=ft(P,{role:"grid",id:T,"aria-multiselectable":x.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?G:M,t.collection.size===0&&{tabIndex:D?-1:0}||void 0,O);return a&&(V["aria-rowcount"]=t.collection.size,V["aria-colcount"]=t.collection.columnCount),QK({getRowText:f},t),{gridProps:V}}function nV(){return{rowGroupProps:{role:"rowgroup"}}}function rV(e,t,n){var a,l;let{node:s,isVirtualized:u,shouldSelectOnPressUp:d,onAction:f}=e,{actions:h,shouldSelectOnPressUp:p}=Rb.get(t),v=h.onRowAction?()=>{var E;return(E=h.onRowAction)===null||E===void 0?void 0:E.call(h,s.key)}:f,{itemProps:y,...x}=Eu({selectionManager:t.selectionManager,key:s.key,ref:n,isVirtualized:u,shouldSelectOnPressUp:p||d,onAction:v||!(s==null||(a=s.props)===null||a===void 0)&&a.onAction?cf(s==null||(l=s.props)===null||l===void 0?void 0:l.onAction,v):void 0,isDisabled:t.collection.size===0}),$=t.selectionManager.isSelected(s.key),w={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?$:void 0,"aria-disabled":x.isDisabled||void 0,...y};return u&&(w["aria-rowindex"]=s.index+1),{rowProps:w,...x}}function NT(e,t,n){let{node:a,isVirtualized:l,focusMode:s="child",shouldSelectOnPressUp:u,onAction:d}=e,{direction:f}=ia(),{keyboardDelegate:h,actions:{onCellAction:p}}=Rb.get(t),v=b.useRef(null),y=()=>{if(n.current){let T=Wd(n.current);if(s==="child"){if(n.current.contains(document.activeElement)&&n.current!==document.activeElement)return;let O=t.selectionManager.childFocusStrategy==="last"?jm(T):T.firstChild();if(O){tr(O);return}}(v.current!=null&&a.key!==v.current||!n.current.contains(document.activeElement))&&tr(n.current)}},{itemProps:x,isPressed:$}=Eu({selectionManager:t.selectionManager,key:a.key,ref:n,isVirtualized:l,focus:y,shouldSelectOnPressUp:u,onAction:p?()=>p(a.key):d,isDisabled:t.collection.size===0}),w=T=>{if(!T.currentTarget.contains(T.target)||t.isKeyboardNavigationDisabled||!n.current||!document.activeElement)return;let O=Wd(n.current);switch(O.currentNode=document.activeElement,T.key){case"ArrowLeft":{let j=f==="rtl"?O.nextNode():O.previousNode();if(s==="child"&&j===n.current&&(j=null),T.preventDefault(),T.stopPropagation(),j)tr(j),yi(j,{containingElement:no(n.current)});else{var P;if(((P=h.getKeyLeftOf)===null||P===void 0?void 0:P.call(h,a.key))!==a.key){var k;(k=n.current.parentElement)===null||k===void 0||k.dispatchEvent(new KeyboardEvent(T.nativeEvent.type,T.nativeEvent));break}s==="cell"&&f==="rtl"?(tr(n.current),yi(n.current,{containingElement:no(n.current)})):(O.currentNode=n.current,j=f==="rtl"?O.firstChild():jm(O),j&&(tr(j),yi(j,{containingElement:no(n.current)})))}break}case"ArrowRight":{let j=f==="rtl"?O.previousNode():O.nextNode();if(s==="child"&&j===n.current&&(j=null),T.preventDefault(),T.stopPropagation(),j)tr(j),yi(j,{containingElement:no(n.current)});else{var G;if(((G=h.getKeyRightOf)===null||G===void 0?void 0:G.call(h,a.key))!==a.key){var D;(D=n.current.parentElement)===null||D===void 0||D.dispatchEvent(new KeyboardEvent(T.nativeEvent.type,T.nativeEvent));break}s==="cell"&&f==="ltr"?(tr(n.current),yi(n.current,{containingElement:no(n.current)})):(O.currentNode=n.current,j=f==="rtl"?jm(O):O.firstChild(),j&&(tr(j),yi(j,{containingElement:no(n.current)})))}break}case"ArrowUp":case"ArrowDown":if(!T.altKey&&n.current.contains(T.target)){var V;T.stopPropagation(),T.preventDefault(),(V=n.current.parentElement)===null||V===void 0||V.dispatchEvent(new KeyboardEvent(T.nativeEvent.type,T.nativeEvent))}break}},E=T=>{if(v.current=a.key,T.target!==n.current){bf()||t.selectionManager.setFocusedKey(a.key);return}requestAnimationFrame(()=>{s==="child"&&document.activeElement===n.current&&y()})},C=ft(x,{role:"gridcell",onKeyDownCapture:w,"aria-colspan":a.colSpan,"aria-colindex":a.colIndex!=null?a.colIndex+1:void 0,colSpan:l?void 0:a.colSpan,onFocus:E});var M;return l&&(C["aria-colindex"]=((M=a.colIndex)!==null&&M!==void 0?M:a.index)+1),u&&C.tabIndex!=null&&C.onPointerDown==null&&(C.onPointerDown=T=>{let O=T.currentTarget,P=O.getAttribute("tabindex");O.removeAttribute("tabindex"),requestAnimationFrame(()=>{P!=null&&O.setAttribute("tabindex",P)})}),{gridCellProps:C,isPressed:$}}function jm(e){let t=null,n=null;do n=e.lastChild(),n&&(t=n);while(n);return t}function aV(e){return e&&e.__esModule?e.default:e}function iV(e,t){let{key:n}=e,a=t.selectionManager,l=ea(),s=!t.selectionManager.canSelectItem(n),u=t.selectionManager.isSelected(n),d=()=>a.toggleSelection(n);const f=Ia(aV(Cf),"@react-aria/grid");return{checkboxProps:{id:l,"aria-label":f.format("select"),isSelected:u,isDisabled:s,onChange:d}}}class lV extends eT{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t){let n=this.collection.getItem(t);if(!n)return null;if(n.type==="column"){let a=Zi(mn(n,this.collection));if(a)return a.key;let l=this.getFirstKey();return l==null||!this.collection.getItem(l)?null:super.getKeyForItemInRowByIndex(l,n.index)}return super.getKeyBelow(t)}getKeyAbove(t){let n=this.collection.getItem(t);if(!n)return null;if(n.type==="column"){let s=n.parentKey!=null?this.collection.getItem(n.parentKey):null;return s&&s.type==="column"?s.key:null}let a=super.getKeyAbove(t),l=a!=null?this.collection.getItem(a):null;return l&&l.type!=="headerrow"?a:this.isCell(n)?this.collection.columns[n.index].key:this.collection.columns[0].key}findNextColumnKey(t){let n=this.findNextKey(t.key,l=>l.type==="column");if(n!=null)return n;let a=this.collection.headerRows[t.level];for(let l of mn(a,this.collection))if(l.type==="column")return l.key;return null}findPreviousColumnKey(t){let n=this.findPreviousKey(t.key,s=>s.type==="column");if(n!=null)return n;let a=this.collection.headerRows[t.level],l=[...mn(a,this.collection)];for(let s=l.length-1;s>=0;s--){let u=l[s];if(u.type==="column")return u.key}return null}getKeyRightOf(t){let n=this.collection.getItem(t);return n?n.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(n):this.findNextColumnKey(n):super.getKeyRightOf(t):null}getKeyLeftOf(t){let n=this.collection.getItem(t);return n?n.type==="column"?this.direction==="rtl"?this.findNextColumnKey(n):this.findPreviousColumnKey(n):super.getKeyLeftOf(t):null}getKeyForSearch(t,n){if(!this.collator)return null;let a=this.collection,l=n??this.getFirstKey();if(l==null)return null;let s=a.getItem(l);var u;(s==null?void 0:s.type)==="cell"&&(l=(u=s.parentKey)!==null&&u!==void 0?u:null);let d=!1;for(;l!=null;){let f=a.getItem(l);if(!f)return null;if(f.textValue){let h=f.textValue.slice(0,t.length);if(this.collator.compare(h,t)===0)return f.key}for(let h of mn(f,this.collection)){let p=a.columns[h.index];if(a.rowHeaderColumnKeys.has(p.key)&&h.textValue){let v=h.textValue.slice(0,t.length);if(this.collator.compare(v,t)===0){let y=n!=null?a.getItem(n):s;return(y==null?void 0:y.type)==="cell"?h.key:f.key}}}l=this.getKeyBelow(l),l==null&&!d&&(l=this.getFirstKey(),d=!0)}return null}}function oV(e){return e&&e.__esModule?e.default:e}function RU(e,t,n){let{keyboardDelegate:a,isVirtualized:l,layoutDelegate:s,layout:u}=e,d=Pv({usage:"search",sensitivity:"base"}),{direction:f}=ia(),h=t.selectionManager.disabledBehavior,p=b.useMemo(()=>a||new lV({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:h,ref:n,direction:f,collator:d,layoutDelegate:s,layout:u}),[a,t.collection,t.disabledKeys,h,n,f,d,s,u]),v=ea(e.id);Mb.set(t,v);let{gridProps:y}=tV({...e,id:v,keyboardDelegate:p},t,n);l&&(y["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),zd()&&"expandedKeys"in t&&(y.role="treegrid");let{column:x,direction:$}=t.sortDescriptor||{},w=Ia(oV(Ef),"@react-aria/table"),E=b.useMemo(()=>{var M,T;let O=(T=(M=t.collection.columns.find(P=>P.key===x))===null||M===void 0?void 0:M.textValue)!==null&&T!==void 0?T:"";return $&&x?w.format(`${$}Sort`,{columnName:O}):void 0},[$,x,t.collection.columns]),C=mf(E);return $$(()=>{E&&LT(E,"assertive",500)},[E]),{gridProps:ft(y,C,{"aria-describedby":[C["aria-describedby"],y["aria-describedby"]].filter(Boolean).join(" ")})}}function sV(e){return e&&e.__esModule?e.default:e}function PU(e,t,n){var a,l;let{node:s}=e,u=s.props.allowsSorting,{gridCellProps:d}=NT({...e,focusMode:"child"},t,n),f=s.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:h}=Na({isDisabled:!u||f,onPress(){t.sort(s.key)},ref:n}),{focusableProps:p}=bu({},n),v,y=((a=t.sortDescriptor)===null||a===void 0?void 0:a.column)===s.key,x=(l=t.sortDescriptor)===null||l===void 0?void 0:l.direction;s.props.allowsSorting&&!Od()&&(v=y?x:"none");let $=Ia(sV(Ef),"@react-aria/table"),w;u&&(w=`${$.format("sortable")}`,y&&x&&Od()&&(w=`${w}, ${$.format(x)}`));let E=mf(w),C=t.collection.size===0;return b.useEffect(()=>{C&&t.selectionManager.focusedKey===s.key&&t.selectionManager.setFocusedKey(null)},[C,t.selectionManager,s.key]),{columnHeaderProps:{...ft(p,d,h,E,C?{tabIndex:-1}:null),role:"columnheader",id:WK(t,s.key),"aria-colspan":s.colSpan&&s.colSpan>1?s.colSpan:void 0,"aria-sort":v}}}const Lw={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function zU(e,t,n){let{node:a,isVirtualized:l}=e,{rowProps:s,...u}=rV(e,t,n),{direction:d}=ia();l&&!(zd()&&"expandedKeys"in t)?s["aria-rowindex"]=a.index+1+t.collection.headerRows.length:delete s["aria-rowindex"];let f={};if(zd()&&"expandedKeys"in t){let P=t.keyMap.get(a.key);if(P!=null){var h,p,v,y,x,$;let k=((h=P.props)===null||h===void 0?void 0:h.UNSTABLE_childItems)||((v=P.props)===null||v===void 0||(p=v.children)===null||p===void 0?void 0:p.length)>t.userColumnCount;var w,E,C,M;f={onKeyDown:G=>{(G.key===Lw.expand[d]&&t.selectionManager.focusedKey===P.key&&k&&t.expandedKeys!=="all"&&!t.expandedKeys.has(P.key)||G.key===Lw.collapse[d]&&t.selectionManager.focusedKey===P.key&&k&&(t.expandedKeys==="all"||t.expandedKeys.has(P.key)))&&(t.toggleKey(P.key),G.stopPropagation())},"aria-expanded":k?t.expandedKeys==="all"||t.expandedKeys.has(a.key):void 0,"aria-level":P.level,"aria-posinset":((w=P.indexOfType)!==null&&w!==void 0?w:0)+1,"aria-setsize":P.level>1?((C=(y=So((E=(x=t.keyMap.get(P.parentKey))===null||x===void 0?void 0:x.childNodes)!==null&&E!==void 0?E:[]))===null||y===void 0?void 0:y.indexOfType)!==null&&C!==void 0?C:0)+1:((M=($=So(t.collection.body.childNodes))===null||$===void 0?void 0:$.indexOfType)!==null&&M!==void 0?M:0)+1}}}let T=mP(a.props),O=u.hasAction?T:{};return{rowProps:{...ft(s,f,O),"aria-labelledby":y6(t,a.key)},...u}}function OU(e,t,n){let{node:a,isVirtualized:l}=e,s={role:"row"};return l&&!(zd()&&"expandedKeys"in t)&&(s["aria-rowindex"]=a.index+1),{rowProps:s}}function BU(e,t,n){var a;let{gridCellProps:l,isPressed:s}=NT(e,t,n),u=(a=e.node.column)===null||a===void 0?void 0:a.key;return u!=null&&t.collection.rowHeaderColumnKeys.has(u)&&(l.role="rowheader",l.id=b6(t,e.node.parentKey,u)),{gridCellProps:l,isPressed:s}}function uV(e){return e&&e.__esModule?e.default:e}function kU(e,t){let{key:n}=e;const{checkboxProps:a}=iV(e,t);return{checkboxProps:{...a,"aria-labelledby":`${a.id} ${y6(t,n)}`}}}function LU(e){let{isEmpty:t,isSelectAll:n,selectionMode:a}=e.selectionManager;return{checkboxProps:{"aria-label":Ia(uV(Ef),"@react-aria/table").format(a==="single"?"select":"selectAll"),isSelected:n,isDisabled:a!=="multiple"||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type==="loader",isIndeterminate:!t&&!n,onChange:()=>e.selectionManager.toggleSelectAll()}}}function NU(){return nV()}function cV(e,t,n){let a=xb({...e,value:t.isSelected}),{isInvalid:l,validationErrors:s,validationDetails:u}=a.displayValidation,{labelProps:d,inputProps:f,isSelected:h,isPressed:p,isDisabled:v,isReadOnly:y}=ME({...e,isInvalid:l},t,n);EE(e,a,n);let{isIndeterminate:x,isRequired:$,validationBehavior:w="aria"}=e;b.useEffect(()=>{n.current&&(n.current.indeterminate=!!x)});let{pressProps:E}=Na({isDisabled:v||y,onPress(){let{[qd]:C}=e,{commitValidation:M}=C||a;M()}});return{labelProps:ft(d,E,b.useMemo(()=>({onMouseDown:C=>C.preventDefault()}),[])),inputProps:{...f,checked:h,"aria-required":$&&w==="aria"||void 0,required:$&&w==="native"},isSelected:h,isPressed:p,isDisabled:v,isReadOnly:y,isInvalid:l,validationErrors:s,validationDetails:u}}const dV=new WeakMap;function fV(e={}){let{isReadOnly:t}=e,[n,a]=Tv(e.isSelected,e.defaultSelected||!1,e.onChange),[l]=b.useState(n);function s(f){t||a(f)}function u(){t||a(!n)}var d;return{isSelected:n,defaultSelected:(d=e.defaultSelected)!==null&&d!==void 0?d:l,setSelected:s,toggle:u}}function _U(e,t,n){const a=fV({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(C){C?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(C)}});let{name:l,form:s,descriptionId:u,errorMessageId:d,validationBehavior:f}=dV.get(t);var h;f=(h=e.validationBehavior)!==null&&h!==void 0?h:f;let{realtimeValidation:p}=xb({...e,value:a.isSelected,name:void 0,validationBehavior:"aria"}),v=b.useRef(fo),y=()=>{t.setInvalid(e.value,p.isInvalid?p:v.current)};b.useEffect(y);let x=t.realtimeValidation.isInvalid?t.realtimeValidation:p,$=f==="native"?t.displayValidation:x;var w;let E=cV({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||l,form:e.form||s,isRequired:(w=e.isRequired)!==null&&w!==void 0?w:t.isRequired,validationBehavior:f,[qd]:{realtimeValidation:x,displayValidation:$,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(C){v.current=C,y()}}},a,n);return{...E,inputProps:{...E.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?d:null,u].filter(Boolean).join(" ")||void 0}}}var hV={px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},Nw=e=>{var t;return(t=hV[e])!=null?t:e};function pV(e){const[t,n]=kK(e,Vx.variantKeys),{as:a,className:l,x:s=1,y:u=1,...d}=t,f=a||"span",h=b.useMemo(()=>Vx({...n,className:l}),[SK(n),l]),p=Nw(s),v=Nw(u);return{Component:f,getSpacerProps:(x={})=>({...x,...d,"aria-hidden":wK(!0),className:f6(h,x.className),style:{...x.style,...d.style,marginLeft:p,marginTop:v}})}}var _T=m6((e,t)=>{const{Component:n,getSpacerProps:a}=pV({...e});return St.jsx(n,{ref:t,...a()})});_T.displayName="HeroUI.Spacer";var KU=_T;function oo(e,t,n){let a=n.initialDeps??[],l;return()=>{var s,u,d,f;let h;n.key&&((s=n.debug)!=null&&s.call(n))&&(h=Date.now());const p=e();if(!(p.length!==a.length||p.some((x,$)=>a[$]!==x)))return l;a=p;let y;if(n.key&&((u=n.debug)!=null&&u.call(n))&&(y=Date.now()),l=t(...p),n.key&&((d=n.debug)!=null&&d.call(n))){const x=Math.round((Date.now()-h)*100)/100,$=Math.round((Date.now()-y)*100)/100,w=$/16,E=(C,M)=>{for(C=String(C);C.length<M;)C=" "+C;return C};console.info(`%c⏱ ${E($,5)} /${E(x,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(f=n==null?void 0:n.onChange)==null||f.call(n,l),l}}function Um(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const mV=(e,t)=>Math.abs(e-t)<1,gV=(e,t,n)=>{let a;return function(...l){e.clearTimeout(a),a=e.setTimeout(()=>t.apply(this,l),n)}},vV=e=>e,bV=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),a=[];for(let l=t;l<=n;l++)a.push(l);return a},yV=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;const l=u=>{const{width:d,height:f}=u;t({width:Math.round(d),height:Math.round(f)})};if(l(n.getBoundingClientRect()),!a.ResizeObserver)return()=>{};const s=new a.ResizeObserver(u=>{const d=u[0];if(d!=null&&d.borderBoxSize){const f=d.borderBoxSize[0];if(f){l({width:f.inlineSize,height:f.blockSize});return}}l(n.getBoundingClientRect())});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},_w={passive:!0},xV=typeof window>"u"?!0:"onscrollend"in window,wV=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;let l=0;const s=e.options.useScrollendEvent&&xV?()=>{}:gV(a,()=>{t(l,!1)},e.options.isScrollingResetDelay),u=h=>()=>{const{horizontal:p,isRtl:v}=e.options;l=p?n.scrollLeft*(v&&-1||1):n.scrollTop,s(),t(l,h)},d=u(!0),f=u(!1);return f(),n.addEventListener("scroll",d,_w),n.addEventListener("scrollend",f,_w),()=>{n.removeEventListener("scroll",d),n.removeEventListener("scrollend",f)}},SV=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const a=t.borderBoxSize[0];if(a)return Math.round(a[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},$V=(e,{adjustments:t=0,behavior:n},a)=>{var l,s;const u=e+t;(s=(l=a.scrollElement)==null?void 0:l.scrollTo)==null||s.call(l,{[a.options.horizontal?"left":"top"]:u,behavior:n})};class EV{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const a=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(l=>{l.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var l;(l=a())==null||l.disconnect(),n=null},observe:l=>{var s;return(s=a())==null?void 0:s.observe(l,{box:"border-box"})},unobserve:l=>{var s;return(s=a())==null?void 0:s.unobserve(l)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([a,l])=>{typeof l>"u"&&delete n[a]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:vV,rangeExtractor:bV,onChange:()=>{},measureElement:SV,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...n}},this.notify=n=>{var a,l;(l=(a=this.options).onChange)==null||l.call(a,this,n)},this.maybeNotify=oo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const a=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==a){if(this.cleanup(),!a){this.maybeNotify();return}this.scrollElement=a,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(l=>{this.observer.observe(l)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(l,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<l?"forward":"backward":null,this.scrollOffset=l,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,a)=>{const l=new Map,s=new Map;for(let u=a-1;u>=0;u--){const d=n[u];if(l.has(d.lane))continue;const f=s.get(d.lane);if(f==null||d.end>f.end?s.set(d.lane,d):d.end<f.end&&l.set(d.lane,!0),l.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((u,d)=>u.end===d.end?u.index-d.index:u.end-d.end)[0]:void 0},this.getMeasurementOptions=oo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,a,l,s,u)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:a,scrollMargin:l,getItemKey:s,enabled:u}),{key:!1}),this.getMeasurements=oo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:a,scrollMargin:l,getItemKey:s,enabled:u},d)=>{if(!u)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(p=>{this.itemSizeCache.set(p.key,p.size)}));const f=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const h=this.measurementsCache.slice(0,f);for(let p=f;p<n;p++){const v=s(p),y=this.options.lanes===1?h[p-1]:this.getFurthestMeasurement(h,p),x=y?y.end+this.options.gap:a+l,$=d.get(v),w=typeof $=="number"?$:this.options.estimateSize(p),E=x+w,C=y?y.lane:p%this.options.lanes;h[p]={index:p,start:x,size:w,end:E,key:v,lane:C}}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=oo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,a,l)=>this.range=n.length>0&&a>0?CV({measurements:n,outerSize:a,scrollOffset:l}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=oo(()=>{let n=null,a=null;const l=this.calculateRange();return l&&(n=l.startIndex,a=l.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,a]},(n,a,l,s,u)=>s===null||u===null?[]:n({startIndex:s,endIndex:u,overscan:a,count:l}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const a=this.options.indexAttribute,l=n.getAttribute(a);return l?parseInt(l,10):(console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1)},this._measureElement=(n,a)=>{const l=this.indexFromElement(n),s=this.measurementsCache[l];if(!s)return;const u=s.key,d=this.elementsCache.get(u);d!==n&&(d&&this.observer.unobserve(d),this.observer.observe(n),this.elementsCache.set(u,n)),n.isConnected&&this.resizeItem(l,this.options.measureElement(n,a,this))},this.resizeItem=(n,a)=>{const l=this.measurementsCache[n];if(!l)return;const s=this.itemSizeCache.get(l.key)??l.size,u=a-s;u!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(l,u,this):l.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=u,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(l.index),this.itemSizeCache=new Map(this.itemSizeCache.set(l.key,a)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((a,l)=>{a.isConnected||(this.observer.unobserve(a),this.elementsCache.delete(l))});return}this._measureElement(n,void 0)},this.getVirtualItems=oo(()=>[this.getIndexes(),this.getMeasurements()],(n,a)=>{const l=[];for(let s=0,u=n.length;s<u;s++){const d=n[s],f=a[d];l.push(f)}return l},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const a=this.getMeasurements();if(a.length!==0)return Um(a[KT(0,a.length-1,l=>Um(a[l]).start,n)])},this.getOffsetForAlignment=(n,a)=>{const l=this.getSize(),s=this.getScrollOffset();a==="auto"&&n>=s+l&&(a="end"),a==="end"&&(n-=l);const u=this.options.horizontal?"scrollWidth":"scrollHeight",f=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[u]:this.scrollElement[u]:0)-l;return Math.max(Math.min(f,n),0)},this.getOffsetForIndex=(n,a="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const l=this.measurementsCache[n];if(!l)return;const s=this.getSize(),u=this.getScrollOffset();if(a==="auto")if(l.end>=u+s-this.options.scrollPaddingEnd)a="end";else if(l.start<=u+this.options.scrollPaddingStart)a="start";else return[u,a];const d=l.start-this.options.scrollPaddingStart+(l.size-s)/2;switch(a){case"center":return[this.getOffsetForAlignment(d,a),a];case"end":return[this.getOffsetForAlignment(l.end+this.options.scrollPaddingEnd,a),a];default:return[this.getOffsetForAlignment(l.start-this.options.scrollPaddingStart,a),a]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:a="start",behavior:l}={})=>{this.cancelScrollToIndex(),l==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,a),{adjustments:void 0,behavior:l})},this.scrollToIndex=(n,{align:a="auto",behavior:l}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),l==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const s=this.getOffsetForIndex(n,a);if(!s)return;const[u,d]=s;this._scrollToOffset(u,{adjustments:void 0,behavior:l}),l!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[h]=Um(this.getOffsetForIndex(n,d));mV(h,this.getScrollOffset())||this.scrollToIndex(n,{align:d,behavior:l})}else this.scrollToIndex(n,{align:d,behavior:l})}))},this.scrollBy=(n,{behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:a})},this.getTotalSize=()=>{var n;const a=this.getMeasurements();let l;return a.length===0?l=this.options.paddingStart:l=this.options.lanes===1?((n=a[a.length-1])==null?void 0:n.end)??0:Math.max(...a.slice(-this.options.lanes).map(s=>s.end)),Math.max(l-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:a,behavior:l})=>{this.options.scrollToFn(n,{behavior:l,adjustments:a},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const KT=(e,t,n,a)=>{for(;e<=t;){const l=(e+t)/2|0,s=n(l);if(s<a)e=l+1;else if(s>a)t=l-1;else return l}return e>0?e-1:0};function CV({measurements:e,outerSize:t,scrollOffset:n}){const a=e.length-1,s=KT(0,a,d=>e[d].start,n);let u=s;for(;u<a&&e[u].end<n+t;)u++;return{startIndex:s,endIndex:u}}const Kw=typeof document<"u"?b.useLayoutEffect:b.useEffect;function TV(e){const t=b.useReducer(()=>({}),{})[1],n={...e,onChange:(l,s)=>{var u;s?Yr.flushSync(t):t(),(u=e.onChange)==null||u.call(e,l,s)}},[a]=b.useState(()=>new EV(n));return a.setOptions(n),Kw(()=>a._didMount(),[]),Kw(()=>a._willUpdate()),a}function VU(e){return TV({observeElementRect:yV,observeElementOffset:wV,scrollToFn:$V,...e})}function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},gn.apply(null,arguments)}function Pb(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}function Cd(e){var t=b.useRef({fn:e,curr:void 0}).current;if(t.fn=e,!t.curr){var n=Object.create(null);Object.keys(e).forEach(function(a){n[a]=function(){var l;return(l=t.fn[a]).call.apply(l,[t.fn].concat([].slice.call(arguments)))}}),t.curr=n}return t.curr}function nv(e){return b.useReducer(function(t,n){return gn({},t,typeof n=="function"?n(t):n)},e)}b.createContext(void 0);var Vw="cubic-bezier(0.25, 0.8, 0.25, 1)",so=20,Ra=typeof window<"u"&&"ontouchstart"in window,rv=function(e,t,n){return Math.max(Math.min(e,n),t)},od=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=0),rv(e,1*(1-n),Math.max(6,t)*(1+n))},av=typeof window>"u"||/ServerSideRendering/.test(navigator&&navigator.userAgent)?b.useEffect:b.useLayoutEffect;function ho(e,t,n){var a=b.useRef(t);a.current=t,b.useEffect(function(){function l(s){a.current(s)}return e&&window.addEventListener(e,l,n),function(){e&&window.removeEventListener(e,l)}},[e])}var DV=["container"];function AV(e){var t=e.container,n=t===void 0?document.body:t,a=Pb(e,DV);return Yr.createPortal(oe.createElement("div",gn({},a)),n)}function MV(e){return oe.createElement("svg",gn({width:"44",height:"44",viewBox:"0 0 768 768"},e),oe.createElement("path",{d:"M607.5 205.5l-178.5 178.5 178.5 178.5-45 45-178.5-178.5-178.5 178.5-45-45 178.5-178.5-178.5-178.5 45-45 178.5 178.5 178.5-178.5z"}))}function RV(e){return oe.createElement("svg",gn({width:"44",height:"44",viewBox:"0 0 768 768"},e),oe.createElement("path",{d:"M640.5 352.5v63h-390l178.5 180-45 45-256.5-256.5 256.5-256.5 45 45-178.5 180h390z"}))}function PV(e){return oe.createElement("svg",gn({width:"44",height:"44",viewBox:"0 0 768 768"},e),oe.createElement("path",{d:"M384 127.5l256.5 256.5-256.5 256.5-45-45 178.5-180h-390v-63h390l-178.5-180z"}))}function zV(){return b.useEffect(function(){var e=document.body.style,t=e.overflow;return e.overflow="hidden",function(){e.overflow=t}},[]),null}function Iw(e){var t=e.touches[0],n=t.clientX,a=t.clientY;if(e.touches.length>=2){var l=e.touches[1],s=l.clientX,u=l.clientY;return[(n+s)/2,(a+u)/2,Math.sqrt(Math.pow(s-n,2)+Math.pow(u-a,2))]}return[n,a,0]}var xi=function(e,t,n,a){var l,s=n*t,u=(s-a)/2,d=e;return s<=a?(l=1,d=0):e>0&&u-e<=0?(l=2,d=u):e<0&&u+e<=0&&(l=3,d=-u),[l,d]};function Hm(e,t,n,a,l,s,u,d,f,h){u===void 0&&(u=innerWidth/2),d===void 0&&(d=innerHeight/2),f===void 0&&(f=0),h===void 0&&(h=0);var p=xi(e,s,n,innerWidth)[0],v=xi(t,s,a,innerHeight),y=innerWidth/2,x=innerHeight/2;return{x:u-s/l*(u-(y+e))-y+(a/n>=3&&n*s===innerWidth?0:p?f/2:f),y:d-s/l*(d-(x+t))-x+(v[0]?h/2:h),lastCX:u,lastCY:d}}function iv(e,t,n){var a=e%180!=0;return a?[n,t,a]:[t,n,a]}function Gm(e,t,n){var a=iv(n,innerWidth,innerHeight),l=a[0],s=a[1],u=0,d=l,f=s,h=e/t*s,p=t/e*l;return e<l&&t<s?(d=e,f=t):e<l&&t>=s?d=h:e>=l&&t<s||e/t>l/s?f=p:t/e>=3&&!a[2]?u=((f=p)-s)/2:d=h,{width:d,height:f,x:0,y:u,pause:!0}}function sd(e,t){var n=t.leading,a=n!==void 0&&n,l=t.maxWait,s=t.wait,u=s===void 0?l||0:s,d=b.useRef(e);d.current=e;var f=b.useRef(0),h=b.useRef(),p=function(){return h.current&&clearTimeout(h.current)},v=b.useCallback(function(){var y=[].slice.call(arguments),x=Date.now();function $(){f.current=x,p(),d.current.apply(null,y)}var w=f.current,E=x-w;if(w===0&&(a&&$(),f.current=x),l!==void 0){if(E>l)return void $()}else E<u&&(f.current=x);p(),h.current=setTimeout(function(){$(),f.current=0},u)},[u,l,a]);return v.cancel=p,v}var Fw=function(e,t,n){return Ji(e,t,n,100,function(a){return a},function(){return Ji(t,e,n)})},OV=function(e){return 1-Math.pow(1-e,4)};function Ji(e,t,n,a,l,s){a===void 0&&(a=400),l===void 0&&(l=OV);var u=t-e;if(u!==0){var d=Date.now(),f=0,h=function(){var v=Math.min(1,(Date.now()-d)/a);n(e+l(v)*u)&&v<1?p():(cancelAnimationFrame(f),v>=1&&s&&s())};p()}function p(){f=requestAnimationFrame(h)}}var BV={T:0,L:0,W:0,H:0,FIT:void 0},VT=function(){var e=b.useRef(!1);return b.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e},kV=["className"];function LV(e){var t=e.className,n=t===void 0?"":t,a=Pb(e,kV);return oe.createElement("div",gn({className:"PhotoView__Spinner "+n},a),oe.createElement("svg",{viewBox:"0 0 32 32",width:"36",height:"36",fill:"white"},oe.createElement("path",{opacity:".25",d:"M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"}),oe.createElement("path",{d:"M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"})))}var NV=["src","loaded","broken","className","onPhotoLoad","loadingElement","brokenElement"];function _V(e){var t=e.src,n=e.loaded,a=e.broken,l=e.className,s=e.onPhotoLoad,u=e.loadingElement,d=e.brokenElement,f=Pb(e,NV),h=VT();return t&&!a?oe.createElement(oe.Fragment,null,oe.createElement("img",gn({className:"PhotoView__Photo"+(l?" "+l:""),src:t,onLoad:function(p){var v=p.target;h.current&&s({loaded:!0,naturalWidth:v.naturalWidth,naturalHeight:v.naturalHeight})},onError:function(){h.current&&s({broken:!0})},draggable:!1,alt:""},f)),!n&&(u?oe.createElement("span",{className:"PhotoView__icon"},u):oe.createElement(LV,{className:"PhotoView__icon"}))):d?oe.createElement("span",{className:"PhotoView__icon"},typeof d=="function"?d({src:t}):d):null}var KV={naturalWidth:void 0,naturalHeight:void 0,width:void 0,height:void 0,loaded:void 0,broken:!1,x:0,y:0,touched:!1,maskTouched:!1,rotate:0,scale:1,CX:0,CY:0,lastX:0,lastY:0,lastCX:0,lastCY:0,lastScale:1,touchTime:0,touchLength:0,pause:!0,stopRaf:!0,reach:void 0};function VV(e){var t=e.item,n=t.src,a=t.render,l=t.width,s=l===void 0?0:l,u=t.height,d=u===void 0?0:u,f=t.originRef,h=e.visible,p=e.speed,v=e.easing,y=e.wrapClassName,x=e.className,$=e.style,w=e.loadingElement,E=e.brokenElement,C=e.onPhotoTap,M=e.onMaskTap,T=e.onReachMove,O=e.onReachUp,P=e.onPhotoResize,k=e.isActive,G=e.expose,D=nv(KV),V=D[0],j=D[1],z=b.useRef(0),I=VT(),L=V.naturalWidth,K=L===void 0?s:L,U=V.naturalHeight,R=U===void 0?d:U,B=V.width,H=B===void 0?s:B,te=V.height,W=te===void 0?d:te,_=V.loaded,Z=_===void 0?!n:_,ie=V.broken,se=V.x,de=V.y,pe=V.touched,Me=V.stopRaf,ye=V.maskTouched,ge=V.rotate,ce=V.scale,gt=V.CX,ue=V.CY,Se=V.lastX,Le=V.lastY,Ae=V.lastCX,xn=V.lastCY,wn=V.lastScale,Fn=V.touchTime,nr=V.touchLength,ot=V.pause,hn=V.reach,rr=Cd({onScale:function(re){return Mn(od(re))},onRotate:function(re){ge!==re&&(G({rotate:re}),j(gn({rotate:re},Gm(K,R,re))))}});function Mn(re,he,$e){ce!==re&&(G({scale:re}),j(gn({scale:re},Hm(se,de,H,W,ce,re,he,$e),re<=1&&{x:0,y:0})))}var Et=sd(function(re,he,$e){if($e===void 0&&($e=0),(pe||ye)&&k){var Qe=iv(ge,H,W),st=Qe[0],et=Qe[1];if($e===0&&z.current===0){var _e=Math.abs(re-gt)<=20,tt=Math.abs(he-ue)<=20;if(_e&&tt)return void j({lastCX:re,lastCY:he});z.current=_e?he>ue?3:2:1}var ut,Bt=re-Ae,Yt=he-xn;if($e===0){var an=xi(Bt+Se,ce,st,innerWidth)[0],Xt=xi(Yt+Le,ce,et,innerHeight);ut=(function(Tt,Ye,ct,ln){return Ye&&Tt===1||ln==="x"?"x":ct&&Tt>1||ln==="y"?"y":void 0})(z.current,an,Xt[0],hn),ut!==void 0&&T(ut,re,he,ce)}if(ut==="x"||ye)return void j({reach:"x"});var Zt=od(ce+($e-nr)/100/2*ce,K/H,.2);G({scale:Zt}),j(gn({touchLength:$e,reach:ut,scale:Zt},Hm(se,de,H,W,ce,Zt,re,he,Bt,Yt)))}},{maxWait:8});function la(re){return!Me&&!pe&&(I.current&&j(gn({},re,{pause:h})),I.current)}var jn,Pt,zt,Un,Fr,Sn,oa,Ct,Ot=(Fr=function(re){return la({x:re})},Sn=function(re){return la({y:re})},oa=function(re){return I.current&&(G({scale:re}),j({scale:re})),!pe&&I.current},Ct=Cd({X:function(re){return Fr(re)},Y:function(re){return Sn(re)},S:function(re){return oa(re)}}),function(re,he,$e,Qe,st,et,_e,tt,ut,Bt,Yt){var an=iv(Bt,st,et),Xt=an[0],Zt=an[1],Tt=xi(re,tt,Xt,innerWidth),Ye=Tt[0],ct=Tt[1],ln=xi(he,tt,Zt,innerHeight),jr=ln[0],bl=ln[1],ja=Date.now()-Yt;if(ja>=200||tt!==_e||Math.abs(ut-_e)>1){var Dr=Hm(re,he,st,et,_e,tt),$n=Dr.x,Ar=Dr.y,Ft=Ye?ct:$n!==re?$n:null,Hn=jr?bl:Ar!==he?Ar:null;return Ft!==null&&Ji(re,Ft,Ct.X),Hn!==null&&Ji(he,Hn,Ct.Y),void(tt!==_e&&Ji(_e,tt,Ct.S))}var Gn=(re-$e)/ja,En=(he-Qe)/ja,Xe=Math.sqrt(Math.pow(Gn,2)+Math.pow(En,2)),ar=!1,ir=!1;(function(jt,vt){var on,Pn=jt,lr=0,zn=0,Mr=function(Qt){on||(on=Qt);var Ua=Qt-on,Au=Math.sign(jt),yl=-.001*Au,Ko=Math.sign(-Pn)*Math.pow(Pn,2)*2e-4,xl=Pn*Ua+(yl+Ko)*Math.pow(Ua,2)/2;lr+=xl,on=Qt,Au*(Pn+=(yl+Ko)*Ua)<=0?bt():vt(lr)?Cn():bt()};function Cn(){zn=requestAnimationFrame(Mr)}function bt(){cancelAnimationFrame(zn)}Cn()})(Xe,function(jt){var vt=re+jt*(Gn/Xe),on=he+jt*(En/Xe),Pn=xi(vt,_e,Xt,innerWidth),lr=Pn[0],zn=Pn[1],Mr=xi(on,_e,Zt,innerHeight),Cn=Mr[0],bt=Mr[1];if(lr&&!ar&&(ar=!0,Ye?Ji(vt,zn,Ct.X):Fw(zn,vt+(vt-zn),Ct.X)),Cn&&!ir&&(ir=!0,jr?Ji(on,bt,Ct.Y):Fw(bt,on+(on-bt),Ct.Y)),ar&&ir)return!1;var Qt=ar||Ct.X(zn),Ua=ir||Ct.Y(bt);return Qt&&Ua})}),It=(jn=C,Pt=function(re,he){hn||Mn(ce!==1?1:Math.max(2,K/H),re,he)},zt=b.useRef(0),Un=sd(function(){zt.current=0,jn.apply(void 0,[].slice.call(arguments))},{wait:300}),function(){var re=[].slice.call(arguments);zt.current+=1,Un.apply(void 0,re),zt.current>=2&&(Un.cancel(),zt.current=0,Pt.apply(void 0,re))});function ht(re,he){if(z.current=0,(pe||ye)&&k){j({touched:!1,maskTouched:!1,pause:!1,stopRaf:!1,reach:void 0});var $e=od(ce,K/H);if(Ot(se,de,Se,Le,H,W,ce,$e,wn,ge,Fn),O(re,he),gt===re&&ue===he){if(pe)return void It(re,he);ye&&M(re,he)}}}function sa(re,he,$e){$e===void 0&&($e=0),j({touched:!0,CX:re,CY:he,lastCX:re,lastCY:he,lastX:se,lastY:de,lastScale:ce,touchLength:$e,touchTime:Date.now()})}function ua(re){j({maskTouched:!0,CX:re.clientX,CY:re.clientY,lastX:se,lastY:de})}ho(Ra?void 0:"mousemove",function(re){re.preventDefault(),Et(re.clientX,re.clientY)}),ho(Ra?void 0:"mouseup",function(re){ht(re.clientX,re.clientY)}),ho(Ra?"touchmove":void 0,function(re){re.preventDefault();var he=Iw(re);Et.apply(void 0,he)},{passive:!1}),ho(Ra?"touchend":void 0,function(re){var he=re.changedTouches[0];ht(he.clientX,he.clientY)},{passive:!1}),ho("resize",sd(function(){Z&&!pe&&(j(Gm(K,R,ge)),P())},{maxWait:8})),av(function(){k&&G(gn({scale:ce,rotate:ge},rr))},[k]);var Rn=(function(re,he,$e,Qe,st,et,_e,tt,ut,Bt){var Yt=(function($n,Ar,Ft,Hn,Gn){var En=b.useRef(!1),Xe=nv({lead:!0,scale:Ft}),ar=Xe[0],ir=ar.lead,jt=ar.scale,vt=Xe[1],on=sd(function(Pn){try{return Gn(!0),vt({lead:!1,scale:Pn}),Promise.resolve()}catch(lr){return Promise.reject(lr)}},{wait:Hn});return av(function(){En.current?(Gn(!1),vt({lead:!0}),on(Ft)):En.current=!0},[Ft]),ir?[$n*jt,Ar*jt,Ft/jt]:[$n*Ft,Ar*Ft,1]})(et,_e,tt,ut,Bt),an=Yt[0],Xt=Yt[1],Zt=Yt[2],Tt=(function($n,Ar,Ft,Hn,Gn){var En=b.useState(BV),Xe=En[0],ar=En[1],ir=b.useState(0),jt=ir[0],vt=ir[1],on=b.useRef(),Pn=Cd({OK:function(){return $n&&vt(4)}});function lr(zn){Gn(!1),vt(zn)}return b.useEffect(function(){if(on.current||(on.current=Date.now()),Ft){if((function(zn,Mr){var Cn=zn&&zn.current;if(Cn&&Cn.nodeType===1){var bt=Cn.getBoundingClientRect();Mr({T:bt.top,L:bt.left,W:bt.width,H:bt.height,FIT:Cn.tagName==="IMG"?getComputedStyle(Cn).objectFit:void 0})}})(Ar,ar),$n)return Date.now()-on.current<250?(vt(1),requestAnimationFrame(function(){vt(2),requestAnimationFrame(function(){return lr(3)})}),void setTimeout(Pn.OK,Hn)):void vt(4);lr(5)}},[$n,Ft]),[jt,Xe]})(re,he,$e,ut,Bt),Ye=Tt[0],ct=Tt[1],ln=ct.W,jr=ct.FIT,bl=innerWidth/2,ja=innerHeight/2,Dr=Ye<3||Ye>4;return[Dr?ln?ct.L:bl:Qe+(bl-et*tt/2),Dr?ln?ct.T:ja:st+(ja-_e*tt/2),an,Dr&&jr?an*(ct.H/ln):Xt,Ye===0?Zt:Dr?ln/(et*tt)||.01:Zt,Dr?jr?1:0:1,Ye,jr]})(h,f,Z,se,de,H,W,ce,p,function(re){return j({pause:re})}),we=Rn[4],Ke=Rn[6],Te="transform "+p+"ms "+v,Ee={className:x,onMouseDown:Ra?void 0:function(re){re.stopPropagation(),re.button===0&&sa(re.clientX,re.clientY,0)},onTouchStart:Ra?function(re){re.stopPropagation(),sa.apply(void 0,Iw(re))}:void 0,onWheel:function(re){if(!hn){var he=od(ce-re.deltaY/100/2,K/H);j({stopRaf:!0}),Mn(he,re.clientX,re.clientY)}},style:{width:Rn[2]+"px",height:Rn[3]+"px",opacity:Rn[5],objectFit:Ke===4?void 0:Rn[7],transform:ge?"rotate("+ge+"deg)":void 0,transition:Ke>2?Te+", opacity "+p+"ms ease, height "+(Ke<4?p/2:Ke>4?p:0)+"ms "+v:void 0}};return oe.createElement("div",{className:"PhotoView__PhotoWrap"+(y?" "+y:""),style:$,onMouseDown:!Ra&&k?ua:void 0,onTouchStart:Ra&&k?function(re){return ua(re.touches[0])}:void 0},oe.createElement("div",{className:"PhotoView__PhotoBox",style:{transform:"matrix("+we+", 0, 0, "+we+", "+Rn[0]+", "+Rn[1]+")",transition:pe||ot?void 0:Te,willChange:k?"transform":void 0}},n?oe.createElement(_V,gn({src:n,loaded:Z,broken:ie},Ee,{onPhotoLoad:function(re){j(gn({},re,re.loaded&&Gm(re.naturalWidth||0,re.naturalHeight||0,ge)))},loadingElement:w,brokenElement:E})):a&&a({attrs:Ee,scale:we,rotate:ge})))}var jw={x:0,touched:!1,pause:!1,lastCX:void 0,lastCY:void 0,bg:void 0,lastBg:void 0,overlay:!0,minimal:!0,scale:1,rotate:0};function IU(e){var t=e.loop,n=t===void 0?3:t,a=e.speed,l=e.easing,s=e.photoClosable,u=e.maskClosable,d=u===void 0||u,f=e.maskOpacity,h=f===void 0?1:f,p=e.pullClosable,v=p===void 0||p,y=e.bannerVisible,x=y===void 0||y,$=e.overlayRender,w=e.toolbarRender,E=e.className,C=e.maskClassName,M=e.photoClassName,T=e.photoWrapClassName,O=e.loadingElement,P=e.brokenElement,k=e.images,G=e.index,D=G===void 0?0:G,V=e.onIndexChange,j=e.visible,z=e.onClose,I=e.afterClose,L=e.portalContainer,K=nv(jw),U=K[0],R=K[1],B=b.useState(0),H=B[0],te=B[1],W=U.x,_=U.touched,Z=U.pause,ie=U.lastCX,se=U.lastCY,de=U.bg,pe=de===void 0?h:de,Me=U.lastBg,ye=U.overlay,ge=U.minimal,ce=U.scale,gt=U.rotate,ue=U.onScale,Se=U.onRotate,Le=e.hasOwnProperty("index"),Ae=Le?D:H,xn=Le?V:te,wn=b.useRef(Ae),Fn=k.length,nr=k[Ae],ot=typeof n=="boolean"?n:Fn>n,hn=(function(we,Ke){var Te=b.useReducer(function($e){return!$e},!1)[1],Ee=b.useRef(0),re=(function($e){var Qe=b.useRef($e);function st(et){Qe.current=et}return b.useMemo(function(){(function(et){we?(et(we),Ee.current=1):Ee.current=2})(st)},[$e]),[Qe.current,st]})(we),he=re[1];return[re[0],Ee.current,function(){Te(),Ee.current===2&&(he(!1),Ke&&Ke()),Ee.current=0}]})(j,I),rr=hn[0],Mn=hn[1],Et=hn[2];av(function(){if(rr)return R({pause:!0,x:Ae*-(innerWidth+so)}),void(wn.current=Ae);R(jw)},[rr]);var la=Cd({close:function(we){Se&&Se(0),R({overlay:!0,lastBg:pe}),z(we)},changeIndex:function(we,Ke){Ke===void 0&&(Ke=!1);var Te=ot?wn.current+(we-Ae):we,Ee=Fn-1,re=rv(Te,0,Ee),he=ot?Te:re,$e=innerWidth+so;R({touched:!1,lastCX:void 0,lastCY:void 0,x:-$e*he,pause:Ke}),wn.current=he,xn&&xn(ot?we<0?Ee:we>Ee?0:we:re)}}),jn=la.close,Pt=la.changeIndex;function zt(we){return we?jn():R({overlay:!ye})}function Un(){R({x:-(innerWidth+so)*Ae,lastCX:void 0,lastCY:void 0,pause:!0}),wn.current=Ae}function Fr(we,Ke,Te,Ee){we==="x"?(function(re){if(ie!==void 0){var he=re-ie,$e=he;!ot&&(Ae===0&&he>0||Ae===Fn-1&&he<0)&&($e=he/2),R({touched:!0,lastCX:ie,x:-(innerWidth+so)*wn.current+$e,pause:!1})}else R({touched:!0,lastCX:re,x:W,pause:!1})})(Ke):we==="y"&&(function(re,he){if(se!==void 0){var $e=h===null?null:rv(h,.01,h-Math.abs(re-se)/100/4);R({touched:!0,lastCY:se,bg:he===1?$e:h,minimal:he===1})}else R({touched:!0,lastCY:re,bg:pe,minimal:!0})})(Te,Ee)}function Sn(we,Ke){var Te=we-(ie??we),Ee=Ke-(se??Ke),re=!1;if(Te<-40)Pt(Ae+1);else if(Te>40)Pt(Ae-1);else{var he=-(innerWidth+so)*wn.current;Math.abs(Ee)>100&&ge&&v&&(re=!0,jn()),R({touched:!1,x:he,lastCX:void 0,lastCY:void 0,bg:h,overlay:!!re||ye})}}ho("keydown",function(we){if(j)switch(we.key){case"ArrowLeft":Pt(Ae-1,!0);break;case"ArrowRight":Pt(Ae+1,!0);break;case"Escape":jn()}});var oa=(function(we,Ke,Te){return b.useMemo(function(){var Ee=we.length;return Te?we.concat(we).concat(we).slice(Ee+Ke-1,Ee+Ke+2):we.slice(Math.max(Ke-1,0),Math.min(Ke+2,Ee+1))},[we,Ke,Te])})(k,Ae,ot);if(!rr)return null;var Ct=ye&&!Mn,Ot=j?pe:Me,It=ue&&Se&&{images:k,index:Ae,visible:j,onClose:jn,onIndexChange:Pt,overlayVisible:Ct,overlay:nr&&nr.overlay,scale:ce,rotate:gt,onScale:ue,onRotate:Se},ht=a?a(Mn):400,sa=l?l(Mn):Vw,ua=a?a(3):600,Rn=l?l(3):Vw;return oe.createElement(AV,{className:"PhotoView-Portal"+(Ct?"":" PhotoView-Slider__clean")+(j?"":" PhotoView-Slider__willClose")+(E?" "+E:""),role:"dialog",onClick:function(we){return we.stopPropagation()},container:L},j&&oe.createElement(zV,null),oe.createElement("div",{className:"PhotoView-Slider__Backdrop"+(C?" "+C:"")+(Mn===1?" PhotoView-Slider__fadeIn":Mn===2?" PhotoView-Slider__fadeOut":""),style:{background:Ot?"rgba(0, 0, 0, "+Ot+")":void 0,transitionTimingFunction:sa,transitionDuration:(_?0:ht)+"ms",animationDuration:ht+"ms"},onAnimationEnd:Et}),x&&oe.createElement("div",{className:"PhotoView-Slider__BannerWrap"},oe.createElement("div",{className:"PhotoView-Slider__Counter"},Ae+1," / ",Fn),oe.createElement("div",{className:"PhotoView-Slider__BannerRight"},w&&It&&w(It),oe.createElement(MV,{className:"PhotoView-Slider__toolbarIcon",onClick:jn}))),oa.map(function(we,Ke){var Te=ot||Ae!==0?wn.current-1+Ke:Ae+Ke;return oe.createElement(VV,{key:ot?we.key+"/"+we.src+"/"+Te:we.key,item:we,speed:ht,easing:sa,visible:j,onReachMove:Fr,onReachUp:Sn,onPhotoTap:function(){return zt(s)},onMaskTap:function(){return zt(d)},wrapClassName:T,className:M,style:{left:(innerWidth+so)*Te+"px",transform:"translate3d("+W+"px, 0px, 0)",transition:_||Z?void 0:"transform "+ua+"ms "+Rn},loadingElement:O,brokenElement:P,onPhotoResize:Un,isActive:wn.current===Te,expose:R})}),!Ra&&x&&oe.createElement(oe.Fragment,null,(ot||Ae!==0)&&oe.createElement("div",{className:"PhotoView-Slider__ArrowLeft",onClick:function(){return Pt(Ae-1,!0)}},oe.createElement(RV,null)),(ot||Ae+1<Fn)&&oe.createElement("div",{className:"PhotoView-Slider__ArrowRight",onClick:function(){return Pt(Ae+1,!0)}},oe.createElement(PV,null))),$&&It&&oe.createElement("div",{className:"PhotoView-Slider__Overlay"},$(It)))}function IV(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b.useMemo(()=>a=>{t.forEach(l=>l(a))},t)}const Tf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Lo(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function zb(e){return"nodeType"in e}function In(e){var t,n;return e?Lo(e)?e:zb(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Ob(e){const{Document:t}=In(e);return e instanceof t}function Cu(e){return Lo(e)?!1:e instanceof In(e).HTMLElement}function IT(e){return e instanceof In(e).SVGElement}function No(e){return e?Lo(e)?e.document:zb(e)?Ob(e)?e:Cu(e)||IT(e)?e.ownerDocument:document:document:document}const ta=Tf?b.useLayoutEffect:b.useEffect;function Bb(e){const t=b.useRef(e);return ta(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,a=new Array(n),l=0;l<n;l++)a[l]=arguments[l];return t.current==null?void 0:t.current(...a)},[])}function FV(){const e=b.useRef(null),t=b.useCallback((a,l)=>{e.current=setInterval(a,l)},[]),n=b.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function du(e,t){t===void 0&&(t=[e]);const n=b.useRef(e);return ta(()=>{n.current!==e&&(n.current=e)},t),n}function Tu(e,t){const n=b.useRef();return b.useMemo(()=>{const a=e(n.current);return n.current=a,a},[...t])}function Xd(e){const t=Bb(e),n=b.useRef(null),a=b.useCallback(l=>{l!==n.current&&(t==null||t(l,n.current)),n.current=l},[]);return[n,a]}function lv(e){const t=b.useRef();return b.useEffect(()=>{t.current=e},[e]),t.current}let qm={};function Du(e,t){return b.useMemo(()=>{if(t)return t;const n=qm[e]==null?0:qm[e]+1;return qm[e]=n,e+"-"+n},[e,t])}function FT(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),l=1;l<n;l++)a[l-1]=arguments[l];return a.reduce((s,u)=>{const d=Object.entries(u);for(const[f,h]of d){const p=s[f];p!=null&&(s[f]=p+e*h)}return s},{...t})}}const Ao=FT(1),Zd=FT(-1);function jV(e){return"clientX"in e&&"clientY"in e}function kb(e){if(!e)return!1;const{KeyboardEvent:t}=In(e.target);return t&&e instanceof t}function UV(e){if(!e)return!1;const{TouchEvent:t}=In(e.target);return t&&e instanceof t}function ov(e){if(UV(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return jV(e)?{x:e.clientX,y:e.clientY}:null}const Qd=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Qd.Translate.toString(e),Qd.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:a}=e;return t+" "+n+"ms "+a}}}),Uw="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function HV(e){return e.matches(Uw)?e:e.querySelector(Uw)}const GV={display:"none"};function qV(e){let{id:t,value:n}=e;return oe.createElement("div",{id:t,style:GV},n)}function WV(e){let{id:t,announcement:n,ariaLiveType:a="assertive"}=e;const l={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return oe.createElement("div",{id:t,style:l,role:"status","aria-live":a,"aria-atomic":!0},n)}function YV(){const[e,t]=b.useState("");return{announce:b.useCallback(a=>{a!=null&&t(a)},[]),announcement:e}}const jT=b.createContext(null);function XV(e){const t=b.useContext(jT);b.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function ZV(){const[e]=b.useState(()=>new Set),t=b.useCallback(a=>(e.add(a),()=>e.delete(a)),[e]);return[b.useCallback(a=>{let{type:l,event:s}=a;e.forEach(u=>{var d;return(d=u[l])==null?void 0:d.call(u,s)})},[e]),t]}const QV={draggable:`
    To pick up a draggable item, press the space bar.
    While dragging, use the arrow keys to move the item.
    Press space again to drop the item in its new position, or press escape to cancel.
  `},JV={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function eI(e){let{announcements:t=JV,container:n,hiddenTextDescribedById:a,screenReaderInstructions:l=QV}=e;const{announce:s,announcement:u}=YV(),d=Du("DndLiveRegion"),[f,h]=b.useState(!1);if(b.useEffect(()=>{h(!0)},[]),XV(b.useMemo(()=>({onDragStart(v){let{active:y}=v;s(t.onDragStart({active:y}))},onDragMove(v){let{active:y,over:x}=v;t.onDragMove&&s(t.onDragMove({active:y,over:x}))},onDragOver(v){let{active:y,over:x}=v;s(t.onDragOver({active:y,over:x}))},onDragEnd(v){let{active:y,over:x}=v;s(t.onDragEnd({active:y,over:x}))},onDragCancel(v){let{active:y,over:x}=v;s(t.onDragCancel({active:y,over:x}))}}),[s,t])),!f)return null;const p=oe.createElement(oe.Fragment,null,oe.createElement(qV,{id:a,value:l.draggable}),oe.createElement(WV,{id:d,announcement:u}));return n?Yr.createPortal(p,n):p}var Ht;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Ht||(Ht={}));function Jd(){}function FU(e,t){return b.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function jU(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b.useMemo(()=>[...t].filter(a=>a!=null),[...t])}const Ir=Object.freeze({x:0,y:0});function tI(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function nI(e,t){let{data:{value:n}}=e,{data:{value:a}}=t;return n-a}function rI(e,t){let{data:{value:n}}=e,{data:{value:a}}=t;return a-n}function aI(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Hw(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const UU=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:a}=e;const l=Hw(t,t.left,t.top),s=[];for(const u of a){const{id:d}=u,f=n.get(d);if(f){const h=tI(Hw(f),l);s.push({id:d,data:{droppableContainer:u,value:h}})}}return s.sort(nI)};function iI(e,t){const n=Math.max(t.top,e.top),a=Math.max(t.left,e.left),l=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),u=l-a,d=s-n;if(a<l&&n<s){const f=t.width*t.height,h=e.width*e.height,p=u*d,v=p/(f+h-p);return Number(v.toFixed(4))}return 0}const lI=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:a}=e;const l=[];for(const s of a){const{id:u}=s,d=n.get(u);if(d){const f=iI(d,t);f>0&&l.push({id:u,data:{droppableContainer:s,value:f}})}}return l.sort(rI)};function oI(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function UT(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ir}function sI(e){return function(n){for(var a=arguments.length,l=new Array(a>1?a-1:0),s=1;s<a;s++)l[s-1]=arguments[s];return l.reduce((u,d)=>({...u,top:u.top+e*d.y,bottom:u.bottom+e*d.y,left:u.left+e*d.x,right:u.right+e*d.x}),{...n})}}const uI=sI(1);function cI(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function dI(e,t,n){const a=cI(t);if(!a)return e;const{scaleX:l,scaleY:s,x:u,y:d}=a,f=e.left-u-(1-l)*parseFloat(n),h=e.top-d-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),p=l?e.width/l:e.width,v=s?e.height/s:e.height;return{width:p,height:v,top:h,right:f+p,bottom:h+v,left:f}}const fI={ignoreTransform:!1};function _o(e,t){t===void 0&&(t=fI);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:h,transformOrigin:p}=In(e).getComputedStyle(e);h&&(n=dI(n,h,p))}const{top:a,left:l,width:s,height:u,bottom:d,right:f}=n;return{top:a,left:l,width:s,height:u,bottom:d,right:f}}function Gw(e){return _o(e,{ignoreTransform:!0})}function hI(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function pI(e,t){return t===void 0&&(t=In(e).getComputedStyle(e)),t.position==="fixed"}function mI(e,t){t===void 0&&(t=In(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(l=>{const s=t[l];return typeof s=="string"?n.test(s):!1})}function Lb(e,t){const n=[];function a(l){if(t!=null&&n.length>=t||!l)return n;if(Ob(l)&&l.scrollingElement!=null&&!n.includes(l.scrollingElement))return n.push(l.scrollingElement),n;if(!Cu(l)||IT(l)||n.includes(l))return n;const s=In(e).getComputedStyle(l);return l!==e&&mI(l,s)&&n.push(l),pI(l,s)?n:a(l.parentNode)}return e?a(e):n}function HT(e){const[t]=Lb(e,1);return t??null}function Wm(e){return!Tf||!e?null:Lo(e)?e:zb(e)?Ob(e)||e===No(e).scrollingElement?window:Cu(e)?e:null:null}function GT(e){return Lo(e)?e.scrollX:e.scrollLeft}function qT(e){return Lo(e)?e.scrollY:e.scrollTop}function sv(e){return{x:GT(e),y:qT(e)}}var tn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(tn||(tn={}));function WT(e){return!Tf||!e?!1:e===document.scrollingElement}function YT(e){const t={x:0,y:0},n=WT(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},a={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},l=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,u=e.scrollTop>=a.y,d=e.scrollLeft>=a.x;return{isTop:l,isLeft:s,isBottom:u,isRight:d,maxScroll:a,minScroll:t}}const gI={x:.2,y:.2};function vI(e,t,n,a,l){let{top:s,left:u,right:d,bottom:f}=n;a===void 0&&(a=10),l===void 0&&(l=gI);const{isTop:h,isBottom:p,isLeft:v,isRight:y}=YT(e),x={x:0,y:0},$={x:0,y:0},w={height:t.height*l.y,width:t.width*l.x};return!h&&s<=t.top+w.height?(x.y=tn.Backward,$.y=a*Math.abs((t.top+w.height-s)/w.height)):!p&&f>=t.bottom-w.height&&(x.y=tn.Forward,$.y=a*Math.abs((t.bottom-w.height-f)/w.height)),!y&&d>=t.right-w.width?(x.x=tn.Forward,$.x=a*Math.abs((t.right-w.width-d)/w.width)):!v&&u<=t.left+w.width&&(x.x=tn.Backward,$.x=a*Math.abs((t.left+w.width-u)/w.width)),{direction:x,speed:$}}function bI(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:u}=window;return{top:0,left:0,right:s,bottom:u,width:s,height:u}}const{top:t,left:n,right:a,bottom:l}=e.getBoundingClientRect();return{top:t,left:n,right:a,bottom:l,width:e.clientWidth,height:e.clientHeight}}function XT(e){return e.reduce((t,n)=>Ao(t,sv(n)),Ir)}function yI(e){return e.reduce((t,n)=>t+GT(n),0)}function xI(e){return e.reduce((t,n)=>t+qT(n),0)}function wI(e,t){if(t===void 0&&(t=_o),!e)return;const{top:n,left:a,bottom:l,right:s}=t(e);HT(e)&&(l<=0||s<=0||n>=window.innerHeight||a>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const SI=[["x",["left","right"],yI],["y",["top","bottom"],xI]];class Nb{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const a=Lb(n),l=XT(a);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,u,d]of SI)for(const f of u)Object.defineProperty(this,f,{get:()=>{const h=d(a),p=l[s]-h;return this.rect[f]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ys{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var a;return(a=this.target)==null?void 0:a.removeEventListener(...n)})},this.target=t}add(t,n,a){var l;(l=this.target)==null||l.addEventListener(t,n,a),this.listeners.push([t,n,a])}}function $I(e){const{EventTarget:t}=In(e);return e instanceof t?e:No(e)}function Ym(e,t){const n=Math.abs(e.x),a=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+a**2)>t:"x"in t&&"y"in t?n>t.x&&a>t.y:"x"in t?n>t.x:"y"in t?a>t.y:!1}var xr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(xr||(xr={}));function qw(e){e.preventDefault()}function EI(e){e.stopPropagation()}var je;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(je||(je={}));const ZT={start:[je.Space,je.Enter],cancel:[je.Esc],end:[je.Space,je.Enter,je.Tab]},CI=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case je.Right:return{...n,x:n.x+25};case je.Left:return{...n,x:n.x-25};case je.Down:return{...n,y:n.y+25};case je.Up:return{...n,y:n.y-25}}};class QT{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Ys(No(n)),this.windowListeners=new Ys(In(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(xr.Resize,this.handleCancel),this.windowListeners.add(xr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(xr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,a=t.node.current;a&&wI(a),n(Ir)}handleKeyDown(t){if(kb(t)){const{active:n,context:a,options:l}=this.props,{keyboardCodes:s=ZT,coordinateGetter:u=CI,scrollBehavior:d="smooth"}=l,{code:f}=t;if(s.end.includes(f)){this.handleEnd(t);return}if(s.cancel.includes(f)){this.handleCancel(t);return}const{collisionRect:h}=a.current,p=h?{x:h.left,y:h.top}:Ir;this.referenceCoordinates||(this.referenceCoordinates=p);const v=u(t,{active:n,context:a.current,currentCoordinates:p});if(v){const y=Zd(v,p),x={x:0,y:0},{scrollableAncestors:$}=a.current;for(const w of $){const E=t.code,{isTop:C,isRight:M,isLeft:T,isBottom:O,maxScroll:P,minScroll:k}=YT(w),G=bI(w),D={x:Math.min(E===je.Right?G.right-G.width/2:G.right,Math.max(E===je.Right?G.left:G.left+G.width/2,v.x)),y:Math.min(E===je.Down?G.bottom-G.height/2:G.bottom,Math.max(E===je.Down?G.top:G.top+G.height/2,v.y))},V=E===je.Right&&!M||E===je.Left&&!T,j=E===je.Down&&!O||E===je.Up&&!C;if(V&&D.x!==v.x){const z=w.scrollLeft+y.x,I=E===je.Right&&z<=P.x||E===je.Left&&z>=k.x;if(I&&!y.y){w.scrollTo({left:z,behavior:d});return}I?x.x=w.scrollLeft-z:x.x=E===je.Right?w.scrollLeft-P.x:w.scrollLeft-k.x,x.x&&w.scrollBy({left:-x.x,behavior:d});break}else if(j&&D.y!==v.y){const z=w.scrollTop+y.y,I=E===je.Down&&z<=P.y||E===je.Up&&z>=k.y;if(I&&!y.x){w.scrollTo({top:z,behavior:d});return}I?x.y=w.scrollTop-z:x.y=E===je.Down?w.scrollTop-P.y:w.scrollTop-k.y,x.y&&w.scrollBy({top:-x.y,behavior:d});break}}this.handleMove(t,Ao(Zd(v,this.referenceCoordinates),x))}}}handleMove(t,n){const{onMove:a}=this.props;t.preventDefault(),a(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}QT.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:a=ZT,onActivation:l}=t,{active:s}=n;const{code:u}=e.nativeEvent;if(a.start.includes(u)){const d=s.activatorNode.current;return d&&e.target!==d?!1:(e.preventDefault(),l==null||l({event:e.nativeEvent}),!0)}return!1}}];function Ww(e){return!!(e&&"distance"in e)}function Yw(e){return!!(e&&"delay"in e)}class _b{constructor(t,n,a){var l;a===void 0&&(a=$I(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:u}=s;this.props=t,this.events=n,this.document=No(u),this.documentListeners=new Ys(this.document),this.listeners=new Ys(a),this.windowListeners=new Ys(In(u)),this.initialCoordinates=(l=ov(s))!=null?l:Ir,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:a}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(xr.Resize,this.handleCancel),this.windowListeners.add(xr.DragStart,qw),this.windowListeners.add(xr.VisibilityChange,this.handleCancel),this.windowListeners.add(xr.ContextMenu,qw),this.documentListeners.add(xr.Keydown,this.handleKeydown),n){if(a!=null&&a({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Yw(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Ww(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:a,onPending:l}=this.props;l(a,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(xr.Click,EI,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(xr.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:a,initialCoordinates:l,props:s}=this,{onMove:u,options:{activationConstraint:d}}=s;if(!l)return;const f=(n=ov(t))!=null?n:Ir,h=Zd(l,f);if(!a&&d){if(Ww(d)){if(d.tolerance!=null&&Ym(h,d.tolerance))return this.handleCancel();if(Ym(h,d.distance))return this.handleStart()}if(Yw(d)&&Ym(h,d.tolerance))return this.handleCancel();this.handlePending(d,h);return}t.cancelable&&t.preventDefault(),u(f)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===je.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const TI={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class JT extends _b{constructor(t){const{event:n}=t,a=No(n.target);super(t,TI,a)}}JT.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:a}=t;return!n.isPrimary||n.button!==0?!1:(a==null||a({event:n}),!0)}}];const DI={move:{name:"mousemove"},end:{name:"mouseup"}};var uv;(function(e){e[e.RightClick=2]="RightClick"})(uv||(uv={}));class AI extends _b{constructor(t){super(t,DI,No(t.event.target))}}AI.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:a}=t;return n.button===uv.RightClick?!1:(a==null||a({event:n}),!0)}}];const Xm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class MI extends _b{constructor(t){super(t,Xm)}static setup(){return window.addEventListener(Xm.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Xm.move.name,t)};function t(){}}}MI.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:a}=t;const{touches:l}=n;return l.length>1?!1:(a==null||a({event:n}),!0)}}];var Xs;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Xs||(Xs={}));var ef;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ef||(ef={}));function RI(e){let{acceleration:t,activator:n=Xs.Pointer,canScroll:a,draggingRect:l,enabled:s,interval:u=5,order:d=ef.TreeOrder,pointerCoordinates:f,scrollableAncestors:h,scrollableAncestorRects:p,delta:v,threshold:y}=e;const x=zI({delta:v,disabled:!s}),[$,w]=FV(),E=b.useRef({x:0,y:0}),C=b.useRef({x:0,y:0}),M=b.useMemo(()=>{switch(n){case Xs.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case Xs.DraggableRect:return l}},[n,l,f]),T=b.useRef(null),O=b.useCallback(()=>{const k=T.current;if(!k)return;const G=E.current.x*C.current.x,D=E.current.y*C.current.y;k.scrollBy(G,D)},[]),P=b.useMemo(()=>d===ef.TreeOrder?[...h].reverse():h,[d,h]);b.useEffect(()=>{if(!s||!h.length||!M){w();return}for(const k of P){if((a==null?void 0:a(k))===!1)continue;const G=h.indexOf(k),D=p[G];if(!D)continue;const{direction:V,speed:j}=vI(k,D,M,t,y);for(const z of["x","y"])x[z][V[z]]||(j[z]=0,V[z]=0);if(j.x>0||j.y>0){w(),T.current=k,$(O,u),E.current=j,C.current=V;return}}E.current={x:0,y:0},C.current={x:0,y:0},w()},[t,O,a,w,s,u,JSON.stringify(M),JSON.stringify(x),$,h,P,p,JSON.stringify(y)])}const PI={x:{[tn.Backward]:!1,[tn.Forward]:!1},y:{[tn.Backward]:!1,[tn.Forward]:!1}};function zI(e){let{delta:t,disabled:n}=e;const a=lv(t);return Tu(l=>{if(n||!a||!l)return PI;const s={x:Math.sign(t.x-a.x),y:Math.sign(t.y-a.y)};return{x:{[tn.Backward]:l.x[tn.Backward]||s.x===-1,[tn.Forward]:l.x[tn.Forward]||s.x===1},y:{[tn.Backward]:l.y[tn.Backward]||s.y===-1,[tn.Forward]:l.y[tn.Forward]||s.y===1}}},[n,t,a])}function OI(e,t){const n=t!=null?e.get(t):void 0,a=n?n.node.current:null;return Tu(l=>{var s;return t==null?null:(s=a??l)!=null?s:null},[a,t])}function BI(e,t){return b.useMemo(()=>e.reduce((n,a)=>{const{sensor:l}=a,s=l.activators.map(u=>({eventName:u.eventName,handler:t(u.handler,a)}));return[...n,...s]},[]),[e,t])}var fu;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(fu||(fu={}));var cv;(function(e){e.Optimized="optimized"})(cv||(cv={}));const Xw=new Map;function kI(e,t){let{dragging:n,dependencies:a,config:l}=t;const[s,u]=b.useState(null),{frequency:d,measure:f,strategy:h}=l,p=b.useRef(e),v=E(),y=du(v),x=b.useCallback(function(C){C===void 0&&(C=[]),!y.current&&u(M=>M===null?C:M.concat(C.filter(T=>!M.includes(T))))},[y]),$=b.useRef(null),w=Tu(C=>{if(v&&!n)return Xw;if(!C||C===Xw||p.current!==e||s!=null){const M=new Map;for(let T of e){if(!T)continue;if(s&&s.length>0&&!s.includes(T.id)&&T.rect.current){M.set(T.id,T.rect.current);continue}const O=T.node.current,P=O?new Nb(f(O),O):null;T.rect.current=P,P&&M.set(T.id,P)}return M}return C},[e,s,n,v,f]);return b.useEffect(()=>{p.current=e},[e]),b.useEffect(()=>{v||x()},[n,v]),b.useEffect(()=>{s&&s.length>0&&u(null)},[JSON.stringify(s)]),b.useEffect(()=>{v||typeof d!="number"||$.current!==null||($.current=setTimeout(()=>{x(),$.current=null},d))},[d,v,x,...a]),{droppableRects:w,measureDroppableContainers:x,measuringScheduled:s!=null};function E(){switch(h){case fu.Always:return!1;case fu.BeforeDragging:return n;default:return!n}}}function eD(e,t){return Tu(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function LI(e,t){return eD(e,t)}function NI(e){let{callback:t,disabled:n}=e;const a=Bb(t),l=b.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(a)},[a,n]);return b.useEffect(()=>()=>l==null?void 0:l.disconnect(),[l]),l}function Df(e){let{callback:t,disabled:n}=e;const a=Bb(t),l=b.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(a)},[n]);return b.useEffect(()=>()=>l==null?void 0:l.disconnect(),[l]),l}function _I(e){return new Nb(_o(e),e)}function Zw(e,t,n){t===void 0&&(t=_I);const[a,l]=b.useState(null);function s(){l(f=>{if(!e)return null;if(e.isConnected===!1){var h;return(h=f??n)!=null?h:null}const p=t(e);return JSON.stringify(f)===JSON.stringify(p)?f:p})}const u=NI({callback(f){if(e)for(const h of f){const{type:p,target:v}=h;if(p==="childList"&&v instanceof HTMLElement&&v.contains(e)){s();break}}}}),d=Df({callback:s});return ta(()=>{s(),e?(d==null||d.observe(e),u==null||u.observe(document.body,{childList:!0,subtree:!0})):(d==null||d.disconnect(),u==null||u.disconnect())},[e]),a}function KI(e){const t=eD(e);return UT(e,t)}const Qw=[];function VI(e){const t=b.useRef(e),n=Tu(a=>e?a&&a!==Qw&&e&&t.current&&e.parentNode===t.current.parentNode?a:Lb(e):Qw,[e]);return b.useEffect(()=>{t.current=e},[e]),n}function II(e){const[t,n]=b.useState(null),a=b.useRef(e),l=b.useCallback(s=>{const u=Wm(s.target);u&&n(d=>d?(d.set(u,sv(u)),new Map(d)):null)},[]);return b.useEffect(()=>{const s=a.current;if(e!==s){u(s);const d=e.map(f=>{const h=Wm(f);return h?(h.addEventListener("scroll",l,{passive:!0}),[h,sv(h)]):null}).filter(f=>f!=null);n(d.length?new Map(d):null),a.current=e}return()=>{u(e),u(s)};function u(d){d.forEach(f=>{const h=Wm(f);h==null||h.removeEventListener("scroll",l)})}},[l,e]),b.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,u)=>Ao(s,u),Ir):XT(e):Ir,[e,t])}function Jw(e,t){t===void 0&&(t=[]);const n=b.useRef(null);return b.useEffect(()=>{n.current=null},t),b.useEffect(()=>{const a=e!==Ir;a&&!n.current&&(n.current=e),!a&&n.current&&(n.current=null)},[e]),n.current?Zd(e,n.current):Ir}function FI(e){b.useEffect(()=>{if(!Tf)return;const t=e.map(n=>{let{sensor:a}=n;return a.setup==null?void 0:a.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function jI(e,t){return b.useMemo(()=>e.reduce((n,a)=>{let{eventName:l,handler:s}=a;return n[l]=u=>{s(u,t)},n},{}),[e,t])}function tD(e){return b.useMemo(()=>e?hI(e):null,[e])}const eS=[];function UI(e,t){t===void 0&&(t=_o);const[n]=e,a=tD(n?In(n):null),[l,s]=b.useState(eS);function u(){s(()=>e.length?e.map(f=>WT(f)?a:new Nb(t(f),f)):eS)}const d=Df({callback:u});return ta(()=>{d==null||d.disconnect(),u(),e.forEach(f=>d==null?void 0:d.observe(f))},[e]),l}function HI(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Cu(t)?t:e}function GI(e){let{measure:t}=e;const[n,a]=b.useState(null),l=b.useCallback(h=>{for(const{target:p}of h)if(Cu(p)){a(v=>{const y=t(p);return v?{...v,width:y.width,height:y.height}:y});break}},[t]),s=Df({callback:l}),u=b.useCallback(h=>{const p=HI(h);s==null||s.disconnect(),p&&(s==null||s.observe(p)),a(p?t(p):null)},[t,s]),[d,f]=Xd(u);return b.useMemo(()=>({nodeRef:d,rect:n,setRef:f}),[n,d,f])}const qI=[{sensor:JT,options:{}},{sensor:QT,options:{}}],WI={current:{}},Td={draggable:{measure:Gw},droppable:{measure:Gw,strategy:fu.WhileDragging,frequency:cv.Optimized},dragOverlay:{measure:_o}};class Zs extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,a;return(n=(a=this.get(t))==null?void 0:a.node.current)!=null?n:void 0}}const YI={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Zs,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Jd},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Td,measureDroppableContainers:Jd,windowRect:null,measuringScheduled:!1},XI={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Jd,draggableNodes:new Map,over:null,measureDroppableContainers:Jd},Af=b.createContext(XI),nD=b.createContext(YI);function ZI(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Zs}}}function QI(e,t){switch(t.type){case Ht.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Ht.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Ht.DragEnd:case Ht.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ht.RegisterDroppable:{const{element:n}=t,{id:a}=n,l=new Zs(e.droppable.containers);return l.set(a,n),{...e,droppable:{...e.droppable,containers:l}}}case Ht.SetDroppableDisabled:{const{id:n,key:a,disabled:l}=t,s=e.droppable.containers.get(n);if(!s||a!==s.key)return e;const u=new Zs(e.droppable.containers);return u.set(n,{...s,disabled:l}),{...e,droppable:{...e.droppable,containers:u}}}case Ht.UnregisterDroppable:{const{id:n,key:a}=t,l=e.droppable.containers.get(n);if(!l||a!==l.key)return e;const s=new Zs(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function JI(e){let{disabled:t}=e;const{active:n,activatorEvent:a,draggableNodes:l}=b.useContext(Af),s=lv(a),u=lv(n==null?void 0:n.id);return b.useEffect(()=>{if(!t&&!a&&s&&u!=null){if(!kb(s)||document.activeElement===s.target)return;const d=l.get(u);if(!d)return;const{activatorNode:f,node:h}=d;if(!f.current&&!h.current)return;requestAnimationFrame(()=>{for(const p of[f.current,h.current]){if(!p)continue;const v=HV(p);if(v){v.focus();break}}})}},[a,t,l,u,s]),null}function eF(e,t){let{transform:n,...a}=t;return e!=null&&e.length?e.reduce((l,s)=>s({transform:l,...a}),n):n}function tF(e){return b.useMemo(()=>({draggable:{...Td.draggable,...e==null?void 0:e.draggable},droppable:{...Td.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Td.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function nF(e){let{activeNode:t,measure:n,initialRect:a,config:l=!0}=e;const s=b.useRef(!1),{x:u,y:d}=typeof l=="boolean"?{x:l,y:l}:l;ta(()=>{if(!u&&!d||!t){s.current=!1;return}if(s.current||!a)return;const h=t==null?void 0:t.node.current;if(!h||h.isConnected===!1)return;const p=n(h),v=UT(p,a);if(u||(v.x=0),d||(v.y=0),s.current=!0,Math.abs(v.x)>0||Math.abs(v.y)>0){const y=HT(h);y&&y.scrollBy({top:v.y,left:v.x})}},[t,u,d,a,n])}const rD=b.createContext({...Ir,scaleX:1,scaleY:1});var wi;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(wi||(wi={}));const HU=b.memo(function(t){var n,a,l,s;let{id:u,accessibility:d,autoScroll:f=!0,children:h,sensors:p=qI,collisionDetection:v=lI,measuring:y,modifiers:x,...$}=t;const w=b.useReducer(QI,void 0,ZI),[E,C]=w,[M,T]=ZV(),[O,P]=b.useState(wi.Uninitialized),k=O===wi.Initialized,{draggable:{active:G,nodes:D,translate:V},droppable:{containers:j}}=E,z=G!=null?D.get(G):null,I=b.useRef({initial:null,translated:null}),L=b.useMemo(()=>{var Te;return G!=null?{id:G,data:(Te=z==null?void 0:z.data)!=null?Te:WI,rect:I}:null},[G,z]),K=b.useRef(null),[U,R]=b.useState(null),[B,H]=b.useState(null),te=du($,Object.values($)),W=Du("DndDescribedBy",u),_=b.useMemo(()=>j.getEnabled(),[j]),Z=tF(y),{droppableRects:ie,measureDroppableContainers:se,measuringScheduled:de}=kI(_,{dragging:k,dependencies:[V.x,V.y],config:Z.droppable}),pe=OI(D,G),Me=b.useMemo(()=>B?ov(B):null,[B]),ye=Ke(),ge=LI(pe,Z.draggable.measure);nF({activeNode:G!=null?D.get(G):null,config:ye.layoutShiftCompensation,initialRect:ge,measure:Z.draggable.measure});const ce=Zw(pe,Z.draggable.measure,ge),gt=Zw(pe?pe.parentElement:null),ue=b.useRef({activatorEvent:null,active:null,activeNode:pe,collisionRect:null,collisions:null,droppableRects:ie,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:j,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Se=j.getNodeFor((n=ue.current.over)==null?void 0:n.id),Le=GI({measure:Z.dragOverlay.measure}),Ae=(a=Le.nodeRef.current)!=null?a:pe,xn=k?(l=Le.rect)!=null?l:ce:null,wn=!!(Le.nodeRef.current&&Le.rect),Fn=KI(wn?null:ce),nr=tD(Ae?In(Ae):null),ot=VI(k?Se??pe:null),hn=UI(ot),rr=eF(x,{transform:{x:V.x-Fn.x,y:V.y-Fn.y,scaleX:1,scaleY:1},activatorEvent:B,active:L,activeNodeRect:ce,containerNodeRect:gt,draggingNodeRect:xn,over:ue.current.over,overlayNodeRect:Le.rect,scrollableAncestors:ot,scrollableAncestorRects:hn,windowRect:nr}),Mn=Me?Ao(Me,V):null,Et=II(ot),la=Jw(Et),jn=Jw(Et,[ce]),Pt=Ao(rr,la),zt=xn?uI(xn,rr):null,Un=L&&zt?v({active:L,collisionRect:zt,droppableRects:ie,droppableContainers:_,pointerCoordinates:Mn}):null,Fr=aI(Un,"id"),[Sn,oa]=b.useState(null),Ct=wn?rr:Ao(rr,jn),Ot=oI(Ct,(s=Sn==null?void 0:Sn.rect)!=null?s:null,ce),It=b.useRef(null),ht=b.useCallback((Te,Ee)=>{let{sensor:re,options:he}=Ee;if(K.current==null)return;const $e=D.get(K.current);if(!$e)return;const Qe=Te.nativeEvent,st=new re({active:K.current,activeNode:$e,event:Qe,options:he,context:ue,onAbort(_e){if(!D.get(_e))return;const{onDragAbort:ut}=te.current,Bt={id:_e};ut==null||ut(Bt),M({type:"onDragAbort",event:Bt})},onPending(_e,tt,ut,Bt){if(!D.get(_e))return;const{onDragPending:an}=te.current,Xt={id:_e,constraint:tt,initialCoordinates:ut,offset:Bt};an==null||an(Xt),M({type:"onDragPending",event:Xt})},onStart(_e){const tt=K.current;if(tt==null)return;const ut=D.get(tt);if(!ut)return;const{onDragStart:Bt}=te.current,Yt={activatorEvent:Qe,active:{id:tt,data:ut.data,rect:I}};Yr.unstable_batchedUpdates(()=>{Bt==null||Bt(Yt),P(wi.Initializing),C({type:Ht.DragStart,initialCoordinates:_e,active:tt}),M({type:"onDragStart",event:Yt}),R(It.current),H(Qe)})},onMove(_e){C({type:Ht.DragMove,coordinates:_e})},onEnd:et(Ht.DragEnd),onCancel:et(Ht.DragCancel)});It.current=st;function et(_e){return async function(){const{active:ut,collisions:Bt,over:Yt,scrollAdjustedTranslate:an}=ue.current;let Xt=null;if(ut&&an){const{cancelDrop:Zt}=te.current;Xt={activatorEvent:Qe,active:ut,collisions:Bt,delta:an,over:Yt},_e===Ht.DragEnd&&typeof Zt=="function"&&await Promise.resolve(Zt(Xt))&&(_e=Ht.DragCancel)}K.current=null,Yr.unstable_batchedUpdates(()=>{C({type:_e}),P(wi.Uninitialized),oa(null),R(null),H(null),It.current=null;const Zt=_e===Ht.DragEnd?"onDragEnd":"onDragCancel";if(Xt){const Tt=te.current[Zt];Tt==null||Tt(Xt),M({type:Zt,event:Xt})}})}}},[D]),sa=b.useCallback((Te,Ee)=>(re,he)=>{const $e=re.nativeEvent,Qe=D.get(he);if(K.current!==null||!Qe||$e.dndKit||$e.defaultPrevented)return;const st={active:Qe};Te(re,Ee.options,st)===!0&&($e.dndKit={capturedBy:Ee.sensor},K.current=he,ht(re,Ee))},[D,ht]),ua=BI(p,sa);FI(p),ta(()=>{ce&&O===wi.Initializing&&P(wi.Initialized)},[ce,O]),b.useEffect(()=>{const{onDragMove:Te}=te.current,{active:Ee,activatorEvent:re,collisions:he,over:$e}=ue.current;if(!Ee||!re)return;const Qe={active:Ee,activatorEvent:re,collisions:he,delta:{x:Pt.x,y:Pt.y},over:$e};Yr.unstable_batchedUpdates(()=>{Te==null||Te(Qe),M({type:"onDragMove",event:Qe})})},[Pt.x,Pt.y]),b.useEffect(()=>{const{active:Te,activatorEvent:Ee,collisions:re,droppableContainers:he,scrollAdjustedTranslate:$e}=ue.current;if(!Te||K.current==null||!Ee||!$e)return;const{onDragOver:Qe}=te.current,st=he.get(Fr),et=st&&st.rect.current?{id:st.id,rect:st.rect.current,data:st.data,disabled:st.disabled}:null,_e={active:Te,activatorEvent:Ee,collisions:re,delta:{x:$e.x,y:$e.y},over:et};Yr.unstable_batchedUpdates(()=>{oa(et),Qe==null||Qe(_e),M({type:"onDragOver",event:_e})})},[Fr]),ta(()=>{ue.current={activatorEvent:B,active:L,activeNode:pe,collisionRect:zt,collisions:Un,droppableRects:ie,draggableNodes:D,draggingNode:Ae,draggingNodeRect:xn,droppableContainers:j,over:Sn,scrollableAncestors:ot,scrollAdjustedTranslate:Pt},I.current={initial:xn,translated:zt}},[L,pe,Un,zt,D,Ae,xn,ie,j,Sn,ot,Pt]),RI({...ye,delta:V,draggingRect:zt,pointerCoordinates:Mn,scrollableAncestors:ot,scrollableAncestorRects:hn});const Rn=b.useMemo(()=>({active:L,activeNode:pe,activeNodeRect:ce,activatorEvent:B,collisions:Un,containerNodeRect:gt,dragOverlay:Le,draggableNodes:D,droppableContainers:j,droppableRects:ie,over:Sn,measureDroppableContainers:se,scrollableAncestors:ot,scrollableAncestorRects:hn,measuringConfiguration:Z,measuringScheduled:de,windowRect:nr}),[L,pe,ce,B,Un,gt,Le,D,j,ie,Sn,se,ot,hn,Z,de,nr]),we=b.useMemo(()=>({activatorEvent:B,activators:ua,active:L,activeNodeRect:ce,ariaDescribedById:{draggable:W},dispatch:C,draggableNodes:D,over:Sn,measureDroppableContainers:se}),[B,ua,L,ce,C,W,D,Sn,se]);return oe.createElement(jT.Provider,{value:T},oe.createElement(Af.Provider,{value:we},oe.createElement(nD.Provider,{value:Rn},oe.createElement(rD.Provider,{value:Ot},h)),oe.createElement(JI,{disabled:(d==null?void 0:d.restoreFocus)===!1})),oe.createElement(eI,{...d,hiddenTextDescribedById:W}));function Ke(){const Te=(U==null?void 0:U.autoScrollEnabled)===!1,Ee=typeof f=="object"?f.enabled===!1:f===!1,re=k&&!Te&&!Ee;return typeof f=="object"?{...f,enabled:re}:{enabled:re}}}),rF=b.createContext(null),tS="button",aF="Draggable";function iF(e){let{id:t,data:n,disabled:a=!1,attributes:l}=e;const s=Du(aF),{activators:u,activatorEvent:d,active:f,activeNodeRect:h,ariaDescribedById:p,draggableNodes:v,over:y}=b.useContext(Af),{role:x=tS,roleDescription:$="draggable",tabIndex:w=0}=l??{},E=(f==null?void 0:f.id)===t,C=b.useContext(E?rD:rF),[M,T]=Xd(),[O,P]=Xd(),k=jI(u,t),G=du(n);ta(()=>(v.set(t,{id:t,key:s,node:M,activatorNode:O,data:G}),()=>{const V=v.get(t);V&&V.key===s&&v.delete(t)}),[v,t]);const D=b.useMemo(()=>({role:x,tabIndex:w,"aria-disabled":a,"aria-pressed":E&&x===tS?!0:void 0,"aria-roledescription":$,"aria-describedby":p.draggable}),[a,x,w,E,$,p.draggable]);return{active:f,activatorEvent:d,activeNodeRect:h,attributes:D,isDragging:E,listeners:a?void 0:k,node:M,over:y,setNodeRef:T,setActivatorNodeRef:P,transform:C}}function lF(){return b.useContext(nD)}const oF="Droppable",sF={timeout:25};function uF(e){let{data:t,disabled:n=!1,id:a,resizeObserverConfig:l}=e;const s=Du(oF),{active:u,dispatch:d,over:f,measureDroppableContainers:h}=b.useContext(Af),p=b.useRef({disabled:n}),v=b.useRef(!1),y=b.useRef(null),x=b.useRef(null),{disabled:$,updateMeasurementsFor:w,timeout:E}={...sF,...l},C=du(w??a),M=b.useCallback(()=>{if(!v.current){v.current=!0;return}x.current!=null&&clearTimeout(x.current),x.current=setTimeout(()=>{h(Array.isArray(C.current)?C.current:[C.current]),x.current=null},E)},[E]),T=Df({callback:M,disabled:$||!u}),O=b.useCallback((D,V)=>{T&&(V&&(T.unobserve(V),v.current=!1),D&&T.observe(D))},[T]),[P,k]=Xd(O),G=du(t);return b.useEffect(()=>{!T||!P.current||(T.disconnect(),v.current=!1,T.observe(P.current))},[P,T]),b.useEffect(()=>(d({type:Ht.RegisterDroppable,element:{id:a,key:s,disabled:n,node:P,rect:y,data:G}}),()=>d({type:Ht.UnregisterDroppable,key:s,id:a})),[a]),b.useEffect(()=>{n!==p.current.disabled&&(d({type:Ht.SetDroppableDisabled,id:a,key:s,disabled:n}),p.current.disabled=n)},[a,s,n,d]),{active:u,rect:y,isOver:(f==null?void 0:f.id)===a,node:P,over:f,setNodeRef:k}}function aD(e,t,n){const a=e.slice();return a.splice(n<0?a.length+n:n,0,a.splice(t,1)[0]),a}function cF(e,t){return e.reduce((n,a,l)=>{const s=t.get(a);return s&&(n[l]=s),n},Array(e.length))}function ud(e){return e!==null&&e>=0}function dF(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function fF(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const cd={scaleX:1,scaleY:1},GU=e=>{var t;let{rects:n,activeNodeRect:a,activeIndex:l,overIndex:s,index:u}=e;const d=(t=n[l])!=null?t:a;if(!d)return null;const f=hF(n,u,l);if(u===l){const h=n[s];return h?{x:l<s?h.left+h.width-(d.left+d.width):h.left-d.left,y:0,...cd}:null}return u>l&&u<=s?{x:-d.width-f,y:0,...cd}:u<l&&u>=s?{x:d.width+f,y:0,...cd}:{x:0,y:0,...cd}};function hF(e,t,n){const a=e[t],l=e[t-1],s=e[t+1];return!a||!l&&!s?0:n<t?l?a.left-(l.left+l.width):s.left-(a.left+a.width):s?s.left-(a.left+a.width):a.left-(l.left+l.width)}const iD=e=>{let{rects:t,activeIndex:n,overIndex:a,index:l}=e;const s=aD(t,a,n),u=t[l],d=s[l];return!d||!u?null:{x:d.left-u.left,y:d.top-u.top,scaleX:d.width/u.width,scaleY:d.height/u.height}},lD="Sortable",oD=oe.createContext({activeIndex:-1,containerId:lD,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:iD,disabled:{draggable:!1,droppable:!1}});function qU(e){let{children:t,id:n,items:a,strategy:l=iD,disabled:s=!1}=e;const{active:u,dragOverlay:d,droppableRects:f,over:h,measureDroppableContainers:p}=lF(),v=Du(lD,n),y=d.rect!==null,x=b.useMemo(()=>a.map(k=>typeof k=="object"&&"id"in k?k.id:k),[a]),$=u!=null,w=u?x.indexOf(u.id):-1,E=h?x.indexOf(h.id):-1,C=b.useRef(x),M=!dF(x,C.current),T=E!==-1&&w===-1||M,O=fF(s);ta(()=>{M&&$&&p(x)},[M,x,$,p]),b.useEffect(()=>{C.current=x},[x]);const P=b.useMemo(()=>({activeIndex:w,containerId:v,disabled:O,disableTransforms:T,items:x,overIndex:E,useDragOverlay:y,sortedRects:cF(x,f),strategy:l}),[w,v,O.draggable,O.droppable,T,x,E,f,y,l]);return oe.createElement(oD.Provider,{value:P},t)}const pF=e=>{let{id:t,items:n,activeIndex:a,overIndex:l}=e;return aD(n,a,l).indexOf(t)},mF=e=>{let{containerId:t,isSorting:n,wasDragging:a,index:l,items:s,newIndex:u,previousItems:d,previousContainerId:f,transition:h}=e;return!h||!a||d!==s&&l===u?!1:n?!0:u!==l&&t===f},gF={duration:200,easing:"ease"},sD="transform",vF=Qd.Transition.toString({property:sD,duration:0,easing:"linear"}),bF={roleDescription:"sortable"};function yF(e){let{disabled:t,index:n,node:a,rect:l}=e;const[s,u]=b.useState(null),d=b.useRef(n);return ta(()=>{if(!t&&n!==d.current&&a.current){const f=l.current;if(f){const h=_o(a.current,{ignoreTransform:!0}),p={x:f.left-h.left,y:f.top-h.top,scaleX:f.width/h.width,scaleY:f.height/h.height};(p.x||p.y)&&u(p)}}n!==d.current&&(d.current=n)},[t,n,a,l]),b.useEffect(()=>{s&&u(null)},[s]),s}function WU(e){let{animateLayoutChanges:t=mF,attributes:n,disabled:a,data:l,getNewIndex:s=pF,id:u,strategy:d,resizeObserverConfig:f,transition:h=gF}=e;const{items:p,containerId:v,activeIndex:y,disabled:x,disableTransforms:$,sortedRects:w,overIndex:E,useDragOverlay:C,strategy:M}=b.useContext(oD),T=xF(a,x),O=p.indexOf(u),P=b.useMemo(()=>({sortable:{containerId:v,index:O,items:p},...l}),[v,l,O,p]),k=b.useMemo(()=>p.slice(p.indexOf(u)),[p,u]),{rect:G,node:D,isOver:V,setNodeRef:j}=uF({id:u,data:P,disabled:T.droppable,resizeObserverConfig:{updateMeasurementsFor:k,...f}}),{active:z,activatorEvent:I,activeNodeRect:L,attributes:K,setNodeRef:U,listeners:R,isDragging:B,over:H,setActivatorNodeRef:te,transform:W}=iF({id:u,data:P,attributes:{...bF,...n},disabled:T.draggable}),_=IV(j,U),Z=!!z,ie=Z&&!$&&ud(y)&&ud(E),se=!C&&B,de=se&&ie?W:null,Me=ie?de??(d??M)({rects:w,activeNodeRect:L,activeIndex:y,overIndex:E,index:O}):null,ye=ud(y)&&ud(E)?s({id:u,items:p,activeIndex:y,overIndex:E}):O,ge=z==null?void 0:z.id,ce=b.useRef({activeId:ge,items:p,newIndex:ye,containerId:v}),gt=p!==ce.current.items,ue=t({active:z,containerId:v,isDragging:B,isSorting:Z,id:u,index:O,items:p,newIndex:ce.current.newIndex,previousItems:ce.current.items,previousContainerId:ce.current.containerId,transition:h,wasDragging:ce.current.activeId!=null}),Se=yF({disabled:!ue,index:O,node:D,rect:G});return b.useEffect(()=>{Z&&ce.current.newIndex!==ye&&(ce.current.newIndex=ye),v!==ce.current.containerId&&(ce.current.containerId=v),p!==ce.current.items&&(ce.current.items=p)},[Z,ye,v,p]),b.useEffect(()=>{if(ge===ce.current.activeId)return;if(ge!=null&&ce.current.activeId==null){ce.current.activeId=ge;return}const Ae=setTimeout(()=>{ce.current.activeId=ge},50);return()=>clearTimeout(Ae)},[ge]),{active:z,activeIndex:y,attributes:K,data:P,rect:G,index:O,newIndex:ye,items:p,isOver:V,isSorting:Z,isDragging:B,listeners:R,node:D,overIndex:E,over:H,setNodeRef:_,setActivatorNodeRef:te,setDroppableNodeRef:j,setDraggableNodeRef:U,transform:Se??Me,transition:Le()};function Le(){if(Se||gt&&ce.current.newIndex===O)return vF;if(!(se&&!kb(I)||!h)&&(Z||ue))return Qd.Transition.toString({...h,property:sD})}}function xF(e,t){var n,a;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(a=e==null?void 0:e.droppable)!=null?a:t.droppable}}je.Down,je.Right,je.Up,je.Left;var wF=yb;const YU=Object.freeze(Object.defineProperty({__proto__:null,default:wF},Symbol.toStringTag,{value:"Module"}));export{xj as $,Bj as A,zj as B,Tv as C,$S as D,IF as E,mj as F,Uj as G,FS as H,wj as I,Oj as J,DN as K,Lj as L,Va as M,hS as N,f8 as O,$F as P,TF as Q,CF as R,Vj as S,Gt as T,Jj as U,Ai as V,Dd as W,EF as X,Uz as Y,vU as Z,gj as _,Nj as a,kU as a$,vj as a0,CU as a1,f$ as a2,Cv as a3,xR as a4,LF as a5,NF as a6,TU as a7,Yj as a8,Iz as a9,bU as aA,xK as aB,DF as aC,MU as aD,rS as aE,ij as aF,JF as aG,BF as aH,qF as aI,yU as aJ,J9 as aK,$U as aL,UF as aM,ON as aN,xU as aO,fV as aP,_U as aQ,cV as aR,YF as aS,PU as aT,LU as aU,mn as aV,So as aW,Zi as aX,AF as aY,RU as aZ,BU as a_,Na as aa,SK as ab,QF as ac,f6 as ad,SU as ae,wK as af,h6 as ag,wU as ah,$K as ai,Fj as aj,n_ as ak,l_ as al,Eb as am,ZF as an,DU as ao,AU as ap,kj as aq,iU as ar,s6 as as,u6 as at,l6 as au,H_ as av,yK as aw,Db as ax,o6 as ay,Z_ as az,$z as b,hU as b$,zU as b0,NU as b1,OU as b2,VU as b3,KU as b4,IU as b5,ej as b6,Zj as b7,tj as b8,Qj as b9,Xj as bA,Wj as bB,Cj as bC,mz as bD,Pj as bE,kF as bF,nj as bG,Gj as bH,lj as bI,Bv as bJ,WF as bK,rU as bL,dj as bM,nU as bN,Ij as bO,MF as bP,aU as bQ,OF as bR,lU as bS,cU as bT,$t as bU,Nr as bV,GP as bW,CR as bX,o_ as bY,dU as bZ,fU as b_,yj as ba,vu as bb,vP as bc,FF as bd,EU as be,AK as bf,ia as bg,HF as bh,KF as bi,sU as bj,tu as bk,cj as bl,VF as bm,uU as bn,pU as bo,oU as bp,_F as bq,hj as br,tz as bs,u_ as bt,m_ as bu,jF as bv,RF as bw,qj as bx,VN as by,PF as bz,HS as c,gU as c0,zF as c1,sj as c2,Rj as c3,vz as c4,Gz as c5,rj as c6,XF as c7,$j as c8,LN as c9,WU as ca,Qd as cb,jU as cc,FU as cd,HU as ce,UU as cf,qU as cg,GU as ch,aD as ci,JT as cj,Hj as ck,YU as cl,Sj as d,$v as e,c$ as f,Dj as g,hz as h,Wt as i,aa as j,fj as k,uj as l,_j as m,Mj as n,GF as o,ol as p,kv as q,aj as r,pj as s,I9 as t,bj as u,gv as v,oj as w,_S as x,Ej as y,jj as z};
