import{r as n$,g as Od,h as b,R as ie,j as gi,k as $c,_ as KD}from"./codemirror-core-vkcnXJgD.js";var mm={exports:{}},vs={},pm={exports:{}},vm={};/**
 * @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 V1;function VD(){return V1||(V1=1,(function(e){function t(B,N){var G=B.length;B.push(N);e:for(;0<G;){var ne=G-1>>>1,X=B[ne];if(0<a(X,N))B[ne]=N,B[G]=X,G=ne;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var N=B[0],G=B.pop();if(G!==N){B[0]=G;e:for(var ne=0,X=B.length,de=X>>>1;ne<de;){var ae=2*(ne+1)-1,le=B[ae],se=ae+1,Ce=B[se];if(0>a(le,G))se<X&&0>a(Ce,le)?(B[ne]=Ce,B[se]=G,ne=se):(B[ne]=le,B[ae]=G,ne=ae);else if(se<X&&0>a(Ce,G))B[ne]=Ce,B[se]=G,ne=se;else break e}}return N}function a(B,N){var G=B.sortIndex-N.sortIndex;return G!==0?G:B.id-N.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,g=null,y=3,S=!1,x=!1,E=!1,T=!1,C=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function O(B){for(var N=n(h);N!==null;){if(N.callback===null)r(h);else if(N.startTime<=B)r(h),N.sortIndex=N.expirationTime,t(f,N);else break;N=n(h)}}function R(B){if(E=!1,O(B),!x)if(n(f)!==null)x=!0,z||(z=!0,Z());else{var N=n(h);N!==null&&Y(R,N.startTime-B)}}var z=!1,I=-1,A=5,V=-1;function F(){return T?!0:!(e.unstable_now()-V<A)}function P(){if(T=!1,z){var B=e.unstable_now();V=B;var N=!0;try{e:{x=!1,E&&(E=!1,M(I),I=-1),S=!0;var G=y;try{t:{for(O(B),g=n(f);g!==null&&!(g.expirationTime>B&&F());){var ne=g.callback;if(typeof ne=="function"){g.callback=null,y=g.priorityLevel;var X=ne(g.expirationTime<=B);if(B=e.unstable_now(),typeof X=="function"){g.callback=X,O(B),N=!0;break t}g===n(f)&&r(f),O(B)}else r(f);g=n(f)}if(g!==null)N=!0;else{var de=n(h);de!==null&&Y(R,de.startTime-B),N=!1}}break e}finally{g=null,y=G,S=!1}N=void 0}}finally{N?Z():z=!1}}}var Z;if(typeof D=="function")Z=function(){D(P)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,_=K.port2;K.port1.onmessage=P,Z=function(){_.postMessage(null)}}else Z=function(){C(P,0)};function Y(B,N){I=C(function(){B(e.unstable_now())},N)}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(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(B){switch(y){case 1:case 2:case 3:var N=3;break;default:N=y}var G=y;y=N;try{return B()}finally{y=G}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(B,N){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var G=y;y=B;try{return N()}finally{y=G}},e.unstable_scheduleCallback=function(B,N,G){var ne=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?ne+G:ne):G=ne,B){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=G+X,B={id:p++,callback:N,priorityLevel:B,startTime:G,expirationTime:X,sortIndex:-1},G>ne?(B.sortIndex=G,t(h,B),n(f)===null&&B===n(h)&&(E?(M(I),I=-1):E=!0,Y(R,G-ne))):(B.sortIndex=X,t(f,B),x||S||(x=!0,z||(z=!0,Z()))),B},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(B){var N=y;return function(){var G=y;y=N;try{return B.apply(this,arguments)}finally{y=G}}}})(vm)),vm}var F1;function FD(){return F1||(F1=1,pm.exports=VD()),pm.exports}var gm={exports:{}},sn={};/**
 * @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 I1;function ID(){if(I1)return sn;I1=1;var e=n$();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 r={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},a=Symbol.for("react.portal");function s(f,h,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:g==null?null:""+g,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 sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,sn.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)},sn.flushSync=function(f){var h=u.T,p=r.p;try{if(u.T=null,r.p=2,f)return f()}finally{u.T=h,r.p=p,r.d.f()}},sn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(f,h))},sn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},sn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var p=h.as,g=d(p,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?r.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:S}):p==="script"&&r.d.X(f,{crossOrigin:g,integrity:y,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},sn.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);r.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&&r.d.M(f)},sn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,g=d(p,h.crossOrigin);r.d.L(f,p,{crossOrigin:g,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})}},sn.preloadModule=function(f,h){if(typeof f=="string")if(h){var p=d(h.as,h.crossOrigin);r.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 r.d.m(f)},sn.requestFormReset=function(f){r.d.r(f)},sn.unstable_batchedUpdates=function(f,h){return f(h)},sn.useFormState=function(f,h,p){return u.H.useFormState(f,h,p)},sn.useFormStatus=function(){return u.H.useHostTransitionStatus()},sn.version="19.2.0",sn}var U1;function i$(){if(U1)return gm.exports;U1=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(),gm.exports=ID(),gm.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 _1;function UD(){if(_1)return vs;_1=1;var e=FD(),t=n$(),n=i$();function r(i){var l="https://react.dev/errors/"+i;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)l+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+i+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var l=i,o=i;if(i.alternate)for(;l.return;)l=l.return;else{i=l;do l=i,(l.flags&4098)!==0&&(o=l.return),i=l.return;while(i)}return l.tag===3?o:null}function u(i){if(i.tag===13){var l=i.memoizedState;if(l===null&&(i=i.alternate,i!==null&&(l=i.memoizedState)),l!==null)return l.dehydrated}return null}function d(i){if(i.tag===31){var l=i.memoizedState;if(l===null&&(i=i.alternate,i!==null&&(l=i.memoizedState)),l!==null)return l.dehydrated}return null}function f(i){if(s(i)!==i)throw Error(r(188))}function h(i){var l=i.alternate;if(!l){if(l=s(i),l===null)throw Error(r(188));return l!==i?null:i}for(var o=i,c=l;;){var m=o.return;if(m===null)break;var v=m.alternate;if(v===null){if(c=m.return,c!==null){o=c;continue}break}if(m.child===v.child){for(v=m.child;v;){if(v===o)return f(m),i;if(v===c)return f(m),l;v=v.sibling}throw Error(r(188))}if(o.return!==c.return)o=m,c=v;else{for(var $=!1,w=m.child;w;){if(w===o){$=!0,o=m,c=v;break}if(w===c){$=!0,c=m,o=v;break}w=w.sibling}if(!$){for(w=v.child;w;){if(w===o){$=!0,o=v,c=m;break}if(w===c){$=!0,c=v,o=m;break}w=w.sibling}if(!$)throw Error(r(189))}}if(o.alternate!==c)throw Error(r(190))}if(o.tag!==3)throw Error(r(188));return o.stateNode.current===o?i:l}function p(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i;for(i=i.child;i!==null;){if(l=p(i),l!==null)return l;i=i.sibling}return null}var g=Object.assign,y=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),D=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function Z(i){return i===null||typeof i!="object"?null:(i=P&&i[P]||i["@@iterator"],typeof i=="function"?i:null)}var K=Symbol.for("react.client.reference");function _(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===K?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case E:return"Fragment";case C:return"Profiler";case T:return"StrictMode";case R:return"Suspense";case z:return"SuspenseList";case V:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case x:return"Portal";case D:return i.displayName||"Context";case M:return(i._context.displayName||"Context")+".Consumer";case O:var l=i.render;return i=i.displayName,i||(i=l.displayName||l.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case I:return l=i.displayName||null,l!==null?l:_(i.type)||"Memo";case A:l=i._payload,i=i._init;try{return _(i(l))}catch{}}return null}var Y=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},ne=[],X=-1;function de(i){return{current:i}}function ae(i){0>X||(i.current=ne[X],ne[X]=null,X--)}function le(i,l){X++,ne[X]=i.current,i.current=l}var se=de(null),Ce=de(null),xe=de(null),Lt=de(null);function Ie(i,l){switch(le(xe,l),le(Ce,i),le(se,null),l.nodeType){case 9:case 11:i=(i=l.documentElement)&&(i=i.namespaceURI)?s1(i):0;break;default:if(i=l.tagName,l=l.namespaceURI)l=s1(l),i=u1(l,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ae(se),le(se,i)}function Be(){ae(se),ae(Ce),ae(xe)}function fe(i){i.memoizedState!==null&&le(Lt,i);var l=se.current,o=u1(l,i.type);l!==o&&(le(Ce,i),le(se,o))}function ct(i){Ce.current===i&&(ae(se),ae(Ce)),Lt.current===i&&(ae(Lt),fs._currentValue=G)}var re,ge;function Re(i){if(re===void 0)try{throw Error()}catch(o){var l=o.stack.trim().match(/\n( *(at )?)/);re=l&&l[1]||"",ge=-1<o.stack.indexOf(`
    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
`+re+i+ge}var Te=!1;function mn(i,l){if(!i||Te)return"";Te=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(l){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(W){var q=W}Reflect.construct(i,[],te)}else{try{te.call()}catch(W){q=W}i.call(te.prototype)}}else{try{throw Error()}catch(W){q=W}(te=i())&&typeof te.catch=="function"&&te.catch(function(){})}}catch(W){if(W&&q&&typeof W.stack=="string")return[W.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 v=c.DetermineComponentFrameRoot(),$=v[0],w=v[1];if($&&w){var L=$.split(`
`),H=w.split(`
`);for(m=c=0;c<L.length&&!L[c].includes("DetermineComponentFrameRoot");)c++;for(;m<H.length&&!H[m].includes("DetermineComponentFrameRoot");)m++;if(c===L.length||m===H.length)for(c=L.length-1,m=H.length-1;1<=c&&0<=m&&L[c]!==H[m];)m--;for(;1<=c&&0<=m;c--,m--)if(L[c]!==H[m]){if(c!==1||m!==1)do if(c--,m--,0>m||L[c]!==H[m]){var Q=`
`+L[c].replace(" at new "," at ");return i.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",i.displayName)),Q}while(1<=c&&0<=m);break}}}finally{Te=!1,Error.prepareStackTrace=o}return(o=i?i.displayName||i.name:"")?Re(o):""}function pn(i,l){switch(i.tag){case 26:case 27:case 5:return Re(i.type);case 16:return Re("Lazy");case 13:return i.child!==l&&l!==null?Re("Suspense Fallback"):Re("Suspense");case 19:return Re("SuspenseList");case 0:case 15:return mn(i.type,!1);case 11:return mn(i.type.render,!1);case 1:return mn(i.type,!0);case 31:return Re("Activity");default:return""}}function Nn(i){try{var l="",o=null;do l+=pn(i,o),o=i,i=i.return;while(i);return l}catch(c){return`
Error generating stack: `+c.message+`
`+c.stack}}var Gn=Object.prototype.hasOwnProperty,nt=e.unstable_scheduleCallback,on=e.unstable_cancelCallback,Xn=e.unstable_shouldYield,xn=e.unstable_requestPaint,bt=e.unstable_now,Ji=e.unstable_getCurrentPriorityLevel,kn=e.unstable_ImmediatePriority,Ct=e.unstable_UserBlockingPriority,wt=e.unstable_NormalPriority,Kn=e.unstable_LowPriority,Li=e.unstable_IdlePriority,vn=e.log,er=e.unstable_setDisableYieldValue,yt=null,Dt=null;function Nt(i){if(typeof vn=="function"&&er(i),Dt&&typeof Dt.setStrictMode=="function")try{Dt.setStrictMode(yt,i)}catch{}}var ot=Math.clz32?Math.clz32:Tn,tr=Math.log,nr=Math.LN2;function Tn(i){return i>>>=0,i===0?32:31-(tr(i)/nr|0)|0}var ve=256,ze=262144,$e=4194304;function ye(i){var l=i&42;if(l!==0)return l;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function J(i,l,o){var c=i.pendingLanes;if(c===0)return 0;var m=0,v=i.suspendedLanes,$=i.pingedLanes;i=i.warmLanes;var w=c&134217727;return w!==0?(c=w&~v,c!==0?m=ye(c):($&=w,$!==0?m=ye($):o||(o=w&~i,o!==0&&(m=ye(o))))):(w=c&~v,w!==0?m=ye(w):$!==0?m=ye($):o||(o=c&~i,o!==0&&(m=ye(o)))),m===0?0:l!==0&&l!==m&&(l&v)===0&&(v=m&-m,o=l&-l,v>=o||v===32&&(o&4194048)!==0)?l:m}function ue(i,l){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&l)===0}function be(i,l){switch(i){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 Ge(){var i=$e;return $e<<=1,($e&62914560)===0&&($e=4194304),i}function it(i){for(var l=[],o=0;31>o;o++)l.push(i);return l}function We(i,l){i.pendingLanes|=l,l!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function Oe(i,l,o,c,m,v){var $=i.pendingLanes;i.pendingLanes=o,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=o,i.entangledLanes&=o,i.errorRecoveryDisabledLanes&=o,i.shellSuspendCounter=0;var w=i.entanglements,L=i.expirationTimes,H=i.hiddenUpdates;for(o=$&~o;0<o;){var Q=31-ot(o),te=1<<Q;w[Q]=0,L[Q]=-1;var q=H[Q];if(q!==null)for(H[Q]=null,Q=0;Q<q.length;Q++){var W=q[Q];W!==null&&(W.lane&=-536870913)}o&=~te}c!==0&&Ze(i,c,0),v!==0&&m===0&&i.tag!==0&&(i.suspendedLanes|=v&~($&~l))}function Ze(i,l,o){i.pendingLanes|=l,i.suspendedLanes&=~l;var c=31-ot(l);i.entangledLanes|=l,i.entanglements[c]=i.entanglements[c]|1073741824|o&261930}function rt(i,l){var o=i.entangledLanes|=l;for(i=i.entanglements;o;){var c=31-ot(o),m=1<<c;m&l|i[c]&l&&(i[c]|=l),o&=~m}}function At(i,l){var o=l&-l;return o=(o&42)!==0?1:jt(o),(o&(i.suspendedLanes|l))!==0?0:o}function jt(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Qt(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function Ht(){var i=N.p;return i!==0?i:(i=window.event,i===void 0?32:B1(i.type))}function Yt(i,l){var o=N.p;try{return N.p=i,l()}finally{N.p=o}}var St=Math.random().toString(36).slice(2),He="__reactFiber$"+St,lt="__reactProps$"+St,Jt="__reactContainer$"+St,Ni="__reactEvents$"+St,oa="__reactListeners$"+St,Lr="__reactHandles$"+St,$i="__reactResources$"+St,gn="__reactMarker$"+St;function Ei(i){delete i[He],delete i[lt],delete i[Ni],delete i[oa],delete i[Lr]}function kt(i){var l=i[He];if(l)return l;for(var o=i.parentNode;o;){if(l=o[Jt]||o[He]){if(o=l.alternate,l.child!==null||o!==null&&o.child!==null)for(i=v1(i);i!==null;){if(o=i[He])return o;i=v1(i)}return l}i=o,o=i.parentNode}return null}function Vn(i){if(i=i[He]||i[Jt]){var l=i.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return i}return null}function Fn(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i.stateNode;throw Error(r(33))}function bn(i){var l=i[$i];return l||(l=i[$i]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Ye(i){i[gn]=!0}var Wn=new Set,Zn={};function Kt(i,l){dt(i,l),dt(i+"Capture",l)}function dt(i,l){for(Zn[i]=l,i=0;i<l.length;i++)Wn.add(l[i])}var en=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]*$"),Cn={},Qn={};function wn(i){return Gn.call(Qn,i)?!0:Gn.call(Cn,i)?!1:en.test(i)?Qn[i]=!0:(Cn[i]=!0,!1)}function xi(i,l,o){if(wn(l))if(o===null)i.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":i.removeAttribute(l);return;case"boolean":var c=l.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){i.removeAttribute(l);return}}i.setAttribute(l,""+o)}}function yn(i,l,o){if(o===null)i.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(l);return}i.setAttribute(l,""+o)}}function ft(i,l,o,c){if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttributeNS(l,o,""+c)}}function qt(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Nr(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function du(i,l,o){var c=Object.getOwnPropertyDescriptor(i.constructor.prototype,l);if(!i.hasOwnProperty(l)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,v=c.set;return Object.defineProperty(i,l,{configurable:!0,get:function(){return m.call(this)},set:function($){o=""+$,v.call(this,$)}}),Object.defineProperty(i,l,{enumerable:c.enumerable}),{getValue:function(){return o},setValue:function($){o=""+$},stopTracking:function(){i._valueTracker=null,delete i[l]}}}}function sa(i){if(!i._valueTracker){var l=Nr(i)?"checked":"value";i._valueTracker=du(i,l,""+i[l])}}function Ao(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var o=l.getValue(),c="";return i&&(c=Nr(i)?i.checked?"true":"false":i.value),i=c,i!==o?(l.setValue(i),!0):!1}function ua(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var BC=/[\n"\\]/g;function Jn(i){return i.replace(BC,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function sf(i,l,o,c,m,v,$,w){i.name="",$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?i.type=$:i.removeAttribute("type"),l!=null?$==="number"?(l===0&&i.value===""||i.value!=l)&&(i.value=""+qt(l)):i.value!==""+qt(l)&&(i.value=""+qt(l)):$!=="submit"&&$!=="reset"||i.removeAttribute("value"),l!=null?uf(i,$,qt(l)):o!=null?uf(i,$,qt(o)):c!=null&&i.removeAttribute("value"),m==null&&v!=null&&(i.defaultChecked=!!v),m!=null&&(i.checked=m&&typeof m!="function"&&typeof m!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?i.name=""+qt(w):i.removeAttribute("name")}function n0(i,l,o,c,m,v,$,w){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(i.type=v),l!=null||o!=null){if(!(v!=="submit"&&v!=="reset"||l!=null)){sa(i);return}o=o!=null?""+qt(o):"",l=l!=null?""+qt(l):o,w||l===i.value||(i.value=l),i.defaultValue=l}c=c??m,c=typeof c!="function"&&typeof c!="symbol"&&!!c,i.checked=w?i.checked:!!c,i.defaultChecked=!!c,$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"&&(i.name=$),sa(i)}function uf(i,l,o){l==="number"&&ua(i.ownerDocument)===i||i.defaultValue===""+o||(i.defaultValue=""+o)}function ca(i,l,o,c){if(i=i.options,l){l={};for(var m=0;m<o.length;m++)l["$"+o[m]]=!0;for(o=0;o<i.length;o++)m=l.hasOwnProperty("$"+i[o].value),i[o].selected!==m&&(i[o].selected=m),m&&c&&(i[o].defaultSelected=!0)}else{for(o=""+qt(o),l=null,m=0;m<i.length;m++){if(i[m].value===o){i[m].selected=!0,c&&(i[m].defaultSelected=!0);return}l!==null||i[m].disabled||(l=i[m])}l!==null&&(l.selected=!0)}}function i0(i,l,o){if(l!=null&&(l=""+qt(l),l!==i.value&&(i.value=l),o==null)){i.defaultValue!==l&&(i.defaultValue=l);return}i.defaultValue=o!=null?""+qt(o):""}function r0(i,l,o,c){if(l==null){if(c!=null){if(o!=null)throw Error(r(92));if(Y(c)){if(1<c.length)throw Error(r(93));c=c[0]}o=c}o==null&&(o=""),l=o}o=qt(l),i.defaultValue=o,c=i.textContent,c===o&&c!==""&&c!==null&&(i.value=c),sa(i)}function da(i,l){if(l){var o=i.firstChild;if(o&&o===i.lastChild&&o.nodeType===3){o.nodeValue=l;return}}i.textContent=l}var OC=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 l0(i,l,o){var c=l.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?c?i.setProperty(l,""):l==="float"?i.cssFloat="":i[l]="":c?i.setProperty(l,o):typeof o!="number"||o===0||OC.has(l)?l==="float"?i.cssFloat=o:i[l]=(""+o).trim():i[l]=o+"px"}function a0(i,l,o){if(l!=null&&typeof l!="object")throw Error(r(62));if(i=i.style,o!=null){for(var c in o)!o.hasOwnProperty(c)||l!=null&&l.hasOwnProperty(c)||(c.indexOf("--")===0?i.setProperty(c,""):c==="float"?i.cssFloat="":i[c]="");for(var m in l)c=l[m],l.hasOwnProperty(m)&&o[m]!==c&&l0(i,m,c)}else for(var v in l)l.hasOwnProperty(v)&&l0(i,v,l[v])}function cf(i){if(i.indexOf("-")===-1)return!1;switch(i){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 zC=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"]]),LC=/^[\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 fu(i){return LC.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function ir(){}var df=null;function ff(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var fa=null,ha=null;function o0(i){var l=Vn(i);if(l&&(i=l.stateNode)){var o=i[lt]||null;e:switch(i=l.stateNode,l.type){case"input":if(sf(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),l=o.name,o.type==="radio"&&l!=null){for(o=i;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Jn(""+l)+'"][type="radio"]'),l=0;l<o.length;l++){var c=o[l];if(c!==i&&c.form===i.form){var m=c[lt]||null;if(!m)throw Error(r(90));sf(c,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(l=0;l<o.length;l++)c=o[l],c.form===i.form&&Ao(c)}break e;case"textarea":i0(i,o.value,o.defaultValue);break e;case"select":l=o.value,l!=null&&ca(i,!!o.multiple,l,!1)}}}var hf=!1;function s0(i,l,o){if(hf)return i(l,o);hf=!0;try{var c=i(l);return c}finally{if(hf=!1,(fa!==null||ha!==null)&&(Ju(),fa&&(l=fa,i=ha,ha=fa=null,o0(l),i)))for(l=0;l<i.length;l++)o0(i[l])}}function Mo(i,l){var o=i.stateNode;if(o===null)return null;var c=o[lt]||null;if(c===null)return null;o=c[l];e:switch(l){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)||(i=i.type,c=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!c;break e;default:i=!1}if(i)return null;if(o&&typeof o!="function")throw Error(r(231,l,typeof o));return o}var rr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mf=!1;if(rr)try{var Ro={};Object.defineProperty(Ro,"passive",{get:function(){mf=!0}}),window.addEventListener("test",Ro,Ro),window.removeEventListener("test",Ro,Ro)}catch{mf=!1}var kr=null,pf=null,hu=null;function u0(){if(hu)return hu;var i,l=pf,o=l.length,c,m="value"in kr?kr.value:kr.textContent,v=m.length;for(i=0;i<o&&l[i]===m[i];i++);var $=o-i;for(c=1;c<=$&&l[o-c]===m[v-c];c++);return hu=m.slice(i,1<c?1-c:void 0)}function mu(i){var l=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&l===13&&(i=13)):i=l,i===10&&(i=13),32<=i||i===13?i:0}function pu(){return!0}function c0(){return!1}function Dn(i){function l(o,c,m,v,$){this._reactName=o,this._targetInst=m,this.type=c,this.nativeEvent=v,this.target=$,this.currentTarget=null;for(var w in i)i.hasOwnProperty(w)&&(o=i[w],this[w]=o?o(v):v[w]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?pu:c0,this.isPropagationStopped=c0,this}return g(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=pu)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=pu)},persist:function(){},isPersistent:pu}),l}var Tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vu=Dn(Tl),Po=g({},Tl,{view:0,detail:0}),NC=Dn(Po),vf,gf,Bo,gu=g({},Po,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yf,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Bo&&(Bo&&i.type==="mousemove"?(vf=i.screenX-Bo.screenX,gf=i.screenY-Bo.screenY):gf=vf=0,Bo=i),vf)},movementY:function(i){return"movementY"in i?i.movementY:gf}}),d0=Dn(gu),kC=g({},gu,{dataTransfer:0}),KC=Dn(kC),VC=g({},Po,{relatedTarget:0}),bf=Dn(VC),FC=g({},Tl,{animationName:0,elapsedTime:0,pseudoElement:0}),IC=Dn(FC),UC=g({},Tl,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),_C=Dn(UC),jC=g({},Tl,{data:0}),f0=Dn(jC),HC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YC={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"},qC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function GC(i){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(i):(i=qC[i])?!!l[i]:!1}function yf(){return GC}var XC=g({},Po,{key:function(i){if(i.key){var l=HC[i.key]||i.key;if(l!=="Unidentified")return l}return i.type==="keypress"?(i=mu(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?YC[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yf,charCode:function(i){return i.type==="keypress"?mu(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?mu(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),WC=Dn(XC),ZC=g({},gu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),h0=Dn(ZC),QC=g({},Po,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yf}),JC=Dn(QC),ew=g({},Tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),tw=Dn(ew),nw=g({},gu,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),iw=Dn(nw),rw=g({},Tl,{newState:0,oldState:0}),lw=Dn(rw),aw=[9,13,27,32],Sf=rr&&"CompositionEvent"in window,Oo=null;rr&&"documentMode"in document&&(Oo=document.documentMode);var ow=rr&&"TextEvent"in window&&!Oo,m0=rr&&(!Sf||Oo&&8<Oo&&11>=Oo),p0=" ",v0=!1;function g0(i,l){switch(i){case"keyup":return aw.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function b0(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var ma=!1;function sw(i,l){switch(i){case"compositionend":return b0(l);case"keypress":return l.which!==32?null:(v0=!0,p0);case"textInput":return i=l.data,i===p0&&v0?null:i;default:return null}}function uw(i,l){if(ma)return i==="compositionend"||!Sf&&g0(i,l)?(i=u0(),hu=pf=kr=null,ma=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return m0&&l.locale!=="ko"?null:l.data;default:return null}}var cw={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 y0(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l==="input"?!!cw[i.type]:l==="textarea"}function S0(i,l,o,c){fa?ha?ha.push(c):ha=[c]:fa=c,l=ac(l,"onChange"),0<l.length&&(o=new vu("onChange","change",null,o,c),i.push({event:o,listeners:l}))}var zo=null,Lo=null;function dw(i){n1(i,0)}function bu(i){var l=Fn(i);if(Ao(l))return i}function $0(i,l){if(i==="change")return l}var E0=!1;if(rr){var $f;if(rr){var Ef="oninput"in document;if(!Ef){var x0=document.createElement("div");x0.setAttribute("oninput","return;"),Ef=typeof x0.oninput=="function"}$f=Ef}else $f=!1;E0=$f&&(!document.documentMode||9<document.documentMode)}function T0(){zo&&(zo.detachEvent("onpropertychange",C0),Lo=zo=null)}function C0(i){if(i.propertyName==="value"&&bu(Lo)){var l=[];S0(l,Lo,i,ff(i)),s0(dw,l)}}function fw(i,l,o){i==="focusin"?(T0(),zo=l,Lo=o,zo.attachEvent("onpropertychange",C0)):i==="focusout"&&T0()}function hw(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return bu(Lo)}function mw(i,l){if(i==="click")return bu(l)}function pw(i,l){if(i==="input"||i==="change")return bu(l)}function vw(i,l){return i===l&&(i!==0||1/i===1/l)||i!==i&&l!==l}var In=typeof Object.is=="function"?Object.is:vw;function No(i,l){if(In(i,l))return!0;if(typeof i!="object"||i===null||typeof l!="object"||l===null)return!1;var o=Object.keys(i),c=Object.keys(l);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var m=o[c];if(!Gn.call(l,m)||!In(i[m],l[m]))return!1}return!0}function w0(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function D0(i,l){var o=w0(i);i=0;for(var c;o;){if(o.nodeType===3){if(c=i+o.textContent.length,i<=l&&c>=l)return{node:o,offset:l-i};i=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=w0(o)}}function A0(i,l){return i&&l?i===l?!0:i&&i.nodeType===3?!1:l&&l.nodeType===3?A0(i,l.parentNode):"contains"in i?i.contains(l):i.compareDocumentPosition?!!(i.compareDocumentPosition(l)&16):!1:!1}function M0(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var l=ua(i.document);l instanceof i.HTMLIFrameElement;){try{var o=typeof l.contentWindow.location.href=="string"}catch{o=!1}if(o)i=l.contentWindow;else break;l=ua(i.document)}return l}function xf(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}var gw=rr&&"documentMode"in document&&11>=document.documentMode,pa=null,Tf=null,ko=null,Cf=!1;function R0(i,l,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Cf||pa==null||pa!==ua(c)||(c=pa,"selectionStart"in c&&xf(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}),ko&&No(ko,c)||(ko=c,c=ac(Tf,"onSelect"),0<c.length&&(l=new vu("onSelect","select",null,l,o),i.push({event:l,listeners:c}),l.target=pa)))}function Cl(i,l){var o={};return o[i.toLowerCase()]=l.toLowerCase(),o["Webkit"+i]="webkit"+l,o["Moz"+i]="moz"+l,o}var va={animationend:Cl("Animation","AnimationEnd"),animationiteration:Cl("Animation","AnimationIteration"),animationstart:Cl("Animation","AnimationStart"),transitionrun:Cl("Transition","TransitionRun"),transitionstart:Cl("Transition","TransitionStart"),transitioncancel:Cl("Transition","TransitionCancel"),transitionend:Cl("Transition","TransitionEnd")},wf={},P0={};rr&&(P0=document.createElement("div").style,"AnimationEvent"in window||(delete va.animationend.animation,delete va.animationiteration.animation,delete va.animationstart.animation),"TransitionEvent"in window||delete va.transitionend.transition);function wl(i){if(wf[i])return wf[i];if(!va[i])return i;var l=va[i],o;for(o in l)if(l.hasOwnProperty(o)&&o in P0)return wf[i]=l[o];return i}var B0=wl("animationend"),O0=wl("animationiteration"),z0=wl("animationstart"),bw=wl("transitionrun"),yw=wl("transitionstart"),Sw=wl("transitioncancel"),L0=wl("transitionend"),N0=new Map,Df="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(" ");Df.push("scrollEnd");function Ti(i,l){N0.set(i,l),Kt(l,[i])}var yu=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},ei=[],ga=0,Af=0;function Su(){for(var i=ga,l=Af=ga=0;l<i;){var o=ei[l];ei[l++]=null;var c=ei[l];ei[l++]=null;var m=ei[l];ei[l++]=null;var v=ei[l];if(ei[l++]=null,c!==null&&m!==null){var $=c.pending;$===null?m.next=m:(m.next=$.next,$.next=m),c.pending=m}v!==0&&k0(o,m,v)}}function $u(i,l,o,c){ei[ga++]=i,ei[ga++]=l,ei[ga++]=o,ei[ga++]=c,Af|=c,i.lanes|=c,i=i.alternate,i!==null&&(i.lanes|=c)}function Mf(i,l,o,c){return $u(i,l,o,c),Eu(i)}function Dl(i,l){return $u(i,null,null,l),Eu(i)}function k0(i,l,o){i.lanes|=o;var c=i.alternate;c!==null&&(c.lanes|=o);for(var m=!1,v=i.return;v!==null;)v.childLanes|=o,c=v.alternate,c!==null&&(c.childLanes|=o),v.tag===22&&(i=v.stateNode,i===null||i._visibility&1||(m=!0)),i=v,v=v.return;return i.tag===3?(v=i.stateNode,m&&l!==null&&(m=31-ot(o),i=v.hiddenUpdates,c=i[m],c===null?i[m]=[l]:c.push(l),l.lane=o|536870912),v):null}function Eu(i){if(50<ls)throw ls=0,Kh=null,Error(r(185));for(var l=i.return;l!==null;)i=l,l=i.return;return i.tag===3?i.stateNode:null}var ba={};function $w(i,l,o,c){this.tag=i,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=l,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 Un(i,l,o,c){return new $w(i,l,o,c)}function Rf(i){return i=i.prototype,!(!i||!i.isReactComponent)}function lr(i,l){var o=i.alternate;return o===null?(o=Un(i.tag,l,i.key,i.mode),o.elementType=i.elementType,o.type=i.type,o.stateNode=i.stateNode,o.alternate=i,i.alternate=o):(o.pendingProps=l,o.type=i.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=i.flags&65011712,o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,l=i.dependencies,o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},o.sibling=i.sibling,o.index=i.index,o.ref=i.ref,o.refCleanup=i.refCleanup,o}function K0(i,l){i.flags&=65011714;var o=i.alternate;return o===null?(i.childLanes=0,i.lanes=l,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,l=o.dependencies,i.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),i}function xu(i,l,o,c,m,v){var $=0;if(c=i,typeof i=="function")Rf(i)&&($=1);else if(typeof i=="string")$=wD(i,o,se.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case V:return i=Un(31,o,l,m),i.elementType=V,i.lanes=v,i;case E:return Al(o.children,m,v,l);case T:$=8,m|=24;break;case C:return i=Un(12,o,l,m|2),i.elementType=C,i.lanes=v,i;case R:return i=Un(13,o,l,m),i.elementType=R,i.lanes=v,i;case z:return i=Un(19,o,l,m),i.elementType=z,i.lanes=v,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case D:$=10;break e;case M:$=9;break e;case O:$=11;break e;case I:$=14;break e;case A:$=16,c=null;break e}$=29,o=Error(r(130,i===null?"null":typeof i,"")),c=null}return l=Un($,o,l,m),l.elementType=i,l.type=c,l.lanes=v,l}function Al(i,l,o,c){return i=Un(7,i,c,l),i.lanes=o,i}function Pf(i,l,o){return i=Un(6,i,null,l),i.lanes=o,i}function V0(i){var l=Un(18,null,null,0);return l.stateNode=i,l}function Bf(i,l,o){return l=Un(4,i.children!==null?i.children:[],i.key,l),l.lanes=o,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}var F0=new WeakMap;function ti(i,l){if(typeof i=="object"&&i!==null){var o=F0.get(i);return o!==void 0?o:(l={value:i,source:l,stack:Nn(l)},F0.set(i,l),l)}return{value:i,source:l,stack:Nn(l)}}var ya=[],Sa=0,Tu=null,Ko=0,ni=[],ii=0,Kr=null,ki=1,Ki="";function ar(i,l){ya[Sa++]=Ko,ya[Sa++]=Tu,Tu=i,Ko=l}function I0(i,l,o){ni[ii++]=ki,ni[ii++]=Ki,ni[ii++]=Kr,Kr=i;var c=ki;i=Ki;var m=32-ot(c)-1;c&=~(1<<m),o+=1;var v=32-ot(l)+m;if(30<v){var $=m-m%5;v=(c&(1<<$)-1).toString(32),c>>=$,m-=$,ki=1<<32-ot(l)+m|o<<m|c,Ki=v+i}else ki=1<<v|o<<m|c,Ki=i}function Of(i){i.return!==null&&(ar(i,1),I0(i,1,0))}function zf(i){for(;i===Tu;)Tu=ya[--Sa],ya[Sa]=null,Ko=ya[--Sa],ya[Sa]=null;for(;i===Kr;)Kr=ni[--ii],ni[ii]=null,Ki=ni[--ii],ni[ii]=null,ki=ni[--ii],ni[ii]=null}function U0(i,l){ni[ii++]=ki,ni[ii++]=Ki,ni[ii++]=Kr,ki=l.id,Ki=l.overflow,Kr=i}var tn=null,Qe=null,Pe=!1,Vr=null,ri=!1,Lf=Error(r(519));function Fr(i){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vo(ti(l,i)),Lf}function _0(i){var l=i.stateNode,o=i.type,c=i.memoizedProps;switch(l[He]=i,l[lt]=c,o){case"dialog":De("cancel",l),De("close",l);break;case"iframe":case"object":case"embed":De("load",l);break;case"video":case"audio":for(o=0;o<os.length;o++)De(os[o],l);break;case"source":De("error",l);break;case"img":case"image":case"link":De("error",l),De("load",l);break;case"details":De("toggle",l);break;case"input":De("invalid",l),n0(l,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":De("invalid",l);break;case"textarea":De("invalid",l),r0(l,c.value,c.defaultValue,c.children)}o=c.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||l.textContent===""+o||c.suppressHydrationWarning===!0||a1(l.textContent,o)?(c.popover!=null&&(De("beforetoggle",l),De("toggle",l)),c.onScroll!=null&&De("scroll",l),c.onScrollEnd!=null&&De("scrollend",l),c.onClick!=null&&(l.onclick=ir),l=!0):l=!1,l||Fr(i,!0)}function j0(i){for(tn=i.return;tn;)switch(tn.tag){case 5:case 31:case 13:ri=!1;return;case 27:case 3:ri=!0;return;default:tn=tn.return}}function $a(i){if(i!==tn)return!1;if(!Pe)return j0(i),Pe=!0,!1;var l=i.tag,o;if((o=l!==3&&l!==27)&&((o=l===5)&&(o=i.type,o=!(o!=="form"&&o!=="button")||Jh(i.type,i.memoizedProps)),o=!o),o&&Qe&&Fr(i),j0(i),l===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Qe=p1(i)}else if(l===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Qe=p1(i)}else l===27?(l=Qe,el(i.type)?(i=rm,rm=null,Qe=i):Qe=l):Qe=tn?ai(i.stateNode.nextSibling):null;return!0}function Ml(){Qe=tn=null,Pe=!1}function Nf(){var i=Vr;return i!==null&&(Pn===null?Pn=i:Pn.push.apply(Pn,i),Vr=null),i}function Vo(i){Vr===null?Vr=[i]:Vr.push(i)}var kf=de(null),Rl=null,or=null;function Ir(i,l,o){le(kf,l._currentValue),l._currentValue=o}function sr(i){i._currentValue=kf.current,ae(kf)}function Kf(i,l,o){for(;i!==null;){var c=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,c!==null&&(c.childLanes|=l)):c!==null&&(c.childLanes&l)!==l&&(c.childLanes|=l),i===o)break;i=i.return}}function Vf(i,l,o,c){var m=i.child;for(m!==null&&(m.return=i);m!==null;){var v=m.dependencies;if(v!==null){var $=m.child;v=v.firstContext;e:for(;v!==null;){var w=v;v=m;for(var L=0;L<l.length;L++)if(w.context===l[L]){v.lanes|=o,w=v.alternate,w!==null&&(w.lanes|=o),Kf(v.return,o,i),c||($=null);break e}v=w.next}}else if(m.tag===18){if($=m.return,$===null)throw Error(r(341));$.lanes|=o,v=$.alternate,v!==null&&(v.lanes|=o),Kf($,o,i),$=null}else $=m.child;if($!==null)$.return=m;else for($=m;$!==null;){if($===i){$=null;break}if(m=$.sibling,m!==null){m.return=$.return,$=m;break}$=$.return}m=$}}function Ea(i,l,o,c){i=null;for(var m=l,v=!1;m!==null;){if(!v){if((m.flags&524288)!==0)v=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var $=m.alternate;if($===null)throw Error(r(387));if($=$.memoizedProps,$!==null){var w=m.type;In(m.pendingProps.value,$.value)||(i!==null?i.push(w):i=[w])}}else if(m===Lt.current){if($=m.alternate,$===null)throw Error(r(387));$.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(i!==null?i.push(fs):i=[fs])}m=m.return}i!==null&&Vf(l,i,o,c),l.flags|=262144}function Cu(i){for(i=i.firstContext;i!==null;){if(!In(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Pl(i){Rl=i,or=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function nn(i){return H0(Rl,i)}function wu(i,l){return Rl===null&&Pl(i),H0(i,l)}function H0(i,l){var o=l._currentValue;if(l={context:l,memoizedValue:o,next:null},or===null){if(i===null)throw Error(r(308));or=l,i.dependencies={lanes:0,firstContext:l},i.flags|=524288}else or=or.next=l;return o}var Ew=typeof AbortController<"u"?AbortController:function(){var i=[],l=this.signal={aborted:!1,addEventListener:function(o,c){i.push(c)}};this.abort=function(){l.aborted=!0,i.forEach(function(o){return o()})}},xw=e.unstable_scheduleCallback,Tw=e.unstable_NormalPriority,Mt={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ff(){return{controller:new Ew,data:new Map,refCount:0}}function Fo(i){i.refCount--,i.refCount===0&&xw(Tw,function(){i.controller.abort()})}var Io=null,If=0,xa=0,Ta=null;function Cw(i,l){if(Io===null){var o=Io=[];If=0,xa=jh(),Ta={status:"pending",value:void 0,then:function(c){o.push(c)}}}return If++,l.then(Y0,Y0),l}function Y0(){if(--If===0&&Io!==null){Ta!==null&&(Ta.status="fulfilled");var i=Io;Io=null,xa=0,Ta=null;for(var l=0;l<i.length;l++)(0,i[l])()}}function ww(i,l){var o=[],c={status:"pending",value:null,reason:null,then:function(m){o.push(m)}};return i.then(function(){c.status="fulfilled",c.value=l;for(var m=0;m<o.length;m++)(0,o[m])(l)},function(m){for(c.status="rejected",c.reason=m,m=0;m<o.length;m++)(0,o[m])(void 0)}),c}var q0=B.S;B.S=function(i,l){Ry=bt(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&Cw(i,l),q0!==null&&q0(i,l)};var Bl=de(null);function Uf(){var i=Bl.current;return i!==null?i:qe.pooledCache}function Du(i,l){l===null?le(Bl,Bl.current):le(Bl,l.pool)}function G0(){var i=Uf();return i===null?null:{parent:Mt._currentValue,pool:i}}var Ca=Error(r(460)),_f=Error(r(474)),Au=Error(r(542)),Mu={then:function(){}};function X0(i){return i=i.status,i==="fulfilled"||i==="rejected"}function W0(i,l,o){switch(o=i[o],o===void 0?i.push(l):o!==l&&(l.then(ir,ir),l=o),l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,Q0(i),i;default:if(typeof l.status=="string")l.then(ir,ir);else{if(i=qe,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=l,i.status="pending",i.then(function(c){if(l.status==="pending"){var m=l;m.status="fulfilled",m.value=c}},function(c){if(l.status==="pending"){var m=l;m.status="rejected",m.reason=c}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,Q0(i),i}throw zl=l,Ca}}function Ol(i){try{var l=i._init;return l(i._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(zl=o,Ca):o}}var zl=null;function Z0(){if(zl===null)throw Error(r(459));var i=zl;return zl=null,i}function Q0(i){if(i===Ca||i===Au)throw Error(r(483))}var wa=null,Uo=0;function Ru(i){var l=Uo;return Uo+=1,wa===null&&(wa=[]),W0(wa,i,l)}function _o(i,l){l=l.props.ref,i.ref=l!==void 0?l:null}function Pu(i,l){throw l.$$typeof===y?Error(r(525)):(i=Object.prototype.toString.call(l),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":i)))}function J0(i){function l(U,k){if(i){var j=U.deletions;j===null?(U.deletions=[k],U.flags|=16):j.push(k)}}function o(U,k){if(!i)return null;for(;k!==null;)l(U,k),k=k.sibling;return null}function c(U){for(var k=new Map;U!==null;)U.key!==null?k.set(U.key,U):k.set(U.index,U),U=U.sibling;return k}function m(U,k){return U=lr(U,k),U.index=0,U.sibling=null,U}function v(U,k,j){return U.index=j,i?(j=U.alternate,j!==null?(j=j.index,j<k?(U.flags|=67108866,k):j):(U.flags|=67108866,k)):(U.flags|=1048576,k)}function $(U){return i&&U.alternate===null&&(U.flags|=67108866),U}function w(U,k,j,ee){return k===null||k.tag!==6?(k=Pf(j,U.mode,ee),k.return=U,k):(k=m(k,j),k.return=U,k)}function L(U,k,j,ee){var he=j.type;return he===E?Q(U,k,j.props.children,ee,j.key):k!==null&&(k.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===A&&Ol(he)===k.type)?(k=m(k,j.props),_o(k,j),k.return=U,k):(k=xu(j.type,j.key,j.props,null,U.mode,ee),_o(k,j),k.return=U,k)}function H(U,k,j,ee){return k===null||k.tag!==4||k.stateNode.containerInfo!==j.containerInfo||k.stateNode.implementation!==j.implementation?(k=Bf(j,U.mode,ee),k.return=U,k):(k=m(k,j.children||[]),k.return=U,k)}function Q(U,k,j,ee,he){return k===null||k.tag!==7?(k=Al(j,U.mode,ee,he),k.return=U,k):(k=m(k,j),k.return=U,k)}function te(U,k,j){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=Pf(""+k,U.mode,j),k.return=U,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case S:return j=xu(k.type,k.key,k.props,null,U.mode,j),_o(j,k),j.return=U,j;case x:return k=Bf(k,U.mode,j),k.return=U,k;case A:return k=Ol(k),te(U,k,j)}if(Y(k)||Z(k))return k=Al(k,U.mode,j,null),k.return=U,k;if(typeof k.then=="function")return te(U,Ru(k),j);if(k.$$typeof===D)return te(U,wu(U,k),j);Pu(U,k)}return null}function q(U,k,j,ee){var he=k!==null?k.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return he!==null?null:w(U,k,""+j,ee);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case S:return j.key===he?L(U,k,j,ee):null;case x:return j.key===he?H(U,k,j,ee):null;case A:return j=Ol(j),q(U,k,j,ee)}if(Y(j)||Z(j))return he!==null?null:Q(U,k,j,ee,null);if(typeof j.then=="function")return q(U,k,Ru(j),ee);if(j.$$typeof===D)return q(U,k,wu(U,j),ee);Pu(U,j)}return null}function W(U,k,j,ee,he){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return U=U.get(j)||null,w(k,U,""+ee,he);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case S:return U=U.get(ee.key===null?j:ee.key)||null,L(k,U,ee,he);case x:return U=U.get(ee.key===null?j:ee.key)||null,H(k,U,ee,he);case A:return ee=Ol(ee),W(U,k,j,ee,he)}if(Y(ee)||Z(ee))return U=U.get(j)||null,Q(k,U,ee,he,null);if(typeof ee.then=="function")return W(U,k,j,Ru(ee),he);if(ee.$$typeof===D)return W(U,k,j,wu(k,ee),he);Pu(k,ee)}return null}function oe(U,k,j,ee){for(var he=null,Le=null,ce=k,Ee=k=0,Me=null;ce!==null&&Ee<j.length;Ee++){ce.index>Ee?(Me=ce,ce=null):Me=ce.sibling;var Ne=q(U,ce,j[Ee],ee);if(Ne===null){ce===null&&(ce=Me);break}i&&ce&&Ne.alternate===null&&l(U,ce),k=v(Ne,k,Ee),Le===null?he=Ne:Le.sibling=Ne,Le=Ne,ce=Me}if(Ee===j.length)return o(U,ce),Pe&&ar(U,Ee),he;if(ce===null){for(;Ee<j.length;Ee++)ce=te(U,j[Ee],ee),ce!==null&&(k=v(ce,k,Ee),Le===null?he=ce:Le.sibling=ce,Le=ce);return Pe&&ar(U,Ee),he}for(ce=c(ce);Ee<j.length;Ee++)Me=W(ce,U,Ee,j[Ee],ee),Me!==null&&(i&&Me.alternate!==null&&ce.delete(Me.key===null?Ee:Me.key),k=v(Me,k,Ee),Le===null?he=Me:Le.sibling=Me,Le=Me);return i&&ce.forEach(function(ll){return l(U,ll)}),Pe&&ar(U,Ee),he}function me(U,k,j,ee){if(j==null)throw Error(r(151));for(var he=null,Le=null,ce=k,Ee=k=0,Me=null,Ne=j.next();ce!==null&&!Ne.done;Ee++,Ne=j.next()){ce.index>Ee?(Me=ce,ce=null):Me=ce.sibling;var ll=q(U,ce,Ne.value,ee);if(ll===null){ce===null&&(ce=Me);break}i&&ce&&ll.alternate===null&&l(U,ce),k=v(ll,k,Ee),Le===null?he=ll:Le.sibling=ll,Le=ll,ce=Me}if(Ne.done)return o(U,ce),Pe&&ar(U,Ee),he;if(ce===null){for(;!Ne.done;Ee++,Ne=j.next())Ne=te(U,Ne.value,ee),Ne!==null&&(k=v(Ne,k,Ee),Le===null?he=Ne:Le.sibling=Ne,Le=Ne);return Pe&&ar(U,Ee),he}for(ce=c(ce);!Ne.done;Ee++,Ne=j.next())Ne=W(ce,U,Ee,Ne.value,ee),Ne!==null&&(i&&Ne.alternate!==null&&ce.delete(Ne.key===null?Ee:Ne.key),k=v(Ne,k,Ee),Le===null?he=Ne:Le.sibling=Ne,Le=Ne);return i&&ce.forEach(function(kD){return l(U,kD)}),Pe&&ar(U,Ee),he}function je(U,k,j,ee){if(typeof j=="object"&&j!==null&&j.type===E&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case S:e:{for(var he=j.key;k!==null;){if(k.key===he){if(he=j.type,he===E){if(k.tag===7){o(U,k.sibling),ee=m(k,j.props.children),ee.return=U,U=ee;break e}}else if(k.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===A&&Ol(he)===k.type){o(U,k.sibling),ee=m(k,j.props),_o(ee,j),ee.return=U,U=ee;break e}o(U,k);break}else l(U,k);k=k.sibling}j.type===E?(ee=Al(j.props.children,U.mode,ee,j.key),ee.return=U,U=ee):(ee=xu(j.type,j.key,j.props,null,U.mode,ee),_o(ee,j),ee.return=U,U=ee)}return $(U);case x:e:{for(he=j.key;k!==null;){if(k.key===he)if(k.tag===4&&k.stateNode.containerInfo===j.containerInfo&&k.stateNode.implementation===j.implementation){o(U,k.sibling),ee=m(k,j.children||[]),ee.return=U,U=ee;break e}else{o(U,k);break}else l(U,k);k=k.sibling}ee=Bf(j,U.mode,ee),ee.return=U,U=ee}return $(U);case A:return j=Ol(j),je(U,k,j,ee)}if(Y(j))return oe(U,k,j,ee);if(Z(j)){if(he=Z(j),typeof he!="function")throw Error(r(150));return j=he.call(j),me(U,k,j,ee)}if(typeof j.then=="function")return je(U,k,Ru(j),ee);if(j.$$typeof===D)return je(U,k,wu(U,j),ee);Pu(U,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,k!==null&&k.tag===6?(o(U,k.sibling),ee=m(k,j),ee.return=U,U=ee):(o(U,k),ee=Pf(j,U.mode,ee),ee.return=U,U=ee),$(U)):o(U,k)}return function(U,k,j,ee){try{Uo=0;var he=je(U,k,j,ee);return wa=null,he}catch(ce){if(ce===Ca||ce===Au)throw ce;var Le=Un(29,ce,null,U.mode);return Le.lanes=ee,Le.return=U,Le}finally{}}}var Ll=J0(!0),eb=J0(!1),Ur=!1;function jf(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hf(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function _r(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function jr(i,l,o){var c=i.updateQueue;if(c===null)return null;if(c=c.shared,(ke&2)!==0){var m=c.pending;return m===null?l.next=l:(l.next=m.next,m.next=l),c.pending=l,l=Eu(i),k0(i,null,o),l}return $u(i,c,l,o),Eu(i)}function jo(i,l,o){if(l=l.updateQueue,l!==null&&(l=l.shared,(o&4194048)!==0)){var c=l.lanes;c&=i.pendingLanes,o|=c,l.lanes=o,rt(i,o)}}function Yf(i,l){var o=i.updateQueue,c=i.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var m=null,v=null;if(o=o.firstBaseUpdate,o!==null){do{var $={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};v===null?m=v=$:v=v.next=$,o=o.next}while(o!==null);v===null?m=v=l:v=v.next=l}else m=v=l;o={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:v,shared:c.shared,callbacks:c.callbacks},i.updateQueue=o;return}i=o.lastBaseUpdate,i===null?o.firstBaseUpdate=l:i.next=l,o.lastBaseUpdate=l}var qf=!1;function Ho(){if(qf){var i=Ta;if(i!==null)throw i}}function Yo(i,l,o,c){qf=!1;var m=i.updateQueue;Ur=!1;var v=m.firstBaseUpdate,$=m.lastBaseUpdate,w=m.shared.pending;if(w!==null){m.shared.pending=null;var L=w,H=L.next;L.next=null,$===null?v=H:$.next=H,$=L;var Q=i.alternate;Q!==null&&(Q=Q.updateQueue,w=Q.lastBaseUpdate,w!==$&&(w===null?Q.firstBaseUpdate=H:w.next=H,Q.lastBaseUpdate=L))}if(v!==null){var te=m.baseState;$=0,Q=H=L=null,w=v;do{var q=w.lane&-536870913,W=q!==w.lane;if(W?(Ae&q)===q:(c&q)===q){q!==0&&q===xa&&(qf=!0),Q!==null&&(Q=Q.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var oe=i,me=w;q=l;var je=o;switch(me.tag){case 1:if(oe=me.payload,typeof oe=="function"){te=oe.call(je,te,q);break e}te=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=me.payload,q=typeof oe=="function"?oe.call(je,te,q):oe,q==null)break e;te=g({},te,q);break e;case 2:Ur=!0}}q=w.callback,q!==null&&(i.flags|=64,W&&(i.flags|=8192),W=m.callbacks,W===null?m.callbacks=[q]:W.push(q))}else W={lane:q,tag:w.tag,payload:w.payload,callback:w.callback,next:null},Q===null?(H=Q=W,L=te):Q=Q.next=W,$|=q;if(w=w.next,w===null){if(w=m.shared.pending,w===null)break;W=w,w=W.next,W.next=null,m.lastBaseUpdate=W,m.shared.pending=null}}while(!0);Q===null&&(L=te),m.baseState=L,m.firstBaseUpdate=H,m.lastBaseUpdate=Q,v===null&&(m.shared.lanes=0),Xr|=$,i.lanes=$,i.memoizedState=te}}function tb(i,l){if(typeof i!="function")throw Error(r(191,i));i.call(l)}function nb(i,l){var o=i.callbacks;if(o!==null)for(i.callbacks=null,i=0;i<o.length;i++)tb(o[i],l)}var Da=de(null),Bu=de(0);function ib(i,l){i=gr,le(Bu,i),le(Da,l),gr=i|l.baseLanes}function Gf(){le(Bu,gr),le(Da,Da.current)}function Xf(){gr=Bu.current,ae(Da),ae(Bu)}var _n=de(null),li=null;function Hr(i){var l=i.alternate;le($t,$t.current&1),le(_n,i),li===null&&(l===null||Da.current!==null||l.memoizedState!==null)&&(li=i)}function Wf(i){le($t,$t.current),le(_n,i),li===null&&(li=i)}function rb(i){i.tag===22?(le($t,$t.current),le(_n,i),li===null&&(li=i)):Yr()}function Yr(){le($t,$t.current),le(_n,_n.current)}function jn(i){ae(_n),li===i&&(li=null),ae($t)}var $t=de(0);function Ou(i){for(var l=i;l!==null;){if(l.tag===13){var o=l.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||nm(o)||im(o)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var ur=0,Se=null,Ue=null,Rt=null,zu=!1,Aa=!1,Nl=!1,Lu=0,qo=0,Ma=null,Dw=0;function ht(){throw Error(r(321))}function Zf(i,l){if(l===null)return!1;for(var o=0;o<l.length&&o<i.length;o++)if(!In(i[o],l[o]))return!1;return!0}function Qf(i,l,o,c,m,v){return ur=v,Se=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,B.H=i===null||i.memoizedState===null?Ib:hh,Nl=!1,v=o(c,m),Nl=!1,Aa&&(v=ab(l,o,c,m)),lb(i),v}function lb(i){B.H=Wo;var l=Ue!==null&&Ue.next!==null;if(ur=0,Rt=Ue=Se=null,zu=!1,qo=0,Ma=null,l)throw Error(r(300));i===null||Pt||(i=i.dependencies,i!==null&&Cu(i)&&(Pt=!0))}function ab(i,l,o,c){Se=i;var m=0;do{if(Aa&&(Ma=null),qo=0,Aa=!1,25<=m)throw Error(r(301));if(m+=1,Rt=Ue=null,i.updateQueue!=null){var v=i.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}B.H=Ub,v=l(o,c)}while(Aa);return v}function Aw(){var i=B.H,l=i.useState()[0];return l=typeof l.then=="function"?Go(l):l,i=i.useState()[0],(Ue!==null?Ue.memoizedState:null)!==i&&(Se.flags|=1024),l}function Jf(){var i=Lu!==0;return Lu=0,i}function eh(i,l,o){l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~o}function th(i){if(zu){for(i=i.memoizedState;i!==null;){var l=i.queue;l!==null&&(l.pending=null),i=i.next}zu=!1}ur=0,Rt=Ue=Se=null,Aa=!1,qo=Lu=0,Ma=null}function Sn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?Se.memoizedState=Rt=i:Rt=Rt.next=i,Rt}function Et(){if(Ue===null){var i=Se.alternate;i=i!==null?i.memoizedState:null}else i=Ue.next;var l=Rt===null?Se.memoizedState:Rt.next;if(l!==null)Rt=l,Ue=i;else{if(i===null)throw Se.alternate===null?Error(r(467)):Error(r(310));Ue=i,i={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},Rt===null?Se.memoizedState=Rt=i:Rt=Rt.next=i}return Rt}function Nu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Go(i){var l=qo;return qo+=1,Ma===null&&(Ma=[]),i=W0(Ma,i,l),l=Se,(Rt===null?l.memoizedState:Rt.next)===null&&(l=l.alternate,B.H=l===null||l.memoizedState===null?Ib:hh),i}function ku(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Go(i);if(i.$$typeof===D)return nn(i)}throw Error(r(438,String(i)))}function nh(i){var l=null,o=Se.updateQueue;if(o!==null&&(l=o.memoCache),l==null){var c=Se.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(l={data:c.data.map(function(m){return m.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),o===null&&(o=Nu(),Se.updateQueue=o),o.memoCache=l,o=l.data[l.index],o===void 0)for(o=l.data[l.index]=Array(i),c=0;c<i;c++)o[c]=F;return l.index++,o}function cr(i,l){return typeof l=="function"?l(i):l}function Ku(i){var l=Et();return ih(l,Ue,i)}function ih(i,l,o){var c=i.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=o;var m=i.baseQueue,v=c.pending;if(v!==null){if(m!==null){var $=m.next;m.next=v.next,v.next=$}l.baseQueue=m=v,c.pending=null}if(v=i.baseState,m===null)i.memoizedState=v;else{l=m.next;var w=$=null,L=null,H=l,Q=!1;do{var te=H.lane&-536870913;if(te!==H.lane?(Ae&te)===te:(ur&te)===te){var q=H.revertLane;if(q===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),te===xa&&(Q=!0);else if((ur&q)===q){H=H.next,q===xa&&(Q=!0);continue}else te={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},L===null?(w=L=te,$=v):L=L.next=te,Se.lanes|=q,Xr|=q;te=H.action,Nl&&o(v,te),v=H.hasEagerState?H.eagerState:o(v,te)}else q={lane:te,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},L===null?(w=L=q,$=v):L=L.next=q,Se.lanes|=te,Xr|=te;H=H.next}while(H!==null&&H!==l);if(L===null?$=v:L.next=w,!In(v,i.memoizedState)&&(Pt=!0,Q&&(o=Ta,o!==null)))throw o;i.memoizedState=v,i.baseState=$,i.baseQueue=L,c.lastRenderedState=v}return m===null&&(c.lanes=0),[i.memoizedState,c.dispatch]}function rh(i){var l=Et(),o=l.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=i;var c=o.dispatch,m=o.pending,v=l.memoizedState;if(m!==null){o.pending=null;var $=m=m.next;do v=i(v,$.action),$=$.next;while($!==m);In(v,l.memoizedState)||(Pt=!0),l.memoizedState=v,l.baseQueue===null&&(l.baseState=v),o.lastRenderedState=v}return[v,c]}function ob(i,l,o){var c=Se,m=Et(),v=Pe;if(v){if(o===void 0)throw Error(r(407));o=o()}else o=l();var $=!In((Ue||m).memoizedState,o);if($&&(m.memoizedState=o,Pt=!0),m=m.queue,oh(cb.bind(null,c,m,i),[i]),m.getSnapshot!==l||$||Rt!==null&&Rt.memoizedState.tag&1){if(c.flags|=2048,Ra(9,{destroy:void 0},ub.bind(null,c,m,o,l),null),qe===null)throw Error(r(349));v||(ur&127)!==0||sb(c,l,o)}return o}function sb(i,l,o){i.flags|=16384,i={getSnapshot:l,value:o},l=Se.updateQueue,l===null?(l=Nu(),Se.updateQueue=l,l.stores=[i]):(o=l.stores,o===null?l.stores=[i]:o.push(i))}function ub(i,l,o,c){l.value=o,l.getSnapshot=c,db(l)&&fb(i)}function cb(i,l,o){return o(function(){db(l)&&fb(i)})}function db(i){var l=i.getSnapshot;i=i.value;try{var o=l();return!In(i,o)}catch{return!0}}function fb(i){var l=Dl(i,2);l!==null&&Bn(l,i,2)}function lh(i){var l=Sn();if(typeof i=="function"){var o=i;if(i=o(),Nl){Nt(!0);try{o()}finally{Nt(!1)}}}return l.memoizedState=l.baseState=i,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:i},l}function hb(i,l,o,c){return i.baseState=o,ih(i,Ue,typeof c=="function"?c:cr)}function Mw(i,l,o,c,m){if(Iu(i))throw Error(r(485));if(i=l.action,i!==null){var v={payload:m,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function($){v.listeners.push($)}};B.T!==null?o(!0):v.isTransition=!1,c(v),o=l.pending,o===null?(v.next=l.pending=v,mb(l,v)):(v.next=o.next,l.pending=o.next=v)}}function mb(i,l){var o=l.action,c=l.payload,m=i.state;if(l.isTransition){var v=B.T,$={};B.T=$;try{var w=o(m,c),L=B.S;L!==null&&L($,w),pb(i,l,w)}catch(H){ah(i,l,H)}finally{v!==null&&$.types!==null&&(v.types=$.types),B.T=v}}else try{v=o(m,c),pb(i,l,v)}catch(H){ah(i,l,H)}}function pb(i,l,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){vb(i,l,c)},function(c){return ah(i,l,c)}):vb(i,l,o)}function vb(i,l,o){l.status="fulfilled",l.value=o,gb(l),i.state=o,l=i.pending,l!==null&&(o=l.next,o===l?i.pending=null:(o=o.next,l.next=o,mb(i,o)))}function ah(i,l,o){var c=i.pending;if(i.pending=null,c!==null){c=c.next;do l.status="rejected",l.reason=o,gb(l),l=l.next;while(l!==c)}i.action=null}function gb(i){i=i.listeners;for(var l=0;l<i.length;l++)(0,i[l])()}function bb(i,l){return l}function yb(i,l){if(Pe){var o=qe.formState;if(o!==null){e:{var c=Se;if(Pe){if(Qe){t:{for(var m=Qe,v=ri;m.nodeType!==8;){if(!v){m=null;break t}if(m=ai(m.nextSibling),m===null){m=null;break t}}v=m.data,m=v==="F!"||v==="F"?m:null}if(m){Qe=ai(m.nextSibling),c=m.data==="F!";break e}}Fr(c)}c=!1}c&&(l=o[0])}}return o=Sn(),o.memoizedState=o.baseState=l,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bb,lastRenderedState:l},o.queue=c,o=Kb.bind(null,Se,c),c.dispatch=o,c=lh(!1),v=fh.bind(null,Se,!1,c.queue),c=Sn(),m={state:l,dispatch:null,action:i,pending:null},c.queue=m,o=Mw.bind(null,Se,m,v,o),m.dispatch=o,c.memoizedState=i,[l,o,!1]}function Sb(i){var l=Et();return $b(l,Ue,i)}function $b(i,l,o){if(l=ih(i,l,bb)[0],i=Ku(cr)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var c=Go(l)}catch($){throw $===Ca?Au:$}else c=l;l=Et();var m=l.queue,v=m.dispatch;return o!==l.memoizedState&&(Se.flags|=2048,Ra(9,{destroy:void 0},Rw.bind(null,m,o),null)),[c,v,i]}function Rw(i,l){i.action=l}function Eb(i){var l=Et(),o=Ue;if(o!==null)return $b(l,o,i);Et(),l=l.memoizedState,o=Et();var c=o.queue.dispatch;return o.memoizedState=i,[l,c,!1]}function Ra(i,l,o,c){return i={tag:i,create:o,deps:c,inst:l,next:null},l=Se.updateQueue,l===null&&(l=Nu(),Se.updateQueue=l),o=l.lastEffect,o===null?l.lastEffect=i.next=i:(c=o.next,o.next=i,i.next=c,l.lastEffect=i),i}function xb(){return Et().memoizedState}function Vu(i,l,o,c){var m=Sn();Se.flags|=i,m.memoizedState=Ra(1|l,{destroy:void 0},o,c===void 0?null:c)}function Fu(i,l,o,c){var m=Et();c=c===void 0?null:c;var v=m.memoizedState.inst;Ue!==null&&c!==null&&Zf(c,Ue.memoizedState.deps)?m.memoizedState=Ra(l,v,o,c):(Se.flags|=i,m.memoizedState=Ra(1|l,v,o,c))}function Tb(i,l){Vu(8390656,8,i,l)}function oh(i,l){Fu(2048,8,i,l)}function Pw(i){Se.flags|=4;var l=Se.updateQueue;if(l===null)l=Nu(),Se.updateQueue=l,l.events=[i];else{var o=l.events;o===null?l.events=[i]:o.push(i)}}function Cb(i){var l=Et().memoizedState;return Pw({ref:l,nextImpl:i}),function(){if((ke&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function wb(i,l){return Fu(4,2,i,l)}function Db(i,l){return Fu(4,4,i,l)}function Ab(i,l){if(typeof l=="function"){i=i();var o=l(i);return function(){typeof o=="function"?o():l(null)}}if(l!=null)return i=i(),l.current=i,function(){l.current=null}}function Mb(i,l,o){o=o!=null?o.concat([i]):null,Fu(4,4,Ab.bind(null,l,i),o)}function sh(){}function Rb(i,l){var o=Et();l=l===void 0?null:l;var c=o.memoizedState;return l!==null&&Zf(l,c[1])?c[0]:(o.memoizedState=[i,l],i)}function Pb(i,l){var o=Et();l=l===void 0?null:l;var c=o.memoizedState;if(l!==null&&Zf(l,c[1]))return c[0];if(c=i(),Nl){Nt(!0);try{i()}finally{Nt(!1)}}return o.memoizedState=[c,l],c}function uh(i,l,o){return o===void 0||(ur&1073741824)!==0&&(Ae&261930)===0?i.memoizedState=l:(i.memoizedState=o,i=By(),Se.lanes|=i,Xr|=i,o)}function Bb(i,l,o,c){return In(o,l)?o:Da.current!==null?(i=uh(i,o,c),In(i,l)||(Pt=!0),i):(ur&42)===0||(ur&1073741824)!==0&&(Ae&261930)===0?(Pt=!0,i.memoizedState=o):(i=By(),Se.lanes|=i,Xr|=i,l)}function Ob(i,l,o,c,m){var v=N.p;N.p=v!==0&&8>v?v:8;var $=B.T,w={};B.T=w,fh(i,!1,l,o);try{var L=m(),H=B.S;if(H!==null&&H(w,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var Q=ww(L,c);Xo(i,l,Q,qn(i))}else Xo(i,l,c,qn(i))}catch(te){Xo(i,l,{then:function(){},status:"rejected",reason:te},qn())}finally{N.p=v,$!==null&&w.types!==null&&($.types=w.types),B.T=$}}function Bw(){}function ch(i,l,o,c){if(i.tag!==5)throw Error(r(476));var m=zb(i).queue;Ob(i,m,l,G,o===null?Bw:function(){return Lb(i),o(c)})}function zb(i){var l=i.memoizedState;if(l!==null)return l;l={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:G},next:null};var o={};return l.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:o},next:null},i.memoizedState=l,i=i.alternate,i!==null&&(i.memoizedState=l),l}function Lb(i){var l=zb(i);l.next===null&&(l=i.alternate.memoizedState),Xo(i,l.next.queue,{},qn())}function dh(){return nn(fs)}function Nb(){return Et().memoizedState}function kb(){return Et().memoizedState}function Ow(i){for(var l=i.return;l!==null;){switch(l.tag){case 24:case 3:var o=qn();i=_r(o);var c=jr(l,i,o);c!==null&&(Bn(c,l,o),jo(c,l,o)),l={cache:Ff()},i.payload=l;return}l=l.return}}function zw(i,l,o){var c=qn();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Iu(i)?Vb(l,o):(o=Mf(i,l,o,c),o!==null&&(Bn(o,i,c),Fb(o,l,c)))}function Kb(i,l,o){var c=qn();Xo(i,l,o,c)}function Xo(i,l,o,c){var m={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Iu(i))Vb(l,m);else{var v=i.alternate;if(i.lanes===0&&(v===null||v.lanes===0)&&(v=l.lastRenderedReducer,v!==null))try{var $=l.lastRenderedState,w=v($,o);if(m.hasEagerState=!0,m.eagerState=w,In(w,$))return $u(i,l,m,0),qe===null&&Su(),!1}catch{}finally{}if(o=Mf(i,l,m,c),o!==null)return Bn(o,i,c),Fb(o,l,c),!0}return!1}function fh(i,l,o,c){if(c={lane:2,revertLane:jh(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Iu(i)){if(l)throw Error(r(479))}else l=Mf(i,o,c,2),l!==null&&Bn(l,i,2)}function Iu(i){var l=i.alternate;return i===Se||l!==null&&l===Se}function Vb(i,l){Aa=zu=!0;var o=i.pending;o===null?l.next=l:(l.next=o.next,o.next=l),i.pending=l}function Fb(i,l,o){if((o&4194048)!==0){var c=l.lanes;c&=i.pendingLanes,o|=c,l.lanes=o,rt(i,o)}}var Wo={readContext:nn,use:ku,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useLayoutEffect:ht,useInsertionEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useSyncExternalStore:ht,useId:ht,useHostTransitionStatus:ht,useFormState:ht,useActionState:ht,useOptimistic:ht,useMemoCache:ht,useCacheRefresh:ht};Wo.useEffectEvent=ht;var Ib={readContext:nn,use:ku,useCallback:function(i,l){return Sn().memoizedState=[i,l===void 0?null:l],i},useContext:nn,useEffect:Tb,useImperativeHandle:function(i,l,o){o=o!=null?o.concat([i]):null,Vu(4194308,4,Ab.bind(null,l,i),o)},useLayoutEffect:function(i,l){return Vu(4194308,4,i,l)},useInsertionEffect:function(i,l){Vu(4,2,i,l)},useMemo:function(i,l){var o=Sn();l=l===void 0?null:l;var c=i();if(Nl){Nt(!0);try{i()}finally{Nt(!1)}}return o.memoizedState=[c,l],c},useReducer:function(i,l,o){var c=Sn();if(o!==void 0){var m=o(l);if(Nl){Nt(!0);try{o(l)}finally{Nt(!1)}}}else m=l;return c.memoizedState=c.baseState=m,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:m},c.queue=i,i=i.dispatch=zw.bind(null,Se,i),[c.memoizedState,i]},useRef:function(i){var l=Sn();return i={current:i},l.memoizedState=i},useState:function(i){i=lh(i);var l=i.queue,o=Kb.bind(null,Se,l);return l.dispatch=o,[i.memoizedState,o]},useDebugValue:sh,useDeferredValue:function(i,l){var o=Sn();return uh(o,i,l)},useTransition:function(){var i=lh(!1);return i=Ob.bind(null,Se,i.queue,!0,!1),Sn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,l,o){var c=Se,m=Sn();if(Pe){if(o===void 0)throw Error(r(407));o=o()}else{if(o=l(),qe===null)throw Error(r(349));(Ae&127)!==0||sb(c,l,o)}m.memoizedState=o;var v={value:o,getSnapshot:l};return m.queue=v,Tb(cb.bind(null,c,v,i),[i]),c.flags|=2048,Ra(9,{destroy:void 0},ub.bind(null,c,v,o,l),null),o},useId:function(){var i=Sn(),l=qe.identifierPrefix;if(Pe){var o=Ki,c=ki;o=(c&~(1<<32-ot(c)-1)).toString(32)+o,l="_"+l+"R_"+o,o=Lu++,0<o&&(l+="H"+o.toString(32)),l+="_"}else o=Dw++,l="_"+l+"r_"+o.toString(32)+"_";return i.memoizedState=l},useHostTransitionStatus:dh,useFormState:yb,useActionState:yb,useOptimistic:function(i){var l=Sn();l.memoizedState=l.baseState=i;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=o,l=fh.bind(null,Se,!0,o),o.dispatch=l,[i,l]},useMemoCache:nh,useCacheRefresh:function(){return Sn().memoizedState=Ow.bind(null,Se)},useEffectEvent:function(i){var l=Sn(),o={impl:i};return l.memoizedState=o,function(){if((ke&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}},hh={readContext:nn,use:ku,useCallback:Rb,useContext:nn,useEffect:oh,useImperativeHandle:Mb,useInsertionEffect:wb,useLayoutEffect:Db,useMemo:Pb,useReducer:Ku,useRef:xb,useState:function(){return Ku(cr)},useDebugValue:sh,useDeferredValue:function(i,l){var o=Et();return Bb(o,Ue.memoizedState,i,l)},useTransition:function(){var i=Ku(cr)[0],l=Et().memoizedState;return[typeof i=="boolean"?i:Go(i),l]},useSyncExternalStore:ob,useId:Nb,useHostTransitionStatus:dh,useFormState:Sb,useActionState:Sb,useOptimistic:function(i,l){var o=Et();return hb(o,Ue,i,l)},useMemoCache:nh,useCacheRefresh:kb};hh.useEffectEvent=Cb;var Ub={readContext:nn,use:ku,useCallback:Rb,useContext:nn,useEffect:oh,useImperativeHandle:Mb,useInsertionEffect:wb,useLayoutEffect:Db,useMemo:Pb,useReducer:rh,useRef:xb,useState:function(){return rh(cr)},useDebugValue:sh,useDeferredValue:function(i,l){var o=Et();return Ue===null?uh(o,i,l):Bb(o,Ue.memoizedState,i,l)},useTransition:function(){var i=rh(cr)[0],l=Et().memoizedState;return[typeof i=="boolean"?i:Go(i),l]},useSyncExternalStore:ob,useId:Nb,useHostTransitionStatus:dh,useFormState:Eb,useActionState:Eb,useOptimistic:function(i,l){var o=Et();return Ue!==null?hb(o,Ue,i,l):(o.baseState=i,[i,o.queue.dispatch])},useMemoCache:nh,useCacheRefresh:kb};Ub.useEffectEvent=Cb;function mh(i,l,o,c){l=i.memoizedState,o=o(c,l),o=o==null?l:g({},l,o),i.memoizedState=o,i.lanes===0&&(i.updateQueue.baseState=o)}var ph={enqueueSetState:function(i,l,o){i=i._reactInternals;var c=qn(),m=_r(c);m.payload=l,o!=null&&(m.callback=o),l=jr(i,m,c),l!==null&&(Bn(l,i,c),jo(l,i,c))},enqueueReplaceState:function(i,l,o){i=i._reactInternals;var c=qn(),m=_r(c);m.tag=1,m.payload=l,o!=null&&(m.callback=o),l=jr(i,m,c),l!==null&&(Bn(l,i,c),jo(l,i,c))},enqueueForceUpdate:function(i,l){i=i._reactInternals;var o=qn(),c=_r(o);c.tag=2,l!=null&&(c.callback=l),l=jr(i,c,o),l!==null&&(Bn(l,i,o),jo(l,i,o))}};function _b(i,l,o,c,m,v,$){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(c,v,$):l.prototype&&l.prototype.isPureReactComponent?!No(o,c)||!No(m,v):!0}function jb(i,l,o,c){i=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(o,c),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(o,c),l.state!==i&&ph.enqueueReplaceState(l,l.state,null)}function kl(i,l){var o=l;if("ref"in l){o={};for(var c in l)c!=="ref"&&(o[c]=l[c])}if(i=i.defaultProps){o===l&&(o=g({},o));for(var m in i)o[m]===void 0&&(o[m]=i[m])}return o}function Hb(i){yu(i)}function Yb(i){console.error(i)}function qb(i){yu(i)}function Uu(i,l){try{var o=i.onUncaughtError;o(l.value,{componentStack:l.stack})}catch(c){setTimeout(function(){throw c})}}function Gb(i,l,o){try{var c=i.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function vh(i,l,o){return o=_r(o),o.tag=3,o.payload={element:null},o.callback=function(){Uu(i,l)},o}function Xb(i){return i=_r(i),i.tag=3,i}function Wb(i,l,o,c){var m=o.type.getDerivedStateFromError;if(typeof m=="function"){var v=c.value;i.payload=function(){return m(v)},i.callback=function(){Gb(l,o,c)}}var $=o.stateNode;$!==null&&typeof $.componentDidCatch=="function"&&(i.callback=function(){Gb(l,o,c),typeof m!="function"&&(Wr===null?Wr=new Set([this]):Wr.add(this));var w=c.stack;this.componentDidCatch(c.value,{componentStack:w!==null?w:""})})}function Lw(i,l,o,c,m){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(l=o.alternate,l!==null&&Ea(l,o,m,!0),o=_n.current,o!==null){switch(o.tag){case 31:case 13:return li===null?ec():o.alternate===null&&mt===0&&(mt=3),o.flags&=-257,o.flags|=65536,o.lanes=m,c===Mu?o.flags|=16384:(l=o.updateQueue,l===null?o.updateQueue=new Set([c]):l.add(c),Ih(i,c,m)),!1;case 22:return o.flags|=65536,c===Mu?o.flags|=16384:(l=o.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=l):(o=l.retryQueue,o===null?l.retryQueue=new Set([c]):o.add(c)),Ih(i,c,m)),!1}throw Error(r(435,o.tag))}return Ih(i,c,m),ec(),!1}if(Pe)return l=_n.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=m,c!==Lf&&(i=Error(r(422),{cause:c}),Vo(ti(i,o)))):(c!==Lf&&(l=Error(r(423),{cause:c}),Vo(ti(l,o))),i=i.current.alternate,i.flags|=65536,m&=-m,i.lanes|=m,c=ti(c,o),m=vh(i.stateNode,c,m),Yf(i,m),mt!==4&&(mt=2)),!1;var v=Error(r(520),{cause:c});if(v=ti(v,o),rs===null?rs=[v]:rs.push(v),mt!==4&&(mt=2),l===null)return!0;c=ti(c,o),o=l;do{switch(o.tag){case 3:return o.flags|=65536,i=m&-m,o.lanes|=i,i=vh(o.stateNode,c,i),Yf(o,i),!1;case 1:if(l=o.type,v=o.stateNode,(o.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Wr===null||!Wr.has(v))))return o.flags|=65536,m&=-m,o.lanes|=m,m=Xb(m),Wb(m,i,o,c),Yf(o,m),!1}o=o.return}while(o!==null);return!1}var gh=Error(r(461)),Pt=!1;function rn(i,l,o,c){l.child=i===null?eb(l,null,o,c):Ll(l,i.child,o,c)}function Zb(i,l,o,c,m){o=o.render;var v=l.ref;if("ref"in c){var $={};for(var w in c)w!=="ref"&&($[w]=c[w])}else $=c;return Pl(l),c=Qf(i,l,o,$,v,m),w=Jf(),i!==null&&!Pt?(eh(i,l,m),dr(i,l,m)):(Pe&&w&&Of(l),l.flags|=1,rn(i,l,c,m),l.child)}function Qb(i,l,o,c,m){if(i===null){var v=o.type;return typeof v=="function"&&!Rf(v)&&v.defaultProps===void 0&&o.compare===null?(l.tag=15,l.type=v,Jb(i,l,v,c,m)):(i=xu(o.type,null,c,l,l.mode,m),i.ref=l.ref,i.return=l,l.child=i)}if(v=i.child,!Ch(i,m)){var $=v.memoizedProps;if(o=o.compare,o=o!==null?o:No,o($,c)&&i.ref===l.ref)return dr(i,l,m)}return l.flags|=1,i=lr(v,c),i.ref=l.ref,i.return=l,l.child=i}function Jb(i,l,o,c,m){if(i!==null){var v=i.memoizedProps;if(No(v,c)&&i.ref===l.ref)if(Pt=!1,l.pendingProps=c=v,Ch(i,m))(i.flags&131072)!==0&&(Pt=!0);else return l.lanes=i.lanes,dr(i,l,m)}return bh(i,l,o,c,m)}function ey(i,l,o,c){var m=c.children,v=i!==null?i.memoizedState:null;if(i===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((l.flags&128)!==0){if(v=v!==null?v.baseLanes|o:o,i!==null){for(c=l.child=i.child,m=0;c!==null;)m=m|c.lanes|c.childLanes,c=c.sibling;c=m&~v}else c=0,l.child=null;return ty(i,l,v,o,c)}if((o&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},i!==null&&Du(l,v!==null?v.cachePool:null),v!==null?ib(l,v):Gf(),rb(l);else return c=l.lanes=536870912,ty(i,l,v!==null?v.baseLanes|o:o,o,c)}else v!==null?(Du(l,v.cachePool),ib(l,v),Yr(),l.memoizedState=null):(i!==null&&Du(l,null),Gf(),Yr());return rn(i,l,m,o),l.child}function Zo(i,l){return i!==null&&i.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function ty(i,l,o,c,m){var v=Uf();return v=v===null?null:{parent:Mt._currentValue,pool:v},l.memoizedState={baseLanes:o,cachePool:v},i!==null&&Du(l,null),Gf(),rb(l),i!==null&&Ea(i,l,c,!0),l.childLanes=m,null}function _u(i,l){return l=Hu({mode:l.mode,children:l.children},i.mode),l.ref=i.ref,i.child=l,l.return=i,l}function ny(i,l,o){return Ll(l,i.child,null,o),i=_u(l,l.pendingProps),i.flags|=2,jn(l),l.memoizedState=null,i}function Nw(i,l,o){var c=l.pendingProps,m=(l.flags&128)!==0;if(l.flags&=-129,i===null){if(Pe){if(c.mode==="hidden")return i=_u(l,c),l.lanes=536870912,Zo(null,i);if(Wf(l),(i=Qe)?(i=m1(i,ri),i=i!==null&&i.data==="&"?i:null,i!==null&&(l.memoizedState={dehydrated:i,treeContext:Kr!==null?{id:ki,overflow:Ki}:null,retryLane:536870912,hydrationErrors:null},o=V0(i),o.return=l,l.child=o,tn=l,Qe=null)):i=null,i===null)throw Fr(l);return l.lanes=536870912,null}return _u(l,c)}var v=i.memoizedState;if(v!==null){var $=v.dehydrated;if(Wf(l),m)if(l.flags&256)l.flags&=-257,l=ny(i,l,o);else if(l.memoizedState!==null)l.child=i.child,l.flags|=128,l=null;else throw Error(r(558));else if(Pt||Ea(i,l,o,!1),m=(o&i.childLanes)!==0,Pt||m){if(c=qe,c!==null&&($=At(c,o),$!==0&&$!==v.retryLane))throw v.retryLane=$,Dl(i,$),Bn(c,i,$),gh;ec(),l=ny(i,l,o)}else i=v.treeContext,Qe=ai($.nextSibling),tn=l,Pe=!0,Vr=null,ri=!1,i!==null&&U0(l,i),l=_u(l,c),l.flags|=4096;return l}return i=lr(i.child,{mode:c.mode,children:c.children}),i.ref=l.ref,l.child=i,i.return=l,i}function ju(i,l){var o=l.ref;if(o===null)i!==null&&i.ref!==null&&(l.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(r(284));(i===null||i.ref!==o)&&(l.flags|=4194816)}}function bh(i,l,o,c,m){return Pl(l),o=Qf(i,l,o,c,void 0,m),c=Jf(),i!==null&&!Pt?(eh(i,l,m),dr(i,l,m)):(Pe&&c&&Of(l),l.flags|=1,rn(i,l,o,m),l.child)}function iy(i,l,o,c,m,v){return Pl(l),l.updateQueue=null,o=ab(l,c,o,m),lb(i),c=Jf(),i!==null&&!Pt?(eh(i,l,v),dr(i,l,v)):(Pe&&c&&Of(l),l.flags|=1,rn(i,l,o,v),l.child)}function ry(i,l,o,c,m){if(Pl(l),l.stateNode===null){var v=ba,$=o.contextType;typeof $=="object"&&$!==null&&(v=nn($)),v=new o(c,v),l.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=ph,l.stateNode=v,v._reactInternals=l,v=l.stateNode,v.props=c,v.state=l.memoizedState,v.refs={},jf(l),$=o.contextType,v.context=typeof $=="object"&&$!==null?nn($):ba,v.state=l.memoizedState,$=o.getDerivedStateFromProps,typeof $=="function"&&(mh(l,o,$,c),v.state=l.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||($=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),$!==v.state&&ph.enqueueReplaceState(v,v.state,null),Yo(l,c,v,m),Ho(),v.state=l.memoizedState),typeof v.componentDidMount=="function"&&(l.flags|=4194308),c=!0}else if(i===null){v=l.stateNode;var w=l.memoizedProps,L=kl(o,w);v.props=L;var H=v.context,Q=o.contextType;$=ba,typeof Q=="object"&&Q!==null&&($=nn(Q));var te=o.getDerivedStateFromProps;Q=typeof te=="function"||typeof v.getSnapshotBeforeUpdate=="function",w=l.pendingProps!==w,Q||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(w||H!==$)&&jb(l,v,c,$),Ur=!1;var q=l.memoizedState;v.state=q,Yo(l,c,v,m),Ho(),H=l.memoizedState,w||q!==H||Ur?(typeof te=="function"&&(mh(l,o,te,c),H=l.memoizedState),(L=Ur||_b(l,o,L,c,q,H,$))?(Q||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(l.flags|=4194308)):(typeof v.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=c,l.memoizedState=H),v.props=c,v.state=H,v.context=$,c=L):(typeof v.componentDidMount=="function"&&(l.flags|=4194308),c=!1)}else{v=l.stateNode,Hf(i,l),$=l.memoizedProps,Q=kl(o,$),v.props=Q,te=l.pendingProps,q=v.context,H=o.contextType,L=ba,typeof H=="object"&&H!==null&&(L=nn(H)),w=o.getDerivedStateFromProps,(H=typeof w=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||($!==te||q!==L)&&jb(l,v,c,L),Ur=!1,q=l.memoizedState,v.state=q,Yo(l,c,v,m),Ho();var W=l.memoizedState;$!==te||q!==W||Ur||i!==null&&i.dependencies!==null&&Cu(i.dependencies)?(typeof w=="function"&&(mh(l,o,w,c),W=l.memoizedState),(Q=Ur||_b(l,o,Q,c,q,W,L)||i!==null&&i.dependencies!==null&&Cu(i.dependencies))?(H||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(c,W,L),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(c,W,L)),typeof v.componentDidUpdate=="function"&&(l.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof v.componentDidUpdate!="function"||$===i.memoizedProps&&q===i.memoizedState||(l.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||$===i.memoizedProps&&q===i.memoizedState||(l.flags|=1024),l.memoizedProps=c,l.memoizedState=W),v.props=c,v.state=W,v.context=L,c=Q):(typeof v.componentDidUpdate!="function"||$===i.memoizedProps&&q===i.memoizedState||(l.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||$===i.memoizedProps&&q===i.memoizedState||(l.flags|=1024),c=!1)}return v=c,ju(i,l),c=(l.flags&128)!==0,v||c?(v=l.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:v.render(),l.flags|=1,i!==null&&c?(l.child=Ll(l,i.child,null,m),l.child=Ll(l,null,o,m)):rn(i,l,o,m),l.memoizedState=v.state,i=l.child):i=dr(i,l,m),i}function ly(i,l,o,c){return Ml(),l.flags|=256,rn(i,l,o,c),l.child}var yh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sh(i){return{baseLanes:i,cachePool:G0()}}function $h(i,l,o){return i=i!==null?i.childLanes&~o:0,l&&(i|=Yn),i}function ay(i,l,o){var c=l.pendingProps,m=!1,v=(l.flags&128)!==0,$;if(($=v)||($=i!==null&&i.memoizedState===null?!1:($t.current&2)!==0),$&&(m=!0,l.flags&=-129),$=(l.flags&32)!==0,l.flags&=-33,i===null){if(Pe){if(m?Hr(l):Yr(),(i=Qe)?(i=m1(i,ri),i=i!==null&&i.data!=="&"?i:null,i!==null&&(l.memoizedState={dehydrated:i,treeContext:Kr!==null?{id:ki,overflow:Ki}:null,retryLane:536870912,hydrationErrors:null},o=V0(i),o.return=l,l.child=o,tn=l,Qe=null)):i=null,i===null)throw Fr(l);return im(i)?l.lanes=32:l.lanes=536870912,null}var w=c.children;return c=c.fallback,m?(Yr(),m=l.mode,w=Hu({mode:"hidden",children:w},m),c=Al(c,m,o,null),w.return=l,c.return=l,w.sibling=c,l.child=w,c=l.child,c.memoizedState=Sh(o),c.childLanes=$h(i,$,o),l.memoizedState=yh,Zo(null,c)):(Hr(l),Eh(l,w))}var L=i.memoizedState;if(L!==null&&(w=L.dehydrated,w!==null)){if(v)l.flags&256?(Hr(l),l.flags&=-257,l=xh(i,l,o)):l.memoizedState!==null?(Yr(),l.child=i.child,l.flags|=128,l=null):(Yr(),w=c.fallback,m=l.mode,c=Hu({mode:"visible",children:c.children},m),w=Al(w,m,o,null),w.flags|=2,c.return=l,w.return=l,c.sibling=w,l.child=c,Ll(l,i.child,null,o),c=l.child,c.memoizedState=Sh(o),c.childLanes=$h(i,$,o),l.memoizedState=yh,l=Zo(null,c));else if(Hr(l),im(w)){if($=w.nextSibling&&w.nextSibling.dataset,$)var H=$.dgst;$=H,c=Error(r(419)),c.stack="",c.digest=$,Vo({value:c,source:null,stack:null}),l=xh(i,l,o)}else if(Pt||Ea(i,l,o,!1),$=(o&i.childLanes)!==0,Pt||$){if($=qe,$!==null&&(c=At($,o),c!==0&&c!==L.retryLane))throw L.retryLane=c,Dl(i,c),Bn($,i,c),gh;nm(w)||ec(),l=xh(i,l,o)}else nm(w)?(l.flags|=192,l.child=i.child,l=null):(i=L.treeContext,Qe=ai(w.nextSibling),tn=l,Pe=!0,Vr=null,ri=!1,i!==null&&U0(l,i),l=Eh(l,c.children),l.flags|=4096);return l}return m?(Yr(),w=c.fallback,m=l.mode,L=i.child,H=L.sibling,c=lr(L,{mode:"hidden",children:c.children}),c.subtreeFlags=L.subtreeFlags&65011712,H!==null?w=lr(H,w):(w=Al(w,m,o,null),w.flags|=2),w.return=l,c.return=l,c.sibling=w,l.child=c,Zo(null,c),c=l.child,w=i.child.memoizedState,w===null?w=Sh(o):(m=w.cachePool,m!==null?(L=Mt._currentValue,m=m.parent!==L?{parent:L,pool:L}:m):m=G0(),w={baseLanes:w.baseLanes|o,cachePool:m}),c.memoizedState=w,c.childLanes=$h(i,$,o),l.memoizedState=yh,Zo(i.child,c)):(Hr(l),o=i.child,i=o.sibling,o=lr(o,{mode:"visible",children:c.children}),o.return=l,o.sibling=null,i!==null&&($=l.deletions,$===null?(l.deletions=[i],l.flags|=16):$.push(i)),l.child=o,l.memoizedState=null,o)}function Eh(i,l){return l=Hu({mode:"visible",children:l},i.mode),l.return=i,i.child=l}function Hu(i,l){return i=Un(22,i,null,l),i.lanes=0,i}function xh(i,l,o){return Ll(l,i.child,null,o),i=Eh(l,l.pendingProps.children),i.flags|=2,l.memoizedState=null,i}function oy(i,l,o){i.lanes|=l;var c=i.alternate;c!==null&&(c.lanes|=l),Kf(i.return,l,o)}function Th(i,l,o,c,m,v){var $=i.memoizedState;$===null?i.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:m,treeForkCount:v}:($.isBackwards=l,$.rendering=null,$.renderingStartTime=0,$.last=c,$.tail=o,$.tailMode=m,$.treeForkCount=v)}function sy(i,l,o){var c=l.pendingProps,m=c.revealOrder,v=c.tail;c=c.children;var $=$t.current,w=($&2)!==0;if(w?($=$&1|2,l.flags|=128):$&=1,le($t,$),rn(i,l,c,o),c=Pe?Ko:0,!w&&i!==null&&(i.flags&128)!==0)e:for(i=l.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&oy(i,o,l);else if(i.tag===19)oy(i,o,l);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break e;for(;i.sibling===null;){if(i.return===null||i.return===l)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(m){case"forwards":for(o=l.child,m=null;o!==null;)i=o.alternate,i!==null&&Ou(i)===null&&(m=o),o=o.sibling;o=m,o===null?(m=l.child,l.child=null):(m=o.sibling,o.sibling=null),Th(l,!1,m,o,v,c);break;case"backwards":case"unstable_legacy-backwards":for(o=null,m=l.child,l.child=null;m!==null;){if(i=m.alternate,i!==null&&Ou(i)===null){l.child=m;break}i=m.sibling,m.sibling=o,o=m,m=i}Th(l,!0,o,null,v,c);break;case"together":Th(l,!1,null,null,void 0,c);break;default:l.memoizedState=null}return l.child}function dr(i,l,o){if(i!==null&&(l.dependencies=i.dependencies),Xr|=l.lanes,(o&l.childLanes)===0)if(i!==null){if(Ea(i,l,o,!1),(o&l.childLanes)===0)return null}else return null;if(i!==null&&l.child!==i.child)throw Error(r(153));if(l.child!==null){for(i=l.child,o=lr(i,i.pendingProps),l.child=o,o.return=l;i.sibling!==null;)i=i.sibling,o=o.sibling=lr(i,i.pendingProps),o.return=l;o.sibling=null}return l.child}function Ch(i,l){return(i.lanes&l)!==0?!0:(i=i.dependencies,!!(i!==null&&Cu(i)))}function kw(i,l,o){switch(l.tag){case 3:Ie(l,l.stateNode.containerInfo),Ir(l,Mt,i.memoizedState.cache),Ml();break;case 27:case 5:fe(l);break;case 4:Ie(l,l.stateNode.containerInfo);break;case 10:Ir(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Wf(l),null;break;case 13:var c=l.memoizedState;if(c!==null)return c.dehydrated!==null?(Hr(l),l.flags|=128,null):(o&l.child.childLanes)!==0?ay(i,l,o):(Hr(l),i=dr(i,l,o),i!==null?i.sibling:null);Hr(l);break;case 19:var m=(i.flags&128)!==0;if(c=(o&l.childLanes)!==0,c||(Ea(i,l,o,!1),c=(o&l.childLanes)!==0),m){if(c)return sy(i,l,o);l.flags|=128}if(m=l.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),le($t,$t.current),c)break;return null;case 22:return l.lanes=0,ey(i,l,o,l.pendingProps);case 24:Ir(l,Mt,i.memoizedState.cache)}return dr(i,l,o)}function uy(i,l,o){if(i!==null)if(i.memoizedProps!==l.pendingProps)Pt=!0;else{if(!Ch(i,o)&&(l.flags&128)===0)return Pt=!1,kw(i,l,o);Pt=(i.flags&131072)!==0}else Pt=!1,Pe&&(l.flags&1048576)!==0&&I0(l,Ko,l.index);switch(l.lanes=0,l.tag){case 16:e:{var c=l.pendingProps;if(i=Ol(l.elementType),l.type=i,typeof i=="function")Rf(i)?(c=kl(i,c),l.tag=1,l=ry(null,l,i,c,o)):(l.tag=0,l=bh(null,l,i,c,o));else{if(i!=null){var m=i.$$typeof;if(m===O){l.tag=11,l=Zb(null,l,i,c,o);break e}else if(m===I){l.tag=14,l=Qb(null,l,i,c,o);break e}}throw l=_(i)||i,Error(r(306,l,""))}}return l;case 0:return bh(i,l,l.type,l.pendingProps,o);case 1:return c=l.type,m=kl(c,l.pendingProps),ry(i,l,c,m,o);case 3:e:{if(Ie(l,l.stateNode.containerInfo),i===null)throw Error(r(387));c=l.pendingProps;var v=l.memoizedState;m=v.element,Hf(i,l),Yo(l,c,null,o);var $=l.memoizedState;if(c=$.cache,Ir(l,Mt,c),c!==v.cache&&Vf(l,[Mt],o,!0),Ho(),c=$.element,v.isDehydrated)if(v={element:c,isDehydrated:!1,cache:$.cache},l.updateQueue.baseState=v,l.memoizedState=v,l.flags&256){l=ly(i,l,c,o);break e}else if(c!==m){m=ti(Error(r(424)),l),Vo(m),l=ly(i,l,c,o);break e}else{switch(i=l.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Qe=ai(i.firstChild),tn=l,Pe=!0,Vr=null,ri=!0,o=eb(l,null,c,o),l.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Ml(),c===m){l=dr(i,l,o);break e}rn(i,l,c,o)}l=l.child}return l;case 26:return ju(i,l),i===null?(o=S1(l.type,null,l.pendingProps,null))?l.memoizedState=o:Pe||(o=l.type,i=l.pendingProps,c=oc(xe.current).createElement(o),c[He]=l,c[lt]=i,ln(c,o,i),Ye(c),l.stateNode=c):l.memoizedState=S1(l.type,i.memoizedProps,l.pendingProps,i.memoizedState),null;case 27:return fe(l),i===null&&Pe&&(c=l.stateNode=g1(l.type,l.pendingProps,xe.current),tn=l,ri=!0,m=Qe,el(l.type)?(rm=m,Qe=ai(c.firstChild)):Qe=m),rn(i,l,l.pendingProps.children,o),ju(i,l),i===null&&(l.flags|=4194304),l.child;case 5:return i===null&&Pe&&((m=c=Qe)&&(c=hD(c,l.type,l.pendingProps,ri),c!==null?(l.stateNode=c,tn=l,Qe=ai(c.firstChild),ri=!1,m=!0):m=!1),m||Fr(l)),fe(l),m=l.type,v=l.pendingProps,$=i!==null?i.memoizedProps:null,c=v.children,Jh(m,v)?c=null:$!==null&&Jh(m,$)&&(l.flags|=32),l.memoizedState!==null&&(m=Qf(i,l,Aw,null,null,o),fs._currentValue=m),ju(i,l),rn(i,l,c,o),l.child;case 6:return i===null&&Pe&&((i=o=Qe)&&(o=mD(o,l.pendingProps,ri),o!==null?(l.stateNode=o,tn=l,Qe=null,i=!0):i=!1),i||Fr(l)),null;case 13:return ay(i,l,o);case 4:return Ie(l,l.stateNode.containerInfo),c=l.pendingProps,i===null?l.child=Ll(l,null,c,o):rn(i,l,c,o),l.child;case 11:return Zb(i,l,l.type,l.pendingProps,o);case 7:return rn(i,l,l.pendingProps,o),l.child;case 8:return rn(i,l,l.pendingProps.children,o),l.child;case 12:return rn(i,l,l.pendingProps.children,o),l.child;case 10:return c=l.pendingProps,Ir(l,l.type,c.value),rn(i,l,c.children,o),l.child;case 9:return m=l.type._context,c=l.pendingProps.children,Pl(l),m=nn(m),c=c(m),l.flags|=1,rn(i,l,c,o),l.child;case 14:return Qb(i,l,l.type,l.pendingProps,o);case 15:return Jb(i,l,l.type,l.pendingProps,o);case 19:return sy(i,l,o);case 31:return Nw(i,l,o);case 22:return ey(i,l,o,l.pendingProps);case 24:return Pl(l),c=nn(Mt),i===null?(m=Uf(),m===null&&(m=qe,v=Ff(),m.pooledCache=v,v.refCount++,v!==null&&(m.pooledCacheLanes|=o),m=v),l.memoizedState={parent:c,cache:m},jf(l),Ir(l,Mt,m)):((i.lanes&o)!==0&&(Hf(i,l),Yo(l,null,null,o),Ho()),m=i.memoizedState,v=l.memoizedState,m.parent!==c?(m={parent:c,cache:c},l.memoizedState=m,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=m),Ir(l,Mt,c)):(c=v.cache,Ir(l,Mt,c),c!==m.cache&&Vf(l,[Mt],o,!0))),rn(i,l,l.pendingProps.children,o),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function fr(i){i.flags|=4}function wh(i,l,o,c,m){if((l=(i.mode&32)!==0)&&(l=!1),l){if(i.flags|=16777216,(m&335544128)===m)if(i.stateNode.complete)i.flags|=8192;else if(Ny())i.flags|=8192;else throw zl=Mu,_f}else i.flags&=-16777217}function cy(i,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!C1(l))if(Ny())i.flags|=8192;else throw zl=Mu,_f}function Yu(i,l){l!==null&&(i.flags|=4),i.flags&16384&&(l=i.tag!==22?Ge():536870912,i.lanes|=l,za|=l)}function Qo(i,l){if(!Pe)switch(i.tailMode){case"hidden":l=i.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?i.tail=null:o.sibling=null;break;case"collapsed":o=i.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?l||i.tail===null?i.tail=null:i.tail.sibling=null:c.sibling=null}}function Je(i){var l=i.alternate!==null&&i.alternate.child===i.child,o=0,c=0;if(l)for(var m=i.child;m!==null;)o|=m.lanes|m.childLanes,c|=m.subtreeFlags&65011712,c|=m.flags&65011712,m.return=i,m=m.sibling;else for(m=i.child;m!==null;)o|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=i,m=m.sibling;return i.subtreeFlags|=c,i.childLanes=o,l}function Kw(i,l,o){var c=l.pendingProps;switch(zf(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(l),null;case 1:return Je(l),null;case 3:return o=l.stateNode,c=null,i!==null&&(c=i.memoizedState.cache),l.memoizedState.cache!==c&&(l.flags|=2048),sr(Mt),Be(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(i===null||i.child===null)&&($a(l)?fr(l):i===null||i.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Nf())),Je(l),null;case 26:var m=l.type,v=l.memoizedState;return i===null?(fr(l),v!==null?(Je(l),cy(l,v)):(Je(l),wh(l,m,null,c,o))):v?v!==i.memoizedState?(fr(l),Je(l),cy(l,v)):(Je(l),l.flags&=-16777217):(i=i.memoizedProps,i!==c&&fr(l),Je(l),wh(l,m,i,c,o)),null;case 27:if(ct(l),o=xe.current,m=l.type,i!==null&&l.stateNode!=null)i.memoizedProps!==c&&fr(l);else{if(!c){if(l.stateNode===null)throw Error(r(166));return Je(l),null}i=se.current,$a(l)?_0(l):(i=g1(m,c,o),l.stateNode=i,fr(l))}return Je(l),null;case 5:if(ct(l),m=l.type,i!==null&&l.stateNode!=null)i.memoizedProps!==c&&fr(l);else{if(!c){if(l.stateNode===null)throw Error(r(166));return Je(l),null}if(v=se.current,$a(l))_0(l);else{var $=oc(xe.current);switch(v){case 1:v=$.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:v=$.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":v=$.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":v=$.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":v=$.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof c.is=="string"?$.createElement("select",{is:c.is}):$.createElement("select"),c.multiple?v.multiple=!0:c.size&&(v.size=c.size);break;default:v=typeof c.is=="string"?$.createElement(m,{is:c.is}):$.createElement(m)}}v[He]=l,v[lt]=c;e:for($=l.child;$!==null;){if($.tag===5||$.tag===6)v.appendChild($.stateNode);else if($.tag!==4&&$.tag!==27&&$.child!==null){$.child.return=$,$=$.child;continue}if($===l)break e;for(;$.sibling===null;){if($.return===null||$.return===l)break e;$=$.return}$.sibling.return=$.return,$=$.sibling}l.stateNode=v;e:switch(ln(v,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&&fr(l)}}return Je(l),wh(l,l.type,i===null?null:i.memoizedProps,l.pendingProps,o),null;case 6:if(i&&l.stateNode!=null)i.memoizedProps!==c&&fr(l);else{if(typeof c!="string"&&l.stateNode===null)throw Error(r(166));if(i=xe.current,$a(l)){if(i=l.stateNode,o=l.memoizedProps,c=null,m=tn,m!==null)switch(m.tag){case 27:case 5:c=m.memoizedProps}i[He]=l,i=!!(i.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||a1(i.nodeValue,o)),i||Fr(l,!0)}else i=oc(i).createTextNode(c),i[He]=l,l.stateNode=i}return Je(l),null;case 31:if(o=l.memoizedState,i===null||i.memoizedState!==null){if(c=$a(l),o!==null){if(i===null){if(!c)throw Error(r(318));if(i=l.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[He]=l}else Ml(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Je(l),i=!1}else o=Nf(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=o),i=!0;if(!i)return l.flags&256?(jn(l),l):(jn(l),null);if((l.flags&128)!==0)throw Error(r(558))}return Je(l),null;case 13:if(c=l.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(m=$a(l),c!==null&&c.dehydrated!==null){if(i===null){if(!m)throw Error(r(318));if(m=l.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(r(317));m[He]=l}else Ml(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Je(l),m=!1}else m=Nf(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=m),m=!0;if(!m)return l.flags&256?(jn(l),l):(jn(l),null)}return jn(l),(l.flags&128)!==0?(l.lanes=o,l):(o=c!==null,i=i!==null&&i.memoizedState!==null,o&&(c=l.child,m=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(m=c.alternate.memoizedState.cachePool.pool),v=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(v=c.memoizedState.cachePool.pool),v!==m&&(c.flags|=2048)),o!==i&&o&&(l.child.flags|=8192),Yu(l,l.updateQueue),Je(l),null);case 4:return Be(),i===null&&Gh(l.stateNode.containerInfo),Je(l),null;case 10:return sr(l.type),Je(l),null;case 19:if(ae($t),c=l.memoizedState,c===null)return Je(l),null;if(m=(l.flags&128)!==0,v=c.rendering,v===null)if(m)Qo(c,!1);else{if(mt!==0||i!==null&&(i.flags&128)!==0)for(i=l.child;i!==null;){if(v=Ou(i),v!==null){for(l.flags|=128,Qo(c,!1),i=v.updateQueue,l.updateQueue=i,Yu(l,i),l.subtreeFlags=0,i=o,o=l.child;o!==null;)K0(o,i),o=o.sibling;return le($t,$t.current&1|2),Pe&&ar(l,c.treeForkCount),l.child}i=i.sibling}c.tail!==null&&bt()>Zu&&(l.flags|=128,m=!0,Qo(c,!1),l.lanes=4194304)}else{if(!m)if(i=Ou(v),i!==null){if(l.flags|=128,m=!0,i=i.updateQueue,l.updateQueue=i,Yu(l,i),Qo(c,!0),c.tail===null&&c.tailMode==="hidden"&&!v.alternate&&!Pe)return Je(l),null}else 2*bt()-c.renderingStartTime>Zu&&o!==536870912&&(l.flags|=128,m=!0,Qo(c,!1),l.lanes=4194304);c.isBackwards?(v.sibling=l.child,l.child=v):(i=c.last,i!==null?i.sibling=v:l.child=v,c.last=v)}return c.tail!==null?(i=c.tail,c.rendering=i,c.tail=i.sibling,c.renderingStartTime=bt(),i.sibling=null,o=$t.current,le($t,m?o&1|2:o&1),Pe&&ar(l,c.treeForkCount),i):(Je(l),null);case 22:case 23:return jn(l),Xf(),c=l.memoizedState!==null,i!==null?i.memoizedState!==null!==c&&(l.flags|=8192):c&&(l.flags|=8192),c?(o&536870912)!==0&&(l.flags&128)===0&&(Je(l),l.subtreeFlags&6&&(l.flags|=8192)):Je(l),o=l.updateQueue,o!==null&&Yu(l,o.retryQueue),o=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048),i!==null&&ae(Bl),null;case 24:return o=null,i!==null&&(o=i.memoizedState.cache),l.memoizedState.cache!==o&&(l.flags|=2048),sr(Mt),Je(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function Vw(i,l){switch(zf(l),l.tag){case 1:return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 3:return sr(Mt),Be(),i=l.flags,(i&65536)!==0&&(i&128)===0?(l.flags=i&-65537|128,l):null;case 26:case 27:case 5:return ct(l),null;case 31:if(l.memoizedState!==null){if(jn(l),l.alternate===null)throw Error(r(340));Ml()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 13:if(jn(l),i=l.memoizedState,i!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Ml()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 19:return ae($t),null;case 4:return Be(),null;case 10:return sr(l.type),null;case 22:case 23:return jn(l),Xf(),i!==null&&ae(Bl),i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 24:return sr(Mt),null;case 25:return null;default:return null}}function dy(i,l){switch(zf(l),l.tag){case 3:sr(Mt),Be();break;case 26:case 27:case 5:ct(l);break;case 4:Be();break;case 31:l.memoizedState!==null&&jn(l);break;case 13:jn(l);break;case 19:ae($t);break;case 10:sr(l.type);break;case 22:case 23:jn(l),Xf(),i!==null&&ae(Bl);break;case 24:sr(Mt)}}function Jo(i,l){try{var o=l.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var m=c.next;o=m;do{if((o.tag&i)===i){c=void 0;var v=o.create,$=o.inst;c=v(),$.destroy=c}o=o.next}while(o!==m)}}catch(w){Fe(l,l.return,w)}}function qr(i,l,o){try{var c=l.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var v=m.next;c=v;do{if((c.tag&i)===i){var $=c.inst,w=$.destroy;if(w!==void 0){$.destroy=void 0,m=l;var L=o,H=w;try{H()}catch(Q){Fe(m,L,Q)}}}c=c.next}while(c!==v)}}catch(Q){Fe(l,l.return,Q)}}function fy(i){var l=i.updateQueue;if(l!==null){var o=i.stateNode;try{nb(l,o)}catch(c){Fe(i,i.return,c)}}}function hy(i,l,o){o.props=kl(i.type,i.memoizedProps),o.state=i.memoizedState;try{o.componentWillUnmount()}catch(c){Fe(i,l,c)}}function es(i,l){try{var o=i.ref;if(o!==null){switch(i.tag){case 26:case 27:case 5:var c=i.stateNode;break;case 30:c=i.stateNode;break;default:c=i.stateNode}typeof o=="function"?i.refCleanup=o(c):o.current=c}}catch(m){Fe(i,l,m)}}function Vi(i,l){var o=i.ref,c=i.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(m){Fe(i,l,m)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(m){Fe(i,l,m)}else o.current=null}function my(i){var l=i.type,o=i.memoizedProps,c=i.stateNode;try{e:switch(l){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){Fe(i,i.return,m)}}function Dh(i,l,o){try{var c=i.stateNode;oD(c,i.type,o,l),c[lt]=l}catch(m){Fe(i,i.return,m)}}function py(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&el(i.type)||i.tag===4}function Ah(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||py(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&el(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Mh(i,l,o){var c=i.tag;if(c===5||c===6)i=i.stateNode,l?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(i,l):(l=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,l.appendChild(i),o=o._reactRootContainer,o!=null||l.onclick!==null||(l.onclick=ir));else if(c!==4&&(c===27&&el(i.type)&&(o=i.stateNode,l=null),i=i.child,i!==null))for(Mh(i,l,o),i=i.sibling;i!==null;)Mh(i,l,o),i=i.sibling}function qu(i,l,o){var c=i.tag;if(c===5||c===6)i=i.stateNode,l?o.insertBefore(i,l):o.appendChild(i);else if(c!==4&&(c===27&&el(i.type)&&(o=i.stateNode),i=i.child,i!==null))for(qu(i,l,o),i=i.sibling;i!==null;)qu(i,l,o),i=i.sibling}function vy(i){var l=i.stateNode,o=i.memoizedProps;try{for(var c=i.type,m=l.attributes;m.length;)l.removeAttributeNode(m[0]);ln(l,c,o),l[He]=i,l[lt]=o}catch(v){Fe(i,i.return,v)}}var hr=!1,Bt=!1,Rh=!1,gy=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function Fw(i,l){if(i=i.containerInfo,Zh=mc,i=M0(i),xf(i)){if("selectionStart"in i)var o={start:i.selectionStart,end:i.selectionEnd};else e:{o=(o=i.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var m=c.anchorOffset,v=c.focusNode;c=c.focusOffset;try{o.nodeType,v.nodeType}catch{o=null;break e}var $=0,w=-1,L=-1,H=0,Q=0,te=i,q=null;t:for(;;){for(var W;te!==o||m!==0&&te.nodeType!==3||(w=$+m),te!==v||c!==0&&te.nodeType!==3||(L=$+c),te.nodeType===3&&($+=te.nodeValue.length),(W=te.firstChild)!==null;)q=te,te=W;for(;;){if(te===i)break t;if(q===o&&++H===m&&(w=$),q===v&&++Q===c&&(L=$),(W=te.nextSibling)!==null)break;te=q,q=te.parentNode}te=W}o=w===-1||L===-1?null:{start:w,end:L}}else o=null}o=o||{start:0,end:0}}else o=null;for(Qh={focusedElem:i,selectionRange:o},mc=!1,Gt=l;Gt!==null;)if(l=Gt,i=l.child,(l.subtreeFlags&1028)!==0&&i!==null)i.return=l,Gt=i;else for(;Gt!==null;){switch(l=Gt,v=l.alternate,i=l.flags,l.tag){case 0:if((i&4)!==0&&(i=l.updateQueue,i=i!==null?i.events:null,i!==null))for(o=0;o<i.length;o++)m=i[o],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&v!==null){i=void 0,o=l,m=v.memoizedProps,v=v.memoizedState,c=o.stateNode;try{var oe=kl(o.type,m);i=c.getSnapshotBeforeUpdate(oe,v),c.__reactInternalSnapshotBeforeUpdate=i}catch(me){Fe(o,o.return,me)}}break;case 3:if((i&1024)!==0){if(i=l.stateNode.containerInfo,o=i.nodeType,o===9)tm(i);else if(o===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":tm(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=l.sibling,i!==null){i.return=l.return,Gt=i;break}Gt=l.return}}function by(i,l,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:pr(i,o),c&4&&Jo(5,o);break;case 1:if(pr(i,o),c&4)if(i=o.stateNode,l===null)try{i.componentDidMount()}catch($){Fe(o,o.return,$)}else{var m=kl(o.type,l.memoizedProps);l=l.memoizedState;try{i.componentDidUpdate(m,l,i.__reactInternalSnapshotBeforeUpdate)}catch($){Fe(o,o.return,$)}}c&64&&fy(o),c&512&&es(o,o.return);break;case 3:if(pr(i,o),c&64&&(i=o.updateQueue,i!==null)){if(l=null,o.child!==null)switch(o.child.tag){case 27:case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}try{nb(i,l)}catch($){Fe(o,o.return,$)}}break;case 27:l===null&&c&4&&vy(o);case 26:case 5:pr(i,o),l===null&&c&4&&my(o),c&512&&es(o,o.return);break;case 12:pr(i,o);break;case 31:pr(i,o),c&4&&$y(i,o);break;case 13:pr(i,o),c&4&&Ey(i,o),c&64&&(i=o.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(o=Xw.bind(null,o),pD(i,o))));break;case 22:if(c=o.memoizedState!==null||hr,!c){l=l!==null&&l.memoizedState!==null||Bt,m=hr;var v=Bt;hr=c,(Bt=l)&&!v?vr(i,o,(o.subtreeFlags&8772)!==0):pr(i,o),hr=m,Bt=v}break;case 30:break;default:pr(i,o)}}function yy(i){var l=i.alternate;l!==null&&(i.alternate=null,yy(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode,l!==null&&Ei(l)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var at=null,An=!1;function mr(i,l,o){for(o=o.child;o!==null;)Sy(i,l,o),o=o.sibling}function Sy(i,l,o){if(Dt&&typeof Dt.onCommitFiberUnmount=="function")try{Dt.onCommitFiberUnmount(yt,o)}catch{}switch(o.tag){case 26:Bt||Vi(o,l),mr(i,l,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Bt||Vi(o,l);var c=at,m=An;el(o.type)&&(at=o.stateNode,An=!1),mr(i,l,o),us(o.stateNode),at=c,An=m;break;case 5:Bt||Vi(o,l);case 6:if(c=at,m=An,at=null,mr(i,l,o),at=c,An=m,at!==null)if(An)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(o.stateNode)}catch(v){Fe(o,l,v)}else try{at.removeChild(o.stateNode)}catch(v){Fe(o,l,v)}break;case 18:at!==null&&(An?(i=at,f1(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,o.stateNode),Ua(i)):f1(at,o.stateNode));break;case 4:c=at,m=An,at=o.stateNode.containerInfo,An=!0,mr(i,l,o),at=c,An=m;break;case 0:case 11:case 14:case 15:qr(2,o,l),Bt||qr(4,o,l),mr(i,l,o);break;case 1:Bt||(Vi(o,l),c=o.stateNode,typeof c.componentWillUnmount=="function"&&hy(o,l,c)),mr(i,l,o);break;case 21:mr(i,l,o);break;case 22:Bt=(c=Bt)||o.memoizedState!==null,mr(i,l,o),Bt=c;break;default:mr(i,l,o)}}function $y(i,l){if(l.memoizedState===null&&(i=l.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{Ua(i)}catch(o){Fe(l,l.return,o)}}}function Ey(i,l){if(l.memoizedState===null&&(i=l.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Ua(i)}catch(o){Fe(l,l.return,o)}}function Iw(i){switch(i.tag){case 31:case 13:case 19:var l=i.stateNode;return l===null&&(l=i.stateNode=new gy),l;case 22:return i=i.stateNode,l=i._retryCache,l===null&&(l=i._retryCache=new gy),l;default:throw Error(r(435,i.tag))}}function Gu(i,l){var o=Iw(i);l.forEach(function(c){if(!o.has(c)){o.add(c);var m=Ww.bind(null,i,c);c.then(m,m)}})}function Mn(i,l){var o=l.deletions;if(o!==null)for(var c=0;c<o.length;c++){var m=o[c],v=i,$=l,w=$;e:for(;w!==null;){switch(w.tag){case 27:if(el(w.type)){at=w.stateNode,An=!1;break e}break;case 5:at=w.stateNode,An=!1;break e;case 3:case 4:at=w.stateNode.containerInfo,An=!0;break e}w=w.return}if(at===null)throw Error(r(160));Sy(v,$,m),at=null,An=!1,v=m.alternate,v!==null&&(v.return=null),m.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)xy(l,i),l=l.sibling}var Ci=null;function xy(i,l){var o=i.alternate,c=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Mn(l,i),Rn(i),c&4&&(qr(3,i,i.return),Jo(3,i),qr(5,i,i.return));break;case 1:Mn(l,i),Rn(i),c&512&&(Bt||o===null||Vi(o,o.return)),c&64&&hr&&(i=i.updateQueue,i!==null&&(c=i.callbacks,c!==null&&(o=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:var m=Ci;if(Mn(l,i),Rn(i),c&512&&(Bt||o===null||Vi(o,o.return)),c&4){var v=o!==null?o.memoizedState:null;if(c=i.memoizedState,o===null)if(c===null)if(i.stateNode===null){e:{c=i.type,o=i.memoizedProps,m=m.ownerDocument||m;t:switch(c){case"title":v=m.getElementsByTagName("title")[0],(!v||v[gn]||v[He]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=m.createElement(c),m.head.insertBefore(v,m.querySelector("head > title"))),ln(v,c,o),v[He]=i,Ye(v),c=v;break e;case"link":var $=x1("link","href",m).get(c+(o.href||""));if($){for(var w=0;w<$.length;w++)if(v=$[w],v.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&v.getAttribute("rel")===(o.rel==null?null:o.rel)&&v.getAttribute("title")===(o.title==null?null:o.title)&&v.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){$.splice(w,1);break t}}v=m.createElement(c),ln(v,c,o),m.head.appendChild(v);break;case"meta":if($=x1("meta","content",m).get(c+(o.content||""))){for(w=0;w<$.length;w++)if(v=$[w],v.getAttribute("content")===(o.content==null?null:""+o.content)&&v.getAttribute("name")===(o.name==null?null:o.name)&&v.getAttribute("property")===(o.property==null?null:o.property)&&v.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&v.getAttribute("charset")===(o.charSet==null?null:o.charSet)){$.splice(w,1);break t}}v=m.createElement(c),ln(v,c,o),m.head.appendChild(v);break;default:throw Error(r(468,c))}v[He]=i,Ye(v),c=v}i.stateNode=c}else T1(m,i.type,i.stateNode);else i.stateNode=E1(m,c,i.memoizedProps);else v!==c?(v===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):v.count--,c===null?T1(m,i.type,i.stateNode):E1(m,c,i.memoizedProps)):c===null&&i.stateNode!==null&&Dh(i,i.memoizedProps,o.memoizedProps)}break;case 27:Mn(l,i),Rn(i),c&512&&(Bt||o===null||Vi(o,o.return)),o!==null&&c&4&&Dh(i,i.memoizedProps,o.memoizedProps);break;case 5:if(Mn(l,i),Rn(i),c&512&&(Bt||o===null||Vi(o,o.return)),i.flags&32){m=i.stateNode;try{da(m,"")}catch(oe){Fe(i,i.return,oe)}}c&4&&i.stateNode!=null&&(m=i.memoizedProps,Dh(i,m,o!==null?o.memoizedProps:m)),c&1024&&(Rh=!0);break;case 6:if(Mn(l,i),Rn(i),c&4){if(i.stateNode===null)throw Error(r(162));c=i.memoizedProps,o=i.stateNode;try{o.nodeValue=c}catch(oe){Fe(i,i.return,oe)}}break;case 3:if(cc=null,m=Ci,Ci=sc(l.containerInfo),Mn(l,i),Ci=m,Rn(i),c&4&&o!==null&&o.memoizedState.isDehydrated)try{Ua(l.containerInfo)}catch(oe){Fe(i,i.return,oe)}Rh&&(Rh=!1,Ty(i));break;case 4:c=Ci,Ci=sc(i.stateNode.containerInfo),Mn(l,i),Rn(i),Ci=c;break;case 12:Mn(l,i),Rn(i);break;case 31:Mn(l,i),Rn(i),c&4&&(c=i.updateQueue,c!==null&&(i.updateQueue=null,Gu(i,c)));break;case 13:Mn(l,i),Rn(i),i.child.flags&8192&&i.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Wu=bt()),c&4&&(c=i.updateQueue,c!==null&&(i.updateQueue=null,Gu(i,c)));break;case 22:m=i.memoizedState!==null;var L=o!==null&&o.memoizedState!==null,H=hr,Q=Bt;if(hr=H||m,Bt=Q||L,Mn(l,i),Bt=Q,hr=H,Rn(i),c&8192)e:for(l=i.stateNode,l._visibility=m?l._visibility&-2:l._visibility|1,m&&(o===null||L||hr||Bt||Kl(i)),o=null,l=i;;){if(l.tag===5||l.tag===26){if(o===null){L=o=l;try{if(v=L.stateNode,m)$=v.style,typeof $.setProperty=="function"?$.setProperty("display","none","important"):$.display="none";else{w=L.stateNode;var te=L.memoizedProps.style,q=te!=null&&te.hasOwnProperty("display")?te.display:null;w.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(oe){Fe(L,L.return,oe)}}}else if(l.tag===6){if(o===null){L=l;try{L.stateNode.nodeValue=m?"":L.memoizedProps}catch(oe){Fe(L,L.return,oe)}}}else if(l.tag===18){if(o===null){L=l;try{var W=L.stateNode;m?h1(W,!0):h1(L.stateNode,!1)}catch(oe){Fe(L,L.return,oe)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===i)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break e;for(;l.sibling===null;){if(l.return===null||l.return===i)break e;o===l&&(o=null),l=l.return}o===l&&(o=null),l.sibling.return=l.return,l=l.sibling}c&4&&(c=i.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,Gu(i,o))));break;case 19:Mn(l,i),Rn(i),c&4&&(c=i.updateQueue,c!==null&&(i.updateQueue=null,Gu(i,c)));break;case 30:break;case 21:break;default:Mn(l,i),Rn(i)}}function Rn(i){var l=i.flags;if(l&2){try{for(var o,c=i.return;c!==null;){if(py(c)){o=c;break}c=c.return}if(o==null)throw Error(r(160));switch(o.tag){case 27:var m=o.stateNode,v=Ah(i);qu(i,v,m);break;case 5:var $=o.stateNode;o.flags&32&&(da($,""),o.flags&=-33);var w=Ah(i);qu(i,w,$);break;case 3:case 4:var L=o.stateNode.containerInfo,H=Ah(i);Mh(i,H,L);break;default:throw Error(r(161))}}catch(Q){Fe(i,i.return,Q)}i.flags&=-3}l&4096&&(i.flags&=-4097)}function Ty(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var l=i;Ty(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),i=i.sibling}}function pr(i,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)by(i,l.alternate,l),l=l.sibling}function Kl(i){for(i=i.child;i!==null;){var l=i;switch(l.tag){case 0:case 11:case 14:case 15:qr(4,l,l.return),Kl(l);break;case 1:Vi(l,l.return);var o=l.stateNode;typeof o.componentWillUnmount=="function"&&hy(l,l.return,o),Kl(l);break;case 27:us(l.stateNode);case 26:case 5:Vi(l,l.return),Kl(l);break;case 22:l.memoizedState===null&&Kl(l);break;case 30:Kl(l);break;default:Kl(l)}i=i.sibling}}function vr(i,l,o){for(o=o&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var c=l.alternate,m=i,v=l,$=v.flags;switch(v.tag){case 0:case 11:case 15:vr(m,v,o),Jo(4,v);break;case 1:if(vr(m,v,o),c=v,m=c.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(H){Fe(c,c.return,H)}if(c=v,m=c.updateQueue,m!==null){var w=c.stateNode;try{var L=m.shared.hiddenCallbacks;if(L!==null)for(m.shared.hiddenCallbacks=null,m=0;m<L.length;m++)tb(L[m],w)}catch(H){Fe(c,c.return,H)}}o&&$&64&&fy(v),es(v,v.return);break;case 27:vy(v);case 26:case 5:vr(m,v,o),o&&c===null&&$&4&&my(v),es(v,v.return);break;case 12:vr(m,v,o);break;case 31:vr(m,v,o),o&&$&4&&$y(m,v);break;case 13:vr(m,v,o),o&&$&4&&Ey(m,v);break;case 22:v.memoizedState===null&&vr(m,v,o),es(v,v.return);break;case 30:break;default:vr(m,v,o)}l=l.sibling}}function Ph(i,l){var o=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==o&&(i!=null&&i.refCount++,o!=null&&Fo(o))}function Bh(i,l){i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&Fo(i))}function wi(i,l,o,c){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Cy(i,l,o,c),l=l.sibling}function Cy(i,l,o,c){var m=l.flags;switch(l.tag){case 0:case 11:case 15:wi(i,l,o,c),m&2048&&Jo(9,l);break;case 1:wi(i,l,o,c);break;case 3:wi(i,l,o,c),m&2048&&(i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&Fo(i)));break;case 12:if(m&2048){wi(i,l,o,c),i=l.stateNode;try{var v=l.memoizedProps,$=v.id,w=v.onPostCommit;typeof w=="function"&&w($,l.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(L){Fe(l,l.return,L)}}else wi(i,l,o,c);break;case 31:wi(i,l,o,c);break;case 13:wi(i,l,o,c);break;case 23:break;case 22:v=l.stateNode,$=l.alternate,l.memoizedState!==null?v._visibility&2?wi(i,l,o,c):ts(i,l):v._visibility&2?wi(i,l,o,c):(v._visibility|=2,Pa(i,l,o,c,(l.subtreeFlags&10256)!==0||!1)),m&2048&&Ph($,l);break;case 24:wi(i,l,o,c),m&2048&&Bh(l.alternate,l);break;default:wi(i,l,o,c)}}function Pa(i,l,o,c,m){for(m=m&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var v=i,$=l,w=o,L=c,H=$.flags;switch($.tag){case 0:case 11:case 15:Pa(v,$,w,L,m),Jo(8,$);break;case 23:break;case 22:var Q=$.stateNode;$.memoizedState!==null?Q._visibility&2?Pa(v,$,w,L,m):ts(v,$):(Q._visibility|=2,Pa(v,$,w,L,m)),m&&H&2048&&Ph($.alternate,$);break;case 24:Pa(v,$,w,L,m),m&&H&2048&&Bh($.alternate,$);break;default:Pa(v,$,w,L,m)}l=l.sibling}}function ts(i,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var o=i,c=l,m=c.flags;switch(c.tag){case 22:ts(o,c),m&2048&&Ph(c.alternate,c);break;case 24:ts(o,c),m&2048&&Bh(c.alternate,c);break;default:ts(o,c)}l=l.sibling}}var ns=8192;function Ba(i,l,o){if(i.subtreeFlags&ns)for(i=i.child;i!==null;)wy(i,l,o),i=i.sibling}function wy(i,l,o){switch(i.tag){case 26:Ba(i,l,o),i.flags&ns&&i.memoizedState!==null&&DD(o,Ci,i.memoizedState,i.memoizedProps);break;case 5:Ba(i,l,o);break;case 3:case 4:var c=Ci;Ci=sc(i.stateNode.containerInfo),Ba(i,l,o),Ci=c;break;case 22:i.memoizedState===null&&(c=i.alternate,c!==null&&c.memoizedState!==null?(c=ns,ns=16777216,Ba(i,l,o),ns=c):Ba(i,l,o));break;default:Ba(i,l,o)}}function Dy(i){var l=i.alternate;if(l!==null&&(i=l.child,i!==null)){l.child=null;do l=i.sibling,i.sibling=null,i=l;while(i!==null)}}function is(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var o=0;o<l.length;o++){var c=l[o];Gt=c,My(c,i)}Dy(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Ay(i),i=i.sibling}function Ay(i){switch(i.tag){case 0:case 11:case 15:is(i),i.flags&2048&&qr(9,i,i.return);break;case 3:is(i);break;case 12:is(i);break;case 22:var l=i.stateNode;i.memoizedState!==null&&l._visibility&2&&(i.return===null||i.return.tag!==13)?(l._visibility&=-3,Xu(i)):is(i);break;default:is(i)}}function Xu(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var o=0;o<l.length;o++){var c=l[o];Gt=c,My(c,i)}Dy(i)}for(i=i.child;i!==null;){switch(l=i,l.tag){case 0:case 11:case 15:qr(8,l,l.return),Xu(l);break;case 22:o=l.stateNode,o._visibility&2&&(o._visibility&=-3,Xu(l));break;default:Xu(l)}i=i.sibling}}function My(i,l){for(;Gt!==null;){var o=Gt;switch(o.tag){case 0:case 11:case 15:qr(8,o,l);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:Fo(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,Gt=c;else e:for(o=i;Gt!==null;){c=Gt;var m=c.sibling,v=c.return;if(yy(c),c===o){Gt=null;break e}if(m!==null){m.return=v,Gt=m;break e}Gt=v}}}var Uw={getCacheForType:function(i){var l=nn(Mt),o=l.data.get(i);return o===void 0&&(o=i(),l.data.set(i,o)),o},cacheSignal:function(){return nn(Mt).controller.signal}},_w=typeof WeakMap=="function"?WeakMap:Map,ke=0,qe=null,we=null,Ae=0,Ve=0,Hn=null,Gr=!1,Oa=!1,Oh=!1,gr=0,mt=0,Xr=0,Vl=0,zh=0,Yn=0,za=0,rs=null,Pn=null,Lh=!1,Wu=0,Ry=0,Zu=1/0,Qu=null,Wr=null,Vt=0,Zr=null,La=null,br=0,Nh=0,kh=null,Py=null,ls=0,Kh=null;function qn(){return(ke&2)!==0&&Ae!==0?Ae&-Ae:B.T!==null?jh():Ht()}function By(){if(Yn===0)if((Ae&536870912)===0||Pe){var i=ze;ze<<=1,(ze&3932160)===0&&(ze=262144),Yn=i}else Yn=536870912;return i=_n.current,i!==null&&(i.flags|=32),Yn}function Bn(i,l,o){(i===qe&&(Ve===2||Ve===9)||i.cancelPendingCommit!==null)&&(Na(i,0),Qr(i,Ae,Yn,!1)),We(i,o),((ke&2)===0||i!==qe)&&(i===qe&&((ke&2)===0&&(Vl|=o),mt===4&&Qr(i,Ae,Yn,!1)),Fi(i))}function Oy(i,l,o){if((ke&6)!==0)throw Error(r(327));var c=!o&&(l&127)===0&&(l&i.expiredLanes)===0||ue(i,l),m=c?Yw(i,l):Fh(i,l,!0),v=c;do{if(m===0){Oa&&!c&&Qr(i,l,0,!1);break}else{if(o=i.current.alternate,v&&!jw(o)){m=Fh(i,l,!1),v=!1;continue}if(m===2){if(v=l,i.errorRecoveryDisabledLanes&v)var $=0;else $=i.pendingLanes&-536870913,$=$!==0?$:$&536870912?536870912:0;if($!==0){l=$;e:{var w=i;m=rs;var L=w.current.memoizedState.isDehydrated;if(L&&(Na(w,$).flags|=256),$=Fh(w,$,!1),$!==2){if(Oh&&!L){w.errorRecoveryDisabledLanes|=v,Vl|=v,m=4;break e}v=Pn,Pn=m,v!==null&&(Pn===null?Pn=v:Pn.push.apply(Pn,v))}m=$}if(v=!1,m!==2)continue}}if(m===1){Na(i,0),Qr(i,l,0,!0);break}e:{switch(c=i,v=m,v){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:Qr(c,l,Yn,!Gr);break e;case 2:Pn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(m=Wu+300-bt(),10<m)){if(Qr(c,l,Yn,!Gr),J(c,0,!0)!==0)break e;br=l,c.timeoutHandle=c1(zy.bind(null,c,o,Pn,Qu,Lh,l,Yn,Vl,za,Gr,v,"Throttled",-0,0),m);break e}zy(c,o,Pn,Qu,Lh,l,Yn,Vl,za,Gr,v,null,-0,0)}}break}while(!0);Fi(i)}function zy(i,l,o,c,m,v,$,w,L,H,Q,te,q,W){if(i.timeoutHandle=-1,te=l.subtreeFlags,te&8192||(te&16785408)===16785408){te={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ir},wy(l,v,te);var oe=(v&62914560)===v?Wu-bt():(v&4194048)===v?Ry-bt():0;if(oe=AD(te,oe),oe!==null){br=v,i.cancelPendingCommit=oe(Uy.bind(null,i,l,v,o,c,m,$,w,L,Q,te,null,q,W)),Qr(i,v,$,!H);return}}Uy(i,l,v,o,c,m,$,w,L)}function jw(i){for(var l=i;;){var o=l.tag;if((o===0||o===11||o===15)&&l.flags&16384&&(o=l.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var c=0;c<o.length;c++){var m=o[c],v=m.getSnapshot;m=m.value;try{if(!In(v(),m))return!1}catch{return!1}}if(o=l.child,l.subtreeFlags&16384&&o!==null)o.return=l,l=o;else{if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Qr(i,l,o,c){l&=~zh,l&=~Vl,i.suspendedLanes|=l,i.pingedLanes&=~l,c&&(i.warmLanes|=l),c=i.expirationTimes;for(var m=l;0<m;){var v=31-ot(m),$=1<<v;c[v]=-1,m&=~$}o!==0&&Ze(i,o,l)}function Ju(){return(ke&6)===0?(as(0),!1):!0}function Vh(){if(we!==null){if(Ve===0)var i=we.return;else i=we,or=Rl=null,th(i),wa=null,Uo=0,i=we;for(;i!==null;)dy(i.alternate,i),i=i.return;we=null}}function Na(i,l){var o=i.timeoutHandle;o!==-1&&(i.timeoutHandle=-1,cD(o)),o=i.cancelPendingCommit,o!==null&&(i.cancelPendingCommit=null,o()),br=0,Vh(),qe=i,we=o=lr(i.current,null),Ae=l,Ve=0,Hn=null,Gr=!1,Oa=ue(i,l),Oh=!1,za=Yn=zh=Vl=Xr=mt=0,Pn=rs=null,Lh=!1,(l&8)!==0&&(l|=l&32);var c=i.entangledLanes;if(c!==0)for(i=i.entanglements,c&=l;0<c;){var m=31-ot(c),v=1<<m;l|=i[m],c&=~v}return gr=l,Su(),o}function Ly(i,l){Se=null,B.H=Wo,l===Ca||l===Au?(l=Z0(),Ve=3):l===_f?(l=Z0(),Ve=4):Ve=l===gh?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Hn=l,we===null&&(mt=1,Uu(i,ti(l,i.current)))}function Ny(){var i=_n.current;return i===null?!0:(Ae&4194048)===Ae?li===null:(Ae&62914560)===Ae||(Ae&536870912)!==0?i===li:!1}function ky(){var i=B.H;return B.H=Wo,i===null?Wo:i}function Ky(){var i=B.A;return B.A=Uw,i}function ec(){mt=4,Gr||(Ae&4194048)!==Ae&&_n.current!==null||(Oa=!0),(Xr&134217727)===0&&(Vl&134217727)===0||qe===null||Qr(qe,Ae,Yn,!1)}function Fh(i,l,o){var c=ke;ke|=2;var m=ky(),v=Ky();(qe!==i||Ae!==l)&&(Qu=null,Na(i,l)),l=!1;var $=mt;e:do try{if(Ve!==0&&we!==null){var w=we,L=Hn;switch(Ve){case 8:Vh(),$=6;break e;case 3:case 2:case 9:case 6:_n.current===null&&(l=!0);var H=Ve;if(Ve=0,Hn=null,ka(i,w,L,H),o&&Oa){$=0;break e}break;default:H=Ve,Ve=0,Hn=null,ka(i,w,L,H)}}Hw(),$=mt;break}catch(Q){Ly(i,Q)}while(!0);return l&&i.shellSuspendCounter++,or=Rl=null,ke=c,B.H=m,B.A=v,we===null&&(qe=null,Ae=0,Su()),$}function Hw(){for(;we!==null;)Vy(we)}function Yw(i,l){var o=ke;ke|=2;var c=ky(),m=Ky();qe!==i||Ae!==l?(Qu=null,Zu=bt()+500,Na(i,l)):Oa=ue(i,l);e:do try{if(Ve!==0&&we!==null){l=we;var v=Hn;t:switch(Ve){case 1:Ve=0,Hn=null,ka(i,l,v,1);break;case 2:case 9:if(X0(v)){Ve=0,Hn=null,Fy(l);break}l=function(){Ve!==2&&Ve!==9||qe!==i||(Ve=7),Fi(i)},v.then(l,l);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:X0(v)?(Ve=0,Hn=null,Fy(l)):(Ve=0,Hn=null,ka(i,l,v,7));break;case 5:var $=null;switch(we.tag){case 26:$=we.memoizedState;case 5:case 27:var w=we;if($?C1($):w.stateNode.complete){Ve=0,Hn=null;var L=w.sibling;if(L!==null)we=L;else{var H=w.return;H!==null?(we=H,tc(H)):we=null}break t}}Ve=0,Hn=null,ka(i,l,v,5);break;case 6:Ve=0,Hn=null,ka(i,l,v,6);break;case 8:Vh(),mt=6;break e;default:throw Error(r(462))}}qw();break}catch(Q){Ly(i,Q)}while(!0);return or=Rl=null,B.H=c,B.A=m,ke=o,we!==null?0:(qe=null,Ae=0,Su(),mt)}function qw(){for(;we!==null&&!Xn();)Vy(we)}function Vy(i){var l=uy(i.alternate,i,gr);i.memoizedProps=i.pendingProps,l===null?tc(i):we=l}function Fy(i){var l=i,o=l.alternate;switch(l.tag){case 15:case 0:l=iy(o,l,l.pendingProps,l.type,void 0,Ae);break;case 11:l=iy(o,l,l.pendingProps,l.type.render,l.ref,Ae);break;case 5:th(l);default:dy(o,l),l=we=K0(l,gr),l=uy(o,l,gr)}i.memoizedProps=i.pendingProps,l===null?tc(i):we=l}function ka(i,l,o,c){or=Rl=null,th(l),wa=null,Uo=0;var m=l.return;try{if(Lw(i,m,l,o,Ae)){mt=1,Uu(i,ti(o,i.current)),we=null;return}}catch(v){if(m!==null)throw we=m,v;mt=1,Uu(i,ti(o,i.current)),we=null;return}l.flags&32768?(Pe||c===1?i=!0:Oa||(Ae&536870912)!==0?i=!1:(Gr=i=!0,(c===2||c===9||c===3||c===6)&&(c=_n.current,c!==null&&c.tag===13&&(c.flags|=16384))),Iy(l,i)):tc(l)}function tc(i){var l=i;do{if((l.flags&32768)!==0){Iy(l,Gr);return}i=l.return;var o=Kw(l.alternate,l,gr);if(o!==null){we=o;return}if(l=l.sibling,l!==null){we=l;return}we=l=i}while(l!==null);mt===0&&(mt=5)}function Iy(i,l){do{var o=Vw(i.alternate,i);if(o!==null){o.flags&=32767,we=o;return}if(o=i.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!l&&(i=i.sibling,i!==null)){we=i;return}we=i=o}while(i!==null);mt=6,we=null}function Uy(i,l,o,c,m,v,$,w,L){i.cancelPendingCommit=null;do nc();while(Vt!==0);if((ke&6)!==0)throw Error(r(327));if(l!==null){if(l===i.current)throw Error(r(177));if(v=l.lanes|l.childLanes,v|=Af,Oe(i,o,v,$,w,L),i===qe&&(we=qe=null,Ae=0),La=l,Zr=i,br=o,Nh=v,kh=m,Py=c,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,Zw(wt,function(){return qy(),null})):(i.callbackNode=null,i.callbackPriority=0),c=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||c){c=B.T,B.T=null,m=N.p,N.p=2,$=ke,ke|=4;try{Fw(i,l,o)}finally{ke=$,N.p=m,B.T=c}}Vt=1,_y(),jy(),Hy()}}function _y(){if(Vt===1){Vt=0;var i=Zr,l=La,o=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||o){o=B.T,B.T=null;var c=N.p;N.p=2;var m=ke;ke|=4;try{xy(l,i);var v=Qh,$=M0(i.containerInfo),w=v.focusedElem,L=v.selectionRange;if($!==w&&w&&w.ownerDocument&&A0(w.ownerDocument.documentElement,w)){if(L!==null&&xf(w)){var H=L.start,Q=L.end;if(Q===void 0&&(Q=H),"selectionStart"in w)w.selectionStart=H,w.selectionEnd=Math.min(Q,w.value.length);else{var te=w.ownerDocument||document,q=te&&te.defaultView||window;if(q.getSelection){var W=q.getSelection(),oe=w.textContent.length,me=Math.min(L.start,oe),je=L.end===void 0?me:Math.min(L.end,oe);!W.extend&&me>je&&($=je,je=me,me=$);var U=D0(w,me),k=D0(w,je);if(U&&k&&(W.rangeCount!==1||W.anchorNode!==U.node||W.anchorOffset!==U.offset||W.focusNode!==k.node||W.focusOffset!==k.offset)){var j=te.createRange();j.setStart(U.node,U.offset),W.removeAllRanges(),me>je?(W.addRange(j),W.extend(k.node,k.offset)):(j.setEnd(k.node,k.offset),W.addRange(j))}}}}for(te=[],W=w;W=W.parentNode;)W.nodeType===1&&te.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<te.length;w++){var ee=te[w];ee.element.scrollLeft=ee.left,ee.element.scrollTop=ee.top}}mc=!!Zh,Qh=Zh=null}finally{ke=m,N.p=c,B.T=o}}i.current=l,Vt=2}}function jy(){if(Vt===2){Vt=0;var i=Zr,l=La,o=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||o){o=B.T,B.T=null;var c=N.p;N.p=2;var m=ke;ke|=4;try{by(i,l.alternate,l)}finally{ke=m,N.p=c,B.T=o}}Vt=3}}function Hy(){if(Vt===4||Vt===3){Vt=0,xn();var i=Zr,l=La,o=br,c=Py;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Vt=5:(Vt=0,La=Zr=null,Yy(i,i.pendingLanes));var m=i.pendingLanes;if(m===0&&(Wr=null),Qt(o),l=l.stateNode,Dt&&typeof Dt.onCommitFiberRoot=="function")try{Dt.onCommitFiberRoot(yt,l,void 0,(l.current.flags&128)===128)}catch{}if(c!==null){l=B.T,m=N.p,N.p=2,B.T=null;try{for(var v=i.onRecoverableError,$=0;$<c.length;$++){var w=c[$];v(w.value,{componentStack:w.stack})}}finally{B.T=l,N.p=m}}(br&3)!==0&&nc(),Fi(i),m=i.pendingLanes,(o&261930)!==0&&(m&42)!==0?i===Kh?ls++:(ls=0,Kh=i):ls=0,as(0)}}function Yy(i,l){(i.pooledCacheLanes&=l)===0&&(l=i.pooledCache,l!=null&&(i.pooledCache=null,Fo(l)))}function nc(){return _y(),jy(),Hy(),qy()}function qy(){if(Vt!==5)return!1;var i=Zr,l=Nh;Nh=0;var o=Qt(br),c=B.T,m=N.p;try{N.p=32>o?32:o,B.T=null,o=kh,kh=null;var v=Zr,$=br;if(Vt=0,La=Zr=null,br=0,(ke&6)!==0)throw Error(r(331));var w=ke;if(ke|=4,Ay(v.current),Cy(v,v.current,$,o),ke=w,as(0,!1),Dt&&typeof Dt.onPostCommitFiberRoot=="function")try{Dt.onPostCommitFiberRoot(yt,v)}catch{}return!0}finally{N.p=m,B.T=c,Yy(i,l)}}function Gy(i,l,o){l=ti(o,l),l=vh(i.stateNode,l,2),i=jr(i,l,2),i!==null&&(We(i,2),Fi(i))}function Fe(i,l,o){if(i.tag===3)Gy(i,i,o);else for(;l!==null;){if(l.tag===3){Gy(l,i,o);break}else if(l.tag===1){var c=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Wr===null||!Wr.has(c))){i=ti(o,i),o=Xb(2),c=jr(l,o,2),c!==null&&(Wb(o,c,l,i),We(c,2),Fi(c));break}}l=l.return}}function Ih(i,l,o){var c=i.pingCache;if(c===null){c=i.pingCache=new _w;var m=new Set;c.set(l,m)}else m=c.get(l),m===void 0&&(m=new Set,c.set(l,m));m.has(o)||(Oh=!0,m.add(o),i=Gw.bind(null,i,l,o),l.then(i,i))}function Gw(i,l,o){var c=i.pingCache;c!==null&&c.delete(l),i.pingedLanes|=i.suspendedLanes&o,i.warmLanes&=~o,qe===i&&(Ae&o)===o&&(mt===4||mt===3&&(Ae&62914560)===Ae&&300>bt()-Wu?(ke&2)===0&&Na(i,0):zh|=o,za===Ae&&(za=0)),Fi(i)}function Xy(i,l){l===0&&(l=Ge()),i=Dl(i,l),i!==null&&(We(i,l),Fi(i))}function Xw(i){var l=i.memoizedState,o=0;l!==null&&(o=l.retryLane),Xy(i,o)}function Ww(i,l){var o=0;switch(i.tag){case 31:case 13:var c=i.stateNode,m=i.memoizedState;m!==null&&(o=m.retryLane);break;case 19:c=i.stateNode;break;case 22:c=i.stateNode._retryCache;break;default:throw Error(r(314))}c!==null&&c.delete(l),Xy(i,o)}function Zw(i,l){return nt(i,l)}var ic=null,Ka=null,Uh=!1,rc=!1,_h=!1,Jr=0;function Fi(i){i!==Ka&&i.next===null&&(Ka===null?ic=Ka=i:Ka=Ka.next=i),rc=!0,Uh||(Uh=!0,Jw())}function as(i,l){if(!_h&&rc){_h=!0;do for(var o=!1,c=ic;c!==null;){if(i!==0){var m=c.pendingLanes;if(m===0)var v=0;else{var $=c.suspendedLanes,w=c.pingedLanes;v=(1<<31-ot(42|i)+1)-1,v&=m&~($&~w),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(o=!0,Jy(c,v))}else v=Ae,v=J(c,c===qe?v:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(v&3)===0||ue(c,v)||(o=!0,Jy(c,v));c=c.next}while(o);_h=!1}}function Qw(){Wy()}function Wy(){rc=Uh=!1;var i=0;Jr!==0&&uD()&&(i=Jr);for(var l=bt(),o=null,c=ic;c!==null;){var m=c.next,v=Zy(c,l);v===0?(c.next=null,o===null?ic=m:o.next=m,m===null&&(Ka=o)):(o=c,(i!==0||(v&3)!==0)&&(rc=!0)),c=m}Vt!==0&&Vt!==5||as(i),Jr!==0&&(Jr=0)}function Zy(i,l){for(var o=i.suspendedLanes,c=i.pingedLanes,m=i.expirationTimes,v=i.pendingLanes&-62914561;0<v;){var $=31-ot(v),w=1<<$,L=m[$];L===-1?((w&o)===0||(w&c)!==0)&&(m[$]=be(w,l)):L<=l&&(i.expiredLanes|=w),v&=~w}if(l=qe,o=Ae,o=J(i,i===l?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),c=i.callbackNode,o===0||i===l&&(Ve===2||Ve===9)||i.cancelPendingCommit!==null)return c!==null&&c!==null&&on(c),i.callbackNode=null,i.callbackPriority=0;if((o&3)===0||ue(i,o)){if(l=o&-o,l===i.callbackPriority)return l;switch(c!==null&&on(c),Qt(o)){case 2:case 8:o=Ct;break;case 32:o=wt;break;case 268435456:o=Li;break;default:o=wt}return c=Qy.bind(null,i),o=nt(o,c),i.callbackPriority=l,i.callbackNode=o,l}return c!==null&&c!==null&&on(c),i.callbackPriority=2,i.callbackNode=null,2}function Qy(i,l){if(Vt!==0&&Vt!==5)return i.callbackNode=null,i.callbackPriority=0,null;var o=i.callbackNode;if(nc()&&i.callbackNode!==o)return null;var c=Ae;return c=J(i,i===qe?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),c===0?null:(Oy(i,c,l),Zy(i,bt()),i.callbackNode!=null&&i.callbackNode===o?Qy.bind(null,i):null)}function Jy(i,l){if(nc())return null;Oy(i,l,!0)}function Jw(){dD(function(){(ke&6)!==0?nt(kn,Qw):Wy()})}function jh(){if(Jr===0){var i=xa;i===0&&(i=ve,ve<<=1,(ve&261888)===0&&(ve=256)),Jr=i}return Jr}function e1(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:fu(""+i)}function t1(i,l){var o=l.ownerDocument.createElement("input");return o.name=l.name,o.value=l.value,i.id&&o.setAttribute("form",i.id),l.parentNode.insertBefore(o,l),i=new FormData(i),o.parentNode.removeChild(o),i}function eD(i,l,o,c,m){if(l==="submit"&&o&&o.stateNode===m){var v=e1((m[lt]||null).action),$=c.submitter;$&&(l=(l=$[lt]||null)?e1(l.formAction):$.getAttribute("formAction"),l!==null&&(v=l,$=null));var w=new vu("action","action",null,c,m);i.push({event:w,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Jr!==0){var L=$?t1(m,$):new FormData(m);ch(o,{pending:!0,data:L,method:m.method,action:v},null,L)}}else typeof v=="function"&&(w.preventDefault(),L=$?t1(m,$):new FormData(m),ch(o,{pending:!0,data:L,method:m.method,action:v},v,L))},currentTarget:m}]})}}for(var Hh=0;Hh<Df.length;Hh++){var Yh=Df[Hh],tD=Yh.toLowerCase(),nD=Yh[0].toUpperCase()+Yh.slice(1);Ti(tD,"on"+nD)}Ti(B0,"onAnimationEnd"),Ti(O0,"onAnimationIteration"),Ti(z0,"onAnimationStart"),Ti("dblclick","onDoubleClick"),Ti("focusin","onFocus"),Ti("focusout","onBlur"),Ti(bw,"onTransitionRun"),Ti(yw,"onTransitionStart"),Ti(Sw,"onTransitionCancel"),Ti(L0,"onTransitionEnd"),dt("onMouseEnter",["mouseout","mouseover"]),dt("onMouseLeave",["mouseout","mouseover"]),dt("onPointerEnter",["pointerout","pointerover"]),dt("onPointerLeave",["pointerout","pointerover"]),Kt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var os="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(" "),iD=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(os));function n1(i,l){l=(l&4)!==0;for(var o=0;o<i.length;o++){var c=i[o],m=c.event;c=c.listeners;e:{var v=void 0;if(l)for(var $=c.length-1;0<=$;$--){var w=c[$],L=w.instance,H=w.currentTarget;if(w=w.listener,L!==v&&m.isPropagationStopped())break e;v=w,m.currentTarget=H;try{v(m)}catch(Q){yu(Q)}m.currentTarget=null,v=L}else for($=0;$<c.length;$++){if(w=c[$],L=w.instance,H=w.currentTarget,w=w.listener,L!==v&&m.isPropagationStopped())break e;v=w,m.currentTarget=H;try{v(m)}catch(Q){yu(Q)}m.currentTarget=null,v=L}}}}function De(i,l){var o=l[Ni];o===void 0&&(o=l[Ni]=new Set);var c=i+"__bubble";o.has(c)||(i1(l,i,2,!1),o.add(c))}function qh(i,l,o){var c=0;l&&(c|=4),i1(o,i,c,l)}var lc="_reactListening"+Math.random().toString(36).slice(2);function Gh(i){if(!i[lc]){i[lc]=!0,Wn.forEach(function(o){o!=="selectionchange"&&(iD.has(o)||qh(o,!1,i),qh(o,!0,i))});var l=i.nodeType===9?i:i.ownerDocument;l===null||l[lc]||(l[lc]=!0,qh("selectionchange",!1,l))}}function i1(i,l,o,c){switch(B1(l)){case 2:var m=PD;break;case 8:m=BD;break;default:m=um}o=m.bind(null,l,o,i),m=void 0,!mf||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(m=!0),c?m!==void 0?i.addEventListener(l,o,{capture:!0,passive:m}):i.addEventListener(l,o,!0):m!==void 0?i.addEventListener(l,o,{passive:m}):i.addEventListener(l,o,!1)}function Xh(i,l,o,c,m){var v=c;if((l&1)===0&&(l&2)===0&&c!==null)e:for(;;){if(c===null)return;var $=c.tag;if($===3||$===4){var w=c.stateNode.containerInfo;if(w===m)break;if($===4)for($=c.return;$!==null;){var L=$.tag;if((L===3||L===4)&&$.stateNode.containerInfo===m)return;$=$.return}for(;w!==null;){if($=kt(w),$===null)return;if(L=$.tag,L===5||L===6||L===26||L===27){c=v=$;continue e}w=w.parentNode}}c=c.return}s0(function(){var H=v,Q=ff(o),te=[];e:{var q=N0.get(i);if(q!==void 0){var W=vu,oe=i;switch(i){case"keypress":if(mu(o)===0)break e;case"keydown":case"keyup":W=WC;break;case"focusin":oe="focus",W=bf;break;case"focusout":oe="blur",W=bf;break;case"beforeblur":case"afterblur":W=bf;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":W=d0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=KC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=JC;break;case B0:case O0:case z0:W=IC;break;case L0:W=tw;break;case"scroll":case"scrollend":W=NC;break;case"wheel":W=iw;break;case"copy":case"cut":case"paste":W=_C;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=h0;break;case"toggle":case"beforetoggle":W=lw}var me=(l&4)!==0,je=!me&&(i==="scroll"||i==="scrollend"),U=me?q!==null?q+"Capture":null:q;me=[];for(var k=H,j;k!==null;){var ee=k;if(j=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||j===null||U===null||(ee=Mo(k,U),ee!=null&&me.push(ss(k,ee,j))),je)break;k=k.return}0<me.length&&(q=new W(q,oe,null,o,Q),te.push({event:q,listeners:me}))}}if((l&7)===0){e:{if(q=i==="mouseover"||i==="pointerover",W=i==="mouseout"||i==="pointerout",q&&o!==df&&(oe=o.relatedTarget||o.fromElement)&&(kt(oe)||oe[Jt]))break e;if((W||q)&&(q=Q.window===Q?Q:(q=Q.ownerDocument)?q.defaultView||q.parentWindow:window,W?(oe=o.relatedTarget||o.toElement,W=H,oe=oe?kt(oe):null,oe!==null&&(je=s(oe),me=oe.tag,oe!==je||me!==5&&me!==27&&me!==6)&&(oe=null)):(W=null,oe=H),W!==oe)){if(me=d0,ee="onMouseLeave",U="onMouseEnter",k="mouse",(i==="pointerout"||i==="pointerover")&&(me=h0,ee="onPointerLeave",U="onPointerEnter",k="pointer"),je=W==null?q:Fn(W),j=oe==null?q:Fn(oe),q=new me(ee,k+"leave",W,o,Q),q.target=je,q.relatedTarget=j,ee=null,kt(Q)===H&&(me=new me(U,k+"enter",oe,o,Q),me.target=j,me.relatedTarget=je,ee=me),je=ee,W&&oe)t:{for(me=rD,U=W,k=oe,j=0,ee=U;ee;ee=me(ee))j++;ee=0;for(var he=k;he;he=me(he))ee++;for(;0<j-ee;)U=me(U),j--;for(;0<ee-j;)k=me(k),ee--;for(;j--;){if(U===k||k!==null&&U===k.alternate){me=U;break t}U=me(U),k=me(k)}me=null}else me=null;W!==null&&r1(te,q,W,me,!1),oe!==null&&je!==null&&r1(te,je,oe,me,!0)}}e:{if(q=H?Fn(H):window,W=q.nodeName&&q.nodeName.toLowerCase(),W==="select"||W==="input"&&q.type==="file")var Le=$0;else if(y0(q))if(E0)Le=pw;else{Le=hw;var ce=fw}else W=q.nodeName,!W||W.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?H&&cf(H.elementType)&&(Le=$0):Le=mw;if(Le&&(Le=Le(i,H))){S0(te,Le,o,Q);break e}ce&&ce(i,q,H),i==="focusout"&&H&&q.type==="number"&&H.memoizedProps.value!=null&&uf(q,"number",q.value)}switch(ce=H?Fn(H):window,i){case"focusin":(y0(ce)||ce.contentEditable==="true")&&(pa=ce,Tf=H,ko=null);break;case"focusout":ko=Tf=pa=null;break;case"mousedown":Cf=!0;break;case"contextmenu":case"mouseup":case"dragend":Cf=!1,R0(te,o,Q);break;case"selectionchange":if(gw)break;case"keydown":case"keyup":R0(te,o,Q)}var Ee;if(Sf)e:{switch(i){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else ma?g0(i,o)&&(Me="onCompositionEnd"):i==="keydown"&&o.keyCode===229&&(Me="onCompositionStart");Me&&(m0&&o.locale!=="ko"&&(ma||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&ma&&(Ee=u0()):(kr=Q,pf="value"in kr?kr.value:kr.textContent,ma=!0)),ce=ac(H,Me),0<ce.length&&(Me=new f0(Me,i,null,o,Q),te.push({event:Me,listeners:ce}),Ee?Me.data=Ee:(Ee=b0(o),Ee!==null&&(Me.data=Ee)))),(Ee=ow?sw(i,o):uw(i,o))&&(Me=ac(H,"onBeforeInput"),0<Me.length&&(ce=new f0("onBeforeInput","beforeinput",null,o,Q),te.push({event:ce,listeners:Me}),ce.data=Ee)),eD(te,i,H,o,Q)}n1(te,l)})}function ss(i,l,o){return{instance:i,listener:l,currentTarget:o}}function ac(i,l){for(var o=l+"Capture",c=[];i!==null;){var m=i,v=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||v===null||(m=Mo(i,o),m!=null&&c.unshift(ss(i,m,v)),m=Mo(i,l),m!=null&&c.push(ss(i,m,v))),i.tag===3)return c;i=i.return}return[]}function rD(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function r1(i,l,o,c,m){for(var v=l._reactName,$=[];o!==null&&o!==c;){var w=o,L=w.alternate,H=w.stateNode;if(w=w.tag,L!==null&&L===c)break;w!==5&&w!==26&&w!==27||H===null||(L=H,m?(H=Mo(o,v),H!=null&&$.unshift(ss(o,H,L))):m||(H=Mo(o,v),H!=null&&$.push(ss(o,H,L)))),o=o.return}$.length!==0&&i.push({event:l,listeners:$})}var lD=/\r\n?/g,aD=/\u0000|\uFFFD/g;function l1(i){return(typeof i=="string"?i:""+i).replace(lD,`
`).replace(aD,"")}function a1(i,l){return l=l1(l),l1(i)===l}function _e(i,l,o,c,m,v){switch(o){case"children":typeof c=="string"?l==="body"||l==="textarea"&&c===""||da(i,c):(typeof c=="number"||typeof c=="bigint")&&l!=="body"&&da(i,""+c);break;case"className":yn(i,"class",c);break;case"tabIndex":yn(i,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":yn(i,o,c);break;case"style":a0(i,c,v);break;case"data":if(l!=="object"){yn(i,"data",c);break}case"src":case"href":if(c===""&&(l!=="a"||o!=="href")){i.removeAttribute(o);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){i.removeAttribute(o);break}c=fu(""+c),i.setAttribute(o,c);break;case"action":case"formAction":if(typeof c=="function"){i.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 v=="function"&&(o==="formAction"?(l!=="input"&&_e(i,l,"name",m.name,m,null),_e(i,l,"formEncType",m.formEncType,m,null),_e(i,l,"formMethod",m.formMethod,m,null),_e(i,l,"formTarget",m.formTarget,m,null)):(_e(i,l,"encType",m.encType,m,null),_e(i,l,"method",m.method,m,null),_e(i,l,"target",m.target,m,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){i.removeAttribute(o);break}c=fu(""+c),i.setAttribute(o,c);break;case"onClick":c!=null&&(i.onclick=ir);break;case"onScroll":c!=null&&De("scroll",i);break;case"onScrollEnd":c!=null&&De("scrollend",i);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(o=c.__html,o!=null){if(m.children!=null)throw Error(r(60));i.innerHTML=o}}break;case"multiple":i.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":i.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"){i.removeAttribute("xlink:href");break}o=fu(""+c),i.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"?i.setAttribute(o,""+c):i.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"?i.setAttribute(o,""):i.removeAttribute(o);break;case"capture":case"download":c===!0?i.setAttribute(o,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?i.setAttribute(o,c):i.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?i.setAttribute(o,c):i.removeAttribute(o);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?i.removeAttribute(o):i.setAttribute(o,c);break;case"popover":De("beforetoggle",i),De("toggle",i),xi(i,"popover",c);break;case"xlinkActuate":ft(i,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":ft(i,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":ft(i,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":ft(i,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":ft(i,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":ft(i,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":ft(i,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":ft(i,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":ft(i,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":xi(i,"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=zC.get(o)||o,xi(i,o,c))}}function Wh(i,l,o,c,m,v){switch(o){case"style":a0(i,c,v);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(o=c.__html,o!=null){if(m.children!=null)throw Error(r(60));i.innerHTML=o}}break;case"children":typeof c=="string"?da(i,c):(typeof c=="number"||typeof c=="bigint")&&da(i,""+c);break;case"onScroll":c!=null&&De("scroll",i);break;case"onScrollEnd":c!=null&&De("scrollend",i);break;case"onClick":c!=null&&(i.onclick=ir);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zn.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(m=o.endsWith("Capture"),l=o.slice(2,m?o.length-7:void 0),v=i[lt]||null,v=v!=null?v[o]:null,typeof v=="function"&&i.removeEventListener(l,v,m),typeof c=="function")){typeof v!="function"&&v!==null&&(o in i?i[o]=null:i.hasAttribute(o)&&i.removeAttribute(o)),i.addEventListener(l,c,m);break e}o in i?i[o]=c:c===!0?i.setAttribute(o,""):xi(i,o,c)}}}function ln(i,l,o){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",i),De("load",i);var c=!1,m=!1,v;for(v in o)if(o.hasOwnProperty(v)){var $=o[v];if($!=null)switch(v){case"src":c=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:_e(i,l,v,$,o,null)}}m&&_e(i,l,"srcSet",o.srcSet,o,null),c&&_e(i,l,"src",o.src,o,null);return;case"input":De("invalid",i);var w=v=$=m=null,L=null,H=null;for(c in o)if(o.hasOwnProperty(c)){var Q=o[c];if(Q!=null)switch(c){case"name":m=Q;break;case"type":$=Q;break;case"checked":L=Q;break;case"defaultChecked":H=Q;break;case"value":v=Q;break;case"defaultValue":w=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,l));break;default:_e(i,l,c,Q,o,null)}}n0(i,v,w,L,H,$,m,!1);return;case"select":De("invalid",i),c=$=v=null;for(m in o)if(o.hasOwnProperty(m)&&(w=o[m],w!=null))switch(m){case"value":v=w;break;case"defaultValue":$=w;break;case"multiple":c=w;default:_e(i,l,m,w,o,null)}l=v,o=$,i.multiple=!!c,l!=null?ca(i,!!c,l,!1):o!=null&&ca(i,!!c,o,!0);return;case"textarea":De("invalid",i),v=m=c=null;for($ in o)if(o.hasOwnProperty($)&&(w=o[$],w!=null))switch($){case"value":c=w;break;case"defaultValue":m=w;break;case"children":v=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(91));break;default:_e(i,l,$,w,o,null)}r0(i,c,m,v);return;case"option":for(L in o)if(o.hasOwnProperty(L)&&(c=o[L],c!=null))switch(L){case"selected":i.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:_e(i,l,L,c,o,null)}return;case"dialog":De("beforetoggle",i),De("toggle",i),De("cancel",i),De("close",i);break;case"iframe":case"object":De("load",i);break;case"video":case"audio":for(c=0;c<os.length;c++)De(os[c],i);break;case"image":De("error",i),De("load",i);break;case"details":De("toggle",i);break;case"embed":case"source":case"link":De("error",i),De("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in o)if(o.hasOwnProperty(H)&&(c=o[H],c!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:_e(i,l,H,c,o,null)}return;default:if(cf(l)){for(Q in o)o.hasOwnProperty(Q)&&(c=o[Q],c!==void 0&&Wh(i,l,Q,c,o,void 0));return}}for(w in o)o.hasOwnProperty(w)&&(c=o[w],c!=null&&_e(i,l,w,c,o,null))}function oD(i,l,o,c){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,v=null,$=null,w=null,L=null,H=null,Q=null;for(W in o){var te=o[W];if(o.hasOwnProperty(W)&&te!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":L=te;default:c.hasOwnProperty(W)||_e(i,l,W,null,c,te)}}for(var q in c){var W=c[q];if(te=o[q],c.hasOwnProperty(q)&&(W!=null||te!=null))switch(q){case"type":v=W;break;case"name":m=W;break;case"checked":H=W;break;case"defaultChecked":Q=W;break;case"value":$=W;break;case"defaultValue":w=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(r(137,l));break;default:W!==te&&_e(i,l,q,W,c,te)}}sf(i,$,w,L,H,Q,v,m);return;case"select":W=$=w=q=null;for(v in o)if(L=o[v],o.hasOwnProperty(v)&&L!=null)switch(v){case"value":break;case"multiple":W=L;default:c.hasOwnProperty(v)||_e(i,l,v,null,c,L)}for(m in c)if(v=c[m],L=o[m],c.hasOwnProperty(m)&&(v!=null||L!=null))switch(m){case"value":q=v;break;case"defaultValue":w=v;break;case"multiple":$=v;default:v!==L&&_e(i,l,m,v,c,L)}l=w,o=$,c=W,q!=null?ca(i,!!o,q,!1):!!c!=!!o&&(l!=null?ca(i,!!o,l,!0):ca(i,!!o,o?[]:"",!1));return;case"textarea":W=q=null;for(w in o)if(m=o[w],o.hasOwnProperty(w)&&m!=null&&!c.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:_e(i,l,w,null,c,m)}for($ in c)if(m=c[$],v=o[$],c.hasOwnProperty($)&&(m!=null||v!=null))switch($){case"value":q=m;break;case"defaultValue":W=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:m!==v&&_e(i,l,$,m,c,v)}i0(i,q,W);return;case"option":for(var oe in o)if(q=o[oe],o.hasOwnProperty(oe)&&q!=null&&!c.hasOwnProperty(oe))switch(oe){case"selected":i.selected=!1;break;default:_e(i,l,oe,null,c,q)}for(L in c)if(q=c[L],W=o[L],c.hasOwnProperty(L)&&q!==W&&(q!=null||W!=null))switch(L){case"selected":i.selected=q&&typeof q!="function"&&typeof q!="symbol";break;default:_e(i,l,L,q,c,W)}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 me in o)q=o[me],o.hasOwnProperty(me)&&q!=null&&!c.hasOwnProperty(me)&&_e(i,l,me,null,c,q);for(H in c)if(q=c[H],W=o[H],c.hasOwnProperty(H)&&q!==W&&(q!=null||W!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,l));break;default:_e(i,l,H,q,c,W)}return;default:if(cf(l)){for(var je in o)q=o[je],o.hasOwnProperty(je)&&q!==void 0&&!c.hasOwnProperty(je)&&Wh(i,l,je,void 0,c,q);for(Q in c)q=c[Q],W=o[Q],!c.hasOwnProperty(Q)||q===W||q===void 0&&W===void 0||Wh(i,l,Q,q,c,W);return}}for(var U in o)q=o[U],o.hasOwnProperty(U)&&q!=null&&!c.hasOwnProperty(U)&&_e(i,l,U,null,c,q);for(te in c)q=c[te],W=o[te],!c.hasOwnProperty(te)||q===W||q==null&&W==null||_e(i,l,te,q,c,W)}function o1(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sD(){if(typeof performance.getEntriesByType=="function"){for(var i=0,l=0,o=performance.getEntriesByType("resource"),c=0;c<o.length;c++){var m=o[c],v=m.transferSize,$=m.initiatorType,w=m.duration;if(v&&w&&o1($)){for($=0,w=m.responseEnd,c+=1;c<o.length;c++){var L=o[c],H=L.startTime;if(H>w)break;var Q=L.transferSize,te=L.initiatorType;Q&&o1(te)&&(L=L.responseEnd,$+=Q*(L<w?1:(w-H)/(L-H)))}if(--c,l+=8*(v+$)/(m.duration/1e3),i++,10<i)break}}if(0<i)return l/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var Zh=null,Qh=null;function oc(i){return i.nodeType===9?i:i.ownerDocument}function s1(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function u1(i,l){if(i===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&l==="foreignObject"?0:i}function Jh(i,l){return i==="textarea"||i==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var em=null;function uD(){var i=window.event;return i&&i.type==="popstate"?i===em?!1:(em=i,!0):(em=null,!1)}var c1=typeof setTimeout=="function"?setTimeout:void 0,cD=typeof clearTimeout=="function"?clearTimeout:void 0,d1=typeof Promise=="function"?Promise:void 0,dD=typeof queueMicrotask=="function"?queueMicrotask:typeof d1<"u"?function(i){return d1.resolve(null).then(i).catch(fD)}:c1;function fD(i){setTimeout(function(){throw i})}function el(i){return i==="head"}function f1(i,l){var o=l,c=0;do{var m=o.nextSibling;if(i.removeChild(o),m&&m.nodeType===8)if(o=m.data,o==="/$"||o==="/&"){if(c===0){i.removeChild(m),Ua(l);return}c--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")c++;else if(o==="html")us(i.ownerDocument.documentElement);else if(o==="head"){o=i.ownerDocument.head,us(o);for(var v=o.firstChild;v;){var $=v.nextSibling,w=v.nodeName;v[gn]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&v.rel.toLowerCase()==="stylesheet"||o.removeChild(v),v=$}}else o==="body"&&us(i.ownerDocument.body);o=m}while(o);Ua(l)}function h1(i,l){var o=i;i=0;do{var c=o.nextSibling;if(o.nodeType===1?l?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(l?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(i===0)break;i--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||i++;o=c}while(o)}function tm(i){var l=i.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var o=l;switch(l=l.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":tm(o),Ei(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}i.removeChild(o)}}function hD(i,l,o,c){for(;i.nodeType===1;){var m=o;if(i.nodeName.toLowerCase()!==l.toLowerCase()){if(!c&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(c){if(!i[gn])switch(l){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(v=i.getAttribute("rel"),v==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(v!==m.rel||i.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||i.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||i.getAttribute("title")!==(m.title==null?null:m.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(v=i.getAttribute("src"),(v!==(m.src==null?null:m.src)||i.getAttribute("type")!==(m.type==null?null:m.type)||i.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&v&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(l==="input"&&i.type==="hidden"){var v=m.name==null?null:""+m.name;if(m.type==="hidden"&&i.getAttribute("name")===v)return i}else return i;if(i=ai(i.nextSibling),i===null)break}return null}function mD(i,l,o){if(l==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!o||(i=ai(i.nextSibling),i===null))return null;return i}function m1(i,l){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!l||(i=ai(i.nextSibling),i===null))return null;return i}function nm(i){return i.data==="$?"||i.data==="$~"}function im(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function pD(i,l){var o=i.ownerDocument;if(i.data==="$~")i._reactRetry=l;else if(i.data!=="$?"||o.readyState!=="loading")l();else{var c=function(){l(),o.removeEventListener("DOMContentLoaded",c)};o.addEventListener("DOMContentLoaded",c),i._reactRetry=c}}function ai(i){for(;i!=null;i=i.nextSibling){var l=i.nodeType;if(l===1||l===3)break;if(l===8){if(l=i.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return i}var rm=null;function p1(i){i=i.nextSibling;for(var l=0;i;){if(i.nodeType===8){var o=i.data;if(o==="/$"||o==="/&"){if(l===0)return ai(i.nextSibling);l--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||l++}i=i.nextSibling}return null}function v1(i){i=i.previousSibling;for(var l=0;i;){if(i.nodeType===8){var o=i.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(l===0)return i;l--}else o!=="/$"&&o!=="/&"||l++}i=i.previousSibling}return null}function g1(i,l,o){switch(l=oc(o),i){case"html":if(i=l.documentElement,!i)throw Error(r(452));return i;case"head":if(i=l.head,!i)throw Error(r(453));return i;case"body":if(i=l.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function us(i){for(var l=i.attributes;l.length;)i.removeAttributeNode(l[0]);Ei(i)}var oi=new Map,b1=new Set;function sc(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var yr=N.d;N.d={f:vD,r:gD,D:bD,C:yD,L:SD,m:$D,X:xD,S:ED,M:TD};function vD(){var i=yr.f(),l=Ju();return i||l}function gD(i){var l=Vn(i);l!==null&&l.tag===5&&l.type==="form"?Lb(l):yr.r(i)}var Va=typeof document>"u"?null:document;function y1(i,l,o){var c=Va;if(c&&typeof l=="string"&&l){var m=Jn(l);m='link[rel="'+i+'"][href="'+m+'"]',typeof o=="string"&&(m+='[crossorigin="'+o+'"]'),b1.has(m)||(b1.add(m),i={rel:i,crossOrigin:o,href:l},c.querySelector(m)===null&&(l=c.createElement("link"),ln(l,"link",i),Ye(l),c.head.appendChild(l)))}}function bD(i){yr.D(i),y1("dns-prefetch",i,null)}function yD(i,l){yr.C(i,l),y1("preconnect",i,l)}function SD(i,l,o){yr.L(i,l,o);var c=Va;if(c&&i&&l){var m='link[rel="preload"][as="'+Jn(l)+'"]';l==="image"&&o&&o.imageSrcSet?(m+='[imagesrcset="'+Jn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(m+='[imagesizes="'+Jn(o.imageSizes)+'"]')):m+='[href="'+Jn(i)+'"]';var v=m;switch(l){case"style":v=Fa(i);break;case"script":v=Ia(i)}oi.has(v)||(i=g({rel:"preload",href:l==="image"&&o&&o.imageSrcSet?void 0:i,as:l},o),oi.set(v,i),c.querySelector(m)!==null||l==="style"&&c.querySelector(cs(v))||l==="script"&&c.querySelector(ds(v))||(l=c.createElement("link"),ln(l,"link",i),Ye(l),c.head.appendChild(l)))}}function $D(i,l){yr.m(i,l);var o=Va;if(o&&i){var c=l&&typeof l.as=="string"?l.as:"script",m='link[rel="modulepreload"][as="'+Jn(c)+'"][href="'+Jn(i)+'"]',v=m;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Ia(i)}if(!oi.has(v)&&(i=g({rel:"modulepreload",href:i},l),oi.set(v,i),o.querySelector(m)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(ds(v)))return}c=o.createElement("link"),ln(c,"link",i),Ye(c),o.head.appendChild(c)}}}function ED(i,l,o){yr.S(i,l,o);var c=Va;if(c&&i){var m=bn(c).hoistableStyles,v=Fa(i);l=l||"default";var $=m.get(v);if(!$){var w={loading:0,preload:null};if($=c.querySelector(cs(v)))w.loading=5;else{i=g({rel:"stylesheet",href:i,"data-precedence":l},o),(o=oi.get(v))&&lm(i,o);var L=$=c.createElement("link");Ye(L),ln(L,"link",i),L._p=new Promise(function(H,Q){L.onload=H,L.onerror=Q}),L.addEventListener("load",function(){w.loading|=1}),L.addEventListener("error",function(){w.loading|=2}),w.loading|=4,uc($,l,c)}$={type:"stylesheet",instance:$,count:1,state:w},m.set(v,$)}}}function xD(i,l){yr.X(i,l);var o=Va;if(o&&i){var c=bn(o).hoistableScripts,m=Ia(i),v=c.get(m);v||(v=o.querySelector(ds(m)),v||(i=g({src:i,async:!0},l),(l=oi.get(m))&&am(i,l),v=o.createElement("script"),Ye(v),ln(v,"link",i),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},c.set(m,v))}}function TD(i,l){yr.M(i,l);var o=Va;if(o&&i){var c=bn(o).hoistableScripts,m=Ia(i),v=c.get(m);v||(v=o.querySelector(ds(m)),v||(i=g({src:i,async:!0,type:"module"},l),(l=oi.get(m))&&am(i,l),v=o.createElement("script"),Ye(v),ln(v,"link",i),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},c.set(m,v))}}function S1(i,l,o,c){var m=(m=xe.current)?sc(m):null;if(!m)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(l=Fa(o.href),o=bn(m).hoistableStyles,c=o.get(l),c||(c={type:"style",instance:null,count:0,state:null},o.set(l,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){i=Fa(o.href);var v=bn(m).hoistableStyles,$=v.get(i);if($||(m=m.ownerDocument||m,$={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(i,$),(v=m.querySelector(cs(i)))&&!v._p&&($.instance=v,$.state.loading=5),oi.has(i)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},oi.set(i,o),v||CD(m,i,o,$.state))),l&&c===null)throw Error(r(528,""));return $}if(l&&c!==null)throw Error(r(529,""));return null;case"script":return l=o.async,o=o.src,typeof o=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Ia(o),o=bn(m).hoistableScripts,c=o.get(l),c||(c={type:"script",instance:null,count:0,state:null},o.set(l,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Fa(i){return'href="'+Jn(i)+'"'}function cs(i){return'link[rel="stylesheet"]['+i+"]"}function $1(i){return g({},i,{"data-precedence":i.precedence,precedence:null})}function CD(i,l,o,c){i.querySelector('link[rel="preload"][as="style"]['+l+"]")?c.loading=1:(l=i.createElement("link"),c.preload=l,l.addEventListener("load",function(){return c.loading|=1}),l.addEventListener("error",function(){return c.loading|=2}),ln(l,"link",o),Ye(l),i.head.appendChild(l))}function Ia(i){return'[src="'+Jn(i)+'"]'}function ds(i){return"script[async]"+i}function E1(i,l,o){if(l.count++,l.instance===null)switch(l.type){case"style":var c=i.querySelector('style[data-href~="'+Jn(o.href)+'"]');if(c)return l.instance=c,Ye(c),c;var m=g({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return c=(i.ownerDocument||i).createElement("style"),Ye(c),ln(c,"style",m),uc(c,o.precedence,i),l.instance=c;case"stylesheet":m=Fa(o.href);var v=i.querySelector(cs(m));if(v)return l.state.loading|=4,l.instance=v,Ye(v),v;c=$1(o),(m=oi.get(m))&&lm(c,m),v=(i.ownerDocument||i).createElement("link"),Ye(v);var $=v;return $._p=new Promise(function(w,L){$.onload=w,$.onerror=L}),ln(v,"link",c),l.state.loading|=4,uc(v,o.precedence,i),l.instance=v;case"script":return v=Ia(o.src),(m=i.querySelector(ds(v)))?(l.instance=m,Ye(m),m):(c=o,(m=oi.get(v))&&(c=g({},o),am(c,m)),i=i.ownerDocument||i,m=i.createElement("script"),Ye(m),ln(m,"link",c),i.head.appendChild(m),l.instance=m);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(c=l.instance,l.state.loading|=4,uc(c,o.precedence,i));return l.instance}function uc(i,l,o){for(var c=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=c.length?c[c.length-1]:null,v=m,$=0;$<c.length;$++){var w=c[$];if(w.dataset.precedence===l)v=w;else if(v!==m)break}v?v.parentNode.insertBefore(i,v.nextSibling):(l=o.nodeType===9?o.head:o,l.insertBefore(i,l.firstChild))}function lm(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.title==null&&(i.title=l.title)}function am(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.integrity==null&&(i.integrity=l.integrity)}var cc=null;function x1(i,l,o){if(cc===null){var c=new Map,m=cc=new Map;m.set(o,c)}else m=cc,c=m.get(o),c||(c=new Map,m.set(o,c));if(c.has(i))return c;for(c.set(i,null),o=o.getElementsByTagName(i),m=0;m<o.length;m++){var v=o[m];if(!(v[gn]||v[He]||i==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var $=v.getAttribute(l)||"";$=i+$;var w=c.get($);w?w.push(v):c.set($,[v])}}return c}function T1(i,l,o){i=i.ownerDocument||i,i.head.insertBefore(o,l==="title"?i.querySelector("head > title"):null)}function wD(i,l,o){if(o===1||l.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return i=l.disabled,typeof l.precedence=="string"&&i==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function C1(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function DD(i,l,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=Fa(c.href),v=l.querySelector(cs(m));if(v){l=v._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(i.count++,i=dc.bind(i),l.then(i,i)),o.state.loading|=4,o.instance=v,Ye(v);return}v=l.ownerDocument||l,c=$1(c),(m=oi.get(m))&&lm(c,m),v=v.createElement("link"),Ye(v);var $=v;$._p=new Promise(function(w,L){$.onload=w,$.onerror=L}),ln(v,"link",c),o.instance=v}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(o,l),(l=o.state.preload)&&(o.state.loading&3)===0&&(i.count++,o=dc.bind(i),l.addEventListener("load",o),l.addEventListener("error",o))}}var om=0;function AD(i,l){return i.stylesheets&&i.count===0&&hc(i,i.stylesheets),0<i.count||0<i.imgCount?function(o){var c=setTimeout(function(){if(i.stylesheets&&hc(i,i.stylesheets),i.unsuspend){var v=i.unsuspend;i.unsuspend=null,v()}},6e4+l);0<i.imgBytes&&om===0&&(om=62500*sD());var m=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&hc(i,i.stylesheets),i.unsuspend)){var v=i.unsuspend;i.unsuspend=null,v()}},(i.imgBytes>om?50:800)+l);return i.unsuspend=o,function(){i.unsuspend=null,clearTimeout(c),clearTimeout(m)}}:null}function dc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)hc(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var fc=null;function hc(i,l){i.stylesheets=null,i.unsuspend!==null&&(i.count++,fc=new Map,l.forEach(MD,i),fc=null,dc.call(i))}function MD(i,l){if(!(l.state.loading&4)){var o=fc.get(i);if(o)var c=o.get(null);else{o=new Map,fc.set(i,o);for(var m=i.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<m.length;v++){var $=m[v];($.nodeName==="LINK"||$.getAttribute("media")!=="not all")&&(o.set($.dataset.precedence,$),c=$)}c&&o.set(null,c)}m=l.instance,$=m.getAttribute("data-precedence"),v=o.get($)||c,v===c&&o.set(null,m),o.set($,m),this.count++,c=dc.bind(this),m.addEventListener("load",c),m.addEventListener("error",c),v?v.parentNode.insertBefore(m,v.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(m,i.firstChild)),l.state.loading|=4}}var fs={$$typeof:D,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function RD(i,l,o,c,m,v,$,w,L){this.tag=1,this.containerInfo=i,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=it(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=it(0),this.hiddenUpdates=it(null),this.identifierPrefix=c,this.onUncaughtError=m,this.onCaughtError=v,this.onRecoverableError=$,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function w1(i,l,o,c,m,v,$,w,L,H,Q,te){return i=new RD(i,l,o,$,L,H,Q,te,w),l=1,v===!0&&(l|=24),v=Un(3,null,null,l),i.current=v,v.stateNode=i,l=Ff(),l.refCount++,i.pooledCache=l,l.refCount++,v.memoizedState={element:c,isDehydrated:o,cache:l},jf(v),i}function D1(i){return i?(i=ba,i):ba}function A1(i,l,o,c,m,v){m=D1(m),c.context===null?c.context=m:c.pendingContext=m,c=_r(l),c.payload={element:o},v=v===void 0?null:v,v!==null&&(c.callback=v),o=jr(i,c,l),o!==null&&(Bn(o,i,l),jo(o,i,l))}function M1(i,l){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var o=i.retryLane;i.retryLane=o!==0&&o<l?o:l}}function sm(i,l){M1(i,l),(i=i.alternate)&&M1(i,l)}function R1(i){if(i.tag===13||i.tag===31){var l=Dl(i,67108864);l!==null&&Bn(l,i,67108864),sm(i,67108864)}}function P1(i){if(i.tag===13||i.tag===31){var l=qn();l=jt(l);var o=Dl(i,l);o!==null&&Bn(o,i,l),sm(i,l)}}var mc=!0;function PD(i,l,o,c){var m=B.T;B.T=null;var v=N.p;try{N.p=2,um(i,l,o,c)}finally{N.p=v,B.T=m}}function BD(i,l,o,c){var m=B.T;B.T=null;var v=N.p;try{N.p=8,um(i,l,o,c)}finally{N.p=v,B.T=m}}function um(i,l,o,c){if(mc){var m=cm(c);if(m===null)Xh(i,l,c,pc,o),O1(i,c);else if(zD(m,i,l,o,c))c.stopPropagation();else if(O1(i,c),l&4&&-1<OD.indexOf(i)){for(;m!==null;){var v=Vn(m);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var $=ye(v.pendingLanes);if($!==0){var w=v;for(w.pendingLanes|=2,w.entangledLanes|=2;$;){var L=1<<31-ot($);w.entanglements[1]|=L,$&=~L}Fi(v),(ke&6)===0&&(Zu=bt()+500,as(0))}}break;case 31:case 13:w=Dl(v,2),w!==null&&Bn(w,v,2),Ju(),sm(v,2)}if(v=cm(c),v===null&&Xh(i,l,c,pc,o),v===m)break;m=v}m!==null&&c.stopPropagation()}else Xh(i,l,c,null,o)}}function cm(i){return i=ff(i),dm(i)}var pc=null;function dm(i){if(pc=null,i=kt(i),i!==null){var l=s(i);if(l===null)i=null;else{var o=l.tag;if(o===13){if(i=u(l),i!==null)return i;i=null}else if(o===31){if(i=d(l),i!==null)return i;i=null}else if(o===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;i=null}else l!==i&&(i=null)}}return pc=i,null}function B1(i){switch(i){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(Ji()){case kn:return 2;case Ct:return 8;case wt:case Kn:return 32;case Li:return 268435456;default:return 32}default:return 32}}var fm=!1,tl=null,nl=null,il=null,hs=new Map,ms=new Map,rl=[],OD="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 O1(i,l){switch(i){case"focusin":case"focusout":tl=null;break;case"dragenter":case"dragleave":nl=null;break;case"mouseover":case"mouseout":il=null;break;case"pointerover":case"pointerout":hs.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":ms.delete(l.pointerId)}}function ps(i,l,o,c,m,v){return i===null||i.nativeEvent!==v?(i={blockedOn:l,domEventName:o,eventSystemFlags:c,nativeEvent:v,targetContainers:[m]},l!==null&&(l=Vn(l),l!==null&&R1(l)),i):(i.eventSystemFlags|=c,l=i.targetContainers,m!==null&&l.indexOf(m)===-1&&l.push(m),i)}function zD(i,l,o,c,m){switch(l){case"focusin":return tl=ps(tl,i,l,o,c,m),!0;case"dragenter":return nl=ps(nl,i,l,o,c,m),!0;case"mouseover":return il=ps(il,i,l,o,c,m),!0;case"pointerover":var v=m.pointerId;return hs.set(v,ps(hs.get(v)||null,i,l,o,c,m)),!0;case"gotpointercapture":return v=m.pointerId,ms.set(v,ps(ms.get(v)||null,i,l,o,c,m)),!0}return!1}function z1(i){var l=kt(i.target);if(l!==null){var o=s(l);if(o!==null){if(l=o.tag,l===13){if(l=u(o),l!==null){i.blockedOn=l,Yt(i.priority,function(){P1(o)});return}}else if(l===31){if(l=d(o),l!==null){i.blockedOn=l,Yt(i.priority,function(){P1(o)});return}}else if(l===3&&o.stateNode.current.memoizedState.isDehydrated){i.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}i.blockedOn=null}function vc(i){if(i.blockedOn!==null)return!1;for(var l=i.targetContainers;0<l.length;){var o=cm(i.nativeEvent);if(o===null){o=i.nativeEvent;var c=new o.constructor(o.type,o);df=c,o.target.dispatchEvent(c),df=null}else return l=Vn(o),l!==null&&R1(l),i.blockedOn=o,!1;l.shift()}return!0}function L1(i,l,o){vc(i)&&o.delete(l)}function LD(){fm=!1,tl!==null&&vc(tl)&&(tl=null),nl!==null&&vc(nl)&&(nl=null),il!==null&&vc(il)&&(il=null),hs.forEach(L1),ms.forEach(L1)}function gc(i,l){i.blockedOn===l&&(i.blockedOn=null,fm||(fm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,LD)))}var bc=null;function N1(i){bc!==i&&(bc=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){bc===i&&(bc=null);for(var l=0;l<i.length;l+=3){var o=i[l],c=i[l+1],m=i[l+2];if(typeof c!="function"){if(dm(c||o)===null)continue;break}var v=Vn(o);v!==null&&(i.splice(l,3),l-=3,ch(v,{pending:!0,data:m,method:o.method,action:c},c,m))}}))}function Ua(i){function l(L){return gc(L,i)}tl!==null&&gc(tl,i),nl!==null&&gc(nl,i),il!==null&&gc(il,i),hs.forEach(l),ms.forEach(l);for(var o=0;o<rl.length;o++){var c=rl[o];c.blockedOn===i&&(c.blockedOn=null)}for(;0<rl.length&&(o=rl[0],o.blockedOn===null);)z1(o),o.blockedOn===null&&rl.shift();if(o=(i.ownerDocument||i).$$reactFormReplay,o!=null)for(c=0;c<o.length;c+=3){var m=o[c],v=o[c+1],$=m[lt]||null;if(typeof v=="function")$||N1(o);else if($){var w=null;if(v&&v.hasAttribute("formAction")){if(m=v,$=v[lt]||null)w=$.formAction;else if(dm(m)!==null)continue}else w=$.action;typeof w=="function"?o[c+1]=w:(o.splice(c,3),c-=3),N1(o)}}}function k1(){function i(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function($){return m=$})},focusReset:"manual",scroll:"manual"})}function l(){m!==null&&(m(),m=null),c||setTimeout(o,20)}function o(){if(!c&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,m=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(o,100),function(){c=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),m!==null&&(m(),m=null)}}}function hm(i){this._internalRoot=i}yc.prototype.render=hm.prototype.render=function(i){var l=this._internalRoot;if(l===null)throw Error(r(409));var o=l.current,c=qn();A1(o,c,i,l,null,null)},yc.prototype.unmount=hm.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var l=i.containerInfo;A1(i.current,2,null,i,null,null),Ju(),l[Jt]=null}};function yc(i){this._internalRoot=i}yc.prototype.unstable_scheduleHydration=function(i){if(i){var l=Ht();i={blockedOn:null,target:i,priority:l};for(var o=0;o<rl.length&&l!==0&&l<rl[o].priority;o++);rl.splice(o,0,i),o===0&&z1(i)}};var K1=t.version;if(K1!=="19.2.0")throw Error(r(527,K1,"19.2.0"));N.findDOMNode=function(i){var l=i._reactInternals;if(l===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=h(l),i=i!==null?p(i):null,i=i===null?null:i.stateNode,i};var ND={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sc.isDisabled&&Sc.supportsFiber)try{yt=Sc.inject(ND),Dt=Sc}catch{}}return vs.createRoot=function(i,l){if(!a(i))throw Error(r(299));var o=!1,c="",m=Hb,v=Yb,$=qb;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(c=l.identifierPrefix),l.onUncaughtError!==void 0&&(m=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&($=l.onRecoverableError)),l=w1(i,1,!1,null,null,o,c,null,m,v,$,k1),i[Jt]=l.current,Gh(i),new hm(l)},vs.hydrateRoot=function(i,l,o){if(!a(i))throw Error(r(299));var c=!1,m="",v=Hb,$=Yb,w=qb,L=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(v=o.onUncaughtError),o.onCaughtError!==void 0&&($=o.onCaughtError),o.onRecoverableError!==void 0&&(w=o.onRecoverableError),o.formState!==void 0&&(L=o.formState)),l=w1(i,1,!0,l,o??null,c,m,L,v,$,w,k1),l.context=D1(null),o=l.current,c=qn(),c=jt(c),m=_r(c),m.callback=null,jr(o,m,c),o=c,l.current.lanes=o,We(l,o),Fi(l),i[Jt]=l.current,Gh(i),new yc(l)},vs.version="19.2.0",vs}var j1;function _D(){if(j1)return mm.exports;j1=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(),mm.exports=UD(),mm.exports}var jD=_D();const $V=Od(jD);/**
 * 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 H1="popstate";function HD(e={}){function t(r,a){let{pathname:s,search:u,hash:d}=r.location;return Cp("",{pathname:s,search:u,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Ks(a)}return qD(t,n,null,e)}function ut(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Bi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function YD(){return Math.random().toString(36).substring(2,10)}function Y1(e,t){return{usr:e.state,key:e.key,idx:t}}function Cp(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?So(t):t,state:n,key:t&&t.key||r||YD()}}function Ks({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 So(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function qD(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,u=a.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 g(){d="POP";let T=p(),C=T==null?null:T-h;h=T,f&&f({action:d,location:E.location,delta:C})}function y(T,C){d="PUSH";let M=Cp(E.location,T,C);h=p()+1;let D=Y1(M,h),O=E.createHref(M);try{u.pushState(D,"",O)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;a.location.assign(O)}s&&f&&f({action:d,location:E.location,delta:1})}function S(T,C){d="REPLACE";let M=Cp(E.location,T,C);h=p();let D=Y1(M,h),O=E.createHref(M);u.replaceState(D,"",O),s&&f&&f({action:d,location:E.location,delta:0})}function x(T){return GD(T)}let E={get action(){return d},get location(){return e(a,u)},listen(T){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(H1,g),f=T,()=>{a.removeEventListener(H1,g),f=null}},createHref(T){return t(a,T)},createURL:x,encodeLocation(T){let C=x(T);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:y,replace:S,go(T){return u.go(T)}};return E}function GD(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ut(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Ks(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function r$(e,t,n="/"){return XD(e,t,n,!1)}function XD(e,t,n,r){let a=typeof t=="string"?So(t):t,s=Dr(a.pathname||"/",n);if(s==null)return null;let u=l$(e);WD(u);let d=null;for(let f=0;d==null&&f<u.length;++f){let h=o7(s);d=l7(u[f],h,r)}return d}function l$(e,t=[],n=[],r="",a=!1){let s=(u,d,f=a,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(r)&&f)return;ut(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let g=wr([r,p.relativePath]),y=n.concat(p);u.children&&u.children.length>0&&(ut(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),l$(u.children,t,y,g,f)),!(u.path==null&&!u.index)&&t.push({path:g,score:i7(g,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 a$(u.path))s(u,d,!0,h)}),t}function a$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let u=a$(r.join("/")),d=[];return d.push(...u.map(f=>f===""?s:[s,f].join("/"))),a&&d.push(...u),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function WD(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:r7(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var ZD=/^:[\w-]+$/,QD=3,JD=2,e7=1,t7=10,n7=-2,q1=e=>e==="*";function i7(e,t){let n=e.split("/"),r=n.length;return n.some(q1)&&(r+=n7),t&&(r+=JD),n.filter(a=>!q1(a)).reduce((a,s)=>a+(ZD.test(s)?QD:s===""?e7:t7),r)}function r7(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function l7(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",u=[];for(let d=0;d<r.length;++d){let f=r[d],h=d===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",g=ad({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},p),y=f.route;if(!g&&h&&n&&!r[r.length-1].route.index&&(g=ad({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},p)),!g)return null;Object.assign(a,g.params),u.push({params:a,pathname:wr([s,g.pathname]),pathnameBase:d7(wr([s,g.pathnameBase])),route:y}),g.pathnameBase!=="/"&&(s=wr([s,g.pathnameBase]))}return u}function ad(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=a7(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],u=s.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:r.reduce((h,{paramName:p,isOptional:g},y)=>{if(p==="*"){let x=d[y]||"";u=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const S=d[y];return g&&!S?h[p]=void 0:h[p]=(S||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:u,pattern:e}}function a7(e,t=!1,n=!0){Bi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,f)=>(r.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function o7(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Bi(!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 Dr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function s7(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?So(e):e;return{pathname:n?n.startsWith("/")?n:u7(n,t):t,search:f7(r),hash:h7(a)}}function u7(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function bm(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function c7(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function o$(e){let t=c7(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function s$(e,t,n,r=!1){let a;typeof e=="string"?a=So(e):(a={...e},ut(!a.pathname||!a.pathname.includes("?"),bm("?","pathname","search",a)),ut(!a.pathname||!a.pathname.includes("#"),bm("#","pathname","hash",a)),ut(!a.search||!a.search.includes("#"),bm("#","search","hash",a)));let s=e===""||a.pathname==="",u=s?"/":a.pathname,d;if(u==null)d=n;else{let g=t.length-1;if(!r&&u.startsWith("..")){let y=u.split("/");for(;y[0]==="..";)y.shift(),g-=1;a.pathname=y.join("/")}d=g>=0?t[g]:"/"}let f=s7(a,d),h=u&&u!=="/"&&u.endsWith("/"),p=(s||u===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||p)&&(f.pathname+="/"),f}var wr=e=>e.join("/").replace(/\/\/+/g,"/"),d7=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),f7=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,h7=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function m7(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 u$=["POST","PUT","PATCH","DELETE"];new Set(u$);var p7=["GET",...u$];new Set(p7);var $o=b.createContext(null);$o.displayName="DataRouter";var zd=b.createContext(null);zd.displayName="DataRouterState";b.createContext(!1);var c$=b.createContext({isTransitioning:!1});c$.displayName="ViewTransition";var v7=b.createContext(new Map);v7.displayName="Fetchers";var g7=b.createContext(null);g7.displayName="Await";var Xi=b.createContext(null);Xi.displayName="Navigation";var Qs=b.createContext(null);Qs.displayName="Location";var Wi=b.createContext({outlet:null,matches:[],isDataRoute:!1});Wi.displayName="Route";var zv=b.createContext(null);zv.displayName="RouteError";function b7(e,{relative:t}={}){ut(Js(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=b.useContext(Xi),{hash:a,pathname:s,search:u}=eu(e,{relative:t}),d=s;return n!=="/"&&(d=s==="/"?n:wr([n,s])),r.createHref({pathname:d,search:u,hash:a})}function Js(){return b.useContext(Qs)!=null}function Sl(){return ut(Js(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Qs).location}var d$="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function f$(e){b.useContext(Xi).static||b.useLayoutEffect(e)}function h$(){let{isDataRoute:e}=b.useContext(Wi);return e?O7():y7()}function y7(){ut(Js(),"useNavigate() may be used only in the context of a <Router> component.");let e=b.useContext($o),{basename:t,navigator:n}=b.useContext(Xi),{matches:r}=b.useContext(Wi),{pathname:a}=Sl(),s=JSON.stringify(o$(r)),u=b.useRef(!1);return f$(()=>{u.current=!0}),b.useCallback((f,h={})=>{if(Bi(u.current,d$),!u.current)return;if(typeof f=="number"){n.go(f);return}let p=s$(f,JSON.parse(s),a,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:wr([t,p.pathname])),(h.replace?n.replace:n.push)(p,h.state,h)},[t,n,s,a,e])}var S7=b.createContext(null);function $7(e){let t=b.useContext(Wi).outlet;return b.useMemo(()=>t&&b.createElement(S7.Provider,{value:e},t),[t,e])}function eu(e,{relative:t}={}){let{matches:n}=b.useContext(Wi),{pathname:r}=Sl(),a=JSON.stringify(o$(n));return b.useMemo(()=>s$(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function E7(e,t){return m$(e,t)}function m$(e,t,n,r,a){var M;ut(Js(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=b.useContext(Xi),{matches:u}=b.useContext(Wi),d=u[u.length-1],f=d?d.params:{},h=d?d.pathname:"/",p=d?d.pathnameBase:"/",g=d&&d.route;{let D=g&&g.path||"";p$(h,!g||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${D}">) 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="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let y=Sl(),S;if(t){let D=typeof t=="string"?So(t):t;ut(p==="/"||((M=D.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 "${D.pathname}" was given in the \`location\` prop.`),S=D}else S=y;let x=S.pathname||"/",E=x;if(p!=="/"){let D=p.replace(/^\//,"").split("/");E="/"+x.replace(/^\//,"").split("/").slice(D.length).join("/")}let T=r$(e,{pathname:E});Bi(g||T!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Bi(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.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=D7(T&&T.map(D=>Object.assign({},D,{params:Object.assign({},f,D.params),pathname:wr([p,s.encodeLocation?s.encodeLocation(D.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?p:wr([p,s.encodeLocation?s.encodeLocation(D.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathnameBase])})),u,n,r,a);return t&&C?b.createElement(Qs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},C):C}function x7(){let e=B7(),t=m7(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},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:a},n):null,u)}var T7=b.createElement(x7,null),C7=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(Wi.Provider,{value:this.props.routeContext},b.createElement(zv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function w7({routeContext:e,match:t,children:n}){let r=b.useContext($o);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(Wi.Provider,{value:e},n)}function D7(e,t=[],n=null,r=null,a=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);ut(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:g,errors:y}=n,S=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!y||y[p.route.id]===void 0);if(p.route.lazy||S){d=!0,f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}return s.reduceRight((h,p,g)=>{let y,S=!1,x=null,E=null;n&&(y=u&&p.route.id?u[p.route.id]:void 0,x=p.route.errorElement||T7,d&&(f<0&&g===0?(p$("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,E=null):f===g&&(S=!0,E=p.route.hydrateFallbackElement||null)));let T=t.concat(s.slice(0,g+1)),C=()=>{let M;return y?M=x:S?M=E:p.route.Component?M=b.createElement(p.route.Component,null):p.route.element?M=p.route.element:M=h,b.createElement(w7,{match:p,routeContext:{outlet:h,matches:T,isDataRoute:n!=null},children:M})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?b.createElement(C7,{location:n.location,revalidation:n.revalidation,component:x,error:y,children:C(),routeContext:{outlet:null,matches:T,isDataRoute:!0},unstable_onError:r}):C()},null)}function Lv(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function A7(e){let t=b.useContext($o);return ut(t,Lv(e)),t}function M7(e){let t=b.useContext(zd);return ut(t,Lv(e)),t}function R7(e){let t=b.useContext(Wi);return ut(t,Lv(e)),t}function Nv(e){let t=R7(e),n=t.matches[t.matches.length-1];return ut(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function P7(){return Nv("useRouteId")}function B7(){var r;let e=b.useContext(zv),t=M7("useRouteError"),n=Nv("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function O7(){let{router:e}=A7("useNavigate"),t=Nv("useNavigate"),n=b.useRef(!1);return f$(()=>{n.current=!0}),b.useCallback(async(a,s={})=>{Bi(n.current,d$),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var G1={};function p$(e,t,n){!t&&!G1[e]&&(G1[e]=!0,Bi(!1,n))}b.memo(z7);function z7({routes:e,future:t,state:n,unstable_onError:r}){return m$(e,void 0,n,r,t)}function EV(e){return $7(e.context)}function L7(e){ut(!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 N7({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1}){ut(!Js(),"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:a,static:s,future:{}}),[u,a,s]);typeof n=="string"&&(n=So(n));let{pathname:f="/",search:h="",hash:p="",state:g=null,key:y="default"}=n,S=b.useMemo(()=>{let x=Dr(f,u);return x==null?null:{location:{pathname:x,search:h,hash:p,state:g,key:y},navigationType:r}},[u,f,h,p,g,y,r]);return Bi(S!=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.`),S==null?null:b.createElement(Xi.Provider,{value:d},b.createElement(Qs.Provider,{children:t,value:S}))}function xV({children:e,location:t}){return E7(wp(e),t)}function wp(e,t=[]){let n=[];return b.Children.forEach(e,(r,a)=>{if(!b.isValidElement(r))return;let s=[...t,a];if(r.type===b.Fragment){n.push.apply(n,wp(r.props.children,s));return}ut(r.type===L7,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ut(!r.props.index||!r.props.children,"An index route cannot have child routes.");let u={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(u.children=wp(r.props.children,s)),n.push(u)}),n}var jc="get",Hc="application/x-www-form-urlencoded";function Ld(e){return e!=null&&typeof e.tagName=="string"}function k7(e){return Ld(e)&&e.tagName.toLowerCase()==="button"}function K7(e){return Ld(e)&&e.tagName.toLowerCase()==="form"}function V7(e){return Ld(e)&&e.tagName.toLowerCase()==="input"}function F7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function I7(e,t){return e.button===0&&(!t||t==="_self")&&!F7(e)}function Dp(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function U7(e,t){let n=Dp(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(s=>{n.append(a,s)})}),n}var Ec=null;function _7(){if(Ec===null)try{new FormData(document.createElement("form"),0),Ec=!1}catch{Ec=!0}return Ec}var j7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ym(e){return e!=null&&!j7.has(e)?(Bi(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Hc}"`),null):e}function H7(e,t){let n,r,a,s,u;if(K7(e)){let d=e.getAttribute("action");r=d?Dr(d,t):null,n=e.getAttribute("method")||jc,a=ym(e.getAttribute("enctype"))||Hc,s=new FormData(e)}else if(k7(e)||V7(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(r=f?Dr(f,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||jc,a=ym(e.getAttribute("formenctype"))||ym(d.getAttribute("enctype"))||Hc,s=new FormData(d,e),!_7()){let{name:h,type:p,value:g}=e;if(p==="image"){let y=h?`${h}.`:"";s.append(`${y}x`,"0"),s.append(`${y}y`,"0")}else h&&s.append(h,g)}}else{if(Ld(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=jc,r=null,a=Hc,u=e}return s&&a==="text/plain"&&(u=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function kv(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Y7(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Dr(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function q7(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 G7(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 X7(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let u=await q7(s,n);return u.links?u.links():[]}return[]}));return J7(r.flat(1).filter(G7).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function X1(e,t,n,r,a,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 g;let p=r.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(a.pathname+a.search+a.hash,window.origin),currentParams:((g=n[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function W7(e,t,{includeHydrateFallback:n}={}){return Z7(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function Z7(e){return[...new Set(e)]}function Q7(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function J7(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(Q7(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}function v$(){let e=b.useContext($o);return kv(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function e8(){let e=b.useContext(zd);return kv(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Kv=b.createContext(void 0);Kv.displayName="FrameworkContext";function g$(){let e=b.useContext(Kv);return kv(e,"You must render this element inside a <HydratedRouter> element"),e}function t8(e,t){let n=b.useContext(Kv),[r,a]=b.useState(!1),[s,u]=b.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:h,onMouseLeave:p,onTouchStart:g}=t,y=b.useRef(null);b.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let E=C=>{C.forEach(M=>{u(M.isIntersecting)})},T=new IntersectionObserver(E,{threshold:.5});return y.current&&T.observe(y.current),()=>{T.disconnect()}}},[e]),b.useEffect(()=>{if(r){let E=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(E)}}},[r]);let S=()=>{a(!0)},x=()=>{a(!1),u(!1)};return n?e!=="intent"?[s,y,{}]:[s,y,{onFocus:gs(d,S),onBlur:gs(f,x),onMouseEnter:gs(h,S),onMouseLeave:gs(p,x),onTouchStart:gs(g,S)}]:[!1,y,{}]}function gs(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function n8({page:e,...t}){let{router:n}=v$(),r=b.useMemo(()=>r$(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?b.createElement(r8,{page:e,matches:r,...t}):null}function i8(e){let{manifest:t,routeModules:n}=g$(),[r,a]=b.useState([]);return b.useEffect(()=>{let s=!1;return X7(e,t,n).then(u=>{s||a(u)}),()=>{s=!0}},[e,t,n]),r}function r8({page:e,matches:t,...n}){let r=Sl(),{manifest:a,routeModules:s}=g$(),{basename:u}=v$(),{loaderData:d,matches:f}=e8(),h=b.useMemo(()=>X1(e,t,f,a,r,"data"),[e,t,f,a,r]),p=b.useMemo(()=>X1(e,t,f,a,r,"assets"),[e,t,f,a,r]),g=b.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,E=!1;if(t.forEach(C=>{var D;let M=a.routes[C.route.id];!M||!M.hasLoader||(!h.some(O=>O.route.id===C.route.id)&&C.route.id in d&&((D=s[C.route.id])!=null&&D.shouldRevalidate)||M.hasClientLoader?E=!0:x.add(C.route.id))}),x.size===0)return[];let T=Y7(e,u,"data");return E&&x.size>0&&T.searchParams.set("_routes",t.filter(C=>x.has(C.route.id)).map(C=>C.route.id).join(",")),[T.pathname+T.search]},[u,d,r,a,h,t,e,s]),y=b.useMemo(()=>W7(p,a),[p,a]),S=i8(p);return b.createElement(b.Fragment,null,g.map(x=>b.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),y.map(x=>b.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),S.map(({key:x,link:E})=>b.createElement("link",{key:x,nonce:n.nonce,...E})))}function l8(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var b$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{b$&&(window.__reactRouterVersion="7.9.5")}catch{}function TV({basename:e,children:t,window:n}){let r=b.useRef();r.current==null&&(r.current=HD({window:n,v5Compat:!0}));let a=r.current,[s,u]=b.useState({action:a.action,location:a.location}),d=b.useCallback(f=>{b.startTransition(()=>u(f))},[u]);return b.useLayoutEffect(()=>a.listen(d),[a,d]),b.createElement(N7,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var y$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,S$=b.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:u,state:d,target:f,to:h,preventScrollReset:p,viewTransition:g,...y},S){let{basename:x}=b.useContext(Xi),E=typeof h=="string"&&y$.test(h),T,C=!1;if(typeof h=="string"&&E&&(T=h,b$))try{let V=new URL(window.location.href),F=h.startsWith("//")?new URL(V.protocol+h):new URL(h),P=Dr(F.pathname,x);F.origin===V.origin&&P!=null?h=P+F.search+F.hash:C=!0}catch{Bi(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let M=b7(h,{relative:a}),[D,O,R]=t8(r,y),z=u8(h,{replace:u,state:d,target:f,preventScrollReset:p,relative:a,viewTransition:g});function I(V){t&&t(V),V.defaultPrevented||z(V)}let A=b.createElement("a",{...y,...R,href:T||M,onClick:C||s?t:I,ref:l8(S,O),target:f,"data-discover":!E&&n==="render"?"true":void 0});return D&&!E?b.createElement(b.Fragment,null,A,b.createElement(n8,{page:M})):A});S$.displayName="Link";var a8=b.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:u,viewTransition:d,children:f,...h},p){let g=eu(u,{relative:h.relative}),y=Sl(),S=b.useContext(zd),{navigator:x,basename:E}=b.useContext(Xi),T=S!=null&&m8(g)&&d===!0,C=x.encodeLocation?x.encodeLocation(g).pathname:g.pathname,M=y.pathname,D=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;n||(M=M.toLowerCase(),D=D?D.toLowerCase():null,C=C.toLowerCase()),D&&E&&(D=Dr(D,E)||D);const O=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let R=M===C||!a&&M.startsWith(C)&&M.charAt(O)==="/",z=D!=null&&(D===C||!a&&D.startsWith(C)&&D.charAt(C.length)==="/"),I={isActive:R,isPending:z,isTransitioning:T},A=R?t:void 0,V;typeof r=="function"?V=r(I):V=[r,R?"active":null,z?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(I):s;return b.createElement(S$,{...h,"aria-current":A,className:V,ref:p,style:F,to:u,viewTransition:d},typeof f=="function"?f(I):f)});a8.displayName="NavLink";var o8=b.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:u=jc,action:d,onSubmit:f,relative:h,preventScrollReset:p,viewTransition:g,...y},S)=>{let x=f8(),E=h8(d,{relative:h}),T=u.toLowerCase()==="get"?"get":"post",C=typeof d=="string"&&y$.test(d),M=D=>{if(f&&f(D),D.defaultPrevented)return;D.preventDefault();let O=D.nativeEvent.submitter,R=(O==null?void 0:O.getAttribute("formmethod"))||u;x(O||D.currentTarget,{fetcherKey:t,method:R,navigate:n,replace:a,state:s,relative:h,preventScrollReset:p,viewTransition:g})};return b.createElement("form",{ref:S,method:T,action:E,onSubmit:r?f:M,...y,"data-discover":!C&&e==="render"?"true":void 0})});o8.displayName="Form";function s8(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function $$(e){let t=b.useContext($o);return ut(t,s8(e)),t}function u8(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:u}={}){let d=h$(),f=Sl(),h=eu(e,{relative:s});return b.useCallback(p=>{if(I7(p,t)){p.preventDefault();let g=n!==void 0?n:Ks(f)===Ks(h);d(e,{replace:g,state:r,preventScrollReset:a,relative:s,viewTransition:u})}},[f,d,h,n,r,t,e,a,s,u])}function CV(e){Bi(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(Dp(e)),n=b.useRef(!1),r=Sl(),a=b.useMemo(()=>U7(r.search,n.current?null:t.current),[r.search]),s=h$(),u=b.useCallback((d,f)=>{const h=Dp(typeof d=="function"?d(new URLSearchParams(a)):d);n.current=!0,s("?"+h,f)},[s,a]);return[a,u]}var c8=0,d8=()=>`__${String(++c8)}__`;function f8(){let{router:e}=$$("useSubmit"),{basename:t}=b.useContext(Xi),n=P7();return b.useCallback(async(r,a={})=>{let{action:s,method:u,encType:d,formData:f,body:h}=H7(r,t);if(a.navigate===!1){let p=a.fetcherKey||d8();await e.fetch(p,n,a.action||s,{preventScrollReset:a.preventScrollReset,formData:f,body:h,formMethod:a.method||u,formEncType:a.encType||d,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:f,body:h,formMethod:a.method||u,formEncType:a.encType||d,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function h8(e,{relative:t}={}){let{basename:n}=b.useContext(Xi),r=b.useContext(Wi);ut(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...eu(e||".",{relative:t})},u=Sl();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(g=>g).forEach(g=>d.append("index",g));let p=d.toString();s.search=p?`?${p}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:wr([n,s.pathname])),Ks(s)}function m8(e,{relative:t}={}){let n=b.useContext(c$);ut(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=$$("useViewTransitionState"),a=eu(e,{relative:t});if(!n.isTransitioning)return!1;let s=Dr(n.currentLocation.pathname,r)||n.currentLocation.pathname,u=Dr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ad(a.pathname,u)!=null||ad(a.pathname,s)!=null}var Ui=i$();const E$=Od(Ui);function x$(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=x$(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function T$(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=x$(e))&&(r&&(r+=" "),r+=t);return r}let p8={data:""},v8=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||p8},g8=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,b8=/\/\*[^]*?\*\/|  +/g,W1=/\n+/g,hl=(e,t)=>{let n="",r="",a="";for(let s in e){let u=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+u+";":r+=s[1]=="f"?hl(u,s):s+"{"+hl(u,s[1]=="k"?"":t)+"}":typeof u=="object"?r+=hl(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(),a+=hl.p?hl.p(s,u):s+":"+u+";")}return n+(t&&a?t+"{"+a+"}":a)+r},Sr={},C$=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+C$(e[n]);return t}return e},y8=(e,t,n,r,a)=>{let s=C$(e),u=Sr[s]||(Sr[s]=(f=>{let h=0,p=11;for(;h<f.length;)p=101*p+f.charCodeAt(h++)>>>0;return"go"+p})(s));if(!Sr[u]){let f=s!==e?e:(h=>{let p,g,y=[{}];for(;p=g8.exec(h.replace(b8,""));)p[4]?y.shift():p[3]?(g=p[3].replace(W1," ").trim(),y.unshift(y[0][g]=y[0][g]||{})):y[0][p[1]]=p[2].replace(W1," ").trim();return y[0]})(e);Sr[u]=hl(a?{["@keyframes "+u]:f}:f,n?"":"."+u)}let d=n&&Sr.g?Sr.g:null;return n&&(Sr.g=Sr[u]),((f,h,p,g)=>{g?h.data=h.data.replace(g,f):h.data.indexOf(f)===-1&&(h.data=p?f+h.data:h.data+f)})(Sr[u],t,r,d),u},S8=(e,t,n)=>e.reduce((r,a,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?"":hl(d,""):d===!1?"":d}return r+a+(u??"")},"");function Nd(e){let t=this||{},n=e.call?e(t.p):e;return y8(n.unshift?n.raw?S8(n,[].slice.call(arguments,1),t.p):n.reduce((r,a)=>Object.assign(r,a&&a.call?a(t.p):a),{}):n,v8(t.target),t.g,t.o,t.k)}let w$,Ap,Mp;Nd.bind({g:1});let Ar=Nd.bind({k:1});function $8(e,t,n,r){hl.p=t,w$=e,Ap=n,Mp=r}function $l(e,t){let n=this||{};return function(){let r=arguments;function a(s,u){let d=Object.assign({},s),f=d.className||a.className;n.p=Object.assign({theme:Ap&&Ap()},d),n.o=/ *go\d+/.test(f),d.className=Nd.apply(n,r)+(f?" "+f:"");let h=e;return e[0]&&(h=d.as||e,delete d.as),Mp&&h[0]&&Mp(d),w$(h,d)}return a}}var E8=e=>typeof e=="function",od=(e,t)=>E8(e)?e(t):e,x8=(()=>{let e=0;return()=>(++e).toString()})(),D$=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),T8=20,Vv="default",A$=(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:r}=t;return A$(e,{type:e.toasts.find(u=>u.id===r.id)?1:0,toast:r});case 3:let{toastId:a}=t;return{...e,toasts:e.toasts.map(u=>u.id===a||a===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}))}}},Yc=[],M$={toasts:[],pausedAt:void 0,settings:{toastLimit:T8}},_i={},R$=(e,t=Vv)=>{_i[t]=A$(_i[t]||M$,e),Yc.forEach(([n,r])=>{n===t&&r(_i[t])})},P$=e=>Object.keys(_i).forEach(t=>R$(e,t)),C8=e=>Object.keys(_i).find(t=>_i[t].toasts.some(n=>n.id===e)),kd=(e=Vv)=>t=>{R$(t,e)},w8={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},D8=(e={},t=Vv)=>{let[n,r]=b.useState(_i[t]||M$),a=b.useRef(_i[t]);b.useEffect(()=>(a.current!==_i[t]&&r(_i[t]),Yc.push([t,r]),()=>{let u=Yc.findIndex(([d])=>d===t);u>-1&&Yc.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)||w8[u.type],style:{...e.style,...(h=e[u.type])==null?void 0:h.style,...u.style}}});return{...n,toasts:s}},A8=(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)||x8()}),tu=e=>(t,n)=>{let r=A8(t,e,n);return kd(r.toasterId||C8(r.id))({type:2,toast:r}),r.id},It=(e,t)=>tu("blank")(e,t);It.error=tu("error");It.success=tu("success");It.loading=tu("loading");It.custom=tu("custom");It.dismiss=(e,t)=>{let n={type:3,toastId:e};t?kd(t)(n):P$(n)};It.dismissAll=e=>It.dismiss(void 0,e);It.remove=(e,t)=>{let n={type:4,toastId:e};t?kd(t)(n):P$(n)};It.removeAll=e=>It.remove(void 0,e);It.promise=(e,t,n)=>{let r=It.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(a=>{let s=t.success?od(t.success,a):void 0;return s?It.success(s,{id:r,...n,...n==null?void 0:n.success}):It.dismiss(r),a}).catch(a=>{let s=t.error?od(t.error,a):void 0;s?It.error(s,{id:r,...n,...n==null?void 0:n.error}):It.dismiss(r)}),e};var M8=1e3,R8=(e,t="default")=>{let{toasts:n,pausedAt:r}=D8(e,t),a=b.useRef(new Map).current,s=b.useCallback((g,y=M8)=>{if(a.has(g))return;let S=setTimeout(()=>{a.delete(g),u({type:4,toastId:g})},y);a.set(g,S)},[]);b.useEffect(()=>{if(r)return;let g=Date.now(),y=n.map(S=>{if(S.duration===1/0)return;let x=(S.duration||0)+S.pauseDuration-(g-S.createdAt);if(x<0){S.visible&&It.dismiss(S.id);return}return setTimeout(()=>It.dismiss(S.id,t),x)});return()=>{y.forEach(S=>S&&clearTimeout(S))}},[n,r,t]);let u=b.useCallback(kd(t),[t]),d=b.useCallback(()=>{u({type:5,time:Date.now()})},[u]),f=b.useCallback((g,y)=>{u({type:1,toast:{id:g,height:y}})},[u]),h=b.useCallback(()=>{r&&u({type:6,time:Date.now()})},[r,u]),p=b.useCallback((g,y)=>{let{reverseOrder:S=!1,gutter:x=8,defaultPosition:E}=y||{},T=n.filter(D=>(D.position||E)===(g.position||E)&&D.height),C=T.findIndex(D=>D.id===g.id),M=T.filter((D,O)=>O<C&&D.visible).length;return T.filter(D=>D.visible).slice(...S?[M+1]:[0,M]).reduce((D,O)=>D+(O.height||0)+x,0)},[n]);return b.useEffect(()=>{n.forEach(g=>{if(g.dismissed)s(g.id,g.removeDelay);else{let y=a.get(g.id);y&&(clearTimeout(y),a.delete(g.id))}})},[n,s]),{toasts:n,handlers:{updateHeight:f,startPause:d,endPause:h,calculateOffset:p}}},P8=Ar`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,B8=Ar`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,O8=Ar`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,z8=$l("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

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

  &:after,
  &:before {
    content: '';
    animation: ${B8} 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: ${O8} 0.15s ease-out forwards;
    animation-delay: 180ms;
    transform: rotate(90deg);
  }
`,L8=Ar`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
`,N8=$l("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: ${L8} 1s linear infinite;
`,k8=Ar`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(45deg);
	opacity: 1;
}`,K8=Ar`
0% {
	height: 0;
	width: 0;
	opacity: 0;
}
40% {
  height: 0;
	width: 6px;
	opacity: 1;
}
100% {
  opacity: 1;
  height: 10px;
}`,V8=$l("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#61d345"};
  position: relative;
  transform: rotate(45deg);

  animation: ${k8} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${K8} 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;
  }
`,F8=$l("div")`
  position: absolute;
`,I8=$l("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,U8=Ar`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,_8=$l("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${U8} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,j8=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?b.createElement(_8,null,t):t:n==="blank"?null:b.createElement(I8,null,b.createElement(N8,{...r}),n!=="loading"&&b.createElement(F8,null,n==="error"?b.createElement(z8,{...r}):b.createElement(V8,{...r})))},H8=e=>`
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
`,Y8=e=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
`,q8="0%{opacity:0;} 100%{opacity:1;}",G8="0%{opacity:1;} 100%{opacity:0;}",X8=$l("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;
`,W8=$l("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,Z8=(e,t)=>{let n=e.includes("top")?1:-1,[r,a]=D$()?[q8,G8]:[H8(n),Y8(n)];return{animation:t?`${Ar(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ar(a)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Q8=b.memo(({toast:e,position:t,style:n,children:r})=>{let a=e.height?Z8(e.position||t||"top-center",e.visible):{opacity:0},s=b.createElement(j8,{toast:e}),u=b.createElement(W8,{...e.ariaProps},od(e.message,e));return b.createElement(X8,{className:e.className,style:{...a,...n,...e.style}},typeof r=="function"?r({icon:s,message:u}):b.createElement(b.Fragment,null,s,u))});$8(b.createElement);var J8=({id:e,className:t,style:n,onHeightUpdate:r,children:a})=>{let s=b.useCallback(u=>{if(u){let d=()=>{let f=u.getBoundingClientRect().height;r(e,f)};d(),new MutationObserver(d).observe(u,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return b.createElement("div",{ref:s,className:t,style:n},a)},eA=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},a=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:D$()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...a}},tA=Nd`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`,xc=16,wV=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:a,toasterId:s,containerStyle:u,containerClassName:d})=>{let{toasts:f,handlers:h}=R8(n,s);return b.createElement("div",{"data-rht-toaster":s||"",style:{position:"fixed",zIndex:9999,top:xc,left:xc,right:xc,bottom:xc,pointerEvents:"none",...u},className:d,onMouseEnter:h.startPause,onMouseLeave:h.endPause},f.map(p=>{let g=p.position||t,y=h.calculateOffset(p,{reverseOrder:e,gutter:r,defaultPosition:t}),S=eA(g,y);return b.createElement(J8,{id:p.id,key:p.id,onHeightUpdate:h.updateHeight,className:p.visible?tA:"",style:S},p.type==="custom"?od(p.message,p):a?a(p):b.createElement(Q8,{toast:p,position:g}))}))},DV=It;function B$(e,t){window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:t}))}function AV(e,t){const[n,r]=b.useState(e);return b.useEffect(()=>{const a=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(a)}},[e,t]),n}const Z1=(e,t)=>{const n=JSON.stringify(t);window.localStorage.setItem(e,n),B$(e,n)},nA=e=>{window.localStorage.removeItem(e),B$(e,null)},Q1=e=>window.localStorage.getItem(e),iA=e=>(window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)),rA=()=>{throw Error("useLocalStorage is a client-only hook")};function MV(e,t){const n=()=>Q1(e),r=b.useSyncExternalStore(iA,n,rA),a=b.useCallback(s=>{try{const u=typeof s=="function"?s(JSON.parse(r)):s;u==null?nA(e):Z1(e,u)}catch(u){console.warn(u)}},[e,r]);return b.useEffect(()=>{Q1(e)===null&&typeof t<"u"&&Z1(e,t)},[e,t]),[r?JSON.parse(r):t,a]}const lA=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),aA=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function O$(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return lA.has(n.script)}let t=e.split("-")[0];return aA.has(t)}const z$={prefix:String(Math.round(Math.random()*1e10)),current:0},L$=ie.createContext(z$),oA=ie.createContext(!1);let Sm=new WeakMap;function sA(e=!1){let t=b.useContext(L$),n=b.useRef(null);if(n.current===null&&!e){var r,a;let s=(a=ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let u=Sm.get(s);u==null?Sm.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==u.state&&(t.current=u.id,Sm.delete(s))}n.current=++t.current}return n.current}function uA(e){let t=b.useContext(L$),n=sA(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function cA(e){let t=ie.useId(),[n]=b.useState(la()),r=n?"react-aria":`react-aria${z$.prefix}`;return e||`${r}-${t}`}const N$=typeof ie.useId=="function"?cA:uA;function dA(){return!1}function fA(){return!0}function hA(e){return()=>{}}function la(){return typeof ie.useSyncExternalStore=="function"?ie.useSyncExternalStore(hA,dA,fA):b.useContext(oA)}const mA=Symbol.for("react-aria.i18n.locale");function k$(){let e=typeof window<"u"&&window[mA]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:O$(e)?"rtl":"ltr"}}let Rp=k$(),Es=new Set;function J1(){Rp=k$();for(let e of Es)e(Rp)}function K$(){let e=la(),[t,n]=b.useState(Rp);return b.useEffect(()=>(Es.size===0&&window.addEventListener("languagechange",J1),Es.add(n),()=>{Es.delete(n),Es.size===0&&window.removeEventListener("languagechange",J1)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const V$=ie.createContext(null);function RV(e){let{locale:t,children:n}=e,r=K$(),a=ie.useMemo(()=>t?{locale:t,direction:O$(t)?"rtl":"ltr"}:r,[r,t]);return ie.createElement(V$.Provider,{value:a},n)}function pA(){let e=K$();return b.useContext(V$)||e}var Mi=function(){return Mi=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Mi.apply(this,arguments)};function F$(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function vA(e,t,n,r){function a(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(r.next(p))}catch(g){u(g)}}function f(p){try{h(r.throw(p))}catch(g){u(g)}}function h(p){p.done?s(p.value):a(p.value).then(d,f)}h((r=r.apply(e,t||[])).next())})}function gA(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,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(r)throw new TypeError("Generator is already executing.");for(;u&&(u=0,h[0]&&(n=0)),n;)try{if(r=1,a&&(s=h[0]&2?a.return:h[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,h[1])).done)return s;switch(a=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++,a=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],a=0}finally{r=s=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function dn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,s=[],u;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)s.push(a.value)}catch(d){u={error:d}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return s}function fn(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,s;r<a;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}const bA=Symbol.for("react-aria.i18n.locale"),yA=Symbol.for("react-aria.i18n.strings");let _a;class Kd{getStringForLocale(t,n){let a=this.getStringsForLocale(n)[t];if(!a)throw new Error(`Could not find intl message ${t} in ${n} locale`);return a}getStringsForLocale(t){let n=this.strings[t];return n||(n=SA(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[bA];if(_a===void 0){let a=window[yA];if(!a)return null;_a={};for(let s in a)_a[s]=new Kd({[n]:a[s]},n)}let r=_a==null?void 0:_a[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function SA(e,t,n="en-US"){if(t[e])return t[e];let r=$A(e);if(t[r])return t[r];for(let a in t)if(a.startsWith(r+"-"))return t[a];return t[n]}function $A(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const e4=new Map,t4=new Map;class EA{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let a=n["="+t];if(a)return typeof a=="function"?a():a;let s=this.locale+":"+r,u=e4.get(s);u||(u=new Intl.PluralRules(this.locale,{type:r}),e4.set(s,u));let d=u.select(t);return a=n[d]||n.other,typeof a=="function"?a():a}number(t){let n=t4.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),t4.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}function xA(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function I$(e,t,n){xA(e,t),t.set(e,n)}const vt=typeof document<"u"?ie.useLayoutEffect:()=>{};function Ri(e){const t=b.useRef(null);return vt(()=>{t.current=e},[e]),b.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function TA(e){let[t,n]=b.useState(e),r=b.useRef(null),a=Ri(()=>{if(!r.current)return;let u=r.current.next();if(u.done){r.current=null;return}t===u.value?a():n(u.value)});vt(()=>{r.current&&a()});let s=Ri(u=>{r.current=u(t),a()});return[t,s]}let CA=!!(typeof window<"u"&&window.document&&window.document.createElement),ul=new Map;function yi(e){let[t,n]=b.useState(e),r=b.useRef(null),a=N$(t),s=b.useCallback(u=>{r.current=u},[]);return CA&&(ul.has(a)&&!ul.get(a).includes(s)?ul.set(a,[...ul.get(a),s]):ul.set(a,[s])),vt(()=>{let u=a;return()=>{ul.delete(u)}},[a]),b.useEffect(()=>{let u=r.current;u&&(r.current=null,n(u))}),a}function wA(e,t){if(e===t)return e;let n=ul.get(e);if(n)return n.forEach(a=>a(t)),t;let r=ul.get(t);return r?(r.forEach(a=>a(e)),e):t}function vl(e=[]){let t=yi(),[n,r]=TA(t),a=b.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return vt(a,[t,a,...e]),n}function Ql(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const et=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},pi=e=>e&&"window"in e&&e.window===e?e:et(e).defaultView||window;function _t(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let a in r){let s=t[a],u=r[a];typeof s=="function"&&typeof u=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=Ql(s,u):(a==="className"||a==="UNSAFE_className")&&typeof s=="string"&&typeof u=="string"?t[a]=T$(s,u):a==="id"&&s&&u?t.id=wA(s,u):t[a]=u!==void 0?u:s}}return t}function PV(...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 DA=new Set(["id"]),AA=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),MA=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),RA=/^(data-.*)$/;function Zi(e,t={}){let{labelable:n,isLink:r,propNames:a}=t,s={};for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(DA.has(u)||n&&AA.has(u)||r&&MA.has(u)||a!=null&&a.has(u)||RA.test(u))&&(s[u]=e[u]);return s}function Yl(e){if(PA())e.focus({preventScroll:!0});else{let t=BA(e);e.focus(),OA(t)}}let Tc=null;function PA(){if(Tc==null){Tc=!1;try{document.createElement("div").focus({get preventScroll(){return Tc=!0,!0}})}catch{}}return Tc}function BA(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function OA(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Vd(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 Fv(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 El(e){let t=null;return()=>(t==null&&(t=e()),t)}const go=El(function(){return Fv(/^Mac/i)}),zA=El(function(){return Fv(/^iPhone/i)}),U$=El(function(){return Fv(/^iPad/i)||go()&&navigator.maxTouchPoints>1}),Iv=El(function(){return zA()||U$()}),Uv=El(function(){return Vd(/AppleWebKit/i)&&!LA()}),LA=El(function(){return Vd(/Chrome/i)}),_$=El(function(){return Vd(/Android/i)}),NA=El(function(){return Vd(/Firefox/i)}),j$=b.createContext({isNative:!0,open:KA,useHref:e=>e});function BV(e){let{children:t,navigate:n,useHref:r}=e,a=b.useMemo(()=>({isNative:!1,open:(s,u,d,f)=>{Y$(s,h=>{kA(h,u)?n(d,f):Jl(h,u)})},useHref:r||(s=>s)}),[n,r]);return ie.createElement(j$.Provider,{value:a},t)}function H$(){return b.useContext(j$)}function kA(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 Jl(e,t,n=!0){var r,a;let{metaKey:s,ctrlKey:u,altKey:d,shiftKey:f}=t;NA()&&(!((a=window.event)===null||a===void 0||(r=a.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(go()?s=!0:u=!0);let h=Uv()&&go()&&!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});Jl.isOpening=n,Yl(e),e.dispatchEvent(h),Jl.isOpening=!1}Jl.isOpening=!1;function Y$(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 KA(e,t){Y$(e,n=>Jl(n,t))}function _v(e){let t=H$();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r: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 Za=new Map,Pp=new Set;function n4(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let a=Za.get(r.target);a||(a=new Set,Za.set(r.target,a),r.target.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let a=Za.get(r.target);if(a&&(a.delete(r.propertyName),a.size===0&&(r.target.removeEventListener("transitioncancel",n),Za.delete(r.target)),Za.size===0)){for(let s of Pp)s();Pp.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?n4():document.addEventListener("DOMContentLoaded",n4));function q$(e){requestAnimationFrame(()=>{Za.size===0?e():Pp.add(e)})}function VA(){let e=b.useRef(new Map),t=b.useCallback((a,s,u,d)=>{let f=d!=null&&d.once?(...h)=>{e.current.delete(u),u(...h)}:u;e.current.set(u,{type:s,eventTarget:a,fn:f,options:d}),a.addEventListener(s,u,d)},[]),n=b.useCallback((a,s,u,d)=>{var f;let h=((f=e.current.get(u))===null||f===void 0?void 0:f.fn)||u;a.removeEventListener(s,h,d),e.current.delete(u)},[]),r=b.useCallback(()=>{e.current.forEach((a,s)=>{n(a.eventTarget,a.type,s,a.options)})},[n]);return b.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Fd(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=yi(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!r&&!a&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function OV(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 FA(){return typeof window.ResizeObserver<"u"}function i4(e){const{ref:t,box:n,onResize:r}=e;b.useEffect(()=>{let a=t==null?void 0:t.current;if(a)if(FA()){const s=new window.ResizeObserver(u=>{u.length&&r()});return s.observe(a,{box:n}),()=>{a&&s.unobserve(a)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function G$(e,t){vt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function sd(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function X$(e,t){let n=e;for(sd(n,t)&&(n=n.parentElement);n&&!sd(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}let di=typeof document<"u"&&window.visualViewport;function zV(){let e=la(),[t,n]=b.useState(()=>e?{width:0,height:0}:r4());return b.useEffect(()=>{let r=()=>{n(a=>{let s=r4();return s.width===a.width&&s.height===a.height?a:s})};return di?di.addEventListener("resize",r):window.addEventListener("resize",r),()=>{di?di.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function r4(){return{width:di&&(di==null?void 0:di.width)||window.innerWidth,height:di&&(di==null?void 0:di.height)||window.innerHeight}}function Bp(e){return e.mozInputSource===0&&e.isTrusted?!0:_$()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function IA(e){return!_$()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function UA(e,t,n){let r=b.useRef(t),a=Ri(()=>{n&&n(r.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",a),()=>{u==null||u.removeEventListener("reset",a)}},[e,a])}function jv(e,t,n){let[r,a]=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:r,f=b.useCallback((h,...p)=>{let g=(y,...S)=>{n&&(Object.is(d,y)||n(y,...S)),u||(d=y)};typeof h=="function"?a((S,...x)=>{let E=h(u?d:S,...x);return g(E,...p),u?S:E}):(u||a(h),g(h,...p))},[u,d,n]);return[d,f]}function Op(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}let $m=new Map;function _A(e){let{locale:t}=pA(),n=t+(e?Object.entries(e).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if($m.has(n))return $m.get(n);let r=new Intl.Collator(t,e);return $m.set(n,r),r}const ji={top:"top",bottom:"top",left:"left",right:"left"},ud={top:"bottom",bottom:"top",left:"right",right:"left"},jA={top:"left",left:"top"},zp={top:"height",left:"width"},W$={width:"totalWidth",height:"totalHeight"},Cc={};let Xt=typeof document<"u"?window.visualViewport:null;function l4(e){let t=0,n=0,r=0,a=0,s=0,u=0,d={};var f;let h=((f=Xt==null?void 0:Xt.scale)!==null&&f!==void 0?f:1)>1;if(e.tagName==="BODY"){let x=document.documentElement;r=x.clientWidth,a=x.clientHeight;var p;t=(p=Xt==null?void 0:Xt.width)!==null&&p!==void 0?p:r;var g;n=(g=Xt==null?void 0:Xt.height)!==null&&g!==void 0?g:a,d.top=x.scrollTop||e.scrollTop,d.left=x.scrollLeft||e.scrollLeft,Xt&&(s=Xt.offsetTop,u=Xt.offsetLeft)}else({width:t,height:n,top:s,left:u}=fo(e)),d.top=e.scrollTop,d.left=e.scrollLeft,r=t,a=n;if(Uv()&&(e.tagName==="BODY"||e.tagName==="HTML")&&h){d.top=0,d.left=0;var y;s=(y=Xt==null?void 0:Xt.pageTop)!==null&&y!==void 0?y:0;var S;u=(S=Xt==null?void 0:Xt.pageLeft)!==null&&S!==void 0?S:0}return{width:t,height:n,totalWidth:r,totalHeight:a,scroll:d,top:s,left:u}}function HA(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function a4(e,t,n,r,a,s,u){var d;let f=(d=a.scroll[e])!==null&&d!==void 0?d:0,h=r[zp[e]],p=r.scroll[ji[e]]+s,g=h+r.scroll[ji[e]]-s,y=t-f+u[e]-r[ji[e]],S=t-f+n+u[e]-r[ji[e]];return y<p?p-y:S>g?Math.max(g-S,p-y):0}function YA(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 o4(e){if(Cc[e])return Cc[e];let[t,n]=e.split(" "),r=ji[t]||"right",a=jA[r];ji[n]||(n="center");let s=zp[r],u=zp[a];return Cc[e]={placement:t,crossPlacement:n,axis:r,crossAxis:a,size:s,crossSize:u},Cc[e]}function Em(e,t,n,r,a,s,u,d,f,h){let{placement:p,crossPlacement:g,axis:y,crossAxis:S,size:x,crossSize:E}=r,T={};var C;T[S]=(C=e[S])!==null&&C!==void 0?C:0;var M,D,O,R;g==="center"?T[S]+=(((M=e[E])!==null&&M!==void 0?M:0)-((D=n[E])!==null&&D!==void 0?D:0))/2:g!==S&&(T[S]+=((O=e[E])!==null&&O!==void 0?O:0)-((R=n[E])!==null&&R!==void 0?R:0)),T[S]+=s;const z=e[S]-n[E]+f+h,I=e[S]+e[E]-f-h;if(T[S]=Op(T[S],z,I),p===y){const A=d?u[x]:t[W$[x]];T[ud[y]]=Math.floor(A-e[y]+a)}else T[y]=Math.floor(e[y]+e[x]+a);return T}function qA(e,t,n,r,a,s,u,d){const f=r?n.height:t[W$.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 g,y,S,x,E,T;let C=d!=="top"?Math.max(0,t.height+t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0)-p-(((y=a.top)!==null&&y!==void 0?y:0)+((S=a.bottom)!==null&&S!==void 0?S:0)+s)):Math.max(0,p+u-(t.top+((x=t.scroll.top)!==null&&x!==void 0?x:0))-(((E=a.top)!==null&&E!==void 0?E:0)+((T=a.bottom)!==null&&T!==void 0?T:0)+s));return Math.min(t.height-s*2,C)}function s4(e,t,n,r,a,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=r[d])!==null&&p!==void 0?p:0)-r[ud[d]]-a);var g;return Math.max(0,e[f]+e[d]+e.scroll[d]-t[d]-n[d]-n[f]-((g=r[d])!==null&&g!==void 0?g:0)-r[ud[d]]-a)}function GA(e,t,n,r,a,s,u,d,f,h,p,g,y,S,x,E){let T=o4(e),{size:C,crossAxis:M,crossSize:D,placement:O,crossPlacement:R}=T,z=Em(t,d,n,T,p,g,h,y,x,E),I=p,A=s4(d,h,t,a,s+p,T);if(u&&r[C]>A){let se=o4(`${ud[O]} ${R}`),Ce=Em(t,d,n,se,p,g,h,y,x,E);s4(d,h,t,a,s+p,se)>A&&(T=se,z=Ce,I=p)}let V="bottom";T.axis==="top"?T.placement==="top"?V="top":T.placement==="bottom"&&(V="bottom"):T.crossAxis==="top"&&(T.crossPlacement==="top"?V="bottom":T.crossPlacement==="bottom"&&(V="top"));let F=a4(M,z[M],n[D],d,f,s,h);z[M]+=F;let P=qA(z,d,h,y,a,s,n.height,V);S&&S<P&&(P=S),n.height=Math.min(n.height,P),z=Em(t,d,n,T,I,g,h,y,x,E),F=a4(M,z[M],n[D],d,f,s,h),z[M]+=F;let Z={},K=t[M]+.5*t[D]-z[M]-a[ji[M]];const _=x/2+E;var Y,B,N,G;const ne=ji[M]==="left"?((Y=a.left)!==null&&Y!==void 0?Y:0)+((B=a.right)!==null&&B!==void 0?B:0):((N=a.top)!==null&&N!==void 0?N:0)+((G=a.bottom)!==null&&G!==void 0?G:0),X=n[D]-ne-x/2-E,de=t[M]+x/2-(z[M]+a[ji[M]]),ae=t[M]+t[D]-x/2-(z[M]+a[ji[M]]),le=Op(K,de,ae);return Z[M]=Op(le,_,X),{position:z,maxHeight:P,arrowOffsetLeft:Z.left,arrowOffsetTop:Z.top,placement:T.placement}}function XA(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:a,padding:s,shouldFlip:u,boundaryElement:d,offset:f,crossOffset:h,maxHeight:p,arrowSize:g=0,arrowBoundaryOffset:y=0}=e,S=r instanceof HTMLElement?WA(r):document.documentElement,x=S===document.documentElement;const E=window.getComputedStyle(S).position;let T=!!E&&E!=="static",C=x?fo(n):u4(n,S);if(!x){let{marginTop:Z,marginLeft:K}=window.getComputedStyle(n);C.top+=parseInt(Z,10)||0,C.left+=parseInt(K,10)||0}let M=fo(r),D=YA(r);var O,R;M.width+=((O=D.left)!==null&&O!==void 0?O:0)+((R=D.right)!==null&&R!==void 0?R:0);var z,I;M.height+=((z=D.top)!==null&&z!==void 0?z:0)+((I=D.bottom)!==null&&I!==void 0?I:0);let A=HA(a),V=l4(d),F=l4(S),P=d.tagName==="BODY"?fo(S):u4(S,d);return S.tagName==="HTML"&&d.tagName==="BODY"&&(F.scroll.top=0,F.scroll.left=0),GA(t,C,M,A,D,s,u,V,F,P,f,h,T,p,g,y)}function fo(e){let{top:t,left:n,width:r,height:a}=e.getBoundingClientRect(),{scrollTop:s,scrollLeft:u,clientTop:d,clientLeft:f}=document.documentElement;return{top:t+s-d,left:n+u-f,width:r,height:a}}function u4(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:a,left:s,width:u,height:d}=e.getBoundingClientRect();r={top:a,left:s,width:u,height:d}}else{r=fo(e);let a=fo(t),s=window.getComputedStyle(t);a.top+=(parseInt(s.borderTopWidth,10)||0)-t.scrollTop,a.left+=(parseInt(s.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=a.top,r.left-=a.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function WA(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!c4(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!c4(t);)t=t.parentElement;return t||document.documentElement}function c4(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 Z$=new WeakMap;function ZA(e){let{triggerRef:t,isOpen:n,onClose:r}=e;b.useEffect(()=>{if(!n||r===null)return;let a=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=r||Z$.get(t.current);d&&d()};return window.addEventListener("scroll",a,!0),()=>{window.removeEventListener("scroll",a,!0)}},[n,r,t])}const QA=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),JA=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function eM(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return QA.has(n.script)}let t=e.split("-")[0];return JA.has(t)}const tM=Symbol.for("react-aria.i18n.locale");function Q$(){let e=typeof window<"u"&&window[tM]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:eM(e)?"rtl":"ltr"}}let Lp=Q$(),xs=new Set;function d4(){Lp=Q$();for(let e of xs)e(Lp)}function nM(){let e=la(),[t,n]=b.useState(Lp);return b.useEffect(()=>(xs.size===0&&window.addEventListener("languagechange",d4),xs.add(n),()=>{xs.delete(n),xs.size===0&&window.removeEventListener("languagechange",d4)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const iM=ie.createContext(null);function Qi(){let e=nM();return b.useContext(iM)||e}const f4=new WeakMap;function rM(e){let t=f4.get(e);return t||(t=new Kd(e),f4.set(e,t)),t}function lM(e,t){return t&&Kd.getGlobalDictionaryForPackage(t)||rM(e)}function Or(e,t){let{locale:n}=Qi(),r=lM(e,t);return b.useMemo(()=>new EA(n,r),[n,r])}const Oi=typeof document<"u"?ie.useLayoutEffect:()=>{};var xm;const aM=(xm=ie.useInsertionEffect)!==null&&xm!==void 0?xm:Oi;function Zt(e){const t=b.useRef(null);return aM(()=>{t.current=e},[e]),b.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function oM(e){let[t,n]=b.useState(e),r=b.useRef(null),a=Zt(()=>{if(!r.current)return;let u=r.current.next();if(u.done){r.current=null;return}t===u.value?a():n(u.value)});Oi(()=>{r.current&&a()});let s=Zt(u=>{r.current=u(t),a()});return[t,s]}let sM=!!(typeof window<"u"&&window.document&&window.document.createElement),ho=new Map,Ts;typeof FinalizationRegistry<"u"&&(Ts=new FinalizationRegistry(e=>{ho.delete(e)}));function qi(e){let[t,n]=b.useState(e),r=b.useRef(null),a=N$(t),s=b.useRef(null);if(Ts&&Ts.register(s,a),sM){const u=ho.get(a);u&&!u.includes(r)?u.push(r):ho.set(a,[r])}return Oi(()=>{let u=a;return()=>{Ts&&Ts.unregister(s),ho.delete(u)}},[a]),b.useEffect(()=>{let u=r.current;return u&&n(u),()=>{u&&(r.current=null)}}),a}function uM(e,t){if(e===t)return e;let n=ho.get(e);if(n)return n.forEach(a=>a.current=t),t;let r=ho.get(t);return r?(r.forEach(a=>a.current=e),e):t}function h4(e=[]){let t=qi(),[n,r]=oM(t),a=b.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Oi(a,[t,a,...e]),n}function Id(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Ut=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Pi=e=>e&&"window"in e&&e.window===e?e:Ut(e).defaultView||window;function cM(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function dM(e){return cM(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let fM=!1,hM=!1;function cd(){return fM}function Ud(){return hM}function On(e,t){if(!Ud())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:dM(n)?n=n.host:n=n.parentNode}return!1}const ea=(e=document)=>{var t;if(!Ud())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 $n(e){return Ud()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class mM{get currentNode(){return this._currentNode}set currentNode(t){if(!On(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,a=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const u=r,d=this._doc.createTreeWalker(u,this.whatToShow,{acceptNode:this._acceptNode});n.push(d),d.currentNode=a,this._currentSetFor.add(d),r=a=u.host}else r=r.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=a,this._currentSetFor.add(s),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return On(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 a;if(typeof this.filter=="function"?a=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(a=this.filter.acceptNode(t)),a===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 r=this.nextNode();return r&&(this.currentNode=r),r}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 a=this.previousNode();return a&&(this.currentNode=a),a}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let s;if(typeof this.filter=="function"?s=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.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 a=this.previousNode();return a&&(this.currentNode=a),a}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,a){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=a??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const s=n.shadowRoot;if(s){const u=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(u)}}}function pM(e,t,n,r){return Ud()?new mM(e,t,n,r):e.createTreeWalker(t,n,r)}function gt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let a in r){let s=t[a],u=r[a];typeof s=="function"&&typeof u=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=Id(s,u):(a==="className"||a==="UNSAFE_className")&&typeof s=="string"&&typeof u=="string"?t[a]=T$(s,u):a==="id"&&s&&u?t.id=uM(s,u):t[a]=u!==void 0?u:s}}return t}const vM=new Set(["id"]),gM=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),bM=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),yM=new Set(["dir","lang","hidden","inert","translate"]),m4=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"]),SM=/^(data-.*)$/;function Hv(e,t={}){let{labelable:n,isLink:r,global:a,events:s=a,propNames:u}=t,d={};for(const f in e)Object.prototype.hasOwnProperty.call(e,f)&&(vM.has(f)||n&&gM.has(f)||r&&bM.has(f)||a&&yM.has(f)||s&&m4.has(f)||f.endsWith("Capture")&&m4.has(f.slice(0,-7))||u!=null&&u.has(f)||SM.test(f))&&(d[f]=e[f]);return d}function Mr(e){if($M())e.focus({preventScroll:!0});else{let t=EM(e);e.focus(),xM(t)}}let wc=null;function $M(){if(wc==null){wc=!1;try{document.createElement("div").focus({get preventScroll(){return wc=!0,!0}})}catch{}}return wc}function EM(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function xM(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function _d(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(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function Yv(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 zr(e){let t=null;return()=>(t==null&&(t=e()),t)}const ta=zr(function(){return Yv(/^Mac/i)}),TM=zr(function(){return Yv(/^iPhone/i)}),J$=zr(function(){return Yv(/^iPad/i)||ta()&&navigator.maxTouchPoints>1}),qv=zr(function(){return TM()||J$()}),CM=zr(function(){return ta()||qv()}),wM=zr(function(){return _d(/AppleWebKit/i)&&!eE()}),eE=zr(function(){return _d(/Chrome/i)}),dd=zr(function(){return _d(/Android/i)}),DM=zr(function(){return _d(/Firefox/i)}),AM=b.createContext({isNative:!0,open:PM,useHref:e=>e});function nu(){return b.useContext(AM)}function MM(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 na(e,t,n=!0){var r,a;let{metaKey:s,ctrlKey:u,altKey:d,shiftKey:f}=t;DM()&&(!((a=window.event)===null||a===void 0||(r=a.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(ta()?s=!0:u=!0);let h=wM()&&ta()&&!J$()?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});na.isOpening=n,Mr(e),e.dispatchEvent(h),na.isOpening=!1}na.isOpening=!1;function RM(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 PM(e,t){RM(e,n=>na(n,t))}function BM(e){let t=nu();var n;const r=t.useHref((n=e.href)!==null&&n!==void 0?n:"");return{"data-href":e.href?r:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function OM(e){let t=nu();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r: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 zM(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&MM(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let ml=new Map,Np=new Set;function p4(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let a=ml.get(r.target);a||(a=new Set,ml.set(r.target,a),r.target.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let a=ml.get(r.target);if(a&&(a.delete(r.propertyName),a.size===0&&(r.target.removeEventListener("transitioncancel",n),ml.delete(r.target)),ml.size===0)){for(let s of Np)s();Np.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?p4():document.addEventListener("DOMContentLoaded",p4));function LM(){for(const[e]of ml)"isConnected"in e&&!e.isConnected&&ml.delete(e)}function tE(e){requestAnimationFrame(()=>{LM(),ml.size===0?e():Np.add(e)})}function jd(){let e=b.useRef(new Map),t=b.useCallback((a,s,u,d)=>{let f=d!=null&&d.once?(...h)=>{e.current.delete(u),u(...h)}:u;e.current.set(u,{type:s,eventTarget:a,fn:f,options:d}),a.addEventListener(s,f,d)},[]),n=b.useCallback((a,s,u,d)=>{var f;let h=((f=e.current.get(u))===null||f===void 0?void 0:f.fn)||u;a.removeEventListener(s,h,d),e.current.delete(u)},[]),r=b.useCallback(()=>{e.current.forEach((a,s)=>{n(a.eventTarget,a.type,s,a.options)})},[n]);return b.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function NM(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=qi(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!r&&!a&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function nE(e,t){const n=b.useRef(!0),r=b.useRef(null);b.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),b.useEffect(()=>{let a=r.current;n.current?n.current=!1:(!a||t.some((s,u)=>!Object.is(s,a[u])))&&e(),r.current=t},t)}function v4(e,t){const n=b.useRef(!0),r=b.useRef(null);Oi(()=>(n.current=!0,()=>{n.current=!1}),[]),Oi(()=>{n.current?n.current=!1:(!r.current||t.some((a,s)=>!Object.is(a,r[s])))&&e(),r.current=t},t)}function iE(e,t){Oi(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Vs(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function ja(e,t){let n=e;for(Vs(n,t)&&(n=n.parentElement);n&&!Vs(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function kM(e,t){const n=[];for(;e&&e!==document.documentElement;)Vs(e,t)&&n.push(e),e=e.parentElement;return n}function Qa(e){return ta()?e.metaKey:e.ctrlKey}let KM=0;const Tm=new Map;function Hd(e){let[t,n]=b.useState();return Oi(()=>{if(!e)return;let r=Tm.get(e);if(r)n(r.element.id);else{let a=`react-aria-description-${KM++}`;n(a);let s=document.createElement("div");s.id=a,s.style.display="none",s.textContent=e,document.body.appendChild(s),r={refCount:0,element:s},Tm.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Tm.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Dc(e,t,n,r){let a=Zt(n),s=n==null;b.useEffect(()=>{if(s||!e.current)return;let u=e.current;return u.addEventListener(t,a,r),()=>{u.removeEventListener(t,a,r)}},[e,t,r,s,a])}function rE(e,t){let n=g4(e,t,"left"),r=g4(e,t,"top"),a=t.offsetWidth,s=t.offsetHeight,u=e.scrollLeft,d=e.scrollTop,{borderTopWidth:f,borderLeftWidth:h,scrollPaddingTop:p,scrollPaddingRight:g,scrollPaddingBottom:y,scrollPaddingLeft:S}=getComputedStyle(e),{scrollMarginTop:x,scrollMarginRight:E,scrollMarginBottom:T,scrollMarginLeft:C}=getComputedStyle(t),M=u+parseInt(h,10),D=d+parseInt(f,10),O=M+e.clientWidth,R=D+e.clientHeight,z=parseInt(p,10)||0,I=parseInt(y,10)||0,A=parseInt(g,10)||0,V=parseInt(S,10)||0,F=parseInt(x,10)||0,P=parseInt(T,10)||0,Z=parseInt(E,10)||0,K=parseInt(C,10)||0,_=n-K,Y=n+a+Z,B=r-F,N=r+s+P,G=u+parseInt(h,10)+V,ne=O-A,X=d+parseInt(f,10)+z,de=R-I;(_>G||Y<ne)&&(_<=u+V?u=_-parseInt(h,10)-V:Y>O-A&&(u+=Y-O+A)),(B>X||N<de)&&(B<=D+z?d=B-parseInt(f,10)-z:N>R-I&&(d+=N-R+I)),e.scrollTo({left:u,top:d})}function g4(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let a=0;for(;t.offsetParent&&(a+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){a-=e[r];break}t=t.offsetParent}return a}function cl(e,t){if(e&&document.contains(e)){let u=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(u).overflow==="hidden")&&!eE()){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:g}=e.getBoundingClientRect();if(Math.abs(f-p)>1||Math.abs(h-g)>1){var r,a,s;t==null||(a=t.containingElement)===null||a===void 0||(r=a.scrollIntoView)===null||r===void 0||r.call(a,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}else{let f=kM(e);for(let h of f)rE(h,e)}}}function lE(e){return e.pointerType===""&&e.isTrusted?!0:dd()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function VM(e){return!dd()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function FM(e,t,n){let r=Zt(()=>{n&&n(t)});b.useEffect(()=>{var a;let s=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return s==null||s.addEventListener("reset",r),()=>{s==null||s.removeEventListener("reset",r)}},[e,r])}const IM="react-aria-clear-focus",UM="react-aria-focus",_M=typeof Element<"u"&&"checkVisibility"in Element.prototype;function jM(e){const t=Pi(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,a=n!=="none"&&r!=="hidden"&&r!=="collapse";if(a){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:u,visibility:d}=s(e);a=u!=="none"&&d!=="hidden"&&d!=="collapse"}return a}function HM(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 Gv(e,t){return _M?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&jM(e)&&HM(e,t)&&(!e.parentElement||Gv(e.parentElement,e))}const Xv=["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"],YM=Xv.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Xv.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const qM=Xv.join(':not([hidden]):not([tabindex="-1"]),');function aE(e){return e.matches(YM)&&Gv(e)&&!oE(e)}function GM(e){return e.matches(qM)&&Gv(e)&&!oE(e)}function oE(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}let Cm=new Map;function Wv(e){let{locale:t}=Qi(),n=t+(e?Object.entries(e).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(Cm.has(n))return Cm.get(n);let r=new Intl.Collator(t,e);return Cm.set(n,r),r}let xt=typeof document<"u"?window.visualViewport:null;function LV(e){let{direction:t}=Qi(),{arrowSize:n=0,targetRef:r,overlayRef:a,scrollRef:s=a,placement:u="bottom",containerPadding:d=12,shouldFlip:f=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:p=0,crossOffset:g=0,shouldUpdatePosition:y=!0,isOpen:S=!0,onClose:x,maxHeight:E,arrowBoundaryOffset:T=0}=e,[C,M]=b.useState(null),D=[y,u,a.current,r.current,s.current,d,f,h,p,g,S,t,E,T,n],O=b.useRef(xt==null?void 0:xt.scale);b.useEffect(()=>{S&&(O.current=xt==null?void 0:xt.scale)},[S]);let R=b.useCallback(()=>{if(y===!1||!S||!a.current||!r.current||!h||(xt==null?void 0:xt.scale)!==O.current)return;let F=null;if(s.current&&s.current.contains(document.activeElement)){var P;let G=(P=document.activeElement)===null||P===void 0?void 0:P.getBoundingClientRect(),ne=s.current.getBoundingClientRect();var Z;if(F={type:"top",offset:((Z=G==null?void 0:G.top)!==null&&Z!==void 0?Z:0)-ne.top},F.offset>ne.height/2){F.type="bottom";var K;F.offset=((K=G==null?void 0:G.bottom)!==null&&K!==void 0?K:0)-ne.bottom}}let _=a.current;if(!E&&a.current){var Y;_.style.top="0px",_.style.bottom="";var B;_.style.maxHeight=((B=(Y=window.visualViewport)===null||Y===void 0?void 0:Y.height)!==null&&B!==void 0?B:window.innerHeight)+"px"}let N=XA({placement:WM(u,t),overlayNode:a.current,targetNode:r.current,scrollNode:s.current||a.current,padding:d,shouldFlip:f,boundaryElement:h,offset:p,crossOffset:g,maxHeight:E,arrowSize:n,arrowBoundaryOffset:T});if(N.position){if(_.style.top="",_.style.bottom="",_.style.left="",_.style.right="",Object.keys(N.position).forEach(G=>_.style[G]=N.position[G]+"px"),_.style.maxHeight=N.maxHeight!=null?N.maxHeight+"px":"",F&&document.activeElement&&s.current){let G=document.activeElement.getBoundingClientRect(),ne=s.current.getBoundingClientRect(),X=G[F.type]-ne[F.type];s.current.scrollTop+=X-F.offset}M(N)}},D);vt(R,D),XM(R),i4({ref:a,onResize:R}),i4({ref:r,onResize:R});let z=b.useRef(!1);vt(()=>{let F,P=()=>{z.current=!0,clearTimeout(F),F=setTimeout(()=>{z.current=!1},500),R()},Z=()=>{z.current&&P()};return xt==null||xt.addEventListener("resize",P),xt==null||xt.addEventListener("scroll",Z),()=>{xt==null||xt.removeEventListener("resize",P),xt==null||xt.removeEventListener("scroll",Z)}},[R]);let I=b.useCallback(()=>{z.current||x==null||x()},[x,z]);ZA({triggerRef:r,isOpen:S,onClose:x&&I});var A,V;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...C==null?void 0:C.position,maxHeight:(A=C==null?void 0:C.maxHeight)!==null&&A!==void 0?A:"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:R}}function XM(e){vt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function WM(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}let to="default",kp="",qc=new WeakMap;function b4(e){if(Iv()){if(to==="default"){const t=et(e);kp=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}to="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(qc.set(e,e.style.userSelect),e.style.userSelect="none")}function Ac(e){if(Iv()){if(to!=="disabled")return;to="restoring",setTimeout(()=>{q$(()=>{if(to==="restoring"){const t=et(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=kp||""),kp="",to="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&qc.has(e)){let t=qc.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),qc.delete(e)}}const Zv=ie.createContext({register:()=>{}});Zv.displayName="PressResponderContext";function ZM(e,t){return t.get?t.get.call(e):t.value}function sE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function uE(e,t){var n=sE(e,t,"get");return ZM(e,n)}function QM(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 fd(e,t,n){var r=sE(e,t,"set");return QM(e,r,n),n}function JM(e){let t=b.useContext(Zv);if(t){let{register:n,...r}=t;e=_t(r,e),n()}return G$(t,e.ref),e}var Mc=new WeakMap;let Rc=class{continuePropagation(){fd(this,Mc,!1)}get shouldStopPropagation(){return uE(this,Mc)}constructor(t,n,r,a){I$(this,Mc,{writable:!0,value:void 0}),fd(this,Mc,!0);var s;let u=(s=a==null?void 0:a.target)!==null&&s!==void 0?s:r.currentTarget;const d=u==null?void 0:u.getBoundingClientRect();let f,h=0,p,g=null;r.clientX!=null&&r.clientY!=null&&(p=r.clientX,g=r.clientY),d&&(p!=null&&g!=null?(f=p-d.left,h=g-d.top):(f=d.width/2,h=d.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=f,this.y=h}};const y4=Symbol("linkClicked");function kV(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:a,onPressUp:s,isDisabled:u,isPressed:d,preventFocusOnPress:f,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:p,ref:g,...y}=JM(e),[S,x]=b.useState(!1),E=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:T,removeAllGlobalListeners:C}=VA(),M=Ri((A,V)=>{let F=E.current;if(u||F.didFirePressStart)return!1;let P=!0;if(F.isTriggeringEvent=!0,r){let Z=new Rc("pressstart",V,A);r(Z),P=Z.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,x(!0),P}),D=Ri((A,V,F=!0)=>{let P=E.current;if(!P.didFirePressStart)return!1;P.ignoreClickAfterPress=!0,P.didFirePressStart=!1,P.isTriggeringEvent=!0;let Z=!0;if(a){let K=new Rc("pressend",V,A);a(K),Z=K.shouldStopPropagation}if(n&&n(!1),x(!1),t&&F&&!u){let K=new Rc("press",V,A);t(K),Z&&(Z=K.shouldStopPropagation)}return P.isTriggeringEvent=!1,Z}),O=Ri((A,V)=>{let F=E.current;if(u)return!1;if(s){F.isTriggeringEvent=!0;let P=new Rc("pressup",V,A);return s(P),F.isTriggeringEvent=!1,P.shouldStopPropagation}return!0}),R=Ri(A=>{let V=E.current;V.isPressed&&V.target&&(V.isOverTarget&&V.pointerType!=null&&D($r(V.target,A),V.pointerType,!1),V.isPressed=!1,V.isOverTarget=!1,V.activePointerId=null,V.pointerType=null,C(),p||Ac(V.target))}),z=Ri(A=>{h&&R(A)}),I=b.useMemo(()=>{let A=E.current,V={onKeyDown(P){if(wm(P.nativeEvent,P.currentTarget)&&P.currentTarget.contains(P.target)){var Z;$4(P.target,P.key)&&P.preventDefault();let K=!0;if(!A.isPressed&&!P.repeat){A.target=P.currentTarget,A.isPressed=!0,K=M(P,"keyboard");let _=P.currentTarget,Y=B=>{wm(B,_)&&!B.repeat&&_.contains(B.target)&&A.target&&O($r(A.target,B),"keyboard")};T(et(P.currentTarget),"keyup",Ql(Y,F),!0)}K&&P.stopPropagation(),P.metaKey&&go()&&((Z=A.metaKeyEvents)===null||Z===void 0||Z.set(P.key,P.nativeEvent))}else P.key==="Meta"&&(A.metaKeyEvents=new Map)},onClick(P){if(!(P&&!P.currentTarget.contains(P.target))&&P&&P.button===0&&!A.isTriggeringEvent&&!Jl.isOpening){let Z=!0;if(u&&P.preventDefault(),!A.ignoreClickAfterPress&&!A.ignoreEmulatedMouseEvents&&!A.isPressed&&(A.pointerType==="virtual"||Bp(P.nativeEvent))){!u&&!f&&Yl(P.currentTarget);let K=M(P,"virtual"),_=O(P,"virtual"),Y=D(P,"virtual");Z=K&&_&&Y}A.ignoreEmulatedMouseEvents=!1,A.ignoreClickAfterPress=!1,Z&&P.stopPropagation()}}},F=P=>{var Z;if(A.isPressed&&A.target&&wm(P,A.target)){var K;$4(P.target,P.key)&&P.preventDefault();let Y=P.target;D($r(A.target,P),"keyboard",A.target.contains(Y)),C(),P.key!=="Enter"&&Qv(A.target)&&A.target.contains(Y)&&!P[y4]&&(P[y4]=!0,Jl(A.target,P,!1)),A.isPressed=!1,(K=A.metaKeyEvents)===null||K===void 0||K.delete(P.key)}else if(P.key==="Meta"&&(!((Z=A.metaKeyEvents)===null||Z===void 0)&&Z.size)){var _;let Y=A.metaKeyEvents;A.metaKeyEvents=void 0;for(let B of Y.values())(_=A.target)===null||_===void 0||_.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){V.onPointerDown=Y=>{if(Y.button!==0||!Y.currentTarget.contains(Y.target))return;if(IA(Y.nativeEvent)){A.pointerType="virtual";return}Dm(Y.currentTarget)&&Y.preventDefault(),A.pointerType=Y.pointerType;let B=!0;A.isPressed||(A.isPressed=!0,A.isOverTarget=!0,A.activePointerId=Y.pointerId,A.target=Y.currentTarget,!u&&!f&&Yl(Y.currentTarget),p||b4(A.target),B=M(Y,A.pointerType),T(et(Y.currentTarget),"pointermove",P,!1),T(et(Y.currentTarget),"pointerup",Z,!1),T(et(Y.currentTarget),"pointercancel",_,!1)),B&&Y.stopPropagation()},V.onMouseDown=Y=>{Y.currentTarget.contains(Y.target)&&Y.button===0&&(Dm(Y.currentTarget)&&Y.preventDefault(),Y.stopPropagation())},V.onPointerUp=Y=>{!Y.currentTarget.contains(Y.target)||A.pointerType==="virtual"||Y.button===0&&Ha(Y,Y.currentTarget)&&O(Y,A.pointerType||Y.pointerType)};let P=Y=>{Y.pointerId===A.activePointerId&&(A.target&&Ha(Y,A.target)?!A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!0,M($r(A.target,Y),A.pointerType)):A.target&&A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!1,D($r(A.target,Y),A.pointerType,!1),z(Y)))},Z=Y=>{Y.pointerId===A.activePointerId&&A.isPressed&&Y.button===0&&A.target&&(Ha(Y,A.target)&&A.pointerType!=null?D($r(A.target,Y),A.pointerType):A.isOverTarget&&A.pointerType!=null&&D($r(A.target,Y),A.pointerType,!1),A.isPressed=!1,A.isOverTarget=!1,A.activePointerId=null,A.pointerType=null,C(),p||Ac(A.target),"ontouchend"in A.target&&Y.pointerType!=="mouse"&&T(A.target,"touchend",K,{once:!0}))},K=Y=>{cE(Y.currentTarget)&&Y.preventDefault()},_=Y=>{R(Y)};V.onDragStart=Y=>{Y.currentTarget.contains(Y.target)&&R(Y)}}else{V.onMouseDown=K=>{if(K.button!==0||!K.currentTarget.contains(K.target))return;if(Dm(K.currentTarget)&&K.preventDefault(),A.ignoreEmulatedMouseEvents){K.stopPropagation();return}A.isPressed=!0,A.isOverTarget=!0,A.target=K.currentTarget,A.pointerType=Bp(K.nativeEvent)?"virtual":"mouse",!u&&!f&&Yl(K.currentTarget),M(K,A.pointerType)&&K.stopPropagation(),T(et(K.currentTarget),"mouseup",P,!1)},V.onMouseEnter=K=>{if(!K.currentTarget.contains(K.target))return;let _=!0;A.isPressed&&!A.ignoreEmulatedMouseEvents&&A.pointerType!=null&&(A.isOverTarget=!0,_=M(K,A.pointerType)),_&&K.stopPropagation()},V.onMouseLeave=K=>{if(!K.currentTarget.contains(K.target))return;let _=!0;A.isPressed&&!A.ignoreEmulatedMouseEvents&&A.pointerType!=null&&(A.isOverTarget=!1,_=D(K,A.pointerType,!1),z(K)),_&&K.stopPropagation()},V.onMouseUp=K=>{K.currentTarget.contains(K.target)&&!A.ignoreEmulatedMouseEvents&&K.button===0&&O(K,A.pointerType||"mouse")};let P=K=>{if(K.button===0){if(A.isPressed=!1,C(),A.ignoreEmulatedMouseEvents){A.ignoreEmulatedMouseEvents=!1;return}A.target&&Ha(K,A.target)&&A.pointerType!=null?D($r(A.target,K),A.pointerType):A.target&&A.isOverTarget&&A.pointerType!=null&&D($r(A.target,K),A.pointerType,!1),A.isOverTarget=!1}};V.onTouchStart=K=>{if(!K.currentTarget.contains(K.target))return;let _=e9(K.nativeEvent);if(!_)return;A.activePointerId=_.identifier,A.ignoreEmulatedMouseEvents=!0,A.isOverTarget=!0,A.isPressed=!0,A.target=K.currentTarget,A.pointerType="touch",!u&&!f&&Yl(K.currentTarget),p||b4(A.target),M(al(A.target,K),A.pointerType)&&K.stopPropagation(),T(pi(K.currentTarget),"scroll",Z,!0)},V.onTouchMove=K=>{if(!K.currentTarget.contains(K.target))return;if(!A.isPressed){K.stopPropagation();return}let _=S4(K.nativeEvent,A.activePointerId),Y=!0;_&&Ha(_,K.currentTarget)?!A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!0,Y=M(al(A.target,K),A.pointerType)):A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!1,Y=D(al(A.target,K),A.pointerType,!1),z(al(A.target,K))),Y&&K.stopPropagation()},V.onTouchEnd=K=>{if(!K.currentTarget.contains(K.target))return;if(!A.isPressed){K.stopPropagation();return}let _=S4(K.nativeEvent,A.activePointerId),Y=!0;_&&Ha(_,K.currentTarget)&&A.pointerType!=null?(O(al(A.target,K),A.pointerType),Y=D(al(A.target,K),A.pointerType)):A.isOverTarget&&A.pointerType!=null&&(Y=D(al(A.target,K),A.pointerType,!1)),Y&&K.stopPropagation(),A.isPressed=!1,A.activePointerId=null,A.isOverTarget=!1,A.ignoreEmulatedMouseEvents=!0,A.target&&!p&&Ac(A.target),C()},V.onTouchCancel=K=>{K.currentTarget.contains(K.target)&&(K.stopPropagation(),A.isPressed&&R(al(A.target,K)))};let Z=K=>{A.isPressed&&K.target.contains(A.target)&&R({currentTarget:A.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};V.onDragStart=K=>{K.currentTarget.contains(K.target)&&R(K)}}return V},[T,u,f,C,p,R,z,D,M,O]);return b.useEffect(()=>()=>{var A;p||Ac((A=E.current.target)!==null&&A!==void 0?A:void 0)},[p]),{isPressed:d||S,pressProps:_t(y,I)}}function Qv(e){return e.tagName==="A"&&e.hasAttribute("href")}function wm(e,t){const{key:n,code:r}=e,a=t,s=a.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(a instanceof pi(a).HTMLInputElement&&!dE(a,n)||a instanceof pi(a).HTMLTextAreaElement||a.isContentEditable)&&!((s==="link"||!s&&Qv(a))&&n!=="Enter")}function e9(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function S4(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const a=n[r];if(a.identifier===t)return a}return null}function al(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function $r(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function t9(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 n9(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Ha(e,t){let n=t.getBoundingClientRect(),r=t9(e);return n9(n,r)}function Dm(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function cE(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Qv(e)}function $4(e,t){return e instanceof HTMLInputElement?!dE(e,t):cE(e)}const i9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function dE(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":i9.has(e.type)}function r9({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return ie.createElement(Zv.Provider,{value:t},e)}class l9{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 fE(e){let t=b.useRef({isFocused:!1,observer:null});vt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ri(r=>{e==null||e(r)});return b.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=r.target,s=u=>{t.current.isFocused=!1,a.disabled&&n(new l9("blur",u)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var u;(u=t.current.observer)===null||u===void 0||u.disconnect();let d=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:d})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:d}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function hE(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e;const s=b.useCallback(f=>{if(f.target===f.currentTarget)return r&&r(f),a&&a(!1),!0},[r,a]),u=fE(s),d=b.useCallback(f=>{const h=et(f.target);f.target===f.currentTarget&&h.activeElement===f.target&&(n&&n(f),a&&a(!0),u(f))},[a,n,u]);return{focusProps:{onFocus:!t&&(n||a||r)?d:void 0,onBlur:!t&&(r||a)?s:void 0}}}let aa=null,Kp=new Set,As=new Map,ia=!1,Vp=!1;const a9={Tab:!0,Escape:!0};function Yd(e,t){for(let n of Kp)n(e,t)}function o9(e){return!(e.metaKey||!go()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function hd(e){ia=!0,o9(e)&&(aa="keyboard",Yd("keyboard",e))}function mi(e){aa="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ia=!0,Yd("pointer",e))}function mE(e){Bp(e)&&(ia=!0,aa="virtual")}function pE(e){e.target===window||e.target===document||(!ia&&!Vp&&(aa="virtual",Yd("virtual",e)),ia=!1,Vp=!1)}function vE(){ia=!1,Vp=!0}function Fp(e){if(typeof window>"u"||As.get(pi(e)))return;const t=pi(e),n=et(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ia=!0,r.apply(this,arguments)},n.addEventListener("keydown",hd,!0),n.addEventListener("keyup",hd,!0),n.addEventListener("click",mE,!0),t.addEventListener("focus",pE,!0),t.addEventListener("blur",vE,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",mi,!0),n.addEventListener("pointermove",mi,!0),n.addEventListener("pointerup",mi,!0)):(n.addEventListener("mousedown",mi,!0),n.addEventListener("mousemove",mi,!0),n.addEventListener("mouseup",mi,!0)),t.addEventListener("beforeunload",()=>{gE(e)},{once:!0}),As.set(t,{focus:r})}const gE=(e,t)=>{const n=pi(e),r=et(e);t&&r.removeEventListener("DOMContentLoaded",t),As.has(n)&&(n.HTMLElement.prototype.focus=As.get(n).focus,r.removeEventListener("keydown",hd,!0),r.removeEventListener("keyup",hd,!0),r.removeEventListener("click",mE,!0),n.removeEventListener("focus",pE,!0),n.removeEventListener("blur",vE,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",mi,!0),r.removeEventListener("pointermove",mi,!0),r.removeEventListener("pointerup",mi,!0)):(r.removeEventListener("mousedown",mi,!0),r.removeEventListener("mousemove",mi,!0),r.removeEventListener("mouseup",mi,!0)),As.delete(n))};function s9(e){const t=et(e);let n;return t.readyState!=="loading"?Fp(e):(n=()=>{Fp(e)},t.addEventListener("DOMContentLoaded",n)),()=>gE(e,n)}typeof document<"u"&&s9();function Fs(){return aa!=="pointer"}function bE(){return aa}function u9(e){aa=e,Yd(e,null)}const c9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function d9(e,t,n){var r;const a=typeof window<"u"?pi(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?pi(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,u=typeof window<"u"?pi(n==null?void 0:n.target).HTMLElement:HTMLElement,d=typeof window<"u"?pi(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof a&&!c9.has(n==null||(r=n.target)===null||r===void 0?void 0:r.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&&!a9[n.key])}function f9(e,t,n){Fp(),b.useEffect(()=>{let r=(a,s)=>{d9(!!(n!=null&&n.isTextInput),a,s)&&e(Fs())};return Kp.add(r),()=>{Kp.delete(r)}},t)}function Jv(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:a}=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),a&&a(!1))},[n,a,s]),d=fE(u),f=b.useCallback(h=>{!s.current.isFocusWithin&&document.activeElement===h.target&&(r&&r(h),a&&a(!0),s.current.isFocusWithin=!0,d(h))},[r,a,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:u}}}let md=!1,Am=0;function Ip(){md=!0,setTimeout(()=>{md=!1},50)}function E4(e){e.pointerType==="touch"&&Ip()}function h9(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",E4):document.addEventListener("touchend",Ip),Am++,()=>{Am--,!(Am>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",E4):document.removeEventListener("touchend",Ip))}}function eg(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:a}=e,[s,u]=b.useState(!1),d=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(h9,[]);let{hoverProps:f,triggerHoverEnd:h}=b.useMemo(()=>{let p=(S,x)=>{if(d.pointerType=x,a||x==="touch"||d.isHovered||!S.currentTarget.contains(S.target))return;d.isHovered=!0;let E=S.currentTarget;d.target=E,t&&t({type:"hoverstart",target:E,pointerType:x}),n&&n(!0),u(!0)},g=(S,x)=>{if(d.pointerType="",d.target=null,x==="touch"||!d.isHovered)return;d.isHovered=!1;let E=S.currentTarget;r&&r({type:"hoverend",target:E,pointerType:x}),n&&n(!1),u(!1)},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=S=>{md&&S.pointerType==="mouse"||p(S,S.pointerType)},y.onPointerLeave=S=>{!a&&S.currentTarget.contains(S.target)&&g(S,S.pointerType)}):(y.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=S=>{!d.ignoreEmulatedMouseEvents&&!md&&p(S,"mouse"),d.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=S=>{!a&&S.currentTarget.contains(S.target)&&g(S,"mouse")}),{hoverProps:y,triggerHoverEnd:g}},[t,n,r,a,d]);return b.useEffect(()=>{a&&h({currentTarget:d.target},d.pointerType)},[a]),{hoverProps:f,isHovered:s}}function m9(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:a}=e,s=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),u=Ri(f=>{n&&Pc(f,t)&&(a&&a(f),s.current.isPointerDown=!0)}),d=Ri(f=>{n&&n(f)});b.useEffect(()=>{let f=s.current;if(r)return;const h=t.current,p=et(h);if(typeof PointerEvent<"u"){let g=y=>{f.isPointerDown&&Pc(y,t)&&d(y),f.isPointerDown=!1};return p.addEventListener("pointerdown",u,!0),p.addEventListener("pointerup",g,!0),()=>{p.removeEventListener("pointerdown",u,!0),p.removeEventListener("pointerup",g,!0)}}else{let g=S=>{f.ignoreEmulatedMouseEvents?f.ignoreEmulatedMouseEvents=!1:f.isPointerDown&&Pc(S,t)&&d(S),f.isPointerDown=!1},y=S=>{f.ignoreEmulatedMouseEvents=!0,f.isPointerDown&&Pc(S,t)&&d(S),f.isPointerDown=!1};return p.addEventListener("mousedown",u,!0),p.addEventListener("mouseup",g,!0),p.addEventListener("touchstart",u,!0),p.addEventListener("touchend",y,!0),()=>{p.removeEventListener("mousedown",u,!0),p.removeEventListener("mouseup",g,!0),p.removeEventListener("touchstart",u,!0),p.removeEventListener("touchend",y,!0)}}},[t,r,u,d])}function Pc(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 x4(e){if(!e)return;let t=!0;return n=>{let r={...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(r),t&&n.stopPropagation()}}function p9(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:x4(e.onKeyDown),onKeyUp:x4(e.onKeyUp)}}}function pd(e){const t=et(e);if(bE()==="virtual"){let n=t.activeElement;q$(()=>{t.activeElement===n&&e.isConnected&&Yl(e)})}else Yl(e)}function v9(e){const t=pi(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,a=n!=="none"&&r!=="hidden"&&r!=="collapse";if(a){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:u,visibility:d}=s(e);a=u!=="none"&&d!=="hidden"&&d!=="collapse"}return a}function g9(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 yE(e,t){return e.nodeName!=="#comment"&&v9(e)&&g9(e,t)&&(!e.parentElement||yE(e.parentElement,e))}const T4=ie.createContext(null),Up="react-aria-focus-scope-restore";let Xe=null;function b9(e){let{children:t,contain:n,restoreFocus:r,autoFocus:a}=e,s=b.useRef(null),u=b.useRef(null),d=b.useRef([]),{parentNode:f}=b.useContext(T4)||{},h=b.useMemo(()=>new jp({scopeRef:d}),[d]);vt(()=>{let y=f||Ot.root;if(Ot.getTreeNode(y.scopeRef)&&Xe&&!vd(Xe,y.scopeRef)){let S=Ot.getTreeNode(Xe);S&&(y=S)}y.addChild(h),Ot.addNode(h)},[h,f]),vt(()=>{let y=Ot.getTreeNode(d);y&&(y.contain=!!n)},[n]),vt(()=>{var y;let S=(y=s.current)===null||y===void 0?void 0:y.nextSibling,x=[],E=T=>T.stopPropagation();for(;S&&S!==u.current;)x.push(S),S.addEventListener(Up,E),S=S.nextSibling;return d.current=x,()=>{for(let T of x)T.removeEventListener(Up,E)}},[t]),C9(d,r,n),E9(d,n),w9(d,r,n),T9(d,a),b.useEffect(()=>{const y=et(d.current?d.current[0]:void 0).activeElement;let S=null;if(Si(y,d.current)){for(let x of Ot.traverse())x.scopeRef&&Si(y,x.scopeRef.current)&&(S=x);S===Ot.getTreeNode(d)&&(Xe=S.scopeRef)}},[d]),vt(()=>()=>{var y,S,x;let E=(x=(S=Ot.getTreeNode(d))===null||S===void 0||(y=S.parent)===null||y===void 0?void 0:y.scopeRef)!==null&&x!==void 0?x:null;(d===Xe||vd(d,Xe))&&(!E||Ot.getTreeNode(E))&&(Xe=E),Ot.removeTreeNode(d)},[d]);let p=b.useMemo(()=>y9(d),[]),g=b.useMemo(()=>({focusManager:p,parentNode:h}),[h,p]);return ie.createElement(T4.Provider,{value:g},ie.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,ie.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:u}))}function y9(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:a,wrap:s,accept:u}=t,d=r||et(n[0]).activeElement,f=n[0].previousElementSibling,h=ql(n),p=Cr(h,{tabbable:a,accept:u},n);p.currentNode=Si(d,n)?d:f;let g=p.nextNode();return!g&&s&&(p.currentNode=f,g=p.nextNode()),g&&Tr(g,!0),g},focusPrevious(t={}){let n=e.current,{from:r,tabbable:a,wrap:s,accept:u}=t,d=r||et(n[0]).activeElement,f=n[n.length-1].nextElementSibling,h=ql(n),p=Cr(h,{tabbable:a,accept:u},n);p.currentNode=Si(d,n)?d:f;let g=p.previousNode();return!g&&s&&(p.currentNode=f,g=p.previousNode()),g&&Tr(g,!0),g},focusFirst(t={}){let n=e.current,{tabbable:r,accept:a}=t,s=ql(n),u=Cr(s,{tabbable:r,accept:a},n);u.currentNode=n[0].previousElementSibling;let d=u.nextNode();return d&&Tr(d,!0),d},focusLast(t={}){let n=e.current,{tabbable:r,accept:a}=t,s=ql(n),u=Cr(s,{tabbable:r,accept:a},n);u.currentNode=n[n.length-1].nextElementSibling;let d=u.previousNode();return d&&Tr(d,!0),d}}}const tg=["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]"],S9=tg.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";tg.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const $9=tg.join(':not([hidden]):not([tabindex="-1"]),');function ql(e){return e[0].parentElement}function Cs(e){let t=Ot.getTreeNode(Xe);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function E9(e,t){let n=b.useRef(void 0),r=b.useRef(void 0);vt(()=>{let a=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const s=et(a?a[0]:void 0);let u=h=>{if(h.key!=="Tab"||h.altKey||h.ctrlKey||h.metaKey||!Cs(e)||h.isComposing)return;let p=s.activeElement,g=e.current;if(!g||!Si(p,g))return;let y=ql(g),S=Cr(y,{tabbable:!0},g);if(!p)return;S.currentNode=p;let x=h.shiftKey?S.previousNode():S.nextNode();x||(S.currentNode=h.shiftKey?g[g.length-1].nextElementSibling:g[0].previousElementSibling,x=h.shiftKey?S.previousNode():S.nextNode()),h.preventDefault(),x&&Tr(x,!0)},d=h=>{(!Xe||vd(Xe,e))&&Si(h.target,e.current)?(Xe=e,n.current=h.target):Cs(e)&&!pl(h.target,e)?n.current?n.current.focus():Xe&&Xe.current&&_p(Xe.current):Cs(e)&&(n.current=h.target)},f=h=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(s.activeElement&&Cs(e)&&!pl(s.activeElement,e))if(Xe=e,s.body.contains(h.target)){var p;n.current=h.target,(p=n.current)===null||p===void 0||p.focus()}else Xe.current&&_p(Xe.current)})};return s.addEventListener("keydown",u,!1),s.addEventListener("focusin",d,!1),a==null||a.forEach(h=>h.addEventListener("focusin",d,!1)),a==null||a.forEach(h=>h.addEventListener("focusout",f,!1)),()=>{s.removeEventListener("keydown",u,!1),s.removeEventListener("focusin",d,!1),a==null||a.forEach(h=>h.removeEventListener("focusin",d,!1)),a==null||a.forEach(h=>h.removeEventListener("focusout",f,!1))}},[e,t]),vt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function SE(e){return pl(e)}function Si(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function pl(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ot.traverse(Ot.getTreeNode(t)))if(n&&Si(e,n.current))return!0;return!1}function x9(e){return pl(e,Xe)}function vd(e,t){var n;let r=(n=Ot.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Tr(e,t=!1){if(e!=null&&!t)try{pd(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function $E(e,t=!0){let n=e[0].previousElementSibling,r=ql(e),a=Cr(r,{tabbable:t},e);a.currentNode=n;let s=a.nextNode();return t&&!s&&(r=ql(e),a=Cr(r,{tabbable:!1},e),a.currentNode=n,s=a.nextNode()),s}function _p(e,t=!0){Tr($E(e,t))}function T9(e,t){const n=ie.useRef(t);b.useEffect(()=>{if(n.current){Xe=e;const r=et(e.current?e.current[0]:void 0);!Si(r.activeElement,Xe.current)&&e.current&&_p(e.current)}n.current=!1},[e])}function C9(e,t,n){vt(()=>{if(t||n)return;let r=e.current;const a=et(r?r[0]:void 0);let s=u=>{let d=u.target;Si(d,e.current)?Xe=e:SE(d)||(Xe=null)};return a.addEventListener("focusin",s,!1),r==null||r.forEach(u=>u.addEventListener("focusin",s,!1)),()=>{a.removeEventListener("focusin",s,!1),r==null||r.forEach(u=>u.removeEventListener("focusin",s,!1))}},[e,t,n])}function C4(e){let t=Ot.getTreeNode(Xe);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function w9(e,t,n){const r=b.useRef(typeof document<"u"?et(e.current?e.current[0]:void 0).activeElement:null);vt(()=>{let a=e.current;const s=et(a?a[0]:void 0);if(!t||n)return;let u=()=>{(!Xe||vd(Xe,e))&&Si(s.activeElement,e.current)&&(Xe=e)};return s.addEventListener("focusin",u,!1),a==null||a.forEach(d=>d.addEventListener("focusin",u,!1)),()=>{s.removeEventListener("focusin",u,!1),a==null||a.forEach(d=>d.removeEventListener("focusin",u,!1))}},[e,n]),vt(()=>{const a=et(e.current?e.current[0]:void 0);if(!t)return;let s=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Cs(e)||u.isComposing)return;let d=a.activeElement;if(!pl(d,e)||!C4(e))return;let f=Ot.getTreeNode(e);if(!f)return;let h=f.nodeToRestore,p=Cr(a.body,{tabbable:!0});p.currentNode=d;let g=u.shiftKey?p.previousNode():p.nextNode();if((!h||!a.body.contains(h)||h===a.body)&&(h=void 0,f.nodeToRestore=void 0),(!g||!pl(g,e))&&h){p.currentNode=h;do g=u.shiftKey?p.previousNode():p.nextNode();while(pl(g,e));u.preventDefault(),u.stopPropagation(),g?Tr(g,!0):SE(h)?Tr(h,!0):d.blur()}};return n||a.addEventListener("keydown",s,!0),()=>{n||a.removeEventListener("keydown",s,!0)}},[e,t,n]),vt(()=>{const a=et(e.current?e.current[0]:void 0);if(!t)return;let s=Ot.getTreeNode(e);if(s){var u;return s.nodeToRestore=(u=r.current)!==null&&u!==void 0?u:void 0,()=>{let d=Ot.getTreeNode(e);if(!d)return;let f=d.nodeToRestore;if(t&&f&&(a.activeElement&&pl(a.activeElement,e)||a.activeElement===a.body&&C4(e))){let h=Ot.clone();requestAnimationFrame(()=>{if(a.activeElement===a.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&&Ot.getTreeNode(p.scopeRef)){let g=$E(p.scopeRef.current,!0);w4(g);return}p=p.parent}}})}}}},[e,t])}function w4(e){e.dispatchEvent(new CustomEvent(Up,{bubbles:!0,cancelable:!0}))&&Tr(e)}function Cr(e,t,n){let r=t!=null&&t.tabbable?$9:S9,a=et(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(r)&&yE(s)&&(!n||Si(s,n))&&(!(t!=null&&t.accept)||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(a.currentNode=t.from),a}let D9=class EE{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let a=this.fastMap.get(n??null);if(!a)return;let s=new jp({scopeRef:t});a.addChild(s),s.parent=a,this.fastMap.set(t,s),r&&(s.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Si(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let a=n.children;r&&(r.removeChild(n),a.size>0&&a.forEach(s=>r&&r.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 EE;var r;for(let a of this.traverse())n.addTreeNode(a.scopeRef,(r=(t=a.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,a.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new jp({scopeRef:null}),this.fastMap.set(null,this.root)}},jp=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}},Ot=new D9;function VV(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,a=b.useRef({isFocused:!1,isFocusVisible:t||Fs()}),[s,u]=b.useState(!1),[d,f]=b.useState(()=>a.current.isFocused&&a.current.isFocusVisible),h=b.useCallback(()=>f(a.current.isFocused&&a.current.isFocusVisible),[]),p=b.useCallback(S=>{a.current.isFocused=S,u(S),h()},[h]);f9(S=>{a.current.isFocusVisible=S,h()},[],{isTextInput:n});let{focusProps:g}=hE({isDisabled:r,onFocusChange:p}),{focusWithinProps:y}=Jv({isDisabled:!r,onFocusWithinChange:p});return{isFocused:s,isFocusVisible:d,focusProps:r?y:g}}let A9=ie.createContext(null);function M9(e){let t=b.useContext(A9)||{};G$(t,e);let{ref:n,...r}=t;return r}function R9(e,t){let{focusProps:n}=hE(e),{keyboardProps:r}=p9(e),a=_t(n,r),s=M9(t),u=e.isDisabled?{}:s,d=b.useRef(e.autoFocus);return b.useEffect(()=>{d.current&&t.current&&pd(t.current),d.current=!1},[t]),{focusableProps:_t({...a,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},u)}}function P9(e,t){let n=t==null?void 0:t.isDisabled,[r,a]=b.useState(!1);return vt(()=>{if(e!=null&&e.current&&!n){let s=()=>{if(e.current){let d=Cr(e.current,{tabbable:!0});a(!!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:r}const Er=[];function B9(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:a,isDismissable:s=!1,isKeyboardDismissDisabled:u=!1,shouldCloseOnInteractOutside:d}=e;b.useEffect(()=>(a&&Er.push(t),()=>{let x=Er.indexOf(t);x>=0&&Er.splice(x,1)}),[a,t]);let f=()=>{Er[Er.length-1]===t&&n&&n()},h=x=>{(!d||d(x.target))&&Er[Er.length-1]===t&&(x.stopPropagation(),x.preventDefault())},p=x=>{(!d||d(x.target))&&(Er[Er.length-1]===t&&(x.stopPropagation(),x.preventDefault()),f())},g=x=>{x.key==="Escape"&&!u&&!x.nativeEvent.isComposing&&(x.stopPropagation(),x.preventDefault(),f())};m9({ref:t,onInteractOutside:s&&a?p:void 0,onInteractOutsideStart:h});let{focusWithinProps:y}=Jv({isDisabled:!r,onBlurWithin:x=>{!x.relatedTarget||x9(x.relatedTarget)||(!d||d(x.relatedTarget))&&(n==null||n())}}),S=x=>{x.target===x.currentTarget&&x.preventDefault()};return{overlayProps:{onKeyDown:g,...y},underlayProps:{onPointerDown:S}}}function FV(e,t,n){let{type:r}=e,{isOpen:a}=t;b.useEffect(()=>{n&&n.current&&Z$.set(n.current,t.close)});let s;r==="menu"?s=!0:r==="listbox"&&(s="listbox");let u=yi();return{triggerProps:{"aria-haspopup":s,"aria-expanded":a,"aria-controls":a?u:void 0,onPress:t.toggle},overlayProps:{id:u}}}const Mm=typeof document<"u"&&window.visualViewport,O9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Bc=0,Rm;function z9(e={}){let{isDisabled:t}=e;vt(()=>{if(!t)return Bc++,Bc===1&&(Iv()?Rm=N9():Rm=L9()),()=>{Bc--,Bc===0&&Rm()}},[t])}function L9(){return Ql(no(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),no(document.documentElement,"overflow","hidden"))}function N9(){let e,t,n=h=>{e=X$(h.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=no(e,"overscrollBehavior","contain"))},r=h=>{if(!e||e===document.documentElement||e===document.body){h.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&h.preventDefault()},a=h=>{let p=h.target;A4(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;A4(p)&&(d(),p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",Mm&&(Mm.height<window.innerHeight?requestAnimationFrame(()=>{D4(p)}):Mm.addEventListener("resize",()=>D4(p),{once:!0}))}))},u=null,d=()=>{if(u)return;let h=()=>{window.scrollTo(0,0)},p=window.pageXOffset,g=window.pageYOffset;u=Ql(bs(window,"scroll",h),no(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),no(document.documentElement,"overflow","hidden"),no(document.body,"marginTop",`-${g}px`),()=>{window.scrollTo(p,g)}),window.scrollTo(0,0)},f=Ql(bs(document,"touchstart",n,{passive:!1,capture:!0}),bs(document,"touchmove",r,{passive:!1,capture:!0}),bs(document,"touchend",a,{passive:!1,capture:!0}),bs(document,"focus",s,!0));return()=>{t==null||t(),u==null||u(),f()}}function no(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function bs(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function D4(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=X$(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let a=r.getBoundingClientRect().top,s=n.getBoundingClientRect().top;s>a+n.clientHeight&&(r.scrollTop+=s-a)}n=r.parentElement}}function A4(e){return e instanceof HTMLInputElement&&!O9.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Hp=ie.createContext(null);function k9(e){let{children:t}=e,n=b.useContext(Hp),[r,a]=b.useState(0),s=b.useMemo(()=>({parent:n,modalCount:r,addModal(){a(u=>u+1),n&&n.addModal()},removeModal(){a(u=>u-1),n&&n.removeModal()}}),[n,r]);return ie.createElement(Hp.Provider,{value:s},t)}function K9(){let e=b.useContext(Hp);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function V9(e){let{modalProviderProps:t}=K9();return ie.createElement("div",{"data-overlay-container":!0,...e,...t})}function F9(e){return ie.createElement(k9,null,ie.createElement(V9,e))}function IV(e){let t=la(),{portalContainer:n=t?null:document.body,...r}=e;if(ie.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 a=ie.createElement(F9,r);return E$.createPortal(a,n)}var xE={};xE={dismiss:"تجاهل"};var TE={};TE={dismiss:"Отхвърляне"};var CE={};CE={dismiss:"Odstranit"};var wE={};wE={dismiss:"Luk"};var DE={};DE={dismiss:"Schließen"};var AE={};AE={dismiss:"Απόρριψη"};var ME={};ME={dismiss:"Dismiss"};var RE={};RE={dismiss:"Descartar"};var PE={};PE={dismiss:"Lõpeta"};var BE={};BE={dismiss:"Hylkää"};var OE={};OE={dismiss:"Rejeter"};var zE={};zE={dismiss:"התעלם"};var LE={};LE={dismiss:"Odbaci"};var NE={};NE={dismiss:"Elutasítás"};var kE={};kE={dismiss:"Ignora"};var KE={};KE={dismiss:"閉じる"};var VE={};VE={dismiss:"무시"};var FE={};FE={dismiss:"Atmesti"};var IE={};IE={dismiss:"Nerādīt"};var UE={};UE={dismiss:"Lukk"};var _E={};_E={dismiss:"Negeren"};var jE={};jE={dismiss:"Zignoruj"};var HE={};HE={dismiss:"Descartar"};var YE={};YE={dismiss:"Dispensar"};var qE={};qE={dismiss:"Revocare"};var GE={};GE={dismiss:"Пропустить"};var XE={};XE={dismiss:"Zrušiť"};var WE={};WE={dismiss:"Opusti"};var ZE={};ZE={dismiss:"Odbaci"};var QE={};QE={dismiss:"Avvisa"};var JE={};JE={dismiss:"Kapat"};var ex={};ex={dismiss:"Скасувати"};var tx={};tx={dismiss:"取消"};var nx={};nx={dismiss:"關閉"};var ix={};ix={"ar-AE":xE,"bg-BG":TE,"cs-CZ":CE,"da-DK":wE,"de-DE":DE,"el-GR":AE,"en-US":ME,"es-ES":RE,"et-EE":PE,"fi-FI":BE,"fr-FR":OE,"he-IL":zE,"hr-HR":LE,"hu-HU":NE,"it-IT":kE,"ja-JP":KE,"ko-KR":VE,"lt-LT":FE,"lv-LV":IE,"nb-NO":UE,"nl-NL":_E,"pl-PL":jE,"pt-BR":HE,"pt-PT":YE,"ro-RO":qE,"ru-RU":GE,"sk-SK":XE,"sl-SI":WE,"sr-SP":ZE,"sv-SE":QE,"tr-TR":JE,"uk-UA":ex,"zh-CN":tx,"zh-TW":nx};function ng(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function rx(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function lx(e){let t=b.useRef({isFocused:!1,observer:null});Oi(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Zt(r=>{e==null||e(r)});return b.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=r.target,s=u=>{if(t.current.isFocused=!1,a.disabled){let d=ng(u);n(d)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var u;(u=t.current.observer)===null||u===void 0||u.disconnect();let d=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:d})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:d}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let gd=!1;function I9(e){for(;e&&!aE(e);)e=e.parentElement;let t=Pi(e),n=t.document.activeElement;if(!n||n===e)return;gd=!0;let r=!1,a=p=>{(p.target===n||r)&&p.stopImmediatePropagation()},s=p=>{(p.target===n||r)&&(p.stopImmediatePropagation(),!e&&!r&&(r=!0,Mr(n),f()))},u=p=>{(p.target===e||r)&&p.stopImmediatePropagation()},d=p=>{(p.target===e||r)&&(p.stopImmediatePropagation(),r||(r=!0,Mr(n),f()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",d,!0),t.addEventListener("focus",u,!0);let f=()=>{cancelAnimationFrame(h),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",d,!0),t.removeEventListener("focus",u,!0),gd=!1,r=!1},h=requestAnimationFrame(f);return f}let io="default",Yp="",Gc=new WeakMap;function U9(e){if(qv()){if(io==="default"){const t=Ut(e);Yp=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}io="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Gc.set(e,e.style[t]),e.style[t]="none"}}function M4(e){if(qv()){if(io!=="disabled")return;io="restoring",setTimeout(()=>{tE(()=>{if(io==="restoring"){const t=Ut(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Yp||""),Yp="",io="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Gc.has(e)){let t=Gc.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Gc.delete(e)}}const ax=ie.createContext({register:()=>{}});ax.displayName="PressResponderContext";function _9(e){let t=b.useContext(ax);if(t){let{register:n,...r}=t;e=gt(r,e),n()}return iE(t,e.ref),e}var Oc=new WeakMap;class zc{continuePropagation(){fd(this,Oc,!1)}get shouldStopPropagation(){return uE(this,Oc)}constructor(t,n,r,a){I$(this,Oc,{writable:!0,value:void 0}),fd(this,Oc,!0);var s;let u=(s=a==null?void 0:a.target)!==null&&s!==void 0?s:r.currentTarget;const d=u==null?void 0:u.getBoundingClientRect();let f,h=0,p,g=null;r.clientX!=null&&r.clientY!=null&&(p=r.clientX,g=r.clientY),d&&(p!=null&&g!=null?(f=p-d.left,h=g-d.top):(f=d.width/2,h=d.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=f,this.y=h}}const R4=Symbol("linkClicked"),P4="react-aria-pressable-style",B4="data-react-aria-pressable";function gl(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:a,onPressUp:s,onClick:u,isDisabled:d,isPressed:f,preventFocusOnPress:h,shouldCancelOnPointerExit:p,allowTextSelectionOnPress:g,ref:y,...S}=_9(e),[x,E]=b.useState(!1),T=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:C,removeAllGlobalListeners:M}=jd(),D=Zt((P,Z)=>{let K=T.current;if(d||K.didFirePressStart)return!1;let _=!0;if(K.isTriggeringEvent=!0,r){let Y=new zc("pressstart",Z,P);r(Y),_=Y.shouldStopPropagation}return n&&n(!0),K.isTriggeringEvent=!1,K.didFirePressStart=!0,E(!0),_}),O=Zt((P,Z,K=!0)=>{let _=T.current;if(!_.didFirePressStart)return!1;_.didFirePressStart=!1,_.isTriggeringEvent=!0;let Y=!0;if(a){let B=new zc("pressend",Z,P);a(B),Y=B.shouldStopPropagation}if(n&&n(!1),E(!1),t&&K&&!d){let B=new zc("press",Z,P);t(B),Y&&(Y=B.shouldStopPropagation)}return _.isTriggeringEvent=!1,Y}),R=Zt((P,Z)=>{let K=T.current;if(d)return!1;if(s){K.isTriggeringEvent=!0;let _=new zc("pressup",Z,P);return s(_),K.isTriggeringEvent=!1,_.shouldStopPropagation}return!0}),z=Zt(P=>{let Z=T.current;if(Z.isPressed&&Z.target){Z.didFirePressStart&&Z.pointerType!=null&&O(Fl(Z.target,P),Z.pointerType,!1),Z.isPressed=!1,Z.isOverTarget=!1,Z.activePointerId=null,Z.pointerType=null,M(),g||M4(Z.target);for(let K of Z.disposables)K();Z.disposables=[]}}),I=Zt(P=>{p&&z(P)}),A=Zt(P=>{d||u==null||u(P)}),V=Zt((P,Z)=>{if(!d&&u){let K=new MouseEvent("click",P);rx(K,Z),u(ng(K))}}),F=b.useMemo(()=>{let P=T.current,Z={onKeyDown(_){if(Pm(_.nativeEvent,_.currentTarget)&&On(_.currentTarget,$n(_.nativeEvent))){var Y;O4($n(_.nativeEvent),_.key)&&_.preventDefault();let B=!0;if(!P.isPressed&&!_.repeat){P.target=_.currentTarget,P.isPressed=!0,P.pointerType="keyboard",B=D(_,"keyboard");let N=_.currentTarget,G=ne=>{Pm(ne,N)&&!ne.repeat&&On(N,$n(ne))&&P.target&&R(Fl(P.target,ne),"keyboard")};C(Ut(_.currentTarget),"keyup",Id(G,K),!0)}B&&_.stopPropagation(),_.metaKey&&ta()&&((Y=P.metaKeyEvents)===null||Y===void 0||Y.set(_.key,_.nativeEvent))}else _.key==="Meta"&&(P.metaKeyEvents=new Map)},onClick(_){if(!(_&&!On(_.currentTarget,$n(_.nativeEvent)))&&_&&_.button===0&&!P.isTriggeringEvent&&!na.isOpening){let Y=!0;if(d&&_.preventDefault(),!P.ignoreEmulatedMouseEvents&&!P.isPressed&&(P.pointerType==="virtual"||lE(_.nativeEvent))){let B=D(_,"virtual"),N=R(_,"virtual"),G=O(_,"virtual");A(_),Y=B&&N&&G}else if(P.isPressed&&P.pointerType!=="keyboard"){let B=P.pointerType||_.nativeEvent.pointerType||"virtual",N=R(Fl(_.currentTarget,_),B),G=O(Fl(_.currentTarget,_),B,!0);Y=N&&G,P.isOverTarget=!1,A(_),z(_)}P.ignoreEmulatedMouseEvents=!1,Y&&_.stopPropagation()}}},K=_=>{var Y;if(P.isPressed&&P.target&&Pm(_,P.target)){var B;O4($n(_),_.key)&&_.preventDefault();let G=$n(_),ne=On(P.target,$n(_));O(Fl(P.target,_),"keyboard",ne),ne&&V(_,P.target),M(),_.key!=="Enter"&&ig(P.target)&&On(P.target,G)&&!_[R4]&&(_[R4]=!0,na(P.target,_,!1)),P.isPressed=!1,(B=P.metaKeyEvents)===null||B===void 0||B.delete(_.key)}else if(_.key==="Meta"&&(!((Y=P.metaKeyEvents)===null||Y===void 0)&&Y.size)){var N;let G=P.metaKeyEvents;P.metaKeyEvents=void 0;for(let ne of G.values())(N=P.target)===null||N===void 0||N.dispatchEvent(new KeyboardEvent("keyup",ne))}};if(typeof PointerEvent<"u"){Z.onPointerDown=B=>{if(B.button!==0||!On(B.currentTarget,$n(B.nativeEvent)))return;if(VM(B.nativeEvent)){P.pointerType="virtual";return}P.pointerType=B.pointerType;let N=!0;if(!P.isPressed){P.isPressed=!0,P.isOverTarget=!0,P.activePointerId=B.pointerId,P.target=B.currentTarget,g||U9(P.target),N=D(B,P.pointerType);let G=$n(B.nativeEvent);"releasePointerCapture"in G&&G.releasePointerCapture(B.pointerId),C(Ut(B.currentTarget),"pointerup",_,!1),C(Ut(B.currentTarget),"pointercancel",Y,!1)}N&&B.stopPropagation()},Z.onMouseDown=B=>{if(On(B.currentTarget,$n(B.nativeEvent))&&B.button===0){if(h){let N=I9(B.target);N&&P.disposables.push(N)}B.stopPropagation()}},Z.onPointerUp=B=>{!On(B.currentTarget,$n(B.nativeEvent))||P.pointerType==="virtual"||B.button===0&&!P.isPressed&&R(B,P.pointerType||B.pointerType)},Z.onPointerEnter=B=>{B.pointerId===P.activePointerId&&P.target&&!P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!0,D(Fl(P.target,B),P.pointerType))},Z.onPointerLeave=B=>{B.pointerId===P.activePointerId&&P.target&&P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!1,O(Fl(P.target,B),P.pointerType,!1),I(B))};let _=B=>{if(B.pointerId===P.activePointerId&&P.isPressed&&B.button===0&&P.target){if(On(P.target,$n(B))&&P.pointerType!=null){let N=!1,G=setTimeout(()=>{P.isPressed&&P.target instanceof HTMLElement&&(N?z(B):(Mr(P.target),P.target.click()))},80);C(B.currentTarget,"click",()=>N=!0,!0),P.disposables.push(()=>clearTimeout(G))}else z(B);P.isOverTarget=!1}},Y=B=>{z(B)};Z.onDragStart=B=>{On(B.currentTarget,$n(B.nativeEvent))&&z(B)}}return Z},[C,d,h,M,g,z,I,O,D,R,A,V]);return b.useEffect(()=>{if(!y)return;const P=Ut(y.current);if(!P||!P.head||P.getElementById(P4))return;const Z=P.createElement("style");Z.id=P4,Z.textContent=`
@layer {
  [${B4}] {
    touch-action: pan-x pan-y pinch-zoom;
  }
}
    `.trim(),P.head.prepend(Z)},[y]),b.useEffect(()=>{let P=T.current;return()=>{var Z;g||M4((Z=P.target)!==null&&Z!==void 0?Z:void 0);for(let K of P.disposables)K();P.disposables=[]}},[g]),{isPressed:f||x,pressProps:gt(S,F,{[B4]:!0})}}function ig(e){return e.tagName==="A"&&e.hasAttribute("href")}function Pm(e,t){const{key:n,code:r}=e,a=t,s=a.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(a instanceof Pi(a).HTMLInputElement&&!ox(a,n)||a instanceof Pi(a).HTMLTextAreaElement||a.isContentEditable)&&!((s==="link"||!s&&ig(a))&&n!=="Enter")}function Fl(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function j9(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!ig(e)}function O4(e,t){return e instanceof HTMLInputElement?!ox(e,t):j9(e)}const H9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ox(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":H9.has(e.type)}let Rr=null,Is=new Set,Ms=new Map,ra=!1,qp=!1;const Y9={Tab:!0,Escape:!0};function qd(e,t){for(let n of Is)n(e,t)}function q9(e){return!(e.metaKey||!ta()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function bd(e){ra=!0,q9(e)&&(Rr="keyboard",qd("keyboard",e))}function mo(e){Rr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ra=!0,qd("pointer",e))}function sx(e){lE(e)&&(ra=!0,Rr="virtual")}function ux(e){e.target===window||e.target===document||gd||!e.isTrusted||(!ra&&!qp&&(Rr="virtual",qd("virtual",e)),ra=!1,qp=!1)}function cx(){gd||(ra=!1,qp=!0)}function yd(e){if(typeof window>"u"||typeof document>"u"||Ms.get(Pi(e)))return;const t=Pi(e),n=Ut(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ra=!0,r.apply(this,arguments)},n.addEventListener("keydown",bd,!0),n.addEventListener("keyup",bd,!0),n.addEventListener("click",sx,!0),t.addEventListener("focus",ux,!0),t.addEventListener("blur",cx,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",mo,!0),n.addEventListener("pointermove",mo,!0),n.addEventListener("pointerup",mo,!0)),t.addEventListener("beforeunload",()=>{dx(e)},{once:!0}),Ms.set(t,{focus:r})}const dx=(e,t)=>{const n=Pi(e),r=Ut(e);t&&r.removeEventListener("DOMContentLoaded",t),Ms.has(n)&&(n.HTMLElement.prototype.focus=Ms.get(n).focus,r.removeEventListener("keydown",bd,!0),r.removeEventListener("keyup",bd,!0),r.removeEventListener("click",sx,!0),n.removeEventListener("focus",ux,!0),n.removeEventListener("blur",cx,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",mo,!0),r.removeEventListener("pointermove",mo,!0),r.removeEventListener("pointerup",mo,!0)),Ms.delete(n))};function G9(e){const t=Ut(e);let n;return t.readyState!=="loading"?yd(e):(n=()=>{yd(e)},t.addEventListener("DOMContentLoaded",n)),()=>dx(e,n)}typeof document<"u"&&G9();function Gd(){return Rr!=="pointer"}function Gp(){return Rr}function X9(e){Rr=e,qd(e,null)}function W9(){yd();let[e,t]=b.useState(Rr);return b.useEffect(()=>{let n=()=>{t(Rr)};return Is.add(n),()=>{Is.delete(n)}},[]),la()?null:e}const Z9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Q9(e,t,n){let r=Ut(n==null?void 0:n.target);const a=typeof window<"u"?Pi(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?Pi(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,u=typeof window<"u"?Pi(n==null?void 0:n.target).HTMLElement:HTMLElement,d=typeof window<"u"?Pi(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof a&&!Z9.has(r.activeElement.type)||r.activeElement instanceof s||r.activeElement instanceof u&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof d&&!Y9[n.key])}function J9(e,t,n){yd(),b.useEffect(()=>{let r=(a,s)=>{Q9(!!(n!=null&&n.isTextInput),a,s)&&e(Gd())};return Is.add(r),()=>{Is.delete(r)}},t)}function fi(e){const t=Ut(e),n=ea(t);if(Gp()==="virtual"){let r=n;tE(()=>{ea(t)===r&&e.isConnected&&Mr(e)})}else Mr(e)}function rg(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e;const s=b.useCallback(f=>{if(f.target===f.currentTarget)return r&&r(f),a&&a(!1),!0},[r,a]),u=lx(s),d=b.useCallback(f=>{const h=Ut(f.target),p=h?ea(h):ea();f.target===f.currentTarget&&p===$n(f.nativeEvent)&&(n&&n(f),a&&a(!0),u(f))},[a,n,u]);return{focusProps:{onFocus:!t&&(n||a||r)?d:void 0,onBlur:!t&&(r||a)?s:void 0}}}function z4(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function fx(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:z4(e.onKeyDown),onKeyUp:z4(e.onKeyUp)}}}let eR=ie.createContext(null);function tR(e){let t=b.useContext(eR)||{};iE(t,e);let{ref:n,...r}=t;return r}function Xd(e,t){let{focusProps:n}=rg(e),{keyboardProps:r}=fx(e),a=gt(n,r),s=tR(t),u=e.isDisabled?{}:s,d=b.useRef(e.autoFocus);b.useEffect(()=>{d.current&&t.current&&fi(t.current),d.current=!1},[t]);let f=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(f=void 0),{focusableProps:gt({...a,tabIndex:f},u)}}function hx(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:a}=e,s=b.useRef({isFocusWithin:!1}),{addGlobalListener:u,removeAllGlobalListeners:d}=jd(),f=b.useCallback(g=>{g.currentTarget.contains(g.target)&&s.current.isFocusWithin&&!g.currentTarget.contains(g.relatedTarget)&&(s.current.isFocusWithin=!1,d(),n&&n(g),a&&a(!1))},[n,a,s,d]),h=lx(f),p=b.useCallback(g=>{if(!g.currentTarget.contains(g.target))return;const y=Ut(g.target),S=ea(y);if(!s.current.isFocusWithin&&S===$n(g.nativeEvent)){r&&r(g),a&&a(!0),s.current.isFocusWithin=!0,h(g);let x=g.currentTarget;u(y,"focus",E=>{if(s.current.isFocusWithin&&!On(x,E.target)){let T=new y.defaultView.FocusEvent("blur",{relatedTarget:E.target});rx(T,x);let C=ng(T);f(C)}},{capture:!0})}},[r,a,h,u,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:p,onBlur:f}}}let Xp=!1,Lc=0;function nR(){Xp=!0,setTimeout(()=>{Xp=!1},50)}function L4(e){e.pointerType==="touch"&&nR()}function iR(){if(!(typeof document>"u"))return Lc===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",L4),Lc++,()=>{Lc--,!(Lc>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",L4)}}function rR(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:a}=e,[s,u]=b.useState(!1),d=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(iR,[]);let{addGlobalListener:f,removeAllGlobalListeners:h}=jd(),{hoverProps:p,triggerHoverEnd:g}=b.useMemo(()=>{let y=(E,T)=>{if(d.pointerType=T,a||T==="touch"||d.isHovered||!E.currentTarget.contains(E.target))return;d.isHovered=!0;let C=E.currentTarget;d.target=C,f(Ut(E.target),"pointerover",M=>{d.isHovered&&d.target&&!On(d.target,M.target)&&S(M,M.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:C,pointerType:T}),n&&n(!0),u(!0)},S=(E,T)=>{let C=d.target;d.pointerType="",d.target=null,!(T==="touch"||!d.isHovered||!C)&&(d.isHovered=!1,h(),r&&r({type:"hoverend",target:C,pointerType:T}),n&&n(!1),u(!1))},x={};return typeof PointerEvent<"u"&&(x.onPointerEnter=E=>{Xp&&E.pointerType==="mouse"||y(E,E.pointerType)},x.onPointerLeave=E=>{!a&&E.currentTarget.contains(E.target)&&S(E,E.pointerType)}),{hoverProps:x,triggerHoverEnd:S}},[t,n,r,a,d,f,h]);return b.useEffect(()=>{a&&g({currentTarget:d.target},d.pointerType)},[a]),{hoverProps:p,isHovered:s}}const lR=500;function mx(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:a,threshold:s=lR,accessibilityDescription:u}=e;const d=b.useRef(void 0);let{addGlobalListener:f,removeGlobalListener:h}=jd(),{pressProps:p}=gl({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})),Ut(y.target).activeElement!==y.target&&Mr(y.target),a&&a({...y,type:"longpress"}),d.current=void 0},s),y.pointerType==="touch")){let S=x=>{x.preventDefault()};f(y.target,"contextmenu",S,{once:!0}),f(window,"pointerup",()=>{setTimeout(()=>{h(y.target,"contextmenu",S)},30)},{once:!0})}},onPressEnd(y){d.current&&clearTimeout(d.current),r&&(y.pointerType==="mouse"||y.pointerType==="touch")&&r({...y,type:"longpressend"})}}),g=Hd(a&&!t?u:void 0);return{longPressProps:gt(p,g)}}const N4={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 aR(e={}){let{style:t,isFocusable:n}=e,[r,a]=b.useState(!1),{focusWithinProps:s}=hx({isDisabled:!n,onFocusWithinChange:d=>a(d)}),u=b.useMemo(()=>r?t:t?{...N4,...t}:N4,[r]);return{visuallyHiddenProps:{...s,style:u}}}function oR(e){let{children:t,elementType:n="div",isFocusable:r,style:a,...s}=e,{visuallyHiddenProps:u}=aR(e);return ie.createElement(n,gt(s,u),t)}function sR(e){return e&&e.__esModule?e.default:e}function UV(e){let{onDismiss:t,...n}=e,r=Or(sR(ix),"@react-aria/overlays"),a=Fd(n,r.format("dismiss")),s=()=>{t&&t()};return ie.createElement(oR,null,ie.createElement("button",{...a,tabIndex:-1,onClick:s,style:{width:1,height:1}}))}let ys=new WeakMap,si=[];function uR(e,t=document.body){let n=new Set(e),r=new Set,a=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&&r.has(y.parentElement)&&y.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let S of n)if(y.contains(S))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},p=document.createTreeWalker(f,NodeFilter.SHOW_ELEMENT,{acceptNode:h}),g=h(f);if(g===NodeFilter.FILTER_ACCEPT&&s(f),g!==NodeFilter.FILTER_REJECT){let y=p.nextNode();for(;y!=null;)s(y),y=p.nextNode()}},s=f=>{var h;let p=(h=ys.get(f))!==null&&h!==void 0?h:0;f.getAttribute("aria-hidden")==="true"&&p===0||(p===0&&f.setAttribute("aria-hidden","true"),r.add(f),ys.set(f,p+1))};si.length&&si[si.length-1].disconnect(),a(t);let u=new MutationObserver(f=>{for(let h of f)if(!(h.type!=="childList"||h.addedNodes.length===0)&&![...n,...r].some(p=>p.contains(h.target))){for(let p of h.removedNodes)p instanceof Element&&(n.delete(p),r.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&&a(p)}});u.observe(t,{childList:!0,subtree:!0});let d={observe(){u.observe(t,{childList:!0,subtree:!0})},disconnect(){u.disconnect()}};return si.push(d),()=>{u.disconnect();for(let f of r){let h=ys.get(f);h!=null&&(h===1?(f.removeAttribute("aria-hidden"),ys.delete(f)):ys.set(f,h-1))}d===si[si.length-1]?(si.pop(),si.length&&si[si.length-1].observe()):si.splice(si.indexOf(d),1)}}const cR=b.createContext({});function dR(){var e;return(e=b.useContext(cR))!==null&&e!==void 0?e:{}}const px=ie.createContext(null);function _V(e){let t=la(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[a,s]=b.useState(!1),u=b.useMemo(()=>({contain:a,setContain:s}),[a,s]),{getContainer:d}=dR();if(!e.portalContainer&&d&&(n=d()),!n)return null;let f=e.children;return e.disableFocusManagement||(f=ie.createElement(b9,{restoreFocus:!0,contain:a&&!r},f)),f=ie.createElement(px.Provider,{value:u},ie.createElement(r9,null,f)),E$.createPortal(f,n)}function vx(){let e=b.useContext(px),t=e==null?void 0:e.setContain;vt(()=>{t==null||t(!0)},[t])}const Us=b.createContext({});function Wd(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const lg=typeof window<"u",ag=lg?b.useLayoutEffect:b.useEffect,Zd=b.createContext(null);function og(e,t){e.indexOf(t)===-1&&e.push(t)}function sg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Pr=(e,t,n)=>n>t?t:n<e?e:n;let ug=()=>{};const Br={},gx=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function bx(e){return typeof e=="object"&&e!==null}const yx=e=>/^0[^.\s]+$/u.test(e);function cg(e){let t;return()=>(t===void 0&&(t=e()),t)}const bi=e=>e,fR=(e,t)=>n=>t(e(n)),iu=(...e)=>e.reduce(fR),_s=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class dg{constructor(){this.subscriptions=[]}add(t){return og(this.subscriptions,t),()=>sg(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let s=0;s<a;s++){const u=this.subscriptions[s];u&&u(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Hi=e=>e*1e3,vi=e=>e/1e3;function Sx(e,t){return t?e*(1e3/t):0}const $x=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,hR=1e-7,mR=12;function pR(e,t,n,r,a){let s,u,d=0;do u=t+(n-t)/2,s=$x(u,r,a)-e,s>0?n=u:t=u;while(Math.abs(s)>hR&&++d<mR);return u}function ru(e,t,n,r){if(e===t&&n===r)return bi;const a=s=>pR(s,0,1,e,n);return s=>s===0||s===1?s:$x(a(s),t,r)}const Ex=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xx=e=>t=>1-e(1-t),Tx=ru(.33,1.53,.69,.99),fg=xx(Tx),Cx=Ex(fg),wx=e=>(e*=2)<1?.5*fg(e):.5*(2-Math.pow(2,-10*(e-1))),hg=e=>1-Math.sin(Math.acos(e)),Dx=xx(hg),Ax=Ex(hg),vR=ru(.42,0,1,1),gR=ru(0,0,.58,1),Mx=ru(.42,0,.58,1),bR=e=>Array.isArray(e)&&typeof e[0]!="number",Rx=e=>Array.isArray(e)&&typeof e[0]=="number",yR={linear:bi,easeIn:vR,easeInOut:Mx,easeOut:gR,circIn:hg,circInOut:Ax,circOut:Dx,backIn:fg,backInOut:Cx,backOut:Tx,anticipate:wx},SR=e=>typeof e=="string",k4=e=>{if(Rx(e)){ug(e.length===4);const[t,n,r,a]=e;return ru(t,n,r,a)}else if(SR(e))return yR[e];return e},Nc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function $R(e,t){let n=new Set,r=new Set,a=!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,g=!1,y=!1)=>{const x=y&&a?n:r;return g&&u.add(p),x.has(p)||x.add(p),p},cancel:p=>{r.delete(p),u.delete(p)},process:p=>{if(d=p,a){s=!0;return}a=!0,[n,r]=[r,n],n.forEach(f),n.clear(),a=!1,s&&(s=!1,h.process(p))}};return h}const ER=40;function Px(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,u=Nc.reduce((D,O)=>(D[O]=$R(s),D),{}),{setup:d,read:f,resolveKeyframes:h,preUpdate:p,update:g,preRender:y,render:S,postRender:x}=u,E=()=>{const D=Br.useManualTiming?a.timestamp:performance.now();n=!1,Br.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(D-a.timestamp,ER),1)),a.timestamp=D,a.isProcessing=!0,d.process(a),f.process(a),h.process(a),p.process(a),g.process(a),y.process(a),S.process(a),x.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(E))},T=()=>{n=!0,r=!0,a.isProcessing||e(E)};return{schedule:Nc.reduce((D,O)=>{const R=u[O];return D[O]=(z,I=!1,A=!1)=>(n||T(),R.schedule(z,I,A)),D},{}),cancel:D=>{for(let O=0;O<Nc.length;O++)u[Nc[O]].cancel(D)},state:a,steps:u}}const{schedule:tt,cancel:bl,state:an,steps:Bm}=Px(typeof requestAnimationFrame<"u"?requestAnimationFrame:bi,!0);let Xc;function xR(){Xc=void 0}const zn={now:()=>(Xc===void 0&&zn.set(an.isProcessing||Br.useManualTiming?an.timestamp:performance.now()),Xc),set:e=>{Xc=e,queueMicrotask(xR)}},Bx=e=>t=>typeof t=="string"&&t.startsWith(e),mg=Bx("--"),TR=Bx("var(--"),pg=e=>TR(e)?CR.test(e.split("/*")[0].trim()):!1,CR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Eo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},js={...Eo,transform:e=>Pr(0,1,e)},kc={...Eo,default:1},Rs=e=>Math.round(e*1e5)/1e5,vg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wR(e){return e==null}const DR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,gg=(e,t)=>n=>!!(typeof n=="string"&&DR.test(n)&&n.startsWith(e)||t&&!wR(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ox=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,u,d]=r.match(vg);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},AR=e=>Pr(0,255,e),Om={...Eo,transform:e=>Math.round(AR(e))},Gl={test:gg("rgb","red"),parse:Ox("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Om.transform(e)+", "+Om.transform(t)+", "+Om.transform(n)+", "+Rs(js.transform(r))+")"};function MR(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const Wp={test:gg("#"),parse:MR,transform:Gl.transform},lu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),sl=lu("deg"),Yi=lu("%"),pe=lu("px"),RR=lu("vh"),PR=lu("vw"),K4={...Yi,parse:e=>Yi.parse(e)/100,transform:e=>Yi.transform(e*100)},ro={test:gg("hsl","hue"),parse:Ox("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Yi.transform(Rs(t))+", "+Yi.transform(Rs(n))+", "+Rs(js.transform(r))+")"},zt={test:e=>Gl.test(e)||Wp.test(e)||ro.test(e),parse:e=>Gl.test(e)?Gl.parse(e):ro.test(e)?ro.parse(e):Wp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Gl.transform(e):ro.transform(e),getAnimatableNone:e=>{const t=zt.parse(e);return t.alpha=0,zt.transform(t)}},BR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function OR(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(vg))==null?void 0:t.length)||0)+(((n=e.match(BR))==null?void 0:n.length)||0)>0}const zx="number",Lx="color",zR="var",LR="var(",V4="${}",NR=/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 Hs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const d=t.replace(NR,f=>(zt.test(f)?(r.color.push(s),a.push(Lx),n.push(zt.parse(f))):f.startsWith(LR)?(r.var.push(s),a.push(zR),n.push(f)):(r.number.push(s),a.push(zx),n.push(parseFloat(f))),++s,V4)).split(V4);return{values:n,split:d,indexes:r,types:a}}function Nx(e){return Hs(e).values}function kx(e){const{split:t,types:n}=Hs(e),r=t.length;return a=>{let s="";for(let u=0;u<r;u++)if(s+=t[u],a[u]!==void 0){const d=n[u];d===zx?s+=Rs(a[u]):d===Lx?s+=zt.transform(a[u]):s+=a[u]}return s}}const kR=e=>typeof e=="number"?0:zt.test(e)?zt.getAnimatableNone(e):e;function KR(e){const t=Nx(e);return kx(e)(t.map(kR))}const yl={test:OR,parse:Nx,createTransformer:kx,getAnimatableNone:KR};function zm(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 VR({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,s=0,u=0;if(!t)a=s=u=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;a=zm(f,d,e+1/3),s=zm(f,d,e),u=zm(f,d,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(u*255),alpha:r}}function Sd(e,t){return n=>n>0?t:e}const st=(e,t,n)=>e+(t-e)*n,Lm=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},FR=[Wp,Gl,ro],IR=e=>FR.find(t=>t.test(e));function F4(e){const t=IR(e);if(!t)return!1;let n=t.parse(e);return t===ro&&(n=VR(n)),n}const I4=(e,t)=>{const n=F4(e),r=F4(t);if(!n||!r)return Sd(e,t);const a={...n};return s=>(a.red=Lm(n.red,r.red,s),a.green=Lm(n.green,r.green,s),a.blue=Lm(n.blue,r.blue,s),a.alpha=st(n.alpha,r.alpha,s),Gl.transform(a))},Zp=new Set(["none","hidden"]);function UR(e,t){return Zp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function _R(e,t){return n=>st(e,t,n)}function bg(e){return typeof e=="number"?_R:typeof e=="string"?pg(e)?Sd:zt.test(e)?I4:YR:Array.isArray(e)?Kx:typeof e=="object"?zt.test(e)?I4:jR:Sd}function Kx(e,t){const n=[...e],r=n.length,a=e.map((s,u)=>bg(s)(s,t[u]));return s=>{for(let u=0;u<r;u++)n[u]=a[u](s);return n}}function jR(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=bg(e[a])(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}}function HR(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],u=e.indexes[s][r[s]],d=e.values[u]??0;n[a]=d,r[s]++}return n}const YR=(e,t)=>{const n=yl.createTransformer(t),r=Hs(e),a=Hs(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?Zp.has(e)&&!a.values.length||Zp.has(t)&&!r.values.length?UR(e,t):iu(Kx(HR(r,a),a.values),n):Sd(e,t)};function Vx(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?st(e,t,n):bg(e)(e,t)}const qR=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>tt.update(t,n),stop:()=>bl(t),now:()=>an.isProcessing?an.timestamp:zn.now()}},Fx=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let s=0;s<a;s++)r+=Math.round(e(s/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},$d=2e4;function yg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<$d;)t+=n,r=e.next(t);return t>=$d?1/0:t}function GR(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(yg(r),$d);return{type:"keyframes",ease:s=>r.next(a*s).value/t,duration:vi(a)}}const XR=5;function Ix(e,t,n){const r=Math.max(t-XR,0);return Sx(n-e(r),t-r)}const pt={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},Nm=.001;function WR({duration:e=pt.duration,bounce:t=pt.bounce,velocity:n=pt.velocity,mass:r=pt.mass}){let a,s,u=1-t;u=Pr(pt.minDamping,pt.maxDamping,u),e=Pr(pt.minDuration,pt.maxDuration,vi(e)),u<1?(a=h=>{const p=h*u,g=p*e,y=p-n,S=Qp(h,u),x=Math.exp(-g);return Nm-y/S*x},s=h=>{const g=h*u*e,y=g*n+n,S=Math.pow(u,2)*Math.pow(h,2)*e,x=Math.exp(-g),E=Qp(Math.pow(h,2),u);return(-a(h)+Nm>0?-1:1)*((y-S)*x)/E}):(a=h=>{const p=Math.exp(-h*e),g=(h-n)*e+1;return-Nm+p*g},s=h=>{const p=Math.exp(-h*e),g=(n-h)*(e*e);return p*g});const d=5/e,f=QR(a,s,d);if(e=Hi(e),isNaN(f))return{stiffness:pt.stiffness,damping:pt.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:u*2*Math.sqrt(r*h),duration:e}}}const ZR=12;function QR(e,t,n){let r=n;for(let a=1;a<ZR;a++)r=r-e(r)/t(r);return r}function Qp(e,t){return e*Math.sqrt(1-t*t)}const JR=["duration","bounce"],eP=["stiffness","damping","mass"];function U4(e,t){return t.some(n=>e[n]!==void 0)}function tP(e){let t={velocity:pt.velocity,stiffness:pt.stiffness,damping:pt.damping,mass:pt.mass,isResolvedFromDuration:!1,...e};if(!U4(e,eP)&&U4(e,JR))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,s=2*Pr(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:pt.mass,stiffness:a,damping:s}}else{const n=WR(e);t={...t,...n,mass:pt.mass},t.isResolvedFromDuration=!0}return t}function Ed(e=pt.visualDuration,t=pt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=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:g,velocity:y,isResolvedFromDuration:S}=tP({...n,velocity:-vi(n.velocity||0)}),x=y||0,E=h/(2*Math.sqrt(f*p)),T=u-s,C=vi(Math.sqrt(f/p)),M=Math.abs(T)<5;r||(r=M?pt.restSpeed.granular:pt.restSpeed.default),a||(a=M?pt.restDelta.granular:pt.restDelta.default);let D;if(E<1){const R=Qp(C,E);D=z=>{const I=Math.exp(-E*C*z);return u-I*((x+E*C*T)/R*Math.sin(R*z)+T*Math.cos(R*z))}}else if(E===1)D=R=>u-Math.exp(-C*R)*(T+(x+C*T)*R);else{const R=C*Math.sqrt(E*E-1);D=z=>{const I=Math.exp(-E*C*z),A=Math.min(R*z,300);return u-I*((x+E*C*T)*Math.sinh(A)+R*T*Math.cosh(A))/R}}const O={calculatedDuration:S&&g||null,next:R=>{const z=D(R);if(S)d.done=R>=g;else{let I=R===0?x:0;E<1&&(I=R===0?Hi(x):Ix(D,R,z));const A=Math.abs(I)<=r,V=Math.abs(u-z)<=a;d.done=A&&V}return d.value=d.done?u:z,d},toString:()=>{const R=Math.min(yg(O),$d),z=Fx(I=>O.next(R*I).value,R,30);return R+"ms "+z},toTransition:()=>{}};return O}Ed.applyToOptions=e=>{const t=GR(e,100,Ed);return e.ease=t.ease,e.duration=Hi(t.duration),e.type="keyframes",e};function Jp({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:u,min:d,max:f,restDelta:h=.5,restSpeed:p}){const g=e[0],y={done:!1,value:g},S=A=>d!==void 0&&A<d||f!==void 0&&A>f,x=A=>d===void 0?f:f===void 0||Math.abs(d-A)<Math.abs(f-A)?d:f;let E=n*t;const T=g+E,C=u===void 0?T:u(T);C!==T&&(E=C-g);const M=A=>-E*Math.exp(-A/r),D=A=>C+M(A),O=A=>{const V=M(A),F=D(A);y.done=Math.abs(V)<=h,y.value=y.done?C:F};let R,z;const I=A=>{S(y.value)&&(R=A,z=Ed({keyframes:[y.value,x(y.value)],velocity:Ix(D,A,y.value),damping:a,stiffness:s,restDelta:h,restSpeed:p}))};return I(0),{calculatedDuration:null,next:A=>{let V=!1;return!z&&R===void 0&&(V=!0,O(A),I(A)),R!==void 0&&A>=R?z.next(A-R):(!V&&O(A),y)}}}function nP(e,t,n){const r=[],a=n||Br.mix||Vx,s=e.length-1;for(let u=0;u<s;u++){let d=a(e[u],e[u+1]);if(t){const f=Array.isArray(t)?t[u]||bi:t;d=iu(f,d)}r.push(d)}return r}function iP(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(ug(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=nP(t,r,a),f=d.length,h=p=>{if(u&&p<e[0])return t[0];let g=0;if(f>1)for(;g<e.length-2&&!(p<e[g+1]);g++);const y=_s(e[g],e[g+1],p);return d[g](y)};return n?p=>h(Pr(e[0],e[s-1],p)):h}function rP(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=_s(0,t,r);e.push(st(n,1,a))}}function lP(e){const t=[0];return rP(t,e.length-1),t}function aP(e,t){return e.map(n=>n*t)}function oP(e,t){return e.map(()=>t||Mx).splice(0,e.length-1)}function Ps({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=bR(r)?r.map(k4):k4(r),s={done:!1,value:t[0]},u=aP(n&&n.length===t.length?n:lP(t),e),d=iP(u,t,{ease:Array.isArray(a)?a:oP(t,a)});return{calculatedDuration:e,next:f=>(s.value=d(f),s.done=f>=e,s)}}const sP=e=>e!==null;function Sg(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(sP),d=a<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!d||r===void 0?s[d]:r}const uP={decay:Jp,inertia:Jp,tween:Ps,keyframes:Ps,spring:Ed};function Ux(e){typeof e.type=="string"&&(e.type=uP[e.type])}class $g{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 cP=e=>e/100;class Eg extends $g{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,a;const{motionValue:n}=this.options;n&&n.updatedAt!==zn.now()&&this.tick(zn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(r=this.options).onStop)==null||a.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ux(t);const{type:n=Ps,repeat:r=0,repeatDelay:a=0,repeatType:s,velocity:u=0}=t;let{keyframes:d}=t;const f=n||Ps;f!==Ps&&typeof d[0]!="number"&&(this.mixKeyframes=iu(cP,Vx(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=yg(h));const{calculatedDuration:p}=h;this.calculatedDuration=p,this.resolvedDuration=p+a,this.totalDuration=this.resolvedDuration*(r+1)-a,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:r,totalDuration:a,mixKeyframes:s,mirroredGenerator:u,resolvedDuration:d,calculatedDuration:f}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:p,repeat:g,repeatType:y,repeatDelay:S,type:x,onUpdate:E,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/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>a;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let D=this.currentTime,O=r;if(g){const A=Math.min(this.currentTime,a)/d;let V=Math.floor(A),F=A%1;!F&&A>=1&&(F=1),F===1&&V--,V=Math.min(V,g+1),!!(V%2)&&(y==="reverse"?(F=1-F,S&&(F-=S/d)):y==="mirror"&&(O=u)),D=Pr(0,1,F)*d}const R=M?{done:!1,value:p[0]}:O.next(D);s&&(R.value=s(R.value));let{done:z}=R;!M&&f!==null&&(z=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return I&&x!==Jp&&(R.value=Sg(p,this.options,T,this.speed)),E&&E(R.value),I&&this.finish(),R}then(t,n){return this.finished.then(t,n)}get duration(){return vi(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+vi(t)}get time(){return vi(this.currentTime)}set time(t){var n;t=Hi(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(zn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=vi(this.currentTime))}play(){var a,s;if(this.isStopped)return;const{driver:t=qR,startTime:n}=this.options;this.driver||(this.driver=t(u=>this.tick(u))),(s=(a=this.options).onPlay)==null||s.call(a);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(zn.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 dP(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Xl=e=>e*180/Math.PI,ev=e=>{const t=Xl(Math.atan2(e[1],e[0]));return tv(t)},fP={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ev,rotateZ:ev,skewX:e=>Xl(Math.atan(e[1])),skewY:e=>Xl(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},tv=e=>(e=e%360,e<0&&(e+=360),e),_4=ev,j4=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),H4=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),hP={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:j4,scaleY:H4,scale:e=>(j4(e)+H4(e))/2,rotateX:e=>tv(Xl(Math.atan2(e[6],e[5]))),rotateY:e=>tv(Xl(Math.atan2(-e[2],e[0]))),rotateZ:_4,rotate:_4,skewX:e=>Xl(Math.atan(e[4])),skewY:e=>Xl(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function nv(e){return e.includes("scale")?1:0}function iv(e,t){if(!e||e==="none")return nv(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=hP,a=n;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=fP,a=d}if(!a)return nv(t);const s=r[t],u=a[1].split(",").map(pP);return typeof s=="function"?s(u):u[s]}const mP=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return iv(n,t)};function pP(e){return parseFloat(e.trim())}const xo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],To=new Set(xo),Y4=e=>e===Eo||e===pe,vP=new Set(["x","y","z"]),gP=xo.filter(e=>!vP.has(e));function bP(e){const t=[];return gP.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Wl={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})=>iv(t,"x"),y:(e,{transform:t})=>iv(t,"y")};Wl.translateX=Wl.x;Wl.translateY=Wl.y;const Zl=new Set;let rv=!1,lv=!1,av=!1;function _x(){if(lv){const e=Array.from(Zl).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=bP(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([s,u])=>{var d;(d=r.getValue(s))==null||d.set(u)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}lv=!1,rv=!1,Zl.forEach(e=>e.complete(av)),Zl.clear()}function jx(){Zl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(lv=!0)})}function yP(){av=!0,jx(),_x(),av=!1}class xg{constructor(t,n,r,a,s,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=s,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Zl.add(this),rv||(rv=!0,tt.read(jx),tt.resolveKeyframes(_x))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const s=a==null?void 0:a.get(),u=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const d=r.readValue(n,u);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=u),a&&s===void 0&&a.set(t[0])}dP(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Zl.delete(this)}cancel(){this.state==="scheduled"&&(Zl.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const SP=e=>e.startsWith("--");function $P(e,t,n){SP(t)?e.style.setProperty(t,n):e.style[t]=n}const EP=cg(()=>window.ScrollTimeline!==void 0),xP={};function TP(e,t){const n=cg(e);return()=>xP[t]??n()}const Hx=TP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ws=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,q4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ws([0,.65,.55,1]),circOut:ws([.55,0,1,.45]),backIn:ws([.31,.01,.66,-.59]),backOut:ws([.33,1.53,.69,.99])};function Yx(e,t){if(e)return typeof e=="function"?Hx()?Fx(e,t):"ease-out":Rx(e)?ws(e):Array.isArray(e)?e.map(n=>Yx(n,t)||q4.easeOut):q4[e]}function CP(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:u="loop",ease:d="easeOut",times:f}={},h=void 0){const p={[t]:n};f&&(p.offset=f);const g=Yx(d,a);Array.isArray(g)&&(p.easing=g);const y={delay:r,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:s+1,direction:u==="reverse"?"alternate":"normal"};return h&&(y.pseudoElement=h),e.animate(p,y)}function qx(e){return typeof e=="function"&&"applyToOptions"in e}function wP({type:e,...t}){return qx(e)&&Hx()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class DP extends $g{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:s,allowFlatten:u=!1,finalKeyframe:d,onComplete:f}=t;this.isPseudoElement=!!s,this.allowFlatten=u,this.options=t,ug(typeof t.type!="string");const h=wP(t);this.animation=CP(n,r,a,h,s),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=Sg(a,this.options,d,this.speed);this.updateMotionValue?this.updateMotionValue(p):$P(n,r,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,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return vi(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+vi(t)}get time(){return vi(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Hi(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 r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&EP()?(this.animation.timeline=t,bi):n(this)}}const Gx={anticipate:wx,backInOut:Cx,circInOut:Ax};function AP(e){return e in Gx}function MP(e){typeof e.ease=="string"&&AP(e.ease)&&(e.ease=Gx[e.ease])}const G4=10;class RP extends DP{constructor(t){MP(t),Ux(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:s,...u}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const d=new Eg({...u,autoplay:!1}),f=Hi(this.finishedTime??this.time);n.setWithVelocity(d.sample(f-G4).value,d.sample(f).value,G4),d.stop()}}const X4=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(yl.test(e)||e==="0")&&!e.startsWith("url("));function PP(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 BP(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],u=X4(a,t),d=X4(s,t);return!u||!d?!1:PP(e)||(n==="spring"||qx(n))&&r}function ov(e){e.duration=0,e.type="keyframes"}const OP=new Set(["opacity","clipPath","filter","transform"]),zP=cg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function LP(e){var p;const{motionValue:t,name:n,repeatDelay:r,repeatType:a,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 zP()&&n&&OP.has(n)&&(n!=="transform"||!h)&&!f&&!r&&a!=="mirror"&&s!==0&&u!=="inertia"}const NP=40;class kP extends $g{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:u="loop",keyframes:d,name:f,motionValue:h,element:p,...g}){var x;super(),this.stop=()=>{var E,T;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=zn.now();const y={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:s,repeatType:u,name:f,motionValue:h,element:p,...g},S=(p==null?void 0:p.KeyframeResolver)||xg;this.keyframeResolver=new S(d,(E,T,C)=>this.onKeyframesResolved(E,T,y,!C),f,h,p),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:s,type:u,velocity:d,delay:f,isHandoff:h,onUpdate:p}=r;this.resolvedAt=zn.now(),BP(t,s,u,d)||((Br.instantAnimations||!f)&&(p==null||p(Sg(t,r,n))),t[0]=t[t.length-1],ov(r),r.repeat=0);const y={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>NP?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},S=!h&&LP(y)?new RP({...y,element:y.motionValue.owner.current}):new Eg(y);S.finished.then(()=>this.notifyFinished()).catch(bi),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}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(),yP()),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 KP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function VP(e){const t=KP.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function Xx(e,t,n=1){const[r,a]=VP(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const u=s.trim();return gx(u)?parseFloat(u):u}return pg(a)?Xx(a,t,n+1):a}function Tg(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Wx=new Set(["width","height","top","left","right","bottom",...xo]),FP={test:e=>e==="auto",parse:e=>e},Zx=e=>t=>t.test(e),Qx=[Eo,pe,Yi,sl,PR,RR,FP],W4=e=>Qx.find(Zx(e));function IP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||yx(e):!0}const UP=new Set(["brightness","contrast","saturate","opacity"]);function _P(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(vg)||[];if(!r)return e;const a=n.replace(r,"");let s=UP.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const jP=/\b([a-z-]*)\(.*?\)/gu,sv={...yl,getAnimatableNone:e=>{const t=e.match(jP);return t?t.map(_P).join(" "):e}},Z4={...Eo,transform:Math.round},HP={rotate:sl,rotateX:sl,rotateY:sl,rotateZ:sl,scale:kc,scaleX:kc,scaleY:kc,scaleZ:kc,skew:sl,skewX:sl,skewY:sl,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:js,originX:K4,originY:K4,originZ:pe},Cg={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,backgroundPositionX:pe,backgroundPositionY:pe,...HP,zIndex:Z4,fillOpacity:js,strokeOpacity:js,numOctaves:Z4},YP={...Cg,color:zt,backgroundColor:zt,outlineColor:zt,fill:zt,stroke:zt,borderColor:zt,borderTopColor:zt,borderRightColor:zt,borderBottomColor:zt,borderLeftColor:zt,filter:sv,WebkitFilter:sv},Jx=e=>YP[e];function e5(e,t){let n=Jx(e);return n!==sv&&(n=yl),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qP=new Set(["auto","none","0"]);function GP(e,t,n){let r=0,a;for(;r<e.length&&!a;){const s=e[r];typeof s=="string"&&!qP.has(s)&&Hs(s).values.length&&(a=e[r]),r++}if(a&&n)for(const s of t)e[s]=e5(n,a)}class XP extends xg{constructor(t,n,r,a,s){super(t,n,r,a,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=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(),pg(h))){const p=Xx(h,n.current);p!==void 0&&(t[f]=p),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Wx.has(r)||t.length!==2)return;const[a,s]=t,u=W4(a),d=W4(s);if(u!==d)if(Y4(u)&&Y4(d))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else Wl[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||IP(t[a]))&&r.push(a);r.length&&GP(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Wl[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){var d;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const s=r.length-1,u=r[s];r[s]=Wl[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()}}function WP(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=(n==null?void 0:n[e])??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const t5=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function n5(e){return bx(e)&&"offsetHeight"in e}const Q4=30,ZP=e=>!isNaN(parseFloat(e));class QP{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const a=zn.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),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=zn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ZP(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 dg);const r=this.events[t].add(n);return t==="change"?()=>{r(),tt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=zn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Q4)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Q4);return Sx(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 bo(e,t){return new QP(e,t)}const{schedule:wg}=Px(queueMicrotask,!1),Di={x:!1,y:!1};function i5(){return Di.x||Di.y}function JP(e){return e==="x"||e==="y"?Di[e]?null:(Di[e]=!0,()=>{Di[e]=!1}):Di.x||Di.y?null:(Di.x=Di.y=!0,()=>{Di.x=Di.y=!1})}function r5(e,t){const n=WP(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function J4(e){return!(e.pointerType==="touch"||i5())}function eB(e,t,n={}){const[r,a,s]=r5(e,n),u=d=>{if(!J4(d))return;const{target:f}=d,h=t(f,d);if(typeof h!="function"||!f)return;const p=g=>{J4(g)&&(h(g),f.removeEventListener("pointerleave",p))};f.addEventListener("pointerleave",p,a)};return r.forEach(d=>{d.addEventListener("pointerenter",u,a)}),s}const l5=(e,t)=>t?e===t?!0:l5(e,t.parentElement):!1,Dg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,tB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function nB(e){return tB.has(e.tagName)||e.tabIndex!==-1}const Wc=new WeakSet;function e3(e){return t=>{t.key==="Enter"&&e(t)}}function km(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const iB=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=e3(()=>{if(Wc.has(n))return;km(n,"down");const a=e3(()=>{km(n,"up")}),s=()=>km(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function t3(e){return Dg(e)&&!i5()}function rB(e,t,n={}){const[r,a,s]=r5(e,n),u=d=>{const f=d.currentTarget;if(!t3(d))return;Wc.add(f);const h=t(f,d),p=(S,x)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",y),Wc.has(f)&&Wc.delete(f),t3(S)&&typeof h=="function"&&h(S,{success:x})},g=S=>{p(S,f===window||f===document||n.useGlobalTarget||l5(f,S.target))},y=S=>{p(S,!1)};window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",y,a)};return r.forEach(d=>{(n.useGlobalTarget?window:d).addEventListener("pointerdown",u,a),n5(d)&&(d.addEventListener("focus",h=>iB(h,a)),!nB(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),s}function a5(e){return bx(e)&&"ownerSVGElement"in e}function lB(e){return a5(e)&&e.tagName==="svg"}const hn=e=>!!(e&&e.getVelocity),aB=[...Qx,zt,yl],oB=e=>aB.find(Zx(e)),Ys=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function n3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function sB(...e){return t=>{let n=!1;const r=e.map(a=>{const s=n3(a,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let a=0;a<r.length;a++){const s=r[a];typeof s=="function"?s():n3(e[a],null)}}}}function uB(...e){return b.useCallback(sB(...e),e)}class cB extends b.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,a=n5(r)&&r.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=a-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function dB({children:e,isPresent:t,anchorX:n,root:r}){const a=b.useId(),s=b.useRef(null),u=b.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=b.useContext(Ys),f=uB(s,e==null?void 0:e.ref);return b.useInsertionEffect(()=>{const{width:h,height:p,top:g,left:y,right:S}=u.current;if(t||!s.current||!h||!p)return;const x=n==="left"?`left: ${y}`:`right: ${S}`;s.current.dataset.motionPopId=a;const E=document.createElement("style");d&&(E.nonce=d);const T=r??document.head;return T.appendChild(E),E.sheet&&E.sheet.insertRule(`
          [data-motion-pop-id="${a}"] {
            position: absolute !important;
            width: ${h}px !important;
            height: ${p}px !important;
            ${x}px !important;
            top: ${g}px !important;
          }
        `),()=>{T.contains(E)&&T.removeChild(E)}},[t]),gi.jsx(cB,{isPresent:t,childRef:s,sizeRef:u,children:b.cloneElement(e,{ref:f})})}const fB=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:s,mode:u,anchorX:d,root:f})=>{const h=Wd(hB),p=b.useId();let g=!0,y=b.useMemo(()=>(g=!1,{id:p,initial:t,isPresent:n,custom:a,onExitComplete:S=>{h.set(S,!0);for(const x of h.values())if(!x)return;r&&r()},register:S=>(h.set(S,!1),()=>h.delete(S))}),[n,h,r]);return s&&g&&(y={...y}),b.useMemo(()=>{h.forEach((S,x)=>h.set(x,!1))},[n]),b.useEffect(()=>{!n&&!h.size&&r&&r()},[n]),u==="popLayout"&&(e=gi.jsx(dB,{isPresent:n,anchorX:d,root:f,children:e})),gi.jsx(Zd.Provider,{value:y,children:e})};function hB(){return new Map}function o5(e=!0){const t=b.useContext(Zd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=b.useId();b.useEffect(()=>{if(e)return a(s)},[e]);const u=b.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,u]:[!0]}const Kc=e=>e.key||"";function i3(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const jV=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:s="sync",propagate:u=!1,anchorX:d="left",root:f})=>{const[h,p]=o5(u),g=b.useMemo(()=>i3(e),[e]),y=u&&!h?[]:g.map(Kc),S=b.useRef(!0),x=b.useRef(g),E=Wd(()=>new Map),[T,C]=b.useState(g),[M,D]=b.useState(g);ag(()=>{S.current=!1,x.current=g;for(let z=0;z<M.length;z++){const I=Kc(M[z]);y.includes(I)?E.delete(I):E.get(I)!==!0&&E.set(I,!1)}},[M,y.length,y.join("-")]);const O=[];if(g!==T){let z=[...g];for(let I=0;I<M.length;I++){const A=M[I],V=Kc(A);y.includes(V)||(z.splice(I,0,A),O.push(A))}return s==="wait"&&O.length&&(z=O),D(i3(z)),C(g),null}const{forceRender:R}=b.useContext(Us);return gi.jsx(gi.Fragment,{children:M.map(z=>{const I=Kc(z),A=u&&!h?!1:g===M||y.includes(I),V=()=>{if(E.has(I))E.set(I,!0);else return;let F=!0;E.forEach(P=>{P||(F=!1)}),F&&(R==null||R(),D(x.current),u&&(p==null||p()),r&&r())};return gi.jsx(fB,{isPresent:A,initial:!S.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:s,root:f,onExitComplete:A?void 0:V,anchorX:d,children:z},I)})})},mB=b.createContext(null);function pB(){const e=b.useRef(!1);return ag(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function vB(){const e=pB(),[t,n]=b.useState(0),r=b.useCallback(()=>{e.current&&n(t+1)},[t]);return[b.useCallback(()=>tt.postRender(r),[r]),t]}const gB=e=>!e.isLayoutDirty&&e.willUpdate(!1);function r3(){const e=new Set,t=new WeakMap,n=()=>e.forEach(gB);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const a=t.get(r);a&&(a(),t.delete(r)),n()},dirty:n}}const s5=e=>e===!0,bB=e=>s5(e===!0)||e==="id",HV=({children:e,id:t,inherit:n=!0})=>{const r=b.useContext(Us),a=b.useContext(mB),[s,u]=vB(),d=b.useRef(null),f=r.id||a;d.current===null&&(bB(n)&&f&&(t=t?f+"-"+t:f),d.current={id:t,group:s5(n)&&r.group||r3()});const h=b.useMemo(()=>({...d.current,forceRender:s}),[u]);return gi.jsx(Us.Provider,{value:h,children:e})},Ag=b.createContext({strict:!1}),l3={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"]},yo={};for(const e in l3)yo[e]={isEnabled:t=>l3[e].some(n=>!!t[n])};function uv(e){for(const t in e)yo[t]={...yo[t],...e[t]}}function YV({children:e,features:t,strict:n=!1}){const[,r]=b.useState(!Km(t)),a=b.useRef(void 0);if(!Km(t)){const{renderer:s,...u}=t;a.current=s,uv(u)}return b.useEffect(()=>{Km(t)&&t().then(({renderer:s,...u})=>{uv(u),a.current=s,r(!0)})},[]),gi.jsx(Ag.Provider,{value:{renderer:a.current,strict:n},children:e})}function Km(e){return typeof e=="function"}const yB=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 xd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||yB.has(e)}let u5=e=>!xd(e);function c5(e){typeof e=="function"&&(u5=t=>t.startsWith("on")?!xd(t):e(t))}try{c5(require("@emotion/is-prop-valid").default)}catch{}function SB(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(u5(a)||n===!0&&xd(a)||!t&&!xd(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function qV({children:e,isValidProp:t,...n}){t&&c5(t),n={...b.useContext(Ys),...n},n.isStatic=Wd(()=>n.isStatic);const r=b.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return gi.jsx(Ys.Provider,{value:r,children:e})}const Qd=b.createContext({});function Jd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qs(e){return typeof e=="string"||Array.isArray(e)}const Mg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Rg=["initial",...Mg];function ef(e){return Jd(e.animate)||Rg.some(t=>qs(e[t]))}function d5(e){return!!(ef(e)||e.variants)}function $B(e,t){if(ef(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qs(n)?n:void 0,animate:qs(r)?r:void 0}}return e.inherit!==!1?t:{}}function EB(e){const{initial:t,animate:n}=$B(e,b.useContext(Qd));return b.useMemo(()=>({initial:t,animate:n}),[a3(t),a3(n)])}function a3(e){return Array.isArray(e)?e.join(" "):e}const Gs={};function xB(e){for(const t in e)Gs[t]=e[t],mg(t)&&(Gs[t].isCSSVariable=!0)}function f5(e,{layout:t,layoutId:n}){return To.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Gs[e]||e==="opacity")}const TB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},CB=xo.length;function wB(e,t,n){let r="",a=!0;for(let s=0;s<CB;s++){const u=xo[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=t5(d,Cg[u]);if(!f){a=!1;const p=TB[u]||u;r+=`${p}(${h}) `}n&&(t[u]=h)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function Pg(e,t,n){const{style:r,vars:a,transformOrigin:s}=e;let u=!1,d=!1;for(const f in t){const h=t[f];if(To.has(f)){u=!0;continue}else if(mg(f)){a[f]=h;continue}else{const p=t5(h,Cg[f]);f.startsWith("origin")?(d=!0,s[f]=p):r[f]=p}}if(t.transform||(u||n?r.transform=wB(t,e.transform,n):r.transform&&(r.transform="none")),d){const{originX:f="50%",originY:h="50%",originZ:p=0}=s;r.transformOrigin=`${f} ${h} ${p}`}}const Bg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function h5(e,t,n){for(const r in t)!hn(t[r])&&!f5(r,n)&&(e[r]=t[r])}function DB({transformTemplate:e},t){return b.useMemo(()=>{const n=Bg();return Pg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function AB(e,t){const n=e.style||{},r={};return h5(r,n,e),Object.assign(r,DB(e,t)),r}function MB(e,t){const n={},r=AB(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const RB={offset:"stroke-dashoffset",array:"stroke-dasharray"},PB={offset:"strokeDashoffset",array:"strokeDasharray"};function BB(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?RB:PB;e[s.offset]=pe.transform(-r);const u=pe.transform(t),d=pe.transform(n);e[s.array]=`${u} ${d}`}function m5(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:u=0,...d},f,h,p){if(Pg(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y}=e;g.transform&&(y.transform=g.transform,delete g.transform),(y.transform||g.transformOrigin)&&(y.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),y.transform&&(y.transformBox=(p==null?void 0:p.transformBox)??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&BB(g,a,s,u,!1)}const p5=()=>({...Bg(),attrs:{}}),v5=e=>typeof e=="string"&&e.toLowerCase()==="svg";function OB(e,t,n,r){const a=b.useMemo(()=>{const s=p5();return m5(s,t,v5(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};h5(s,e.style,e),a.style={...s,...a.style}}return a}const zB=["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 Og(e){return typeof e!="string"||e.includes("-")?!1:!!(zB.indexOf(e)>-1||/[A-Z]/u.test(e))}function LB(e,t,n,{latestValues:r},a,s=!1){const d=(Og(e)?OB:MB)(t,r,a,e),f=SB(t,typeof e=="string",s),h=e!==b.Fragment?{...f,...d,ref:n}:{},{children:p}=t,g=b.useMemo(()=>hn(p)?p.get():p,[p]);return b.createElement(e,{...h,children:g})}function o3(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function zg(e,t,n,r){if(typeof t=="function"){const[a,s]=o3(r);t=t(n!==void 0?n:e.custom,a,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,s]=o3(r);t=t(n!==void 0?n:e.custom,a,s)}return t}function Zc(e){return hn(e)?e.get():e}function NB({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:kB(n,r,a,e),renderState:t()}}function kB(e,t,n,r){const a={},s=r(e,{});for(const y in s)a[y]=Zc(s[y]);let{initial:u,animate:d}=e;const f=ef(e),h=d5(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 g=p?d:u;if(g&&typeof g!="boolean"&&!Jd(g)){const y=Array.isArray(g)?g:[g];for(let S=0;S<y.length;S++){const x=zg(e,y[S]);if(x){const{transitionEnd:E,transition:T,...C}=x;for(const M in C){let D=C[M];if(Array.isArray(D)){const O=p?D.length-1:0;D=D[O]}D!==null&&(a[M]=D)}for(const M in E)a[M]=E[M]}}}return a}const g5=e=>(t,n)=>{const r=b.useContext(Qd),a=b.useContext(Zd),s=()=>NB(e,t,r,a);return n?s():Wd(s)};function Lg(e,t,n){var s;const{style:r}=e,a={};for(const u in r)(hn(r[u])||t.style&&hn(t.style[u])||f5(u,e)||((s=n==null?void 0:n.getValue(u))==null?void 0:s.liveStyle)!==void 0)&&(a[u]=r[u]);return a}const KB=g5({scrapeMotionValuesFromProps:Lg,createRenderState:Bg});function b5(e,t,n){const r=Lg(e,t,n);for(const a in e)if(hn(e[a])||hn(t[a])){const s=xo.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[s]=e[a]}return r}const VB=g5({scrapeMotionValuesFromProps:b5,createRenderState:p5}),FB=Symbol.for("motionComponentSymbol");function lo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function IB(e,t,n){return b.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):lo(n)&&(n.current=r))},[t])}const Ng=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),UB="framerAppearId",y5="data-"+Ng(UB),S5=b.createContext({});function _B(e,t,n,r,a){var E,T;const{visualElement:s}=b.useContext(Qd),u=b.useContext(Ag),d=b.useContext(Zd),f=b.useContext(Ys).reducedMotion,h=b.useRef(null);r=r||u.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:s,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const p=h.current,g=b.useContext(S5);p&&!p.projection&&a&&(p.type==="html"||p.type==="svg")&&jB(h.current,n,a,g);const y=b.useRef(!1);b.useInsertionEffect(()=>{p&&y.current&&p.update(n,d)});const S=n[y5],x=b.useRef(!!S&&!((E=window.MotionHandoffIsComplete)!=null&&E.call(window,S))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,S)));return ag(()=>{p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),x.current&&p.animationState&&p.animationState.animateChanges())}),b.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,S)}),x.current=!1),p.enteringChildren=void 0)}),p}function jB(e,t,n,r){const{layoutId:a,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:$5(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!u||d&&lo(d),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:f,layoutRoot:h})}function $5(e){if(e)return e.options.allowProjection!==!1?e.projection:$5(e.parent)}function Vm(e,{forwardMotionProps:t=!1}={},n,r){n&&uv(n);const a=Og(e)?VB:KB;function s(d,f){let h;const p={...b.useContext(Ys),...d,layoutId:HB(d)},{isStatic:g}=p,y=EB(d),S=a(d,g);if(!g&&lg){YB();const x=qB(p);h=x.MeasureLayout,y.visualElement=_B(e,S,p,r,x.ProjectionNode)}return gi.jsxs(Qd.Provider,{value:y,children:[h&&y.visualElement?gi.jsx(h,{visualElement:y.visualElement,...p}):null,LB(e,d,IB(S,y.visualElement,f),S,g,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=b.forwardRef(s);return u[FB]=e,u}function HB({layoutId:e}){const t=b.useContext(Us).id;return t&&e!==void 0?t+"-"+e:e}function YB(e,t){b.useContext(Ag).strict}function qB(e){const{drag:t,layout:n}=yo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function E5(e,t){if(typeof Proxy>"u")return Vm;const n=new Map,r=(s,u)=>Vm(s,u,e,t),a=(s,u)=>r(s,u);return new Proxy(a,{get:(s,u)=>u==="create"?r:(n.has(u)||n.set(u,Vm(u,void 0,e,t)),n.get(u))})}const GV=E5();function x5({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function GB({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function XB(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Fm(e){return e===void 0||e===1}function cv({scale:e,scaleX:t,scaleY:n}){return!Fm(e)||!Fm(t)||!Fm(n)}function Ul(e){return cv(e)||T5(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function T5(e){return s3(e.x)||s3(e.y)}function s3(e){return e&&e!=="0%"}function Td(e,t,n){const r=e-n,a=t*r;return n+a}function u3(e,t,n,r,a){return a!==void 0&&(e=Td(e,a,r)),Td(e,n,r)+t}function dv(e,t=0,n=1,r,a){e.min=u3(e.min,t,n,r,a),e.max=u3(e.max,t,n,r,a)}function C5(e,{x:t,y:n}){dv(e.x,t.translate,t.scale,t.originPoint),dv(e.y,n.translate,n.scale,n.originPoint)}const c3=.999999999999,d3=1.0000000000001;function WB(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let s,u;for(let d=0;d<a;d++){s=n[d],u=s.projectionDelta;const{visualElement:f}=s.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&oo(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,C5(e,u)),r&&Ul(s.latestValues)&&oo(e,s.latestValues))}t.x<d3&&t.x>c3&&(t.x=1),t.y<d3&&t.y>c3&&(t.y=1)}function ao(e,t){e.min=e.min+t,e.max=e.max+t}function f3(e,t,n,r,a=.5){const s=st(e.min,e.max,a);dv(e,t,n,s,r)}function oo(e,t){f3(e.x,t.x,t.scaleX,t.scale,t.originX),f3(e.y,t.y,t.scaleY,t.scale,t.originY)}function w5(e,t){return x5(XB(e.getBoundingClientRect(),t))}function ZB(e,t,n){const r=w5(e,n),{scroll:a}=t;return a&&(ao(r.x,a.offset.x),ao(r.y,a.offset.y)),r}const h3=()=>({translate:0,scale:1,origin:0,originPoint:0}),so=()=>({x:h3(),y:h3()}),m3=()=>({min:0,max:0}),Tt=()=>({x:m3(),y:m3()}),fv={current:null},D5={current:!1};function QB(){if(D5.current=!0,!!lg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>fv.current=e.matches;e.addEventListener("change",t),t()}else fv.current=!1}const JB=new WeakMap;function eO(e,t,n){for(const r in t){const a=t[r],s=n[r];if(hn(a))e.addValue(r,a);else if(hn(s))e.addValue(r,bo(a,{owner:e}));else if(s!==a)if(e.hasValue(r)){const u=e.getValue(r);u.liveStyle===!0?u.jump(a):u.hasAnimated||u.set(a)}else{const u=e.getStaticValue(r);e.addValue(r,bo(u!==void 0?u:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const p3=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tO{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,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=xg,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=zn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,tt.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=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=d,this.blockInitialAnimation=!!s,this.isControllingVariants=ef(n),this.isVariantNode=d5(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const S=g[y];f[y]!==void 0&&hn(S)&&S.set(f[y])}}mount(t){var n;this.current=t,JB.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((r,a)=>this.bindToMotionValue(a,r)),D5.current||QB(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fv.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),bl(this.notifyUpdate),bl(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=To.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&tt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),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 yo){const n=yo[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(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):Tt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<p3.length;r++){const a=p3[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const s="on"+a,u=t[s];u&&(this.propEventSubscriptions[a]=this.on(a,u))}this.prevMotionValues=eO(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=bo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(gx(r)||yx(r))?r=parseFloat(r):!oB(r)&&yl.test(n)&&(r=e5(t,n)),this.setBaseTarget(t,hn(r)?r.get():r)),hn(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const u=zg(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);u&&(r=u[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!hn(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new dg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){wg.render(this.render)}}class A5 extends tO{constructor(){super(...arguments),this.KeyframeResolver=XP}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:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;hn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function M5(e,{style:t,vars:n},r,a){const s=e.style;let u;for(u in t)s[u]=t[u];a==null||a.applyProjectionStyles(s,r);for(u in n)s.setProperty(u,n[u])}function nO(e){return window.getComputedStyle(e)}class iO extends A5{constructor(){super(...arguments),this.type="html",this.renderInstance=M5}readValueFromInstance(t,n){var r;if(To.has(n))return(r=this.projection)!=null&&r.isProjecting?nv(n):mP(t,n);{const a=nO(t),s=(mg(n)?a.getPropertyValue(n):a[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return w5(t,n)}build(t,n,r){Pg(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Lg(t,n,r)}}const R5=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 rO(e,t,n,r){M5(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(R5.has(a)?a:Ng(a),t.attrs[a])}class lO extends A5{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Tt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(To.has(n)){const r=Jx(n);return r&&r.default||0}return n=R5.has(n)?n:Ng(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return b5(t,n,r)}build(t,n,r){m5(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){rO(t,n,r,a)}mount(t){this.isSVGTag=v5(t.tagName),super.mount(t)}}const P5=(e,t)=>Og(e)?new lO(t):new iO(t,{allowProjection:e!==b.Fragment});function po(e,t,n){const r=e.getProps();return zg(r,t,n!==void 0?n:r.custom,e)}const hv=e=>Array.isArray(e);function aO(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,bo(n))}function oO(e){return hv(e)?e[e.length-1]||0:e}function sO(e,t){const n=po(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const u in s){const d=oO(s[u]);aO(e,u,d)}}function uO(e){return!!(hn(e)&&e.add)}function mv(e,t){const n=e.getValue("willChange");if(uO(n))return n.add(t);if(!n&&Br.WillChange){const r=new Br.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function B5(e){return e.props[y5]}const cO=e=>e!==null;function dO(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(cO),s=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[s]}const fO={type:"spring",stiffness:500,damping:25,restSpeed:10},hO=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mO={type:"keyframes",duration:.8},pO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vO=(e,{keyframes:t})=>t.length>2?mO:To.has(e)?e.startsWith("scale")?hO(t[1]):fO:pO;function gO({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:s,repeatType:u,repeatDelay:d,from:f,elapsed:h,...p}){return!!Object.keys(p).length}const kg=(e,t,n,r={},a,s)=>u=>{const d=Tg(r,e)||{},f=d.delay||r.delay||0;let{elapsed:h=0}=r;h=h-Hi(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:a};gO(d)||Object.assign(p,vO(e,p)),p.duration&&(p.duration=Hi(p.duration)),p.repeatDelay&&(p.repeatDelay=Hi(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let g=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(ov(p),p.delay===0&&(g=!0)),(Br.instantAnimations||Br.skipAnimations)&&(g=!0,ov(p),p.delay=0),p.allowFlatten=!d.type&&!d.ease,g&&!s&&t.get()!==void 0){const y=dO(p.keyframes,d);if(y!==void 0){tt.update(()=>{p.onUpdate(y),p.onComplete()});return}}return d.isSync?new Eg(p):new kP(p)};function bO({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function O5(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:u,...d}=t;r&&(s=r);const f=[],h=a&&e.animationState&&e.animationState.getState()[a];for(const p in d){const g=e.getValue(p,e.latestValues[p]??null),y=d[p];if(y===void 0||h&&bO(h,p))continue;const S={delay:n,...Tg(s||{},p)},x=g.get();if(x!==void 0&&!g.isAnimating&&!Array.isArray(y)&&y===x&&!S.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const C=B5(e);if(C){const M=window.MotionHandoffAnimation(C,p,tt);M!==null&&(S.startTime=M,E=!0)}}mv(e,p),g.start(kg(p,g,y,e.shouldReduceMotion&&Wx.has(p)?{type:!1}:S,e,E));const T=g.animation;T&&f.push(T)}return u&&Promise.all(f).then(()=>{tt.update(()=>{u&&sO(e,u)})}),f}function z5(e,t,n,r=0,a=1){const s=Array.from(e).sort((h,p)=>h.sortNodePosition(p)).indexOf(t),u=e.size,d=(u-1)*r;return typeof n=="function"?n(s,u):a===1?s*r:d-s*r}function pv(e,t,n={}){var f;const r=po(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const s=r?()=>Promise.all(O5(e,r,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:y}=a;return yO(e,t,h,p,g,y,n)}:()=>Promise.resolve(),{when:d}=a;if(d){const[h,p]=d==="beforeChildren"?[s,u]:[u,s];return h().then(()=>p())}else return Promise.all([s(),u(n.delay)])}function yO(e,t,n=0,r=0,a=0,s=1,u){const d=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),d.push(pv(f,t,{...u,delay:n+(typeof r=="function"?0:r)+z5(e.variantChildren,f,r,a,s)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(d)}function SO(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>pv(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=pv(e,t,n);else{const a=typeof t=="function"?po(e,t,n.custom):t;r=Promise.all(O5(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function L5(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const $O=Rg.length;function N5(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?N5(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<$O;n++){const r=Rg[n],a=e.props[r];(qs(a)||a===!1)&&(t[r]=a)}return t}const EO=[...Mg].reverse(),xO=Mg.length;function TO(e){return t=>Promise.all(t.map(({animation:n,options:r})=>SO(e,n,r)))}function CO(e){let t=TO(e),n=v3(),r=!0;const a=f=>(h,p)=>{var y;const g=po(e,p,f==="exit"?(y=e.presenceContext)==null?void 0:y.custom:void 0);if(g){const{transition:S,transitionEnd:x,...E}=g;h={...h,...E,...x}}return h};function s(f){t=f(e)}function u(f){const{props:h}=e,p=N5(e.parent)||{},g=[],y=new Set;let S={},x=1/0;for(let T=0;T<xO;T++){const C=EO[T],M=n[C],D=h[C]!==void 0?h[C]:p[C],O=qs(D),R=C===f?M.isActive:null;R===!1&&(x=T);let z=D===p[C]&&D!==h[C]&&O;if(z&&r&&e.manuallyAnimateOnMount&&(z=!1),M.protectedKeys={...S},!M.isActive&&R===null||!D&&!M.prevProp||Jd(D)||typeof D=="boolean")continue;const I=wO(M.prevProp,D);let A=I||C===f&&M.isActive&&!z&&O||T>x&&O,V=!1;const F=Array.isArray(D)?D:[D];let P=F.reduce(a(C),{});R===!1&&(P={});const{prevResolvedValues:Z={}}=M,K={...Z,...P},_=N=>{A=!0,y.has(N)&&(V=!0,y.delete(N)),M.needsAnimating[N]=!0;const G=e.getValue(N);G&&(G.liveStyle=!1)};for(const N in K){const G=P[N],ne=Z[N];if(S.hasOwnProperty(N))continue;let X=!1;hv(G)&&hv(ne)?X=!L5(G,ne):X=G!==ne,X?G!=null?_(N):y.add(N):G!==void 0&&y.has(N)?_(N):M.protectedKeys[N]=!0}M.prevProp=D,M.prevResolvedValues=P,M.isActive&&(S={...S,...P}),r&&e.blockInitialAnimation&&(A=!1);const Y=z&&I;A&&(!Y||V)&&g.push(...F.map(N=>{const G={type:C};if(typeof N=="string"&&r&&!Y&&e.manuallyAnimateOnMount&&e.parent){const{parent:ne}=e,X=po(ne,N);if(ne.enteringChildren&&X){const{delayChildren:de}=X.transition||{};G.delay=z5(ne.enteringChildren,e,de)}}return{animation:N,options:G}}))}if(y.size){const T={};if(typeof h.initial!="boolean"){const C=po(e,Array.isArray(h.initial)?h.initial[0]:h.initial);C&&C.transition&&(T.transition=C.transition)}y.forEach(C=>{const M=e.getBaseTarget(C),D=e.getValue(C);D&&(D.liveStyle=!0),T[C]=M??null}),g.push({animation:T})}let E=!!g.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(g):Promise.resolve()}function d(f,h){var g;if(n[f].isActive===h)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(y=>{var S;return(S=y.animationState)==null?void 0:S.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=v3()}}}function wO(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!L5(t,e):!1}function Il(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function v3(){return{animate:Il(!0),whileInView:Il(),whileHover:Il(),whileTap:Il(),whileDrag:Il(),whileFocus:Il(),exit:Il()}}class xl{constructor(t){this.isMounted=!1,this.node=t}update(){}}class DO extends xl{constructor(t){super(t),t.animationState||(t.animationState=CO(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jd(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 AO=0;class MO extends xl{constructor(){super(...arguments),this.id=AO++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.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 k5={animation:{Feature:DO},exit:{Feature:MO}};function Xs(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function au(e){return{point:{x:e.pageX,y:e.pageY}}}const RO=e=>t=>Dg(t)&&e(t,au(t));function Bs(e,t,n,r){return Xs(e,t,RO(n),r)}const K5=1e-4,PO=1-K5,BO=1+K5,V5=.01,OO=0-V5,zO=0+V5;function En(e){return e.max-e.min}function LO(e,t,n){return Math.abs(e-t)<=n}function g3(e,t,n,r=.5){e.origin=r,e.originPoint=st(t.min,t.max,e.origin),e.scale=En(n)/En(t),e.translate=st(n.min,n.max,e.origin)-e.originPoint,(e.scale>=PO&&e.scale<=BO||isNaN(e.scale))&&(e.scale=1),(e.translate>=OO&&e.translate<=zO||isNaN(e.translate))&&(e.translate=0)}function Os(e,t,n,r){g3(e.x,t.x,n.x,r?r.originX:void 0),g3(e.y,t.y,n.y,r?r.originY:void 0)}function b3(e,t,n){e.min=n.min+t.min,e.max=e.min+En(t)}function NO(e,t,n){b3(e.x,t.x,n.x),b3(e.y,t.y,n.y)}function y3(e,t,n){e.min=t.min-n.min,e.max=e.min+En(t)}function zs(e,t,n){y3(e.x,t.x,n.x),y3(e.y,t.y,n.y)}function ci(e){return[e("x"),e("y")]}const F5=({current:e})=>e?e.ownerDocument.defaultView:null,S3=(e,t)=>Math.abs(e-t);function kO(e,t){const n=S3(e.x,t.x),r=S3(e.y,t.y);return Math.sqrt(n**2+r**2)}class I5{constructor(t,n,{transformPagePoint:r,contextWindow:a=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=Um(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,x=kO(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!S&&!x)return;const{point:E}=y,{timestamp:T}=an;this.history.push({...E,timestamp:T});const{onStart:C,onMove:M}=this.handlers;S||(C&&C(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,y)},this.handlePointerMove=(y,S)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=Im(S,this.transformPagePoint),tt.update(this.updatePoint,!0)},this.handlePointerUp=(y,S)=>{this.end();const{onEnd:x,onSessionEnd:E,resumeAnimation:T}=this.handlers;if(this.dragSnapToOrigin&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Um(y.type==="pointercancel"?this.lastMoveEventInfo:Im(S,this.transformPagePoint),this.history);this.startEvent&&x&&x(y,C),E&&E(y,C)},!Dg(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=u,this.contextWindow=a||window;const d=au(t),f=Im(d,this.transformPagePoint),{point:h}=f,{timestamp:p}=an;this.history=[{...h,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,Um(f,this.history)),this.removeListeners=iu(Bs(this.contextWindow,"pointermove",this.handlePointerMove),Bs(this.contextWindow,"pointerup",this.handlePointerUp),Bs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),bl(this.updatePoint)}}function Im(e,t){return t?{point:t(e.point)}:e}function $3(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Um({point:e},t){return{point:e,delta:$3(e,U5(t)),offset:$3(e,KO(t)),velocity:VO(t,.1)}}function KO(e){return e[0]}function U5(e){return e[e.length-1]}function VO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=U5(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Hi(t)));)n--;if(!r)return{x:0,y:0};const s=vi(a.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const u={x:(a.x-r.x)/s,y:(a.y-r.y)/s};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function FO(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?st(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?st(n,e,r.max):Math.min(e,n)),e}function E3(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 IO(e,{top:t,left:n,bottom:r,right:a}){return{x:E3(e.x,n,a),y:E3(e.y,t,r)}}function x3(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function UO(e,t){return{x:x3(e.x,t.x),y:x3(e.y,t.y)}}function _O(e,t){let n=.5;const r=En(e),a=En(t);return a>r?n=_s(t.min,t.max-r,e.min):r>a&&(n=_s(e.min,e.max-a,t.min)),Pr(0,1,n)}function jO(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 vv=.35;function HO(e=vv){return e===!1?e=0:e===!0&&(e=vv),{x:T3(e,"left","right"),y:T3(e,"top","bottom")}}function T3(e,t,n){return{min:C3(e,t),max:C3(e,n)}}function C3(e,t){return typeof e=="number"?e:e[t]||0}const YO=new WeakMap;class qO{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=Tt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const s=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(au(g).point)},u=(g,y)=>{const{drag:S,dragPropagation:x,onDragStart:E}=this.getProps();if(S&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=JP(S),!this.openDragLock))return;this.latestPointerEvent=g,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),ci(C=>{let M=this.getAxisMotionValue(C).get()||0;if(Yi.test(M)){const{projection:D}=this.visualElement;if(D&&D.layout){const O=D.layout.layoutBox[C];O&&(M=En(O)*(parseFloat(M)/100))}}this.originPoint[C]=M}),E&&tt.postRender(()=>E(g,y)),mv(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},d=(g,y)=>{this.latestPointerEvent=g,this.latestPanInfo=y;const{dragPropagation:S,dragDirectionLock:x,onDirectionLock:E,onDrag:T}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:C}=y;if(x&&this.currentDirection===null){this.currentDirection=GO(C),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",y.point,C),this.updateAxis("y",y.point,C),this.visualElement.render(),T&&T(g,y)},f=(g,y)=>{this.latestPointerEvent=g,this.latestPanInfo=y,this.stop(g,y),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>ci(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)==null?void 0:y.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new I5(t,{onSessionStart:s,onStart:u,onMove:d,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:F5(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!a||!r)return;const{velocity:u}=a;this.startAnimation(u);const{onDragEnd:d}=this.getProps();d&&tt.postRender(()=>d(r,a))}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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!Vc(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let u=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(u=FO(u,this.constraints[t],this.elastic[t])),s.set(u)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,a=this.constraints;t&&lo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=IO(r.layoutBox,t):this.constraints=!1,this.elastic=HO(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ci(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=jO(r.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!lo(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const s=ZB(r,a.root,this.visualElement.getTransformPagePoint());let u=UO(a.layout.layoutBox,s);if(n){const d=n(GB(u));this.hasMutatedConstraints=!!d,d&&(u=x5(d))}return u}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:s,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},h=ci(p=>{if(!Vc(p,n,this.currentDirection))return;let g=f&&f[p]||{};u&&(g={min:0,max:0});const y=a?200:1e6,S=a?40:1e7,x={type:"inertia",velocity:r?t[p]:0,bounceStiffness:y,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...s,...g};return this.startAxisValueAnimation(p,x)});return Promise.all(h).then(d)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return mv(this.visualElement,t),r.start(kg(t,r,0,n,this.visualElement,!1))}stopAnimation(){ci(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ci(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()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ci(n=>{const{drag:r}=this.getProps();if(!Vc(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(n);if(a&&a.layout){const{min:u,max:d}=a.layout.layoutBox[n];s.set(t[n]-st(u,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!lo(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};ci(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const f=d.get();a[u]=_O({min:f,max:f},this.constraints[u])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ci(u=>{if(!Vc(u,t,null))return;const d=this.getAxisMotionValue(u),{min:f,max:h}=this.constraints[u];d.set(st(f,h,a[u]))})}addListeners(){if(!this.visualElement.current)return;YO.set(this.visualElement,this);const t=this.visualElement.current,n=Bs(t,"pointerdown",f=>{const{drag:h,dragListener:p=!0}=this.getProps();h&&p&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();lo(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,s=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),tt.read(r);const u=Xs(window,"resize",()=>this.scalePositionWithinConstraints()),d=a.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(ci(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=f[p].translate,g.set(g.get()+f[p].translate))}),this.visualElement.render())}));return()=>{u(),n(),s(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:s=!1,dragElastic:u=vv,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:s,dragElastic:u,dragMomentum:d}}}function Vc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function GO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class XO extends xl{constructor(t){super(t),this.removeGroupControls=bi,this.removeListeners=bi,this.controls=new qO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bi}unmount(){this.removeGroupControls(),this.removeListeners()}}const w3=e=>(t,n)=>{e&&tt.postRender(()=>e(t,n))};class WO extends xl{constructor(){super(...arguments),this.removePointerDownListener=bi}onPointerDown(t){this.session=new I5(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:F5(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:w3(t),onStart:w3(n),onMove:r,onEnd:(s,u)=>{delete this.session,a&&tt.postRender(()=>a(s,u))}}}mount(){this.removePointerDownListener=Bs(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 Qc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function D3(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ss={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;const n=D3(e,t.target.x),r=D3(e,t.target.y);return`${n}% ${r}%`}},ZO={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=yl.parse(e);if(a.length>5)return r;const s=yl.createTransformer(e),u=typeof a[0]!="number"?1:0,d=n.x.scale*t.x,f=n.y.scale*t.y;a[0+u]/=d,a[1+u]/=f;const h=st(d,f,.5);return typeof a[2+u]=="number"&&(a[2+u]/=h),typeof a[3+u]=="number"&&(a[3+u]/=h),s(a)}};let _m=!1;class QO extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:s}=t;xB(JO),s&&(n.group&&n.group.add(s),r&&r.register&&a&&r.register(s),_m&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Qc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:s}=this.props,{projection:u}=r;return u&&(u.isPresent=s,_m=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==s?u.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?u.promote():u.relegate()||tt.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),wg.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;_m=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function _5(e){const[t,n]=o5(),r=b.useContext(Us);return gi.jsx(QO,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(S5),isPresent:t,safeToRemove:n})}const JO={borderRadius:{...Ss,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ss,borderTopRightRadius:Ss,borderBottomLeftRadius:Ss,borderBottomRightRadius:Ss,boxShadow:ZO};function ez(e,t,n){const r=hn(e)?e:bo(e);return r.start(kg("",r,t,n)),r.animation}const tz=(e,t)=>e.depth-t.depth;class nz{constructor(){this.children=[],this.isDirty=!1}add(t){og(this.children,t),this.isDirty=!0}remove(t){sg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tz),this.isDirty=!1,this.children.forEach(t)}}function iz(e,t){const n=zn.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(bl(r),e(s-t))};return tt.setup(r,!0),()=>bl(r)}const j5=["TopLeft","TopRight","BottomLeft","BottomRight"],rz=j5.length,A3=e=>typeof e=="string"?parseFloat(e):e,M3=e=>typeof e=="number"||pe.test(e);function lz(e,t,n,r,a,s){a?(e.opacity=st(0,n.opacity??1,az(r)),e.opacityExit=st(t.opacity??1,0,oz(r))):s&&(e.opacity=st(t.opacity??1,n.opacity??1,r));for(let u=0;u<rz;u++){const d=`border${j5[u]}Radius`;let f=R3(t,d),h=R3(n,d);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||M3(f)===M3(h)?(e[d]=Math.max(st(A3(f),A3(h),r),0),(Yi.test(h)||Yi.test(f))&&(e[d]+="%")):e[d]=h}(t.rotate||n.rotate)&&(e.rotate=st(t.rotate||0,n.rotate||0,r))}function R3(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const az=H5(0,.5,Dx),oz=H5(.5,.95,bi);function H5(e,t,n){return r=>r<e?0:r>t?1:n(_s(e,t,r))}function P3(e,t){e.min=t.min,e.max=t.max}function ui(e,t){P3(e.x,t.x),P3(e.y,t.y)}function B3(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function O3(e,t,n,r,a){return e-=t,e=Td(e,1/n,r),a!==void 0&&(e=Td(e,1/a,r)),e}function sz(e,t=0,n=1,r=.5,a,s=e,u=e){if(Yi.test(t)&&(t=parseFloat(t),t=st(u.min,u.max,t/100)-u.min),typeof t!="number")return;let d=st(s.min,s.max,r);e===s&&(d-=t),e.min=O3(e.min,t,n,d,a),e.max=O3(e.max,t,n,d,a)}function z3(e,t,[n,r,a],s,u){sz(e,t[n],t[r],t[a],t.scale,s,u)}const uz=["x","scaleX","originX"],cz=["y","scaleY","originY"];function L3(e,t,n,r){z3(e.x,t,uz,n?n.x:void 0,r?r.x:void 0),z3(e.y,t,cz,n?n.y:void 0,r?r.y:void 0)}function N3(e){return e.translate===0&&e.scale===1}function Y5(e){return N3(e.x)&&N3(e.y)}function k3(e,t){return e.min===t.min&&e.max===t.max}function dz(e,t){return k3(e.x,t.x)&&k3(e.y,t.y)}function K3(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function q5(e,t){return K3(e.x,t.x)&&K3(e.y,t.y)}function V3(e){return En(e.x)/En(e.y)}function F3(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class fz{constructor(){this.members=[]}add(t){og(this.members,t),t.scheduleRender()}remove(t){if(sg(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(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const s=this.members[a];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function hz(e,t,n){let r="";const a=e.x.translate/t.x,s=e.y.translate/t.y,u=(n==null?void 0:n.z)||0;if((a||s||u)&&(r=`translate3d(${a}px, ${s}px, ${u}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:p,rotateX:g,rotateY:y,skewX:S,skewY:x}=n;h&&(r=`perspective(${h}px) ${r}`),p&&(r+=`rotate(${p}deg) `),g&&(r+=`rotateX(${g}deg) `),y&&(r+=`rotateY(${y}deg) `),S&&(r+=`skewX(${S}deg) `),x&&(r+=`skewY(${x}deg) `)}const d=e.x.scale*t.x,f=e.y.scale*t.y;return(d!==1||f!==1)&&(r+=`scale(${d}, ${f})`),r||"none"}const jm=["","X","Y","Z"],mz=1e3;let pz=0;function Hm(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function G5(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=B5(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tt,!(a||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&G5(r)}function X5({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(u={},d=t==null?void 0:t()){this.id=pz++,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(bz),this.nodes.forEach(Ez),this.nodes.forEach(xz),this.nodes.forEach(yz)},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 nz)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new dg),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)&&!lB(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,g=0;const y=()=>this.root.updateBlockedByResize=!1;tt.read(()=>{g=window.innerWidth}),e(u,()=>{const S=window.innerWidth;S!==g&&(g=S,this.root.updateBlockedByResize=!0,p&&p(),p=iz(y,250),Qc.hasAnimatedSinceResize&&(Qc.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:g,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||Az,{onLayoutAnimationStart:E,onLayoutAnimationComplete:T}=h.getProps(),C=!this.targetLayout||!q5(this.targetLayout,S),M=!g&&y;if(this.options.layoutRoot||this.resumeFrom||M||g&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const D={...Tg(x,"layout"),onPlay:E,onComplete:T};(h.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D),this.setAnimationOrigin(p,M)}else g||_3(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}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(),bl(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(Tz),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&&G5(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.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(I3);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(U3);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach($z),this.nodes.forEach(vz),this.nodes.forEach(gz)):this.nodes.forEach(U3),this.clearAllSnapshots();const d=zn.now();an.delta=Pr(0,1e3/60,d-an.timestamp),an.timestamp=d,an.isProcessing=!0,Bm.update.process(an),Bm.preRender.process(an),Bm.render.process(an),an.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Sz),this.sharedNodes.forEach(Cz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!En(this.snapshot.measuredBox.x)&&!En(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=Tt(),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=r(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(!a)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!Y5(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,p=h!==this.prevTransformTemplateValue;u&&this.instance&&(d||Ul(this.latestValues)||p)&&(a(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)),Mz(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:u}=this.options;if(!u)return Tt();const d=u.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(Rz))){const{scroll:p}=this.root;p&&(ao(d.x,p.offset.x),ao(d.y,p.offset.y))}return d}removeElementScroll(u){var f;const d=Tt();if(ui(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:g,options:y}=p;p!==this.root&&g&&y.layoutScroll&&(g.wasRoot&&ui(d,u),ao(d.x,g.offset.x),ao(d.y,g.offset.y))}return d}applyTransform(u,d=!1){const f=Tt();ui(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&&oo(f,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Ul(p.latestValues)&&oo(f,p.latestValues)}return Ul(this.latestValues)&&oo(f,this.latestValues),f}removeTransform(u){const d=Tt();ui(d,u);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Ul(h.latestValues))continue;cv(h.latestValues)&&h.updateSnapshot();const p=Tt(),g=h.measurePageBox();ui(p,g),L3(d,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,p)}return Ul(this.latestValues)&&L3(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!==an.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:g}=this.options;if(!(!this.layout||!(p||g))){if(this.resolvedRelativeTargetAt=an.timestamp,!this.targetDelta&&!this.relativeTarget){const S=this.getClosestProjectingParent();S&&S.layout&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Tt(),this.relativeTargetOrigin=Tt(),zs(this.relativeTargetOrigin,this.layout.layoutBox,S.layout.layoutBox),ui(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Tt(),this.targetWithTransforms=Tt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),NO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ui(this.target,this.layout.layoutBox),C5(this.target,this.targetDelta)):ui(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const S=this.getClosestProjectingParent();S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Tt(),this.relativeTargetOrigin=Tt(),zs(this.relativeTargetOrigin,this.target,S.target),ui(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||cv(this.parent.latestValues)||T5(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 x;const u=this.getLead(),d=!!this.resumingFrom||this!==u;let f=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(f=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===an.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;ui(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,y=this.treeScale.y;WB(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=Tt());const{target:S}=u;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(B3(this.prevProjectionDelta.x,this.projectionDelta.x),B3(this.prevProjectionDelta.y,this.projectionDelta.y)),Os(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!F3(this.projectionDelta.x,this.prevProjectionDelta.x)||!F3(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}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=so(),this.projectionDelta=so(),this.projectionDeltaWithTransform=so()}setAnimationOrigin(u,d=!1){const f=this.snapshot,h=f?f.latestValues:{},p={...this.latestValues},g=so();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const y=Tt(),S=f?f.source:void 0,x=this.layout?this.layout.source:void 0,E=S!==x,T=this.getStack(),C=!T||T.members.length<=1,M=!!(E&&!C&&this.options.crossfade===!0&&!this.path.some(Dz));this.animationProgress=0;let D;this.mixTargetDelta=O=>{const R=O/1e3;j3(g.x,u.x,R),j3(g.y,u.y,R),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zs(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wz(this.relativeTarget,this.relativeTargetOrigin,y,R),D&&dz(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=Tt()),ui(D,this.relativeTarget)),E&&(this.animationValues=p,lz(p,h,this.latestValues,R,M,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},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&&(bl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tt.update(()=>{Qc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=bo(0)),this.currentAnimation=ez(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(mz),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&&W5(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Tt();const g=En(this.layout.layoutBox.x);f.x.min=u.target.x.min,f.x.max=f.x.min+g;const y=En(this.layout.layoutBox.y);f.y.min=u.target.y.min,f.y.max=f.y.min+y}ui(d,f),oo(d,p),Os(this.projectionDeltaWithTransform,this.layoutCorrected,d,p)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new fz),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&&Hm("z",u,h,this.animationValues);for(let p=0;p<jm.length;p++)Hm(`rotate${jm[p]}`,u,h,this.animationValues),Hm(`skew${jm[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=Zc(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=Zc(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!Ul(this.latestValues)&&(u.transform=f?f({},""):"none",this.hasProjected=!1);return}u.visibility="";const p=h.animationValues||h.latestValues;this.applyTransformsToTarget();let g=hz(this.projectionDeltaWithTransform,this.treeScale,p);f&&(g=f(p,g)),u.transform=g;const{x:y,y:S}=this.projectionDelta;u.transformOrigin=`${y.origin*100}% ${S.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 x in Gs){if(p[x]===void 0)continue;const{correct:E,applyTo:T,isCSSVariable:C}=Gs[x],M=g==="none"?p[x]:E(p[x],h);if(T){const D=T.length;for(let O=0;O<D;O++)u[T[O]]=M}else C?this.options.visualElement.renderState.vars[x]=M:u[x]=M}this.options.layoutId&&(u.pointerEvents=h===this?Zc(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(I3),this.root.sharedNodes.clear()}}}function vz(e){e.updateLayout()}function gz(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:s}=e.options,u=t.source!==e.layout.source;s==="size"?ci(g=>{const y=u?t.measuredBox[g]:t.layoutBox[g],S=En(y);y.min=r[g].min,y.max=y.min+S}):W5(s,t.layoutBox,r)&&ci(g=>{const y=u?t.measuredBox[g]:t.layoutBox[g],S=En(r[g]);y.max=y.min+S,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+S)});const d=so();Os(d,r,t.layoutBox);const f=so();u?Os(f,e.applyTransform(a,!0),t.measuredBox):Os(f,r,t.layoutBox);const h=!Y5(d);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:y,layout:S}=g;if(y&&S){const x=Tt();zs(x,t.layoutBox,y.layoutBox);const E=Tt();zs(E,r,S.layoutBox),q5(x,E)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=x,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:f,layoutDelta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function bz(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 yz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Sz(e){e.clearSnapshot()}function I3(e){e.clearMeasurements()}function U3(e){e.isLayoutDirty=!1}function $z(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 Ez(e){e.resolveTargetDelta()}function xz(e){e.calcProjection()}function Tz(e){e.resetSkewAndRotation()}function Cz(e){e.removeLeadSnapshot()}function j3(e,t,n){e.translate=st(t.translate,0,n),e.scale=st(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function H3(e,t,n,r){e.min=st(t.min,n.min,r),e.max=st(t.max,n.max,r)}function wz(e,t,n,r){H3(e.x,t.x,n.x,r),H3(e.y,t.y,n.y,r)}function Dz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Az={duration:.45,ease:[.4,0,.1,1]},Y3=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),q3=Y3("applewebkit/")&&!Y3("chrome/")?Math.round:bi;function G3(e){e.min=q3(e.min),e.max=q3(e.max)}function Mz(e){G3(e.x),G3(e.y)}function W5(e,t,n){return e==="position"||e==="preserve-aspect"&&!LO(V3(t),V3(n),.2)}function Rz(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Pz=X5({attachResizeListener:(e,t)=>Xs(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ym={current:void 0},Z5=X5({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ym.current){const e=new Pz({});e.mount(window),e.setOptions({layoutScroll:!0}),Ym.current=e}return Ym.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Q5={pan:{Feature:WO},drag:{Feature:XO,ProjectionNode:Z5,MeasureLayout:_5}};function X3(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,s=r[a];s&&tt.postRender(()=>s(t,au(t)))}class Bz extends xl{mount(){const{current:t}=this.node;t&&(this.unmount=eB(t,(n,r)=>(X3(this.node,r,"Start"),a=>X3(this.node,a,"End"))))}unmount(){}}class Oz extends xl{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=iu(Xs(this.node.current,"focus",()=>this.onFocus()),Xs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function W3(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),s=r[a];s&&tt.postRender(()=>s(t,au(t)))}class zz extends xl{mount(){const{current:t}=this.node;t&&(this.unmount=rB(t,(n,r)=>(W3(this.node,r,"Start"),(a,{success:s})=>W3(this.node,a,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const gv=new WeakMap,qm=new WeakMap,Lz=e=>{const t=gv.get(e.target);t&&t(e)},Nz=e=>{e.forEach(Lz)};function kz({root:e,...t}){const n=e||document;qm.has(n)||qm.set(n,{});const r=qm.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(Nz,{root:e,...t})),r[a]}function Kz(e,t,n){const r=kz(t);return gv.set(e,n),r.observe(e),()=>{gv.delete(e),r.unobserve(e)}}const Vz={some:0,all:1};class Fz extends xl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:s}=t,u={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:Vz[a]},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:g}=this.node.getProps(),y=h?p:g;y&&y(f)};return Kz(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(Iz(t,n))&&this.startObserver()}unmount(){}}function Iz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const J5={inView:{Feature:Fz},tap:{Feature:zz},focus:{Feature:Oz},hover:{Feature:Bz}},e2={layout:{ProjectionNode:Z5,MeasureLayout:_5}},Uz={...k5,...J5,...Q5,...e2},WV=E5(Uz,P5),t2={renderer:P5,...k5,...J5},ZV={...t2,...Q5,...e2};function QV(e,t){let{role:n="dialog"}=e,r=vl();r=e["aria-label"]?void 0:r;let a=b.useRef(!1);return b.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){pd(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(a.current=!0,t.current&&(t.current.blur(),pd(t.current)),a.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),vx(),{dialogProps:{...Zi(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:s=>{a.current&&s.stopPropagation()}},titleProps:{id:r}}}function JV(e={shouldBlockScroll:!0},t,n){let{overlayProps:r,underlayProps:a}=B9({...e,isOpen:t.isOpen,onClose:t.close},n);return z9({isDisabled:!t.isOpen||!e.shouldBlockScroll}),vx(),b.useEffect(()=>{if(t.isOpen&&n.current)return uR([n.current])},[t.isOpen,n]),{modalProps:_t(r),underlayProps:a}}function _z(e,t,n){let[r,a]=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:r,f=b.useCallback((h,...p)=>{let g=(y,...S)=>{n&&(Object.is(d,y)||n(y,...S)),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"),a((S,...x)=>{let E=h(u?d:S,...x);return g(E,...p),u?S:E})):(u||a(h),g(h,...p))},[u,d,n]);return[d,f]}var jz=t2;const eF=Object.freeze(Object.defineProperty({__proto__:null,default:jz},Symbol.toStringTag,{value:"Module"}));function n2(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:s="label"}=e;t=qi(t);let u=qi(),d={};n&&(r=r?`${u} ${r}`:u,d={id:u,htmlFor:s==="label"?t:void 0});let f=NM({id:t,"aria-label":a,"aria-labelledby":r});return{labelProps:d,fieldProps:f}}function Hz(e){let{description:t,errorMessage:n,isInvalid:r,validationState:a}=e,{labelProps:s,fieldProps:u}=n2(e),d=h4([!!t,!!n,r,a]),f=h4([!!t,!!n,r,a]);return u=gt(u,{"aria-describedby":[d,f,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:u,descriptionProps:{id:d},errorMessageProps:{id:f}}}function i2(e,t,n){let{validationBehavior:r,focus:a}=e;Oi(()=>{if(r==="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(qz(n.current))}});let s=b.useRef(!1),u=Zt(()=>{s.current||t.resetValidation()}),d=Zt(h=>{var p;t.displayValidation.isInvalid||t.commitValidation();let g=n==null||(p=n.current)===null||p===void 0?void 0:p.form;if(!h.defaultPrevented&&n&&g&&Gz(g)===n.current){var y;a?a():(y=n.current)===null||y===void 0||y.focus(),X9("keyboard")}h.preventDefault()}),f=Zt(()=>{t.commitValidation()});b.useEffect(()=>{let h=n==null?void 0:n.current;if(!h)return;let p=h.form,g=p==null?void 0:p.reset;return p&&(p.reset=()=>{s.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,g==null||g.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=g)}},[n,d,f,u,r])}function Yz(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 qz(e){return{isInvalid:!e.validity.valid,validationDetails:Yz(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Gz(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const r2={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},l2={...r2,customError:!0,valid:!1},Ja={isInvalid:!1,validationDetails:r2,validationErrors:[]},Xz=b.createContext({}),Cd="__formValidationState"+Date.now();function Kg(e){if(e[Cd]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:s}=e[Cd];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:s}}return Wz(e)}function Wz(e){let{isInvalid:t,validationState:n,name:r,value:a,builtinValidation:s,validate:u,validationBehavior:d="aria"}=e;n&&(t||(t=n==="invalid"));let f=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:l2}:null,h=b.useMemo(()=>{if(!u||a==null)return null;let F=Zz(u,a);return Z3(F)},[u,a]);s!=null&&s.validationDetails.valid&&(s=void 0);let p=b.useContext(Xz),g=b.useMemo(()=>r?Array.isArray(r)?r.flatMap(F=>bv(p[F])):bv(p[r]):[],[p,r]),[y,S]=b.useState(p),[x,E]=b.useState(!1);p!==y&&(S(p),E(!1));let T=b.useMemo(()=>Z3(x?[]:g),[x,g]),C=b.useRef(Ja),[M,D]=b.useState(Ja),O=b.useRef(Ja),R=()=>{if(!z)return;I(!1);let F=h||s||C.current;Gm(F,O.current)||(O.current=F,D(F))},[z,I]=b.useState(!1);return b.useEffect(R),{realtimeValidation:f||T||h||s||Ja,displayValidation:d==="native"?f||T||M:f||T||h||s||M,updateValidation(F){d==="aria"&&!Gm(M,F)?D(F):C.current=F},resetValidation(){let F=Ja;Gm(F,O.current)||(O.current=F,D(F)),d==="native"&&I(!1),E(!0)},commitValidation(){d==="native"&&I(!0),E(!0)}}}function bv(e){return e?Array.isArray(e)?e:[e]:[]}function Zz(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return bv(n)}return[]}function Z3(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:l2}:null}function Gm(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function tF(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:a=!1,isReadOnly:s=!1,type:u="text",validationBehavior:d="aria"}=e,[f,h]=_z(e.value,e.defaultValue||"",e.onChange),{focusableProps:p}=R9(e,t),g=Kg({...e,value:f}),{isInvalid:y,validationErrors:S,validationDetails:x}=g.displayValidation,{labelProps:E,fieldProps:T,descriptionProps:C,errorMessageProps:M}=Hz({...e,isInvalid:y,errorMessage:e.errorMessage||S}),D=Zi(e,{labelable:!0});const O={type:u,pattern:e.pattern};return UA(t,f,h),i2(e,g,t),b.useEffect(()=>{if(t.current instanceof pi(t.current).HTMLTextAreaElement){let R=t.current;Object.defineProperty(R,"defaultValue",{get:()=>R.value,set:()=>{},configurable:!0})}},[t]),{labelProps:E,inputProps:_t(D,n==="input"?O:void 0,{disabled:r,readOnly:s,required:a&&d==="native","aria-required":a&&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:R=>h(R.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,...T}),descriptionProps:C,errorMessageProps:M,isInvalid:y,validationErrors:S,validationDetails:x}}const a2={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},o2={...a2,customError:!0,valid:!1},$s={isInvalid:!1,validationDetails:a2,validationErrors:[]},Qz=b.createContext({}),Q3="__formValidationState"+Date.now();function Jz(e){if(e[Q3]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:s}=e[Q3];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:s}}return eL(e)}function eL(e){let{isInvalid:t,validationState:n,name:r,value:a,builtinValidation:s,validate:u,validationBehavior:d="aria"}=e;n&&(t||(t=n==="invalid"));let f=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:o2}:null,h=b.useMemo(()=>{if(!u||a==null)return null;let F=tL(u,a);return J3(F)},[u,a]);s!=null&&s.validationDetails.valid&&(s=void 0);let p=b.useContext(Qz),g=b.useMemo(()=>r?Array.isArray(r)?r.flatMap(F=>yv(p[F])):yv(p[r]):[],[p,r]),[y,S]=b.useState(p),[x,E]=b.useState(!1);p!==y&&(S(p),E(!1));let T=b.useMemo(()=>J3(x?[]:g),[x,g]),C=b.useRef($s),[M,D]=b.useState($s),O=b.useRef($s),R=()=>{if(!z)return;I(!1);let F=h||s||C.current;Xm(F,O.current)||(O.current=F,D(F))},[z,I]=b.useState(!1);return b.useEffect(R),{realtimeValidation:f||T||h||s||$s,displayValidation:d==="native"?f||T||M:f||T||h||s||M,updateValidation(F){d==="aria"&&!Xm(M,F)?D(F):C.current=F},resetValidation(){let F=$s;Xm(F,O.current)||(O.current=F,D(F)),d==="native"&&I(!1),E(!0)},commitValidation(){d==="native"&&I(!0),E(!0)}}}function yv(e){return e?Array.isArray(e)?e:[e]:[]}function tL(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return yv(n)}return[]}function J3(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:o2}:null}function Xm(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function s2(e,t,n){let{isDisabled:r=!1,isReadOnly:a=!1,value:s,name:u,form:d,children:f,"aria-label":h,"aria-labelledby":p,validationState:g="valid",isInvalid:y,onPressStart:S,onPressEnd:x,onPressChange:E,onPress:T,onPressUp:C,onClick:M}=e,D=P=>{P.stopPropagation(),t.setSelected(P.target.checked)},{pressProps:O,isPressed:R}=gl({onPressStart:S,onPressEnd:x,onPressChange:E,onPress:T,onPressUp:C,onClick:M,isDisabled:r}),{pressProps:z,isPressed:I}=gl({onPressStart:S,onPressEnd:x,onPressChange:E,onPressUp:C,onClick:M,onPress(P){var Z;T==null||T(P),t.toggle(),(Z=n.current)===null||Z===void 0||Z.focus()},isDisabled:r||a}),{focusableProps:A}=Xd(e,n),V=gt(O,A),F=Hv(e,{labelable:!0});return FM(n,t.defaultSelected,t.setSelected),{labelProps:gt(z,{onClick:P=>P.preventDefault()}),inputProps:gt(F,{"aria-invalid":y||g==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":a||void 0,onChange:D,disabled:r,...s==null?{}:{value:s},name:u,form:d,type:"checkbox",...V}),isSelected:t.isSelected,isPressed:R||I,isDisabled:r,isReadOnly:a,isInvalid:y||g==="invalid"}}function nF(e,t,n){let{labelProps:r,inputProps:a,isSelected:s,isPressed:u,isDisabled:d,isReadOnly:f}=s2(e,t,n);return{labelProps:r,inputProps:{...a,role:"switch",checked:s},isSelected:s,isPressed:u,isDisabled:d,isReadOnly:f}}function nL(e){let[t,n]=jv(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=b.useCallback(()=>{n(!0)},[n]),a=b.useCallback(()=>{n(!1)},[n]),s=b.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:a,toggle:s}}function iF(e,t){let n=Zi(e,{labelable:!0}),{hoverProps:r}=eg({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:_t(n,r,{role:"tooltip"})}}function iL(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Ut(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(s=>!s.form);else{var n,r;let s=(r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name);t=[...s??[]]}return t?!t.some(s=>s.checked):!1}function u2(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function wd(e,t,n){let r=t!=null&&t.tabbable?GM:aE,a=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,s=Ut(a),u=pM(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"&&(!iL(d)||u.currentNode.tagName==="INPUT"&&u.currentNode.type==="radio"&&u.currentNode.name===d.name)?NodeFilter.FILTER_REJECT:r(d)&&(!n||u2(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 Vg{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let a=this.fastMap.get(n??null);if(!a)return;let s=new eS({scopeRef:t});a.addChild(s),s.parent=a,this.fastMap.set(t,s),r&&(s.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&u2(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let a=n.children;r&&(r.removeChild(n),a.size>0&&a.forEach(s=>r&&r.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 Vg;var r;for(let a of this.traverse())n.addTreeNode(a.scopeRef,(r=(t=a.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,a.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new eS({scopeRef:null}),this.fastMap.set(null,this.root)}}class eS{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 Vg;function rF(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,a=b.useRef({isFocused:!1,isFocusVisible:t||Gd()}),[s,u]=b.useState(!1),[d,f]=b.useState(()=>a.current.isFocused&&a.current.isFocusVisible),h=b.useCallback(()=>f(a.current.isFocused&&a.current.isFocusVisible),[]),p=b.useCallback(S=>{a.current.isFocused=S,u(S),h()},[h]);J9(S=>{a.current.isFocusVisible=S,h()},[],{isTextInput:n});let{focusProps:g}=rg({isDisabled:r,onFocusChange:p}),{focusWithinProps:y}=hx({isDisabled:!r,onFocusWithinChange:p});return{isFocused:s,isFocusVisible:d,focusProps:r?y:g}}function rL(e,t){let n=t==null?void 0:t.isDisabled,[r,a]=b.useState(!1);return Oi(()=>{if(e!=null&&e.current&&!n){let s=()=>{if(e.current){let d=wd(e.current,{tabbable:!0});a(!!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:r}function c2(e){let t=aL(Ut(e));t!==e&&(t&&lL(t,e),e&&d2(e,t))}function lL(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function d2(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function aL(e){let t=ea(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}function lF(e,t,n){let{isDisabled:r,trigger:a}=e,s=yi(),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=()=>{a!=="focus"&&(bE()==="pointer"?u.current=!0:u.current=!1,f())},g=()=>{a!=="focus"&&(d.current=!1,u.current=!1,h())},y=()=>{d.current=!1,u.current=!1,h(!0)},S=()=>{Fs()&&(d.current=!0,f())},x=()=>{d.current=!1,u.current=!1,h(!0)},{hoverProps:E}=eg({isDisabled:r,onHoverStart:p,onHoverEnd:g}),{focusableProps:T}=Xd({isDisabled:r,onFocus:S,onBlur:x},n);return{triggerProps:{"aria-describedby":t.isOpen?s:void 0,..._t(T,E,{onPointerDown:y,onKeyDown:y})},tooltipProps:{id:s}}}function oL(e,t){let{elementType:n="a",onPress:r,onPressStart:a,onPressEnd:s,onClick:u,isDisabled:d,...f}=e,h={};n!=="a"&&(h={role:"link",tabIndex:d?void 0:0});let{focusableProps:p}=Xd(e,t),{pressProps:g,isPressed:y}=gl({onPress:r,onPressStart:a,onPressEnd:s,onClick:u,isDisabled:d,ref:t}),S=Hv(f,{labelable:!0}),x=gt(p,g),E=nu(),T=OM(e);return{isPressed:y,linkProps:gt(S,T,{...x,...h,"aria-disabled":d||void 0,"aria-current":e["aria-current"],onClick:C=>{var M;(M=g.onClick)===null||M===void 0||M.call(g,C),zM(C,E,e.href,e.routerOptions)}})}}function aF(e,t){let{isCurrent:n,isDisabled:r,"aria-current":a,elementType:s="a",...u}=e,{linkProps:d}=oL({isDisabled:r||n,elementType:s,...u},t),f=/^h[1-6]$/.test(s),h={};return f||(h=d),n&&(h["aria-current"]=a||"page",h.tabIndex=e.autoFocus?-1:void 0),{itemProps:{"aria-disabled":r,...h}}}var f2={};f2={breadcrumbs:"عناصر الواجهة"};var h2={};h2={breadcrumbs:"Трохи хляб"};var m2={};m2={breadcrumbs:"Popis cesty"};var p2={};p2={breadcrumbs:"Brødkrummer"};var v2={};v2={breadcrumbs:"Breadcrumbs"};var g2={};g2={breadcrumbs:"Πλοηγήσεις breadcrumb"};var b2={};b2={breadcrumbs:"Breadcrumbs"};var y2={};y2={breadcrumbs:"Migas de pan"};var S2={};S2={breadcrumbs:"Lingiread"};var $2={};$2={breadcrumbs:"Navigointilinkit"};var E2={};E2={breadcrumbs:"Chemin de navigation"};var x2={};x2={breadcrumbs:"שבילי ניווט"};var T2={};T2={breadcrumbs:"Navigacijski putovi"};var C2={};C2={breadcrumbs:"Morzsamenü"};var w2={};w2={breadcrumbs:"Breadcrumb"};var D2={};D2={breadcrumbs:"パンくずリスト"};var A2={};A2={breadcrumbs:"탐색 표시"};var M2={};M2={breadcrumbs:"Naršymo kelias"};var R2={};R2={breadcrumbs:"Atpakaļceļi"};var P2={};P2={breadcrumbs:"Navigasjonsstier"};var B2={};B2={breadcrumbs:"Broodkruimels"};var O2={};O2={breadcrumbs:"Struktura nawigacyjna"};var z2={};z2={breadcrumbs:"Caminho detalhado"};var L2={};L2={breadcrumbs:"Categorias"};var N2={};N2={breadcrumbs:"Miez de pâine"};var k2={};k2={breadcrumbs:"Навигация"};var K2={};K2={breadcrumbs:"Navigačné prvky Breadcrumbs"};var V2={};V2={breadcrumbs:"Drobtine"};var F2={};F2={breadcrumbs:"Putanje navigacije"};var I2={};I2={breadcrumbs:"Sökvägar"};var U2={};U2={breadcrumbs:"İçerik haritaları"};var _2={};_2={breadcrumbs:"Навігаційна стежка"};var j2={};j2={breadcrumbs:"导航栏"};var H2={};H2={breadcrumbs:"導覽列"};var Y2={};Y2={"ar-AE":f2,"bg-BG":h2,"cs-CZ":m2,"da-DK":p2,"de-DE":v2,"el-GR":g2,"en-US":b2,"es-ES":y2,"et-EE":S2,"fi-FI":$2,"fr-FR":E2,"he-IL":x2,"hr-HR":T2,"hu-HU":C2,"it-IT":w2,"ja-JP":D2,"ko-KR":A2,"lt-LT":M2,"lv-LV":R2,"nb-NO":P2,"nl-NL":B2,"pl-PL":O2,"pt-BR":z2,"pt-PT":L2,"ro-RO":N2,"ru-RU":k2,"sk-SK":K2,"sl-SI":V2,"sr-SP":F2,"sv-SE":I2,"tr-TR":U2,"uk-UA":_2,"zh-CN":j2,"zh-TW":H2};function sL(e){return e&&e.__esModule?e.default:e}function oF(e){let{"aria-label":t,...n}=e,r=Or(sL(Y2),"@react-aria/breadcrumbs");return{navProps:{...Zi(n,{labelable:!0}),"aria-label":t||r.format("breadcrumbs")}}}const q2=new WeakMap;function Dd(e,t,n){return e?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${q2.get(e)}-${n}-${t}`):""}function Sv(e){return CM()?e.altKey:e.ctrlKey}function Jc(e,t){var n,r;let a=`[data-key="${CSS.escape(String(t))}"]`,s=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return s&&(a=`[data-collection="${CSS.escape(s)}"]${a}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(a)}const G2=new WeakMap;function uL(e){let t=qi();return G2.set(e,t),t}function cL(e){return G2.get(e)}const dL=1e3;function fL(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,a=b.useRef({search:"",timeout:void 0}).current,s=u=>{let d=hL(u.key);if(!(!d||u.ctrlKey||u.metaKey||!u.currentTarget.contains(u.target)||a.search.length===0&&d===" ")){if(d===" "&&a.search.trim().length>0&&(u.preventDefault(),"continuePropagation"in u||u.stopPropagation()),a.search+=d,t.getKeyForSearch!=null){let f=t.getKeyForSearch(a.search,n.focusedKey);f==null&&(f=t.getKeyForSearch(a.search)),f!=null&&(n.setFocusedKey(f),r&&r(f))}clearTimeout(a.timeout),a.timeout=setTimeout(()=>{a.search=""},dL)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function hL(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Fg(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:a=!1,shouldFocusWrap:s=!1,disallowEmptySelection:u=!1,disallowSelectAll:d=!1,escapeKeyBehavior:f="clearSelection",selectOnFocus:h=t.selectionBehavior==="replace",disallowTypeAhead:p=!1,shouldUseVirtualFocus:g,allowsTabNavigation:y=!1,isVirtualized:S,scrollRef:x=r,linkBehavior:E="action"}=e,{direction:T}=Qi(),C=nu(),M=N=>{var G;if(N.altKey&&N.key==="Tab"&&N.preventDefault(),!(!((G=r.current)===null||G===void 0)&&G.contains(N.target)))return;const ne=(re,ge)=>{if(re!=null){if(t.isLink(re)&&E==="selection"&&h&&!Sv(N)){Ui.flushSync(()=>{t.setFocusedKey(re,ge)});let Re=Jc(r,re),Te=t.getItemProps(re);Re&&C.open(Re,N,Te.href,Te.routerOptions);return}if(t.setFocusedKey(re,ge),t.isLink(re)&&E==="override")return;N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(re):h&&!Sv(N)&&t.replaceSelection(re)}};switch(N.key){case"ArrowDown":if(n.getKeyBelow){var X,de,ae;let re=t.focusedKey!=null?(X=n.getKeyBelow)===null||X===void 0?void 0:X.call(n,t.focusedKey):(de=n.getFirstKey)===null||de===void 0?void 0:de.call(n);re==null&&s&&(re=(ae=n.getFirstKey)===null||ae===void 0?void 0:ae.call(n,t.focusedKey)),re!=null&&(N.preventDefault(),ne(re))}break;case"ArrowUp":if(n.getKeyAbove){var le,se,Ce;let re=t.focusedKey!=null?(le=n.getKeyAbove)===null||le===void 0?void 0:le.call(n,t.focusedKey):(se=n.getLastKey)===null||se===void 0?void 0:se.call(n);re==null&&s&&(re=(Ce=n.getLastKey)===null||Ce===void 0?void 0:Ce.call(n,t.focusedKey)),re!=null&&(N.preventDefault(),ne(re))}break;case"ArrowLeft":if(n.getKeyLeftOf){var xe,Lt,Ie;let re=t.focusedKey!=null?(xe=n.getKeyLeftOf)===null||xe===void 0?void 0:xe.call(n,t.focusedKey):null;re==null&&s&&(re=T==="rtl"?(Lt=n.getFirstKey)===null||Lt===void 0?void 0:Lt.call(n,t.focusedKey):(Ie=n.getLastKey)===null||Ie===void 0?void 0:Ie.call(n,t.focusedKey)),re!=null&&(N.preventDefault(),ne(re,T==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Be,fe,ct;let re=t.focusedKey!=null?(Be=n.getKeyRightOf)===null||Be===void 0?void 0:Be.call(n,t.focusedKey):null;re==null&&s&&(re=T==="rtl"?(fe=n.getLastKey)===null||fe===void 0?void 0:fe.call(n,t.focusedKey):(ct=n.getFirstKey)===null||ct===void 0?void 0:ct.call(n,t.focusedKey)),re!=null&&(N.preventDefault(),ne(re,T==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&N.shiftKey)return;N.preventDefault();let re=n.getFirstKey(t.focusedKey,Qa(N));t.setFocusedKey(re),re!=null&&(Qa(N)&&N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(re):h&&t.replaceSelection(re))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&N.shiftKey)return;N.preventDefault();let re=n.getLastKey(t.focusedKey,Qa(N));t.setFocusedKey(re),re!=null&&(Qa(N)&&N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(re):h&&t.replaceSelection(re))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let re=n.getKeyPageBelow(t.focusedKey);re!=null&&(N.preventDefault(),ne(re))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let re=n.getKeyPageAbove(t.focusedKey);re!=null&&(N.preventDefault(),ne(re))}break;case"a":Qa(N)&&t.selectionMode==="multiple"&&d!==!0&&(N.preventDefault(),t.selectAll());break;case"Escape":f==="clearSelection"&&!u&&t.selectedKeys.size!==0&&(N.stopPropagation(),N.preventDefault(),t.clearSelection());break;case"Tab":if(!y){if(N.shiftKey)r.current.focus();else{let re=wd(r.current,{tabbable:!0}),ge,Re;do Re=re.lastChild(),Re&&(ge=Re);while(Re);ge&&!ge.contains(document.activeElement)&&Mr(ge)}break}}},D=b.useRef({top:0,left:0});Dc(x,"scroll",S?void 0:()=>{var N,G,ne,X;D.current={top:(ne=(N=x.current)===null||N===void 0?void 0:N.scrollTop)!==null&&ne!==void 0?ne:0,left:(X=(G=x.current)===null||G===void 0?void 0:G.scrollLeft)!==null&&X!==void 0?X:0}});let O=N=>{if(t.isFocused){N.currentTarget.contains(N.target)||t.setFocused(!1);return}if(N.currentTarget.contains(N.target)){if(t.setFocused(!0),t.focusedKey==null){var G,ne;let ae=se=>{se!=null&&(t.setFocusedKey(se),h&&!t.isSelected(se)&&t.replaceSelection(se))},le=N.relatedTarget;var X,de;le&&N.currentTarget.compareDocumentPosition(le)&Node.DOCUMENT_POSITION_FOLLOWING?ae((X=t.lastSelectedKey)!==null&&X!==void 0?X:(G=n.getLastKey)===null||G===void 0?void 0:G.call(n)):ae((de=t.firstSelectedKey)!==null&&de!==void 0?de:(ne=n.getFirstKey)===null||ne===void 0?void 0:ne.call(n))}else!S&&x.current&&(x.current.scrollTop=D.current.top,x.current.scrollLeft=D.current.left);if(t.focusedKey!=null&&x.current){let ae=Jc(r,t.focusedKey);ae instanceof HTMLElement&&(!ae.contains(document.activeElement)&&!g&&Mr(ae),Gp()==="keyboard"&&cl(ae,{containingElement:r.current}))}}},R=N=>{N.currentTarget.contains(N.relatedTarget)||t.setFocused(!1)},z=b.useRef(!1);Dc(r,UM,g?N=>{let{detail:G}=N;N.stopPropagation(),t.setFocused(!0),(G==null?void 0:G.focusStrategy)==="first"&&(z.current=!0)}:void 0);let I=Zt(()=>{var N,G;let ne=(G=(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n))!==null&&G!==void 0?G:null;if(ne==null){let X=ea();c2(r.current),d2(X,null),t.collection.size>0&&(z.current=!1)}else t.setFocusedKey(ne),z.current=!1});v4(()=>{z.current&&I()},[t.collection,I]);let A=Zt(()=>{t.collection.size>0&&(z.current=!1)});v4(()=>{A()},[t.focusedKey,A]),Dc(r,IM,g?N=>{var G;N.stopPropagation(),t.setFocused(!1),!((G=N.detail)===null||G===void 0)&&G.clearFocusKey&&t.setFocusedKey(null)}:void 0);const V=b.useRef(a),F=b.useRef(!1);b.useEffect(()=>{if(V.current){var N,G;let de=null;var ne;a==="first"&&(de=(ne=(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n))!==null&&ne!==void 0?ne:null);var X;a==="last"&&(de=(X=(G=n.getLastKey)===null||G===void 0?void 0:G.call(n))!==null&&X!==void 0?X:null);let ae=t.selectedKeys;if(ae.size){for(let le of ae)if(t.canSelectItem(le)){de=le;break}}t.setFocused(!0),t.setFocusedKey(de),de==null&&!g&&r.current&&fi(r.current),t.collection.size>0&&(V.current=!1,F.current=!0)}});let P=b.useRef(t.focusedKey),Z=b.useRef(null);b.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==P.current||F.current)&&x.current&&r.current){let N=Gp(),G=Jc(r,t.focusedKey);if(!(G instanceof HTMLElement))return;(N==="keyboard"||F.current)&&(Z.current&&cancelAnimationFrame(Z.current),Z.current=requestAnimationFrame(()=>{x.current&&(rE(x.current,G),N!=="virtual"&&cl(G,{containingElement:r.current}))}))}!g&&t.isFocused&&t.focusedKey==null&&P.current!=null&&r.current&&fi(r.current),P.current=t.focusedKey,F.current=!1}),b.useEffect(()=>()=>{Z.current&&cancelAnimationFrame(Z.current)},[]),Dc(r,"react-aria-focus-scope-restore",N=>{N.preventDefault(),t.setFocused(!0)});let K={onKeyDown:M,onFocus:O,onBlur:R,onMouseDown(N){x.current===N.target&&N.preventDefault()}},{typeSelectProps:_}=fL({keyboardDelegate:n,selectionManager:t});p||(K=gt(_,K));let Y;g||(Y=t.focusedKey==null?0:-1);let B=uL(t.collection);return{collectionProps:gt(K,{tabIndex:Y,"data-collection":B})}}function ou(e){let{id:t,selectionManager:n,key:r,ref:a,shouldSelectOnPressUp:s,shouldUseVirtualFocus:u,focus:d,isDisabled:f,onAction:h,allowsDifferentPressOrigin:p,linkBehavior:g="action"}=e,y=nu();t=qi(t);let S=X=>{if(X.pointerType==="keyboard"&&Sv(X))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(g==="selection"&&a.current){let de=n.getItemProps(r);y.open(a.current,X,de.href,de.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(g==="override"||g==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):X&&X.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||X&&(Qa(X)||X.pointerType==="touch"||X.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};b.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(u?c2(a.current):d?d():document.activeElement!==a.current&&a.current&&fi(a.current))},[a,r,n.focusedKey,n.childFocusStrategy,n.isFocused,u]),f=f||n.isDisabled(r);let x={};!u&&!f?x={tabIndex:r===n.focusedKey?0:-1,onFocus(X){X.target===a.current&&n.setFocusedKey(r)}}:f&&(x.onMouseDown=X=>{X.preventDefault()});let E=n.isLink(r)&&g==="override",T=h&&e.UNSTABLE_itemBehavior==="action",C=n.isLink(r)&&g!=="selection"&&g!=="none",M=!f&&n.canSelectItem(r)&&!E&&!T,D=(h||C)&&!f,O=D&&(n.selectionBehavior==="replace"?!M:!M||n.isEmpty),R=D&&M&&n.selectionBehavior==="replace",z=O||R,I=b.useRef(null),A=z&&M,V=b.useRef(!1),F=b.useRef(!1),P=n.getItemProps(r),Z=X=>{if(h){var de;h(),(de=a.current)===null||de===void 0||de.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}C&&a.current&&y.open(a.current,X,P.href,P.routerOptions)},K={ref:a};if(s?(K.onPressStart=X=>{I.current=X.pointerType,V.current=A,X.pointerType==="keyboard"&&(!z||nS())&&S(X)},p?(K.onPressUp=O?void 0:X=>{X.pointerType==="mouse"&&M&&S(X)},K.onPress=O?Z:X=>{X.pointerType!=="keyboard"&&X.pointerType!=="mouse"&&M&&S(X)}):K.onPress=X=>{if(O||R&&X.pointerType!=="mouse"){if(X.pointerType==="keyboard"&&!tS())return;Z(X)}else X.pointerType!=="keyboard"&&M&&S(X)}):(K.onPressStart=X=>{I.current=X.pointerType,V.current=A,F.current=O,M&&(X.pointerType==="mouse"&&!O||X.pointerType==="keyboard"&&(!D||nS()))&&S(X)},K.onPress=X=>{(X.pointerType==="touch"||X.pointerType==="pen"||X.pointerType==="virtual"||X.pointerType==="keyboard"&&z&&tS()||X.pointerType==="mouse"&&F.current)&&(z?Z(X):M&&S(X))}),x["data-collection"]=cL(n.collection),x["data-key"]=r,K.preventFocusOnPress=u,u&&(K=gt(K,{onPressStart(X){X.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(X){X.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),P)for(let X of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])P[X]&&(K[X]=Id(K[X],P[X]));let{pressProps:_,isPressed:Y}=gl(K),B=R?X=>{I.current==="mouse"&&(X.stopPropagation(),X.preventDefault(),Z(X))}:void 0,{longPressProps:N}=mx({isDisabled:!A,onLongPress(X){X.pointerType==="touch"&&(S(X),n.setSelectionBehavior("toggle"))}}),G=X=>{I.current==="touch"&&V.current&&X.preventDefault()},ne=g!=="none"&&n.isLink(r)?X=>{na.isOpening||X.preventDefault()}:void 0;return{itemProps:gt(x,M||O||u&&!f?_:{},A?N:{},{onDoubleClick:B,onDragStartCapture:G,onClick:ne,id:t},u?{onMouseDown:X=>X.preventDefault()}:void 0),isPressed:Y,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:f,allowsSelection:M,hasAction:z}}function tS(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function nS(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}let $v=class{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?Jc(this.ref,t):null;if(!r)return null;let a=n.getBoundingClientRect(),s=r.getBoundingClientRect();return{x:s.left-a.left-n.clientLeft+n.scrollLeft,y:s.top-a.top-n.clientTop+n.scrollTop,width:s.width,height:s.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,a,s;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(a=t==null?void 0:t.clientWidth)!==null&&a!==void 0?a:0,height:(s=t==null?void 0:t.clientHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}},mL=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 r=t;for(;r!=null;){let a=this.collection.getItem(r);if((a==null?void 0:a.type)==="item"&&!this.isDisabled(a))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let a=t,s=this.layoutDelegate.getItemRect(a);if(!s||a==null)return null;let u=s;do{if(a=n(a),a==null)break;s=this.layoutDelegate.getItemRect(a)}while(s&&r(u,s)&&a!=null);return a}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,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,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,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,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,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Vs(n))return this.getFirstKey();let a=t;if(this.orientation==="horizontal"){let s=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>s&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let s=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>s&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Vs(n))return this.getLastKey();let a=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<s&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let s=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<s&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,a=n||this.getFirstKey();for(;a!=null;){let s=r.getItem(a);if(!s)return null;let u=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(u,t)===0)return a;a=this.getNextKey(a)}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 $v(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 $v(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function X2(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:a,keyboardDelegate:s,layoutDelegate:u}=e,d=Wv({usage:"search",sensitivity:"base"}),f=t.disabledBehavior,h=b.useMemo(()=>s||new mL({collection:n,disabledKeys:r,disabledBehavior:f,ref:a,collator:d,layoutDelegate:u}),[s,u,n,r,a,d,f]),{collectionProps:p}=Fg({...e,ref:a,selectionManager:t,keyboardDelegate:h});return{listProps:p}}function cF(e,t,n){let{key:r,isDisabled:a,shouldSelectOnPressUp:s}=e,{selectionManager:u,selectedKey:d}=t,f=r===d,h=a||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:p,isPressed:g}=ou({selectionManager:u,key:r,ref:n,isDisabled:h,shouldSelectOnPressUp:s,linkBehavior:"selection"}),y=Dd(t,r,"tab"),S=Dd(t,r,"tabpanel"),{tabIndex:x}=p,E=t.collection.getItem(r),T=Zi(E==null?void 0:E.props,{labelable:!0});delete T.id;let C=_v(E==null?void 0:E.props);return{tabProps:_t(T,C,p,{id:y,"aria-selected":f,"aria-disabled":h||void 0,"aria-controls":f?S:void 0,tabIndex:h?void 0:x,role:"tab"}),isSelected:f,isDisabled:h,isPressed:g}}function dF(e,t,n){let r=P9(n)?void 0:0;var a;const s=Dd(t,(a=e.id)!==null&&a!==void 0?a:t==null?void 0:t.selectedKey,"tabpanel"),u=Fd({...e,id:s,"aria-labelledby":Dd(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:_t(u,{tabIndex:r,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class pL{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,r;return this.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.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,r,a=new Set){this.collection=t,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=a,this.tabDirection=r==="horizontal"}}function fF(e,t,n){let{orientation:r="horizontal",keyboardActivation:a="automatic"}=e,{collection:s,selectionManager:u,disabledKeys:d}=t,{direction:f}=Qi(),h=b.useMemo(()=>new pL(s,f,r,d),[s,d,r,f]),{collectionProps:p}=Fg({ref:n,selectionManager:u,keyboardDelegate:h,selectOnFocus:a==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),g=yi();q2.set(t,g);let y=Fd({...e,id:g});return{tabListProps:{..._t(p,y),role:"tablist","aria-orientation":r,tabIndex:void 0}}}class Ai extends Set{constructor(t,n,r){super(t),t instanceof Ai?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function vL(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function gL(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:a="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),g=b.useMemo(()=>iS(e.selectedKeys),[e.selectedKeys]),y=b.useMemo(()=>iS(e.defaultSelectedKeys,new Ai),[e.defaultSelectedKeys]),[S,x]=jv(g,y,e.onSelectionChange),E=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[T,C]=b.useState(a);a==="replace"&&T==="toggle"&&typeof S=="object"&&S.size===0&&C("replace");let M=b.useRef(a);return b.useEffect(()=>{a!==M.current&&(C(a),M.current=a)},[a]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:T,setSelectionBehavior:C,get isFocused(){return u.current},setFocused(D){u.current=D,d(D)},get focusedKey(){return f.current},get childFocusStrategy(){return h.current},setFocusedKey(D,O="first"){f.current=D,h.current=O,p(D)},selectedKeys:S,setSelectedKeys(D){(r||!vL(D,S))&&x(D)},disabledKeys:E,disabledBehavior:s}}function iS(e,t){return e?e==="all"?"all":new Ai(e):t}class bL{build(t,n){return this.context=n,rS(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(ie.isValidElement(n)&&n.type===ie.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let a=0;for(let s of r)yield*this.getFullNode({value:s,index:a},{renderer:n}),a++}else{let a=[];ie.Children.forEach(n,u=>{u&&a.push(u)});let s=0;for(let u of a){let d=this.getFullNode({element:u,index:s},{});for(let f of d)s++,yield f}}}getKey(t,n,r,a){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${a}${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 a?`${a}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,a){if(ie.isValidElement(t.element)&&t.element.type===ie.Fragment){let T=[];ie.Children.forEach(t.element.props.children,M=>{T.push(M)});var s;let C=(s=t.index)!==null&&s!==void 0?s:0;for(const M of T)yield*this.getFullNode({element:M,index:C++},n,r,a);return}let u=t.element;if(!u&&t.value&&n&&n.renderer){let T=this.cache.get(t.value);if(T&&(!T.shouldInvalidate||!T.shouldInvalidate(this.context))){T.index=t.index,T.parentKey=a?a.key:null,yield T;return}u=n.renderer(t.value)}if(ie.isValidElement(u)){let T=u.type;if(typeof T!="function"&&typeof T.getCollectionNode!="function"){let O=u.type;throw new Error(`Unknown element <${O}> in collection.`)}let C=T.getCollectionNode(u.props,this.context);var d;let M=(d=t.index)!==null&&d!==void 0?d:0,D=C.next();for(;!D.done&&D.value;){let O=D.value;t.index=M;var f;let R=(f=O.key)!==null&&f!==void 0?f:null;R==null&&(R=O.element?null:this.getKey(u,t,n,r));let I=[...this.getFullNode({...O,key:R,index:M,wrapper:yL(t.wrapper,O.wrapper)},this.getChildState(n,O),r?`${r}${u.key}`:u.key,a)];for(let A of I){var h,p;A.value=(p=(h=O.value)!==null&&h!==void 0?h:t.value)!==null&&p!==void 0?p:null,A.value&&this.cache.set(A.value,A);var g;if(t.type&&A.type!==t.type)throw new Error(`Unsupported type <${Wm(A.type)}> in <${Wm((g=a==null?void 0:a.type)!==null&&g!==void 0?g:"unknown parent type")}>. Only <${Wm(t.type)}> is supported.`);M++,yield A}D=C.next(I)}return}if(t.key==null||t.type==null)return;let y=this;var S,x;let E={type:t.type,props:t.props,key:t.key,parentKey:a?a.key:null,value:(S=t.value)!==null&&S!==void 0?S:null,level:a?a.level+1:0,index:t.index,rendered:t.rendered,textValue:(x=t.textValue)!==null&&x!==void 0?x:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:rS(function*(){if(!t.hasChildNodes||!t.childNodes)return;let T=0;for(let C of t.childNodes()){C.key!=null&&(C.key=`${E.key}${C.key}`);let M=y.getFullNode({...C,index:T},y.getChildState(n,C),E.key,E);for(let D of M)T++,yield D}})};yield E}constructor(){this.cache=new WeakMap}}function rS(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function yL(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Wm(e){return e[0].toUpperCase()+e.slice(1)}function SL(e,t,n){let r=b.useMemo(()=>new bL,[]),{children:a,items:s,collection:u}=e;return b.useMemo(()=>{if(u)return u;let f=r.build({children:a,items:s},n);return t(f)},[r,a,s,u,n,t])}function un(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function _l(e){return Ds(e,0)}function Ds(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function uo(e){let t;for(let n of e)t=n;return t}function Zm(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...lS(e,t),t],a=[...lS(e,n),n],s=r.slice(0,a.length).findIndex((u,d)=>u!==a[d]);return s!==-1?(t=r[s],n=a[s],t.index-n.index):r.findIndex(u=>u===n)>=0?1:(a.findIndex(u=>u===t)>=0,-1)}function lS(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const aS=new WeakMap;function W2(e){let t=aS.get(e);if(t!=null)return t;let n=0,r=a=>{for(let s of a)s.type==="section"?r(un(s,e)):s.type==="item"&&n++};return r(e),aS.set(e,n),n}class Ig{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(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let a=this.collection.getItem(r);(!t||a&&Zm(this.collection,a,t)<0)&&(t=a)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let a=this.collection.getItem(r);(!t||a&&Zm(this.collection,a,t)>0)&&(t=a)}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 r;if(this.state.selectedKeys==="all")r=new Ai([n],n,n);else{let u=this.state.selectedKeys;var a;let d=(a=u.anchorKey)!==null&&a!==void 0?a:n;r=new Ai(u,d,n);var s;for(let f of this.getKeyRange(d,(s=u.currentKey)!==null&&s!==void 0?s:n))r.delete(f);for(let f of this.getKeyRange(n,d))this.canSelectItem(f)&&r.add(f)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),a=this.collection.getItem(n);return r&&a?Zm(this.collection,r,a)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let a=[],s=t;for(;s!=null;){let u=this.collection.getItem(s);if(u&&(u.type==="item"||u.type==="cell"&&this.allowsCellSelection)&&a.push(s),s===n)return a;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 r=new Ai(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new Ai([n],n,n):new Ai;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Ai;for(let r of t){let a=this.getKey(r);if(a!=null&&(n.add(a),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var a;let u=this.collection.getItem(r);(u==null?void 0:u.type)==="item"&&t.push(r);var s;u!=null&&u.hasChildNodes&&(this.allowsCellSelection||u.type!=="item")&&n((s=(a=_l(un(u,this.collection)))===null||a===void 0?void 0:a.key)!==null&&s!==void 0?s:null)}r=this.collection.getKeyAfter(r)}};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 Ai)}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 r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.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 Ig(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var a;this.allowsCellSelection=(a=r==null?void 0:r.allowsCellSelection)!==null&&a!==void 0?a:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}const Ug=new WeakMap;function $L(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function EL(e,t){let n=Ug.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${$L(t)}`}function hF(e,t,n){let r=Zi(e,{labelable:!0}),a=e.selectionBehavior||"toggle",s=e.linkBehavior||(a==="replace"?"action":"override");a==="toggle"&&s==="action"&&(s="override");let{listProps:u}=X2({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:d}=Jv({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),f=yi(e.id);Ug.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}=n2({...e,id:f,labelElementType:"span"});return{labelProps:h,listBoxProps:_t(r,d,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",..._t(p,u)})}}function mF(e,t,n){var r,a;let{key:s}=e,u=Ug.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 g;let y=(g=e.shouldSelectOnPressUp)!==null&&g!==void 0?g:u==null?void 0:u.shouldSelectOnPressUp;var S;let x=(S=e.shouldFocusOnHover)!==null&&S!==void 0?S:u==null?void 0:u.shouldFocusOnHover;var E;let T=(E=e.shouldUseVirtualFocus)!==null&&E!==void 0?E:u==null?void 0:u.shouldUseVirtualFocus;var C;let M=(C=e.isVirtualized)!==null&&C!==void 0?C:u==null?void 0:u.isVirtualized,D=vl(),O=vl(),R={role:"option","aria-disabled":f||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?p:void 0};go()&&Uv()||(R["aria-label"]=e["aria-label"],R["aria-labelledby"]=D,R["aria-describedby"]=O);let z=t.collection.getItem(s);if(M){let B=Number(z==null?void 0:z.index);R["aria-posinset"]=Number.isNaN(B)?void 0:B+1,R["aria-setsize"]=W2(t.collection)}let I=u!=null&&u.onAction?()=>{var B;return u==null||(B=u.onAction)===null||B===void 0?void 0:B.call(u,s)}:void 0,{itemProps:A,isPressed:V,isFocused:F,hasAction:P,allowsSelection:Z}=ou({selectionManager:t.selectionManager,key:s,ref:n,shouldSelectOnPressUp:y,allowsDifferentPressOrigin:y&&x,isVirtualized:M,shouldUseVirtualFocus:T,isDisabled:f,onAction:I||!(z==null||(r=z.props)===null||r===void 0)&&r.onAction?Ql(z==null||(a=z.props)===null||a===void 0?void 0:a.onAction,I):void 0,linkBehavior:u==null?void 0:u.linkBehavior}),{hoverProps:K}=eg({isDisabled:f||!x,onHoverStart(){Fs()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(s))}}),_=Zi(z==null?void 0:z.props);delete _.id;let Y=_v(z==null?void 0:z.props);return{optionProps:{...R,..._t(_,A,K,Y),id:EL(t,s)},labelProps:{id:D},descriptionProps:{id:O},isFocused:F,isFocusVisible:F&&Fs(),isSelected:p,isDisabled:f,isPressed:V,allowsSelection:Z,hasAction:P}}function pF(e){let{heading:t,"aria-label":n}=e,r=yi();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}class oS{*[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 r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r: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 r=null,a=0;for(let[u,d]of this.keyMap)r?(r.nextKey=u,d.prevKey=r.key):(this.firstKey=u,d.prevKey=void 0),d.type==="item"&&(d.index=a++),r=d,r.nextKey=void 0;var s;this.lastKey=(s=r==null?void 0:r.key)!==null&&s!==void 0?s:null}}function xL(e){let{filter:t,layoutDelegate:n}=e,r=gL(e),a=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=b.useCallback(p=>t?new oS(t(p)):new oS(p),[t]),u=b.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),d=SL(e,s,u),f=b.useMemo(()=>new Ig(d,r,{layoutDelegate:n}),[d,r,n]);const h=b.useRef(null);return b.useEffect(()=>{if(r.focusedKey!=null&&!d.getItem(r.focusedKey)&&h.current){const C=h.current.getItem(r.focusedKey),M=[...h.current.getKeys()].map(A=>{const V=h.current.getItem(A);return(V==null?void 0:V.type)==="item"?V:null}).filter(A=>A!==null),D=[...d.getKeys()].map(A=>{const V=d.getItem(A);return(V==null?void 0:V.type)==="item"?V:null}).filter(A=>A!==null);var p,g;const O=((p=M==null?void 0:M.length)!==null&&p!==void 0?p:0)-((g=D==null?void 0:D.length)!==null&&g!==void 0?g:0);var y,S,x;let R=Math.min(O>1?Math.max(((y=C==null?void 0:C.index)!==null&&y!==void 0?y:0)-O+1,0):(S=C==null?void 0:C.index)!==null&&S!==void 0?S:0,((x=D==null?void 0:D.length)!==null&&x!==void 0?x:0)-1),z=null,I=!1;for(;R>=0;){if(!f.isDisabled(D[R].key)){z=D[R];break}if(R<D.length-1&&!I)R++;else{I=!0;var E,T;R>((E=C==null?void 0:C.index)!==null&&E!==void 0?E:0)&&(R=(T=C==null?void 0:C.index)!==null&&T!==void 0?T:0),R--}}r.setFocusedKey(z?z.key:null)}h.current=d},[d,f,r,r.focusedKey]),{collection:d,disabledKeys:a,selectionManager:f}}function Ya(e,t,n){let r=n.initialDeps??[],a;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!==r.length||p.some((S,x)=>r[x]!==S)))return a;r=p;let y;if(n.key&&((u=n.debug)!=null&&u.call(n))&&(y=Date.now()),a=t(...p),n.key&&((d=n.debug)!=null&&d.call(n))){const S=Math.round((Date.now()-h)*100)/100,x=Math.round((Date.now()-y)*100)/100,E=x/16,T=(C,M)=>{for(C=String(C);C.length<M;)C=" "+C;return C};console.info(`%c⏱ ${T(x,5)} /${T(S,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*E,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(f=n==null?void 0:n.onChange)==null||f.call(n,a),a}}function Qm(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const TL=(e,t)=>Math.abs(e-t)<1,CL=(e,t,n)=>{let r;return function(...a){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,a),n)}},wL=e=>e,DL=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let a=t;a<=n;a++)r.push(a);return r},AL=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const a=u=>{const{width:d,height:f}=u;t({width:Math.round(d),height:Math.round(f)})};if(a(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const s=new r.ResizeObserver(u=>{const d=u[0];if(d!=null&&d.borderBoxSize){const f=d.borderBoxSize[0];if(f){a({width:f.inlineSize,height:f.blockSize});return}}a(n.getBoundingClientRect())});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},sS={passive:!0},ML=typeof window>"u"?!0:"onscrollend"in window,RL=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let a=0;const s=e.options.useScrollendEvent&&ML?()=>{}:CL(r,()=>{t(a,!1)},e.options.isScrollingResetDelay),u=h=>()=>{const{horizontal:p,isRtl:g}=e.options;a=p?n.scrollLeft*(g&&-1||1):n.scrollTop,s(),t(a,h)},d=u(!0),f=u(!1);return f(),n.addEventListener("scroll",d,sS),n.addEventListener("scrollend",f,sS),()=>{n.removeEventListener("scroll",d),n.removeEventListener("scrollend",f)}},PL=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},BL=(e,{adjustments:t=0,behavior:n},r)=>{var a,s;const u=e+t;(s=(a=r.scrollElement)==null?void 0:a.scrollTo)==null||s.call(a,{[r.options.horizontal?"left":"top"]:u,behavior:n})};let OL=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 r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(a=>{a.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var a;(a=r())==null||a.disconnect(),n=null},observe:a=>{var s;return(s=r())==null?void 0:s.observe(a,{box:"border-box"})},unobserve:a=>{var s;return(s=r())==null?void 0:s.unobserve(a)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,a])=>{typeof a>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:wL,rangeExtractor:DL,onChange:()=>{},measureElement:PL,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 r,a;(a=(r=this.options).onChange)==null||a.call(r,this,n)},this.maybeNotify=Ya(()=>(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 r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,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(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,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,r)=>{const a=new Map,s=new Map;for(let u=r-1;u>=0;u--){const d=n[u];if(a.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&&a.set(d.lane,!0),a.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=Ya(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,a,s,u)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:a,getItemKey:s,enabled:u}),{key:!1}),this.getMeasurements=Ya(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:a,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 g=s(p),y=this.options.lanes===1?h[p-1]:this.getFurthestMeasurement(h,p),S=y?y.end+this.options.gap:r+a,x=d.get(g),E=typeof x=="number"?x:this.options.estimateSize(p),T=S+E,C=y?y.lane:p%this.options.lanes;h[p]={index:p,start:S,size:E,end:T,key:g,lane:C}}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ya(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,r,a)=>this.range=n.length>0&&r>0?zL({measurements:n,outerSize:r,scrollOffset:a}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Ya(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,a,s)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:a,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,a=n.getAttribute(r);return a?parseInt(a,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const a=this.indexFromElement(n),s=this.measurementsCache[a];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(a,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const a=this.measurementsCache[n];if(!a)return;const s=this.itemSizeCache.get(a.key)??a.size,u=r-s;u!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,u,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=u,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,a)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(a))});return}this._measureElement(n,void 0)},this.getVirtualItems=Ya(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const a=[];for(let s=0,u=n.length;s<u;s++){const d=n[s],f=r[d];a.push(f)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return Qm(r[Z2(0,r.length-1,a=>Qm(r[a]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const a=this.getSize(),s=this.getScrollOffset();r==="auto"&&n>=s+a&&(r="end"),r==="end"&&(n-=a);const u=this.options.horizontal?"scrollWidth":"scrollHeight",f=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[u]:this.scrollElement[u]:0)-a;return Math.max(Math.min(f,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.measurementsCache[n];if(!a)return;const s=this.getSize(),u=this.getScrollOffset();if(r==="auto")if(a.end>=u+s-this.options.scrollPaddingEnd)r="end";else if(a.start<=u+this.options.scrollPaddingStart)r="start";else return[u,r];const d=a.start-this.options.scrollPaddingStart+(a.size-s)/2;switch(r){case"center":return[this.getOffsetForAlignment(d,r),r];case"end":return[this.getOffsetForAlignment(a.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(a.start-this.options.scrollPaddingStart,r),r]}},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:r="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:a})},this.scrollToIndex=(n,{align:r="auto",behavior:a}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const s=this.getOffsetForIndex(n,r);if(!s)return;const[u,d]=s;this._scrollToOffset(u,{adjustments:void 0,behavior:a}),a!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[h]=Qm(this.getOffsetForIndex(n,d));TL(h,this.getScrollOffset())||this.scrollToIndex(n,{align:d,behavior:a})}else this.scrollToIndex(n,{align:d,behavior:a})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="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:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let a;return r.length===0?a=this.options.paddingStart:a=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:a})=>{this.options.scrollToFn(n,{behavior:a,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}};const Z2=(e,t,n,r)=>{for(;e<=t;){const a=(e+t)/2|0,s=n(a);if(s<r)e=a+1;else if(s>r)t=a-1;else return a}return e>0?e-1:0};function zL({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,s=Z2(0,r,d=>e[d].start,n);let u=s;for(;u<r&&e[u].end<n+t;)u++;return{startIndex:s,endIndex:u}}const uS=typeof document<"u"?b.useLayoutEffect:b.useEffect;function LL(e){const t=b.useReducer(()=>({}),{})[1],n={...e,onChange:(a,s)=>{var u;s?Ui.flushSync(t):t(),(u=e.onChange)==null||u.call(e,a,s)}},[r]=b.useState(()=>new OL(n));return r.setOptions(n),uS(()=>r._didMount(),[]),uS(()=>r._willUpdate()),r}function gF(e){return LL({observeElementRect:AL,observeElementOffset:RL,scrollToFn:BL,...e})}var Q2={};Q2={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var J2={};J2={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var e6={};e6={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var t6={};t6={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var n6={};n6={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var i6={};i6={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var r6={};r6={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var l6={};l6={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var a6={};a6={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var o6={};o6={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var s6={};s6={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var u6={};u6={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var c6={};c6={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var d6={};d6={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var f6={};f6={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var h6={};h6={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var m6={};m6={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var p6={};p6={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var v6={};v6={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var g6={};g6={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var b6={};b6={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var y6={};y6={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var S6={};S6={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var $6={};$6={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var E6={};E6={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var x6={};x6={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var T6={};T6={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var C6={};C6={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var w6={};w6={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var D6={};D6={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var A6={};A6={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var M6={};M6={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var R6={};R6={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var P6={};P6={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var B6={};B6={"ar-AE":Q2,"bg-BG":J2,"cs-CZ":e6,"da-DK":t6,"de-DE":n6,"el-GR":i6,"en-US":r6,"es-ES":l6,"et-EE":a6,"fi-FI":o6,"fr-FR":s6,"he-IL":u6,"hr-HR":c6,"hu-HU":d6,"it-IT":f6,"ja-JP":h6,"ko-KR":m6,"lt-LT":p6,"lv-LV":v6,"nb-NO":g6,"nl-NL":b6,"pl-PL":y6,"pt-BR":S6,"pt-PT":$6,"ro-RO":E6,"ru-RU":x6,"sk-SK":T6,"sl-SI":C6,"sr-SP":w6,"sv-SE":D6,"tr-TR":A6,"uk-UA":M6,"zh-CN":R6,"zh-TW":P6};const NL=new WeakMap;function kL(e,t,n){let{type:r}=e,{isOpen:a}=t;b.useEffect(()=>{n&&n.current&&NL.set(n.current,t.close)});let s;r==="menu"?s=!0:r==="listbox"&&(s="listbox");let u=qi();return{triggerProps:{"aria-haspopup":s,"aria-expanded":a,"aria-controls":a?u:void 0,onPress:t.toggle},overlayProps:{id:u}}}function KL(e){return e&&e.__esModule?e.default:e}function VL(e,t,n){let{type:r="menu",isDisabled:a,trigger:s="press"}=e,u=yi(),{triggerProps:d,overlayProps:f}=kL({type:r},t,n),h=S=>{if(!a&&!(s==="longPress"&&!S.altKey)&&n&&n.current)switch(S.key){case"Enter":case" ":if(s==="longPress")return;case"ArrowDown":"continuePropagation"in S||S.stopPropagation(),S.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in S||S.stopPropagation(),S.preventDefault(),t.toggle("last");break;default:"continuePropagation"in S&&S.continuePropagation()}},p=Or(KL(B6),"@react-aria/menu"),{longPressProps:g}=mx({isDisabled:a||s!=="longPress",accessibilityDescription:p.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),y={onPressStart(S){S.pointerType!=="touch"&&S.pointerType!=="keyboard"&&!a&&t.open(S.pointerType==="virtual"?"first":null)},onPress(S){S.pointerType==="touch"&&!a&&t.toggle()}};return delete d.onPress,{menuTriggerProps:{...d,...s==="press"?y:g,id:u,onKeyDown:h},menuProps:{...f,"aria-labelledby":u,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const O6=new WeakMap;function bF(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:a,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=Zi(e,{labelable:!0}),{listProps:f}=X2({...u,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return O6.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:_t(d,{onKeyDown:a,onKeyUp:s},{role:"menu",...f,onKeyDown:h=>{var p;h.key!=="Escape"&&((p=f.onKeyDown)===null||p===void 0||p.call(f,h))}})}}function yF(e,t,n){let{id:r,key:a,closeOnSelect:s,isVirtualized:u,"aria-haspopup":d,onPressStart:f,onPressUp:h,onPress:p,onPressChange:g,onPressEnd:y,onHoverStart:S,onHoverChange:x,onHoverEnd:E,onKeyDown:T,onKeyUp:C,onFocus:M,onFocusChange:D,onBlur:O,selectionManager:R=t.selectionManager}=e,z=!!d,I=z&&e["aria-expanded"]==="true";var A;let V=(A=e.isDisabled)!==null&&A!==void 0?A:R.isDisabled(a);var F;let P=(F=e.isSelected)!==null&&F!==void 0?F:R.isSelected(a),Z=O6.get(t),K=t.collection.getItem(a),_=e.onClose||Z.onClose,Y=H$(),B=ge=>{var Re;if(!z){if(!(K==null||(Re=K.props)===null||Re===void 0)&&Re.onAction?K.props.onAction():e.onAction&&e.onAction(a),Z.onAction){let Te=Z.onAction;Te(a)}ge.target instanceof HTMLAnchorElement&&K&&Y.open(ge.target,ge,K.props.href,K.props.routerOptions)}},N="menuitem";z||(R.selectionMode==="single"?N="menuitemradio":R.selectionMode==="multiple"&&(N="menuitemcheckbox"));let G=vl(),ne=vl(),X=vl(),de={id:r,"aria-disabled":V||void 0,role:N,"aria-label":e["aria-label"],"aria-labelledby":G,"aria-describedby":[ne,X].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":d,"aria-expanded":e["aria-expanded"]};R.selectionMode!=="none"&&!z&&(de["aria-checked"]=P),u&&(de["aria-posinset"]=K==null?void 0:K.index,de["aria-setsize"]=W2(t.collection));let ae=ge=>{ge.pointerType==="keyboard"&&B(ge),f==null||f(ge)},le=ge=>{ge.pointerType!=="keyboard"&&(B(ge),!z&&_&&(s??(R.selectionMode!=="multiple"||R.isLink(a)))&&_()),h==null||h(ge)},{itemProps:se,isFocused:Ce}=ou({selectionManager:R,key:a,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:xe,isPressed:Lt}=gl({onPressStart:ae,onPress:p,onPressUp:le,onPressChange:g,onPressEnd:y,isDisabled:V}),{hoverProps:Ie}=rR({isDisabled:V,onHoverStart(ge){!Gd()&&!(I&&d==="dialog")&&(R.setFocused(!0),R.setFocusedKey(a)),S==null||S(ge)},onHoverChange:x,onHoverEnd:E}),{keyboardProps:Be}=fx({onKeyDown:ge=>{if(ge.repeat){ge.continuePropagation();return}switch(ge.key){case" ":!V&&R.selectionMode==="none"&&!z&&s!==!1&&_&&_();break;case"Enter":!V&&s!==!1&&!z&&_&&_();break;default:z||ge.continuePropagation(),T==null||T(ge);break}},onKeyUp:C}),{focusProps:fe}=rg({onBlur:O,onFocus:M,onFocusChange:D}),ct=Zi(K==null?void 0:K.props);delete ct.id;let re=_v(K==null?void 0:K.props);return{menuItemProps:{...de,..._t(ct,re,z?{onFocus:se.onFocus,"data-key":se["data-key"]}:se,xe,Ie,Be,fe),tabIndex:se.tabIndex!=null&&I?-1:se.tabIndex},labelProps:{id:G},descriptionProps:{id:ne},keyboardShortcutProps:{id:X},isFocused:Ce,isSelected:P,isPressed:Lt,isDisabled:V}}function SF(e){let{heading:t,"aria-label":n}=e,r=yi();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}function FL(e){let t=nL(e),[n,r]=b.useState(null),[a,s]=b.useState([]),u=()=>{s([]),t.close()};return{focusStrategy:n,...t,open(h=null){r(h),t.open()},toggle(h=null){r(h),t.toggle()},close(){u()},expandedKeysStack:a,openSubmenu:(h,p)=>{s(g=>p>g.length?g:[...g.slice(0,p),h])},closeSubmenu:(h,p)=>{s(g=>g[p]===h?g.slice(0,p):g)}}}function IL(e){const{collection:t,disabledKeys:n,selectionManager:r,selectionManager:{setSelectedKeys:a,selectedKeys:s,selectionMode:u}}=xL(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:r,selectionMode:u,selectedKeys:s,setSelectedKeys:a.bind(r),selectedItems:f}}function $F({validate:e,validationBehavior:t,...n}){const[r,a]=b.useState(!1),[s,u]=b.useState(null),d=FL(n),f=IL({...n,onSelectionChange:g=>{n.onSelectionChange!=null&&(g==="all"?n.onSelectionChange(new Set(f.collection.getKeys())):n.onSelectionChange(g)),n.selectionMode==="single"&&d.close()}}),h=Jz({...n,validationBehavior:t,validate:g=>{if(!e)return;const y=Array.from(g);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(g=null){p||(u(g),d.open())},toggle(g=null){p||(u(g),d.toggle())},isFocused:r,setFocused:a}}function UL(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:s="label"}=e;t=yi(t);let u=yi(),d={};n?(r=r?`${u} ${r}`:u,d={id:u,htmlFor:s==="label"?t:void 0}):!r&&!a&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let f=Fd({id:t,"aria-label":a,"aria-labelledby":r});return{labelProps:d,fieldProps:f}}function _L(e){let{description:t,errorMessage:n,isInvalid:r,validationState:a}=e,{labelProps:s,fieldProps:u}=UL(e),d=vl([!!t,!!n,r,a]),f=vl([!!t,!!n,r,a]);return u=_t(u,{"aria-describedby":[d,f,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:u,descriptionProps:{id:d},errorMessageProps:{id:f}}}const jL=1e3;function HL(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,a=b.useRef({search:"",timeout:void 0}).current,s=u=>{let d=YL(u.key);if(!(!d||u.ctrlKey||u.metaKey||!u.currentTarget.contains(u.target))){if(d===" "&&a.search.trim().length>0&&(u.preventDefault(),"continuePropagation"in u||u.stopPropagation()),a.search+=d,t.getKeyForSearch!=null){let f=t.getKeyForSearch(a.search,n.focusedKey);f==null&&(f=t.getKeyForSearch(a.search)),f!=null&&(n.setFocusedKey(f),r&&r(f))}clearTimeout(a.timeout),a.timeout=setTimeout(()=>{a.search=""},jL)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function YL(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}class cS{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let a=n.getBoundingClientRect(),s=r.getBoundingClientRect();return{x:s.left-a.left+n.scrollLeft,y:s.top-a.top+n.scrollTop,width:s.width,height:s.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,a,s;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(a=t==null?void 0:t.offsetWidth)!==null&&a!==void 0?a:0,height:(s=t==null?void 0:t.offsetHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}}class qL{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 r=t;for(;r!=null;){let a=this.collection.getItem(r);if((a==null?void 0:a.type)==="item"&&!this.isDisabled(a))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let a=t,s=this.layoutDelegate.getItemRect(a);if(!s||a==null)return null;let u=s;do{if(a=n(a),a==null)break;s=this.layoutDelegate.getItemRect(a)}while(s&&r(u,s)&&a!=null);return a}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,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,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,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,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,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!sd(n))return this.getFirstKey();let a=t;if(this.orientation==="horizontal"){let s=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>s&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let s=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>s&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!sd(n))return this.getLastKey();let a=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<s&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let s=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<s&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,a=n||this.getFirstKey();for(;a!=null;){let s=r.getItem(a);if(!s)return null;let u=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(u,t)===0)return a;a=this.getNextKey(a)}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 cS(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 cS(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function EF(e,t,n){const{disallowEmptySelection:r,isDisabled:a}=e,s=_A({usage:"search",sensitivity:"base"}),u=b.useMemo(()=>new qL(t.collection,t.disabledKeys,null,s),[t.collection,t.disabledKeys,s]),{menuTriggerProps:d,menuProps:f}=VL({isDisabled:a,type:"listbox"},t,n),h=R=>{if(t.selectionMode==="single")switch(R.key){case"ArrowLeft":{R.preventDefault();const z=t.selectedKeys.size>0?u.getKeyAbove(t.selectedKeys.values().next().value):u.getFirstKey();z&&t.setSelectedKeys([z]);break}case"ArrowRight":{R.preventDefault();const z=t.selectedKeys.size>0?u.getKeyBelow(t.selectedKeys.values().next().value):u.getFirstKey();z&&t.setSelectedKeys([z]);break}}},{typeSelectProps:p}=HL({keyboardDelegate:u,selectionManager:t.selectionManager,onTypeSelect(R){t.setSelectedKeys([R])}}),{isInvalid:g,validationErrors:y,validationDetails:S}=t.displayValidation,{labelProps:x,fieldProps:E,descriptionProps:T,errorMessageProps:C}=_L({...e,labelElementType:"span",isInvalid:g,errorMessage:e.errorMessage||y});p.onKeyDown=p.onKeyDownCapture,delete p.onKeyDownCapture;const M=Zi(e,{labelable:!0}),D=_t(p,d,E),O=yi();return{labelProps:{...x,onClick:()=>{var R;e.isDisabled||((R=n.current)==null||R.focus(),u9("keyboard"))}},triggerProps:_t(M,{...D,onKeyDown:Ql(D.onKeyDown,h,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[O,M["aria-label"]!==void 0?M["aria-labelledby"]!==void 0?M["aria-labelledby"]:D.id:D["aria-labelledby"]].join(" "),onFocus(R){t.isFocused||(e.onFocus&&e.onFocus(R),t.setFocused(!0))},onBlur(R){t.isOpen||(e.onBlur&&e.onBlur(R),t.setFocused(!1))}}),valueProps:{id:O},menuProps:{...f,disallowEmptySelection:r,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:R=>{R.currentTarget.contains(R.relatedTarget)||(e.onBlur&&e.onBlur(R),t.setFocused(!1))},onFocus:f==null?void 0:f.onFocus,"aria-labelledby":[E["aria-labelledby"],D["aria-label"]&&!E["aria-labelledby"]?D.id:null].filter(Boolean).join(" ")},descriptionProps:T,errorMessageProps:C,isInvalid:g,validationErrors:y,validationDetails:S}}var GL=function(e){return function(t,n){var r=b.useRef(!1);e(function(){return function(){r.current=!1}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n)}},XL=function(e){return typeof e=="function"},qa=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 r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return t.current.apply(this,r)}),n.current};const Ev=GL(b.useEffect);var z6=function(e,t){var n=t.manual,r=t.ready,a=r===void 0?!0:r,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,Ev(function(){!n&&a&&(p.current=!0,e.run.apply(e,fn([],dn(u),!1)))},[a]),Ev(function(){p.current||n||(p.current=!0,h?h():e.refresh())},fn([],dn(f),!1)),{onBefore:function(){if(!a)return{stopNow:!0}}}};z6.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return{loading:!r&&n}};function WL(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 L6=function(e,t){var n=b.useRef({deps:t,obj:void 0,initialized:!1}).current;return(n.initialized===!1||!WL(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj};function N6(e){var t=b.useRef(e);return t.current=e,t}var _g=function(e){var t=N6(e);b.useEffect(function(){return function(){t.current()}},[])},ed=new Map,ZL=function(e,t,n){var r=ed.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var a=void 0;t>-1&&(a=setTimeout(function(){ed.delete(e)},t)),ed.set(e,Mi(Mi({},n),{timer:a}))},QL=function(e){return ed.get(e)},td=new Map,JL=function(e){return td.get(e)},eN=function(e,t){td.set(e,t),t.then(function(n){return td.delete(e),n}).catch(function(){td.delete(e)})},jl={},tN=function(e,t){jl[e]&&jl[e].forEach(function(n){return n(t)})},Jm=function(e,t){return jl[e]||(jl[e]=[]),jl[e].push(t),function(){var r=jl[e].indexOf(t);jl[e].splice(r,1)}},nN=function(e,t){var n=t.cacheKey,r=t.cacheTime,a=r===void 0?300*1e3:r,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),g=function(S,x){d?d(x):ZL(S,a,x),tN(S,x.data)},y=function(S,x){return x===void 0&&(x=[]),f?f(x):QL(S)};return L6(function(){if(n){var S=y(n);S&&Object.hasOwnProperty.call(S,"data")&&(e.state.data=S.data,e.state.params=S.params,(u===-1||Date.now()-S.time<=u)&&(e.state.loading=!1)),h.current=Jm(n,function(x){e.setState({data:x})})}},[]),_g(function(){var S;(S=h.current)===null||S===void 0||S.call(h)}),n?{onBefore:function(S){var x=y(n,S);return!x||!Object.hasOwnProperty.call(x,"data")?{}:u===-1||Date.now()-x.time<=u?{loading:!1,data:x==null?void 0:x.data,error:void 0,returnNow:!0}:{data:x==null?void 0:x.data,error:void 0}},onRequest:function(S,x){var E=JL(n);return E&&E!==p.current?{servicePromise:E}:(E=S.apply(void 0,fn([],dn(x),!1)),p.current=E,eN(n,E),{servicePromise:E})},onSuccess:function(S,x){var E;n&&((E=h.current)===null||E===void 0||E.call(h),g(n,{data:S,params:x,time:Date.now()}),h.current=Jm(n,function(T){e.setState({data:T})}))},onMutate:function(S){var x;n&&((x=h.current)===null||x===void 0||x.call(h),g(n,{data:S,params:e.state.params,time:Date.now()}),h.current=Jm(n,function(E){e.setState({data:E})}))}}:{}},ep,dS;function jg(){if(dS)return ep;dS=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ep=e,ep}var tp,fS;function iN(){if(fS)return tp;fS=1;var e=typeof $c=="object"&&$c&&$c.Object===Object&&$c;return tp=e,tp}var np,hS;function k6(){if(hS)return np;hS=1;var e=iN(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return np=n,np}var ip,mS;function rN(){if(mS)return ip;mS=1;var e=k6(),t=function(){return e.Date.now()};return ip=t,ip}var rp,pS;function lN(){if(pS)return rp;pS=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return rp=t,rp}var lp,vS;function aN(){if(vS)return lp;vS=1;var e=lN(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return lp=n,lp}var ap,gS;function K6(){if(gS)return ap;gS=1;var e=k6(),t=e.Symbol;return ap=t,ap}var op,bS;function oN(){if(bS)return op;bS=1;var e=K6(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function s(u){var d=n.call(u,a),f=u[a];try{u[a]=void 0;var h=!0}catch{}var p=r.call(u);return h&&(d?u[a]=f:delete u[a]),p}return op=s,op}var sp,yS;function sN(){if(yS)return sp;yS=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return sp=n,sp}var up,SS;function uN(){if(SS)return up;SS=1;var e=K6(),t=oN(),n=sN(),r="[object Null]",a="[object Undefined]",s=e?e.toStringTag:void 0;function u(d){return d==null?d===void 0?a:r:s&&s in Object(d)?t(d):n(d)}return up=u,up}var cp,$S;function cN(){if($S)return cp;$S=1;function e(t){return t!=null&&typeof t=="object"}return cp=e,cp}var dp,ES;function dN(){if(ES)return dp;ES=1;var e=uN(),t=cN(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return dp=r,dp}var fp,xS;function fN(){if(xS)return fp;xS=1;var e=aN(),t=jg(),n=dN(),r=NaN,a=/^[-+]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 r;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 g=s.test(h);return g||u.test(h)?d(h.slice(2),g?2:8):a.test(h)?r:+h}return fp=f,fp}var hp,TS;function V6(){if(TS)return hp;TS=1;var e=jg(),t=rN(),n=fN(),r="Expected a function",a=Math.max,s=Math.min;function u(d,f,h){var p,g,y,S,x,E,T=0,C=!1,M=!1,D=!0;if(typeof d!="function")throw new TypeError(r);f=n(f)||0,e(h)&&(C=!!h.leading,M="maxWait"in h,y=M?a(n(h.maxWait)||0,f):y,D="trailing"in h?!!h.trailing:D);function O(K){var _=p,Y=g;return p=g=void 0,T=K,S=d.apply(Y,_),S}function R(K){return T=K,x=setTimeout(A,f),C?O(K):S}function z(K){var _=K-E,Y=K-T,B=f-_;return M?s(B,y-Y):B}function I(K){var _=K-E,Y=K-T;return E===void 0||_>=f||_<0||M&&Y>=y}function A(){var K=t();if(I(K))return V(K);x=setTimeout(A,z(K))}function V(K){return x=void 0,D&&p?O(K):(p=g=void 0,S)}function F(){x!==void 0&&clearTimeout(x),T=0,p=E=g=x=void 0}function P(){return x===void 0?S:V(t())}function Z(){var K=t(),_=I(K);if(p=arguments,g=this,E=K,_){if(x===void 0)return R(E);if(M)return clearTimeout(x),x=setTimeout(A,f),O(E)}return x===void 0&&(x=setTimeout(A,f)),S}return Z.cancel=F,Z.flush=P,Z}return hp=u,hp}var hN=V6();const mN=Od(hN);var pN=function(e,t){var n=t.debounceWait,r=t.debounceLeading,a=t.debounceTrailing,s=t.debounceMaxWait,u=b.useRef(void 0),d=b.useMemo(function(){var f={};return r!==void 0&&(f.leading=r),a!==void 0&&(f.trailing=a),s!==void 0&&(f.maxWait=s),f},[r,a,s]);return b.useEffect(function(){if(n){var f=e.runAsync.bind(e);return u.current=mN(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(g,y){var S;(S=u.current)===null||S===void 0||S.call(u,function(){f.apply(void 0,fn([],dn(h),!1)).then(g).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()}}:{}},vN=function(e,t){var n=t.loadingDelay,r=t.ready,a=b.useRef(void 0);if(!n)return{};var s=function(){a.current&&clearTimeout(a.current)};return{onBefore:function(){return s(),r!==!1&&(a.current=setTimeout(function(){e.setState({loading:!0})},n)),{loading:!1}},onFinally:function(){s()},onCancel:function(){s()}}},tf=!!(typeof window<"u"&&window.document&&window.document.createElement);function Hg(){return tf?document.visibilityState!=="hidden":!0}var nd=new Set;function gN(e){return nd.add(e),function(){nd.has(e)&&nd.delete(e)}}if(tf){var bN=function(){Hg()&&nd.forEach(function(e){return e()})};window.addEventListener("visibilitychange",bN,!1)}var yN=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,a=r===void 0?!0:r,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 g;d.current&&clearTimeout(d.current),(g=f.current)===null||g===void 0||g.call(f)};return Ev(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(){!a&&!Hg()?f.current=gN(function(){e.refresh()}):e.refresh()},n):h.current=0},onCancel:function(){p()}}:{}};function SN(e,t){var n=!1;return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];n||(n=!0,e.apply(void 0,fn([],dn(r),!1)),setTimeout(function(){n=!1},t))}}var $N=function(){return tf&&typeof navigator.onLine<"u"?navigator.onLine:!0},id=new Set;function EN(e){return id.add(e),function(){id.has(e)&&id.delete(e)}}if(tf){var CS=function(){!Hg()||!$N()||id.forEach(function(e){return e()})};window.addEventListener("visibilitychange",CS,!1),window.addEventListener("focus",CS,!1)}var xN=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,a=r===void 0?5e3:r,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=SN(e.refresh.bind(e),a);s.current=EN(function(){d()})}return function(){u()}},[n,a]),_g(function(){u()}),{}},TN=function(e,t){var n=t.retryInterval,r=t.retryCount,a=b.useRef(void 0),s=b.useRef(0),u=b.useRef(!1);return r?{onBefore:function(){u.current||(s.current=0),u.current=!1,a.current&&clearTimeout(a.current)},onSuccess:function(){s.current=0},onError:function(){if(s.current+=1,r===-1||s.current<=r){var d=n??Math.min(1e3*Math.pow(2,s.current),3e4);a.current=setTimeout(function(){u.current=!0,e.refresh()},d)}else s.current=0},onCancel:function(){s.current=0,a.current&&clearTimeout(a.current)}}:{}},mp,wS;function CN(){if(wS)return mp;wS=1;var e=V6(),t=jg(),n="Expected a function";function r(a,s,u){var d=!0,f=!0;if(typeof a!="function")throw new TypeError(n);return t(u)&&(d="leading"in u?!!u.leading:d,f="trailing"in u?!!u.trailing:f),e(a,s,{leading:d,maxWait:s,trailing:f})}return mp=r,mp}var wN=CN();const DN=Od(wN);var AN=function(e,t){var n=t.throttleWait,r=t.throttleLeading,a=t.throttleTrailing,s=b.useRef(void 0),u={};return r!==void 0&&(u.leading=r),a!==void 0&&(u.trailing=a),b.useEffect(function(){if(n){var d=e.runAsync.bind(e);return s.current=DN(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,g){var y;(y=s.current)===null||y===void 0||y.call(s,function(){d.apply(void 0,fn([],dn(f),!1)).then(p).catch(g)})})},function(){var f;e.runAsync=d,(f=s.current)===null||f===void 0||f.cancel()}}},[n,r,a]),n?{onCancel:function(){var d;(d=s.current)===null||d===void 0||d.cancel()}}:{}},MN=function(e){b.useEffect(function(){var t=e==null?void 0:e();if(!(t&&typeof t=="object"&&typeof t.then=="function"))return t},[])},RN=function(){var e=dn(b.useState({}),2),t=e[1];return b.useCallback(function(){return t({})},[])},PN=(function(){function e(t,n,r,a){a===void 0&&(a={}),this.serviceRef=t,this.options=n,this.subscribe=r,this.initState=a,this.pluginImpls=[],this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Mi(Mi(Mi({},this.state),{loading:!n.manual}),a)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Mi(Mi({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var a=this.pluginImpls.map(function(s){var u;return(u=s[t])===null||u===void 0?void 0:u.call.apply(u,fn([s],dn(n),!1))}).filter(Boolean);return Object.assign.apply(Object,fn([{}],dn(a),!1))},e.prototype.runAsync=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return vA(this,void 0,void 0,function(){var r,a,s,u,d,f,h,p,g,y,S,x,E,T,C,M,D,O,R,z,I;return gA(this,function(A){switch(A.label){case 0:if(this.count+=1,r=this.count,a=this.runPluginHandler("onBefore",t),s=a.stopNow,u=s===void 0?!1:s,d=a.returnNow,f=d===void 0?!1:d,h=F$(a,["stopNow","returnNow"]),u)return[2,new Promise(function(){})];if(this.setState(Mi({loading:!0,params:t},h)),f)return[2,Promise.resolve(h.data)];(E=(x=this.options).onBefore)===null||E===void 0||E.call(x,t),A.label=1;case 1:return A.trys.push([1,3,,4]),p=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,p||(p=(S=this.serviceRef).current.apply(S,fn([],dn(t),!1))),[4,p];case 2:return g=A.sent(),r!==this.count?[2,new Promise(function(){})]:(this.setState({data:g,error:void 0,loading:!1}),(C=(T=this.options).onSuccess)===null||C===void 0||C.call(T,g,t),this.runPluginHandler("onSuccess",g,t),(D=(M=this.options).onFinally)===null||D===void 0||D.call(M,t,g,void 0),r===this.count&&this.runPluginHandler("onFinally",t,g,void 0),[2,g]);case 3:if(y=A.sent(),r!==this.count)return[2,new Promise(function(){})];throw this.setState({error:y,loading:!1}),(R=(O=this.options).onError)===null||R===void 0||R.call(O,y,t),this.runPluginHandler("onError",y,t),(I=(z=this.options).onFinally)===null||I===void 0||I.call(z,t,void 0,y),r===this.count&&this.runPluginHandler("onFinally",t,void 0,y),y;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.runAsync.apply(this,fn([],dn(n),!1)).catch(function(a){t.options.onError||console.error(a)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,fn([],dn(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,fn([],dn(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=XL(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n})},e})();function BN(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,a=r===void 0?!1:r,s=t.ready,u=s===void 0?!0:s,d=F$(t,["manual","ready"]),f=Mi({manual:a,ready:u},d),h=N6(e),p=RN(),g=L6(function(){var y=n.map(function(S){var x;return(x=S==null?void 0:S.onInit)===null||x===void 0?void 0:x.call(S,f)}).filter(Boolean);return new PN(h,f,p,Object.assign.apply(Object,fn([{}],dn(y),!1)))},[]);return g.options=f,g.pluginImpls=n.map(function(y){return y(g,f)}),MN(function(){if(!a&&u){var y=g.state.params||t.defaultParams||[];g.run.apply(g,fn([],dn(y),!1))}}),_g(function(){g.cancel()}),{loading:g.state.loading,data:g.state.data,error:g.state.error,params:g.state.params||[],cancel:qa(g.cancel.bind(g)),refresh:qa(g.refresh.bind(g)),refreshAsync:qa(g.refreshAsync.bind(g)),run:qa(g.run.bind(g)),runAsync:qa(g.runAsync.bind(g)),mutate:qa(g.mutate.bind(g))}}function xF(e,t,n){return BN(e,t,fn(fn([],dn([]),!1),[pN,vN,yN,xN,AN,z6,nN,TN],!1))}function TF(e){return typeof e=="function"}var CF=e=>e?"true":void 0;function F6(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=F6(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ON(...e){for(var t=0,n,r,a="";t<e.length;)(n=e[t++])&&(r=F6(n))&&(a&&(a+=" "),a+=r);return a}var wF=(...e)=>{let t=" ";for(const n of e)if(typeof n=="string"&&n.length>0){t=n;break}return t};function DF(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function ol(e,t){const n=t-e+1;return Array.from({length:n},(r,a)=>a+e)}function zN(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}var DS=new Map;function LN(e,t){if(e===t)return e;let n=DS.get(e);if(n)return n.forEach(a=>a.current=t),t;let r=DS.get(t);return r?(r.forEach(a=>a.current=e),e):t}function AF(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let a in r){let s=t[a],u=r[a];typeof s=="function"&&typeof u=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=zN(s,u):(a==="className"||a==="UNSAFE_className")&&typeof s=="string"&&typeof u=="string"?t[a]=ON(s,u):a==="id"&&s&&u?t.id=LN(s,u):t[a]=u!==void 0?u:s}}return t}function MF(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(a=>{const s=AS(a,t);return n||(n=typeof s=="function"),s});if(n)return()=>{r.forEach((a,s)=>{typeof a=="function"?a==null||a():AS(e[s],null)})}}}function AS(e,t){if(typeof e=="function")return()=>e(t);e!=null&&"current"in e&&(e.current=t)}var NN=(e=>(e.DOTS="dots",e.PREV="prev",e.NEXT="next",e))(NN||{});function RF(e){const{page:t,total:n,siblings:r=1,boundaries:a=1,initialPage:s=1,showControls:u=!1,onChange:d}=e,[f,h]=b.useState(t||s),{direction:p}=Qi(),g=p==="rtl",y=O=>{h(O),d&&d(O)};b.useEffect(()=>{t&&t!==f&&h(t)},[t]);const S=b.useCallback(O=>{O<=0?y(1):O>n?y(n):y(O)},[n,f,y]),x=()=>S(f+1),E=()=>S(f-1),T=()=>S(1),C=()=>S(n),M=b.useCallback(O=>u?["prev",...O,"next"]:O,[g,u]);return{range:b.useMemo(()=>{if(r*2+3+a*2>=n)return M(ol(1,n));const R=Math.max(f-r,a),z=Math.min(f+r,n-a),I=R>a+2,A=z<n-(a+1);if(!I&&A){const V=r*2+a+2;return M([...ol(1,V),"dots",...ol(n-(a-1),n)])}if(I&&!A){const V=a+1+2*r;return M([...ol(1,a),"dots",...ol(n-V,n)])}return M([...ol(1,a),"dots",...ol(R,z),"dots",...ol(n-a+1,n)])},[n,f,r,a,M]),activePage:f,setPage:S,next:x,previous:E,first:T,last:C}}function MS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xv(e,t){return xv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xv(e,t)}function kN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xv(e,t)}var RS=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function KN(e,t){return!!(e===t||RS(e)&&RS(t))}function VN(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!KN(e[n],t[n]))return!1;return!0}function pp(e,t){t===void 0&&(t=VN);var n,r=[],a,s=!1;function u(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return s&&n===this&&t(d,r)||(a=e.apply(this,d),s=!0,n=this,r=d),a}return u}var FN=typeof performance=="object"&&typeof performance.now=="function",PS=FN?function(){return performance.now()}:function(){return Date.now()};function BS(e){cancelAnimationFrame(e.id)}function IN(e,t){var n=PS();function r(){PS()-n>=t?e.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var vp=-1;function OS(e){if(e===void 0&&(e=!1),vp===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),vp=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return vp}var Ga=null;function zS(e){if(e===void 0&&(e=!1),Ga===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Ga="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Ga="negative":Ga="positive-ascending"),document.body.removeChild(t),Ga}return Ga}var UN=150,_N=function(t,n){return t};function jN(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,a=e.getItemSize,s=e.getOffsetForIndexAndAlignment,u=e.getStartIndexForOffset,d=e.getStopIndexForStartIndex,f=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=(function(g){kN(y,g);function y(x){var E;return E=g.call(this,x)||this,E._instanceProps=f(E.props,MS(E)),E._outerRef=void 0,E._resetIsScrollingTimeoutId=null,E.state={instance:MS(E),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof E.props.initialScrollOffset=="number"?E.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},E._callOnItemsRendered=void 0,E._callOnItemsRendered=pp(function(T,C,M,D){return E.props.onItemsRendered({overscanStartIndex:T,overscanStopIndex:C,visibleStartIndex:M,visibleStopIndex:D})}),E._callOnScroll=void 0,E._callOnScroll=pp(function(T,C,M){return E.props.onScroll({scrollDirection:T,scrollOffset:C,scrollUpdateWasRequested:M})}),E._getItemStyle=void 0,E._getItemStyle=function(T){var C=E.props,M=C.direction,D=C.itemSize,O=C.layout,R=E._getItemStyleCache(h&&D,h&&O,h&&M),z;if(R.hasOwnProperty(T))z=R[T];else{var I=n(E.props,T,E._instanceProps),A=a(E.props,T,E._instanceProps),V=M==="horizontal"||O==="horizontal",F=M==="rtl",P=V?I:0;R[T]=z={position:"absolute",left:F?void 0:P,right:F?P:void 0,top:V?0:I,height:V?"100%":A,width:V?A:"100%"}}return z},E._getItemStyleCache=void 0,E._getItemStyleCache=pp(function(T,C,M){return{}}),E._onScrollHorizontal=function(T){var C=T.currentTarget,M=C.clientWidth,D=C.scrollLeft,O=C.scrollWidth;E.setState(function(R){if(R.scrollOffset===D)return null;var z=E.props.direction,I=D;if(z==="rtl")switch(zS()){case"negative":I=-D;break;case"positive-descending":I=O-M-D;break}return I=Math.max(0,Math.min(I,O-M)),{isScrolling:!0,scrollDirection:R.scrollOffset<I?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},E._resetIsScrollingDebounced)},E._onScrollVertical=function(T){var C=T.currentTarget,M=C.clientHeight,D=C.scrollHeight,O=C.scrollTop;E.setState(function(R){if(R.scrollOffset===O)return null;var z=Math.max(0,Math.min(O,D-M));return{isScrolling:!0,scrollDirection:R.scrollOffset<z?"forward":"backward",scrollOffset:z,scrollUpdateWasRequested:!1}},E._resetIsScrollingDebounced)},E._outerRefSetter=function(T){var C=E.props.outerRef;E._outerRef=T,typeof C=="function"?C(T):C!=null&&typeof C=="object"&&C.hasOwnProperty("current")&&(C.current=T)},E._resetIsScrollingDebounced=function(){E._resetIsScrollingTimeoutId!==null&&BS(E._resetIsScrollingTimeoutId),E._resetIsScrollingTimeoutId=IN(E._resetIsScrolling,UN)},E._resetIsScrolling=function(){E._resetIsScrollingTimeoutId=null,E.setState({isScrolling:!1},function(){E._getItemStyleCache(-1,null)})},E}y.getDerivedStateFromProps=function(E,T){return HN(E,T),p(E),null};var S=y.prototype;return S.scrollTo=function(E){E=Math.max(0,E),this.setState(function(T){return T.scrollOffset===E?null:{scrollDirection:T.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},S.scrollToItem=function(E,T){T===void 0&&(T="auto");var C=this.props,M=C.itemCount,D=C.layout,O=this.state.scrollOffset;E=Math.max(0,Math.min(E,M-1));var R=0;if(this._outerRef){var z=this._outerRef;D==="vertical"?R=z.scrollWidth>z.clientWidth?OS():0:R=z.scrollHeight>z.clientHeight?OS():0}this.scrollTo(s(this.props,E,T,O,this._instanceProps,R))},S.componentDidMount=function(){var E=this.props,T=E.direction,C=E.initialScrollOffset,M=E.layout;if(typeof C=="number"&&this._outerRef!=null){var D=this._outerRef;T==="horizontal"||M==="horizontal"?D.scrollLeft=C:D.scrollTop=C}this._callPropsCallbacks()},S.componentDidUpdate=function(){var E=this.props,T=E.direction,C=E.layout,M=this.state,D=M.scrollOffset,O=M.scrollUpdateWasRequested;if(O&&this._outerRef!=null){var R=this._outerRef;if(T==="horizontal"||C==="horizontal")if(T==="rtl")switch(zS()){case"negative":R.scrollLeft=-D;break;case"positive-ascending":R.scrollLeft=D;break;default:var z=R.clientWidth,I=R.scrollWidth;R.scrollLeft=I-z-D;break}else R.scrollLeft=D;else R.scrollTop=D}this._callPropsCallbacks()},S.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&BS(this._resetIsScrollingTimeoutId)},S.render=function(){var E=this.props,T=E.children,C=E.className,M=E.direction,D=E.height,O=E.innerRef,R=E.innerElementType,z=E.innerTagName,I=E.itemCount,A=E.itemData,V=E.itemKey,F=V===void 0?_N:V,P=E.layout,Z=E.outerElementType,K=E.outerTagName,_=E.style,Y=E.useIsScrolling,B=E.width,N=this.state.isScrolling,G=M==="horizontal"||P==="horizontal",ne=G?this._onScrollHorizontal:this._onScrollVertical,X=this._getRangeToRender(),de=X[0],ae=X[1],le=[];if(I>0)for(var se=de;se<=ae;se++)le.push(b.createElement(T,{data:A,key:F(se,A),index:se,isScrolling:Y?N:void 0,style:this._getItemStyle(se)}));var Ce=r(this.props,this._instanceProps);return b.createElement(Z||K||"div",{className:C,onScroll:ne,ref:this._outerRefSetter,style:KD({position:"relative",height:D,width:B,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:M},_)},b.createElement(R||z||"div",{children:le,ref:O,style:{height:G?"100%":Ce,pointerEvents:N?"none":void 0,width:G?Ce:"100%"}}))},S._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var E=this.props.itemCount;if(E>0){var T=this._getRangeToRender(),C=T[0],M=T[1],D=T[2],O=T[3];this._callOnItemsRendered(C,M,D,O)}}if(typeof this.props.onScroll=="function"){var R=this.state,z=R.scrollDirection,I=R.scrollOffset,A=R.scrollUpdateWasRequested;this._callOnScroll(z,I,A)}},S._getRangeToRender=function(){var E=this.props,T=E.itemCount,C=E.overscanCount,M=this.state,D=M.isScrolling,O=M.scrollDirection,R=M.scrollOffset;if(T===0)return[0,0,0,0];var z=u(this.props,R,this._instanceProps),I=d(this.props,z,R,this._instanceProps),A=!D||O==="backward"?Math.max(1,C):1,V=!D||O==="forward"?Math.max(1,C):1;return[Math.max(0,z-A),Math.max(0,Math.min(T-1,I+V)),z,I]},y})(b.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var HN=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},YN=50,co=function(t,n,r){var a=t,s=a.itemSize,u=r.itemMetadataMap,d=r.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 g=s(p);u[p]={offset:f,size:g},f+=g}r.lastMeasuredIndex=n}return u[n]},qN=function(t,n,r){var a=n.itemMetadataMap,s=n.lastMeasuredIndex,u=s>0?a[s].offset:0;return u>=r?I6(t,n,s,0,r):GN(t,n,Math.max(0,s),r)},I6=function(t,n,r,a,s){for(;a<=r;){var u=a+Math.floor((r-a)/2),d=co(t,u,n).offset;if(d===s)return u;d<s?a=u+1:d>s&&(r=u-1)}return a>0?a-1:0},GN=function(t,n,r,a){for(var s=t.itemCount,u=1;r<s&&co(t,r,n).offset<a;)r+=u,u*=2;return I6(t,n,Math.min(r,s-1),Math.floor(r/2),a)},LS=function(t,n){var r=t.itemCount,a=n.itemMetadataMap,s=n.estimatedItemSize,u=n.lastMeasuredIndex,d=0;if(u>=r&&(u=r-1),u>=0){var f=a[u];d=f.offset+f.size}var h=r-u-1,p=h*s;return d+p},PF=jN({getItemOffset:function(t,n,r){return co(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:LS,getOffsetForIndexAndAlignment:function(t,n,r,a,s,u){var d=t.direction,f=t.height,h=t.layout,p=t.width,g=d==="horizontal"||h==="horizontal",y=g?p:f,S=co(t,n,s),x=LS(t,s),E=Math.max(0,Math.min(x-y,S.offset)),T=Math.max(0,S.offset-y+S.size+u);switch(r==="smart"&&(a>=T-y&&a<=E+y?r="auto":r="center"),r){case"start":return E;case"end":return T;case"center":return Math.round(T+(E-T)/2);case"auto":default:return a>=T&&a<=E?a:a<T?T:E}},getStartIndexForOffset:function(t,n,r){return qN(t,r,n)},getStopIndexForStartIndex:function(t,n,r,a){for(var s=t.direction,u=t.height,d=t.itemCount,f=t.layout,h=t.width,p=s==="horizontal"||f==="horizontal",g=p?h:u,y=co(t,n,a),S=r+g,x=y.offset+y.size,E=n;E<d-1&&x<S;)E++,x+=co(t,E,a).size;return E},initInstanceProps:function(t,n){var r=t,a=r.estimatedItemSize,s={itemMetadataMap:{},estimatedItemSize:a||YN,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 Yg=new WeakMap;function Tv(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function XN(e,t){let n=Yg.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${Tv(t)}`}function U6(e,t,n){let r=Yg.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${Tv(t)}-${Tv(n)}`}function _6(e,t){return[...e.collection.rowHeaderColumnKeys].map(n=>U6(e,t,n)).join(" ")}var j6={};j6={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var H6={};H6={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var Y6={};Y6={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 q6={};q6={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 G6={};G6={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 X6={};X6={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var W6={};W6={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 Z6={};Z6={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 Q6={};Q6={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 J6={};J6={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 eT={};eT={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 tT={};tT={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var nT={};nT={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 iT={};iT={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 rT={};rT={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 lT={};lT={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var aT={};aT={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var oT={};oT={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 sT={};sT={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 uT={};uT={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 cT={};cT={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 dT={};dT={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 fT={};fT={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 hT={};hT={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 mT={};mT={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 pT={};pT={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var vT={};vT={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 gT={};gT={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 bT={};bT={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 yT={};yT={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 ST={};ST={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 $T={};$T={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var ET={};ET={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,resizerDescription:"按“输入”键开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var xT={};xT={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var nf={};nf={"ar-AE":j6,"bg-BG":H6,"cs-CZ":Y6,"da-DK":q6,"de-DE":G6,"el-GR":X6,"en-US":W6,"es-ES":Z6,"et-EE":Q6,"fi-FI":J6,"fr-FR":eT,"he-IL":tT,"hr-HR":nT,"hu-HU":iT,"it-IT":rT,"ja-JP":lT,"ko-KR":aT,"lt-LT":oT,"lv-LV":sT,"nb-NO":uT,"nl-NL":cT,"pl-PL":dT,"pt-BR":fT,"pt-PT":hT,"ro-RO":mT,"ru-RU":pT,"sk-SK":vT,"sl-SI":gT,"sr-SP":bT,"sv-SE":yT,"tr-TR":ST,"uk-UA":$T,"zh-CN":ET,"zh-TW":xT};class TT{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 r=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;r!=null;){let a=this.collection.getItem(r);if(!a)return null;if(!this.isDisabled(a)&&(!n||n(a)))return r;r=this.collection.getKeyBefore(r)}return null}findNextKey(t,n){let r=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;r!=null;){let a=this.collection.getItem(r);if(!a)return null;if(!this.isDisabled(a)&&(!n||n(a)))return r;if(r=this.collection.getKeyAfter(r),r==null)return null}return null}getKeyForItemInRowByIndex(t,n=0){if(n<0)return null;let r=this.collection.getItem(t);if(!r)return null;let a=0;for(let d of un(r,this.collection)){var s;if(d.colSpan&&d.colSpan+a>n)return(s=d.key)!==null&&s!==void 0?s:null;d.colSpan&&(a=a+d.colSpan-1);var u;if(a===n)return(u=d.key)!==null&&u!==void 0?u:null;a++}return null}getKeyBelow(t){let n=t,r=this.collection.getItem(n);if(!r)return null;var a;if(this.isCell(r)&&(n=(a=r.parentKey)!==null&&a!==void 0?a:null),n==null)return null;if(n=this.findNextKey(n,s=>s.type==="item"),n!=null){if(this.isCell(r)){let s=r.colIndex?r.colIndex:r.index;return this.getKeyForItemInRowByIndex(n,s)}if(this.focusMode==="row")return n}return null}getKeyAbove(t){let n=t,r=this.collection.getItem(n);if(!r)return null;var a;if(this.isCell(r)&&(n=(a=r.parentKey)!==null&&a!==void 0?a:null),n==null)return null;if(n=this.findPreviousKey(n,s=>s.type==="item"),n!=null){if(this.isCell(r)){let s=r.colIndex?r.colIndex:r.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 r,a;let p=un(n,this.collection);var s;return(s=this.direction==="rtl"?(r=uo(p))===null||r===void 0?void 0:r.key:(a=_l(p))===null||a===void 0?void 0:a.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 g=un(p,this.collection);var u;let y=(u=this.direction==="rtl"?Ds(g,n.index-1):Ds(g,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 r,a;let p=un(n,this.collection);var s;return(s=this.direction==="rtl"?(r=_l(p))===null||r===void 0?void 0:r.key:(a=uo(p))===null||a===void 0?void 0:a.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 g=un(p,this.collection);var u;let y=(u=this.direction==="rtl"?Ds(g,n.index+1):Ds(g,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 r=t??null,a;if(r!=null){if(a=this.collection.getItem(r),!a)return null;if(this.isCell(a)&&!n&&a.parentKey!=null){var s;let h=this.collection.getItem(a.parentKey);if(!h)return null;var u;return(u=(s=_l(un(h,this.collection)))===null||s===void 0?void 0:s.key)!==null&&u!==void 0?u:null}}if(r=this.findNextKey(void 0,h=>h.type==="item"),r!=null&&(a&&this.isCell(a)&&n||this.focusMode==="cell")){var d;let h=this.collection.getItem(r);if(!h)return null;var f;r=(f=(d=_l(un(h,this.collection)))===null||d===void 0?void 0:d.key)!==null&&f!==void 0?f:null}return r}getLastKey(t,n){let r=t??null,a;if(r!=null){if(a=this.collection.getItem(r),!a)return null;if(this.isCell(a)&&!n&&a.parentKey!=null){var s;let h=this.collection.getItem(a.parentKey);if(!h)return null;let p=un(h,this.collection);var u;return(u=(s=uo(p))===null||s===void 0?void 0:s.key)!==null&&u!==void 0?u:null}}if(r=this.findPreviousKey(void 0,h=>h.type==="item"),r!=null&&(a&&this.isCell(a)&&n||this.focusMode==="cell")){var d;let h=this.collection.getItem(r);if(!h)return null;let p=un(h,this.collection);var f;r=(f=(d=uo(p))===null||d===void 0?void 0:d.key)!==null&&f!==void 0?f:null}return r}getKeyPageAbove(t){let n=t,r=this.layoutDelegate.getItemRect(n);if(!r)return null;let a=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>a&&n!=null;){var s;if(n=(s=this.getKeyAbove(n))!==null&&s!==void 0?s:null,n==null)break;r=this.layoutDelegate.getItemRect(n)}return n}getKeyPageBelow(t){let n=t,r=this.layoutDelegate.getItemRect(n);if(!r)return null;let a=this.layoutDelegate.getVisibleRect().height,s=Math.min(this.layoutDelegate.getContentSize().height,r.y+a);for(;r&&r.y+r.height<s;){let u=this.getKeyBelow(n);if(u==null)break;r=this.layoutDelegate.getItemRect(u),n=u}return n}getKeyForSearch(t,n){let r=n??null;if(!this.collator)return null;let a=this.collection;if(r=n??this.getFirstKey(),r==null)return null;let s=a.getItem(r);if(!s)return null;var u;s.type==="cell"&&(r=(u=s.parentKey)!==null&&u!==void 0?u:null);let d=!1;for(;r!=null;){let p=a.getItem(r);if(!p)return null;if(p.textValue){let g=p.textValue.slice(0,t.length);if(this.collator.compare(g,t)===0){var f,h;return this.isRow(p)&&this.focusMode==="cell"?(h=(f=_l(un(p,this.collection)))===null||f===void 0?void 0:f.key)!==null&&h!==void 0?h:null:p.key}}r=this.findNextKey(r,g=>g.type==="item"),r==null&&!d&&(r=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 WN(t.layout):new $v(t.ref));var n;this.focusMode=(n=t.focusMode)!==null&&n!==void 0?n:"row"}}class WN{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 qg=new WeakMap;var CT={};CT={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 wT={};wT={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=>`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 MT={};MT={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 RT={};RT={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 PT={};PT={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 BT={};BT={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 OT={};OT={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 zT={};zT={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 LT={};LT={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 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 kT={};kT={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 KT={};KT={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 VT={};VT={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 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 IT={};IT={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 UT={};UT={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 _T={};_T={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 jT={};jT={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 HT={};HT={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 YT={};YT={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 qT={};qT={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 GT={};GT={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 XT={};XT={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 WT={};WT={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 ZT={};ZT={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 QT={};QT={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 JT={};JT={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 eC={};eC={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 tC={};tC={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 nC={};nC={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 iC={};iC={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 rC={};rC={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 rf={};rf={"ar-AE":CT,"bg-BG":wT,"cs-CZ":DT,"da-DK":AT,"de-DE":MT,"el-GR":RT,"en-US":PT,"es-ES":BT,"et-EE":OT,"fi-FI":zT,"fr-FR":LT,"he-IL":NT,"hr-HR":kT,"hu-HU":KT,"it-IT":VT,"ja-JP":FT,"ko-KR":IT,"lt-LT":UT,"lv-LV":_T,"nb-NO":jT,"nl-NL":HT,"pl-PL":YT,"pt-BR":qT,"pt-PT":GT,"ro-RO":XT,"ru-RU":WT,"sk-SK":ZT,"sl-SI":QT,"sr-SP":JT,"sv-SE":eC,"tr-TR":tC,"uk-UA":nC,"zh-CN":iC,"zh-TW":rC};const lC=7e3;let Ii=null;function aC(e,t="assertive",n=lC){Ii?Ii.announce(e,t,n):(Ii=new ZN,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ii.announce(e,t,n):setTimeout(()=>{Ii!=null&&Ii.isAttached()&&(Ii==null||Ii.announce(e,t,n))},100))}class ZN{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",r=lC){var a,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"?(a=this.assertiveLog)===null||a===void 0||a.appendChild(u):(s=this.politeLog)===null||s===void 0||s.appendChild(u),t!==""&&setTimeout(()=>{u.remove()},r)}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 QN(e){return e&&e.__esModule?e.default:e}function JN(e,t){let{getRowText:n=d=>{var f,h,p,g;return(g=(f=(h=t.collection).getTextValue)===null||f===void 0?void 0:f.call(h,d))!==null&&g!==void 0?g:(p=t.collection.getItem(d))===null||p===void 0?void 0:p.textValue}}=e,r=Or(QN(rf),"@react-aria/grid"),a=t.selectionManager.rawSelection,s=b.useRef(a),u=Zt(()=>{var d;if(!t.selectionManager.isFocused||a===s.current){s.current=a;return}let f=NS(a,s.current),h=NS(s.current,a),p=t.selectionManager.selectionBehavior==="replace",g=[];if(t.selectionManager.selectedKeys.size===1&&p){let y=t.selectionManager.selectedKeys.keys().next().value;if(y!=null&&t.collection.getItem(y)){let S=n(y);S&&g.push(r.format("selectedItem",{item:S}))}}else if(f.size===1&&h.size===0){let y=f.keys().next().value;if(y!=null){let S=n(y);S&&g.push(r.format("selectedItem",{item:S}))}}else if(h.size===1&&f.size===0){let y=h.keys().next().value;if(y!=null&&t.collection.getItem(y)){let S=n(y);S&&g.push(r.format("deselectedItem",{item:S}))}}t.selectionManager.selectionMode==="multiple"&&(g.length===0||a==="all"||a.size>1||s.current==="all"||((d=s.current)===null||d===void 0?void 0:d.size)>1)&&g.push(a==="all"?r.format("selectedAll"):r.format("selectedCount",{count:a.size})),g.length>0&&aC(g.join(" ")),s.current=a});nE(()=>{if(t.selectionManager.isFocused)u();else{let d=requestAnimationFrame(u);return()=>cancelAnimationFrame(d)}},[a,t.selectionManager.isFocused])}function NS(e,t){let n=new Set;if(e==="all"||t==="all")return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function ek(e){return e&&e.__esModule?e.default:e}function tk(e){let t=Or(ek(rf),"@react-aria/grid"),n=W9(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,a=b.useMemo(()=>{let u=e.selectionManager.selectionMode,d=e.selectionManager.selectionBehavior,f;return r&&(f=t.format("longPressToSelect")),d==="replace"&&u!=="none"&&e.hasItemActions?f:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]);return Hd(a)}function nk(e,t,n){let{isVirtualized:r,disallowTypeAhead:a,keyboardDelegate:s,focusMode:u,scrollRef:d,getRowText:f,onRowAction:h,onCellAction:p,escapeKeyBehavior:g="clearSelection",shouldSelectOnPressUp:y}=e,{selectionManager:S}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let x=Wv({usage:"search",sensitivity:"base"}),{direction:E}=Qi(),T=t.selectionManager.disabledBehavior,C=b.useMemo(()=>s||new TT({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:T,ref:n,direction:E,collator:x,focusMode:u}),[s,t.collection,t.disabledKeys,T,n,E,x,u]),{collectionProps:M}=Fg({ref:n,selectionManager:S,keyboardDelegate:C,isVirtualized:r,scrollRef:d,disallowTypeAhead:a,escapeKeyBehavior:g}),D=qi(e.id);qg.set(t,{keyboardDelegate:C,actions:{onRowAction:h,onCellAction:p},shouldSelectOnPressUp:y});let O=tk({selectionManager:S,hasItemActions:!!(h||p)}),R=Hv(e,{labelable:!0}),z=b.useCallback(F=>{if(S.isFocused){F.currentTarget.contains(F.target)||S.setFocused(!1);return}F.currentTarget.contains(F.target)&&S.setFocused(!0)},[S]),I=b.useMemo(()=>({onBlur:M.onBlur,onFocus:z}),[z,M.onBlur]),A=rL(n,{isDisabled:t.collection.size!==0}),V=gt(R,{role:"grid",id:D,"aria-multiselectable":S.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?I:M,t.collection.size===0&&{tabIndex:A?-1:0}||void 0,O);return r&&(V["aria-rowcount"]=t.collection.size,V["aria-colcount"]=t.collection.columnCount),JN({getRowText:f},t),{gridProps:V}}function ik(){return{rowGroupProps:{role:"rowgroup"}}}function rk(e,t,n){var r,a;let{node:s,isVirtualized:u,shouldSelectOnPressUp:d,onAction:f}=e,{actions:h,shouldSelectOnPressUp:p}=qg.get(t),g=h.onRowAction?()=>{var T;return(T=h.onRowAction)===null||T===void 0?void 0:T.call(h,s.key)}:f,{itemProps:y,...S}=ou({selectionManager:t.selectionManager,key:s.key,ref:n,isVirtualized:u,shouldSelectOnPressUp:p||d,onAction:g||!(s==null||(r=s.props)===null||r===void 0)&&r.onAction?Id(s==null||(a=s.props)===null||a===void 0?void 0:a.onAction,g):void 0,isDisabled:t.collection.size===0}),x=t.selectionManager.isSelected(s.key),E={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?x:void 0,"aria-disabled":S.isDisabled||void 0,...y};return u&&(E["aria-rowindex"]=s.index+1),{rowProps:E,...S}}function oC(e,t,n){let{node:r,isVirtualized:a,focusMode:s="child",shouldSelectOnPressUp:u,onAction:d}=e,{direction:f}=Qi(),{keyboardDelegate:h,actions:{onCellAction:p}}=qg.get(t),g=b.useRef(null),y=()=>{if(n.current){let D=wd(n.current);if(s==="child"){if(n.current.contains(document.activeElement)&&n.current!==document.activeElement)return;let O=t.selectionManager.childFocusStrategy==="last"?gp(D):D.firstChild();if(O){fi(O);return}}(g.current!=null&&r.key!==g.current||!n.current.contains(document.activeElement))&&fi(n.current)}},{itemProps:S,isPressed:x}=ou({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:a,focus:y,shouldSelectOnPressUp:u,onAction:p?()=>p(r.key):d,isDisabled:t.collection.size===0}),E=D=>{if(!D.currentTarget.contains(D.target)||t.isKeyboardNavigationDisabled||!n.current||!document.activeElement)return;let O=wd(n.current);switch(O.currentNode=document.activeElement,D.key){case"ArrowLeft":{let F=f==="rtl"?O.nextNode():O.previousNode();if(s==="child"&&F===n.current&&(F=null),D.preventDefault(),D.stopPropagation(),F)fi(F),cl(F,{containingElement:ja(n.current)});else{var R;if(((R=h.getKeyLeftOf)===null||R===void 0?void 0:R.call(h,r.key))!==r.key){var z;(z=n.current.parentElement)===null||z===void 0||z.dispatchEvent(new KeyboardEvent(D.nativeEvent.type,D.nativeEvent));break}s==="cell"&&f==="rtl"?(fi(n.current),cl(n.current,{containingElement:ja(n.current)})):(O.currentNode=n.current,F=f==="rtl"?O.firstChild():gp(O),F&&(fi(F),cl(F,{containingElement:ja(n.current)})))}break}case"ArrowRight":{let F=f==="rtl"?O.previousNode():O.nextNode();if(s==="child"&&F===n.current&&(F=null),D.preventDefault(),D.stopPropagation(),F)fi(F),cl(F,{containingElement:ja(n.current)});else{var I;if(((I=h.getKeyRightOf)===null||I===void 0?void 0:I.call(h,r.key))!==r.key){var A;(A=n.current.parentElement)===null||A===void 0||A.dispatchEvent(new KeyboardEvent(D.nativeEvent.type,D.nativeEvent));break}s==="cell"&&f==="ltr"?(fi(n.current),cl(n.current,{containingElement:ja(n.current)})):(O.currentNode=n.current,F=f==="rtl"?gp(O):O.firstChild(),F&&(fi(F),cl(F,{containingElement:ja(n.current)})))}break}case"ArrowUp":case"ArrowDown":if(!D.altKey&&n.current.contains(D.target)){var V;D.stopPropagation(),D.preventDefault(),(V=n.current.parentElement)===null||V===void 0||V.dispatchEvent(new KeyboardEvent(D.nativeEvent.type,D.nativeEvent))}break}},T=D=>{if(g.current=r.key,D.target!==n.current){Gd()||t.selectionManager.setFocusedKey(r.key);return}requestAnimationFrame(()=>{s==="child"&&document.activeElement===n.current&&y()})},C=gt(S,{role:"gridcell",onKeyDownCapture:E,"aria-colspan":r.colSpan,"aria-colindex":r.colIndex!=null?r.colIndex+1:void 0,colSpan:a?void 0:r.colSpan,onFocus:T});var M;return a&&(C["aria-colindex"]=((M=r.colIndex)!==null&&M!==void 0?M:r.index)+1),u&&C.tabIndex!=null&&C.onPointerDown==null&&(C.onPointerDown=D=>{let O=D.currentTarget,R=O.getAttribute("tabindex");O.removeAttribute("tabindex"),requestAnimationFrame(()=>{R!=null&&O.setAttribute("tabindex",R)})}),{gridCellProps:C,isPressed:x}}function gp(e){let t=null,n=null;do n=e.lastChild(),n&&(t=n);while(n);return t}function lk(e){return e&&e.__esModule?e.default:e}function ak(e,t){let{key:n}=e,r=t.selectionManager,a=qi(),s=!t.selectionManager.canSelectItem(n),u=t.selectionManager.isSelected(n),d=()=>r.toggleSelection(n);const f=Or(lk(rf),"@react-aria/grid");return{checkboxProps:{id:a,"aria-label":f.format("select"),isSelected:u,isDisabled:s,onChange:d}}}class ok extends TT{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 r=_l(un(n,this.collection));if(r)return r.key;let a=this.getFirstKey();return a==null||!this.collection.getItem(a)?null:super.getKeyForItemInRowByIndex(a,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 r=super.getKeyAbove(t),a=r!=null?this.collection.getItem(r):null;return a&&a.type!=="headerrow"?r:this.isCell(n)?this.collection.columns[n.index].key:this.collection.columns[0].key}findNextColumnKey(t){let n=this.findNextKey(t.key,a=>a.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level];for(let a of un(r,this.collection))if(a.type==="column")return a.key;return null}findPreviousColumnKey(t){let n=this.findPreviousKey(t.key,s=>s.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level],a=[...un(r,this.collection)];for(let s=a.length-1;s>=0;s--){let u=a[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 r=this.collection,a=n??this.getFirstKey();if(a==null)return null;let s=r.getItem(a);var u;(s==null?void 0:s.type)==="cell"&&(a=(u=s.parentKey)!==null&&u!==void 0?u:null);let d=!1;for(;a!=null;){let f=r.getItem(a);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 un(f,this.collection)){let p=r.columns[h.index];if(r.rowHeaderColumnKeys.has(p.key)&&h.textValue){let g=h.textValue.slice(0,t.length);if(this.collator.compare(g,t)===0){let y=n!=null?r.getItem(n):s;return(y==null?void 0:y.type)==="cell"?h.key:f.key}}}a=this.getKeyBelow(a),a==null&&!d&&(a=this.getFirstKey(),d=!0)}return null}}function sk(e){return e&&e.__esModule?e.default:e}function BF(e,t,n){let{keyboardDelegate:r,isVirtualized:a,layoutDelegate:s,layout:u}=e,d=Wv({usage:"search",sensitivity:"base"}),{direction:f}=Qi(),h=t.selectionManager.disabledBehavior,p=b.useMemo(()=>r||new ok({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:h,ref:n,direction:f,collator:d,layoutDelegate:s,layout:u}),[r,t.collection,t.disabledKeys,h,n,f,d,s,u]),g=qi(e.id);Yg.set(t,g);let{gridProps:y}=nk({...e,id:g,keyboardDelegate:p},t,n);a&&(y["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),cd()&&"expandedKeys"in t&&(y.role="treegrid");let{column:S,direction:x}=t.sortDescriptor||{},E=Or(sk(nf),"@react-aria/table"),T=b.useMemo(()=>{var M,D;let O=(D=(M=t.collection.columns.find(R=>R.key===S))===null||M===void 0?void 0:M.textValue)!==null&&D!==void 0?D:"";return x&&S?E.format(`${x}Sort`,{columnName:O}):void 0},[x,S,t.collection.columns]),C=Hd(T);return nE(()=>{T&&aC(T,"assertive",500)},[T]),{gridProps:gt(y,C,{"aria-describedby":[C["aria-describedby"],y["aria-describedby"]].filter(Boolean).join(" ")})}}function uk(e){return e&&e.__esModule?e.default:e}function OF(e,t,n){var r,a;let{node:s}=e,u=s.props.allowsSorting,{gridCellProps:d}=oC({...e,focusMode:"child"},t,n),f=s.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:h}=gl({isDisabled:!u||f,onPress(){t.sort(s.key)},ref:n}),{focusableProps:p}=Xd({},n),g,y=((r=t.sortDescriptor)===null||r===void 0?void 0:r.column)===s.key,S=(a=t.sortDescriptor)===null||a===void 0?void 0:a.direction;s.props.allowsSorting&&!dd()&&(g=y?S:"none");let x=Or(uk(nf),"@react-aria/table"),E;u&&(E=`${x.format("sortable")}`,y&&S&&dd()&&(E=`${E}, ${x.format(S)}`));let T=Hd(E),C=t.collection.size===0;return b.useEffect(()=>{C&&t.selectionManager.focusedKey===s.key&&t.selectionManager.setFocusedKey(null)},[C,t.selectionManager,s.key]),{columnHeaderProps:{...gt(p,d,h,T,C?{tabIndex:-1}:null),role:"columnheader",id:XN(t,s.key),"aria-colspan":s.colSpan&&s.colSpan>1?s.colSpan:void 0,"aria-sort":g}}}const kS={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function zF(e,t,n){let{node:r,isVirtualized:a}=e,{rowProps:s,...u}=rk(e,t,n),{direction:d}=Qi();a&&!(cd()&&"expandedKeys"in t)?s["aria-rowindex"]=r.index+1+t.collection.headerRows.length:delete s["aria-rowindex"];let f={};if(cd()&&"expandedKeys"in t){let R=t.keyMap.get(r.key);if(R!=null){var h,p,g,y,S,x;let z=((h=R.props)===null||h===void 0?void 0:h.UNSTABLE_childItems)||((g=R.props)===null||g===void 0||(p=g.children)===null||p===void 0?void 0:p.length)>t.userColumnCount;var E,T,C,M;f={onKeyDown:I=>{(I.key===kS.expand[d]&&t.selectionManager.focusedKey===R.key&&z&&t.expandedKeys!=="all"&&!t.expandedKeys.has(R.key)||I.key===kS.collapse[d]&&t.selectionManager.focusedKey===R.key&&z&&(t.expandedKeys==="all"||t.expandedKeys.has(R.key)))&&(t.toggleKey(R.key),I.stopPropagation())},"aria-expanded":z?t.expandedKeys==="all"||t.expandedKeys.has(r.key):void 0,"aria-level":R.level,"aria-posinset":((E=R.indexOfType)!==null&&E!==void 0?E:0)+1,"aria-setsize":R.level>1?((C=(y=uo((T=(S=t.keyMap.get(R.parentKey))===null||S===void 0?void 0:S.childNodes)!==null&&T!==void 0?T:[]))===null||y===void 0?void 0:y.indexOfType)!==null&&C!==void 0?C:0)+1:((M=(x=uo(t.collection.body.childNodes))===null||x===void 0?void 0:x.indexOfType)!==null&&M!==void 0?M:0)+1}}}let D=BM(r.props),O=u.hasAction?D:{};return{rowProps:{...gt(s,f,O),"aria-labelledby":_6(t,r.key)},...u}}function LF(e,t,n){let{node:r,isVirtualized:a}=e,s={role:"row"};return a&&!(cd()&&"expandedKeys"in t)&&(s["aria-rowindex"]=r.index+1),{rowProps:s}}function NF(e,t,n){var r;let{gridCellProps:a,isPressed:s}=oC(e,t,n),u=(r=e.node.column)===null||r===void 0?void 0:r.key;return u!=null&&t.collection.rowHeaderColumnKeys.has(u)&&(a.role="rowheader",a.id=U6(t,e.node.parentKey,u)),{gridCellProps:a,isPressed:s}}function ck(e){return e&&e.__esModule?e.default:e}function kF(e,t){let{key:n}=e;const{checkboxProps:r}=ak(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${_6(t,n)}`}}}function KF(e){let{isEmpty:t,isSelectAll:n,selectionMode:r}=e.selectionManager;return{checkboxProps:{"aria-label":Or(ck(nf),"@react-aria/table").format(r==="single"?"select":"selectAll"),isSelected:n,isDisabled:r!=="multiple"||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type==="loader",isIndeterminate:!t&&!n,onChange:()=>e.selectionManager.toggleSelectAll()}}}function VF(){return ik()}function dk(e,t,n){let r=Kg({...e,value:t.isSelected}),{isInvalid:a,validationErrors:s,validationDetails:u}=r.displayValidation,{labelProps:d,inputProps:f,isSelected:h,isPressed:p,isDisabled:g,isReadOnly:y}=s2({...e,isInvalid:a},t,n);i2(e,r,n);let{isIndeterminate:S,isRequired:x,validationBehavior:E="aria"}=e;b.useEffect(()=>{n.current&&(n.current.indeterminate=!!S)});let{pressProps:T}=gl({isDisabled:g||y,onPress(){let{[Cd]:C}=e,{commitValidation:M}=C||r;M()}});return{labelProps:gt(d,T,b.useMemo(()=>({onMouseDown:C=>C.preventDefault()}),[])),inputProps:{...f,checked:h,"aria-required":x&&E==="aria"||void 0,required:x&&E==="native"},isSelected:h,isPressed:p,isDisabled:g,isReadOnly:y,isInvalid:a,validationErrors:s,validationDetails:u}}const fk=new WeakMap;function hk(e={}){let{isReadOnly:t}=e,[n,r]=jv(e.isSelected,e.defaultSelected||!1,e.onChange),[a]=b.useState(n);function s(f){t||r(f)}function u(){t||r(!n)}var d;return{isSelected:n,defaultSelected:(d=e.defaultSelected)!==null&&d!==void 0?d:a,setSelected:s,toggle:u}}function FF(e,t,n){const r=hk({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:a,form:s,descriptionId:u,errorMessageId:d,validationBehavior:f}=fk.get(t);var h;f=(h=e.validationBehavior)!==null&&h!==void 0?h:f;let{realtimeValidation:p}=Kg({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),g=b.useRef(Ja),y=()=>{t.setInvalid(e.value,p.isInvalid?p:g.current)};b.useEffect(y);let S=t.realtimeValidation.isInvalid?t.realtimeValidation:p,x=f==="native"?t.displayValidation:S;var E;let T=dk({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||a,form:e.form||s,isRequired:(E=e.isRequired)!==null&&E!==void 0?E:t.isRequired,validationBehavior:f,[Cd]:{realtimeValidation:S,displayValidation:x,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(C){g.current=C,y()}}},r,n);return{...T,inputProps:{...T.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?d:null,u].filter(Boolean).join(" ")||void 0}}}function Xa(e,t,n){let r=n.initialDeps??[],a;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!==r.length||p.some((S,x)=>r[x]!==S)))return a;r=p;let y;if(n.key&&((u=n.debug)!=null&&u.call(n))&&(y=Date.now()),a=t(...p),n.key&&((d=n.debug)!=null&&d.call(n))){const S=Math.round((Date.now()-h)*100)/100,x=Math.round((Date.now()-y)*100)/100,E=x/16,T=(C,M)=>{for(C=String(C);C.length<M;)C=" "+C;return C};console.info(`%c⏱ ${T(x,5)} /${T(S,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*E,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(f=n==null?void 0:n.onChange)==null||f.call(n,a),a}}function bp(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const mk=(e,t)=>Math.abs(e-t)<1,pk=(e,t,n)=>{let r;return function(...a){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,a),n)}},vk=e=>e,gk=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let a=t;a<=n;a++)r.push(a);return r},bk=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const a=u=>{const{width:d,height:f}=u;t({width:Math.round(d),height:Math.round(f)})};if(a(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const s=new r.ResizeObserver(u=>{const d=u[0];if(d!=null&&d.borderBoxSize){const f=d.borderBoxSize[0];if(f){a({width:f.inlineSize,height:f.blockSize});return}}a(n.getBoundingClientRect())});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},KS={passive:!0},yk=typeof window>"u"?!0:"onscrollend"in window,Sk=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let a=0;const s=e.options.useScrollendEvent&&yk?()=>{}:pk(r,()=>{t(a,!1)},e.options.isScrollingResetDelay),u=h=>()=>{const{horizontal:p,isRtl:g}=e.options;a=p?n.scrollLeft*(g&&-1||1):n.scrollTop,s(),t(a,h)},d=u(!0),f=u(!1);return f(),n.addEventListener("scroll",d,KS),n.addEventListener("scrollend",f,KS),()=>{n.removeEventListener("scroll",d),n.removeEventListener("scrollend",f)}},$k=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},Ek=(e,{adjustments:t=0,behavior:n},r)=>{var a,s;const u=e+t;(s=(a=r.scrollElement)==null?void 0:a.scrollTo)==null||s.call(a,{[r.options.horizontal?"left":"top"]:u,behavior:n})};class xk{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 r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(a=>{a.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var a;(a=r())==null||a.disconnect(),n=null},observe:a=>{var s;return(s=r())==null?void 0:s.observe(a,{box:"border-box"})},unobserve:a=>{var s;return(s=r())==null?void 0:s.unobserve(a)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,a])=>{typeof a>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:vk,rangeExtractor:gk,onChange:()=>{},measureElement:$k,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 r,a;(a=(r=this.options).onChange)==null||a.call(r,this,n)},this.maybeNotify=Xa(()=>(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 r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,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(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,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,r)=>{const a=new Map,s=new Map;for(let u=r-1;u>=0;u--){const d=n[u];if(a.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&&a.set(d.lane,!0),a.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=Xa(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,a,s,u)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:a,getItemKey:s,enabled:u}),{key:!1}),this.getMeasurements=Xa(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:a,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 g=s(p),y=this.options.lanes===1?h[p-1]:this.getFurthestMeasurement(h,p),S=y?y.end+this.options.gap:r+a,x=d.get(g),E=typeof x=="number"?x:this.options.estimateSize(p),T=S+E,C=y?y.lane:p%this.options.lanes;h[p]={index:p,start:S,size:E,end:T,key:g,lane:C}}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Xa(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,r,a)=>this.range=n.length>0&&r>0?Tk({measurements:n,outerSize:r,scrollOffset:a}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Xa(()=>{let n=null,r=null;const a=this.calculateRange();return a&&(n=a.startIndex,r=a.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,a,s,u)=>s===null||u===null?[]:n({startIndex:s,endIndex:u,overscan:r,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,a=n.getAttribute(r);return a?parseInt(a,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const a=this.indexFromElement(n),s=this.measurementsCache[a];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(a,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const a=this.measurementsCache[n];if(!a)return;const s=this.itemSizeCache.get(a.key)??a.size,u=r-s;u!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,u,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=u,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,a)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(a))});return}this._measureElement(n,void 0)},this.getVirtualItems=Xa(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const a=[];for(let s=0,u=n.length;s<u;s++){const d=n[s],f=r[d];a.push(f)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return bp(r[sC(0,r.length-1,a=>bp(r[a]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const a=this.getSize(),s=this.getScrollOffset();r==="auto"&&n>=s+a&&(r="end"),r==="end"&&(n-=a);const u=this.options.horizontal?"scrollWidth":"scrollHeight",f=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[u]:this.scrollElement[u]:0)-a;return Math.max(Math.min(f,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.measurementsCache[n];if(!a)return;const s=this.getSize(),u=this.getScrollOffset();if(r==="auto")if(a.end>=u+s-this.options.scrollPaddingEnd)r="end";else if(a.start<=u+this.options.scrollPaddingStart)r="start";else return[u,r];const d=a.start-this.options.scrollPaddingStart+(a.size-s)/2;switch(r){case"center":return[this.getOffsetForAlignment(d,r),r];case"end":return[this.getOffsetForAlignment(a.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(a.start-this.options.scrollPaddingStart,r),r]}},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:r="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:a})},this.scrollToIndex=(n,{align:r="auto",behavior:a}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const s=this.getOffsetForIndex(n,r);if(!s)return;const[u,d]=s;this._scrollToOffset(u,{adjustments:void 0,behavior:a}),a!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[h]=bp(this.getOffsetForIndex(n,d));mk(h,this.getScrollOffset())||this.scrollToIndex(n,{align:d,behavior:a})}else this.scrollToIndex(n,{align:d,behavior:a})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="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:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let a;return r.length===0?a=this.options.paddingStart:a=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:a})=>{this.options.scrollToFn(n,{behavior:a,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const sC=(e,t,n,r)=>{for(;e<=t;){const a=(e+t)/2|0,s=n(a);if(s<r)e=a+1;else if(s>r)t=a-1;else return a}return e>0?e-1:0};function Tk({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,s=sC(0,r,d=>e[d].start,n);let u=s;for(;u<r&&e[u].end<n+t;)u++;return{startIndex:s,endIndex:u}}const VS=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Ck(e){const t=b.useReducer(()=>({}),{})[1],n={...e,onChange:(a,s)=>{var u;s?Ui.flushSync(t):t(),(u=e.onChange)==null||u.call(e,a,s)}},[r]=b.useState(()=>new xk(n));return r.setOptions(n),VS(()=>r._didMount(),[]),VS(()=>r._willUpdate()),r}function IF(e){return Ck({observeElementRect:bk,observeElementOffset:Sk,scrollToFn:Ek,...e})}function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cn.apply(null,arguments)}function Gg(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function rd(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(r){n[r]=function(){var a;return(a=t.fn[r]).call.apply(a,[t.fn].concat([].slice.call(arguments)))}}),t.curr=n}return t.curr}function Cv(e){return b.useReducer(function(t,n){return cn({},t,typeof n=="function"?n(t):n)},e)}b.createContext(void 0);var FS="cubic-bezier(0.25, 0.8, 0.25, 1)",Wa=20,xr=typeof window<"u"&&"ontouchstart"in window,wv=function(e,t,n){return Math.max(Math.min(e,n),t)},Fc=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=0),wv(e,1*(1-n),Math.max(6,t)*(1+n))},Dv=typeof window>"u"||/ServerSideRendering/.test(navigator&&navigator.userAgent)?b.useEffect:b.useLayoutEffect;function eo(e,t,n){var r=b.useRef(t);r.current=t,b.useEffect(function(){function a(s){r.current(s)}return e&&window.addEventListener(e,a,n),function(){e&&window.removeEventListener(e,a)}},[e])}var wk=["container"];function Dk(e){var t=e.container,n=t===void 0?document.body:t,r=Gg(e,wk);return Ui.createPortal(ie.createElement("div",cn({},r)),n)}function Ak(e){return ie.createElement("svg",cn({width:"44",height:"44",viewBox:"0 0 768 768"},e),ie.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 Mk(e){return ie.createElement("svg",cn({width:"44",height:"44",viewBox:"0 0 768 768"},e),ie.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 Rk(e){return ie.createElement("svg",cn({width:"44",height:"44",viewBox:"0 0 768 768"},e),ie.createElement("path",{d:"M384 127.5l256.5 256.5-256.5 256.5-45-45 178.5-180h-390v-63h390l-178.5-180z"}))}function Pk(){return b.useEffect(function(){var e=document.body.style,t=e.overflow;return e.overflow="hidden",function(){e.overflow=t}},[]),null}function IS(e){var t=e.touches[0],n=t.clientX,r=t.clientY;if(e.touches.length>=2){var a=e.touches[1],s=a.clientX,u=a.clientY;return[(n+s)/2,(r+u)/2,Math.sqrt(Math.pow(s-n,2)+Math.pow(u-r,2))]}return[n,r,0]}var dl=function(e,t,n,r){var a,s=n*t,u=(s-r)/2,d=e;return s<=r?(a=1,d=0):e>0&&u-e<=0?(a=2,d=u):e<0&&u+e<=0&&(a=3,d=-u),[a,d]};function yp(e,t,n,r,a,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=dl(e,s,n,innerWidth)[0],g=dl(t,s,r,innerHeight),y=innerWidth/2,S=innerHeight/2;return{x:u-s/a*(u-(y+e))-y+(r/n>=3&&n*s===innerWidth?0:p?f/2:f),y:d-s/a*(d-(S+t))-S+(g[0]?h/2:h),lastCX:u,lastCY:d}}function Av(e,t,n){var r=e%180!=0;return r?[n,t,r]:[t,n,r]}function Sp(e,t,n){var r=Av(n,innerWidth,innerHeight),a=r[0],s=r[1],u=0,d=a,f=s,h=e/t*s,p=t/e*a;return e<a&&t<s?(d=e,f=t):e<a&&t>=s?d=h:e>=a&&t<s||e/t>a/s?f=p:t/e>=3&&!r[2]?u=((f=p)-s)/2:d=h,{width:d,height:f,x:0,y:u,pause:!0}}function Ic(e,t){var n=t.leading,r=n!==void 0&&n,a=t.maxWait,s=t.wait,u=s===void 0?a||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)},g=b.useCallback(function(){var y=[].slice.call(arguments),S=Date.now();function x(){f.current=S,p(),d.current.apply(null,y)}var E=f.current,T=S-E;if(E===0&&(r&&x(),f.current=S),a!==void 0){if(T>a)return void x()}else T<u&&(f.current=S);p(),h.current=setTimeout(function(){x(),f.current=0},u)},[u,a,r]);return g.cancel=p,g}var US=function(e,t,n){return Hl(e,t,n,100,function(r){return r},function(){return Hl(t,e,n)})},Bk=function(e){return 1-Math.pow(1-e,4)};function Hl(e,t,n,r,a,s){r===void 0&&(r=400),a===void 0&&(a=Bk);var u=t-e;if(u!==0){var d=Date.now(),f=0,h=function(){var g=Math.min(1,(Date.now()-d)/r);n(e+a(g)*u)&&g<1?p():(cancelAnimationFrame(f),g>=1&&s&&s())};p()}function p(){f=requestAnimationFrame(h)}}var Ok={T:0,L:0,W:0,H:0,FIT:void 0},uC=function(){var e=b.useRef(!1);return b.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e},zk=["className"];function Lk(e){var t=e.className,n=t===void 0?"":t,r=Gg(e,zk);return ie.createElement("div",cn({className:"PhotoView__Spinner "+n},r),ie.createElement("svg",{viewBox:"0 0 32 32",width:"36",height:"36",fill:"white"},ie.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"}),ie.createElement("path",{d:"M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"})))}var Nk=["src","loaded","broken","className","onPhotoLoad","loadingElement","brokenElement"];function kk(e){var t=e.src,n=e.loaded,r=e.broken,a=e.className,s=e.onPhotoLoad,u=e.loadingElement,d=e.brokenElement,f=Gg(e,Nk),h=uC();return t&&!r?ie.createElement(ie.Fragment,null,ie.createElement("img",cn({className:"PhotoView__Photo"+(a?" "+a:""),src:t,onLoad:function(p){var g=p.target;h.current&&s({loaded:!0,naturalWidth:g.naturalWidth,naturalHeight:g.naturalHeight})},onError:function(){h.current&&s({broken:!0})},draggable:!1,alt:""},f)),!n&&(u?ie.createElement("span",{className:"PhotoView__icon"},u):ie.createElement(Lk,{className:"PhotoView__icon"}))):d?ie.createElement("span",{className:"PhotoView__icon"},typeof d=="function"?d({src:t}):d):null}var Kk={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 Vk(e){var t=e.item,n=t.src,r=t.render,a=t.width,s=a===void 0?0:a,u=t.height,d=u===void 0?0:u,f=t.originRef,h=e.visible,p=e.speed,g=e.easing,y=e.wrapClassName,S=e.className,x=e.style,E=e.loadingElement,T=e.brokenElement,C=e.onPhotoTap,M=e.onMaskTap,D=e.onReachMove,O=e.onReachUp,R=e.onPhotoResize,z=e.isActive,I=e.expose,A=Cv(Kk),V=A[0],F=A[1],P=b.useRef(0),Z=uC(),K=V.naturalWidth,_=K===void 0?s:K,Y=V.naturalHeight,B=Y===void 0?d:Y,N=V.width,G=N===void 0?s:N,ne=V.height,X=ne===void 0?d:ne,de=V.loaded,ae=de===void 0?!n:de,le=V.broken,se=V.x,Ce=V.y,xe=V.touched,Lt=V.stopRaf,Ie=V.maskTouched,Be=V.rotate,fe=V.scale,ct=V.CX,re=V.CY,ge=V.lastX,Re=V.lastY,Te=V.lastCX,mn=V.lastCY,pn=V.lastScale,Nn=V.touchTime,Gn=V.touchLength,nt=V.pause,on=V.reach,Xn=rd({onScale:function(J){return xn(Fc(J))},onRotate:function(J){Be!==J&&(I({rotate:J}),F(cn({rotate:J},Sp(_,B,J))))}});function xn(J,ue,be){fe!==J&&(I({scale:J}),F(cn({scale:J},yp(se,Ce,G,X,fe,J,ue,be),J<=1&&{x:0,y:0})))}var bt=Ic(function(J,ue,be){if(be===void 0&&(be=0),(xe||Ie)&&z){var Ge=Av(Be,G,X),it=Ge[0],We=Ge[1];if(be===0&&P.current===0){var Oe=Math.abs(J-ct)<=20,Ze=Math.abs(ue-re)<=20;if(Oe&&Ze)return void F({lastCX:J,lastCY:ue});P.current=Oe?ue>re?3:2:1}var rt,At=J-Te,jt=ue-mn;if(be===0){var Qt=dl(At+ge,fe,it,innerWidth)[0],Ht=dl(jt+Re,fe,We,innerHeight);rt=(function(St,He,lt,Jt){return He&&St===1||Jt==="x"?"x":lt&&St>1||Jt==="y"?"y":void 0})(P.current,Qt,Ht[0],on),rt!==void 0&&D(rt,J,ue,fe)}if(rt==="x"||Ie)return void F({reach:"x"});var Yt=Fc(fe+(be-Gn)/100/2*fe,_/G,.2);I({scale:Yt}),F(cn({touchLength:be,reach:rt,scale:Yt},yp(se,Ce,G,X,fe,Yt,J,ue,At,jt)))}},{maxWait:8});function Ji(J){return!Lt&&!xe&&(Z.current&&F(cn({},J,{pause:h})),Z.current)}var kn,Ct,wt,Kn,Li,vn,er,yt,Dt=(Li=function(J){return Ji({x:J})},vn=function(J){return Ji({y:J})},er=function(J){return Z.current&&(I({scale:J}),F({scale:J})),!xe&&Z.current},yt=rd({X:function(J){return Li(J)},Y:function(J){return vn(J)},S:function(J){return er(J)}}),function(J,ue,be,Ge,it,We,Oe,Ze,rt,At,jt){var Qt=Av(At,it,We),Ht=Qt[0],Yt=Qt[1],St=dl(J,Ze,Ht,innerWidth),He=St[0],lt=St[1],Jt=dl(ue,Ze,Yt,innerHeight),Ni=Jt[0],oa=Jt[1],Lr=Date.now()-jt;if(Lr>=200||Ze!==Oe||Math.abs(rt-Oe)>1){var $i=yp(J,ue,it,We,Oe,Ze),gn=$i.x,Ei=$i.y,kt=He?lt:gn!==J?gn:null,Vn=Ni?oa:Ei!==ue?Ei:null;return kt!==null&&Hl(J,kt,yt.X),Vn!==null&&Hl(ue,Vn,yt.Y),void(Ze!==Oe&&Hl(Oe,Ze,yt.S))}var Fn=(J-be)/Lr,bn=(ue-Ge)/Lr,Ye=Math.sqrt(Math.pow(Fn,2)+Math.pow(bn,2)),Wn=!1,Zn=!1;(function(Kt,dt){var en,Cn=Kt,Qn=0,wn=0,xi=function(qt){en||(en=qt);var Nr=qt-en,du=Math.sign(Kt),sa=-.001*du,Ao=Math.sign(-Cn)*Math.pow(Cn,2)*2e-4,ua=Cn*Nr+(sa+Ao)*Math.pow(Nr,2)/2;Qn+=ua,en=qt,du*(Cn+=(sa+Ao)*Nr)<=0?ft():dt(Qn)?yn():ft()};function yn(){wn=requestAnimationFrame(xi)}function ft(){cancelAnimationFrame(wn)}yn()})(Ye,function(Kt){var dt=J+Kt*(Fn/Ye),en=ue+Kt*(bn/Ye),Cn=dl(dt,Oe,Ht,innerWidth),Qn=Cn[0],wn=Cn[1],xi=dl(en,Oe,Yt,innerHeight),yn=xi[0],ft=xi[1];if(Qn&&!Wn&&(Wn=!0,He?Hl(dt,wn,yt.X):US(wn,dt+(dt-wn),yt.X)),yn&&!Zn&&(Zn=!0,Ni?Hl(en,ft,yt.Y):US(ft,en+(en-ft),yt.Y)),Wn&&Zn)return!1;var qt=Wn||yt.X(wn),Nr=Zn||yt.Y(ft);return qt&&Nr})}),Nt=(kn=C,Ct=function(J,ue){on||xn(fe!==1?1:Math.max(2,_/G),J,ue)},wt=b.useRef(0),Kn=Ic(function(){wt.current=0,kn.apply(void 0,[].slice.call(arguments))},{wait:300}),function(){var J=[].slice.call(arguments);wt.current+=1,Kn.apply(void 0,J),wt.current>=2&&(Kn.cancel(),wt.current=0,Ct.apply(void 0,J))});function ot(J,ue){if(P.current=0,(xe||Ie)&&z){F({touched:!1,maskTouched:!1,pause:!1,stopRaf:!1,reach:void 0});var be=Fc(fe,_/G);if(Dt(se,Ce,ge,Re,G,X,fe,be,pn,Be,Nn),O(J,ue),ct===J&&re===ue){if(xe)return void Nt(J,ue);Ie&&M(J,ue)}}}function tr(J,ue,be){be===void 0&&(be=0),F({touched:!0,CX:J,CY:ue,lastCX:J,lastCY:ue,lastX:se,lastY:Ce,lastScale:fe,touchLength:be,touchTime:Date.now()})}function nr(J){F({maskTouched:!0,CX:J.clientX,CY:J.clientY,lastX:se,lastY:Ce})}eo(xr?void 0:"mousemove",function(J){J.preventDefault(),bt(J.clientX,J.clientY)}),eo(xr?void 0:"mouseup",function(J){ot(J.clientX,J.clientY)}),eo(xr?"touchmove":void 0,function(J){J.preventDefault();var ue=IS(J);bt.apply(void 0,ue)},{passive:!1}),eo(xr?"touchend":void 0,function(J){var ue=J.changedTouches[0];ot(ue.clientX,ue.clientY)},{passive:!1}),eo("resize",Ic(function(){ae&&!xe&&(F(Sp(_,B,Be)),R())},{maxWait:8})),Dv(function(){z&&I(cn({scale:fe,rotate:Be},Xn))},[z]);var Tn=(function(J,ue,be,Ge,it,We,Oe,Ze,rt,At){var jt=(function(gn,Ei,kt,Vn,Fn){var bn=b.useRef(!1),Ye=Cv({lead:!0,scale:kt}),Wn=Ye[0],Zn=Wn.lead,Kt=Wn.scale,dt=Ye[1],en=Ic(function(Cn){try{return Fn(!0),dt({lead:!1,scale:Cn}),Promise.resolve()}catch(Qn){return Promise.reject(Qn)}},{wait:Vn});return Dv(function(){bn.current?(Fn(!1),dt({lead:!0}),en(kt)):bn.current=!0},[kt]),Zn?[gn*Kt,Ei*Kt,kt/Kt]:[gn*kt,Ei*kt,1]})(We,Oe,Ze,rt,At),Qt=jt[0],Ht=jt[1],Yt=jt[2],St=(function(gn,Ei,kt,Vn,Fn){var bn=b.useState(Ok),Ye=bn[0],Wn=bn[1],Zn=b.useState(0),Kt=Zn[0],dt=Zn[1],en=b.useRef(),Cn=rd({OK:function(){return gn&&dt(4)}});function Qn(wn){Fn(!1),dt(wn)}return b.useEffect(function(){if(en.current||(en.current=Date.now()),kt){if((function(wn,xi){var yn=wn&&wn.current;if(yn&&yn.nodeType===1){var ft=yn.getBoundingClientRect();xi({T:ft.top,L:ft.left,W:ft.width,H:ft.height,FIT:yn.tagName==="IMG"?getComputedStyle(yn).objectFit:void 0})}})(Ei,Wn),gn)return Date.now()-en.current<250?(dt(1),requestAnimationFrame(function(){dt(2),requestAnimationFrame(function(){return Qn(3)})}),void setTimeout(Cn.OK,Vn)):void dt(4);Qn(5)}},[gn,kt]),[Kt,Ye]})(J,ue,be,rt,At),He=St[0],lt=St[1],Jt=lt.W,Ni=lt.FIT,oa=innerWidth/2,Lr=innerHeight/2,$i=He<3||He>4;return[$i?Jt?lt.L:oa:Ge+(oa-We*Ze/2),$i?Jt?lt.T:Lr:it+(Lr-Oe*Ze/2),Qt,$i&&Ni?Qt*(lt.H/Jt):Ht,He===0?Yt:$i?Jt/(We*Ze)||.01:Yt,$i?Ni?1:0:1,He,Ni]})(h,f,ae,se,Ce,G,X,fe,p,function(J){return F({pause:J})}),ve=Tn[4],ze=Tn[6],$e="transform "+p+"ms "+g,ye={className:S,onMouseDown:xr?void 0:function(J){J.stopPropagation(),J.button===0&&tr(J.clientX,J.clientY,0)},onTouchStart:xr?function(J){J.stopPropagation(),tr.apply(void 0,IS(J))}:void 0,onWheel:function(J){if(!on){var ue=Fc(fe-J.deltaY/100/2,_/G);F({stopRaf:!0}),xn(ue,J.clientX,J.clientY)}},style:{width:Tn[2]+"px",height:Tn[3]+"px",opacity:Tn[5],objectFit:ze===4?void 0:Tn[7],transform:Be?"rotate("+Be+"deg)":void 0,transition:ze>2?$e+", opacity "+p+"ms ease, height "+(ze<4?p/2:ze>4?p:0)+"ms "+g:void 0}};return ie.createElement("div",{className:"PhotoView__PhotoWrap"+(y?" "+y:""),style:x,onMouseDown:!xr&&z?nr:void 0,onTouchStart:xr&&z?function(J){return nr(J.touches[0])}:void 0},ie.createElement("div",{className:"PhotoView__PhotoBox",style:{transform:"matrix("+ve+", 0, 0, "+ve+", "+Tn[0]+", "+Tn[1]+")",transition:xe||nt?void 0:$e,willChange:z?"transform":void 0}},n?ie.createElement(kk,cn({src:n,loaded:ae,broken:le},ye,{onPhotoLoad:function(J){F(cn({},J,J.loaded&&Sp(J.naturalWidth||0,J.naturalHeight||0,Be)))},loadingElement:E,brokenElement:T})):r&&r({attrs:ye,scale:ve,rotate:Be})))}var _S={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 UF(e){var t=e.loop,n=t===void 0?3:t,r=e.speed,a=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,g=p===void 0||p,y=e.bannerVisible,S=y===void 0||y,x=e.overlayRender,E=e.toolbarRender,T=e.className,C=e.maskClassName,M=e.photoClassName,D=e.photoWrapClassName,O=e.loadingElement,R=e.brokenElement,z=e.images,I=e.index,A=I===void 0?0:I,V=e.onIndexChange,F=e.visible,P=e.onClose,Z=e.afterClose,K=e.portalContainer,_=Cv(_S),Y=_[0],B=_[1],N=b.useState(0),G=N[0],ne=N[1],X=Y.x,de=Y.touched,ae=Y.pause,le=Y.lastCX,se=Y.lastCY,Ce=Y.bg,xe=Ce===void 0?h:Ce,Lt=Y.lastBg,Ie=Y.overlay,Be=Y.minimal,fe=Y.scale,ct=Y.rotate,re=Y.onScale,ge=Y.onRotate,Re=e.hasOwnProperty("index"),Te=Re?A:G,mn=Re?V:ne,pn=b.useRef(Te),Nn=z.length,Gn=z[Te],nt=typeof n=="boolean"?n:Nn>n,on=(function(ve,ze){var $e=b.useReducer(function(be){return!be},!1)[1],ye=b.useRef(0),J=(function(be){var Ge=b.useRef(be);function it(We){Ge.current=We}return b.useMemo(function(){(function(We){ve?(We(ve),ye.current=1):ye.current=2})(it)},[be]),[Ge.current,it]})(ve),ue=J[1];return[J[0],ye.current,function(){$e(),ye.current===2&&(ue(!1),ze&&ze()),ye.current=0}]})(F,Z),Xn=on[0],xn=on[1],bt=on[2];Dv(function(){if(Xn)return B({pause:!0,x:Te*-(innerWidth+Wa)}),void(pn.current=Te);B(_S)},[Xn]);var Ji=rd({close:function(ve){ge&&ge(0),B({overlay:!0,lastBg:xe}),P(ve)},changeIndex:function(ve,ze){ze===void 0&&(ze=!1);var $e=nt?pn.current+(ve-Te):ve,ye=Nn-1,J=wv($e,0,ye),ue=nt?$e:J,be=innerWidth+Wa;B({touched:!1,lastCX:void 0,lastCY:void 0,x:-be*ue,pause:ze}),pn.current=ue,mn&&mn(nt?ve<0?ye:ve>ye?0:ve:J)}}),kn=Ji.close,Ct=Ji.changeIndex;function wt(ve){return ve?kn():B({overlay:!Ie})}function Kn(){B({x:-(innerWidth+Wa)*Te,lastCX:void 0,lastCY:void 0,pause:!0}),pn.current=Te}function Li(ve,ze,$e,ye){ve==="x"?(function(J){if(le!==void 0){var ue=J-le,be=ue;!nt&&(Te===0&&ue>0||Te===Nn-1&&ue<0)&&(be=ue/2),B({touched:!0,lastCX:le,x:-(innerWidth+Wa)*pn.current+be,pause:!1})}else B({touched:!0,lastCX:J,x:X,pause:!1})})(ze):ve==="y"&&(function(J,ue){if(se!==void 0){var be=h===null?null:wv(h,.01,h-Math.abs(J-se)/100/4);B({touched:!0,lastCY:se,bg:ue===1?be:h,minimal:ue===1})}else B({touched:!0,lastCY:J,bg:xe,minimal:!0})})($e,ye)}function vn(ve,ze){var $e=ve-(le??ve),ye=ze-(se??ze),J=!1;if($e<-40)Ct(Te+1);else if($e>40)Ct(Te-1);else{var ue=-(innerWidth+Wa)*pn.current;Math.abs(ye)>100&&Be&&g&&(J=!0,kn()),B({touched:!1,x:ue,lastCX:void 0,lastCY:void 0,bg:h,overlay:!!J||Ie})}}eo("keydown",function(ve){if(F)switch(ve.key){case"ArrowLeft":Ct(Te-1,!0);break;case"ArrowRight":Ct(Te+1,!0);break;case"Escape":kn()}});var er=(function(ve,ze,$e){return b.useMemo(function(){var ye=ve.length;return $e?ve.concat(ve).concat(ve).slice(ye+ze-1,ye+ze+2):ve.slice(Math.max(ze-1,0),Math.min(ze+2,ye+1))},[ve,ze,$e])})(z,Te,nt);if(!Xn)return null;var yt=Ie&&!xn,Dt=F?xe:Lt,Nt=re&&ge&&{images:z,index:Te,visible:F,onClose:kn,onIndexChange:Ct,overlayVisible:yt,overlay:Gn&&Gn.overlay,scale:fe,rotate:ct,onScale:re,onRotate:ge},ot=r?r(xn):400,tr=a?a(xn):FS,nr=r?r(3):600,Tn=a?a(3):FS;return ie.createElement(Dk,{className:"PhotoView-Portal"+(yt?"":" PhotoView-Slider__clean")+(F?"":" PhotoView-Slider__willClose")+(T?" "+T:""),role:"dialog",onClick:function(ve){return ve.stopPropagation()},container:K},F&&ie.createElement(Pk,null),ie.createElement("div",{className:"PhotoView-Slider__Backdrop"+(C?" "+C:"")+(xn===1?" PhotoView-Slider__fadeIn":xn===2?" PhotoView-Slider__fadeOut":""),style:{background:Dt?"rgba(0, 0, 0, "+Dt+")":void 0,transitionTimingFunction:tr,transitionDuration:(de?0:ot)+"ms",animationDuration:ot+"ms"},onAnimationEnd:bt}),S&&ie.createElement("div",{className:"PhotoView-Slider__BannerWrap"},ie.createElement("div",{className:"PhotoView-Slider__Counter"},Te+1," / ",Nn),ie.createElement("div",{className:"PhotoView-Slider__BannerRight"},E&&Nt&&E(Nt),ie.createElement(Ak,{className:"PhotoView-Slider__toolbarIcon",onClick:kn}))),er.map(function(ve,ze){var $e=nt||Te!==0?pn.current-1+ze:Te+ze;return ie.createElement(Vk,{key:nt?ve.key+"/"+ve.src+"/"+$e:ve.key,item:ve,speed:ot,easing:tr,visible:F,onReachMove:Li,onReachUp:vn,onPhotoTap:function(){return wt(s)},onMaskTap:function(){return wt(d)},wrapClassName:D,className:M,style:{left:(innerWidth+Wa)*$e+"px",transform:"translate3d("+X+"px, 0px, 0)",transition:de||ae?void 0:"transform "+nr+"ms "+Tn},loadingElement:O,brokenElement:R,onPhotoResize:Kn,isActive:pn.current===$e,expose:B})}),!xr&&S&&ie.createElement(ie.Fragment,null,(nt||Te!==0)&&ie.createElement("div",{className:"PhotoView-Slider__ArrowLeft",onClick:function(){return Ct(Te-1,!0)}},ie.createElement(Mk,null)),(nt||Te+1<Nn)&&ie.createElement("div",{className:"PhotoView-Slider__ArrowRight",onClick:function(){return Ct(Te+1,!0)}},ie.createElement(Rk,null))),x&&Nt&&ie.createElement("div",{className:"PhotoView-Slider__Overlay"},x(Nt)))}function Fk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b.useMemo(()=>r=>{t.forEach(a=>a(r))},t)}const lf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Co(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Xg(e){return"nodeType"in e}function Ln(e){var t,n;return e?Co(e)?e:Xg(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Wg(e){const{Document:t}=Ln(e);return e instanceof t}function su(e){return Co(e)?!1:e instanceof Ln(e).HTMLElement}function cC(e){return e instanceof Ln(e).SVGElement}function wo(e){return e?Co(e)?e.document:Xg(e)?Wg(e)?e:su(e)||cC(e)?e.ownerDocument:document:document:document}const Gi=lf?b.useLayoutEffect:b.useEffect;function Zg(e){const t=b.useRef(e);return Gi(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.current==null?void 0:t.current(...r)},[])}function Ik(){const e=b.useRef(null),t=b.useCallback((r,a)=>{e.current=setInterval(r,a)},[]),n=b.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Ws(e,t){t===void 0&&(t=[e]);const n=b.useRef(e);return Gi(()=>{n.current!==e&&(n.current=e)},t),n}function uu(e,t){const n=b.useRef();return b.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Ad(e){const t=Zg(e),n=b.useRef(null),r=b.useCallback(a=>{a!==n.current&&(t==null||t(a,n.current)),n.current=a},[]);return[n,r]}function Mv(e){const t=b.useRef();return b.useEffect(()=>{t.current=e},[e]),t.current}let $p={};function cu(e,t){return b.useMemo(()=>{if(t)return t;const n=$p[e]==null?0:$p[e]+1;return $p[e]=n,e+"-"+n},[e,t])}function dC(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.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 vo=dC(1),Md=dC(-1);function Uk(e){return"clientX"in e&&"clientY"in e}function Qg(e){if(!e)return!1;const{KeyboardEvent:t}=Ln(e.target);return t&&e instanceof t}function _k(e){if(!e)return!1;const{TouchEvent:t}=Ln(e.target);return t&&e instanceof t}function Rv(e){if(_k(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 Uk(e)?{x:e.clientX,y:e.clientY}:null}const Rd=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[Rd.Translate.toString(e),Rd.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),jS="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function jk(e){return e.matches(jS)?e:e.querySelector(jS)}const Hk={display:"none"};function Yk(e){let{id:t,value:n}=e;return ie.createElement("div",{id:t,style:Hk},n)}function qk(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const a={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 ie.createElement("div",{id:t,style:a,role:"status","aria-live":r,"aria-atomic":!0},n)}function Gk(){const[e,t]=b.useState("");return{announce:b.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const fC=b.createContext(null);function Xk(e){const t=b.useContext(fC);b.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Wk(){const[e]=b.useState(()=>new Set),t=b.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[b.useCallback(r=>{let{type:a,event:s}=r;e.forEach(u=>{var d;return(d=u[a])==null?void 0:d.call(u,s)})},[e]),t]}const Zk={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.
  `},Qk={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 Jk(e){let{announcements:t=Qk,container:n,hiddenTextDescribedById:r,screenReaderInstructions:a=Zk}=e;const{announce:s,announcement:u}=Gk(),d=cu("DndLiveRegion"),[f,h]=b.useState(!1);if(b.useEffect(()=>{h(!0)},[]),Xk(b.useMemo(()=>({onDragStart(g){let{active:y}=g;s(t.onDragStart({active:y}))},onDragMove(g){let{active:y,over:S}=g;t.onDragMove&&s(t.onDragMove({active:y,over:S}))},onDragOver(g){let{active:y,over:S}=g;s(t.onDragOver({active:y,over:S}))},onDragEnd(g){let{active:y,over:S}=g;s(t.onDragEnd({active:y,over:S}))},onDragCancel(g){let{active:y,over:S}=g;s(t.onDragCancel({active:y,over:S}))}}),[s,t])),!f)return null;const p=ie.createElement(ie.Fragment,null,ie.createElement(Yk,{id:r,value:a.draggable}),ie.createElement(qk,{id:d,announcement:u}));return n?Ui.createPortal(p,n):p}var Ft;(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"})(Ft||(Ft={}));function Pd(){}function _F(e,t){return b.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function jF(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const zi=Object.freeze({x:0,y:0});function eK(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function tK(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function nK(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function iK(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function HS(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 HF=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=HS(t,t.left,t.top),s=[];for(const u of r){const{id:d}=u,f=n.get(d);if(f){const h=eK(HS(f),a);s.push({id:d,data:{droppableContainer:u,value:h}})}}return s.sort(tK)};function rK(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),u=a-r,d=s-n;if(r<a&&n<s){const f=t.width*t.height,h=e.width*e.height,p=u*d,g=p/(f+h-p);return Number(g.toFixed(4))}return 0}const lK=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const s of r){const{id:u}=s,d=n.get(u);if(d){const f=rK(d,t);f>0&&a.push({id:u,data:{droppableContainer:s,value:f}})}}return a.sort(nK)};function aK(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function hC(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:zi}function oK(e){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return a.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 sK=oK(1);function uK(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 cK(e,t,n){const r=uK(t);if(!r)return e;const{scaleX:a,scaleY:s,x:u,y:d}=r,f=e.left-u-(1-a)*parseFloat(n),h=e.top-d-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),p=a?e.width/a:e.width,g=s?e.height/s:e.height;return{width:p,height:g,top:h,right:f+p,bottom:h+g,left:f}}const dK={ignoreTransform:!1};function Do(e,t){t===void 0&&(t=dK);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:h,transformOrigin:p}=Ln(e).getComputedStyle(e);h&&(n=cK(n,h,p))}const{top:r,left:a,width:s,height:u,bottom:d,right:f}=n;return{top:r,left:a,width:s,height:u,bottom:d,right:f}}function YS(e){return Do(e,{ignoreTransform:!0})}function fK(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function hK(e,t){return t===void 0&&(t=Ln(e).getComputedStyle(e)),t.position==="fixed"}function mK(e,t){t===void 0&&(t=Ln(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const s=t[a];return typeof s=="string"?n.test(s):!1})}function Jg(e,t){const n=[];function r(a){if(t!=null&&n.length>=t||!a)return n;if(Wg(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!su(a)||cC(a)||n.includes(a))return n;const s=Ln(e).getComputedStyle(a);return a!==e&&mK(a,s)&&n.push(a),hK(a,s)?n:r(a.parentNode)}return e?r(e):n}function mC(e){const[t]=Jg(e,1);return t??null}function Ep(e){return!lf||!e?null:Co(e)?e:Xg(e)?Wg(e)||e===wo(e).scrollingElement?window:su(e)?e:null:null}function pC(e){return Co(e)?e.scrollX:e.scrollLeft}function vC(e){return Co(e)?e.scrollY:e.scrollTop}function Pv(e){return{x:pC(e),y:vC(e)}}var Wt;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Wt||(Wt={}));function gC(e){return!lf||!e?!1:e===document.scrollingElement}function bC(e){const t={x:0,y:0},n=gC(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,u=e.scrollTop>=r.y,d=e.scrollLeft>=r.x;return{isTop:a,isLeft:s,isBottom:u,isRight:d,maxScroll:r,minScroll:t}}const pK={x:.2,y:.2};function vK(e,t,n,r,a){let{top:s,left:u,right:d,bottom:f}=n;r===void 0&&(r=10),a===void 0&&(a=pK);const{isTop:h,isBottom:p,isLeft:g,isRight:y}=bC(e),S={x:0,y:0},x={x:0,y:0},E={height:t.height*a.y,width:t.width*a.x};return!h&&s<=t.top+E.height?(S.y=Wt.Backward,x.y=r*Math.abs((t.top+E.height-s)/E.height)):!p&&f>=t.bottom-E.height&&(S.y=Wt.Forward,x.y=r*Math.abs((t.bottom-E.height-f)/E.height)),!y&&d>=t.right-E.width?(S.x=Wt.Forward,x.x=r*Math.abs((t.right-E.width-d)/E.width)):!g&&u<=t.left+E.width&&(S.x=Wt.Backward,x.x=r*Math.abs((t.left+E.width-u)/E.width)),{direction:S,speed:x}}function gK(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:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function yC(e){return e.reduce((t,n)=>vo(t,Pv(n)),zi)}function bK(e){return e.reduce((t,n)=>t+pC(n),0)}function yK(e){return e.reduce((t,n)=>t+vC(n),0)}function SK(e,t){if(t===void 0&&(t=Do),!e)return;const{top:n,left:r,bottom:a,right:s}=t(e);mC(e)&&(a<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const $K=[["x",["left","right"],bK],["y",["top","bottom"],yK]];class e0{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Jg(n),a=yC(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,u,d]of $K)for(const f of u)Object.defineProperty(this,f,{get:()=>{const h=d(r),p=a[s]-h;return this.rect[f]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ls{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var a;(a=this.target)==null||a.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function EK(e){const{EventTarget:t}=Ln(e);return e instanceof t?e:wo(e)}function xp(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var hi;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(hi||(hi={}));function qS(e){e.preventDefault()}function xK(e){e.stopPropagation()}var Ke;(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"})(Ke||(Ke={}));const SC={start:[Ke.Space,Ke.Enter],cancel:[Ke.Esc],end:[Ke.Space,Ke.Enter,Ke.Tab]},TK=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ke.Right:return{...n,x:n.x+25};case Ke.Left:return{...n,x:n.x-25};case Ke.Down:return{...n,y:n.y+25};case Ke.Up:return{...n,y:n.y-25}}};class $C{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 Ls(wo(n)),this.windowListeners=new Ls(Ln(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(hi.Resize,this.handleCancel),this.windowListeners.add(hi.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(hi.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&SK(r),n(zi)}handleKeyDown(t){if(Qg(t)){const{active:n,context:r,options:a}=this.props,{keyboardCodes:s=SC,coordinateGetter:u=TK,scrollBehavior:d="smooth"}=a,{code:f}=t;if(s.end.includes(f)){this.handleEnd(t);return}if(s.cancel.includes(f)){this.handleCancel(t);return}const{collisionRect:h}=r.current,p=h?{x:h.left,y:h.top}:zi;this.referenceCoordinates||(this.referenceCoordinates=p);const g=u(t,{active:n,context:r.current,currentCoordinates:p});if(g){const y=Md(g,p),S={x:0,y:0},{scrollableAncestors:x}=r.current;for(const E of x){const T=t.code,{isTop:C,isRight:M,isLeft:D,isBottom:O,maxScroll:R,minScroll:z}=bC(E),I=gK(E),A={x:Math.min(T===Ke.Right?I.right-I.width/2:I.right,Math.max(T===Ke.Right?I.left:I.left+I.width/2,g.x)),y:Math.min(T===Ke.Down?I.bottom-I.height/2:I.bottom,Math.max(T===Ke.Down?I.top:I.top+I.height/2,g.y))},V=T===Ke.Right&&!M||T===Ke.Left&&!D,F=T===Ke.Down&&!O||T===Ke.Up&&!C;if(V&&A.x!==g.x){const P=E.scrollLeft+y.x,Z=T===Ke.Right&&P<=R.x||T===Ke.Left&&P>=z.x;if(Z&&!y.y){E.scrollTo({left:P,behavior:d});return}Z?S.x=E.scrollLeft-P:S.x=T===Ke.Right?E.scrollLeft-R.x:E.scrollLeft-z.x,S.x&&E.scrollBy({left:-S.x,behavior:d});break}else if(F&&A.y!==g.y){const P=E.scrollTop+y.y,Z=T===Ke.Down&&P<=R.y||T===Ke.Up&&P>=z.y;if(Z&&!y.x){E.scrollTo({top:P,behavior:d});return}Z?S.y=E.scrollTop-P:S.y=T===Ke.Down?E.scrollTop-R.y:E.scrollTop-z.y,S.y&&E.scrollBy({top:-S.y,behavior:d});break}}this.handleMove(t,vo(Md(g,this.referenceCoordinates),S))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}$C.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=SC,onActivation:a}=t,{active:s}=n;const{code:u}=e.nativeEvent;if(r.start.includes(u)){const d=s.activatorNode.current;return d&&e.target!==d?!1:(e.preventDefault(),a==null||a({event:e.nativeEvent}),!0)}return!1}}];function GS(e){return!!(e&&"distance"in e)}function XS(e){return!!(e&&"delay"in e)}class t0{constructor(t,n,r){var a;r===void 0&&(r=EK(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=wo(u),this.documentListeners=new Ls(this.document),this.listeners=new Ls(r),this.windowListeners=new Ls(Ln(u)),this.initialCoordinates=(a=Rv(s))!=null?a:zi,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(hi.Resize,this.handleCancel),this.windowListeners.add(hi.DragStart,qS),this.windowListeners.add(hi.VisibilityChange,this.handleCancel),this.windowListeners.add(hi.ContextMenu,qS),this.documentListeners.add(hi.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(XS(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(GS(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:a}=this.props;a(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(hi.Click,xK,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(hi.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:a,props:s}=this,{onMove:u,options:{activationConstraint:d}}=s;if(!a)return;const f=(n=Rv(t))!=null?n:zi,h=Md(a,f);if(!r&&d){if(GS(d)){if(d.tolerance!=null&&xp(h,d.tolerance))return this.handleCancel();if(xp(h,d.distance))return this.handleStart()}if(XS(d)&&xp(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===Ke.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const CK={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class EC extends t0{constructor(t){const{event:n}=t,r=wo(n.target);super(t,CK,r)}}EC.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const wK={move:{name:"mousemove"},end:{name:"mouseup"}};var Bv;(function(e){e[e.RightClick=2]="RightClick"})(Bv||(Bv={}));class DK extends t0{constructor(t){super(t,wK,wo(t.event.target))}}DK.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Bv.RightClick?!1:(r==null||r({event:n}),!0)}}];const Tp={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class AK extends t0{constructor(t){super(t,Tp)}static setup(){return window.addEventListener(Tp.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Tp.move.name,t)};function t(){}}}AK.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return a.length>1?!1:(r==null||r({event:n}),!0)}}];var Ns;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ns||(Ns={}));var Bd;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Bd||(Bd={}));function MK(e){let{acceleration:t,activator:n=Ns.Pointer,canScroll:r,draggingRect:a,enabled:s,interval:u=5,order:d=Bd.TreeOrder,pointerCoordinates:f,scrollableAncestors:h,scrollableAncestorRects:p,delta:g,threshold:y}=e;const S=PK({delta:g,disabled:!s}),[x,E]=Ik(),T=b.useRef({x:0,y:0}),C=b.useRef({x:0,y:0}),M=b.useMemo(()=>{switch(n){case Ns.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case Ns.DraggableRect:return a}},[n,a,f]),D=b.useRef(null),O=b.useCallback(()=>{const z=D.current;if(!z)return;const I=T.current.x*C.current.x,A=T.current.y*C.current.y;z.scrollBy(I,A)},[]),R=b.useMemo(()=>d===Bd.TreeOrder?[...h].reverse():h,[d,h]);b.useEffect(()=>{if(!s||!h.length||!M){E();return}for(const z of R){if((r==null?void 0:r(z))===!1)continue;const I=h.indexOf(z),A=p[I];if(!A)continue;const{direction:V,speed:F}=vK(z,A,M,t,y);for(const P of["x","y"])S[P][V[P]]||(F[P]=0,V[P]=0);if(F.x>0||F.y>0){E(),D.current=z,x(O,u),T.current=F,C.current=V;return}}T.current={x:0,y:0},C.current={x:0,y:0},E()},[t,O,r,E,s,u,JSON.stringify(M),JSON.stringify(S),x,h,R,p,JSON.stringify(y)])}const RK={x:{[Wt.Backward]:!1,[Wt.Forward]:!1},y:{[Wt.Backward]:!1,[Wt.Forward]:!1}};function PK(e){let{delta:t,disabled:n}=e;const r=Mv(t);return uu(a=>{if(n||!r||!a)return RK;const s={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Wt.Backward]:a.x[Wt.Backward]||s.x===-1,[Wt.Forward]:a.x[Wt.Forward]||s.x===1},y:{[Wt.Backward]:a.y[Wt.Backward]||s.y===-1,[Wt.Forward]:a.y[Wt.Forward]||s.y===1}}},[n,t,r])}function BK(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return uu(a=>{var s;return t==null?null:(s=r??a)!=null?s:null},[r,t])}function OK(e,t){return b.useMemo(()=>e.reduce((n,r)=>{const{sensor:a}=r,s=a.activators.map(u=>({eventName:u.eventName,handler:t(u.handler,r)}));return[...n,...s]},[]),[e,t])}var Zs;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Zs||(Zs={}));var Ov;(function(e){e.Optimized="optimized"})(Ov||(Ov={}));const WS=new Map;function zK(e,t){let{dragging:n,dependencies:r,config:a}=t;const[s,u]=b.useState(null),{frequency:d,measure:f,strategy:h}=a,p=b.useRef(e),g=T(),y=Ws(g),S=b.useCallback(function(C){C===void 0&&(C=[]),!y.current&&u(M=>M===null?C:M.concat(C.filter(D=>!M.includes(D))))},[y]),x=b.useRef(null),E=uu(C=>{if(g&&!n)return WS;if(!C||C===WS||p.current!==e||s!=null){const M=new Map;for(let D of e){if(!D)continue;if(s&&s.length>0&&!s.includes(D.id)&&D.rect.current){M.set(D.id,D.rect.current);continue}const O=D.node.current,R=O?new e0(f(O),O):null;D.rect.current=R,R&&M.set(D.id,R)}return M}return C},[e,s,n,g,f]);return b.useEffect(()=>{p.current=e},[e]),b.useEffect(()=>{g||S()},[n,g]),b.useEffect(()=>{s&&s.length>0&&u(null)},[JSON.stringify(s)]),b.useEffect(()=>{g||typeof d!="number"||x.current!==null||(x.current=setTimeout(()=>{S(),x.current=null},d))},[d,g,S,...r]),{droppableRects:E,measureDroppableContainers:S,measuringScheduled:s!=null};function T(){switch(h){case Zs.Always:return!1;case Zs.BeforeDragging:return n;default:return!n}}}function xC(e,t){return uu(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function LK(e,t){return xC(e,t)}function NK(e){let{callback:t,disabled:n}=e;const r=Zg(t),a=b.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return b.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function af(e){let{callback:t,disabled:n}=e;const r=Zg(t),a=b.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return b.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function kK(e){return new e0(Do(e),e)}function ZS(e,t,n){t===void 0&&(t=kK);const[r,a]=b.useState(null);function s(){a(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=NK({callback(f){if(e)for(const h of f){const{type:p,target:g}=h;if(p==="childList"&&g instanceof HTMLElement&&g.contains(e)){s();break}}}}),d=af({callback:s});return Gi(()=>{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]),r}function KK(e){const t=xC(e);return hC(e,t)}const QS=[];function VK(e){const t=b.useRef(e),n=uu(r=>e?r&&r!==QS&&e&&t.current&&e.parentNode===t.current.parentNode?r:Jg(e):QS,[e]);return b.useEffect(()=>{t.current=e},[e]),n}function FK(e){const[t,n]=b.useState(null),r=b.useRef(e),a=b.useCallback(s=>{const u=Ep(s.target);u&&n(d=>d?(d.set(u,Pv(u)),new Map(d)):null)},[]);return b.useEffect(()=>{const s=r.current;if(e!==s){u(s);const d=e.map(f=>{const h=Ep(f);return h?(h.addEventListener("scroll",a,{passive:!0}),[h,Pv(h)]):null}).filter(f=>f!=null);n(d.length?new Map(d):null),r.current=e}return()=>{u(e),u(s)};function u(d){d.forEach(f=>{const h=Ep(f);h==null||h.removeEventListener("scroll",a)})}},[a,e]),b.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,u)=>vo(s,u),zi):yC(e):zi,[e,t])}function JS(e,t){t===void 0&&(t=[]);const n=b.useRef(null);return b.useEffect(()=>{n.current=null},t),b.useEffect(()=>{const r=e!==zi;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Md(e,n.current):zi}function IK(e){b.useEffect(()=>{if(!lf)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function UK(e,t){return b.useMemo(()=>e.reduce((n,r)=>{let{eventName:a,handler:s}=r;return n[a]=u=>{s(u,t)},n},{}),[e,t])}function TC(e){return b.useMemo(()=>e?fK(e):null,[e])}const e$=[];function _K(e,t){t===void 0&&(t=Do);const[n]=e,r=TC(n?Ln(n):null),[a,s]=b.useState(e$);function u(){s(()=>e.length?e.map(f=>gC(f)?r:new e0(t(f),f)):e$)}const d=af({callback:u});return Gi(()=>{d==null||d.disconnect(),u(),e.forEach(f=>d==null?void 0:d.observe(f))},[e]),a}function jK(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return su(t)?t:e}function HK(e){let{measure:t}=e;const[n,r]=b.useState(null),a=b.useCallback(h=>{for(const{target:p}of h)if(su(p)){r(g=>{const y=t(p);return g?{...g,width:y.width,height:y.height}:y});break}},[t]),s=af({callback:a}),u=b.useCallback(h=>{const p=jK(h);s==null||s.disconnect(),p&&(s==null||s.observe(p)),r(p?t(p):null)},[t,s]),[d,f]=Ad(u);return b.useMemo(()=>({nodeRef:d,rect:n,setRef:f}),[n,d,f])}const YK=[{sensor:EC,options:{}},{sensor:$C,options:{}}],qK={current:{}},ld={draggable:{measure:YS},droppable:{measure:YS,strategy:Zs.WhileDragging,frequency:Ov.Optimized},dragOverlay:{measure:Do}};class ks extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const GK={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ks,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Pd},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ld,measureDroppableContainers:Pd,windowRect:null,measuringScheduled:!1},XK={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Pd,draggableNodes:new Map,over:null,measureDroppableContainers:Pd},of=b.createContext(XK),CC=b.createContext(GK);function WK(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ks}}}function ZK(e,t){switch(t.type){case Ft.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Ft.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 Ft.DragEnd:case Ft.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ft.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new ks(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case Ft.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const u=new ks(e.droppable.containers);return u.set(n,{...s,disabled:a}),{...e,droppable:{...e.droppable,containers:u}}}case Ft.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const s=new ks(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function QK(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:a}=b.useContext(of),s=Mv(r),u=Mv(n==null?void 0:n.id);return b.useEffect(()=>{if(!t&&!r&&s&&u!=null){if(!Qg(s)||document.activeElement===s.target)return;const d=a.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 g=jk(p);if(g){g.focus();break}}})}},[r,t,a,u,s]),null}function JK(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((a,s)=>s({transform:a,...r}),n):n}function eV(e){return b.useMemo(()=>({draggable:{...ld.draggable,...e==null?void 0:e.draggable},droppable:{...ld.droppable,...e==null?void 0:e.droppable},dragOverlay:{...ld.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 tV(e){let{activeNode:t,measure:n,initialRect:r,config:a=!0}=e;const s=b.useRef(!1),{x:u,y:d}=typeof a=="boolean"?{x:a,y:a}:a;Gi(()=>{if(!u&&!d||!t){s.current=!1;return}if(s.current||!r)return;const h=t==null?void 0:t.node.current;if(!h||h.isConnected===!1)return;const p=n(h),g=hC(p,r);if(u||(g.x=0),d||(g.y=0),s.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const y=mC(h);y&&y.scrollBy({top:g.y,left:g.x})}},[t,u,d,r,n])}const wC=b.createContext({...zi,scaleX:1,scaleY:1});var fl;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(fl||(fl={}));const YF=b.memo(function(t){var n,r,a,s;let{id:u,accessibility:d,autoScroll:f=!0,children:h,sensors:p=YK,collisionDetection:g=lK,measuring:y,modifiers:S,...x}=t;const E=b.useReducer(ZK,void 0,WK),[T,C]=E,[M,D]=Wk(),[O,R]=b.useState(fl.Uninitialized),z=O===fl.Initialized,{draggable:{active:I,nodes:A,translate:V},droppable:{containers:F}}=T,P=I!=null?A.get(I):null,Z=b.useRef({initial:null,translated:null}),K=b.useMemo(()=>{var $e;return I!=null?{id:I,data:($e=P==null?void 0:P.data)!=null?$e:qK,rect:Z}:null},[I,P]),_=b.useRef(null),[Y,B]=b.useState(null),[N,G]=b.useState(null),ne=Ws(x,Object.values(x)),X=cu("DndDescribedBy",u),de=b.useMemo(()=>F.getEnabled(),[F]),ae=eV(y),{droppableRects:le,measureDroppableContainers:se,measuringScheduled:Ce}=zK(de,{dragging:z,dependencies:[V.x,V.y],config:ae.droppable}),xe=BK(A,I),Lt=b.useMemo(()=>N?Rv(N):null,[N]),Ie=ze(),Be=LK(xe,ae.draggable.measure);tV({activeNode:I!=null?A.get(I):null,config:Ie.layoutShiftCompensation,initialRect:Be,measure:ae.draggable.measure});const fe=ZS(xe,ae.draggable.measure,Be),ct=ZS(xe?xe.parentElement:null),re=b.useRef({activatorEvent:null,active:null,activeNode:xe,collisionRect:null,collisions:null,droppableRects:le,draggableNodes:A,draggingNode:null,draggingNodeRect:null,droppableContainers:F,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ge=F.getNodeFor((n=re.current.over)==null?void 0:n.id),Re=HK({measure:ae.dragOverlay.measure}),Te=(r=Re.nodeRef.current)!=null?r:xe,mn=z?(a=Re.rect)!=null?a:fe:null,pn=!!(Re.nodeRef.current&&Re.rect),Nn=KK(pn?null:fe),Gn=TC(Te?Ln(Te):null),nt=VK(z?ge??xe:null),on=_K(nt),Xn=JK(S,{transform:{x:V.x-Nn.x,y:V.y-Nn.y,scaleX:1,scaleY:1},activatorEvent:N,active:K,activeNodeRect:fe,containerNodeRect:ct,draggingNodeRect:mn,over:re.current.over,overlayNodeRect:Re.rect,scrollableAncestors:nt,scrollableAncestorRects:on,windowRect:Gn}),xn=Lt?vo(Lt,V):null,bt=FK(nt),Ji=JS(bt),kn=JS(bt,[fe]),Ct=vo(Xn,Ji),wt=mn?sK(mn,Xn):null,Kn=K&&wt?g({active:K,collisionRect:wt,droppableRects:le,droppableContainers:de,pointerCoordinates:xn}):null,Li=iK(Kn,"id"),[vn,er]=b.useState(null),yt=pn?Xn:vo(Xn,kn),Dt=aK(yt,(s=vn==null?void 0:vn.rect)!=null?s:null,fe),Nt=b.useRef(null),ot=b.useCallback(($e,ye)=>{let{sensor:J,options:ue}=ye;if(_.current==null)return;const be=A.get(_.current);if(!be)return;const Ge=$e.nativeEvent,it=new J({active:_.current,activeNode:be,event:Ge,options:ue,context:re,onAbort(Oe){if(!A.get(Oe))return;const{onDragAbort:rt}=ne.current,At={id:Oe};rt==null||rt(At),M({type:"onDragAbort",event:At})},onPending(Oe,Ze,rt,At){if(!A.get(Oe))return;const{onDragPending:Qt}=ne.current,Ht={id:Oe,constraint:Ze,initialCoordinates:rt,offset:At};Qt==null||Qt(Ht),M({type:"onDragPending",event:Ht})},onStart(Oe){const Ze=_.current;if(Ze==null)return;const rt=A.get(Ze);if(!rt)return;const{onDragStart:At}=ne.current,jt={activatorEvent:Ge,active:{id:Ze,data:rt.data,rect:Z}};Ui.unstable_batchedUpdates(()=>{At==null||At(jt),R(fl.Initializing),C({type:Ft.DragStart,initialCoordinates:Oe,active:Ze}),M({type:"onDragStart",event:jt}),B(Nt.current),G(Ge)})},onMove(Oe){C({type:Ft.DragMove,coordinates:Oe})},onEnd:We(Ft.DragEnd),onCancel:We(Ft.DragCancel)});Nt.current=it;function We(Oe){return async function(){const{active:rt,collisions:At,over:jt,scrollAdjustedTranslate:Qt}=re.current;let Ht=null;if(rt&&Qt){const{cancelDrop:Yt}=ne.current;Ht={activatorEvent:Ge,active:rt,collisions:At,delta:Qt,over:jt},Oe===Ft.DragEnd&&typeof Yt=="function"&&await Promise.resolve(Yt(Ht))&&(Oe=Ft.DragCancel)}_.current=null,Ui.unstable_batchedUpdates(()=>{C({type:Oe}),R(fl.Uninitialized),er(null),B(null),G(null),Nt.current=null;const Yt=Oe===Ft.DragEnd?"onDragEnd":"onDragCancel";if(Ht){const St=ne.current[Yt];St==null||St(Ht),M({type:Yt,event:Ht})}})}}},[A]),tr=b.useCallback(($e,ye)=>(J,ue)=>{const be=J.nativeEvent,Ge=A.get(ue);if(_.current!==null||!Ge||be.dndKit||be.defaultPrevented)return;const it={active:Ge};$e(J,ye.options,it)===!0&&(be.dndKit={capturedBy:ye.sensor},_.current=ue,ot(J,ye))},[A,ot]),nr=OK(p,tr);IK(p),Gi(()=>{fe&&O===fl.Initializing&&R(fl.Initialized)},[fe,O]),b.useEffect(()=>{const{onDragMove:$e}=ne.current,{active:ye,activatorEvent:J,collisions:ue,over:be}=re.current;if(!ye||!J)return;const Ge={active:ye,activatorEvent:J,collisions:ue,delta:{x:Ct.x,y:Ct.y},over:be};Ui.unstable_batchedUpdates(()=>{$e==null||$e(Ge),M({type:"onDragMove",event:Ge})})},[Ct.x,Ct.y]),b.useEffect(()=>{const{active:$e,activatorEvent:ye,collisions:J,droppableContainers:ue,scrollAdjustedTranslate:be}=re.current;if(!$e||_.current==null||!ye||!be)return;const{onDragOver:Ge}=ne.current,it=ue.get(Li),We=it&&it.rect.current?{id:it.id,rect:it.rect.current,data:it.data,disabled:it.disabled}:null,Oe={active:$e,activatorEvent:ye,collisions:J,delta:{x:be.x,y:be.y},over:We};Ui.unstable_batchedUpdates(()=>{er(We),Ge==null||Ge(Oe),M({type:"onDragOver",event:Oe})})},[Li]),Gi(()=>{re.current={activatorEvent:N,active:K,activeNode:xe,collisionRect:wt,collisions:Kn,droppableRects:le,draggableNodes:A,draggingNode:Te,draggingNodeRect:mn,droppableContainers:F,over:vn,scrollableAncestors:nt,scrollAdjustedTranslate:Ct},Z.current={initial:mn,translated:wt}},[K,xe,Kn,wt,A,Te,mn,le,F,vn,nt,Ct]),MK({...Ie,delta:V,draggingRect:wt,pointerCoordinates:xn,scrollableAncestors:nt,scrollableAncestorRects:on});const Tn=b.useMemo(()=>({active:K,activeNode:xe,activeNodeRect:fe,activatorEvent:N,collisions:Kn,containerNodeRect:ct,dragOverlay:Re,draggableNodes:A,droppableContainers:F,droppableRects:le,over:vn,measureDroppableContainers:se,scrollableAncestors:nt,scrollableAncestorRects:on,measuringConfiguration:ae,measuringScheduled:Ce,windowRect:Gn}),[K,xe,fe,N,Kn,ct,Re,A,F,le,vn,se,nt,on,ae,Ce,Gn]),ve=b.useMemo(()=>({activatorEvent:N,activators:nr,active:K,activeNodeRect:fe,ariaDescribedById:{draggable:X},dispatch:C,draggableNodes:A,over:vn,measureDroppableContainers:se}),[N,nr,K,fe,C,X,A,vn,se]);return ie.createElement(fC.Provider,{value:D},ie.createElement(of.Provider,{value:ve},ie.createElement(CC.Provider,{value:Tn},ie.createElement(wC.Provider,{value:Dt},h)),ie.createElement(QK,{disabled:(d==null?void 0:d.restoreFocus)===!1})),ie.createElement(Jk,{...d,hiddenTextDescribedById:X}));function ze(){const $e=(Y==null?void 0:Y.autoScrollEnabled)===!1,ye=typeof f=="object"?f.enabled===!1:f===!1,J=z&&!$e&&!ye;return typeof f=="object"?{...f,enabled:J}:{enabled:J}}}),nV=b.createContext(null),t$="button",iV="Draggable";function rV(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e;const s=cu(iV),{activators:u,activatorEvent:d,active:f,activeNodeRect:h,ariaDescribedById:p,draggableNodes:g,over:y}=b.useContext(of),{role:S=t$,roleDescription:x="draggable",tabIndex:E=0}=a??{},T=(f==null?void 0:f.id)===t,C=b.useContext(T?wC:nV),[M,D]=Ad(),[O,R]=Ad(),z=UK(u,t),I=Ws(n);Gi(()=>(g.set(t,{id:t,key:s,node:M,activatorNode:O,data:I}),()=>{const V=g.get(t);V&&V.key===s&&g.delete(t)}),[g,t]);const A=b.useMemo(()=>({role:S,tabIndex:E,"aria-disabled":r,"aria-pressed":T&&S===t$?!0:void 0,"aria-roledescription":x,"aria-describedby":p.draggable}),[r,S,E,T,x,p.draggable]);return{active:f,activatorEvent:d,activeNodeRect:h,attributes:A,isDragging:T,listeners:r?void 0:z,node:M,over:y,setNodeRef:D,setActivatorNodeRef:R,transform:C}}function lV(){return b.useContext(CC)}const aV="Droppable",oV={timeout:25};function sV(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const s=cu(aV),{active:u,dispatch:d,over:f,measureDroppableContainers:h}=b.useContext(of),p=b.useRef({disabled:n}),g=b.useRef(!1),y=b.useRef(null),S=b.useRef(null),{disabled:x,updateMeasurementsFor:E,timeout:T}={...oV,...a},C=Ws(E??r),M=b.useCallback(()=>{if(!g.current){g.current=!0;return}S.current!=null&&clearTimeout(S.current),S.current=setTimeout(()=>{h(Array.isArray(C.current)?C.current:[C.current]),S.current=null},T)},[T]),D=af({callback:M,disabled:x||!u}),O=b.useCallback((A,V)=>{D&&(V&&(D.unobserve(V),g.current=!1),A&&D.observe(A))},[D]),[R,z]=Ad(O),I=Ws(t);return b.useEffect(()=>{!D||!R.current||(D.disconnect(),g.current=!1,D.observe(R.current))},[R,D]),b.useEffect(()=>(d({type:Ft.RegisterDroppable,element:{id:r,key:s,disabled:n,node:R,rect:y,data:I}}),()=>d({type:Ft.UnregisterDroppable,key:s,id:r})),[r]),b.useEffect(()=>{n!==p.current.disabled&&(d({type:Ft.SetDroppableDisabled,id:r,key:s,disabled:n}),p.current.disabled=n)},[r,s,n,d]),{active:u,rect:y,isOver:(f==null?void 0:f.id)===r,node:R,over:f,setNodeRef:z}}function DC(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function uV(e,t){return e.reduce((n,r,a)=>{const s=t.get(r);return s&&(n[a]=s),n},Array(e.length))}function Uc(e){return e!==null&&e>=0}function cV(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 dV(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const _c={scaleX:1,scaleY:1},qF=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:a,overIndex:s,index:u}=e;const d=(t=n[a])!=null?t:r;if(!d)return null;const f=fV(n,u,a);if(u===a){const h=n[s];return h?{x:a<s?h.left+h.width-(d.left+d.width):h.left-d.left,y:0,..._c}:null}return u>a&&u<=s?{x:-d.width-f,y:0,..._c}:u<a&&u>=s?{x:d.width+f,y:0,..._c}:{x:0,y:0,..._c}};function fV(e,t,n){const r=e[t],a=e[t-1],s=e[t+1];return!r||!a&&!s?0:n<t?a?r.left-(a.left+a.width):s.left-(r.left+r.width):s?s.left-(r.left+r.width):r.left-(a.left+a.width)}const AC=e=>{let{rects:t,activeIndex:n,overIndex:r,index:a}=e;const s=DC(t,r,n),u=t[a],d=s[a];return!d||!u?null:{x:d.left-u.left,y:d.top-u.top,scaleX:d.width/u.width,scaleY:d.height/u.height}},MC="Sortable",RC=ie.createContext({activeIndex:-1,containerId:MC,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:AC,disabled:{draggable:!1,droppable:!1}});function GF(e){let{children:t,id:n,items:r,strategy:a=AC,disabled:s=!1}=e;const{active:u,dragOverlay:d,droppableRects:f,over:h,measureDroppableContainers:p}=lV(),g=cu(MC,n),y=d.rect!==null,S=b.useMemo(()=>r.map(z=>typeof z=="object"&&"id"in z?z.id:z),[r]),x=u!=null,E=u?S.indexOf(u.id):-1,T=h?S.indexOf(h.id):-1,C=b.useRef(S),M=!cV(S,C.current),D=T!==-1&&E===-1||M,O=dV(s);Gi(()=>{M&&x&&p(S)},[M,S,x,p]),b.useEffect(()=>{C.current=S},[S]);const R=b.useMemo(()=>({activeIndex:E,containerId:g,disabled:O,disableTransforms:D,items:S,overIndex:T,useDragOverlay:y,sortedRects:uV(S,f),strategy:a}),[E,g,O.draggable,O.droppable,D,S,T,f,y,a]);return ie.createElement(RC.Provider,{value:R},t)}const hV=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return DC(n,r,a).indexOf(t)},mV=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:s,newIndex:u,previousItems:d,previousContainerId:f,transition:h}=e;return!h||!r||d!==s&&a===u?!1:n?!0:u!==a&&t===f},pV={duration:200,easing:"ease"},PC="transform",vV=Rd.Transition.toString({property:PC,duration:0,easing:"linear"}),gV={roleDescription:"sortable"};function bV(e){let{disabled:t,index:n,node:r,rect:a}=e;const[s,u]=b.useState(null),d=b.useRef(n);return Gi(()=>{if(!t&&n!==d.current&&r.current){const f=a.current;if(f){const h=Do(r.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,r,a]),b.useEffect(()=>{s&&u(null)},[s]),s}function XF(e){let{animateLayoutChanges:t=mV,attributes:n,disabled:r,data:a,getNewIndex:s=hV,id:u,strategy:d,resizeObserverConfig:f,transition:h=pV}=e;const{items:p,containerId:g,activeIndex:y,disabled:S,disableTransforms:x,sortedRects:E,overIndex:T,useDragOverlay:C,strategy:M}=b.useContext(RC),D=yV(r,S),O=p.indexOf(u),R=b.useMemo(()=>({sortable:{containerId:g,index:O,items:p},...a}),[g,a,O,p]),z=b.useMemo(()=>p.slice(p.indexOf(u)),[p,u]),{rect:I,node:A,isOver:V,setNodeRef:F}=sV({id:u,data:R,disabled:D.droppable,resizeObserverConfig:{updateMeasurementsFor:z,...f}}),{active:P,activatorEvent:Z,activeNodeRect:K,attributes:_,setNodeRef:Y,listeners:B,isDragging:N,over:G,setActivatorNodeRef:ne,transform:X}=rV({id:u,data:R,attributes:{...gV,...n},disabled:D.draggable}),de=Fk(F,Y),ae=!!P,le=ae&&!x&&Uc(y)&&Uc(T),se=!C&&N,Ce=se&&le?X:null,Lt=le?Ce??(d??M)({rects:E,activeNodeRect:K,activeIndex:y,overIndex:T,index:O}):null,Ie=Uc(y)&&Uc(T)?s({id:u,items:p,activeIndex:y,overIndex:T}):O,Be=P==null?void 0:P.id,fe=b.useRef({activeId:Be,items:p,newIndex:Ie,containerId:g}),ct=p!==fe.current.items,re=t({active:P,containerId:g,isDragging:N,isSorting:ae,id:u,index:O,items:p,newIndex:fe.current.newIndex,previousItems:fe.current.items,previousContainerId:fe.current.containerId,transition:h,wasDragging:fe.current.activeId!=null}),ge=bV({disabled:!re,index:O,node:A,rect:I});return b.useEffect(()=>{ae&&fe.current.newIndex!==Ie&&(fe.current.newIndex=Ie),g!==fe.current.containerId&&(fe.current.containerId=g),p!==fe.current.items&&(fe.current.items=p)},[ae,Ie,g,p]),b.useEffect(()=>{if(Be===fe.current.activeId)return;if(Be!=null&&fe.current.activeId==null){fe.current.activeId=Be;return}const Te=setTimeout(()=>{fe.current.activeId=Be},50);return()=>clearTimeout(Te)},[Be]),{active:P,activeIndex:y,attributes:_,data:R,rect:I,index:O,newIndex:Ie,items:p,isOver:V,isSorting:ae,isDragging:N,listeners:B,node:A,overIndex:T,over:G,setNodeRef:de,setActivatorNodeRef:ne,setDroppableNodeRef:F,setDraggableNodeRef:Y,transform:ge??Lt,transition:Re()};function Re(){if(ge||ct&&fe.current.newIndex===O)return vV;if(!(se&&!Qg(Z)||!h)&&(ae||re))return Rd.Transition.toString({...h,property:PC})}}function yV(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}Ke.Down,Ke.Right,Ke.Up,Ke.Left;export{RV as $,jV as A,TV as B,WV as C,It as D,Sl as E,wV as F,ad as G,oR as H,xF as I,DV as J,AV as K,YV as L,Br as M,H$ as N,EV as O,_v as P,kA as Q,xV as R,CV as S,i$ as T,TF as U,PF as V,MF as W,AF as X,Xz as Y,zN as Z,vA as _,qV as a,gl as a$,wF as a0,hk as a1,FF as a2,dk as a3,rR as a4,rF as a5,ON as a6,CF as a7,OF as a8,KF as a9,jF as aA,_F as aB,YF as aC,HF as aD,GF as aE,qF as aF,DC as aG,EC as aH,nF as aI,xL as aJ,hF as aK,mF as aL,pF as aM,gF as aN,B9 as aO,LV as aP,FV as aQ,z9 as aR,uR as aS,$F as aT,EF as aU,Jv as aV,vt as aW,Ri as aX,u9 as aY,UA as aZ,nu as a_,gL as aa,un as ab,uo as ac,_l as ad,Ig as ae,SL as af,BF as ag,DF as ah,NF as ai,kF as aj,zF as ak,VF as al,LF as am,IF as an,UF as ao,aF as ap,oF as aq,yF as ar,Fs as as,SF as at,bF as au,b9 as av,FL as aw,VL as ax,XF as ay,Rd as az,F9 as b,zM as b0,RF as b1,NN as b2,Qi as b3,nL as b4,lF as b5,iF as b6,IV as b7,tF as b8,OV as b9,Qz as ba,dF as bb,cF as bc,ZV as bd,fF as be,HV as bf,eF as bg,T$ as c,BV as d,Iv as e,_$ as f,kV as g,R9 as h,_t as i,Zi as j,VV as k,Ql as l,GV as m,eg as n,zV as o,QV as p,UV as q,jv as r,JV as s,PV as t,MV as u,_V as v,_z as w,h$ as x,L7 as y,$V as z};
