var RF=Object.defineProperty;var RC=e=>{throw TypeError(e)};var MF=(e,t,n)=>t in e?RF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ir=(e,t,n)=>MF(e,typeof t!="symbol"?t+"":t,n),Qv=(e,t,n)=>t.has(e)||RC("Cannot "+n);var le=(e,t,n)=>(Qv(e,t,"read from private field"),n?n.call(e):t.get(e)),it=(e,t,n)=>t.has(e)?RC("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),$e=(e,t,n,r)=>(Qv(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),qn=(e,t,n)=>(Qv(e,t,"access private method"),n);var Gh=(e,t,n,r)=>({set _(a){$e(e,t,a,n)},get _(){return le(e,t,r)}});function OF(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function zd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wE(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var Zv={exports:{}},Yu={};/**
 * @license React
 * react-jsx-runtime.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 MC;function DF(){if(MC)return Yu;MC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var i=null;if(s!==void 0&&(i=""+s),a.key!==void 0&&(i=""+a.key),"key"in a){s={};for(var u in a)u!=="key"&&(s[u]=a[u])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:i,ref:a!==void 0?a:null,props:s}}return Yu.Fragment=t,Yu.jsx=n,Yu.jsxs=n,Yu}var OC;function IF(){return OC||(OC=1,Zv.exports=DF()),Zv.exports}var c=IF(),Jv={exports:{}},Ye={};/**
 * @license React
 * react.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 DC;function PF(){if(DC)return Ye;DC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=p&&k[p]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,b={};function T(k,$,se){this.props=k,this.context=$,this.refs=b,this.updater=se||y}T.prototype.isReactComponent={},T.prototype.setState=function(k,$){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,$,"setState")},T.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function N(){}N.prototype=T.prototype;function C(k,$,se){this.props=k,this.context=$,this.refs=b,this.updater=se||y}var A=C.prototype=new N;A.constructor=C,x(A,T.prototype),A.isPureReactComponent=!0;var R=Array.isArray,_={H:null,A:null,T:null,S:null,V:null},O=Object.prototype.hasOwnProperty;function D(k,$,se,re,ue,xe){return se=xe.ref,{$$typeof:e,type:k,key:$,ref:se!==void 0?se:null,props:xe}}function P(k,$){return D(k.type,$,void 0,void 0,void 0,k.props)}function L(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function U(k){var $={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(se){return $[se]})}var B=/\/+/g;function H(k,$){return typeof k=="object"&&k!==null&&k.key!=null?U(""+k.key):$.toString(36)}function Z(){}function ee(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(Z,Z):(k.status="pending",k.then(function($){k.status==="pending"&&(k.status="fulfilled",k.value=$)},function($){k.status==="pending"&&(k.status="rejected",k.reason=$)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function Q(k,$,se,re,ue){var xe=typeof k;(xe==="undefined"||xe==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(xe){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0;break;case m:return fe=k._init,Q(fe(k._payload),$,se,re,ue)}}if(fe)return ue=ue(k),fe=re===""?"."+H(k,0):re,R(ue)?(se="",fe!=null&&(se=fe.replace(B,"$&/")+"/"),Q(ue,$,se,"",function(Ne){return Ne})):ue!=null&&(L(ue)&&(ue=P(ue,se+(ue.key==null||k&&k.key===ue.key?"":(""+ue.key).replace(B,"$&/")+"/")+fe)),$.push(ue)),1;fe=0;var he=re===""?".":re+":";if(R(k))for(var ge=0;ge<k.length;ge++)re=k[ge],xe=he+H(re,ge),fe+=Q(re,$,se,xe,ue);else if(ge=v(k),typeof ge=="function")for(k=ge.call(k),ge=0;!(re=k.next()).done;)re=re.value,xe=he+H(re,ge++),fe+=Q(re,$,se,xe,ue);else if(xe==="object"){if(typeof k.then=="function")return Q(ee(k),$,se,re,ue);throw $=String(k),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return fe}function j(k,$,se){if(k==null)return k;var re=[],ue=0;return Q(k,re,"","",function(xe){return $.call(se,xe,ue++)}),re}function Y(k){if(k._status===-1){var $=k._result;$=$(),$.then(function(se){(k._status===0||k._status===-1)&&(k._status=1,k._result=se)},function(se){(k._status===0||k._status===-1)&&(k._status=2,k._result=se)}),k._status===-1&&(k._status=0,k._result=$)}if(k._status===1)return k._result.default;throw k._result}var V=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)};function te(){}return Ye.Children={map:j,forEach:function(k,$,se){j(k,function(){$.apply(this,arguments)},se)},count:function(k){var $=0;return j(k,function(){$++}),$},toArray:function(k){return j(k,function($){return $})||[]},only:function(k){if(!L(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},Ye.Component=T,Ye.Fragment=n,Ye.Profiler=a,Ye.PureComponent=C,Ye.StrictMode=r,Ye.Suspense=d,Ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,Ye.__COMPILER_RUNTIME={__proto__:null,c:function(k){return _.H.useMemoCache(k)}},Ye.cache=function(k){return function(){return k.apply(null,arguments)}},Ye.cloneElement=function(k,$,se){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var re=x({},k.props),ue=k.key,xe=void 0;if($!=null)for(fe in $.ref!==void 0&&(xe=void 0),$.key!==void 0&&(ue=""+$.key),$)!O.call($,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&$.ref===void 0||(re[fe]=$[fe]);var fe=arguments.length-2;if(fe===1)re.children=se;else if(1<fe){for(var he=Array(fe),ge=0;ge<fe;ge++)he[ge]=arguments[ge+2];re.children=he}return D(k.type,ue,void 0,void 0,xe,re)},Ye.createContext=function(k){return k={$$typeof:i,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},Ye.createElement=function(k,$,se){var re,ue={},xe=null;if($!=null)for(re in $.key!==void 0&&(xe=""+$.key),$)O.call($,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(ue[re]=$[re]);var fe=arguments.length-2;if(fe===1)ue.children=se;else if(1<fe){for(var he=Array(fe),ge=0;ge<fe;ge++)he[ge]=arguments[ge+2];ue.children=he}if(k&&k.defaultProps)for(re in fe=k.defaultProps,fe)ue[re]===void 0&&(ue[re]=fe[re]);return D(k,xe,void 0,void 0,null,ue)},Ye.createRef=function(){return{current:null}},Ye.forwardRef=function(k){return{$$typeof:u,render:k}},Ye.isValidElement=L,Ye.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:Y}},Ye.memo=function(k,$){return{$$typeof:f,type:k,compare:$===void 0?null:$}},Ye.startTransition=function(k){var $=_.T,se={};_.T=se;try{var re=k(),ue=_.S;ue!==null&&ue(se,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(te,V)}catch(xe){V(xe)}finally{_.T=$}},Ye.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},Ye.use=function(k){return _.H.use(k)},Ye.useActionState=function(k,$,se){return _.H.useActionState(k,$,se)},Ye.useCallback=function(k,$){return _.H.useCallback(k,$)},Ye.useContext=function(k){return _.H.useContext(k)},Ye.useDebugValue=function(){},Ye.useDeferredValue=function(k,$){return _.H.useDeferredValue(k,$)},Ye.useEffect=function(k,$,se){var re=_.H;if(typeof se=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return re.useEffect(k,$)},Ye.useId=function(){return _.H.useId()},Ye.useImperativeHandle=function(k,$,se){return _.H.useImperativeHandle(k,$,se)},Ye.useInsertionEffect=function(k,$){return _.H.useInsertionEffect(k,$)},Ye.useLayoutEffect=function(k,$){return _.H.useLayoutEffect(k,$)},Ye.useMemo=function(k,$){return _.H.useMemo(k,$)},Ye.useOptimistic=function(k,$){return _.H.useOptimistic(k,$)},Ye.useReducer=function(k,$,se){return _.H.useReducer(k,$,se)},Ye.useRef=function(k){return _.H.useRef(k)},Ye.useState=function(k){return _.H.useState(k)},Ye.useSyncExternalStore=function(k,$,se){return _.H.useSyncExternalStore(k,$,se)},Ye.useTransition=function(){return _.H.useTransition()},Ye.version="19.1.0",Ye}var IC;function Pp(){return IC||(IC=1,Jv.exports=PF()),Jv.exports}var S=Pp();const z=zd(S),WM=OF({__proto__:null,default:z},[S]);var ey={exports:{}},Wu={},ty={exports:{}},ny={};/**
 * @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 PC;function jF(){return PC||(PC=1,function(e){function t(j,Y){var V=j.length;j.push(Y);e:for(;0<V;){var te=V-1>>>1,k=j[te];if(0<a(k,Y))j[te]=Y,j[V]=k,V=te;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var Y=j[0],V=j.pop();if(V!==Y){j[0]=V;e:for(var te=0,k=j.length,$=k>>>1;te<$;){var se=2*(te+1)-1,re=j[se],ue=se+1,xe=j[ue];if(0>a(re,V))ue<k&&0>a(xe,re)?(j[te]=xe,j[ue]=V,te=ue):(j[te]=re,j[se]=V,te=se);else if(ue<k&&0>a(xe,V))j[te]=xe,j[ue]=V,te=ue;else break e}}return Y}function a(j,Y){var V=j.sortIndex-Y.sortIndex;return V!==0?V:j.id-Y.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 i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var d=[],f=[],m=1,p=null,v=3,y=!1,x=!1,b=!1,T=!1,N=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function R(j){for(var Y=n(f);Y!==null;){if(Y.callback===null)r(f);else if(Y.startTime<=j)r(f),Y.sortIndex=Y.expirationTime,t(d,Y);else break;Y=n(f)}}function _(j){if(b=!1,R(j),!x)if(n(d)!==null)x=!0,O||(O=!0,H());else{var Y=n(f);Y!==null&&Q(_,Y.startTime-j)}}var O=!1,D=-1,P=5,L=-1;function U(){return T?!0:!(e.unstable_now()-L<P)}function B(){if(T=!1,O){var j=e.unstable_now();L=j;var Y=!0;try{e:{x=!1,b&&(b=!1,C(D),D=-1),y=!0;var V=v;try{t:{for(R(j),p=n(d);p!==null&&!(p.expirationTime>j&&U());){var te=p.callback;if(typeof te=="function"){p.callback=null,v=p.priorityLevel;var k=te(p.expirationTime<=j);if(j=e.unstable_now(),typeof k=="function"){p.callback=k,R(j),Y=!0;break t}p===n(d)&&r(d),R(j)}else r(d);p=n(d)}if(p!==null)Y=!0;else{var $=n(f);$!==null&&Q(_,$.startTime-j),Y=!1}}break e}finally{p=null,v=V,y=!1}Y=void 0}}finally{Y?H():O=!1}}}var H;if(typeof A=="function")H=function(){A(B)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,ee=Z.port2;Z.port1.onmessage=B,H=function(){ee.postMessage(null)}}else H=function(){N(B,0)};function Q(j,Y){D=N(function(){j(e.unstable_now())},Y)}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(j){j.callback=null},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(j){switch(v){case 1:case 2:case 3:var Y=3;break;default:Y=v}var V=v;v=Y;try{return j()}finally{v=V}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(j,Y){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var V=v;v=j;try{return Y()}finally{v=V}},e.unstable_scheduleCallback=function(j,Y,V){var te=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?te+V:te):V=te,j){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=V+k,j={id:m++,callback:Y,priorityLevel:j,startTime:V,expirationTime:k,sortIndex:-1},V>te?(j.sortIndex=V,t(f,j),n(d)===null&&j===n(f)&&(b?(C(D),D=-1):b=!0,Q(_,V-te))):(j.sortIndex=k,t(d,j),x||y||(x=!0,O||(O=!0,H()))),j},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(j){var Y=v;return function(){var V=v;v=Y;try{return j.apply(this,arguments)}finally{v=V}}}}(ny)),ny}var jC;function LF(){return jC||(jC=1,ty.exports=jF()),ty.exports}var ry={exports:{}},Yn={};/**
 * @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 LC;function kF(){if(LC)return Yn;LC=1;var e=Pp();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" 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(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Yn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Yn.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,m)},Yn.flushSync=function(d){var f=i.T,m=r.p;try{if(i.T=null,r.p=2,d)return d()}finally{i.T=f,r.p=m,r.d.f()}},Yn.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},Yn.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Yn.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin),v=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:v,fetchPriority:y}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:v,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Yn.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},Yn.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Yn.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},Yn.requestFormReset=function(d){r.d.r(d)},Yn.unstable_batchedUpdates=function(d,f){return d(f)},Yn.useFormState=function(d,f,m){return i.H.useFormState(d,f,m)},Yn.useFormStatus=function(){return i.H.useHostTransitionStatus()},Yn.version="19.1.0",Yn}var kC;function KM(){if(kC)return ry.exports;kC=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(),ry.exports=kF(),ry.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 UC;function UF(){if(UC)return Wu;UC=1;var e=LF(),t=Pp(),n=KM();function r(o){var l="https://react.dev/errors/"+o;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)l+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var l=o,h=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(h=l.return),o=l.return;while(o)}return l.tag===3?h:null}function i(o){if(o.tag===13){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function u(o){if(s(o)!==o)throw Error(r(188))}function d(o){var l=o.alternate;if(!l){if(l=s(o),l===null)throw Error(r(188));return l!==o?null:o}for(var h=o,g=l;;){var E=h.return;if(E===null)break;var w=E.alternate;if(w===null){if(g=E.return,g!==null){h=g;continue}break}if(E.child===w.child){for(w=E.child;w;){if(w===h)return u(E),o;if(w===g)return u(E),l;w=w.sibling}throw Error(r(188))}if(h.return!==g.return)h=E,g=w;else{for(var M=!1,I=E.child;I;){if(I===h){M=!0,h=E,g=w;break}if(I===g){M=!0,g=E,h=w;break}I=I.sibling}if(!M){for(I=w.child;I;){if(I===h){M=!0,h=w,g=E;break}if(I===g){M=!0,g=w,h=E;break}I=I.sibling}if(!M)throw Error(r(189))}}if(h.alternate!==g)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?o:l}function f(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o;for(o=o.child;o!==null;){if(l=f(o),l!==null)return l;o=o.sibling}return null}var m=Object.assign,p=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),A=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function H(o){return o===null||typeof o!="object"?null:(o=B&&o[B]||o["@@iterator"],typeof o=="function"?o:null)}var Z=Symbol.for("react.client.reference");function ee(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===Z?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case x:return"Fragment";case T:return"Profiler";case b:return"StrictMode";case _:return"Suspense";case O:return"SuspenseList";case L:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case y:return"Portal";case A:return(o.displayName||"Context")+".Provider";case C:return(o._context.displayName||"Context")+".Consumer";case R:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case D:return l=o.displayName||null,l!==null?l:ee(o.type)||"Memo";case P:l=o._payload,o=o._init;try{return ee(o(l))}catch{}}return null}var Q=Array.isArray,j=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},te=[],k=-1;function $(o){return{current:o}}function se(o){0>k||(o.current=te[k],te[k]=null,k--)}function re(o,l){k++,te[k]=o.current,o.current=l}var ue=$(null),xe=$(null),fe=$(null),he=$(null);function ge(o,l){switch(re(fe,l),re(xe,o),re(ue,null),l.nodeType){case 9:case 11:o=(o=l.documentElement)&&(o=o.namespaceURI)?rC(o):0;break;default:if(o=l.tagName,l=l.namespaceURI)l=rC(l),o=aC(l,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}se(ue),re(ue,o)}function Ne(){se(ue),se(xe),se(fe)}function Ae(o){o.memoizedState!==null&&re(he,o);var l=ue.current,h=aC(l,o.type);l!==h&&(re(xe,o),re(ue,h))}function Me(o){xe.current===o&&(se(ue),se(xe)),he.current===o&&(se(he),Vu._currentValue=V)}var He=Object.prototype.hasOwnProperty,Ft=e.unstable_scheduleCallback,dt=e.unstable_cancelCallback,On=e.unstable_shouldYield,tr=e.unstable_requestPaint,yt=e.unstable_now,oa=e.unstable_getCurrentPriorityLevel,Wt=e.unstable_ImmediatePriority,Bt=e.unstable_UserBlockingPriority,Dn=e.unstable_NormalPriority,ln=e.unstable_LowPriority,Sn=e.unstable_IdlePriority,Ys=e.log,us=e.unstable_setDisableYieldValue,Br=null,In=null;function wr(o){if(typeof Ys=="function"&&us(o),In&&typeof In.setStrictMode=="function")try{In.setStrictMode(Br,o)}catch{}}var hn=Math.clz32?Math.clz32:Ia,Da=Math.log,ri=Math.LN2;function Ia(o){return o>>>=0,o===0?32:31-(Da(o)/ri|0)|0}var ze=256,xt=4194304;function Je(o){var l=o&42;if(l!==0)return l;switch(o&-o){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:case 262144:case 524288:case 1048576:case 2097152:return o&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function zn(o,l,h){var g=o.pendingLanes;if(g===0)return 0;var E=0,w=o.suspendedLanes,M=o.pingedLanes;o=o.warmLanes;var I=g&134217727;return I!==0?(g=I&~w,g!==0?E=Je(g):(M&=I,M!==0?E=Je(M):h||(h=I&~o,h!==0&&(E=Je(h))))):(I=g&~w,I!==0?E=Je(I):M!==0?E=Je(M):h||(h=g&~o,h!==0&&(E=Je(h)))),E===0?0:l!==0&&l!==E&&(l&w)===0&&(w=E&-E,h=l&-l,w>=h||w===32&&(h&4194048)!==0)?l:E}function mn(o,l){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&l)===0}function Pa(o,l){switch(o){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 bt(){var o=ze;return ze<<=1,(ze&4194048)===0&&(ze=256),o}function nr(){var o=xt;return xt<<=1,(xt&62914560)===0&&(xt=4194304),o}function nt(o){for(var l=[],h=0;31>h;h++)l.push(o);return l}function ja(o,l){o.pendingLanes|=l,l!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function ol(o,l,h,g,E,w){var M=o.pendingLanes;o.pendingLanes=h,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=h,o.entangledLanes&=h,o.errorRecoveryDisabledLanes&=h,o.shellSuspendCounter=0;var I=o.entanglements,F=o.expirationTimes,K=o.hiddenUpdates;for(h=M&~h;0<h;){var oe=31-hn(h),ce=1<<oe;I[oe]=0,F[oe]=-1;var J=K[oe];if(J!==null)for(K[oe]=null,oe=0;oe<J.length;oe++){var ne=J[oe];ne!==null&&(ne.lane&=-536870913)}h&=~ce}g!==0&&Ve(o,g,0),w!==0&&E===0&&o.tag!==0&&(o.suspendedLanes|=w&~(M&~l))}function Ve(o,l,h){o.pendingLanes|=l,o.suspendedLanes&=~l;var g=31-hn(l);o.entangledLanes|=l,o.entanglements[g]=o.entanglements[g]|1073741824|h&4194090}function jt(o,l){var h=o.entangledLanes|=l;for(o=o.entanglements;h;){var g=31-hn(h),E=1<<g;E&l|o[g]&l&&(o[g]|=l),h&=~E}}function Ht(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function Pn(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function ai(){var o=Y.p;return o!==0?o:(o=window.event,o===void 0?32:TC(o.type))}function pn(o,l){var h=Y.p;try{return Y.p=o,l()}finally{Y.p=h}}var nn=Math.random().toString(36).slice(2),rn="__reactFiber$"+nn,Ot="__reactProps$"+nn,Tn="__reactContainer$"+nn,il="__reactEvents$"+nn,ds="__reactListeners$"+nn,zS="__reactHandles$"+nn,$S="__reactResources$"+nn,Jc="__reactMarker$"+nn;function zg(o){delete o[rn],delete o[Ot],delete o[il],delete o[ds],delete o[zS]}function ll(o){var l=o[rn];if(l)return l;for(var h=o.parentNode;h;){if(l=h[Tn]||h[rn]){if(h=l.alternate,l.child!==null||h!==null&&h.child!==null)for(o=lC(o);o!==null;){if(h=o[rn])return h;o=lC(o)}return l}o=h,h=o.parentNode}return null}function cl(o){if(o=o[rn]||o[Tn]){var l=o.tag;if(l===5||l===6||l===13||l===26||l===27||l===3)return o}return null}function eu(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o.stateNode;throw Error(r(33))}function ul(o){var l=o[$S];return l||(l=o[$S]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Nn(o){o[Jc]=!0}var qS=new Set,YS={};function si(o,l){dl(o,l),dl(o+"Capture",l)}function dl(o,l){for(YS[o]=l,o=0;o<l.length;o++)qS.add(l[o])}var E4=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]*$"),WS={},KS={};function S4(o){return He.call(KS,o)?!0:He.call(WS,o)?!1:E4.test(o)?KS[o]=!0:(WS[o]=!0,!1)}function If(o,l,h){if(S4(l))if(h===null)o.removeAttribute(l);else{switch(typeof h){case"undefined":case"function":case"symbol":o.removeAttribute(l);return;case"boolean":var g=l.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){o.removeAttribute(l);return}}o.setAttribute(l,""+h)}}function Pf(o,l,h){if(h===null)o.removeAttribute(l);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttribute(l,""+h)}}function fs(o,l,h,g){if(g===null)o.removeAttribute(h);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(h);return}o.setAttributeNS(l,h,""+g)}}var $g,XS;function fl(o){if($g===void 0)try{throw Error()}catch(h){var l=h.stack.trim().match(/\n( *(at )?)/);$g=l&&l[1]||"",XS=-1<h.stack.indexOf(`
    at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
`+$g+o+XS}var qg=!1;function Yg(o,l){if(!o||qg)return"";qg=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(l){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ne){var J=ne}Reflect.construct(o,[],ce)}else{try{ce.call()}catch(ne){J=ne}o.call(ce.prototype)}}else{try{throw Error()}catch(ne){J=ne}(ce=o())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(ne){if(ne&&J&&typeof ne.stack=="string")return[ne.stack,J.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=g.DetermineComponentFrameRoot(),M=w[0],I=w[1];if(M&&I){var F=M.split(`
`),K=I.split(`
`);for(E=g=0;g<F.length&&!F[g].includes("DetermineComponentFrameRoot");)g++;for(;E<K.length&&!K[E].includes("DetermineComponentFrameRoot");)E++;if(g===F.length||E===K.length)for(g=F.length-1,E=K.length-1;1<=g&&0<=E&&F[g]!==K[E];)E--;for(;1<=g&&0<=E;g--,E--)if(F[g]!==K[E]){if(g!==1||E!==1)do if(g--,E--,0>E||F[g]!==K[E]){var oe=`
`+F[g].replace(" at new "," at ");return o.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",o.displayName)),oe}while(1<=g&&0<=E);break}}}finally{qg=!1,Error.prepareStackTrace=h}return(h=o?o.displayName||o.name:"")?fl(h):""}function T4(o){switch(o.tag){case 26:case 27:case 5:return fl(o.type);case 16:return fl("Lazy");case 13:return fl("Suspense");case 19:return fl("SuspenseList");case 0:case 15:return Yg(o.type,!1);case 11:return Yg(o.type.render,!1);case 1:return Yg(o.type,!0);case 31:return fl("Activity");default:return""}}function QS(o){try{var l="";do l+=T4(o),o=o.return;while(o);return l}catch(h){return`
Error generating stack: `+h.message+`
`+h.stack}}function Hr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function ZS(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function N4(o){var l=ZS(o)?"checked":"value",h=Object.getOwnPropertyDescriptor(o.constructor.prototype,l),g=""+o[l];if(!o.hasOwnProperty(l)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var E=h.get,w=h.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return E.call(this)},set:function(M){g=""+M,w.call(this,M)}}),Object.defineProperty(o,l,{enumerable:h.enumerable}),{getValue:function(){return g},setValue:function(M){g=""+M},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function jf(o){o._valueTracker||(o._valueTracker=N4(o))}function JS(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var h=l.getValue(),g="";return o&&(g=ZS(o)?o.checked?"true":"false":o.value),o=g,o!==h?(l.setValue(o),!0):!1}function Lf(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var w4=/[\n"\\]/g;function Vr(o){return o.replace(w4,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Wg(o,l,h,g,E,w,M,I){o.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?o.type=M:o.removeAttribute("type"),l!=null?M==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+Hr(l)):o.value!==""+Hr(l)&&(o.value=""+Hr(l)):M!=="submit"&&M!=="reset"||o.removeAttribute("value"),l!=null?Kg(o,M,Hr(l)):h!=null?Kg(o,M,Hr(h)):g!=null&&o.removeAttribute("value"),E==null&&w!=null&&(o.defaultChecked=!!w),E!=null&&(o.checked=E&&typeof E!="function"&&typeof E!="symbol"),I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?o.name=""+Hr(I):o.removeAttribute("name")}function eT(o,l,h,g,E,w,M,I){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(o.type=w),l!=null||h!=null){if(!(w!=="submit"&&w!=="reset"||l!=null))return;h=h!=null?""+Hr(h):"",l=l!=null?""+Hr(l):h,I||l===o.value||(o.value=l),o.defaultValue=l}g=g??E,g=typeof g!="function"&&typeof g!="symbol"&&!!g,o.checked=I?o.checked:!!g,o.defaultChecked=!!g,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(o.name=M)}function Kg(o,l,h){l==="number"&&Lf(o.ownerDocument)===o||o.defaultValue===""+h||(o.defaultValue=""+h)}function hl(o,l,h,g){if(o=o.options,l){l={};for(var E=0;E<h.length;E++)l["$"+h[E]]=!0;for(h=0;h<o.length;h++)E=l.hasOwnProperty("$"+o[h].value),o[h].selected!==E&&(o[h].selected=E),E&&g&&(o[h].defaultSelected=!0)}else{for(h=""+Hr(h),l=null,E=0;E<o.length;E++){if(o[E].value===h){o[E].selected=!0,g&&(o[E].defaultSelected=!0);return}l!==null||o[E].disabled||(l=o[E])}l!==null&&(l.selected=!0)}}function tT(o,l,h){if(l!=null&&(l=""+Hr(l),l!==o.value&&(o.value=l),h==null)){o.defaultValue!==l&&(o.defaultValue=l);return}o.defaultValue=h!=null?""+Hr(h):""}function nT(o,l,h,g){if(l==null){if(g!=null){if(h!=null)throw Error(r(92));if(Q(g)){if(1<g.length)throw Error(r(93));g=g[0]}h=g}h==null&&(h=""),l=h}h=Hr(l),o.defaultValue=h,g=o.textContent,g===h&&g!==""&&g!==null&&(o.value=g)}function ml(o,l){if(l){var h=o.firstChild;if(h&&h===o.lastChild&&h.nodeType===3){h.nodeValue=l;return}}o.textContent=l}var C4=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 rT(o,l,h){var g=l.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?g?o.setProperty(l,""):l==="float"?o.cssFloat="":o[l]="":g?o.setProperty(l,h):typeof h!="number"||h===0||C4.has(l)?l==="float"?o.cssFloat=h:o[l]=(""+h).trim():o[l]=h+"px"}function aT(o,l,h){if(l!=null&&typeof l!="object")throw Error(r(62));if(o=o.style,h!=null){for(var g in h)!h.hasOwnProperty(g)||l!=null&&l.hasOwnProperty(g)||(g.indexOf("--")===0?o.setProperty(g,""):g==="float"?o.cssFloat="":o[g]="");for(var E in l)g=l[E],l.hasOwnProperty(E)&&h[E]!==g&&rT(o,E,g)}else for(var w in l)l.hasOwnProperty(w)&&rT(o,w,l[w])}function Xg(o){if(o.indexOf("-")===-1)return!1;switch(o){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 A4=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"]]),_4=/^[\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 kf(o){return _4.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}var Qg=null;function Zg(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var pl=null,gl=null;function sT(o){var l=cl(o);if(l&&(o=l.stateNode)){var h=o[Ot]||null;e:switch(o=l.stateNode,l.type){case"input":if(Wg(o,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),l=h.name,h.type==="radio"&&l!=null){for(h=o;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+Vr(""+l)+'"][type="radio"]'),l=0;l<h.length;l++){var g=h[l];if(g!==o&&g.form===o.form){var E=g[Ot]||null;if(!E)throw Error(r(90));Wg(g,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(l=0;l<h.length;l++)g=h[l],g.form===o.form&&JS(g)}break e;case"textarea":tT(o,h.value,h.defaultValue);break e;case"select":l=h.value,l!=null&&hl(o,!!h.multiple,l,!1)}}}var Jg=!1;function oT(o,l,h){if(Jg)return o(l,h);Jg=!0;try{var g=o(l);return g}finally{if(Jg=!1,(pl!==null||gl!==null)&&(Sh(),pl&&(l=pl,o=gl,gl=pl=null,sT(l),o)))for(l=0;l<o.length;l++)sT(o[l])}}function tu(o,l){var h=o.stateNode;if(h===null)return null;var g=h[Ot]||null;if(g===null)return null;h=g[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":(g=!g.disabled)||(o=o.type,g=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!g;break e;default:o=!1}if(o)return null;if(h&&typeof h!="function")throw Error(r(231,l,typeof h));return h}var hs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),e0=!1;if(hs)try{var nu={};Object.defineProperty(nu,"passive",{get:function(){e0=!0}}),window.addEventListener("test",nu,nu),window.removeEventListener("test",nu,nu)}catch{e0=!1}var Ws=null,t0=null,Uf=null;function iT(){if(Uf)return Uf;var o,l=t0,h=l.length,g,E="value"in Ws?Ws.value:Ws.textContent,w=E.length;for(o=0;o<h&&l[o]===E[o];o++);var M=h-o;for(g=1;g<=M&&l[h-g]===E[w-g];g++);return Uf=E.slice(o,1<g?1-g:void 0)}function Ff(o){var l=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&l===13&&(o=13)):o=l,o===10&&(o=13),32<=o||o===13?o:0}function Bf(){return!0}function lT(){return!1}function pr(o){function l(h,g,E,w,M){this._reactName=h,this._targetInst=E,this.type=g,this.nativeEvent=w,this.target=M,this.currentTarget=null;for(var I in o)o.hasOwnProperty(I)&&(h=o[I],this[I]=h?h(w):w[I]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?Bf:lT,this.isPropagationStopped=lT,this}return m(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=Bf)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=Bf)},persist:function(){},isPersistent:Bf}),l}var oi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hf=pr(oi),ru=m({},oi,{view:0,detail:0}),R4=pr(ru),n0,r0,au,Vf=m({},ru,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:s0,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==au&&(au&&o.type==="mousemove"?(n0=o.screenX-au.screenX,r0=o.screenY-au.screenY):r0=n0=0,au=o),n0)},movementY:function(o){return"movementY"in o?o.movementY:r0}}),cT=pr(Vf),M4=m({},Vf,{dataTransfer:0}),O4=pr(M4),D4=m({},ru,{relatedTarget:0}),a0=pr(D4),I4=m({},oi,{animationName:0,elapsedTime:0,pseudoElement:0}),P4=pr(I4),j4=m({},oi,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),L4=pr(j4),k4=m({},oi,{data:0}),uT=pr(k4),U4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},F4={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"},B4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function H4(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=B4[o])?!!l[o]:!1}function s0(){return H4}var V4=m({},ru,{key:function(o){if(o.key){var l=U4[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=Ff(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?F4[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:s0,charCode:function(o){return o.type==="keypress"?Ff(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Ff(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),G4=pr(V4),z4=m({},Vf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dT=pr(z4),$4=m({},ru,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:s0}),q4=pr($4),Y4=m({},oi,{propertyName:0,elapsedTime:0,pseudoElement:0}),W4=pr(Y4),K4=m({},Vf,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),X4=pr(K4),Q4=m({},oi,{newState:0,oldState:0}),Z4=pr(Q4),J4=[9,13,27,32],o0=hs&&"CompositionEvent"in window,su=null;hs&&"documentMode"in document&&(su=document.documentMode);var eU=hs&&"TextEvent"in window&&!su,fT=hs&&(!o0||su&&8<su&&11>=su),hT=" ",mT=!1;function pT(o,l){switch(o){case"keyup":return J4.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gT(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var vl=!1;function tU(o,l){switch(o){case"compositionend":return gT(l);case"keypress":return l.which!==32?null:(mT=!0,hT);case"textInput":return o=l.data,o===hT&&mT?null:o;default:return null}}function nU(o,l){if(vl)return o==="compositionend"||!o0&&pT(o,l)?(o=iT(),Uf=t0=Ws=null,vl=!1,o):null;switch(o){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 fT&&l.locale!=="ko"?null:l.data;default:return null}}var rU={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 vT(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!rU[o.type]:l==="textarea"}function yT(o,l,h,g){pl?gl?gl.push(g):gl=[g]:pl=g,l=_h(l,"onChange"),0<l.length&&(h=new Hf("onChange","change",null,h,g),o.push({event:h,listeners:l}))}var ou=null,iu=null;function aU(o){Zw(o,0)}function Gf(o){var l=eu(o);if(JS(l))return o}function xT(o,l){if(o==="change")return l}var bT=!1;if(hs){var i0;if(hs){var l0="oninput"in document;if(!l0){var ET=document.createElement("div");ET.setAttribute("oninput","return;"),l0=typeof ET.oninput=="function"}i0=l0}else i0=!1;bT=i0&&(!document.documentMode||9<document.documentMode)}function ST(){ou&&(ou.detachEvent("onpropertychange",TT),iu=ou=null)}function TT(o){if(o.propertyName==="value"&&Gf(iu)){var l=[];yT(l,iu,o,Zg(o)),oT(aU,l)}}function sU(o,l,h){o==="focusin"?(ST(),ou=l,iu=h,ou.attachEvent("onpropertychange",TT)):o==="focusout"&&ST()}function oU(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Gf(iu)}function iU(o,l){if(o==="click")return Gf(l)}function lU(o,l){if(o==="input"||o==="change")return Gf(l)}function cU(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var Cr=typeof Object.is=="function"?Object.is:cU;function lu(o,l){if(Cr(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var h=Object.keys(o),g=Object.keys(l);if(h.length!==g.length)return!1;for(g=0;g<h.length;g++){var E=h[g];if(!He.call(l,E)||!Cr(o[E],l[E]))return!1}return!0}function NT(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function wT(o,l){var h=NT(o);o=0;for(var g;h;){if(h.nodeType===3){if(g=o+h.textContent.length,o<=l&&g>=l)return{node:h,offset:l-o};o=g}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=NT(h)}}function CT(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?CT(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function AT(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var l=Lf(o.document);l instanceof o.HTMLIFrameElement;){try{var h=typeof l.contentWindow.location.href=="string"}catch{h=!1}if(h)o=l.contentWindow;else break;l=Lf(o.document)}return l}function c0(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}var uU=hs&&"documentMode"in document&&11>=document.documentMode,yl=null,u0=null,cu=null,d0=!1;function _T(o,l,h){var g=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;d0||yl==null||yl!==Lf(g)||(g=yl,"selectionStart"in g&&c0(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),cu&&lu(cu,g)||(cu=g,g=_h(u0,"onSelect"),0<g.length&&(l=new Hf("onSelect","select",null,l,h),o.push({event:l,listeners:g}),l.target=yl)))}function ii(o,l){var h={};return h[o.toLowerCase()]=l.toLowerCase(),h["Webkit"+o]="webkit"+l,h["Moz"+o]="moz"+l,h}var xl={animationend:ii("Animation","AnimationEnd"),animationiteration:ii("Animation","AnimationIteration"),animationstart:ii("Animation","AnimationStart"),transitionrun:ii("Transition","TransitionRun"),transitionstart:ii("Transition","TransitionStart"),transitioncancel:ii("Transition","TransitionCancel"),transitionend:ii("Transition","TransitionEnd")},f0={},RT={};hs&&(RT=document.createElement("div").style,"AnimationEvent"in window||(delete xl.animationend.animation,delete xl.animationiteration.animation,delete xl.animationstart.animation),"TransitionEvent"in window||delete xl.transitionend.transition);function li(o){if(f0[o])return f0[o];if(!xl[o])return o;var l=xl[o],h;for(h in l)if(l.hasOwnProperty(h)&&h in RT)return f0[o]=l[h];return o}var MT=li("animationend"),OT=li("animationiteration"),DT=li("animationstart"),dU=li("transitionrun"),fU=li("transitionstart"),hU=li("transitioncancel"),IT=li("transitionend"),PT=new Map,h0="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(" ");h0.push("scrollEnd");function ia(o,l){PT.set(o,l),si(l,[o])}var jT=new WeakMap;function Gr(o,l){if(typeof o=="object"&&o!==null){var h=jT.get(o);return h!==void 0?h:(l={value:o,source:l,stack:QS(l)},jT.set(o,l),l)}return{value:o,source:l,stack:QS(l)}}var zr=[],bl=0,m0=0;function zf(){for(var o=bl,l=m0=bl=0;l<o;){var h=zr[l];zr[l++]=null;var g=zr[l];zr[l++]=null;var E=zr[l];zr[l++]=null;var w=zr[l];if(zr[l++]=null,g!==null&&E!==null){var M=g.pending;M===null?E.next=E:(E.next=M.next,M.next=E),g.pending=E}w!==0&&LT(h,E,w)}}function $f(o,l,h,g){zr[bl++]=o,zr[bl++]=l,zr[bl++]=h,zr[bl++]=g,m0|=g,o.lanes|=g,o=o.alternate,o!==null&&(o.lanes|=g)}function p0(o,l,h,g){return $f(o,l,h,g),qf(o)}function El(o,l){return $f(o,null,null,l),qf(o)}function LT(o,l,h){o.lanes|=h;var g=o.alternate;g!==null&&(g.lanes|=h);for(var E=!1,w=o.return;w!==null;)w.childLanes|=h,g=w.alternate,g!==null&&(g.childLanes|=h),w.tag===22&&(o=w.stateNode,o===null||o._visibility&1||(E=!0)),o=w,w=w.return;return o.tag===3?(w=o.stateNode,E&&l!==null&&(E=31-hn(h),o=w.hiddenUpdates,g=o[E],g===null?o[E]=[l]:g.push(l),l.lane=h|536870912),w):null}function qf(o){if(50<Pu)throw Pu=0,Ev=null,Error(r(185));for(var l=o.return;l!==null;)o=l,l=o.return;return o.tag===3?o.stateNode:null}var Sl={};function mU(o,l,h,g){this.tag=o,this.key=h,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=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ar(o,l,h,g){return new mU(o,l,h,g)}function g0(o){return o=o.prototype,!(!o||!o.isReactComponent)}function ms(o,l){var h=o.alternate;return h===null?(h=Ar(o.tag,l,o.key,o.mode),h.elementType=o.elementType,h.type=o.type,h.stateNode=o.stateNode,h.alternate=o,o.alternate=h):(h.pendingProps=l,h.type=o.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=o.flags&65011712,h.childLanes=o.childLanes,h.lanes=o.lanes,h.child=o.child,h.memoizedProps=o.memoizedProps,h.memoizedState=o.memoizedState,h.updateQueue=o.updateQueue,l=o.dependencies,h.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},h.sibling=o.sibling,h.index=o.index,h.ref=o.ref,h.refCleanup=o.refCleanup,h}function kT(o,l){o.flags&=65011714;var h=o.alternate;return h===null?(o.childLanes=0,o.lanes=l,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=h.childLanes,o.lanes=h.lanes,o.child=h.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=h.memoizedProps,o.memoizedState=h.memoizedState,o.updateQueue=h.updateQueue,o.type=h.type,l=h.dependencies,o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),o}function Yf(o,l,h,g,E,w){var M=0;if(g=o,typeof o=="function")g0(o)&&(M=1);else if(typeof o=="string")M=gF(o,h,ue.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case L:return o=Ar(31,h,l,E),o.elementType=L,o.lanes=w,o;case x:return ci(h.children,E,w,l);case b:M=8,E|=24;break;case T:return o=Ar(12,h,l,E|2),o.elementType=T,o.lanes=w,o;case _:return o=Ar(13,h,l,E),o.elementType=_,o.lanes=w,o;case O:return o=Ar(19,h,l,E),o.elementType=O,o.lanes=w,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case N:case A:M=10;break e;case C:M=9;break e;case R:M=11;break e;case D:M=14;break e;case P:M=16,g=null;break e}M=29,h=Error(r(130,o===null?"null":typeof o,"")),g=null}return l=Ar(M,h,l,E),l.elementType=o,l.type=g,l.lanes=w,l}function ci(o,l,h,g){return o=Ar(7,o,g,l),o.lanes=h,o}function v0(o,l,h){return o=Ar(6,o,null,l),o.lanes=h,o}function y0(o,l,h){return l=Ar(4,o.children!==null?o.children:[],o.key,l),l.lanes=h,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}var Tl=[],Nl=0,Wf=null,Kf=0,$r=[],qr=0,ui=null,ps=1,gs="";function di(o,l){Tl[Nl++]=Kf,Tl[Nl++]=Wf,Wf=o,Kf=l}function UT(o,l,h){$r[qr++]=ps,$r[qr++]=gs,$r[qr++]=ui,ui=o;var g=ps;o=gs;var E=32-hn(g)-1;g&=~(1<<E),h+=1;var w=32-hn(l)+E;if(30<w){var M=E-E%5;w=(g&(1<<M)-1).toString(32),g>>=M,E-=M,ps=1<<32-hn(l)+E|h<<E|g,gs=w+o}else ps=1<<w|h<<E|g,gs=o}function x0(o){o.return!==null&&(di(o,1),UT(o,1,0))}function b0(o){for(;o===Wf;)Wf=Tl[--Nl],Tl[Nl]=null,Kf=Tl[--Nl],Tl[Nl]=null;for(;o===ui;)ui=$r[--qr],$r[qr]=null,gs=$r[--qr],$r[qr]=null,ps=$r[--qr],$r[qr]=null}var rr=null,Kt=null,ut=!1,fi=null,La=!1,E0=Error(r(519));function hi(o){var l=Error(r(418,""));throw fu(Gr(l,o)),E0}function FT(o){var l=o.stateNode,h=o.type,g=o.memoizedProps;switch(l[rn]=o,l[Ot]=g,h){case"dialog":tt("cancel",l),tt("close",l);break;case"iframe":case"object":case"embed":tt("load",l);break;case"video":case"audio":for(h=0;h<Lu.length;h++)tt(Lu[h],l);break;case"source":tt("error",l);break;case"img":case"image":case"link":tt("error",l),tt("load",l);break;case"details":tt("toggle",l);break;case"input":tt("invalid",l),eT(l,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0),jf(l);break;case"select":tt("invalid",l);break;case"textarea":tt("invalid",l),nT(l,g.value,g.defaultValue,g.children),jf(l)}h=g.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||l.textContent===""+h||g.suppressHydrationWarning===!0||nC(l.textContent,h)?(g.popover!=null&&(tt("beforetoggle",l),tt("toggle",l)),g.onScroll!=null&&tt("scroll",l),g.onScrollEnd!=null&&tt("scrollend",l),g.onClick!=null&&(l.onclick=Rh),l=!0):l=!1,l||hi(o)}function BT(o){for(rr=o.return;rr;)switch(rr.tag){case 5:case 13:La=!1;return;case 27:case 3:La=!0;return;default:rr=rr.return}}function uu(o){if(o!==rr)return!1;if(!ut)return BT(o),ut=!0,!1;var l=o.tag,h;if((h=l!==3&&l!==27)&&((h=l===5)&&(h=o.type,h=!(h!=="form"&&h!=="button")||kv(o.type,o.memoizedProps)),h=!h),h&&Kt&&hi(o),BT(o),l===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));e:{for(o=o.nextSibling,l=0;o;){if(o.nodeType===8)if(h=o.data,h==="/$"){if(l===0){Kt=ca(o.nextSibling);break e}l--}else h!=="$"&&h!=="$!"&&h!=="$?"||l++;o=o.nextSibling}Kt=null}}else l===27?(l=Kt,uo(o.type)?(o=Hv,Hv=null,Kt=o):Kt=l):Kt=rr?ca(o.stateNode.nextSibling):null;return!0}function du(){Kt=rr=null,ut=!1}function HT(){var o=fi;return o!==null&&(yr===null?yr=o:yr.push.apply(yr,o),fi=null),o}function fu(o){fi===null?fi=[o]:fi.push(o)}var S0=$(null),mi=null,vs=null;function Ks(o,l,h){re(S0,l._currentValue),l._currentValue=h}function ys(o){o._currentValue=S0.current,se(S0)}function T0(o,l,h){for(;o!==null;){var g=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,g!==null&&(g.childLanes|=l)):g!==null&&(g.childLanes&l)!==l&&(g.childLanes|=l),o===h)break;o=o.return}}function N0(o,l,h,g){var E=o.child;for(E!==null&&(E.return=o);E!==null;){var w=E.dependencies;if(w!==null){var M=E.child;w=w.firstContext;e:for(;w!==null;){var I=w;w=E;for(var F=0;F<l.length;F++)if(I.context===l[F]){w.lanes|=h,I=w.alternate,I!==null&&(I.lanes|=h),T0(w.return,h,o),g||(M=null);break e}w=I.next}}else if(E.tag===18){if(M=E.return,M===null)throw Error(r(341));M.lanes|=h,w=M.alternate,w!==null&&(w.lanes|=h),T0(M,h,o),M=null}else M=E.child;if(M!==null)M.return=E;else for(M=E;M!==null;){if(M===o){M=null;break}if(E=M.sibling,E!==null){E.return=M.return,M=E;break}M=M.return}E=M}}function hu(o,l,h,g){o=null;for(var E=l,w=!1;E!==null;){if(!w){if((E.flags&524288)!==0)w=!0;else if((E.flags&262144)!==0)break}if(E.tag===10){var M=E.alternate;if(M===null)throw Error(r(387));if(M=M.memoizedProps,M!==null){var I=E.type;Cr(E.pendingProps.value,M.value)||(o!==null?o.push(I):o=[I])}}else if(E===he.current){if(M=E.alternate,M===null)throw Error(r(387));M.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(o!==null?o.push(Vu):o=[Vu])}E=E.return}o!==null&&N0(l,o,h,g),l.flags|=262144}function Xf(o){for(o=o.firstContext;o!==null;){if(!Cr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function pi(o){mi=o,vs=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function $n(o){return VT(mi,o)}function Qf(o,l){return mi===null&&pi(o),VT(o,l)}function VT(o,l){var h=l._currentValue;if(l={context:l,memoizedValue:h,next:null},vs===null){if(o===null)throw Error(r(308));vs=l,o.dependencies={lanes:0,firstContext:l},o.flags|=524288}else vs=vs.next=l;return h}var pU=typeof AbortController<"u"?AbortController:function(){var o=[],l=this.signal={aborted:!1,addEventListener:function(h,g){o.push(g)}};this.abort=function(){l.aborted=!0,o.forEach(function(h){return h()})}},gU=e.unstable_scheduleCallback,vU=e.unstable_NormalPriority,gn={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function w0(){return{controller:new pU,data:new Map,refCount:0}}function mu(o){o.refCount--,o.refCount===0&&gU(vU,function(){o.controller.abort()})}var pu=null,C0=0,wl=0,Cl=null;function yU(o,l){if(pu===null){var h=pu=[];C0=0,wl=_v(),Cl={status:"pending",value:void 0,then:function(g){h.push(g)}}}return C0++,l.then(GT,GT),l}function GT(){if(--C0===0&&pu!==null){Cl!==null&&(Cl.status="fulfilled");var o=pu;pu=null,wl=0,Cl=null;for(var l=0;l<o.length;l++)(0,o[l])()}}function xU(o,l){var h=[],g={status:"pending",value:null,reason:null,then:function(E){h.push(E)}};return o.then(function(){g.status="fulfilled",g.value=l;for(var E=0;E<h.length;E++)(0,h[E])(l)},function(E){for(g.status="rejected",g.reason=E,E=0;E<h.length;E++)(0,h[E])(void 0)}),g}var zT=j.S;j.S=function(o,l){typeof l=="object"&&l!==null&&typeof l.then=="function"&&yU(o,l),zT!==null&&zT(o,l)};var gi=$(null);function A0(){var o=gi.current;return o!==null?o:Dt.pooledCache}function Zf(o,l){l===null?re(gi,gi.current):re(gi,l.pool)}function $T(){var o=A0();return o===null?null:{parent:gn._currentValue,pool:o}}var gu=Error(r(460)),qT=Error(r(474)),Jf=Error(r(542)),_0={then:function(){}};function YT(o){return o=o.status,o==="fulfilled"||o==="rejected"}function eh(){}function WT(o,l,h){switch(h=o[h],h===void 0?o.push(l):h!==l&&(l.then(eh,eh),l=h),l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,XT(o),o;default:if(typeof l.status=="string")l.then(eh,eh);else{if(o=Dt,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=l,o.status="pending",o.then(function(g){if(l.status==="pending"){var E=l;E.status="fulfilled",E.value=g}},function(g){if(l.status==="pending"){var E=l;E.status="rejected",E.reason=g}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,XT(o),o}throw vu=l,gu}}var vu=null;function KT(){if(vu===null)throw Error(r(459));var o=vu;return vu=null,o}function XT(o){if(o===gu||o===Jf)throw Error(r(483))}var Xs=!1;function R0(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function M0(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Qs(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Zs(o,l,h){var g=o.updateQueue;if(g===null)return null;if(g=g.shared,(mt&2)!==0){var E=g.pending;return E===null?l.next=l:(l.next=E.next,E.next=l),g.pending=l,l=qf(o),LT(o,null,h),l}return $f(o,g,l,h),qf(o)}function yu(o,l,h){if(l=l.updateQueue,l!==null&&(l=l.shared,(h&4194048)!==0)){var g=l.lanes;g&=o.pendingLanes,h|=g,l.lanes=h,jt(o,h)}}function O0(o,l){var h=o.updateQueue,g=o.alternate;if(g!==null&&(g=g.updateQueue,h===g)){var E=null,w=null;if(h=h.firstBaseUpdate,h!==null){do{var M={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};w===null?E=w=M:w=w.next=M,h=h.next}while(h!==null);w===null?E=w=l:w=w.next=l}else E=w=l;h={baseState:g.baseState,firstBaseUpdate:E,lastBaseUpdate:w,shared:g.shared,callbacks:g.callbacks},o.updateQueue=h;return}o=h.lastBaseUpdate,o===null?h.firstBaseUpdate=l:o.next=l,h.lastBaseUpdate=l}var D0=!1;function xu(){if(D0){var o=Cl;if(o!==null)throw o}}function bu(o,l,h,g){D0=!1;var E=o.updateQueue;Xs=!1;var w=E.firstBaseUpdate,M=E.lastBaseUpdate,I=E.shared.pending;if(I!==null){E.shared.pending=null;var F=I,K=F.next;F.next=null,M===null?w=K:M.next=K,M=F;var oe=o.alternate;oe!==null&&(oe=oe.updateQueue,I=oe.lastBaseUpdate,I!==M&&(I===null?oe.firstBaseUpdate=K:I.next=K,oe.lastBaseUpdate=F))}if(w!==null){var ce=E.baseState;M=0,oe=K=F=null,I=w;do{var J=I.lane&-536870913,ne=J!==I.lane;if(ne?(at&J)===J:(g&J)===J){J!==0&&J===wl&&(D0=!0),oe!==null&&(oe=oe.next={lane:0,tag:I.tag,payload:I.payload,callback:null,next:null});e:{var je=o,_e=I;J=l;var Tt=h;switch(_e.tag){case 1:if(je=_e.payload,typeof je=="function"){ce=je.call(Tt,ce,J);break e}ce=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=_e.payload,J=typeof je=="function"?je.call(Tt,ce,J):je,J==null)break e;ce=m({},ce,J);break e;case 2:Xs=!0}}J=I.callback,J!==null&&(o.flags|=64,ne&&(o.flags|=8192),ne=E.callbacks,ne===null?E.callbacks=[J]:ne.push(J))}else ne={lane:J,tag:I.tag,payload:I.payload,callback:I.callback,next:null},oe===null?(K=oe=ne,F=ce):oe=oe.next=ne,M|=J;if(I=I.next,I===null){if(I=E.shared.pending,I===null)break;ne=I,I=ne.next,ne.next=null,E.lastBaseUpdate=ne,E.shared.pending=null}}while(!0);oe===null&&(F=ce),E.baseState=F,E.firstBaseUpdate=K,E.lastBaseUpdate=oe,w===null&&(E.shared.lanes=0),oo|=M,o.lanes=M,o.memoizedState=ce}}function QT(o,l){if(typeof o!="function")throw Error(r(191,o));o.call(l)}function ZT(o,l){var h=o.callbacks;if(h!==null)for(o.callbacks=null,o=0;o<h.length;o++)QT(h[o],l)}var Al=$(null),th=$(0);function JT(o,l){o=ws,re(th,o),re(Al,l),ws=o|l.baseLanes}function I0(){re(th,ws),re(Al,Al.current)}function P0(){ws=th.current,se(Al),se(th)}var Js=0,Ke=null,Et=null,cn=null,nh=!1,_l=!1,vi=!1,rh=0,Eu=0,Rl=null,bU=0;function an(){throw Error(r(321))}function j0(o,l){if(l===null)return!1;for(var h=0;h<l.length&&h<o.length;h++)if(!Cr(o[h],l[h]))return!1;return!0}function L0(o,l,h,g,E,w){return Js=w,Ke=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,j.H=o===null||o.memoizedState===null?LN:kN,vi=!1,w=h(g,E),vi=!1,_l&&(w=tN(l,h,g,E)),eN(o),w}function eN(o){j.H=ch;var l=Et!==null&&Et.next!==null;if(Js=0,cn=Et=Ke=null,nh=!1,Eu=0,Rl=null,l)throw Error(r(300));o===null||wn||(o=o.dependencies,o!==null&&Xf(o)&&(wn=!0))}function tN(o,l,h,g){Ke=o;var E=0;do{if(_l&&(Rl=null),Eu=0,_l=!1,25<=E)throw Error(r(301));if(E+=1,cn=Et=null,o.updateQueue!=null){var w=o.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}j.H=AU,w=l(h,g)}while(_l);return w}function EU(){var o=j.H,l=o.useState()[0];return l=typeof l.then=="function"?Su(l):l,o=o.useState()[0],(Et!==null?Et.memoizedState:null)!==o&&(Ke.flags|=1024),l}function k0(){var o=rh!==0;return rh=0,o}function U0(o,l,h){l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~h}function F0(o){if(nh){for(o=o.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}nh=!1}Js=0,cn=Et=Ke=null,_l=!1,Eu=rh=0,Rl=null}function gr(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return cn===null?Ke.memoizedState=cn=o:cn=cn.next=o,cn}function un(){if(Et===null){var o=Ke.alternate;o=o!==null?o.memoizedState:null}else o=Et.next;var l=cn===null?Ke.memoizedState:cn.next;if(l!==null)cn=l,Et=o;else{if(o===null)throw Ke.alternate===null?Error(r(467)):Error(r(310));Et=o,o={memoizedState:Et.memoizedState,baseState:Et.baseState,baseQueue:Et.baseQueue,queue:Et.queue,next:null},cn===null?Ke.memoizedState=cn=o:cn=cn.next=o}return cn}function B0(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Su(o){var l=Eu;return Eu+=1,Rl===null&&(Rl=[]),o=WT(Rl,o,l),l=Ke,(cn===null?l.memoizedState:cn.next)===null&&(l=l.alternate,j.H=l===null||l.memoizedState===null?LN:kN),o}function ah(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Su(o);if(o.$$typeof===A)return $n(o)}throw Error(r(438,String(o)))}function H0(o){var l=null,h=Ke.updateQueue;if(h!==null&&(l=h.memoCache),l==null){var g=Ke.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(l={data:g.data.map(function(E){return E.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),h===null&&(h=B0(),Ke.updateQueue=h),h.memoCache=l,h=l.data[l.index],h===void 0)for(h=l.data[l.index]=Array(o),g=0;g<o;g++)h[g]=U;return l.index++,h}function xs(o,l){return typeof l=="function"?l(o):l}function sh(o){var l=un();return V0(l,Et,o)}function V0(o,l,h){var g=o.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=h;var E=o.baseQueue,w=g.pending;if(w!==null){if(E!==null){var M=E.next;E.next=w.next,w.next=M}l.baseQueue=E=w,g.pending=null}if(w=o.baseState,E===null)o.memoizedState=w;else{l=E.next;var I=M=null,F=null,K=l,oe=!1;do{var ce=K.lane&-536870913;if(ce!==K.lane?(at&ce)===ce:(Js&ce)===ce){var J=K.revertLane;if(J===0)F!==null&&(F=F.next={lane:0,revertLane:0,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),ce===wl&&(oe=!0);else if((Js&J)===J){K=K.next,J===wl&&(oe=!0);continue}else ce={lane:0,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},F===null?(I=F=ce,M=w):F=F.next=ce,Ke.lanes|=J,oo|=J;ce=K.action,vi&&h(w,ce),w=K.hasEagerState?K.eagerState:h(w,ce)}else J={lane:ce,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},F===null?(I=F=J,M=w):F=F.next=J,Ke.lanes|=ce,oo|=ce;K=K.next}while(K!==null&&K!==l);if(F===null?M=w:F.next=I,!Cr(w,o.memoizedState)&&(wn=!0,oe&&(h=Cl,h!==null)))throw h;o.memoizedState=w,o.baseState=M,o.baseQueue=F,g.lastRenderedState=w}return E===null&&(g.lanes=0),[o.memoizedState,g.dispatch]}function G0(o){var l=un(),h=l.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=o;var g=h.dispatch,E=h.pending,w=l.memoizedState;if(E!==null){h.pending=null;var M=E=E.next;do w=o(w,M.action),M=M.next;while(M!==E);Cr(w,l.memoizedState)||(wn=!0),l.memoizedState=w,l.baseQueue===null&&(l.baseState=w),h.lastRenderedState=w}return[w,g]}function nN(o,l,h){var g=Ke,E=un(),w=ut;if(w){if(h===void 0)throw Error(r(407));h=h()}else h=l();var M=!Cr((Et||E).memoizedState,h);M&&(E.memoizedState=h,wn=!0),E=E.queue;var I=sN.bind(null,g,E,o);if(Tu(2048,8,I,[o]),E.getSnapshot!==l||M||cn!==null&&cn.memoizedState.tag&1){if(g.flags|=2048,Ml(9,oh(),aN.bind(null,g,E,h,l),null),Dt===null)throw Error(r(349));w||(Js&124)!==0||rN(g,l,h)}return h}function rN(o,l,h){o.flags|=16384,o={getSnapshot:l,value:h},l=Ke.updateQueue,l===null?(l=B0(),Ke.updateQueue=l,l.stores=[o]):(h=l.stores,h===null?l.stores=[o]:h.push(o))}function aN(o,l,h,g){l.value=h,l.getSnapshot=g,oN(l)&&iN(o)}function sN(o,l,h){return h(function(){oN(l)&&iN(o)})}function oN(o){var l=o.getSnapshot;o=o.value;try{var h=l();return!Cr(o,h)}catch{return!0}}function iN(o){var l=El(o,2);l!==null&&Dr(l,o,2)}function z0(o){var l=gr();if(typeof o=="function"){var h=o;if(o=h(),vi){wr(!0);try{h()}finally{wr(!1)}}}return l.memoizedState=l.baseState=o,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xs,lastRenderedState:o},l}function lN(o,l,h,g){return o.baseState=h,V0(o,Et,typeof g=="function"?g:xs)}function SU(o,l,h,g,E){if(lh(o))throw Error(r(485));if(o=l.action,o!==null){var w={payload:E,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){w.listeners.push(M)}};j.T!==null?h(!0):w.isTransition=!1,g(w),h=l.pending,h===null?(w.next=l.pending=w,cN(l,w)):(w.next=h.next,l.pending=h.next=w)}}function cN(o,l){var h=l.action,g=l.payload,E=o.state;if(l.isTransition){var w=j.T,M={};j.T=M;try{var I=h(E,g),F=j.S;F!==null&&F(M,I),uN(o,l,I)}catch(K){$0(o,l,K)}finally{j.T=w}}else try{w=h(E,g),uN(o,l,w)}catch(K){$0(o,l,K)}}function uN(o,l,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(g){dN(o,l,g)},function(g){return $0(o,l,g)}):dN(o,l,h)}function dN(o,l,h){l.status="fulfilled",l.value=h,fN(l),o.state=h,l=o.pending,l!==null&&(h=l.next,h===l?o.pending=null:(h=h.next,l.next=h,cN(o,h)))}function $0(o,l,h){var g=o.pending;if(o.pending=null,g!==null){g=g.next;do l.status="rejected",l.reason=h,fN(l),l=l.next;while(l!==g)}o.action=null}function fN(o){o=o.listeners;for(var l=0;l<o.length;l++)(0,o[l])()}function hN(o,l){return l}function mN(o,l){if(ut){var h=Dt.formState;if(h!==null){e:{var g=Ke;if(ut){if(Kt){t:{for(var E=Kt,w=La;E.nodeType!==8;){if(!w){E=null;break t}if(E=ca(E.nextSibling),E===null){E=null;break t}}w=E.data,E=w==="F!"||w==="F"?E:null}if(E){Kt=ca(E.nextSibling),g=E.data==="F!";break e}}hi(g)}g=!1}g&&(l=h[0])}}return h=gr(),h.memoizedState=h.baseState=l,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hN,lastRenderedState:l},h.queue=g,h=IN.bind(null,Ke,g),g.dispatch=h,g=z0(!1),w=X0.bind(null,Ke,!1,g.queue),g=gr(),E={state:l,dispatch:null,action:o,pending:null},g.queue=E,h=SU.bind(null,Ke,E,w,h),E.dispatch=h,g.memoizedState=o,[l,h,!1]}function pN(o){var l=un();return gN(l,Et,o)}function gN(o,l,h){if(l=V0(o,l,hN)[0],o=sh(xs)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var g=Su(l)}catch(M){throw M===gu?Jf:M}else g=l;l=un();var E=l.queue,w=E.dispatch;return h!==l.memoizedState&&(Ke.flags|=2048,Ml(9,oh(),TU.bind(null,E,h),null)),[g,w,o]}function TU(o,l){o.action=l}function vN(o){var l=un(),h=Et;if(h!==null)return gN(l,h,o);un(),l=l.memoizedState,h=un();var g=h.queue.dispatch;return h.memoizedState=o,[l,g,!1]}function Ml(o,l,h,g){return o={tag:o,create:h,deps:g,inst:l,next:null},l=Ke.updateQueue,l===null&&(l=B0(),Ke.updateQueue=l),h=l.lastEffect,h===null?l.lastEffect=o.next=o:(g=h.next,h.next=o,o.next=g,l.lastEffect=o),o}function oh(){return{destroy:void 0,resource:void 0}}function yN(){return un().memoizedState}function ih(o,l,h,g){var E=gr();g=g===void 0?null:g,Ke.flags|=o,E.memoizedState=Ml(1|l,oh(),h,g)}function Tu(o,l,h,g){var E=un();g=g===void 0?null:g;var w=E.memoizedState.inst;Et!==null&&g!==null&&j0(g,Et.memoizedState.deps)?E.memoizedState=Ml(l,w,h,g):(Ke.flags|=o,E.memoizedState=Ml(1|l,w,h,g))}function xN(o,l){ih(8390656,8,o,l)}function bN(o,l){Tu(2048,8,o,l)}function EN(o,l){return Tu(4,2,o,l)}function SN(o,l){return Tu(4,4,o,l)}function TN(o,l){if(typeof l=="function"){o=o();var h=l(o);return function(){typeof h=="function"?h():l(null)}}if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function NN(o,l,h){h=h!=null?h.concat([o]):null,Tu(4,4,TN.bind(null,l,o),h)}function q0(){}function wN(o,l){var h=un();l=l===void 0?null:l;var g=h.memoizedState;return l!==null&&j0(l,g[1])?g[0]:(h.memoizedState=[o,l],o)}function CN(o,l){var h=un();l=l===void 0?null:l;var g=h.memoizedState;if(l!==null&&j0(l,g[1]))return g[0];if(g=o(),vi){wr(!0);try{o()}finally{wr(!1)}}return h.memoizedState=[g,l],g}function Y0(o,l,h){return h===void 0||(Js&1073741824)!==0?o.memoizedState=l:(o.memoizedState=h,o=Rw(),Ke.lanes|=o,oo|=o,h)}function AN(o,l,h,g){return Cr(h,l)?h:Al.current!==null?(o=Y0(o,h,g),Cr(o,l)||(wn=!0),o):(Js&42)===0?(wn=!0,o.memoizedState=h):(o=Rw(),Ke.lanes|=o,oo|=o,l)}function _N(o,l,h,g,E){var w=Y.p;Y.p=w!==0&&8>w?w:8;var M=j.T,I={};j.T=I,X0(o,!1,l,h);try{var F=E(),K=j.S;if(K!==null&&K(I,F),F!==null&&typeof F=="object"&&typeof F.then=="function"){var oe=xU(F,g);Nu(o,l,oe,Or(o))}else Nu(o,l,g,Or(o))}catch(ce){Nu(o,l,{then:function(){},status:"rejected",reason:ce},Or())}finally{Y.p=w,j.T=M}}function NU(){}function W0(o,l,h,g){if(o.tag!==5)throw Error(r(476));var E=RN(o).queue;_N(o,E,l,V,h===null?NU:function(){return MN(o),h(g)})}function RN(o){var l=o.memoizedState;if(l!==null)return l;l={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xs,lastRenderedState:V},next:null};var h={};return l.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xs,lastRenderedState:h},next:null},o.memoizedState=l,o=o.alternate,o!==null&&(o.memoizedState=l),l}function MN(o){var l=RN(o).next.queue;Nu(o,l,{},Or())}function K0(){return $n(Vu)}function ON(){return un().memoizedState}function DN(){return un().memoizedState}function wU(o){for(var l=o.return;l!==null;){switch(l.tag){case 24:case 3:var h=Or();o=Qs(h);var g=Zs(l,o,h);g!==null&&(Dr(g,l,h),yu(g,l,h)),l={cache:w0()},o.payload=l;return}l=l.return}}function CU(o,l,h){var g=Or();h={lane:g,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null},lh(o)?PN(l,h):(h=p0(o,l,h,g),h!==null&&(Dr(h,o,g),jN(h,l,g)))}function IN(o,l,h){var g=Or();Nu(o,l,h,g)}function Nu(o,l,h,g){var E={lane:g,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null};if(lh(o))PN(l,E);else{var w=o.alternate;if(o.lanes===0&&(w===null||w.lanes===0)&&(w=l.lastRenderedReducer,w!==null))try{var M=l.lastRenderedState,I=w(M,h);if(E.hasEagerState=!0,E.eagerState=I,Cr(I,M))return $f(o,l,E,0),Dt===null&&zf(),!1}catch{}finally{}if(h=p0(o,l,E,g),h!==null)return Dr(h,o,g),jN(h,l,g),!0}return!1}function X0(o,l,h,g){if(g={lane:2,revertLane:_v(),action:g,hasEagerState:!1,eagerState:null,next:null},lh(o)){if(l)throw Error(r(479))}else l=p0(o,h,g,2),l!==null&&Dr(l,o,2)}function lh(o){var l=o.alternate;return o===Ke||l!==null&&l===Ke}function PN(o,l){_l=nh=!0;var h=o.pending;h===null?l.next=l:(l.next=h.next,h.next=l),o.pending=l}function jN(o,l,h){if((h&4194048)!==0){var g=l.lanes;g&=o.pendingLanes,h|=g,l.lanes=h,jt(o,h)}}var ch={readContext:$n,use:ah,useCallback:an,useContext:an,useEffect:an,useImperativeHandle:an,useLayoutEffect:an,useInsertionEffect:an,useMemo:an,useReducer:an,useRef:an,useState:an,useDebugValue:an,useDeferredValue:an,useTransition:an,useSyncExternalStore:an,useId:an,useHostTransitionStatus:an,useFormState:an,useActionState:an,useOptimistic:an,useMemoCache:an,useCacheRefresh:an},LN={readContext:$n,use:ah,useCallback:function(o,l){return gr().memoizedState=[o,l===void 0?null:l],o},useContext:$n,useEffect:xN,useImperativeHandle:function(o,l,h){h=h!=null?h.concat([o]):null,ih(4194308,4,TN.bind(null,l,o),h)},useLayoutEffect:function(o,l){return ih(4194308,4,o,l)},useInsertionEffect:function(o,l){ih(4,2,o,l)},useMemo:function(o,l){var h=gr();l=l===void 0?null:l;var g=o();if(vi){wr(!0);try{o()}finally{wr(!1)}}return h.memoizedState=[g,l],g},useReducer:function(o,l,h){var g=gr();if(h!==void 0){var E=h(l);if(vi){wr(!0);try{h(l)}finally{wr(!1)}}}else E=l;return g.memoizedState=g.baseState=E,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:E},g.queue=o,o=o.dispatch=CU.bind(null,Ke,o),[g.memoizedState,o]},useRef:function(o){var l=gr();return o={current:o},l.memoizedState=o},useState:function(o){o=z0(o);var l=o.queue,h=IN.bind(null,Ke,l);return l.dispatch=h,[o.memoizedState,h]},useDebugValue:q0,useDeferredValue:function(o,l){var h=gr();return Y0(h,o,l)},useTransition:function(){var o=z0(!1);return o=_N.bind(null,Ke,o.queue,!0,!1),gr().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,l,h){var g=Ke,E=gr();if(ut){if(h===void 0)throw Error(r(407));h=h()}else{if(h=l(),Dt===null)throw Error(r(349));(at&124)!==0||rN(g,l,h)}E.memoizedState=h;var w={value:h,getSnapshot:l};return E.queue=w,xN(sN.bind(null,g,w,o),[o]),g.flags|=2048,Ml(9,oh(),aN.bind(null,g,w,h,l),null),h},useId:function(){var o=gr(),l=Dt.identifierPrefix;if(ut){var h=gs,g=ps;h=(g&~(1<<32-hn(g)-1)).toString(32)+h,l="«"+l+"R"+h,h=rh++,0<h&&(l+="H"+h.toString(32)),l+="»"}else h=bU++,l="«"+l+"r"+h.toString(32)+"»";return o.memoizedState=l},useHostTransitionStatus:K0,useFormState:mN,useActionState:mN,useOptimistic:function(o){var l=gr();l.memoizedState=l.baseState=o;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=h,l=X0.bind(null,Ke,!0,h),h.dispatch=l,[o,l]},useMemoCache:H0,useCacheRefresh:function(){return gr().memoizedState=wU.bind(null,Ke)}},kN={readContext:$n,use:ah,useCallback:wN,useContext:$n,useEffect:bN,useImperativeHandle:NN,useInsertionEffect:EN,useLayoutEffect:SN,useMemo:CN,useReducer:sh,useRef:yN,useState:function(){return sh(xs)},useDebugValue:q0,useDeferredValue:function(o,l){var h=un();return AN(h,Et.memoizedState,o,l)},useTransition:function(){var o=sh(xs)[0],l=un().memoizedState;return[typeof o=="boolean"?o:Su(o),l]},useSyncExternalStore:nN,useId:ON,useHostTransitionStatus:K0,useFormState:pN,useActionState:pN,useOptimistic:function(o,l){var h=un();return lN(h,Et,o,l)},useMemoCache:H0,useCacheRefresh:DN},AU={readContext:$n,use:ah,useCallback:wN,useContext:$n,useEffect:bN,useImperativeHandle:NN,useInsertionEffect:EN,useLayoutEffect:SN,useMemo:CN,useReducer:G0,useRef:yN,useState:function(){return G0(xs)},useDebugValue:q0,useDeferredValue:function(o,l){var h=un();return Et===null?Y0(h,o,l):AN(h,Et.memoizedState,o,l)},useTransition:function(){var o=G0(xs)[0],l=un().memoizedState;return[typeof o=="boolean"?o:Su(o),l]},useSyncExternalStore:nN,useId:ON,useHostTransitionStatus:K0,useFormState:vN,useActionState:vN,useOptimistic:function(o,l){var h=un();return Et!==null?lN(h,Et,o,l):(h.baseState=o,[o,h.queue.dispatch])},useMemoCache:H0,useCacheRefresh:DN},Ol=null,wu=0;function uh(o){var l=wu;return wu+=1,Ol===null&&(Ol=[]),WT(Ol,o,l)}function Cu(o,l){l=l.props.ref,o.ref=l!==void 0?l:null}function dh(o,l){throw l.$$typeof===p?Error(r(525)):(o=Object.prototype.toString.call(l),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o)))}function UN(o){var l=o._init;return l(o._payload)}function FN(o){function l(q,G){if(o){var W=q.deletions;W===null?(q.deletions=[G],q.flags|=16):W.push(G)}}function h(q,G){if(!o)return null;for(;G!==null;)l(q,G),G=G.sibling;return null}function g(q){for(var G=new Map;q!==null;)q.key!==null?G.set(q.key,q):G.set(q.index,q),q=q.sibling;return G}function E(q,G){return q=ms(q,G),q.index=0,q.sibling=null,q}function w(q,G,W){return q.index=W,o?(W=q.alternate,W!==null?(W=W.index,W<G?(q.flags|=67108866,G):W):(q.flags|=67108866,G)):(q.flags|=1048576,G)}function M(q){return o&&q.alternate===null&&(q.flags|=67108866),q}function I(q,G,W,ie){return G===null||G.tag!==6?(G=v0(W,q.mode,ie),G.return=q,G):(G=E(G,W),G.return=q,G)}function F(q,G,W,ie){var be=W.type;return be===x?oe(q,G,W.props.children,ie,W.key):G!==null&&(G.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===P&&UN(be)===G.type)?(G=E(G,W.props),Cu(G,W),G.return=q,G):(G=Yf(W.type,W.key,W.props,null,q.mode,ie),Cu(G,W),G.return=q,G)}function K(q,G,W,ie){return G===null||G.tag!==4||G.stateNode.containerInfo!==W.containerInfo||G.stateNode.implementation!==W.implementation?(G=y0(W,q.mode,ie),G.return=q,G):(G=E(G,W.children||[]),G.return=q,G)}function oe(q,G,W,ie,be){return G===null||G.tag!==7?(G=ci(W,q.mode,ie,be),G.return=q,G):(G=E(G,W),G.return=q,G)}function ce(q,G,W){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=v0(""+G,q.mode,W),G.return=q,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case v:return W=Yf(G.type,G.key,G.props,null,q.mode,W),Cu(W,G),W.return=q,W;case y:return G=y0(G,q.mode,W),G.return=q,G;case P:var ie=G._init;return G=ie(G._payload),ce(q,G,W)}if(Q(G)||H(G))return G=ci(G,q.mode,W,null),G.return=q,G;if(typeof G.then=="function")return ce(q,uh(G),W);if(G.$$typeof===A)return ce(q,Qf(q,G),W);dh(q,G)}return null}function J(q,G,W,ie){var be=G!==null?G.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return be!==null?null:I(q,G,""+W,ie);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case v:return W.key===be?F(q,G,W,ie):null;case y:return W.key===be?K(q,G,W,ie):null;case P:return be=W._init,W=be(W._payload),J(q,G,W,ie)}if(Q(W)||H(W))return be!==null?null:oe(q,G,W,ie,null);if(typeof W.then=="function")return J(q,G,uh(W),ie);if(W.$$typeof===A)return J(q,G,Qf(q,W),ie);dh(q,W)}return null}function ne(q,G,W,ie,be){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return q=q.get(W)||null,I(G,q,""+ie,be);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case v:return q=q.get(ie.key===null?W:ie.key)||null,F(G,q,ie,be);case y:return q=q.get(ie.key===null?W:ie.key)||null,K(G,q,ie,be);case P:var Ze=ie._init;return ie=Ze(ie._payload),ne(q,G,W,ie,be)}if(Q(ie)||H(ie))return q=q.get(W)||null,oe(G,q,ie,be,null);if(typeof ie.then=="function")return ne(q,G,W,uh(ie),be);if(ie.$$typeof===A)return ne(q,G,W,Qf(G,ie),be);dh(G,ie)}return null}function je(q,G,W,ie){for(var be=null,Ze=null,we=G,Oe=G=0,An=null;we!==null&&Oe<W.length;Oe++){we.index>Oe?(An=we,we=null):An=we.sibling;var ot=J(q,we,W[Oe],ie);if(ot===null){we===null&&(we=An);break}o&&we&&ot.alternate===null&&l(q,we),G=w(ot,G,Oe),Ze===null?be=ot:Ze.sibling=ot,Ze=ot,we=An}if(Oe===W.length)return h(q,we),ut&&di(q,Oe),be;if(we===null){for(;Oe<W.length;Oe++)we=ce(q,W[Oe],ie),we!==null&&(G=w(we,G,Oe),Ze===null?be=we:Ze.sibling=we,Ze=we);return ut&&di(q,Oe),be}for(we=g(we);Oe<W.length;Oe++)An=ne(we,q,Oe,W[Oe],ie),An!==null&&(o&&An.alternate!==null&&we.delete(An.key===null?Oe:An.key),G=w(An,G,Oe),Ze===null?be=An:Ze.sibling=An,Ze=An);return o&&we.forEach(function(go){return l(q,go)}),ut&&di(q,Oe),be}function _e(q,G,W,ie){if(W==null)throw Error(r(151));for(var be=null,Ze=null,we=G,Oe=G=0,An=null,ot=W.next();we!==null&&!ot.done;Oe++,ot=W.next()){we.index>Oe?(An=we,we=null):An=we.sibling;var go=J(q,we,ot.value,ie);if(go===null){we===null&&(we=An);break}o&&we&&go.alternate===null&&l(q,we),G=w(go,G,Oe),Ze===null?be=go:Ze.sibling=go,Ze=go,we=An}if(ot.done)return h(q,we),ut&&di(q,Oe),be;if(we===null){for(;!ot.done;Oe++,ot=W.next())ot=ce(q,ot.value,ie),ot!==null&&(G=w(ot,G,Oe),Ze===null?be=ot:Ze.sibling=ot,Ze=ot);return ut&&di(q,Oe),be}for(we=g(we);!ot.done;Oe++,ot=W.next())ot=ne(we,q,Oe,ot.value,ie),ot!==null&&(o&&ot.alternate!==null&&we.delete(ot.key===null?Oe:ot.key),G=w(ot,G,Oe),Ze===null?be=ot:Ze.sibling=ot,Ze=ot);return o&&we.forEach(function(_F){return l(q,_F)}),ut&&di(q,Oe),be}function Tt(q,G,W,ie){if(typeof W=="object"&&W!==null&&W.type===x&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case v:e:{for(var be=W.key;G!==null;){if(G.key===be){if(be=W.type,be===x){if(G.tag===7){h(q,G.sibling),ie=E(G,W.props.children),ie.return=q,q=ie;break e}}else if(G.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===P&&UN(be)===G.type){h(q,G.sibling),ie=E(G,W.props),Cu(ie,W),ie.return=q,q=ie;break e}h(q,G);break}else l(q,G);G=G.sibling}W.type===x?(ie=ci(W.props.children,q.mode,ie,W.key),ie.return=q,q=ie):(ie=Yf(W.type,W.key,W.props,null,q.mode,ie),Cu(ie,W),ie.return=q,q=ie)}return M(q);case y:e:{for(be=W.key;G!==null;){if(G.key===be)if(G.tag===4&&G.stateNode.containerInfo===W.containerInfo&&G.stateNode.implementation===W.implementation){h(q,G.sibling),ie=E(G,W.children||[]),ie.return=q,q=ie;break e}else{h(q,G);break}else l(q,G);G=G.sibling}ie=y0(W,q.mode,ie),ie.return=q,q=ie}return M(q);case P:return be=W._init,W=be(W._payload),Tt(q,G,W,ie)}if(Q(W))return je(q,G,W,ie);if(H(W)){if(be=H(W),typeof be!="function")throw Error(r(150));return W=be.call(W),_e(q,G,W,ie)}if(typeof W.then=="function")return Tt(q,G,uh(W),ie);if(W.$$typeof===A)return Tt(q,G,Qf(q,W),ie);dh(q,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,G!==null&&G.tag===6?(h(q,G.sibling),ie=E(G,W),ie.return=q,q=ie):(h(q,G),ie=v0(W,q.mode,ie),ie.return=q,q=ie),M(q)):h(q,G)}return function(q,G,W,ie){try{wu=0;var be=Tt(q,G,W,ie);return Ol=null,be}catch(we){if(we===gu||we===Jf)throw we;var Ze=Ar(29,we,null,q.mode);return Ze.lanes=ie,Ze.return=q,Ze}finally{}}}var Dl=FN(!0),BN=FN(!1),Yr=$(null),ka=null;function eo(o){var l=o.alternate;re(vn,vn.current&1),re(Yr,o),ka===null&&(l===null||Al.current!==null||l.memoizedState!==null)&&(ka=o)}function HN(o){if(o.tag===22){if(re(vn,vn.current),re(Yr,o),ka===null){var l=o.alternate;l!==null&&l.memoizedState!==null&&(ka=o)}}else to()}function to(){re(vn,vn.current),re(Yr,Yr.current)}function bs(o){se(Yr),ka===o&&(ka=null),se(vn)}var vn=$(0);function fh(o){for(var l=o;l!==null;){if(l.tag===13){var h=l.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||Bv(h)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}function Q0(o,l,h,g){l=o.memoizedState,h=h(g,l),h=h==null?l:m({},l,h),o.memoizedState=h,o.lanes===0&&(o.updateQueue.baseState=h)}var Z0={enqueueSetState:function(o,l,h){o=o._reactInternals;var g=Or(),E=Qs(g);E.payload=l,h!=null&&(E.callback=h),l=Zs(o,E,g),l!==null&&(Dr(l,o,g),yu(l,o,g))},enqueueReplaceState:function(o,l,h){o=o._reactInternals;var g=Or(),E=Qs(g);E.tag=1,E.payload=l,h!=null&&(E.callback=h),l=Zs(o,E,g),l!==null&&(Dr(l,o,g),yu(l,o,g))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var h=Or(),g=Qs(h);g.tag=2,l!=null&&(g.callback=l),l=Zs(o,g,h),l!==null&&(Dr(l,o,h),yu(l,o,h))}};function VN(o,l,h,g,E,w,M){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(g,w,M):l.prototype&&l.prototype.isPureReactComponent?!lu(h,g)||!lu(E,w):!0}function GN(o,l,h,g){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(h,g),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(h,g),l.state!==o&&Z0.enqueueReplaceState(l,l.state,null)}function yi(o,l){var h=l;if("ref"in l){h={};for(var g in l)g!=="ref"&&(h[g]=l[g])}if(o=o.defaultProps){h===l&&(h=m({},h));for(var E in o)h[E]===void 0&&(h[E]=o[E])}return h}var hh=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)};function zN(o){hh(o)}function $N(o){console.error(o)}function qN(o){hh(o)}function mh(o,l){try{var h=o.onUncaughtError;h(l.value,{componentStack:l.stack})}catch(g){setTimeout(function(){throw g})}}function YN(o,l,h){try{var g=o.onCaughtError;g(h.value,{componentStack:h.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function J0(o,l,h){return h=Qs(h),h.tag=3,h.payload={element:null},h.callback=function(){mh(o,l)},h}function WN(o){return o=Qs(o),o.tag=3,o}function KN(o,l,h,g){var E=h.type.getDerivedStateFromError;if(typeof E=="function"){var w=g.value;o.payload=function(){return E(w)},o.callback=function(){YN(l,h,g)}}var M=h.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(o.callback=function(){YN(l,h,g),typeof E!="function"&&(io===null?io=new Set([this]):io.add(this));var I=g.stack;this.componentDidCatch(g.value,{componentStack:I!==null?I:""})})}function _U(o,l,h,g,E){if(h.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){if(l=h.alternate,l!==null&&hu(l,h,E,!0),h=Yr.current,h!==null){switch(h.tag){case 13:return ka===null?Tv():h.alternate===null&&Xt===0&&(Xt=3),h.flags&=-257,h.flags|=65536,h.lanes=E,g===_0?h.flags|=16384:(l=h.updateQueue,l===null?h.updateQueue=new Set([g]):l.add(g),wv(o,g,E)),!1;case 22:return h.flags|=65536,g===_0?h.flags|=16384:(l=h.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([g])},h.updateQueue=l):(h=l.retryQueue,h===null?l.retryQueue=new Set([g]):h.add(g)),wv(o,g,E)),!1}throw Error(r(435,h.tag))}return wv(o,g,E),Tv(),!1}if(ut)return l=Yr.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=E,g!==E0&&(o=Error(r(422),{cause:g}),fu(Gr(o,h)))):(g!==E0&&(l=Error(r(423),{cause:g}),fu(Gr(l,h))),o=o.current.alternate,o.flags|=65536,E&=-E,o.lanes|=E,g=Gr(g,h),E=J0(o.stateNode,g,E),O0(o,E),Xt!==4&&(Xt=2)),!1;var w=Error(r(520),{cause:g});if(w=Gr(w,h),Iu===null?Iu=[w]:Iu.push(w),Xt!==4&&(Xt=2),l===null)return!0;g=Gr(g,h),h=l;do{switch(h.tag){case 3:return h.flags|=65536,o=E&-E,h.lanes|=o,o=J0(h.stateNode,g,o),O0(h,o),!1;case 1:if(l=h.type,w=h.stateNode,(h.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(io===null||!io.has(w))))return h.flags|=65536,E&=-E,h.lanes|=E,E=WN(E),KN(E,o,h,g),O0(h,E),!1}h=h.return}while(h!==null);return!1}var XN=Error(r(461)),wn=!1;function jn(o,l,h,g){l.child=o===null?BN(l,null,h,g):Dl(l,o.child,h,g)}function QN(o,l,h,g,E){h=h.render;var w=l.ref;if("ref"in g){var M={};for(var I in g)I!=="ref"&&(M[I]=g[I])}else M=g;return pi(l),g=L0(o,l,h,M,w,E),I=k0(),o!==null&&!wn?(U0(o,l,E),Es(o,l,E)):(ut&&I&&x0(l),l.flags|=1,jn(o,l,g,E),l.child)}function ZN(o,l,h,g,E){if(o===null){var w=h.type;return typeof w=="function"&&!g0(w)&&w.defaultProps===void 0&&h.compare===null?(l.tag=15,l.type=w,JN(o,l,w,g,E)):(o=Yf(h.type,null,g,l,l.mode,E),o.ref=l.ref,o.return=l,l.child=o)}if(w=o.child,!iv(o,E)){var M=w.memoizedProps;if(h=h.compare,h=h!==null?h:lu,h(M,g)&&o.ref===l.ref)return Es(o,l,E)}return l.flags|=1,o=ms(w,g),o.ref=l.ref,o.return=l,l.child=o}function JN(o,l,h,g,E){if(o!==null){var w=o.memoizedProps;if(lu(w,g)&&o.ref===l.ref)if(wn=!1,l.pendingProps=g=w,iv(o,E))(o.flags&131072)!==0&&(wn=!0);else return l.lanes=o.lanes,Es(o,l,E)}return ev(o,l,h,g,E)}function ew(o,l,h){var g=l.pendingProps,E=g.children,w=o!==null?o.memoizedState:null;if(g.mode==="hidden"){if((l.flags&128)!==0){if(g=w!==null?w.baseLanes|h:h,o!==null){for(E=l.child=o.child,w=0;E!==null;)w=w|E.lanes|E.childLanes,E=E.sibling;l.childLanes=w&~g}else l.childLanes=0,l.child=null;return tw(o,l,g,h)}if((h&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},o!==null&&Zf(l,w!==null?w.cachePool:null),w!==null?JT(l,w):I0(),HN(l);else return l.lanes=l.childLanes=536870912,tw(o,l,w!==null?w.baseLanes|h:h,h)}else w!==null?(Zf(l,w.cachePool),JT(l,w),to(),l.memoizedState=null):(o!==null&&Zf(l,null),I0(),to());return jn(o,l,E,h),l.child}function tw(o,l,h,g){var E=A0();return E=E===null?null:{parent:gn._currentValue,pool:E},l.memoizedState={baseLanes:h,cachePool:E},o!==null&&Zf(l,null),I0(),HN(l),o!==null&&hu(o,l,g,!0),null}function ph(o,l){var h=l.ref;if(h===null)o!==null&&o.ref!==null&&(l.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(r(284));(o===null||o.ref!==h)&&(l.flags|=4194816)}}function ev(o,l,h,g,E){return pi(l),h=L0(o,l,h,g,void 0,E),g=k0(),o!==null&&!wn?(U0(o,l,E),Es(o,l,E)):(ut&&g&&x0(l),l.flags|=1,jn(o,l,h,E),l.child)}function nw(o,l,h,g,E,w){return pi(l),l.updateQueue=null,h=tN(l,g,h,E),eN(o),g=k0(),o!==null&&!wn?(U0(o,l,w),Es(o,l,w)):(ut&&g&&x0(l),l.flags|=1,jn(o,l,h,w),l.child)}function rw(o,l,h,g,E){if(pi(l),l.stateNode===null){var w=Sl,M=h.contextType;typeof M=="object"&&M!==null&&(w=$n(M)),w=new h(g,w),l.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=Z0,l.stateNode=w,w._reactInternals=l,w=l.stateNode,w.props=g,w.state=l.memoizedState,w.refs={},R0(l),M=h.contextType,w.context=typeof M=="object"&&M!==null?$n(M):Sl,w.state=l.memoizedState,M=h.getDerivedStateFromProps,typeof M=="function"&&(Q0(l,h,M,g),w.state=l.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(M=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),M!==w.state&&Z0.enqueueReplaceState(w,w.state,null),bu(l,g,w,E),xu(),w.state=l.memoizedState),typeof w.componentDidMount=="function"&&(l.flags|=4194308),g=!0}else if(o===null){w=l.stateNode;var I=l.memoizedProps,F=yi(h,I);w.props=F;var K=w.context,oe=h.contextType;M=Sl,typeof oe=="object"&&oe!==null&&(M=$n(oe));var ce=h.getDerivedStateFromProps;oe=typeof ce=="function"||typeof w.getSnapshotBeforeUpdate=="function",I=l.pendingProps!==I,oe||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(I||K!==M)&&GN(l,w,g,M),Xs=!1;var J=l.memoizedState;w.state=J,bu(l,g,w,E),xu(),K=l.memoizedState,I||J!==K||Xs?(typeof ce=="function"&&(Q0(l,h,ce,g),K=l.memoizedState),(F=Xs||VN(l,h,F,g,J,K,M))?(oe||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(l.flags|=4194308)):(typeof w.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=g,l.memoizedState=K),w.props=g,w.state=K,w.context=M,g=F):(typeof w.componentDidMount=="function"&&(l.flags|=4194308),g=!1)}else{w=l.stateNode,M0(o,l),M=l.memoizedProps,oe=yi(h,M),w.props=oe,ce=l.pendingProps,J=w.context,K=h.contextType,F=Sl,typeof K=="object"&&K!==null&&(F=$n(K)),I=h.getDerivedStateFromProps,(K=typeof I=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(M!==ce||J!==F)&&GN(l,w,g,F),Xs=!1,J=l.memoizedState,w.state=J,bu(l,g,w,E),xu();var ne=l.memoizedState;M!==ce||J!==ne||Xs||o!==null&&o.dependencies!==null&&Xf(o.dependencies)?(typeof I=="function"&&(Q0(l,h,I,g),ne=l.memoizedState),(oe=Xs||VN(l,h,oe,g,J,ne,F)||o!==null&&o.dependencies!==null&&Xf(o.dependencies))?(K||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(g,ne,F),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(g,ne,F)),typeof w.componentDidUpdate=="function"&&(l.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof w.componentDidUpdate!="function"||M===o.memoizedProps&&J===o.memoizedState||(l.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===o.memoizedProps&&J===o.memoizedState||(l.flags|=1024),l.memoizedProps=g,l.memoizedState=ne),w.props=g,w.state=ne,w.context=F,g=oe):(typeof w.componentDidUpdate!="function"||M===o.memoizedProps&&J===o.memoizedState||(l.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===o.memoizedProps&&J===o.memoizedState||(l.flags|=1024),g=!1)}return w=g,ph(o,l),g=(l.flags&128)!==0,w||g?(w=l.stateNode,h=g&&typeof h.getDerivedStateFromError!="function"?null:w.render(),l.flags|=1,o!==null&&g?(l.child=Dl(l,o.child,null,E),l.child=Dl(l,null,h,E)):jn(o,l,h,E),l.memoizedState=w.state,o=l.child):o=Es(o,l,E),o}function aw(o,l,h,g){return du(),l.flags|=256,jn(o,l,h,g),l.child}var tv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function nv(o){return{baseLanes:o,cachePool:$T()}}function rv(o,l,h){return o=o!==null?o.childLanes&~h:0,l&&(o|=Wr),o}function sw(o,l,h){var g=l.pendingProps,E=!1,w=(l.flags&128)!==0,M;if((M=w)||(M=o!==null&&o.memoizedState===null?!1:(vn.current&2)!==0),M&&(E=!0,l.flags&=-129),M=(l.flags&32)!==0,l.flags&=-33,o===null){if(ut){if(E?eo(l):to(),ut){var I=Kt,F;if(F=I){e:{for(F=I,I=La;F.nodeType!==8;){if(!I){I=null;break e}if(F=ca(F.nextSibling),F===null){I=null;break e}}I=F}I!==null?(l.memoizedState={dehydrated:I,treeContext:ui!==null?{id:ps,overflow:gs}:null,retryLane:536870912,hydrationErrors:null},F=Ar(18,null,null,0),F.stateNode=I,F.return=l,l.child=F,rr=l,Kt=null,F=!0):F=!1}F||hi(l)}if(I=l.memoizedState,I!==null&&(I=I.dehydrated,I!==null))return Bv(I)?l.lanes=32:l.lanes=536870912,null;bs(l)}return I=g.children,g=g.fallback,E?(to(),E=l.mode,I=gh({mode:"hidden",children:I},E),g=ci(g,E,h,null),I.return=l,g.return=l,I.sibling=g,l.child=I,E=l.child,E.memoizedState=nv(h),E.childLanes=rv(o,M,h),l.memoizedState=tv,g):(eo(l),av(l,I))}if(F=o.memoizedState,F!==null&&(I=F.dehydrated,I!==null)){if(w)l.flags&256?(eo(l),l.flags&=-257,l=sv(o,l,h)):l.memoizedState!==null?(to(),l.child=o.child,l.flags|=128,l=null):(to(),E=g.fallback,I=l.mode,g=gh({mode:"visible",children:g.children},I),E=ci(E,I,h,null),E.flags|=2,g.return=l,E.return=l,g.sibling=E,l.child=g,Dl(l,o.child,null,h),g=l.child,g.memoizedState=nv(h),g.childLanes=rv(o,M,h),l.memoizedState=tv,l=E);else if(eo(l),Bv(I)){if(M=I.nextSibling&&I.nextSibling.dataset,M)var K=M.dgst;M=K,g=Error(r(419)),g.stack="",g.digest=M,fu({value:g,source:null,stack:null}),l=sv(o,l,h)}else if(wn||hu(o,l,h,!1),M=(h&o.childLanes)!==0,wn||M){if(M=Dt,M!==null&&(g=h&-h,g=(g&42)!==0?1:Ht(g),g=(g&(M.suspendedLanes|h))!==0?0:g,g!==0&&g!==F.retryLane))throw F.retryLane=g,El(o,g),Dr(M,o,g),XN;I.data==="$?"||Tv(),l=sv(o,l,h)}else I.data==="$?"?(l.flags|=192,l.child=o.child,l=null):(o=F.treeContext,Kt=ca(I.nextSibling),rr=l,ut=!0,fi=null,La=!1,o!==null&&($r[qr++]=ps,$r[qr++]=gs,$r[qr++]=ui,ps=o.id,gs=o.overflow,ui=l),l=av(l,g.children),l.flags|=4096);return l}return E?(to(),E=g.fallback,I=l.mode,F=o.child,K=F.sibling,g=ms(F,{mode:"hidden",children:g.children}),g.subtreeFlags=F.subtreeFlags&65011712,K!==null?E=ms(K,E):(E=ci(E,I,h,null),E.flags|=2),E.return=l,g.return=l,g.sibling=E,l.child=g,g=E,E=l.child,I=o.child.memoizedState,I===null?I=nv(h):(F=I.cachePool,F!==null?(K=gn._currentValue,F=F.parent!==K?{parent:K,pool:K}:F):F=$T(),I={baseLanes:I.baseLanes|h,cachePool:F}),E.memoizedState=I,E.childLanes=rv(o,M,h),l.memoizedState=tv,g):(eo(l),h=o.child,o=h.sibling,h=ms(h,{mode:"visible",children:g.children}),h.return=l,h.sibling=null,o!==null&&(M=l.deletions,M===null?(l.deletions=[o],l.flags|=16):M.push(o)),l.child=h,l.memoizedState=null,h)}function av(o,l){return l=gh({mode:"visible",children:l},o.mode),l.return=o,o.child=l}function gh(o,l){return o=Ar(22,o,null,l),o.lanes=0,o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},o}function sv(o,l,h){return Dl(l,o.child,null,h),o=av(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function ow(o,l,h){o.lanes|=l;var g=o.alternate;g!==null&&(g.lanes|=l),T0(o.return,l,h)}function ov(o,l,h,g,E){var w=o.memoizedState;w===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:g,tail:h,tailMode:E}:(w.isBackwards=l,w.rendering=null,w.renderingStartTime=0,w.last=g,w.tail=h,w.tailMode=E)}function iw(o,l,h){var g=l.pendingProps,E=g.revealOrder,w=g.tail;if(jn(o,l,g.children,h),g=vn.current,(g&2)!==0)g=g&1|2,l.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&ow(o,h,l);else if(o.tag===19)ow(o,h,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}g&=1}switch(re(vn,g),E){case"forwards":for(h=l.child,E=null;h!==null;)o=h.alternate,o!==null&&fh(o)===null&&(E=h),h=h.sibling;h=E,h===null?(E=l.child,l.child=null):(E=h.sibling,h.sibling=null),ov(l,!1,E,h,w);break;case"backwards":for(h=null,E=l.child,l.child=null;E!==null;){if(o=E.alternate,o!==null&&fh(o)===null){l.child=E;break}o=E.sibling,E.sibling=h,h=E,E=o}ov(l,!0,h,null,w);break;case"together":ov(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function Es(o,l,h){if(o!==null&&(l.dependencies=o.dependencies),oo|=l.lanes,(h&l.childLanes)===0)if(o!==null){if(hu(o,l,h,!1),(h&l.childLanes)===0)return null}else return null;if(o!==null&&l.child!==o.child)throw Error(r(153));if(l.child!==null){for(o=l.child,h=ms(o,o.pendingProps),l.child=h,h.return=l;o.sibling!==null;)o=o.sibling,h=h.sibling=ms(o,o.pendingProps),h.return=l;h.sibling=null}return l.child}function iv(o,l){return(o.lanes&l)!==0?!0:(o=o.dependencies,!!(o!==null&&Xf(o)))}function RU(o,l,h){switch(l.tag){case 3:ge(l,l.stateNode.containerInfo),Ks(l,gn,o.memoizedState.cache),du();break;case 27:case 5:Ae(l);break;case 4:ge(l,l.stateNode.containerInfo);break;case 10:Ks(l,l.type,l.memoizedProps.value);break;case 13:var g=l.memoizedState;if(g!==null)return g.dehydrated!==null?(eo(l),l.flags|=128,null):(h&l.child.childLanes)!==0?sw(o,l,h):(eo(l),o=Es(o,l,h),o!==null?o.sibling:null);eo(l);break;case 19:var E=(o.flags&128)!==0;if(g=(h&l.childLanes)!==0,g||(hu(o,l,h,!1),g=(h&l.childLanes)!==0),E){if(g)return iw(o,l,h);l.flags|=128}if(E=l.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),re(vn,vn.current),g)break;return null;case 22:case 23:return l.lanes=0,ew(o,l,h);case 24:Ks(l,gn,o.memoizedState.cache)}return Es(o,l,h)}function lw(o,l,h){if(o!==null)if(o.memoizedProps!==l.pendingProps)wn=!0;else{if(!iv(o,h)&&(l.flags&128)===0)return wn=!1,RU(o,l,h);wn=(o.flags&131072)!==0}else wn=!1,ut&&(l.flags&1048576)!==0&&UT(l,Kf,l.index);switch(l.lanes=0,l.tag){case 16:e:{o=l.pendingProps;var g=l.elementType,E=g._init;if(g=E(g._payload),l.type=g,typeof g=="function")g0(g)?(o=yi(g,o),l.tag=1,l=rw(null,l,g,o,h)):(l.tag=0,l=ev(null,l,g,o,h));else{if(g!=null){if(E=g.$$typeof,E===R){l.tag=11,l=QN(null,l,g,o,h);break e}else if(E===D){l.tag=14,l=ZN(null,l,g,o,h);break e}}throw l=ee(g)||g,Error(r(306,l,""))}}return l;case 0:return ev(o,l,l.type,l.pendingProps,h);case 1:return g=l.type,E=yi(g,l.pendingProps),rw(o,l,g,E,h);case 3:e:{if(ge(l,l.stateNode.containerInfo),o===null)throw Error(r(387));g=l.pendingProps;var w=l.memoizedState;E=w.element,M0(o,l),bu(l,g,null,h);var M=l.memoizedState;if(g=M.cache,Ks(l,gn,g),g!==w.cache&&N0(l,[gn],h,!0),xu(),g=M.element,w.isDehydrated)if(w={element:g,isDehydrated:!1,cache:M.cache},l.updateQueue.baseState=w,l.memoizedState=w,l.flags&256){l=aw(o,l,g,h);break e}else if(g!==E){E=Gr(Error(r(424)),l),fu(E),l=aw(o,l,g,h);break e}else{switch(o=l.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(Kt=ca(o.firstChild),rr=l,ut=!0,fi=null,La=!0,h=BN(l,null,g,h),l.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling}else{if(du(),g===E){l=Es(o,l,h);break e}jn(o,l,g,h)}l=l.child}return l;case 26:return ph(o,l),o===null?(h=fC(l.type,null,l.pendingProps,null))?l.memoizedState=h:ut||(h=l.type,o=l.pendingProps,g=Mh(fe.current).createElement(h),g[rn]=l,g[Ot]=o,kn(g,h,o),Nn(g),l.stateNode=g):l.memoizedState=fC(l.type,o.memoizedProps,l.pendingProps,o.memoizedState),null;case 27:return Ae(l),o===null&&ut&&(g=l.stateNode=cC(l.type,l.pendingProps,fe.current),rr=l,La=!0,E=Kt,uo(l.type)?(Hv=E,Kt=ca(g.firstChild)):Kt=E),jn(o,l,l.pendingProps.children,h),ph(o,l),o===null&&(l.flags|=4194304),l.child;case 5:return o===null&&ut&&((E=g=Kt)&&(g=rF(g,l.type,l.pendingProps,La),g!==null?(l.stateNode=g,rr=l,Kt=ca(g.firstChild),La=!1,E=!0):E=!1),E||hi(l)),Ae(l),E=l.type,w=l.pendingProps,M=o!==null?o.memoizedProps:null,g=w.children,kv(E,w)?g=null:M!==null&&kv(E,M)&&(l.flags|=32),l.memoizedState!==null&&(E=L0(o,l,EU,null,null,h),Vu._currentValue=E),ph(o,l),jn(o,l,g,h),l.child;case 6:return o===null&&ut&&((o=h=Kt)&&(h=aF(h,l.pendingProps,La),h!==null?(l.stateNode=h,rr=l,Kt=null,o=!0):o=!1),o||hi(l)),null;case 13:return sw(o,l,h);case 4:return ge(l,l.stateNode.containerInfo),g=l.pendingProps,o===null?l.child=Dl(l,null,g,h):jn(o,l,g,h),l.child;case 11:return QN(o,l,l.type,l.pendingProps,h);case 7:return jn(o,l,l.pendingProps,h),l.child;case 8:return jn(o,l,l.pendingProps.children,h),l.child;case 12:return jn(o,l,l.pendingProps.children,h),l.child;case 10:return g=l.pendingProps,Ks(l,l.type,g.value),jn(o,l,g.children,h),l.child;case 9:return E=l.type._context,g=l.pendingProps.children,pi(l),E=$n(E),g=g(E),l.flags|=1,jn(o,l,g,h),l.child;case 14:return ZN(o,l,l.type,l.pendingProps,h);case 15:return JN(o,l,l.type,l.pendingProps,h);case 19:return iw(o,l,h);case 31:return g=l.pendingProps,h=l.mode,g={mode:g.mode,children:g.children},o===null?(h=gh(g,h),h.ref=l.ref,l.child=h,h.return=l,l=h):(h=ms(o.child,g),h.ref=l.ref,l.child=h,h.return=l,l=h),l;case 22:return ew(o,l,h);case 24:return pi(l),g=$n(gn),o===null?(E=A0(),E===null&&(E=Dt,w=w0(),E.pooledCache=w,w.refCount++,w!==null&&(E.pooledCacheLanes|=h),E=w),l.memoizedState={parent:g,cache:E},R0(l),Ks(l,gn,E)):((o.lanes&h)!==0&&(M0(o,l),bu(l,null,null,h),xu()),E=o.memoizedState,w=l.memoizedState,E.parent!==g?(E={parent:g,cache:g},l.memoizedState=E,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=E),Ks(l,gn,g)):(g=w.cache,Ks(l,gn,g),g!==E.cache&&N0(l,[gn],h,!0))),jn(o,l,l.pendingProps.children,h),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function Ss(o){o.flags|=4}function cw(o,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!vC(l)){if(l=Yr.current,l!==null&&((at&4194048)===at?ka!==null:(at&62914560)!==at&&(at&536870912)===0||l!==ka))throw vu=_0,qT;o.flags|=8192}}function vh(o,l){l!==null&&(o.flags|=4),o.flags&16384&&(l=o.tag!==22?nr():536870912,o.lanes|=l,Ll|=l)}function Au(o,l){if(!ut)switch(o.tailMode){case"hidden":l=o.tail;for(var h=null;l!==null;)l.alternate!==null&&(h=l),l=l.sibling;h===null?o.tail=null:h.sibling=null;break;case"collapsed":h=o.tail;for(var g=null;h!==null;)h.alternate!==null&&(g=h),h=h.sibling;g===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:g.sibling=null}}function $t(o){var l=o.alternate!==null&&o.alternate.child===o.child,h=0,g=0;if(l)for(var E=o.child;E!==null;)h|=E.lanes|E.childLanes,g|=E.subtreeFlags&65011712,g|=E.flags&65011712,E.return=o,E=E.sibling;else for(E=o.child;E!==null;)h|=E.lanes|E.childLanes,g|=E.subtreeFlags,g|=E.flags,E.return=o,E=E.sibling;return o.subtreeFlags|=g,o.childLanes=h,l}function MU(o,l,h){var g=l.pendingProps;switch(b0(l),l.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(l),null;case 1:return $t(l),null;case 3:return h=l.stateNode,g=null,o!==null&&(g=o.memoizedState.cache),l.memoizedState.cache!==g&&(l.flags|=2048),ys(gn),Ne(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(o===null||o.child===null)&&(uu(l)?Ss(l):o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,HT())),$t(l),null;case 26:return h=l.memoizedState,o===null?(Ss(l),h!==null?($t(l),cw(l,h)):($t(l),l.flags&=-16777217)):h?h!==o.memoizedState?(Ss(l),$t(l),cw(l,h)):($t(l),l.flags&=-16777217):(o.memoizedProps!==g&&Ss(l),$t(l),l.flags&=-16777217),null;case 27:Me(l),h=fe.current;var E=l.type;if(o!==null&&l.stateNode!=null)o.memoizedProps!==g&&Ss(l);else{if(!g){if(l.stateNode===null)throw Error(r(166));return $t(l),null}o=ue.current,uu(l)?FT(l):(o=cC(E,g,h),l.stateNode=o,Ss(l))}return $t(l),null;case 5:if(Me(l),h=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==g&&Ss(l);else{if(!g){if(l.stateNode===null)throw Error(r(166));return $t(l),null}if(o=ue.current,uu(l))FT(l);else{switch(E=Mh(fe.current),o){case 1:o=E.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:o=E.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":o=E.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":o=E.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":o=E.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof g.is=="string"?E.createElement("select",{is:g.is}):E.createElement("select"),g.multiple?o.multiple=!0:g.size&&(o.size=g.size);break;default:o=typeof g.is=="string"?E.createElement(h,{is:g.is}):E.createElement(h)}}o[rn]=l,o[Ot]=g;e:for(E=l.child;E!==null;){if(E.tag===5||E.tag===6)o.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===l)break e;for(;E.sibling===null;){if(E.return===null||E.return===l)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}l.stateNode=o;e:switch(kn(o,h,g),h){case"button":case"input":case"select":case"textarea":o=!!g.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Ss(l)}}return $t(l),l.flags&=-16777217,null;case 6:if(o&&l.stateNode!=null)o.memoizedProps!==g&&Ss(l);else{if(typeof g!="string"&&l.stateNode===null)throw Error(r(166));if(o=fe.current,uu(l)){if(o=l.stateNode,h=l.memoizedProps,g=null,E=rr,E!==null)switch(E.tag){case 27:case 5:g=E.memoizedProps}o[rn]=l,o=!!(o.nodeValue===h||g!==null&&g.suppressHydrationWarning===!0||nC(o.nodeValue,h)),o||hi(l)}else o=Mh(o).createTextNode(g),o[rn]=l,l.stateNode=o}return $t(l),null;case 13:if(g=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(E=uu(l),g!==null&&g.dehydrated!==null){if(o===null){if(!E)throw Error(r(318));if(E=l.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[rn]=l}else du(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;$t(l),E=!1}else E=HT(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=E),E=!0;if(!E)return l.flags&256?(bs(l),l):(bs(l),null)}if(bs(l),(l.flags&128)!==0)return l.lanes=h,l;if(h=g!==null,o=o!==null&&o.memoizedState!==null,h){g=l.child,E=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(E=g.alternate.memoizedState.cachePool.pool);var w=null;g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(w=g.memoizedState.cachePool.pool),w!==E&&(g.flags|=2048)}return h!==o&&h&&(l.child.flags|=8192),vh(l,l.updateQueue),$t(l),null;case 4:return Ne(),o===null&&Dv(l.stateNode.containerInfo),$t(l),null;case 10:return ys(l.type),$t(l),null;case 19:if(se(vn),E=l.memoizedState,E===null)return $t(l),null;if(g=(l.flags&128)!==0,w=E.rendering,w===null)if(g)Au(E,!1);else{if(Xt!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(w=fh(o),w!==null){for(l.flags|=128,Au(E,!1),o=w.updateQueue,l.updateQueue=o,vh(l,o),l.subtreeFlags=0,o=h,h=l.child;h!==null;)kT(h,o),h=h.sibling;return re(vn,vn.current&1|2),l.child}o=o.sibling}E.tail!==null&&yt()>bh&&(l.flags|=128,g=!0,Au(E,!1),l.lanes=4194304)}else{if(!g)if(o=fh(w),o!==null){if(l.flags|=128,g=!0,o=o.updateQueue,l.updateQueue=o,vh(l,o),Au(E,!0),E.tail===null&&E.tailMode==="hidden"&&!w.alternate&&!ut)return $t(l),null}else 2*yt()-E.renderingStartTime>bh&&h!==536870912&&(l.flags|=128,g=!0,Au(E,!1),l.lanes=4194304);E.isBackwards?(w.sibling=l.child,l.child=w):(o=E.last,o!==null?o.sibling=w:l.child=w,E.last=w)}return E.tail!==null?(l=E.tail,E.rendering=l,E.tail=l.sibling,E.renderingStartTime=yt(),l.sibling=null,o=vn.current,re(vn,g?o&1|2:o&1),l):($t(l),null);case 22:case 23:return bs(l),P0(),g=l.memoizedState!==null,o!==null?o.memoizedState!==null!==g&&(l.flags|=8192):g&&(l.flags|=8192),g?(h&536870912)!==0&&(l.flags&128)===0&&($t(l),l.subtreeFlags&6&&(l.flags|=8192)):$t(l),h=l.updateQueue,h!==null&&vh(l,h.retryQueue),h=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),g=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(g=l.memoizedState.cachePool.pool),g!==h&&(l.flags|=2048),o!==null&&se(gi),null;case 24:return h=null,o!==null&&(h=o.memoizedState.cache),l.memoizedState.cache!==h&&(l.flags|=2048),ys(gn),$t(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function OU(o,l){switch(b0(l),l.tag){case 1:return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return ys(gn),Ne(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 26:case 27:case 5:return Me(l),null;case 13:if(bs(l),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(r(340));du()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return se(vn),null;case 4:return Ne(),null;case 10:return ys(l.type),null;case 22:case 23:return bs(l),P0(),o!==null&&se(gi),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 24:return ys(gn),null;case 25:return null;default:return null}}function uw(o,l){switch(b0(l),l.tag){case 3:ys(gn),Ne();break;case 26:case 27:case 5:Me(l);break;case 4:Ne();break;case 13:bs(l);break;case 19:se(vn);break;case 10:ys(l.type);break;case 22:case 23:bs(l),P0(),o!==null&&se(gi);break;case 24:ys(gn)}}function _u(o,l){try{var h=l.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var E=g.next;h=E;do{if((h.tag&o)===o){g=void 0;var w=h.create,M=h.inst;g=w(),M.destroy=g}h=h.next}while(h!==E)}}catch(I){Ct(l,l.return,I)}}function no(o,l,h){try{var g=l.updateQueue,E=g!==null?g.lastEffect:null;if(E!==null){var w=E.next;g=w;do{if((g.tag&o)===o){var M=g.inst,I=M.destroy;if(I!==void 0){M.destroy=void 0,E=l;var F=h,K=I;try{K()}catch(oe){Ct(E,F,oe)}}}g=g.next}while(g!==w)}}catch(oe){Ct(l,l.return,oe)}}function dw(o){var l=o.updateQueue;if(l!==null){var h=o.stateNode;try{ZT(l,h)}catch(g){Ct(o,o.return,g)}}}function fw(o,l,h){h.props=yi(o.type,o.memoizedProps),h.state=o.memoizedState;try{h.componentWillUnmount()}catch(g){Ct(o,l,g)}}function Ru(o,l){try{var h=o.ref;if(h!==null){switch(o.tag){case 26:case 27:case 5:var g=o.stateNode;break;case 30:g=o.stateNode;break;default:g=o.stateNode}typeof h=="function"?o.refCleanup=h(g):h.current=g}}catch(E){Ct(o,l,E)}}function Ua(o,l){var h=o.ref,g=o.refCleanup;if(h!==null)if(typeof g=="function")try{g()}catch(E){Ct(o,l,E)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(E){Ct(o,l,E)}else h.current=null}function hw(o){var l=o.type,h=o.memoizedProps,g=o.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":h.autoFocus&&g.focus();break e;case"img":h.src?g.src=h.src:h.srcSet&&(g.srcset=h.srcSet)}}catch(E){Ct(o,o.return,E)}}function lv(o,l,h){try{var g=o.stateNode;ZU(g,o.type,h,l),g[Ot]=l}catch(E){Ct(o,o.return,E)}}function mw(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&uo(o.type)||o.tag===4}function cv(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||mw(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&uo(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function uv(o,l,h){var g=o.tag;if(g===5||g===6)o=o.stateNode,l?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(o,l):(l=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,l.appendChild(o),h=h._reactRootContainer,h!=null||l.onclick!==null||(l.onclick=Rh));else if(g!==4&&(g===27&&uo(o.type)&&(h=o.stateNode,l=null),o=o.child,o!==null))for(uv(o,l,h),o=o.sibling;o!==null;)uv(o,l,h),o=o.sibling}function yh(o,l,h){var g=o.tag;if(g===5||g===6)o=o.stateNode,l?h.insertBefore(o,l):h.appendChild(o);else if(g!==4&&(g===27&&uo(o.type)&&(h=o.stateNode),o=o.child,o!==null))for(yh(o,l,h),o=o.sibling;o!==null;)yh(o,l,h),o=o.sibling}function pw(o){var l=o.stateNode,h=o.memoizedProps;try{for(var g=o.type,E=l.attributes;E.length;)l.removeAttributeNode(E[0]);kn(l,g,h),l[rn]=o,l[Ot]=h}catch(w){Ct(o,o.return,w)}}var Ts=!1,sn=!1,dv=!1,gw=typeof WeakSet=="function"?WeakSet:Set,Cn=null;function DU(o,l){if(o=o.containerInfo,jv=Lh,o=AT(o),c0(o)){if("selectionStart"in o)var h={start:o.selectionStart,end:o.selectionEnd};else e:{h=(h=o.ownerDocument)&&h.defaultView||window;var g=h.getSelection&&h.getSelection();if(g&&g.rangeCount!==0){h=g.anchorNode;var E=g.anchorOffset,w=g.focusNode;g=g.focusOffset;try{h.nodeType,w.nodeType}catch{h=null;break e}var M=0,I=-1,F=-1,K=0,oe=0,ce=o,J=null;t:for(;;){for(var ne;ce!==h||E!==0&&ce.nodeType!==3||(I=M+E),ce!==w||g!==0&&ce.nodeType!==3||(F=M+g),ce.nodeType===3&&(M+=ce.nodeValue.length),(ne=ce.firstChild)!==null;)J=ce,ce=ne;for(;;){if(ce===o)break t;if(J===h&&++K===E&&(I=M),J===w&&++oe===g&&(F=M),(ne=ce.nextSibling)!==null)break;ce=J,J=ce.parentNode}ce=ne}h=I===-1||F===-1?null:{start:I,end:F}}else h=null}h=h||{start:0,end:0}}else h=null;for(Lv={focusedElem:o,selectionRange:h},Lh=!1,Cn=l;Cn!==null;)if(l=Cn,o=l.child,(l.subtreeFlags&1024)!==0&&o!==null)o.return=l,Cn=o;else for(;Cn!==null;){switch(l=Cn,w=l.alternate,o=l.flags,l.tag){case 0:break;case 11:case 15:break;case 1:if((o&1024)!==0&&w!==null){o=void 0,h=l,E=w.memoizedProps,w=w.memoizedState,g=h.stateNode;try{var je=yi(h.type,E,h.elementType===h.type);o=g.getSnapshotBeforeUpdate(je,w),g.__reactInternalSnapshotBeforeUpdate=o}catch(_e){Ct(h,h.return,_e)}}break;case 3:if((o&1024)!==0){if(o=l.stateNode.containerInfo,h=o.nodeType,h===9)Fv(o);else if(h===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Fv(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=l.sibling,o!==null){o.return=l.return,Cn=o;break}Cn=l.return}}function vw(o,l,h){var g=h.flags;switch(h.tag){case 0:case 11:case 15:ro(o,h),g&4&&_u(5,h);break;case 1:if(ro(o,h),g&4)if(o=h.stateNode,l===null)try{o.componentDidMount()}catch(M){Ct(h,h.return,M)}else{var E=yi(h.type,l.memoizedProps);l=l.memoizedState;try{o.componentDidUpdate(E,l,o.__reactInternalSnapshotBeforeUpdate)}catch(M){Ct(h,h.return,M)}}g&64&&dw(h),g&512&&Ru(h,h.return);break;case 3:if(ro(o,h),g&64&&(o=h.updateQueue,o!==null)){if(l=null,h.child!==null)switch(h.child.tag){case 27:case 5:l=h.child.stateNode;break;case 1:l=h.child.stateNode}try{ZT(o,l)}catch(M){Ct(h,h.return,M)}}break;case 27:l===null&&g&4&&pw(h);case 26:case 5:ro(o,h),l===null&&g&4&&hw(h),g&512&&Ru(h,h.return);break;case 12:ro(o,h);break;case 13:ro(o,h),g&4&&bw(o,h),g&64&&(o=h.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(h=HU.bind(null,h),sF(o,h))));break;case 22:if(g=h.memoizedState!==null||Ts,!g){l=l!==null&&l.memoizedState!==null||sn,E=Ts;var w=sn;Ts=g,(sn=l)&&!w?ao(o,h,(h.subtreeFlags&8772)!==0):ro(o,h),Ts=E,sn=w}break;case 30:break;default:ro(o,h)}}function yw(o){var l=o.alternate;l!==null&&(o.alternate=null,yw(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&zg(l)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Vt=null,vr=!1;function Ns(o,l,h){for(h=h.child;h!==null;)xw(o,l,h),h=h.sibling}function xw(o,l,h){if(In&&typeof In.onCommitFiberUnmount=="function")try{In.onCommitFiberUnmount(Br,h)}catch{}switch(h.tag){case 26:sn||Ua(h,l),Ns(o,l,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:sn||Ua(h,l);var g=Vt,E=vr;uo(h.type)&&(Vt=h.stateNode,vr=!1),Ns(o,l,h),Uu(h.stateNode),Vt=g,vr=E;break;case 5:sn||Ua(h,l);case 6:if(g=Vt,E=vr,Vt=null,Ns(o,l,h),Vt=g,vr=E,Vt!==null)if(vr)try{(Vt.nodeType===9?Vt.body:Vt.nodeName==="HTML"?Vt.ownerDocument.body:Vt).removeChild(h.stateNode)}catch(w){Ct(h,l,w)}else try{Vt.removeChild(h.stateNode)}catch(w){Ct(h,l,w)}break;case 18:Vt!==null&&(vr?(o=Vt,iC(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,h.stateNode),qu(o)):iC(Vt,h.stateNode));break;case 4:g=Vt,E=vr,Vt=h.stateNode.containerInfo,vr=!0,Ns(o,l,h),Vt=g,vr=E;break;case 0:case 11:case 14:case 15:sn||no(2,h,l),sn||no(4,h,l),Ns(o,l,h);break;case 1:sn||(Ua(h,l),g=h.stateNode,typeof g.componentWillUnmount=="function"&&fw(h,l,g)),Ns(o,l,h);break;case 21:Ns(o,l,h);break;case 22:sn=(g=sn)||h.memoizedState!==null,Ns(o,l,h),sn=g;break;default:Ns(o,l,h)}}function bw(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{qu(o)}catch(h){Ct(l,l.return,h)}}function IU(o){switch(o.tag){case 13:case 19:var l=o.stateNode;return l===null&&(l=o.stateNode=new gw),l;case 22:return o=o.stateNode,l=o._retryCache,l===null&&(l=o._retryCache=new gw),l;default:throw Error(r(435,o.tag))}}function fv(o,l){var h=IU(o);l.forEach(function(g){var E=VU.bind(null,o,g);h.has(g)||(h.add(g),g.then(E,E))})}function _r(o,l){var h=l.deletions;if(h!==null)for(var g=0;g<h.length;g++){var E=h[g],w=o,M=l,I=M;e:for(;I!==null;){switch(I.tag){case 27:if(uo(I.type)){Vt=I.stateNode,vr=!1;break e}break;case 5:Vt=I.stateNode,vr=!1;break e;case 3:case 4:Vt=I.stateNode.containerInfo,vr=!0;break e}I=I.return}if(Vt===null)throw Error(r(160));xw(w,M,E),Vt=null,vr=!1,w=E.alternate,w!==null&&(w.return=null),E.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)Ew(l,o),l=l.sibling}var la=null;function Ew(o,l){var h=o.alternate,g=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:_r(l,o),Rr(o),g&4&&(no(3,o,o.return),_u(3,o),no(5,o,o.return));break;case 1:_r(l,o),Rr(o),g&512&&(sn||h===null||Ua(h,h.return)),g&64&&Ts&&(o=o.updateQueue,o!==null&&(g=o.callbacks,g!==null&&(h=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=h===null?g:h.concat(g))));break;case 26:var E=la;if(_r(l,o),Rr(o),g&512&&(sn||h===null||Ua(h,h.return)),g&4){var w=h!==null?h.memoizedState:null;if(g=o.memoizedState,h===null)if(g===null)if(o.stateNode===null){e:{g=o.type,h=o.memoizedProps,E=E.ownerDocument||E;t:switch(g){case"title":w=E.getElementsByTagName("title")[0],(!w||w[Jc]||w[rn]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))&&(w=E.createElement(g),E.head.insertBefore(w,E.querySelector("head > title"))),kn(w,g,h),w[rn]=o,Nn(w),g=w;break e;case"link":var M=pC("link","href",E).get(g+(h.href||""));if(M){for(var I=0;I<M.length;I++)if(w=M[I],w.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&w.getAttribute("rel")===(h.rel==null?null:h.rel)&&w.getAttribute("title")===(h.title==null?null:h.title)&&w.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){M.splice(I,1);break t}}w=E.createElement(g),kn(w,g,h),E.head.appendChild(w);break;case"meta":if(M=pC("meta","content",E).get(g+(h.content||""))){for(I=0;I<M.length;I++)if(w=M[I],w.getAttribute("content")===(h.content==null?null:""+h.content)&&w.getAttribute("name")===(h.name==null?null:h.name)&&w.getAttribute("property")===(h.property==null?null:h.property)&&w.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&w.getAttribute("charset")===(h.charSet==null?null:h.charSet)){M.splice(I,1);break t}}w=E.createElement(g),kn(w,g,h),E.head.appendChild(w);break;default:throw Error(r(468,g))}w[rn]=o,Nn(w),g=w}o.stateNode=g}else gC(E,o.type,o.stateNode);else o.stateNode=mC(E,g,o.memoizedProps);else w!==g?(w===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):w.count--,g===null?gC(E,o.type,o.stateNode):mC(E,g,o.memoizedProps)):g===null&&o.stateNode!==null&&lv(o,o.memoizedProps,h.memoizedProps)}break;case 27:_r(l,o),Rr(o),g&512&&(sn||h===null||Ua(h,h.return)),h!==null&&g&4&&lv(o,o.memoizedProps,h.memoizedProps);break;case 5:if(_r(l,o),Rr(o),g&512&&(sn||h===null||Ua(h,h.return)),o.flags&32){E=o.stateNode;try{ml(E,"")}catch(ne){Ct(o,o.return,ne)}}g&4&&o.stateNode!=null&&(E=o.memoizedProps,lv(o,E,h!==null?h.memoizedProps:E)),g&1024&&(dv=!0);break;case 6:if(_r(l,o),Rr(o),g&4){if(o.stateNode===null)throw Error(r(162));g=o.memoizedProps,h=o.stateNode;try{h.nodeValue=g}catch(ne){Ct(o,o.return,ne)}}break;case 3:if(Ih=null,E=la,la=Oh(l.containerInfo),_r(l,o),la=E,Rr(o),g&4&&h!==null&&h.memoizedState.isDehydrated)try{qu(l.containerInfo)}catch(ne){Ct(o,o.return,ne)}dv&&(dv=!1,Sw(o));break;case 4:g=la,la=Oh(o.stateNode.containerInfo),_r(l,o),Rr(o),la=g;break;case 12:_r(l,o),Rr(o);break;case 13:_r(l,o),Rr(o),o.child.flags&8192&&o.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(yv=yt()),g&4&&(g=o.updateQueue,g!==null&&(o.updateQueue=null,fv(o,g)));break;case 22:E=o.memoizedState!==null;var F=h!==null&&h.memoizedState!==null,K=Ts,oe=sn;if(Ts=K||E,sn=oe||F,_r(l,o),sn=oe,Ts=K,Rr(o),g&8192)e:for(l=o.stateNode,l._visibility=E?l._visibility&-2:l._visibility|1,E&&(h===null||F||Ts||sn||xi(o)),h=null,l=o;;){if(l.tag===5||l.tag===26){if(h===null){F=h=l;try{if(w=F.stateNode,E)M=w.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none";else{I=F.stateNode;var ce=F.memoizedProps.style,J=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;I.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(ne){Ct(F,F.return,ne)}}}else if(l.tag===6){if(h===null){F=l;try{F.stateNode.nodeValue=E?"":F.memoizedProps}catch(ne){Ct(F,F.return,ne)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===o)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break e;for(;l.sibling===null;){if(l.return===null||l.return===o)break e;h===l&&(h=null),l=l.return}h===l&&(h=null),l.sibling.return=l.return,l=l.sibling}g&4&&(g=o.updateQueue,g!==null&&(h=g.retryQueue,h!==null&&(g.retryQueue=null,fv(o,h))));break;case 19:_r(l,o),Rr(o),g&4&&(g=o.updateQueue,g!==null&&(o.updateQueue=null,fv(o,g)));break;case 30:break;case 21:break;default:_r(l,o),Rr(o)}}function Rr(o){var l=o.flags;if(l&2){try{for(var h,g=o.return;g!==null;){if(mw(g)){h=g;break}g=g.return}if(h==null)throw Error(r(160));switch(h.tag){case 27:var E=h.stateNode,w=cv(o);yh(o,w,E);break;case 5:var M=h.stateNode;h.flags&32&&(ml(M,""),h.flags&=-33);var I=cv(o);yh(o,I,M);break;case 3:case 4:var F=h.stateNode.containerInfo,K=cv(o);uv(o,K,F);break;default:throw Error(r(161))}}catch(oe){Ct(o,o.return,oe)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function Sw(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var l=o;Sw(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),o=o.sibling}}function ro(o,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)vw(o,l.alternate,l),l=l.sibling}function xi(o){for(o=o.child;o!==null;){var l=o;switch(l.tag){case 0:case 11:case 14:case 15:no(4,l,l.return),xi(l);break;case 1:Ua(l,l.return);var h=l.stateNode;typeof h.componentWillUnmount=="function"&&fw(l,l.return,h),xi(l);break;case 27:Uu(l.stateNode);case 26:case 5:Ua(l,l.return),xi(l);break;case 22:l.memoizedState===null&&xi(l);break;case 30:xi(l);break;default:xi(l)}o=o.sibling}}function ao(o,l,h){for(h=h&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var g=l.alternate,E=o,w=l,M=w.flags;switch(w.tag){case 0:case 11:case 15:ao(E,w,h),_u(4,w);break;case 1:if(ao(E,w,h),g=w,E=g.stateNode,typeof E.componentDidMount=="function")try{E.componentDidMount()}catch(K){Ct(g,g.return,K)}if(g=w,E=g.updateQueue,E!==null){var I=g.stateNode;try{var F=E.shared.hiddenCallbacks;if(F!==null)for(E.shared.hiddenCallbacks=null,E=0;E<F.length;E++)QT(F[E],I)}catch(K){Ct(g,g.return,K)}}h&&M&64&&dw(w),Ru(w,w.return);break;case 27:pw(w);case 26:case 5:ao(E,w,h),h&&g===null&&M&4&&hw(w),Ru(w,w.return);break;case 12:ao(E,w,h);break;case 13:ao(E,w,h),h&&M&4&&bw(E,w);break;case 22:w.memoizedState===null&&ao(E,w,h),Ru(w,w.return);break;case 30:break;default:ao(E,w,h)}l=l.sibling}}function hv(o,l){var h=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==h&&(o!=null&&o.refCount++,h!=null&&mu(h))}function mv(o,l){o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&mu(o))}function Fa(o,l,h,g){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Tw(o,l,h,g),l=l.sibling}function Tw(o,l,h,g){var E=l.flags;switch(l.tag){case 0:case 11:case 15:Fa(o,l,h,g),E&2048&&_u(9,l);break;case 1:Fa(o,l,h,g);break;case 3:Fa(o,l,h,g),E&2048&&(o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&mu(o)));break;case 12:if(E&2048){Fa(o,l,h,g),o=l.stateNode;try{var w=l.memoizedProps,M=w.id,I=w.onPostCommit;typeof I=="function"&&I(M,l.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(F){Ct(l,l.return,F)}}else Fa(o,l,h,g);break;case 13:Fa(o,l,h,g);break;case 23:break;case 22:w=l.stateNode,M=l.alternate,l.memoizedState!==null?w._visibility&2?Fa(o,l,h,g):Mu(o,l):w._visibility&2?Fa(o,l,h,g):(w._visibility|=2,Il(o,l,h,g,(l.subtreeFlags&10256)!==0)),E&2048&&hv(M,l);break;case 24:Fa(o,l,h,g),E&2048&&mv(l.alternate,l);break;default:Fa(o,l,h,g)}}function Il(o,l,h,g,E){for(E=E&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;){var w=o,M=l,I=h,F=g,K=M.flags;switch(M.tag){case 0:case 11:case 15:Il(w,M,I,F,E),_u(8,M);break;case 23:break;case 22:var oe=M.stateNode;M.memoizedState!==null?oe._visibility&2?Il(w,M,I,F,E):Mu(w,M):(oe._visibility|=2,Il(w,M,I,F,E)),E&&K&2048&&hv(M.alternate,M);break;case 24:Il(w,M,I,F,E),E&&K&2048&&mv(M.alternate,M);break;default:Il(w,M,I,F,E)}l=l.sibling}}function Mu(o,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var h=o,g=l,E=g.flags;switch(g.tag){case 22:Mu(h,g),E&2048&&hv(g.alternate,g);break;case 24:Mu(h,g),E&2048&&mv(g.alternate,g);break;default:Mu(h,g)}l=l.sibling}}var Ou=8192;function Pl(o){if(o.subtreeFlags&Ou)for(o=o.child;o!==null;)Nw(o),o=o.sibling}function Nw(o){switch(o.tag){case 26:Pl(o),o.flags&Ou&&o.memoizedState!==null&&yF(la,o.memoizedState,o.memoizedProps);break;case 5:Pl(o);break;case 3:case 4:var l=la;la=Oh(o.stateNode.containerInfo),Pl(o),la=l;break;case 22:o.memoizedState===null&&(l=o.alternate,l!==null&&l.memoizedState!==null?(l=Ou,Ou=16777216,Pl(o),Ou=l):Pl(o));break;default:Pl(o)}}function ww(o){var l=o.alternate;if(l!==null&&(o=l.child,o!==null)){l.child=null;do l=o.sibling,o.sibling=null,o=l;while(o!==null)}}function Du(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var h=0;h<l.length;h++){var g=l[h];Cn=g,Aw(g,o)}ww(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)Cw(o),o=o.sibling}function Cw(o){switch(o.tag){case 0:case 11:case 15:Du(o),o.flags&2048&&no(9,o,o.return);break;case 3:Du(o);break;case 12:Du(o);break;case 22:var l=o.stateNode;o.memoizedState!==null&&l._visibility&2&&(o.return===null||o.return.tag!==13)?(l._visibility&=-3,xh(o)):Du(o);break;default:Du(o)}}function xh(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var h=0;h<l.length;h++){var g=l[h];Cn=g,Aw(g,o)}ww(o)}for(o=o.child;o!==null;){switch(l=o,l.tag){case 0:case 11:case 15:no(8,l,l.return),xh(l);break;case 22:h=l.stateNode,h._visibility&2&&(h._visibility&=-3,xh(l));break;default:xh(l)}o=o.sibling}}function Aw(o,l){for(;Cn!==null;){var h=Cn;switch(h.tag){case 0:case 11:case 15:no(8,h,l);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var g=h.memoizedState.cachePool.pool;g!=null&&g.refCount++}break;case 24:mu(h.memoizedState.cache)}if(g=h.child,g!==null)g.return=h,Cn=g;else e:for(h=o;Cn!==null;){g=Cn;var E=g.sibling,w=g.return;if(yw(g),g===h){Cn=null;break e}if(E!==null){E.return=w,Cn=E;break e}Cn=w}}}var PU={getCacheForType:function(o){var l=$n(gn),h=l.data.get(o);return h===void 0&&(h=o(),l.data.set(o,h)),h}},jU=typeof WeakMap=="function"?WeakMap:Map,mt=0,Dt=null,et=null,at=0,pt=0,Mr=null,so=!1,jl=!1,pv=!1,ws=0,Xt=0,oo=0,bi=0,gv=0,Wr=0,Ll=0,Iu=null,yr=null,vv=!1,yv=0,bh=1/0,Eh=null,io=null,Ln=0,lo=null,kl=null,Ul=0,xv=0,bv=null,_w=null,Pu=0,Ev=null;function Or(){if((mt&2)!==0&&at!==0)return at&-at;if(j.T!==null){var o=wl;return o!==0?o:_v()}return ai()}function Rw(){Wr===0&&(Wr=(at&536870912)===0||ut?bt():536870912);var o=Yr.current;return o!==null&&(o.flags|=32),Wr}function Dr(o,l,h){(o===Dt&&(pt===2||pt===9)||o.cancelPendingCommit!==null)&&(Fl(o,0),co(o,at,Wr,!1)),ja(o,h),((mt&2)===0||o!==Dt)&&(o===Dt&&((mt&2)===0&&(bi|=h),Xt===4&&co(o,at,Wr,!1)),Ba(o))}function Mw(o,l,h){if((mt&6)!==0)throw Error(r(327));var g=!h&&(l&124)===0&&(l&o.expiredLanes)===0||mn(o,l),E=g?UU(o,l):Nv(o,l,!0),w=g;do{if(E===0){jl&&!g&&co(o,l,0,!1);break}else{if(h=o.current.alternate,w&&!LU(h)){E=Nv(o,l,!1),w=!1;continue}if(E===2){if(w=l,o.errorRecoveryDisabledLanes&w)var M=0;else M=o.pendingLanes&-536870913,M=M!==0?M:M&536870912?536870912:0;if(M!==0){l=M;e:{var I=o;E=Iu;var F=I.current.memoizedState.isDehydrated;if(F&&(Fl(I,M).flags|=256),M=Nv(I,M,!1),M!==2){if(pv&&!F){I.errorRecoveryDisabledLanes|=w,bi|=w,E=4;break e}w=yr,yr=E,w!==null&&(yr===null?yr=w:yr.push.apply(yr,w))}E=M}if(w=!1,E!==2)continue}}if(E===1){Fl(o,0),co(o,l,0,!0);break}e:{switch(g=o,w=E,w){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:co(g,l,Wr,!so);break e;case 2:yr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(E=yv+300-yt(),10<E)){if(co(g,l,Wr,!so),zn(g,0,!0)!==0)break e;g.timeoutHandle=sC(Ow.bind(null,g,h,yr,Eh,vv,l,Wr,bi,Ll,so,w,2,-0,0),E);break e}Ow(g,h,yr,Eh,vv,l,Wr,bi,Ll,so,w,0,-0,0)}}break}while(!0);Ba(o)}function Ow(o,l,h,g,E,w,M,I,F,K,oe,ce,J,ne){if(o.timeoutHandle=-1,ce=l.subtreeFlags,(ce&8192||(ce&16785408)===16785408)&&(Hu={stylesheets:null,count:0,unsuspend:vF},Nw(l),ce=xF(),ce!==null)){o.cancelPendingCommit=ce(Uw.bind(null,o,l,w,h,g,E,M,I,F,oe,1,J,ne)),co(o,w,M,!K);return}Uw(o,l,w,h,g,E,M,I,F)}function LU(o){for(var l=o;;){var h=l.tag;if((h===0||h===11||h===15)&&l.flags&16384&&(h=l.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var g=0;g<h.length;g++){var E=h[g],w=E.getSnapshot;E=E.value;try{if(!Cr(w(),E))return!1}catch{return!1}}if(h=l.child,l.subtreeFlags&16384&&h!==null)h.return=l,l=h;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function co(o,l,h,g){l&=~gv,l&=~bi,o.suspendedLanes|=l,o.pingedLanes&=~l,g&&(o.warmLanes|=l),g=o.expirationTimes;for(var E=l;0<E;){var w=31-hn(E),M=1<<w;g[w]=-1,E&=~M}h!==0&&Ve(o,h,l)}function Sh(){return(mt&6)===0?(ju(0),!1):!0}function Sv(){if(et!==null){if(pt===0)var o=et.return;else o=et,vs=mi=null,F0(o),Ol=null,wu=0,o=et;for(;o!==null;)uw(o.alternate,o),o=o.return;et=null}}function Fl(o,l){var h=o.timeoutHandle;h!==-1&&(o.timeoutHandle=-1,eF(h)),h=o.cancelPendingCommit,h!==null&&(o.cancelPendingCommit=null,h()),Sv(),Dt=o,et=h=ms(o.current,null),at=l,pt=0,Mr=null,so=!1,jl=mn(o,l),pv=!1,Ll=Wr=gv=bi=oo=Xt=0,yr=Iu=null,vv=!1,(l&8)!==0&&(l|=l&32);var g=o.entangledLanes;if(g!==0)for(o=o.entanglements,g&=l;0<g;){var E=31-hn(g),w=1<<E;l|=o[E],g&=~w}return ws=l,zf(),h}function Dw(o,l){Ke=null,j.H=ch,l===gu||l===Jf?(l=KT(),pt=3):l===qT?(l=KT(),pt=4):pt=l===XN?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Mr=l,et===null&&(Xt=1,mh(o,Gr(l,o.current)))}function Iw(){var o=j.H;return j.H=ch,o===null?ch:o}function Pw(){var o=j.A;return j.A=PU,o}function Tv(){Xt=4,so||(at&4194048)!==at&&Yr.current!==null||(jl=!0),(oo&134217727)===0&&(bi&134217727)===0||Dt===null||co(Dt,at,Wr,!1)}function Nv(o,l,h){var g=mt;mt|=2;var E=Iw(),w=Pw();(Dt!==o||at!==l)&&(Eh=null,Fl(o,l)),l=!1;var M=Xt;e:do try{if(pt!==0&&et!==null){var I=et,F=Mr;switch(pt){case 8:Sv(),M=6;break e;case 3:case 2:case 9:case 6:Yr.current===null&&(l=!0);var K=pt;if(pt=0,Mr=null,Bl(o,I,F,K),h&&jl){M=0;break e}break;default:K=pt,pt=0,Mr=null,Bl(o,I,F,K)}}kU(),M=Xt;break}catch(oe){Dw(o,oe)}while(!0);return l&&o.shellSuspendCounter++,vs=mi=null,mt=g,j.H=E,j.A=w,et===null&&(Dt=null,at=0,zf()),M}function kU(){for(;et!==null;)jw(et)}function UU(o,l){var h=mt;mt|=2;var g=Iw(),E=Pw();Dt!==o||at!==l?(Eh=null,bh=yt()+500,Fl(o,l)):jl=mn(o,l);e:do try{if(pt!==0&&et!==null){l=et;var w=Mr;t:switch(pt){case 1:pt=0,Mr=null,Bl(o,l,w,1);break;case 2:case 9:if(YT(w)){pt=0,Mr=null,Lw(l);break}l=function(){pt!==2&&pt!==9||Dt!==o||(pt=7),Ba(o)},w.then(l,l);break e;case 3:pt=7;break e;case 4:pt=5;break e;case 7:YT(w)?(pt=0,Mr=null,Lw(l)):(pt=0,Mr=null,Bl(o,l,w,7));break;case 5:var M=null;switch(et.tag){case 26:M=et.memoizedState;case 5:case 27:var I=et;if(!M||vC(M)){pt=0,Mr=null;var F=I.sibling;if(F!==null)et=F;else{var K=I.return;K!==null?(et=K,Th(K)):et=null}break t}}pt=0,Mr=null,Bl(o,l,w,5);break;case 6:pt=0,Mr=null,Bl(o,l,w,6);break;case 8:Sv(),Xt=6;break e;default:throw Error(r(462))}}FU();break}catch(oe){Dw(o,oe)}while(!0);return vs=mi=null,j.H=g,j.A=E,mt=h,et!==null?0:(Dt=null,at=0,zf(),Xt)}function FU(){for(;et!==null&&!On();)jw(et)}function jw(o){var l=lw(o.alternate,o,ws);o.memoizedProps=o.pendingProps,l===null?Th(o):et=l}function Lw(o){var l=o,h=l.alternate;switch(l.tag){case 15:case 0:l=nw(h,l,l.pendingProps,l.type,void 0,at);break;case 11:l=nw(h,l,l.pendingProps,l.type.render,l.ref,at);break;case 5:F0(l);default:uw(h,l),l=et=kT(l,ws),l=lw(h,l,ws)}o.memoizedProps=o.pendingProps,l===null?Th(o):et=l}function Bl(o,l,h,g){vs=mi=null,F0(l),Ol=null,wu=0;var E=l.return;try{if(_U(o,E,l,h,at)){Xt=1,mh(o,Gr(h,o.current)),et=null;return}}catch(w){if(E!==null)throw et=E,w;Xt=1,mh(o,Gr(h,o.current)),et=null;return}l.flags&32768?(ut||g===1?o=!0:jl||(at&536870912)!==0?o=!1:(so=o=!0,(g===2||g===9||g===3||g===6)&&(g=Yr.current,g!==null&&g.tag===13&&(g.flags|=16384))),kw(l,o)):Th(l)}function Th(o){var l=o;do{if((l.flags&32768)!==0){kw(l,so);return}o=l.return;var h=MU(l.alternate,l,ws);if(h!==null){et=h;return}if(l=l.sibling,l!==null){et=l;return}et=l=o}while(l!==null);Xt===0&&(Xt=5)}function kw(o,l){do{var h=OU(o.alternate,o);if(h!==null){h.flags&=32767,et=h;return}if(h=o.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!l&&(o=o.sibling,o!==null)){et=o;return}et=o=h}while(o!==null);Xt=6,et=null}function Uw(o,l,h,g,E,w,M,I,F){o.cancelPendingCommit=null;do Nh();while(Ln!==0);if((mt&6)!==0)throw Error(r(327));if(l!==null){if(l===o.current)throw Error(r(177));if(w=l.lanes|l.childLanes,w|=m0,ol(o,h,w,M,I,F),o===Dt&&(et=Dt=null,at=0),kl=l,lo=o,Ul=h,xv=w,bv=E,_w=g,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,GU(Dn,function(){return Gw(),null})):(o.callbackNode=null,o.callbackPriority=0),g=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||g){g=j.T,j.T=null,E=Y.p,Y.p=2,M=mt,mt|=4;try{DU(o,l,h)}finally{mt=M,Y.p=E,j.T=g}}Ln=1,Fw(),Bw(),Hw()}}function Fw(){if(Ln===1){Ln=0;var o=lo,l=kl,h=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||h){h=j.T,j.T=null;var g=Y.p;Y.p=2;var E=mt;mt|=4;try{Ew(l,o);var w=Lv,M=AT(o.containerInfo),I=w.focusedElem,F=w.selectionRange;if(M!==I&&I&&I.ownerDocument&&CT(I.ownerDocument.documentElement,I)){if(F!==null&&c0(I)){var K=F.start,oe=F.end;if(oe===void 0&&(oe=K),"selectionStart"in I)I.selectionStart=K,I.selectionEnd=Math.min(oe,I.value.length);else{var ce=I.ownerDocument||document,J=ce&&ce.defaultView||window;if(J.getSelection){var ne=J.getSelection(),je=I.textContent.length,_e=Math.min(F.start,je),Tt=F.end===void 0?_e:Math.min(F.end,je);!ne.extend&&_e>Tt&&(M=Tt,Tt=_e,_e=M);var q=wT(I,_e),G=wT(I,Tt);if(q&&G&&(ne.rangeCount!==1||ne.anchorNode!==q.node||ne.anchorOffset!==q.offset||ne.focusNode!==G.node||ne.focusOffset!==G.offset)){var W=ce.createRange();W.setStart(q.node,q.offset),ne.removeAllRanges(),_e>Tt?(ne.addRange(W),ne.extend(G.node,G.offset)):(W.setEnd(G.node,G.offset),ne.addRange(W))}}}}for(ce=[],ne=I;ne=ne.parentNode;)ne.nodeType===1&&ce.push({element:ne,left:ne.scrollLeft,top:ne.scrollTop});for(typeof I.focus=="function"&&I.focus(),I=0;I<ce.length;I++){var ie=ce[I];ie.element.scrollLeft=ie.left,ie.element.scrollTop=ie.top}}Lh=!!jv,Lv=jv=null}finally{mt=E,Y.p=g,j.T=h}}o.current=l,Ln=2}}function Bw(){if(Ln===2){Ln=0;var o=lo,l=kl,h=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||h){h=j.T,j.T=null;var g=Y.p;Y.p=2;var E=mt;mt|=4;try{vw(o,l.alternate,l)}finally{mt=E,Y.p=g,j.T=h}}Ln=3}}function Hw(){if(Ln===4||Ln===3){Ln=0,tr();var o=lo,l=kl,h=Ul,g=_w;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Ln=5:(Ln=0,kl=lo=null,Vw(o,o.pendingLanes));var E=o.pendingLanes;if(E===0&&(io=null),Pn(h),l=l.stateNode,In&&typeof In.onCommitFiberRoot=="function")try{In.onCommitFiberRoot(Br,l,void 0,(l.current.flags&128)===128)}catch{}if(g!==null){l=j.T,E=Y.p,Y.p=2,j.T=null;try{for(var w=o.onRecoverableError,M=0;M<g.length;M++){var I=g[M];w(I.value,{componentStack:I.stack})}}finally{j.T=l,Y.p=E}}(Ul&3)!==0&&Nh(),Ba(o),E=o.pendingLanes,(h&4194090)!==0&&(E&42)!==0?o===Ev?Pu++:(Pu=0,Ev=o):Pu=0,ju(0)}}function Vw(o,l){(o.pooledCacheLanes&=l)===0&&(l=o.pooledCache,l!=null&&(o.pooledCache=null,mu(l)))}function Nh(o){return Fw(),Bw(),Hw(),Gw()}function Gw(){if(Ln!==5)return!1;var o=lo,l=xv;xv=0;var h=Pn(Ul),g=j.T,E=Y.p;try{Y.p=32>h?32:h,j.T=null,h=bv,bv=null;var w=lo,M=Ul;if(Ln=0,kl=lo=null,Ul=0,(mt&6)!==0)throw Error(r(331));var I=mt;if(mt|=4,Cw(w.current),Tw(w,w.current,M,h),mt=I,ju(0,!1),In&&typeof In.onPostCommitFiberRoot=="function")try{In.onPostCommitFiberRoot(Br,w)}catch{}return!0}finally{Y.p=E,j.T=g,Vw(o,l)}}function zw(o,l,h){l=Gr(h,l),l=J0(o.stateNode,l,2),o=Zs(o,l,2),o!==null&&(ja(o,2),Ba(o))}function Ct(o,l,h){if(o.tag===3)zw(o,o,h);else for(;l!==null;){if(l.tag===3){zw(l,o,h);break}else if(l.tag===1){var g=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(io===null||!io.has(g))){o=Gr(h,o),h=WN(2),g=Zs(l,h,2),g!==null&&(KN(h,g,l,o),ja(g,2),Ba(g));break}}l=l.return}}function wv(o,l,h){var g=o.pingCache;if(g===null){g=o.pingCache=new jU;var E=new Set;g.set(l,E)}else E=g.get(l),E===void 0&&(E=new Set,g.set(l,E));E.has(h)||(pv=!0,E.add(h),o=BU.bind(null,o,l,h),l.then(o,o))}function BU(o,l,h){var g=o.pingCache;g!==null&&g.delete(l),o.pingedLanes|=o.suspendedLanes&h,o.warmLanes&=~h,Dt===o&&(at&h)===h&&(Xt===4||Xt===3&&(at&62914560)===at&&300>yt()-yv?(mt&2)===0&&Fl(o,0):gv|=h,Ll===at&&(Ll=0)),Ba(o)}function $w(o,l){l===0&&(l=nr()),o=El(o,l),o!==null&&(ja(o,l),Ba(o))}function HU(o){var l=o.memoizedState,h=0;l!==null&&(h=l.retryLane),$w(o,h)}function VU(o,l){var h=0;switch(o.tag){case 13:var g=o.stateNode,E=o.memoizedState;E!==null&&(h=E.retryLane);break;case 19:g=o.stateNode;break;case 22:g=o.stateNode._retryCache;break;default:throw Error(r(314))}g!==null&&g.delete(l),$w(o,h)}function GU(o,l){return Ft(o,l)}var wh=null,Hl=null,Cv=!1,Ch=!1,Av=!1,Ei=0;function Ba(o){o!==Hl&&o.next===null&&(Hl===null?wh=Hl=o:Hl=Hl.next=o),Ch=!0,Cv||(Cv=!0,$U())}function ju(o,l){if(!Av&&Ch){Av=!0;do for(var h=!1,g=wh;g!==null;){if(o!==0){var E=g.pendingLanes;if(E===0)var w=0;else{var M=g.suspendedLanes,I=g.pingedLanes;w=(1<<31-hn(42|o)+1)-1,w&=E&~(M&~I),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(h=!0,Kw(g,w))}else w=at,w=zn(g,g===Dt?w:0,g.cancelPendingCommit!==null||g.timeoutHandle!==-1),(w&3)===0||mn(g,w)||(h=!0,Kw(g,w));g=g.next}while(h);Av=!1}}function zU(){qw()}function qw(){Ch=Cv=!1;var o=0;Ei!==0&&(JU()&&(o=Ei),Ei=0);for(var l=yt(),h=null,g=wh;g!==null;){var E=g.next,w=Yw(g,l);w===0?(g.next=null,h===null?wh=E:h.next=E,E===null&&(Hl=h)):(h=g,(o!==0||(w&3)!==0)&&(Ch=!0)),g=E}ju(o)}function Yw(o,l){for(var h=o.suspendedLanes,g=o.pingedLanes,E=o.expirationTimes,w=o.pendingLanes&-62914561;0<w;){var M=31-hn(w),I=1<<M,F=E[M];F===-1?((I&h)===0||(I&g)!==0)&&(E[M]=Pa(I,l)):F<=l&&(o.expiredLanes|=I),w&=~I}if(l=Dt,h=at,h=zn(o,o===l?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),g=o.callbackNode,h===0||o===l&&(pt===2||pt===9)||o.cancelPendingCommit!==null)return g!==null&&g!==null&&dt(g),o.callbackNode=null,o.callbackPriority=0;if((h&3)===0||mn(o,h)){if(l=h&-h,l===o.callbackPriority)return l;switch(g!==null&&dt(g),Pn(h)){case 2:case 8:h=Bt;break;case 32:h=Dn;break;case 268435456:h=Sn;break;default:h=Dn}return g=Ww.bind(null,o),h=Ft(h,g),o.callbackPriority=l,o.callbackNode=h,l}return g!==null&&g!==null&&dt(g),o.callbackPriority=2,o.callbackNode=null,2}function Ww(o,l){if(Ln!==0&&Ln!==5)return o.callbackNode=null,o.callbackPriority=0,null;var h=o.callbackNode;if(Nh()&&o.callbackNode!==h)return null;var g=at;return g=zn(o,o===Dt?g:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),g===0?null:(Mw(o,g,l),Yw(o,yt()),o.callbackNode!=null&&o.callbackNode===h?Ww.bind(null,o):null)}function Kw(o,l){if(Nh())return null;Mw(o,l,!0)}function $U(){tF(function(){(mt&6)!==0?Ft(Wt,zU):qw()})}function _v(){return Ei===0&&(Ei=bt()),Ei}function Xw(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:kf(""+o)}function Qw(o,l){var h=l.ownerDocument.createElement("input");return h.name=l.name,h.value=l.value,o.id&&h.setAttribute("form",o.id),l.parentNode.insertBefore(h,l),o=new FormData(o),h.parentNode.removeChild(h),o}function qU(o,l,h,g,E){if(l==="submit"&&h&&h.stateNode===E){var w=Xw((E[Ot]||null).action),M=g.submitter;M&&(l=(l=M[Ot]||null)?Xw(l.formAction):M.getAttribute("formAction"),l!==null&&(w=l,M=null));var I=new Hf("action","action",null,g,E);o.push({event:I,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(Ei!==0){var F=M?Qw(E,M):new FormData(E);W0(h,{pending:!0,data:F,method:E.method,action:w},null,F)}}else typeof w=="function"&&(I.preventDefault(),F=M?Qw(E,M):new FormData(E),W0(h,{pending:!0,data:F,method:E.method,action:w},w,F))},currentTarget:E}]})}}for(var Rv=0;Rv<h0.length;Rv++){var Mv=h0[Rv],YU=Mv.toLowerCase(),WU=Mv[0].toUpperCase()+Mv.slice(1);ia(YU,"on"+WU)}ia(MT,"onAnimationEnd"),ia(OT,"onAnimationIteration"),ia(DT,"onAnimationStart"),ia("dblclick","onDoubleClick"),ia("focusin","onFocus"),ia("focusout","onBlur"),ia(dU,"onTransitionRun"),ia(fU,"onTransitionStart"),ia(hU,"onTransitionCancel"),ia(IT,"onTransitionEnd"),dl("onMouseEnter",["mouseout","mouseover"]),dl("onMouseLeave",["mouseout","mouseover"]),dl("onPointerEnter",["pointerout","pointerover"]),dl("onPointerLeave",["pointerout","pointerover"]),si("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),si("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),si("onBeforeInput",["compositionend","keypress","textInput","paste"]),si("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),si("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),si("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lu="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(" "),KU=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Lu));function Zw(o,l){l=(l&4)!==0;for(var h=0;h<o.length;h++){var g=o[h],E=g.event;g=g.listeners;e:{var w=void 0;if(l)for(var M=g.length-1;0<=M;M--){var I=g[M],F=I.instance,K=I.currentTarget;if(I=I.listener,F!==w&&E.isPropagationStopped())break e;w=I,E.currentTarget=K;try{w(E)}catch(oe){hh(oe)}E.currentTarget=null,w=F}else for(M=0;M<g.length;M++){if(I=g[M],F=I.instance,K=I.currentTarget,I=I.listener,F!==w&&E.isPropagationStopped())break e;w=I,E.currentTarget=K;try{w(E)}catch(oe){hh(oe)}E.currentTarget=null,w=F}}}}function tt(o,l){var h=l[il];h===void 0&&(h=l[il]=new Set);var g=o+"__bubble";h.has(g)||(Jw(l,o,2,!1),h.add(g))}function Ov(o,l,h){var g=0;l&&(g|=4),Jw(h,o,g,l)}var Ah="_reactListening"+Math.random().toString(36).slice(2);function Dv(o){if(!o[Ah]){o[Ah]=!0,qS.forEach(function(h){h!=="selectionchange"&&(KU.has(h)||Ov(h,!1,o),Ov(h,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[Ah]||(l[Ah]=!0,Ov("selectionchange",!1,l))}}function Jw(o,l,h,g){switch(TC(l)){case 2:var E=SF;break;case 8:E=TF;break;default:E=qv}h=E.bind(null,l,h,o),E=void 0,!e0||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(E=!0),g?E!==void 0?o.addEventListener(l,h,{capture:!0,passive:E}):o.addEventListener(l,h,!0):E!==void 0?o.addEventListener(l,h,{passive:E}):o.addEventListener(l,h,!1)}function Iv(o,l,h,g,E){var w=g;if((l&1)===0&&(l&2)===0&&g!==null)e:for(;;){if(g===null)return;var M=g.tag;if(M===3||M===4){var I=g.stateNode.containerInfo;if(I===E)break;if(M===4)for(M=g.return;M!==null;){var F=M.tag;if((F===3||F===4)&&M.stateNode.containerInfo===E)return;M=M.return}for(;I!==null;){if(M=ll(I),M===null)return;if(F=M.tag,F===5||F===6||F===26||F===27){g=w=M;continue e}I=I.parentNode}}g=g.return}oT(function(){var K=w,oe=Zg(h),ce=[];e:{var J=PT.get(o);if(J!==void 0){var ne=Hf,je=o;switch(o){case"keypress":if(Ff(h)===0)break e;case"keydown":case"keyup":ne=G4;break;case"focusin":je="focus",ne=a0;break;case"focusout":je="blur",ne=a0;break;case"beforeblur":case"afterblur":ne=a0;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=cT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=O4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=q4;break;case MT:case OT:case DT:ne=P4;break;case IT:ne=W4;break;case"scroll":case"scrollend":ne=R4;break;case"wheel":ne=X4;break;case"copy":case"cut":case"paste":ne=L4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=dT;break;case"toggle":case"beforetoggle":ne=Z4}var _e=(l&4)!==0,Tt=!_e&&(o==="scroll"||o==="scrollend"),q=_e?J!==null?J+"Capture":null:J;_e=[];for(var G=K,W;G!==null;){var ie=G;if(W=ie.stateNode,ie=ie.tag,ie!==5&&ie!==26&&ie!==27||W===null||q===null||(ie=tu(G,q),ie!=null&&_e.push(ku(G,ie,W))),Tt)break;G=G.return}0<_e.length&&(J=new ne(J,je,null,h,oe),ce.push({event:J,listeners:_e}))}}if((l&7)===0){e:{if(J=o==="mouseover"||o==="pointerover",ne=o==="mouseout"||o==="pointerout",J&&h!==Qg&&(je=h.relatedTarget||h.fromElement)&&(ll(je)||je[Tn]))break e;if((ne||J)&&(J=oe.window===oe?oe:(J=oe.ownerDocument)?J.defaultView||J.parentWindow:window,ne?(je=h.relatedTarget||h.toElement,ne=K,je=je?ll(je):null,je!==null&&(Tt=s(je),_e=je.tag,je!==Tt||_e!==5&&_e!==27&&_e!==6)&&(je=null)):(ne=null,je=K),ne!==je)){if(_e=cT,ie="onMouseLeave",q="onMouseEnter",G="mouse",(o==="pointerout"||o==="pointerover")&&(_e=dT,ie="onPointerLeave",q="onPointerEnter",G="pointer"),Tt=ne==null?J:eu(ne),W=je==null?J:eu(je),J=new _e(ie,G+"leave",ne,h,oe),J.target=Tt,J.relatedTarget=W,ie=null,ll(oe)===K&&(_e=new _e(q,G+"enter",je,h,oe),_e.target=W,_e.relatedTarget=Tt,ie=_e),Tt=ie,ne&&je)t:{for(_e=ne,q=je,G=0,W=_e;W;W=Vl(W))G++;for(W=0,ie=q;ie;ie=Vl(ie))W++;for(;0<G-W;)_e=Vl(_e),G--;for(;0<W-G;)q=Vl(q),W--;for(;G--;){if(_e===q||q!==null&&_e===q.alternate)break t;_e=Vl(_e),q=Vl(q)}_e=null}else _e=null;ne!==null&&eC(ce,J,ne,_e,!1),je!==null&&Tt!==null&&eC(ce,Tt,je,_e,!0)}}e:{if(J=K?eu(K):window,ne=J.nodeName&&J.nodeName.toLowerCase(),ne==="select"||ne==="input"&&J.type==="file")var be=xT;else if(vT(J))if(bT)be=lU;else{be=oU;var Ze=sU}else ne=J.nodeName,!ne||ne.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?K&&Xg(K.elementType)&&(be=xT):be=iU;if(be&&(be=be(o,K))){yT(ce,be,h,oe);break e}Ze&&Ze(o,J,K),o==="focusout"&&K&&J.type==="number"&&K.memoizedProps.value!=null&&Kg(J,"number",J.value)}switch(Ze=K?eu(K):window,o){case"focusin":(vT(Ze)||Ze.contentEditable==="true")&&(yl=Ze,u0=K,cu=null);break;case"focusout":cu=u0=yl=null;break;case"mousedown":d0=!0;break;case"contextmenu":case"mouseup":case"dragend":d0=!1,_T(ce,h,oe);break;case"selectionchange":if(uU)break;case"keydown":case"keyup":_T(ce,h,oe)}var we;if(o0)e:{switch(o){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else vl?pT(o,h)&&(Oe="onCompositionEnd"):o==="keydown"&&h.keyCode===229&&(Oe="onCompositionStart");Oe&&(fT&&h.locale!=="ko"&&(vl||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&vl&&(we=iT()):(Ws=oe,t0="value"in Ws?Ws.value:Ws.textContent,vl=!0)),Ze=_h(K,Oe),0<Ze.length&&(Oe=new uT(Oe,o,null,h,oe),ce.push({event:Oe,listeners:Ze}),we?Oe.data=we:(we=gT(h),we!==null&&(Oe.data=we)))),(we=eU?tU(o,h):nU(o,h))&&(Oe=_h(K,"onBeforeInput"),0<Oe.length&&(Ze=new uT("onBeforeInput","beforeinput",null,h,oe),ce.push({event:Ze,listeners:Oe}),Ze.data=we)),qU(ce,o,K,h,oe)}Zw(ce,l)})}function ku(o,l,h){return{instance:o,listener:l,currentTarget:h}}function _h(o,l){for(var h=l+"Capture",g=[];o!==null;){var E=o,w=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||w===null||(E=tu(o,h),E!=null&&g.unshift(ku(o,E,w)),E=tu(o,l),E!=null&&g.push(ku(o,E,w))),o.tag===3)return g;o=o.return}return[]}function Vl(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function eC(o,l,h,g,E){for(var w=l._reactName,M=[];h!==null&&h!==g;){var I=h,F=I.alternate,K=I.stateNode;if(I=I.tag,F!==null&&F===g)break;I!==5&&I!==26&&I!==27||K===null||(F=K,E?(K=tu(h,w),K!=null&&M.unshift(ku(h,K,F))):E||(K=tu(h,w),K!=null&&M.push(ku(h,K,F)))),h=h.return}M.length!==0&&o.push({event:l,listeners:M})}var XU=/\r\n?/g,QU=/\u0000|\uFFFD/g;function tC(o){return(typeof o=="string"?o:""+o).replace(XU,`
`).replace(QU,"")}function nC(o,l){return l=tC(l),tC(o)===l}function Rh(){}function St(o,l,h,g,E,w){switch(h){case"children":typeof g=="string"?l==="body"||l==="textarea"&&g===""||ml(o,g):(typeof g=="number"||typeof g=="bigint")&&l!=="body"&&ml(o,""+g);break;case"className":Pf(o,"class",g);break;case"tabIndex":Pf(o,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":Pf(o,h,g);break;case"style":aT(o,g,w);break;case"data":if(l!=="object"){Pf(o,"data",g);break}case"src":case"href":if(g===""&&(l!=="a"||h!=="href")){o.removeAttribute(h);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){o.removeAttribute(h);break}g=kf(""+g),o.setAttribute(h,g);break;case"action":case"formAction":if(typeof g=="function"){o.setAttribute(h,"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 w=="function"&&(h==="formAction"?(l!=="input"&&St(o,l,"name",E.name,E,null),St(o,l,"formEncType",E.formEncType,E,null),St(o,l,"formMethod",E.formMethod,E,null),St(o,l,"formTarget",E.formTarget,E,null)):(St(o,l,"encType",E.encType,E,null),St(o,l,"method",E.method,E,null),St(o,l,"target",E.target,E,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){o.removeAttribute(h);break}g=kf(""+g),o.setAttribute(h,g);break;case"onClick":g!=null&&(o.onclick=Rh);break;case"onScroll":g!=null&&tt("scroll",o);break;case"onScrollEnd":g!=null&&tt("scrollend",o);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(r(61));if(h=g.__html,h!=null){if(E.children!=null)throw Error(r(60));o.innerHTML=h}}break;case"multiple":o.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":o.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){o.removeAttribute("xlink:href");break}h=kf(""+g),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":g!=null&&typeof g!="function"&&typeof g!="symbol"?o.setAttribute(h,""+g):o.removeAttribute(h);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":g&&typeof g!="function"&&typeof g!="symbol"?o.setAttribute(h,""):o.removeAttribute(h);break;case"capture":case"download":g===!0?o.setAttribute(h,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?o.setAttribute(h,g):o.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?o.setAttribute(h,g):o.removeAttribute(h);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?o.removeAttribute(h):o.setAttribute(h,g);break;case"popover":tt("beforetoggle",o),tt("toggle",o),If(o,"popover",g);break;case"xlinkActuate":fs(o,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":fs(o,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":fs(o,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":fs(o,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":fs(o,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":fs(o,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":fs(o,"http://www.w3.org/XML/1998/namespace","xml:base",g);break;case"xmlLang":fs(o,"http://www.w3.org/XML/1998/namespace","xml:lang",g);break;case"xmlSpace":fs(o,"http://www.w3.org/XML/1998/namespace","xml:space",g);break;case"is":If(o,"is",g);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=A4.get(h)||h,If(o,h,g))}}function Pv(o,l,h,g,E,w){switch(h){case"style":aT(o,g,w);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(r(61));if(h=g.__html,h!=null){if(E.children!=null)throw Error(r(60));o.innerHTML=h}}break;case"children":typeof g=="string"?ml(o,g):(typeof g=="number"||typeof g=="bigint")&&ml(o,""+g);break;case"onScroll":g!=null&&tt("scroll",o);break;case"onScrollEnd":g!=null&&tt("scrollend",o);break;case"onClick":g!=null&&(o.onclick=Rh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!YS.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(E=h.endsWith("Capture"),l=h.slice(2,E?h.length-7:void 0),w=o[Ot]||null,w=w!=null?w[h]:null,typeof w=="function"&&o.removeEventListener(l,w,E),typeof g=="function")){typeof w!="function"&&w!==null&&(h in o?o[h]=null:o.hasAttribute(h)&&o.removeAttribute(h)),o.addEventListener(l,g,E);break e}h in o?o[h]=g:g===!0?o.setAttribute(h,""):If(o,h,g)}}}function kn(o,l,h){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",o),tt("load",o);var g=!1,E=!1,w;for(w in h)if(h.hasOwnProperty(w)){var M=h[w];if(M!=null)switch(w){case"src":g=!0;break;case"srcSet":E=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:St(o,l,w,M,h,null)}}E&&St(o,l,"srcSet",h.srcSet,h,null),g&&St(o,l,"src",h.src,h,null);return;case"input":tt("invalid",o);var I=w=M=E=null,F=null,K=null;for(g in h)if(h.hasOwnProperty(g)){var oe=h[g];if(oe!=null)switch(g){case"name":E=oe;break;case"type":M=oe;break;case"checked":F=oe;break;case"defaultChecked":K=oe;break;case"value":w=oe;break;case"defaultValue":I=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(r(137,l));break;default:St(o,l,g,oe,h,null)}}eT(o,w,I,F,K,M,E,!1),jf(o);return;case"select":tt("invalid",o),g=M=w=null;for(E in h)if(h.hasOwnProperty(E)&&(I=h[E],I!=null))switch(E){case"value":w=I;break;case"defaultValue":M=I;break;case"multiple":g=I;default:St(o,l,E,I,h,null)}l=w,h=M,o.multiple=!!g,l!=null?hl(o,!!g,l,!1):h!=null&&hl(o,!!g,h,!0);return;case"textarea":tt("invalid",o),w=E=g=null;for(M in h)if(h.hasOwnProperty(M)&&(I=h[M],I!=null))switch(M){case"value":g=I;break;case"defaultValue":E=I;break;case"children":w=I;break;case"dangerouslySetInnerHTML":if(I!=null)throw Error(r(91));break;default:St(o,l,M,I,h,null)}nT(o,g,E,w),jf(o);return;case"option":for(F in h)if(h.hasOwnProperty(F)&&(g=h[F],g!=null))switch(F){case"selected":o.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:St(o,l,F,g,h,null)}return;case"dialog":tt("beforetoggle",o),tt("toggle",o),tt("cancel",o),tt("close",o);break;case"iframe":case"object":tt("load",o);break;case"video":case"audio":for(g=0;g<Lu.length;g++)tt(Lu[g],o);break;case"image":tt("error",o),tt("load",o);break;case"details":tt("toggle",o);break;case"embed":case"source":case"link":tt("error",o),tt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in h)if(h.hasOwnProperty(K)&&(g=h[K],g!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:St(o,l,K,g,h,null)}return;default:if(Xg(l)){for(oe in h)h.hasOwnProperty(oe)&&(g=h[oe],g!==void 0&&Pv(o,l,oe,g,h,void 0));return}}for(I in h)h.hasOwnProperty(I)&&(g=h[I],g!=null&&St(o,l,I,g,h,null))}function ZU(o,l,h,g){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,w=null,M=null,I=null,F=null,K=null,oe=null;for(ne in h){var ce=h[ne];if(h.hasOwnProperty(ne)&&ce!=null)switch(ne){case"checked":break;case"value":break;case"defaultValue":F=ce;default:g.hasOwnProperty(ne)||St(o,l,ne,null,g,ce)}}for(var J in g){var ne=g[J];if(ce=h[J],g.hasOwnProperty(J)&&(ne!=null||ce!=null))switch(J){case"type":w=ne;break;case"name":E=ne;break;case"checked":K=ne;break;case"defaultChecked":oe=ne;break;case"value":M=ne;break;case"defaultValue":I=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,l));break;default:ne!==ce&&St(o,l,J,ne,g,ce)}}Wg(o,M,I,F,K,oe,w,E);return;case"select":ne=M=I=J=null;for(w in h)if(F=h[w],h.hasOwnProperty(w)&&F!=null)switch(w){case"value":break;case"multiple":ne=F;default:g.hasOwnProperty(w)||St(o,l,w,null,g,F)}for(E in g)if(w=g[E],F=h[E],g.hasOwnProperty(E)&&(w!=null||F!=null))switch(E){case"value":J=w;break;case"defaultValue":I=w;break;case"multiple":M=w;default:w!==F&&St(o,l,E,w,g,F)}l=I,h=M,g=ne,J!=null?hl(o,!!h,J,!1):!!g!=!!h&&(l!=null?hl(o,!!h,l,!0):hl(o,!!h,h?[]:"",!1));return;case"textarea":ne=J=null;for(I in h)if(E=h[I],h.hasOwnProperty(I)&&E!=null&&!g.hasOwnProperty(I))switch(I){case"value":break;case"children":break;default:St(o,l,I,null,g,E)}for(M in g)if(E=g[M],w=h[M],g.hasOwnProperty(M)&&(E!=null||w!=null))switch(M){case"value":J=E;break;case"defaultValue":ne=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:E!==w&&St(o,l,M,E,g,w)}tT(o,J,ne);return;case"option":for(var je in h)if(J=h[je],h.hasOwnProperty(je)&&J!=null&&!g.hasOwnProperty(je))switch(je){case"selected":o.selected=!1;break;default:St(o,l,je,null,g,J)}for(F in g)if(J=g[F],ne=h[F],g.hasOwnProperty(F)&&J!==ne&&(J!=null||ne!=null))switch(F){case"selected":o.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:St(o,l,F,J,g,ne)}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 _e in h)J=h[_e],h.hasOwnProperty(_e)&&J!=null&&!g.hasOwnProperty(_e)&&St(o,l,_e,null,g,J);for(K in g)if(J=g[K],ne=h[K],g.hasOwnProperty(K)&&J!==ne&&(J!=null||ne!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,l));break;default:St(o,l,K,J,g,ne)}return;default:if(Xg(l)){for(var Tt in h)J=h[Tt],h.hasOwnProperty(Tt)&&J!==void 0&&!g.hasOwnProperty(Tt)&&Pv(o,l,Tt,void 0,g,J);for(oe in g)J=g[oe],ne=h[oe],!g.hasOwnProperty(oe)||J===ne||J===void 0&&ne===void 0||Pv(o,l,oe,J,g,ne);return}}for(var q in h)J=h[q],h.hasOwnProperty(q)&&J!=null&&!g.hasOwnProperty(q)&&St(o,l,q,null,g,J);for(ce in g)J=g[ce],ne=h[ce],!g.hasOwnProperty(ce)||J===ne||J==null&&ne==null||St(o,l,ce,J,g,ne)}var jv=null,Lv=null;function Mh(o){return o.nodeType===9?o:o.ownerDocument}function rC(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function aC(o,l){if(o===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&l==="foreignObject"?0:o}function kv(o,l){return o==="textarea"||o==="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 Uv=null;function JU(){var o=window.event;return o&&o.type==="popstate"?o===Uv?!1:(Uv=o,!0):(Uv=null,!1)}var sC=typeof setTimeout=="function"?setTimeout:void 0,eF=typeof clearTimeout=="function"?clearTimeout:void 0,oC=typeof Promise=="function"?Promise:void 0,tF=typeof queueMicrotask=="function"?queueMicrotask:typeof oC<"u"?function(o){return oC.resolve(null).then(o).catch(nF)}:sC;function nF(o){setTimeout(function(){throw o})}function uo(o){return o==="head"}function iC(o,l){var h=l,g=0,E=0;do{var w=h.nextSibling;if(o.removeChild(h),w&&w.nodeType===8)if(h=w.data,h==="/$"){if(0<g&&8>g){h=g;var M=o.ownerDocument;if(h&1&&Uu(M.documentElement),h&2&&Uu(M.body),h&4)for(h=M.head,Uu(h),M=h.firstChild;M;){var I=M.nextSibling,F=M.nodeName;M[Jc]||F==="SCRIPT"||F==="STYLE"||F==="LINK"&&M.rel.toLowerCase()==="stylesheet"||h.removeChild(M),M=I}}if(E===0){o.removeChild(w),qu(l);return}E--}else h==="$"||h==="$?"||h==="$!"?E++:g=h.charCodeAt(0)-48;else g=0;h=w}while(h);qu(l)}function Fv(o){var l=o.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var h=l;switch(l=l.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":Fv(h),zg(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}o.removeChild(h)}}function rF(o,l,h,g){for(;o.nodeType===1;){var E=h;if(o.nodeName.toLowerCase()!==l.toLowerCase()){if(!g&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(g){if(!o[Jc])switch(l){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(w=o.getAttribute("rel"),w==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(w!==E.rel||o.getAttribute("href")!==(E.href==null||E.href===""?null:E.href)||o.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin)||o.getAttribute("title")!==(E.title==null?null:E.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(w=o.getAttribute("src"),(w!==(E.src==null?null:E.src)||o.getAttribute("type")!==(E.type==null?null:E.type)||o.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&w&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(l==="input"&&o.type==="hidden"){var w=E.name==null?null:""+E.name;if(E.type==="hidden"&&o.getAttribute("name")===w)return o}else return o;if(o=ca(o.nextSibling),o===null)break}return null}function aF(o,l,h){if(l==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!h||(o=ca(o.nextSibling),o===null))return null;return o}function Bv(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState==="complete"}function sF(o,l){var h=o.ownerDocument;if(o.data!=="$?"||h.readyState==="complete")l();else{var g=function(){l(),h.removeEventListener("DOMContentLoaded",g)};h.addEventListener("DOMContentLoaded",g),o._reactRetry=g}}function ca(o){for(;o!=null;o=o.nextSibling){var l=o.nodeType;if(l===1||l===3)break;if(l===8){if(l=o.data,l==="$"||l==="$!"||l==="$?"||l==="F!"||l==="F")break;if(l==="/$")return null}}return o}var Hv=null;function lC(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var h=o.data;if(h==="$"||h==="$!"||h==="$?"){if(l===0)return o;l--}else h==="/$"&&l++}o=o.previousSibling}return null}function cC(o,l,h){switch(l=Mh(h),o){case"html":if(o=l.documentElement,!o)throw Error(r(452));return o;case"head":if(o=l.head,!o)throw Error(r(453));return o;case"body":if(o=l.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Uu(o){for(var l=o.attributes;l.length;)o.removeAttributeNode(l[0]);zg(o)}var Kr=new Map,uC=new Set;function Oh(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Cs=Y.d;Y.d={f:oF,r:iF,D:lF,C:cF,L:uF,m:dF,X:hF,S:fF,M:mF};function oF(){var o=Cs.f(),l=Sh();return o||l}function iF(o){var l=cl(o);l!==null&&l.tag===5&&l.type==="form"?MN(l):Cs.r(o)}var Gl=typeof document>"u"?null:document;function dC(o,l,h){var g=Gl;if(g&&typeof l=="string"&&l){var E=Vr(l);E='link[rel="'+o+'"][href="'+E+'"]',typeof h=="string"&&(E+='[crossorigin="'+h+'"]'),uC.has(E)||(uC.add(E),o={rel:o,crossOrigin:h,href:l},g.querySelector(E)===null&&(l=g.createElement("link"),kn(l,"link",o),Nn(l),g.head.appendChild(l)))}}function lF(o){Cs.D(o),dC("dns-prefetch",o,null)}function cF(o,l){Cs.C(o,l),dC("preconnect",o,l)}function uF(o,l,h){Cs.L(o,l,h);var g=Gl;if(g&&o&&l){var E='link[rel="preload"][as="'+Vr(l)+'"]';l==="image"&&h&&h.imageSrcSet?(E+='[imagesrcset="'+Vr(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(E+='[imagesizes="'+Vr(h.imageSizes)+'"]')):E+='[href="'+Vr(o)+'"]';var w=E;switch(l){case"style":w=zl(o);break;case"script":w=$l(o)}Kr.has(w)||(o=m({rel:"preload",href:l==="image"&&h&&h.imageSrcSet?void 0:o,as:l},h),Kr.set(w,o),g.querySelector(E)!==null||l==="style"&&g.querySelector(Fu(w))||l==="script"&&g.querySelector(Bu(w))||(l=g.createElement("link"),kn(l,"link",o),Nn(l),g.head.appendChild(l)))}}function dF(o,l){Cs.m(o,l);var h=Gl;if(h&&o){var g=l&&typeof l.as=="string"?l.as:"script",E='link[rel="modulepreload"][as="'+Vr(g)+'"][href="'+Vr(o)+'"]',w=E;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=$l(o)}if(!Kr.has(w)&&(o=m({rel:"modulepreload",href:o},l),Kr.set(w,o),h.querySelector(E)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(Bu(w)))return}g=h.createElement("link"),kn(g,"link",o),Nn(g),h.head.appendChild(g)}}}function fF(o,l,h){Cs.S(o,l,h);var g=Gl;if(g&&o){var E=ul(g).hoistableStyles,w=zl(o);l=l||"default";var M=E.get(w);if(!M){var I={loading:0,preload:null};if(M=g.querySelector(Fu(w)))I.loading=5;else{o=m({rel:"stylesheet",href:o,"data-precedence":l},h),(h=Kr.get(w))&&Vv(o,h);var F=M=g.createElement("link");Nn(F),kn(F,"link",o),F._p=new Promise(function(K,oe){F.onload=K,F.onerror=oe}),F.addEventListener("load",function(){I.loading|=1}),F.addEventListener("error",function(){I.loading|=2}),I.loading|=4,Dh(M,l,g)}M={type:"stylesheet",instance:M,count:1,state:I},E.set(w,M)}}}function hF(o,l){Cs.X(o,l);var h=Gl;if(h&&o){var g=ul(h).hoistableScripts,E=$l(o),w=g.get(E);w||(w=h.querySelector(Bu(E)),w||(o=m({src:o,async:!0},l),(l=Kr.get(E))&&Gv(o,l),w=h.createElement("script"),Nn(w),kn(w,"link",o),h.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},g.set(E,w))}}function mF(o,l){Cs.M(o,l);var h=Gl;if(h&&o){var g=ul(h).hoistableScripts,E=$l(o),w=g.get(E);w||(w=h.querySelector(Bu(E)),w||(o=m({src:o,async:!0,type:"module"},l),(l=Kr.get(E))&&Gv(o,l),w=h.createElement("script"),Nn(w),kn(w,"link",o),h.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},g.set(E,w))}}function fC(o,l,h,g){var E=(E=fe.current)?Oh(E):null;if(!E)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(l=zl(h.href),h=ul(E).hoistableStyles,g=h.get(l),g||(g={type:"style",instance:null,count:0,state:null},h.set(l,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){o=zl(h.href);var w=ul(E).hoistableStyles,M=w.get(o);if(M||(E=E.ownerDocument||E,M={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(o,M),(w=E.querySelector(Fu(o)))&&!w._p&&(M.instance=w,M.state.loading=5),Kr.has(o)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},Kr.set(o,h),w||pF(E,o,h,M.state))),l&&g===null)throw Error(r(528,""));return M}if(l&&g!==null)throw Error(r(529,""));return null;case"script":return l=h.async,h=h.src,typeof h=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=$l(h),h=ul(E).hoistableScripts,g=h.get(l),g||(g={type:"script",instance:null,count:0,state:null},h.set(l,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function zl(o){return'href="'+Vr(o)+'"'}function Fu(o){return'link[rel="stylesheet"]['+o+"]"}function hC(o){return m({},o,{"data-precedence":o.precedence,precedence:null})}function pF(o,l,h,g){o.querySelector('link[rel="preload"][as="style"]['+l+"]")?g.loading=1:(l=o.createElement("link"),g.preload=l,l.addEventListener("load",function(){return g.loading|=1}),l.addEventListener("error",function(){return g.loading|=2}),kn(l,"link",h),Nn(l),o.head.appendChild(l))}function $l(o){return'[src="'+Vr(o)+'"]'}function Bu(o){return"script[async]"+o}function mC(o,l,h){if(l.count++,l.instance===null)switch(l.type){case"style":var g=o.querySelector('style[data-href~="'+Vr(h.href)+'"]');if(g)return l.instance=g,Nn(g),g;var E=m({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return g=(o.ownerDocument||o).createElement("style"),Nn(g),kn(g,"style",E),Dh(g,h.precedence,o),l.instance=g;case"stylesheet":E=zl(h.href);var w=o.querySelector(Fu(E));if(w)return l.state.loading|=4,l.instance=w,Nn(w),w;g=hC(h),(E=Kr.get(E))&&Vv(g,E),w=(o.ownerDocument||o).createElement("link"),Nn(w);var M=w;return M._p=new Promise(function(I,F){M.onload=I,M.onerror=F}),kn(w,"link",g),l.state.loading|=4,Dh(w,h.precedence,o),l.instance=w;case"script":return w=$l(h.src),(E=o.querySelector(Bu(w)))?(l.instance=E,Nn(E),E):(g=h,(E=Kr.get(w))&&(g=m({},h),Gv(g,E)),o=o.ownerDocument||o,E=o.createElement("script"),Nn(E),kn(E,"link",g),o.head.appendChild(E),l.instance=E);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(g=l.instance,l.state.loading|=4,Dh(g,h.precedence,o));return l.instance}function Dh(o,l,h){for(var g=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=g.length?g[g.length-1]:null,w=E,M=0;M<g.length;M++){var I=g[M];if(I.dataset.precedence===l)w=I;else if(w!==E)break}w?w.parentNode.insertBefore(o,w.nextSibling):(l=h.nodeType===9?h.head:h,l.insertBefore(o,l.firstChild))}function Vv(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.title==null&&(o.title=l.title)}function Gv(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.integrity==null&&(o.integrity=l.integrity)}var Ih=null;function pC(o,l,h){if(Ih===null){var g=new Map,E=Ih=new Map;E.set(h,g)}else E=Ih,g=E.get(h),g||(g=new Map,E.set(h,g));if(g.has(o))return g;for(g.set(o,null),h=h.getElementsByTagName(o),E=0;E<h.length;E++){var w=h[E];if(!(w[Jc]||w[rn]||o==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var M=w.getAttribute(l)||"";M=o+M;var I=g.get(M);I?I.push(w):g.set(M,[w])}}return g}function gC(o,l,h){o=o.ownerDocument||o,o.head.insertBefore(h,l==="title"?o.querySelector("head > title"):null)}function gF(o,l,h){if(h===1||l.itemProp!=null)return!1;switch(o){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 o=l.disabled,typeof l.precedence=="string"&&o==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 vC(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}var Hu=null;function vF(){}function yF(o,l,h){if(Hu===null)throw Error(r(475));var g=Hu;if(l.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var E=zl(h.href),w=o.querySelector(Fu(E));if(w){o=w._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(g.count++,g=Ph.bind(g),o.then(g,g)),l.state.loading|=4,l.instance=w,Nn(w);return}w=o.ownerDocument||o,h=hC(h),(E=Kr.get(E))&&Vv(h,E),w=w.createElement("link"),Nn(w);var M=w;M._p=new Promise(function(I,F){M.onload=I,M.onerror=F}),kn(w,"link",h),l.instance=w}g.stylesheets===null&&(g.stylesheets=new Map),g.stylesheets.set(l,o),(o=l.state.preload)&&(l.state.loading&3)===0&&(g.count++,l=Ph.bind(g),o.addEventListener("load",l),o.addEventListener("error",l))}}function xF(){if(Hu===null)throw Error(r(475));var o=Hu;return o.stylesheets&&o.count===0&&zv(o,o.stylesheets),0<o.count?function(l){var h=setTimeout(function(){if(o.stylesheets&&zv(o,o.stylesheets),o.unsuspend){var g=o.unsuspend;o.unsuspend=null,g()}},6e4);return o.unsuspend=l,function(){o.unsuspend=null,clearTimeout(h)}}:null}function Ph(){if(this.count--,this.count===0){if(this.stylesheets)zv(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var jh=null;function zv(o,l){o.stylesheets=null,o.unsuspend!==null&&(o.count++,jh=new Map,l.forEach(bF,o),jh=null,Ph.call(o))}function bF(o,l){if(!(l.state.loading&4)){var h=jh.get(o);if(h)var g=h.get(null);else{h=new Map,jh.set(o,h);for(var E=o.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<E.length;w++){var M=E[w];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(h.set(M.dataset.precedence,M),g=M)}g&&h.set(null,g)}E=l.instance,M=E.getAttribute("data-precedence"),w=h.get(M)||g,w===g&&h.set(null,E),h.set(M,E),this.count++,g=Ph.bind(this),E.addEventListener("load",g),E.addEventListener("error",g),w?w.parentNode.insertBefore(E,w.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(E,o.firstChild)),l.state.loading|=4}}var Vu={$$typeof:A,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function EF(o,l,h,g,E,w,M,I){this.tag=1,this.containerInfo=o,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=nt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nt(0),this.hiddenUpdates=nt(null),this.identifierPrefix=g,this.onUncaughtError=E,this.onCaughtError=w,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.incompleteTransitions=new Map}function yC(o,l,h,g,E,w,M,I,F,K,oe,ce){return o=new EF(o,l,h,M,I,F,K,ce),l=1,w===!0&&(l|=24),w=Ar(3,null,null,l),o.current=w,w.stateNode=o,l=w0(),l.refCount++,o.pooledCache=l,l.refCount++,w.memoizedState={element:g,isDehydrated:h,cache:l},R0(w),o}function xC(o){return o?(o=Sl,o):Sl}function bC(o,l,h,g,E,w){E=xC(E),g.context===null?g.context=E:g.pendingContext=E,g=Qs(l),g.payload={element:h},w=w===void 0?null:w,w!==null&&(g.callback=w),h=Zs(o,g,l),h!==null&&(Dr(h,o,l),yu(h,o,l))}function EC(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var h=o.retryLane;o.retryLane=h!==0&&h<l?h:l}}function $v(o,l){EC(o,l),(o=o.alternate)&&EC(o,l)}function SC(o){if(o.tag===13){var l=El(o,67108864);l!==null&&Dr(l,o,67108864),$v(o,67108864)}}var Lh=!0;function SF(o,l,h,g){var E=j.T;j.T=null;var w=Y.p;try{Y.p=2,qv(o,l,h,g)}finally{Y.p=w,j.T=E}}function TF(o,l,h,g){var E=j.T;j.T=null;var w=Y.p;try{Y.p=8,qv(o,l,h,g)}finally{Y.p=w,j.T=E}}function qv(o,l,h,g){if(Lh){var E=Yv(g);if(E===null)Iv(o,l,g,kh,h),NC(o,g);else if(wF(E,o,l,h,g))g.stopPropagation();else if(NC(o,g),l&4&&-1<NF.indexOf(o)){for(;E!==null;){var w=cl(E);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var M=Je(w.pendingLanes);if(M!==0){var I=w;for(I.pendingLanes|=2,I.entangledLanes|=2;M;){var F=1<<31-hn(M);I.entanglements[1]|=F,M&=~F}Ba(w),(mt&6)===0&&(bh=yt()+500,ju(0))}}break;case 13:I=El(w,2),I!==null&&Dr(I,w,2),Sh(),$v(w,2)}if(w=Yv(g),w===null&&Iv(o,l,g,kh,h),w===E)break;E=w}E!==null&&g.stopPropagation()}else Iv(o,l,g,null,h)}}function Yv(o){return o=Zg(o),Wv(o)}var kh=null;function Wv(o){if(kh=null,o=ll(o),o!==null){var l=s(o);if(l===null)o=null;else{var h=l.tag;if(h===13){if(o=i(l),o!==null)return o;o=null}else if(h===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null)}}return kh=o,null}function TC(o){switch(o){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(oa()){case Wt:return 2;case Bt:return 8;case Dn:case ln:return 32;case Sn:return 268435456;default:return 32}default:return 32}}var Kv=!1,fo=null,ho=null,mo=null,Gu=new Map,zu=new Map,po=[],NF="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 NC(o,l){switch(o){case"focusin":case"focusout":fo=null;break;case"dragenter":case"dragleave":ho=null;break;case"mouseover":case"mouseout":mo=null;break;case"pointerover":case"pointerout":Gu.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":zu.delete(l.pointerId)}}function $u(o,l,h,g,E,w){return o===null||o.nativeEvent!==w?(o={blockedOn:l,domEventName:h,eventSystemFlags:g,nativeEvent:w,targetContainers:[E]},l!==null&&(l=cl(l),l!==null&&SC(l)),o):(o.eventSystemFlags|=g,l=o.targetContainers,E!==null&&l.indexOf(E)===-1&&l.push(E),o)}function wF(o,l,h,g,E){switch(l){case"focusin":return fo=$u(fo,o,l,h,g,E),!0;case"dragenter":return ho=$u(ho,o,l,h,g,E),!0;case"mouseover":return mo=$u(mo,o,l,h,g,E),!0;case"pointerover":var w=E.pointerId;return Gu.set(w,$u(Gu.get(w)||null,o,l,h,g,E)),!0;case"gotpointercapture":return w=E.pointerId,zu.set(w,$u(zu.get(w)||null,o,l,h,g,E)),!0}return!1}function wC(o){var l=ll(o.target);if(l!==null){var h=s(l);if(h!==null){if(l=h.tag,l===13){if(l=i(h),l!==null){o.blockedOn=l,pn(o.priority,function(){if(h.tag===13){var g=Or();g=Ht(g);var E=El(h,g);E!==null&&Dr(E,h,g),$v(h,g)}});return}}else if(l===3&&h.stateNode.current.memoizedState.isDehydrated){o.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Uh(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var h=Yv(o.nativeEvent);if(h===null){h=o.nativeEvent;var g=new h.constructor(h.type,h);Qg=g,h.target.dispatchEvent(g),Qg=null}else return l=cl(h),l!==null&&SC(l),o.blockedOn=h,!1;l.shift()}return!0}function CC(o,l,h){Uh(o)&&h.delete(l)}function CF(){Kv=!1,fo!==null&&Uh(fo)&&(fo=null),ho!==null&&Uh(ho)&&(ho=null),mo!==null&&Uh(mo)&&(mo=null),Gu.forEach(CC),zu.forEach(CC)}function Fh(o,l){o.blockedOn===l&&(o.blockedOn=null,Kv||(Kv=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,CF)))}var Bh=null;function AC(o){Bh!==o&&(Bh=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Bh===o&&(Bh=null);for(var l=0;l<o.length;l+=3){var h=o[l],g=o[l+1],E=o[l+2];if(typeof g!="function"){if(Wv(g||h)===null)continue;break}var w=cl(h);w!==null&&(o.splice(l,3),l-=3,W0(w,{pending:!0,data:E,method:h.method,action:g},g,E))}}))}function qu(o){function l(F){return Fh(F,o)}fo!==null&&Fh(fo,o),ho!==null&&Fh(ho,o),mo!==null&&Fh(mo,o),Gu.forEach(l),zu.forEach(l);for(var h=0;h<po.length;h++){var g=po[h];g.blockedOn===o&&(g.blockedOn=null)}for(;0<po.length&&(h=po[0],h.blockedOn===null);)wC(h),h.blockedOn===null&&po.shift();if(h=(o.ownerDocument||o).$$reactFormReplay,h!=null)for(g=0;g<h.length;g+=3){var E=h[g],w=h[g+1],M=E[Ot]||null;if(typeof w=="function")M||AC(h);else if(M){var I=null;if(w&&w.hasAttribute("formAction")){if(E=w,M=w[Ot]||null)I=M.formAction;else if(Wv(E)!==null)continue}else I=M.action;typeof I=="function"?h[g+1]=I:(h.splice(g,3),g-=3),AC(h)}}}function Xv(o){this._internalRoot=o}Hh.prototype.render=Xv.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(r(409));var h=l.current,g=Or();bC(h,g,o,l,null,null)},Hh.prototype.unmount=Xv.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;bC(o.current,2,null,o,null,null),Sh(),l[Tn]=null}};function Hh(o){this._internalRoot=o}Hh.prototype.unstable_scheduleHydration=function(o){if(o){var l=ai();o={blockedOn:null,target:o,priority:l};for(var h=0;h<po.length&&l!==0&&l<po[h].priority;h++);po.splice(h,0,o),h===0&&wC(o)}};var _C=t.version;if(_C!=="19.1.0")throw Error(r(527,_C,"19.1.0"));Y.findDOMNode=function(o){var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=d(l),o=o!==null?f(o):null,o=o===null?null:o.stateNode,o};var AF={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vh.isDisabled&&Vh.supportsFiber)try{Br=Vh.inject(AF),In=Vh}catch{}}return Wu.createRoot=function(o,l){if(!a(o))throw Error(r(299));var h=!1,g="",E=zN,w=$N,M=qN,I=null;return l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onUncaughtError!==void 0&&(E=l.onUncaughtError),l.onCaughtError!==void 0&&(w=l.onCaughtError),l.onRecoverableError!==void 0&&(M=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(I=l.unstable_transitionCallbacks)),l=yC(o,1,!1,null,null,h,g,E,w,M,I,null),o[Tn]=l.current,Dv(o),new Xv(l)},Wu.hydrateRoot=function(o,l,h){if(!a(o))throw Error(r(299));var g=!1,E="",w=zN,M=$N,I=qN,F=null,K=null;return h!=null&&(h.unstable_strictMode===!0&&(g=!0),h.identifierPrefix!==void 0&&(E=h.identifierPrefix),h.onUncaughtError!==void 0&&(w=h.onUncaughtError),h.onCaughtError!==void 0&&(M=h.onCaughtError),h.onRecoverableError!==void 0&&(I=h.onRecoverableError),h.unstable_transitionCallbacks!==void 0&&(F=h.unstable_transitionCallbacks),h.formState!==void 0&&(K=h.formState)),l=yC(o,1,!0,l,h??null,g,E,w,M,I,F,K),l.context=xC(null),h=l.current,g=Or(),g=Ht(g),E=Qs(g),E.callback=null,Zs(h,E,g),h=g,l.current.lanes=h,ja(l,h),Ba(l),o[Tn]=l.current,Dv(o),new Hh(l)},Wu.version="19.1.0",Wu}var FC;function FF(){if(FC)return ey.exports;FC=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(),ey.exports=UF(),ey.exports}var BF=FF(),HF=(e,t,n,r,a,s,i,u)=>{let d=document.documentElement,f=["light","dark"];function m(y){(Array.isArray(e)?e:[e]).forEach(x=>{let b=x==="class",T=b&&s?a.map(N=>s[N]||N):a;b?(d.classList.remove(...T),d.classList.add(s&&s[y]?s[y]:y)):d.setAttribute(x,y)}),p(y)}function p(y){u&&f.includes(y)&&(d.style.colorScheme=y)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)m(r);else try{let y=localStorage.getItem(t)||n,x=i&&y==="system"?v():y;m(x)}catch{}},BC=["light","dark"],XM="(prefers-color-scheme: dark)",VF=typeof window>"u",CE=S.createContext(void 0),GF={setTheme:e=>{},themes:[]},AE=()=>{var e;return(e=S.useContext(CE))!=null?e:GF},zF=e=>S.useContext(CE)?S.createElement(S.Fragment,null,e.children):S.createElement(qF,{...e}),$F=["light","dark"],qF=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:a="theme",themes:s=$F,defaultTheme:i=n?"system":"light",attribute:u="data-theme",value:d,children:f,nonce:m,scriptProps:p})=>{let[v,y]=S.useState(()=>WF(a,i)),[x,b]=S.useState(()=>v==="system"?ay():v),T=d?Object.values(d):s,N=S.useCallback(_=>{let O=_;if(!O)return;_==="system"&&n&&(O=ay());let D=d?d[O]:O,P=t?KF(m):null,L=document.documentElement,U=B=>{B==="class"?(L.classList.remove(...T),D&&L.classList.add(D)):B.startsWith("data-")&&(D?L.setAttribute(B,D):L.removeAttribute(B))};if(Array.isArray(u)?u.forEach(U):U(u),r){let B=BC.includes(i)?i:null,H=BC.includes(O)?O:B;L.style.colorScheme=H}P==null||P()},[m]),C=S.useCallback(_=>{let O=typeof _=="function"?_(v):_;y(O);try{localStorage.setItem(a,O)}catch{}},[v]),A=S.useCallback(_=>{let O=ay(_);b(O),v==="system"&&n&&!e&&N("system")},[v,e]);S.useEffect(()=>{let _=window.matchMedia(XM);return _.addListener(A),A(_),()=>_.removeListener(A)},[A]),S.useEffect(()=>{let _=O=>{O.key===a&&(O.newValue?y(O.newValue):C(i))};return window.addEventListener("storage",_),()=>window.removeEventListener("storage",_)},[C]),S.useEffect(()=>{N(e??v)},[e,v]);let R=S.useMemo(()=>({theme:v,setTheme:C,forcedTheme:e,resolvedTheme:v==="system"?x:v,themes:n?[...s,"system"]:s,systemTheme:n?x:void 0}),[v,C,e,x,n,s]);return S.createElement(CE.Provider,{value:R},S.createElement(YF,{forcedTheme:e,storageKey:a,attribute:u,enableSystem:n,enableColorScheme:r,defaultTheme:i,value:d,themes:s,nonce:m,scriptProps:p}),f)},YF=S.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:s,value:i,themes:u,nonce:d,scriptProps:f})=>{let m=JSON.stringify([n,t,s,e,u,i,r,a]).slice(1,-1);return S.createElement("script",{...f,suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(${HF.toString()})(${m})`}})}),WF=(e,t)=>{if(VF)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},KF=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},ay=e=>(e||(e=window.matchMedia(XM)),e.matches?"dark":"light"),$d=KM();const jp=zd($d);function XF(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const QF=e=>{switch(e){case"success":return eB;case"info":return nB;case"warning":return tB;case"error":return rB;default:return null}},ZF=Array(12).fill(0),JF=({visible:e,className:t})=>z.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},z.createElement("div",{className:"sonner-spinner"},ZF.map((n,r)=>z.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),eB=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),tB=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},z.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),nB=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),rB=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),aB=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},z.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),z.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),sB=()=>{const[e,t]=z.useState(document.hidden);return z.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Tx=1;class oB{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Tx++,i=this.toasts.find(d=>d.id===s),u=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(d=>d.id===s?(this.publish({...d,...t,id:s,title:r}),{...d,...t,id:s,dismissible:u,title:r}):d):this.addToast({title:r,...a,dismissible:u,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,i;const u=a.then(async f=>{if(i=["resolve",f],z.isValidElement(f))s=!1,this.create({id:r,type:"default",message:f});else if(lB(f)&&!f.ok){s=!1;const p=typeof n.error=="function"?await n.error(`HTTP error! status: ${f.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${f.status}`):n.description,x=typeof p=="object"&&!z.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:v,...x})}else if(f instanceof Error){s=!1;const p=typeof n.error=="function"?await n.error(f):n.error,v=typeof n.description=="function"?await n.description(f):n.description,x=typeof p=="object"&&!z.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:v,...x})}else if(n.success!==void 0){s=!1;const p=typeof n.success=="function"?await n.success(f):n.success,v=typeof n.description=="function"?await n.description(f):n.description,x=typeof p=="object"&&!z.isValidElement(p)?p:{message:p};this.create({id:r,type:"success",description:v,...x})}}).catch(async f=>{if(i=["reject",f],n.error!==void 0){s=!1;const m=typeof n.error=="function"?await n.error(f):n.error,p=typeof n.description=="function"?await n.description(f):n.description,y=typeof m=="object"&&!z.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:p,...y})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),d=()=>new Promise((f,m)=>u.then(()=>i[0]==="reject"?m(i[1]):f(i[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:d}:Object.assign(r,{unwrap:d})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Tx++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const xr=new oB,iB=(e,t)=>{const n=(t==null?void 0:t.id)||Tx++;return xr.addToast({title:e,...t,id:n}),n},lB=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",cB=iB,uB=()=>xr.toasts,dB=()=>xr.getActiveToasts(),Nx=Object.assign(cB,{success:xr.success,info:xr.info,warning:xr.warning,error:xr.error,custom:xr.custom,message:xr.message,promise:xr.promise,dismiss:xr.dismiss,loading:xr.loading},{getHistory:uB,getToasts:dB});XF("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function zh(e){return e.label!==void 0}const fB=3,hB="24px",mB="16px",HC=4e3,pB=356,gB=14,vB=45,yB=200;function Ha(...e){return e.filter(Boolean).join(" ")}function xB(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const bB=e=>{var t,n,r,a,s,i,u,d,f;const{invert:m,toast:p,unstyled:v,interacting:y,setHeights:x,visibleToasts:b,heights:T,index:N,toasts:C,expanded:A,removeToast:R,defaultRichColors:_,closeButton:O,style:D,cancelButtonStyle:P,actionButtonStyle:L,className:U="",descriptionClassName:B="",duration:H,position:Z,gap:ee,expandByDefault:Q,classNames:j,icons:Y,closeButtonAriaLabel:V="Close toast"}=e,[te,k]=z.useState(null),[$,se]=z.useState(null),[re,ue]=z.useState(!1),[xe,fe]=z.useState(!1),[he,ge]=z.useState(!1),[Ne,Ae]=z.useState(!1),[Me,He]=z.useState(!1),[Ft,dt]=z.useState(0),[On,tr]=z.useState(0),yt=z.useRef(p.duration||H||HC),oa=z.useRef(null),Wt=z.useRef(null),Bt=N===0,Dn=N+1<=b,ln=p.type,Sn=p.dismissible!==!1,Ys=p.className||"",us=p.descriptionClassName||"",Br=z.useMemo(()=>T.findIndex(Ve=>Ve.toastId===p.id)||0,[T,p.id]),In=z.useMemo(()=>{var Ve;return(Ve=p.closeButton)!=null?Ve:O},[p.closeButton,O]),wr=z.useMemo(()=>p.duration||H||HC,[p.duration,H]),hn=z.useRef(0),Da=z.useRef(0),ri=z.useRef(0),Ia=z.useRef(null),[ze,xt]=Z.split("-"),Je=z.useMemo(()=>T.reduce((Ve,jt,Ht)=>Ht>=Br?Ve:Ve+jt.height,0),[T,Br]),zn=sB(),mn=p.invert||m,Pa=ln==="loading";Da.current=z.useMemo(()=>Br*ee+Je,[Br,Je]),z.useEffect(()=>{yt.current=wr},[wr]),z.useEffect(()=>{ue(!0)},[]),z.useEffect(()=>{const Ve=Wt.current;if(Ve){const jt=Ve.getBoundingClientRect().height;return tr(jt),x(Ht=>[{toastId:p.id,height:jt,position:p.position},...Ht]),()=>x(Ht=>Ht.filter(Pn=>Pn.toastId!==p.id))}},[x,p.id]),z.useLayoutEffect(()=>{if(!re)return;const Ve=Wt.current,jt=Ve.style.height;Ve.style.height="auto";const Ht=Ve.getBoundingClientRect().height;Ve.style.height=jt,tr(Ht),x(Pn=>Pn.find(pn=>pn.toastId===p.id)?Pn.map(pn=>pn.toastId===p.id?{...pn,height:Ht}:pn):[{toastId:p.id,height:Ht,position:p.position},...Pn])},[re,p.title,p.description,x,p.id]);const bt=z.useCallback(()=>{fe(!0),dt(Da.current),x(Ve=>Ve.filter(jt=>jt.toastId!==p.id)),setTimeout(()=>{R(p)},yB)},[p,R,x,Da]);z.useEffect(()=>{if(p.promise&&ln==="loading"||p.duration===1/0||p.type==="loading")return;let Ve;return A||y||zn?(()=>{if(ri.current<hn.current){const Pn=new Date().getTime()-hn.current;yt.current=yt.current-Pn}ri.current=new Date().getTime()})():(()=>{yt.current!==1/0&&(hn.current=new Date().getTime(),Ve=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),bt()},yt.current))})(),()=>clearTimeout(Ve)},[A,y,p,ln,zn,bt]),z.useEffect(()=>{p.delete&&bt()},[bt,p.delete]);function nr(){var Ve;if(Y!=null&&Y.loading){var jt;return z.createElement("div",{className:Ha(j==null?void 0:j.loader,p==null||(jt=p.classNames)==null?void 0:jt.loader,"sonner-loader"),"data-visible":ln==="loading"},Y.loading)}return z.createElement(JF,{className:Ha(j==null?void 0:j.loader,p==null||(Ve=p.classNames)==null?void 0:Ve.loader),visible:ln==="loading"})}const nt=p.icon||(Y==null?void 0:Y[ln])||QF(ln);var ja,ol;return z.createElement("li",{tabIndex:0,ref:Wt,className:Ha(U,Ys,j==null?void 0:j.toast,p==null||(t=p.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[ln],p==null||(n=p.classNames)==null?void 0:n[ln]),"data-sonner-toast":"","data-rich-colors":(ja=p.richColors)!=null?ja:_,"data-styled":!(p.jsx||p.unstyled||v),"data-mounted":re,"data-promise":!!p.promise,"data-swiped":Me,"data-removed":xe,"data-visible":Dn,"data-y-position":ze,"data-x-position":xt,"data-index":N,"data-front":Bt,"data-swiping":he,"data-dismissible":Sn,"data-type":ln,"data-invert":mn,"data-swipe-out":Ne,"data-swipe-direction":$,"data-expanded":!!(A||Q&&re),style:{"--index":N,"--toasts-before":N,"--z-index":C.length-N,"--offset":`${xe?Ft:Da.current}px`,"--initial-height":Q?"auto":`${On}px`,...D,...p.style},onDragEnd:()=>{ge(!1),k(null),Ia.current=null},onPointerDown:Ve=>{Pa||!Sn||(oa.current=new Date,dt(Da.current),Ve.target.setPointerCapture(Ve.pointerId),Ve.target.tagName!=="BUTTON"&&(ge(!0),Ia.current={x:Ve.clientX,y:Ve.clientY}))},onPointerUp:()=>{var Ve,jt,Ht;if(Ne||!Sn)return;Ia.current=null;const Pn=Number(((Ve=Wt.current)==null?void 0:Ve.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ai=Number(((jt=Wt.current)==null?void 0:jt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),pn=new Date().getTime()-((Ht=oa.current)==null?void 0:Ht.getTime()),nn=te==="x"?Pn:ai,rn=Math.abs(nn)/pn;if(Math.abs(nn)>=vB||rn>.11){dt(Da.current),p.onDismiss==null||p.onDismiss.call(p,p),se(te==="x"?Pn>0?"right":"left":ai>0?"down":"up"),bt(),Ae(!0);return}else{var Ot,Tn;(Ot=Wt.current)==null||Ot.style.setProperty("--swipe-amount-x","0px"),(Tn=Wt.current)==null||Tn.style.setProperty("--swipe-amount-y","0px")}He(!1),ge(!1),k(null)},onPointerMove:Ve=>{var jt,Ht,Pn;if(!Ia.current||!Sn||((jt=window.getSelection())==null?void 0:jt.toString().length)>0)return;const pn=Ve.clientY-Ia.current.y,nn=Ve.clientX-Ia.current.x;var rn;const Ot=(rn=e.swipeDirections)!=null?rn:xB(Z);!te&&(Math.abs(nn)>1||Math.abs(pn)>1)&&k(Math.abs(nn)>Math.abs(pn)?"x":"y");let Tn={x:0,y:0};const il=ds=>1/(1.5+Math.abs(ds)/20);if(te==="y"){if(Ot.includes("top")||Ot.includes("bottom"))if(Ot.includes("top")&&pn<0||Ot.includes("bottom")&&pn>0)Tn.y=pn;else{const ds=pn*il(pn);Tn.y=Math.abs(ds)<Math.abs(pn)?ds:pn}}else if(te==="x"&&(Ot.includes("left")||Ot.includes("right")))if(Ot.includes("left")&&nn<0||Ot.includes("right")&&nn>0)Tn.x=nn;else{const ds=nn*il(nn);Tn.x=Math.abs(ds)<Math.abs(nn)?ds:nn}(Math.abs(Tn.x)>0||Math.abs(Tn.y)>0)&&He(!0),(Ht=Wt.current)==null||Ht.style.setProperty("--swipe-amount-x",`${Tn.x}px`),(Pn=Wt.current)==null||Pn.style.setProperty("--swipe-amount-y",`${Tn.y}px`)}},In&&!p.jsx&&ln!=="loading"?z.createElement("button",{"aria-label":V,"data-disabled":Pa,"data-close-button":!0,onClick:Pa||!Sn?()=>{}:()=>{bt(),p.onDismiss==null||p.onDismiss.call(p,p)},className:Ha(j==null?void 0:j.closeButton,p==null||(r=p.classNames)==null?void 0:r.closeButton)},(ol=Y==null?void 0:Y.close)!=null?ol:aB):null,(ln||p.icon||p.promise)&&p.icon!==null&&((Y==null?void 0:Y[ln])!==null||p.icon)?z.createElement("div",{"data-icon":"",className:Ha(j==null?void 0:j.icon,p==null||(a=p.classNames)==null?void 0:a.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||nr():null,p.type!=="loading"?nt:null):null,z.createElement("div",{"data-content":"",className:Ha(j==null?void 0:j.content,p==null||(s=p.classNames)==null?void 0:s.content)},z.createElement("div",{"data-title":"",className:Ha(j==null?void 0:j.title,p==null||(i=p.classNames)==null?void 0:i.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?z.createElement("div",{"data-description":"",className:Ha(B,us,j==null?void 0:j.description,p==null||(u=p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),z.isValidElement(p.cancel)?p.cancel:p.cancel&&zh(p.cancel)?z.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||P,onClick:Ve=>{zh(p.cancel)&&Sn&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Ve),bt())},className:Ha(j==null?void 0:j.cancelButton,p==null||(d=p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,z.isValidElement(p.action)?p.action:p.action&&zh(p.action)?z.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||L,onClick:Ve=>{zh(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,Ve),!Ve.defaultPrevented&&bt())},className:Ha(j==null?void 0:j.actionButton,p==null||(f=p.classNames)==null?void 0:f.actionButton)},p.action.label):null)};function VC(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function EB(e,t){const n={};return[e,t].forEach((r,a)=>{const s=a===1,i=s?"--mobile-offset":"--offset",u=s?mB:hB;function d(f){["top","right","bottom","left"].forEach(m=>{n[`${i}-${m}`]=typeof f=="number"?`${f}px`:f})}typeof r=="number"||typeof r=="string"?d(r):typeof r=="object"?["top","right","bottom","left"].forEach(f=>{r[f]===void 0?n[`${i}-${f}`]=u:n[`${i}-${f}`]=typeof r[f]=="number"?`${r[f]}px`:r[f]}):d(u)}),n}const SB=z.forwardRef(function(t,n){const{invert:r,position:a="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:u,className:d,offset:f,mobileOffset:m,theme:p="light",richColors:v,duration:y,style:x,visibleToasts:b=fB,toastOptions:T,dir:N=VC(),gap:C=gB,icons:A,containerAriaLabel:R="Notifications"}=t,[_,O]=z.useState([]),D=z.useMemo(()=>Array.from(new Set([a].concat(_.filter($=>$.position).map($=>$.position)))),[_,a]),[P,L]=z.useState([]),[U,B]=z.useState(!1),[H,Z]=z.useState(!1),[ee,Q]=z.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),j=z.useRef(null),Y=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),V=z.useRef(null),te=z.useRef(!1),k=z.useCallback($=>{O(se=>{var re;return(re=se.find(ue=>ue.id===$.id))!=null&&re.delete||xr.dismiss($.id),se.filter(({id:ue})=>ue!==$.id)})},[]);return z.useEffect(()=>xr.subscribe($=>{if($.dismiss){requestAnimationFrame(()=>{O(se=>se.map(re=>re.id===$.id?{...re,delete:!0}:re))});return}setTimeout(()=>{jp.flushSync(()=>{O(se=>{const re=se.findIndex(ue=>ue.id===$.id);return re!==-1?[...se.slice(0,re),{...se[re],...$},...se.slice(re+1)]:[$,...se]})})})}),[_]),z.useEffect(()=>{if(p!=="system"){Q(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Q("dark"):Q("light")),typeof window>"u")return;const $=window.matchMedia("(prefers-color-scheme: dark)");try{$.addEventListener("change",({matches:se})=>{Q(se?"dark":"light")})}catch{$.addListener(({matches:re})=>{try{Q(re?"dark":"light")}catch(ue){console.error(ue)}})}},[p]),z.useEffect(()=>{_.length<=1&&B(!1)},[_]),z.useEffect(()=>{const $=se=>{var re;if(s.every(fe=>se[fe]||se.code===fe)){var xe;B(!0),(xe=j.current)==null||xe.focus()}se.code==="Escape"&&(document.activeElement===j.current||(re=j.current)!=null&&re.contains(document.activeElement))&&B(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[s]),z.useEffect(()=>{if(j.current)return()=>{V.current&&(V.current.focus({preventScroll:!0}),V.current=null,te.current=!1)}},[j.current]),z.createElement("section",{ref:n,"aria-label":`${R} ${Y}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},D.map(($,se)=>{var re;const[ue,xe]=$.split("-");return _.length?z.createElement("ol",{key:$,dir:N==="auto"?VC():N,tabIndex:-1,ref:j,className:d,"data-sonner-toaster":!0,"data-sonner-theme":ee,"data-y-position":ue,"data-lifted":U&&_.length>1&&!i,"data-x-position":xe,style:{"--front-toast-height":`${((re=P[0])==null?void 0:re.height)||0}px`,"--width":`${pB}px`,"--gap":`${C}px`,...x,...EB(f,m)},onBlur:fe=>{te.current&&!fe.currentTarget.contains(fe.relatedTarget)&&(te.current=!1,V.current&&(V.current.focus({preventScroll:!0}),V.current=null))},onFocus:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||te.current||(te.current=!0,V.current=fe.relatedTarget)},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{H||B(!1)},onDragEnd:()=>B(!1),onPointerDown:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||Z(!0)},onPointerUp:()=>Z(!1)},_.filter(fe=>!fe.position&&se===0||fe.position===$).map((fe,he)=>{var ge,Ne;return z.createElement(bB,{key:fe.id,icons:A,index:he,toast:fe,defaultRichColors:v,duration:(ge=T==null?void 0:T.duration)!=null?ge:y,className:T==null?void 0:T.className,descriptionClassName:T==null?void 0:T.descriptionClassName,invert:r,visibleToasts:b,closeButton:(Ne=T==null?void 0:T.closeButton)!=null?Ne:u,interacting:H,position:$,style:T==null?void 0:T.style,unstyled:T==null?void 0:T.unstyled,classNames:T==null?void 0:T.classNames,cancelButtonStyle:T==null?void 0:T.cancelButtonStyle,actionButtonStyle:T==null?void 0:T.actionButtonStyle,closeButtonAriaLabel:T==null?void 0:T.closeButtonAriaLabel,removeToast:k,toasts:_.filter(Ae=>Ae.position==fe.position),heights:P.filter(Ae=>Ae.position==fe.position),setHeights:L,expandByDefault:i,gap:C,expanded:U,swipeDirections:t.swipeDirections})})):null}))}),TB=({...e})=>{const{theme:t="system"}=AE();return c.jsx(SB,{theme:t,className:"group toaster [&_[data-type=success]>[data-icon]]:text-success [&_[data-type=success]_[data-title]]:text-success [&_[data-type=info]_[data-title]]:text-info [&_[data-type=error]>[data-icon]]:text-destructive [&_[data-type=error]_[data-title]]:text-destructive",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground! group-[.toaster]:border-border group-[.toaster]:shadow-lg has-[[role=alert]]:border-0! has-[[role=alert]]:shadow-none! has-[[role=alert]]:bg-transparent!",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:rounded-md! group-[.toast]:bg-primary group-[.toast]:text-mono-foreground!",cancelButton:"group-[.toast]:rounded-md! group-[.toast]:bg-secondary group-[.toast]:text-secondary-foreground!"}},...e})};var Ku={},GC;function NB(){if(GC)return Ku;GC=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.parse=i,Ku.serialize=f;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,s=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function i(v,y){const x=new s,b=v.length;if(b<2)return x;const T=(y==null?void 0:y.decode)||m;let N=0;do{const C=v.indexOf("=",N);if(C===-1)break;const A=v.indexOf(";",N),R=A===-1?b:A;if(C>R){N=v.lastIndexOf(";",C-1)+1;continue}const _=u(v,N,C),O=d(v,C,_),D=v.slice(_,O);if(x[D]===void 0){let P=u(v,C+1,R),L=d(v,R,P);const U=T(v.slice(P,L));x[D]=U}N=R+1}while(N<b);return x}function u(v,y,x){do{const b=v.charCodeAt(y);if(b!==32&&b!==9)return y}while(++y<x);return x}function d(v,y,x){for(;y>x;){const b=v.charCodeAt(--y);if(b!==32&&b!==9)return y+1}return x}function f(v,y,x){const b=(x==null?void 0:x.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const T=b(y);if(!t.test(T))throw new TypeError(`argument val is invalid: ${y}`);let N=v+"="+T;if(!x)return N;if(x.maxAge!==void 0){if(!Number.isInteger(x.maxAge))throw new TypeError(`option maxAge is invalid: ${x.maxAge}`);N+="; Max-Age="+x.maxAge}if(x.domain){if(!n.test(x.domain))throw new TypeError(`option domain is invalid: ${x.domain}`);N+="; Domain="+x.domain}if(x.path){if(!r.test(x.path))throw new TypeError(`option path is invalid: ${x.path}`);N+="; Path="+x.path}if(x.expires){if(!p(x.expires)||!Number.isFinite(x.expires.valueOf()))throw new TypeError(`option expires is invalid: ${x.expires}`);N+="; Expires="+x.expires.toUTCString()}if(x.httpOnly&&(N+="; HttpOnly"),x.secure&&(N+="; Secure"),x.partitioned&&(N+="; Partitioned"),x.priority)switch(typeof x.priority=="string"?x.priority.toLowerCase():void 0){case"low":N+="; Priority=Low";break;case"medium":N+="; Priority=Medium";break;case"high":N+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${x.priority}`)}if(x.sameSite)switch(typeof x.sameSite=="string"?x.sameSite.toLowerCase():x.sameSite){case!0:case"strict":N+="; SameSite=Strict";break;case"lax":N+="; SameSite=Lax";break;case"none":N+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${x.sameSite}`)}return N}function m(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function p(v){return a.call(v)==="[object Date]"}return Ku}NB();var zC="popstate";function wB(e={}){function t(r,a){let{pathname:s,search:i,hash:u}=r.location;return wx("",{pathname:s,search:i,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:bd(a)}return AB(t,n,null,e)}function Gt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ea(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function CB(){return Math.random().toString(36).substring(2,10)}function $C(e,t){return{usr:e.state,key:e.key,idx:t}}function wx(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Pc(t):t,state:n,key:t&&t.key||r||CB()}}function bd({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 Pc(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 AB(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,i=a.history,u="POP",d=null,f=m();f==null&&(f=0,i.replaceState({...i.state,idx:f},""));function m(){return(i.state||{idx:null}).idx}function p(){u="POP";let T=m(),N=T==null?null:T-f;f=T,d&&d({action:u,location:b.location,delta:N})}function v(T,N){u="PUSH";let C=wx(b.location,T,N);f=m()+1;let A=$C(C,f),R=b.createHref(C);try{i.pushState(A,"",R)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;a.location.assign(R)}s&&d&&d({action:u,location:b.location,delta:1})}function y(T,N){u="REPLACE";let C=wx(b.location,T,N);f=m();let A=$C(C,f),R=b.createHref(C);i.replaceState(A,"",R),s&&d&&d({action:u,location:b.location,delta:0})}function x(T){let N=a.location.origin!=="null"?a.location.origin:a.location.href,C=typeof T=="string"?T:bd(T);return C=C.replace(/ $/,"%20"),Gt(N,`No window.location.(origin|href) available to create URL for href: ${C}`),new URL(C,N)}let b={get action(){return u},get location(){return e(a,i)},listen(T){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(zC,p),d=T,()=>{a.removeEventListener(zC,p),d=null}},createHref(T){return t(a,T)},createURL:x,encodeLocation(T){let N=x(T);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:v,replace:y,go(T){return i.go(T)}};return b}function QM(e,t,n="/"){return _B(e,t,n,!1)}function _B(e,t,n,r){let a=typeof t=="string"?Pc(t):t,s=Bs(a.pathname||"/",n);if(s==null)return null;let i=ZM(e);RB(i);let u=null;for(let d=0;u==null&&d<i.length;++d){let f=BB(s);u=UB(i[d],f,r)}return u}function ZM(e,t=[],n=[],r=""){let a=(s,i,u)=>{let d={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};d.relativePath.startsWith("/")&&(Gt(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let f=Fs([r,d.relativePath]),m=n.concat(d);s.children&&s.children.length>0&&(Gt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),ZM(s.children,t,m,f)),!(s.path==null&&!s.index)&&t.push({path:f,score:LB(f,s.index),routesMeta:m})};return e.forEach((s,i)=>{var u;if(s.path===""||!((u=s.path)!=null&&u.includes("?")))a(s,i);else for(let d of JM(s.path))a(s,i,d)}),t}function JM(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 i=JM(r.join("/")),u=[];return u.push(...i.map(d=>d===""?s:[s,d].join("/"))),a&&u.push(...i),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function RB(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:kB(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var MB=/^:[\w-]+$/,OB=3,DB=2,IB=1,PB=10,jB=-2,qC=e=>e==="*";function LB(e,t){let n=e.split("/"),r=n.length;return n.some(qC)&&(r+=jB),t&&(r+=DB),n.filter(a=>!qC(a)).reduce((a,s)=>a+(MB.test(s)?OB:s===""?IB:PB),r)}function kB(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 UB(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",i=[];for(let u=0;u<r.length;++u){let d=r[u],f=u===r.length-1,m=s==="/"?t:t.slice(s.length)||"/",p=Wm({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},m),v=d.route;if(!p&&f&&n&&!r[r.length-1].route.index&&(p=Wm({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!p)return null;Object.assign(a,p.params),i.push({params:a,pathname:Fs([s,p.pathname]),pathnameBase:zB(Fs([s,p.pathnameBase])),route:v}),p.pathnameBase!=="/"&&(s=Fs([s,p.pathnameBase]))}return i}function Wm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=FB(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],i=s.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((f,{paramName:m,isOptional:p},v)=>{if(m==="*"){let x=u[v]||"";i=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const y=u[v];return p&&!y?f[m]=void 0:f[m]=(y||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:i,pattern:e}}function FB(e,t=!1,n=!0){Ea(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,(i,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function BB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ea(!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 Bs(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 HB(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Pc(e):e;return{pathname:n?n.startsWith("/")?n:VB(n,t):t,search:$B(r),hash:qB(a)}}function VB(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 sy(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 GB(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function _E(e){let t=GB(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function RE(e,t,n,r=!1){let a;typeof e=="string"?a=Pc(e):(a={...e},Gt(!a.pathname||!a.pathname.includes("?"),sy("?","pathname","search",a)),Gt(!a.pathname||!a.pathname.includes("#"),sy("#","pathname","hash",a)),Gt(!a.search||!a.search.includes("#"),sy("#","search","hash",a)));let s=e===""||a.pathname==="",i=s?"/":a.pathname,u;if(i==null)u=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),p-=1;a.pathname=v.join("/")}u=p>=0?t[p]:"/"}let d=HB(a,u),f=i&&i!=="/"&&i.endsWith("/"),m=(s||i===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||m)&&(d.pathname+="/"),d}var Fs=e=>e.join("/").replace(/\/\/+/g,"/"),zB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$B=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,qB=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function YB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var e2=["POST","PUT","PATCH","DELETE"];new Set(e2);var WB=["GET",...e2];new Set(WB);var jc=S.createContext(null);jc.displayName="DataRouter";var Lp=S.createContext(null);Lp.displayName="DataRouterState";var t2=S.createContext({isTransitioning:!1});t2.displayName="ViewTransition";var KB=S.createContext(new Map);KB.displayName="Fetchers";var XB=S.createContext(null);XB.displayName="Await";var Aa=S.createContext(null);Aa.displayName="Navigation";var qd=S.createContext(null);qd.displayName="Location";var _a=S.createContext({outlet:null,matches:[],isDataRoute:!1});_a.displayName="Route";var ME=S.createContext(null);ME.displayName="RouteError";function QB(e,{relative:t}={}){Gt(Lc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(Aa),{hash:a,pathname:s,search:i}=Yd(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:Fs([n,s])),r.createHref({pathname:u,search:i,hash:a})}function Lc(){return S.useContext(qd)!=null}function Rn(){return Gt(Lc(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(qd).location}var n2="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function r2(e){S.useContext(Aa).static||S.useLayoutEffect(e)}function OE(){let{isDataRoute:e}=S.useContext(_a);return e?f6():ZB()}function ZB(){Gt(Lc(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(jc),{basename:t,navigator:n}=S.useContext(Aa),{matches:r}=S.useContext(_a),{pathname:a}=Rn(),s=JSON.stringify(_E(r)),i=S.useRef(!1);return r2(()=>{i.current=!0}),S.useCallback((d,f={})=>{if(Ea(i.current,n2),!i.current)return;if(typeof d=="number"){n.go(d);return}let m=RE(d,JSON.parse(s),a,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Fs([t,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[t,n,s,a,e])}var JB=S.createContext(null);function e6(e){let t=S.useContext(_a).outlet;return t&&S.createElement(JB.Provider,{value:e},t)}function Yd(e,{relative:t}={}){let{matches:n}=S.useContext(_a),{pathname:r}=Rn(),a=JSON.stringify(_E(n));return S.useMemo(()=>RE(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function t6(e,t){return a2(e,t)}function a2(e,t,n,r){var C;Gt(Lc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:s}=S.useContext(Aa),{matches:i}=S.useContext(_a),u=i[i.length-1],d=u?u.params:{},f=u?u.pathname:"/",m=u?u.pathnameBase:"/",p=u&&u.route;{let A=p&&p.path||"";s2(f,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${A}">) 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="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let v=Rn(),y;if(t){let A=typeof t=="string"?Pc(t):t;Gt(m==="/"||((C=A.pathname)==null?void 0:C.startsWith(m)),`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 "${m}" but pathname "${A.pathname}" was given in the \`location\` prop.`),y=A}else y=v;let x=y.pathname||"/",b=x;if(m!=="/"){let A=m.replace(/^\//,"").split("/");b="/"+x.replace(/^\//,"").split("/").slice(A.length).join("/")}let T=!s&&n&&n.matches&&n.matches.length>0?n.matches:QM(e,{pathname:b});Ea(p||T!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Ea(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 "${y.pathname}${y.search}${y.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 N=o6(T&&T.map(A=>Object.assign({},A,{params:Object.assign({},d,A.params),pathname:Fs([m,a.encodeLocation?a.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?m:Fs([m,a.encodeLocation?a.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),i,n,r);return t&&N?S.createElement(qd.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},N):N}function n6(){let e=d6(),t=YB(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},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:s},"ErrorBoundary")," or"," ",S.createElement("code",{style:s},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:a},n):null,i)}var r6=S.createElement(n6,null),a6=class extends S.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){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?S.createElement(_a.Provider,{value:this.props.routeContext},S.createElement(ME.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function s6({routeContext:e,match:t,children:n}){let r=S.useContext(jc);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(_a.Provider,{value:e},n)}function o6(e,t=[],n=null,r=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 a=e,s=n==null?void 0:n.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);Gt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let i=!1,u=-1;if(n)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:m,errors:p}=n,v=f.route.loader&&!m.hasOwnProperty(f.route.id)&&(!p||p[f.route.id]===void 0);if(f.route.lazy||v){i=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,m)=>{let p,v=!1,y=null,x=null;n&&(p=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||r6,i&&(u<0&&m===0?(s2("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,x=null):u===m&&(v=!0,x=f.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,m+1)),T=()=>{let N;return p?N=y:v?N=x:f.route.Component?N=S.createElement(f.route.Component,null):f.route.element?N=f.route.element:N=d,S.createElement(s6,{match:f,routeContext:{outlet:d,matches:b,isDataRoute:n!=null},children:N})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?S.createElement(a6,{location:n.location,revalidation:n.revalidation,component:y,error:p,children:T(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):T()},null)}function DE(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function i6(e){let t=S.useContext(jc);return Gt(t,DE(e)),t}function l6(e){let t=S.useContext(Lp);return Gt(t,DE(e)),t}function c6(e){let t=S.useContext(_a);return Gt(t,DE(e)),t}function IE(e){let t=c6(e),n=t.matches[t.matches.length-1];return Gt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function u6(){return IE("useRouteId")}function d6(){var r;let e=S.useContext(ME),t=l6("useRouteError"),n=IE("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function f6(){let{router:e}=i6("useNavigate"),t=IE("useNavigate"),n=S.useRef(!1);return r2(()=>{n.current=!0}),S.useCallback(async(a,s={})=>{Ea(n.current,n2),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var YC={};function s2(e,t,n){!t&&!YC[e]&&(YC[e]=!0,Ea(!1,n))}S.memo(h6);function h6({routes:e,future:t,state:n}){return a2(e,void 0,n,t)}function m6({to:e,replace:t,state:n,relative:r}){Gt(Lc(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=S.useContext(Aa);Ea(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=S.useContext(_a),{pathname:i}=Rn(),u=OE(),d=RE(e,_E(s),i,r==="path"),f=JSON.stringify(d);return S.useEffect(()=>{u(JSON.parse(f),{replace:t,state:n,relative:r})},[u,f,r,t,n]),null}function PE(e){return e6(e.context)}function lt(e){Gt(!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 p6({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1}){Gt(!Lc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),u=S.useMemo(()=>({basename:i,navigator:a,static:s,future:{}}),[i,a,s]);typeof n=="string"&&(n=Pc(n));let{pathname:d="/",search:f="",hash:m="",state:p=null,key:v="default"}=n,y=S.useMemo(()=>{let x=Bs(d,i);return x==null?null:{location:{pathname:x,search:f,hash:m,state:p,key:v},navigationType:r}},[i,d,f,m,p,v,r]);return Ea(y!=null,`<Router basename="${i}"> is not able to match the URL "${d}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:S.createElement(Aa.Provider,{value:u},S.createElement(qd.Provider,{children:t,value:y}))}function o2({children:e,location:t}){return t6(Cx(e),t)}function Cx(e,t=[]){let n=[];return S.Children.forEach(e,(r,a)=>{if(!S.isValidElement(r))return;let s=[...t,a];if(r.type===S.Fragment){n.push.apply(n,Cx(r.props.children,s));return}Gt(r.type===lt,`[${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>`),Gt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let i={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,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&&(i.children=Cx(r.props.children,s)),n.push(i)}),n}var Tm="get",Nm="application/x-www-form-urlencoded";function kp(e){return e!=null&&typeof e.tagName=="string"}function g6(e){return kp(e)&&e.tagName.toLowerCase()==="button"}function v6(e){return kp(e)&&e.tagName.toLowerCase()==="form"}function y6(e){return kp(e)&&e.tagName.toLowerCase()==="input"}function x6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function b6(e,t){return e.button===0&&(!t||t==="_self")&&!x6(e)}var $h=null;function E6(){if($h===null)try{new FormData(document.createElement("form"),0),$h=!1}catch{$h=!0}return $h}var S6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function oy(e){return e!=null&&!S6.has(e)?(Ea(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Nm}"`),null):e}function T6(e,t){let n,r,a,s,i;if(v6(e)){let u=e.getAttribute("action");r=u?Bs(u,t):null,n=e.getAttribute("method")||Tm,a=oy(e.getAttribute("enctype"))||Nm,s=new FormData(e)}else if(g6(e)||y6(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(r=d?Bs(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||Tm,a=oy(e.getAttribute("formenctype"))||oy(u.getAttribute("enctype"))||Nm,s=new FormData(u,e),!E6()){let{name:f,type:m,value:p}=e;if(m==="image"){let v=f?`${f}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else f&&s.append(f,p)}}else{if(kp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Tm,r=null,a=Nm,i=e}return s&&a==="text/plain"&&(i=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:i}}function jE(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function N6(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 w6(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 C6(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let i=await N6(s,n);return i.links?i.links():[]}return[]}));return M6(r.flat(1).filter(w6).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function WC(e,t,n,r,a,s){let i=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,u=(d,f)=>{var m;return n[f].pathname!==d.pathname||((m=n[f].route.path)==null?void 0:m.endsWith("*"))&&n[f].params["*"]!==d.params["*"]};return s==="assets"?t.filter((d,f)=>i(d,f)||u(d,f)):s==="data"?t.filter((d,f)=>{var p;let m=r.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(i(d,f)||u(d,f))return!0;if(d.route.shouldRevalidate){let v=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function A6(e,t,{includeHydrateFallback:n}={}){return _6(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 _6(e){return[...new Set(e)]}function R6(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function M6(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(R6(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}var O6=new Set([100,101,204,205]);function D6(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&Bs(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function i2(){let e=S.useContext(jc);return jE(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function I6(){let e=S.useContext(Lp);return jE(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var LE=S.createContext(void 0);LE.displayName="FrameworkContext";function l2(){let e=S.useContext(LE);return jE(e,"You must render this element inside a <HydratedRouter> element"),e}function P6(e,t){let n=S.useContext(LE),[r,a]=S.useState(!1),[s,i]=S.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:f,onMouseLeave:m,onTouchStart:p}=t,v=S.useRef(null);S.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let b=N=>{N.forEach(C=>{i(C.isIntersecting)})},T=new IntersectionObserver(b,{threshold:.5});return v.current&&T.observe(v.current),()=>{T.disconnect()}}},[e]),S.useEffect(()=>{if(r){let b=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(b)}}},[r]);let y=()=>{a(!0)},x=()=>{a(!1),i(!1)};return n?e!=="intent"?[s,v,{}]:[s,v,{onFocus:Xu(u,y),onBlur:Xu(d,x),onMouseEnter:Xu(f,y),onMouseLeave:Xu(m,x),onTouchStart:Xu(p,y)}]:[!1,v,{}]}function Xu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function j6({page:e,...t}){let{router:n}=i2(),r=S.useMemo(()=>QM(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(k6,{page:e,matches:r,...t}):null}function L6(e){let{manifest:t,routeModules:n}=l2(),[r,a]=S.useState([]);return S.useEffect(()=>{let s=!1;return C6(e,t,n).then(i=>{s||a(i)}),()=>{s=!0}},[e,t,n]),r}function k6({page:e,matches:t,...n}){let r=Rn(),{manifest:a,routeModules:s}=l2(),{basename:i}=i2(),{loaderData:u,matches:d}=I6(),f=S.useMemo(()=>WC(e,t,d,a,r,"data"),[e,t,d,a,r]),m=S.useMemo(()=>WC(e,t,d,a,r,"assets"),[e,t,d,a,r]),p=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,b=!1;if(t.forEach(N=>{var A;let C=a.routes[N.route.id];!C||!C.hasLoader||(!f.some(R=>R.route.id===N.route.id)&&N.route.id in u&&((A=s[N.route.id])!=null&&A.shouldRevalidate)||C.hasClientLoader?b=!0:x.add(N.route.id))}),x.size===0)return[];let T=D6(e,i);return b&&x.size>0&&T.searchParams.set("_routes",t.filter(N=>x.has(N.route.id)).map(N=>N.route.id).join(",")),[T.pathname+T.search]},[i,u,r,a,f,t,e,s]),v=S.useMemo(()=>A6(m,a),[m,a]),y=L6(m);return S.createElement(S.Fragment,null,p.map(x=>S.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),v.map(x=>S.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),y.map(({key:x,link:b})=>S.createElement("link",{key:x,...b})))}function U6(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var c2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{c2&&(window.__reactRouterVersion="7.5.3")}catch{}function F6({basename:e,children:t,window:n}){let r=S.useRef();r.current==null&&(r.current=wB({window:n,v5Compat:!0}));let a=r.current,[s,i]=S.useState({action:a.action,location:a.location}),u=S.useCallback(d=>{S.startTransition(()=>i(d))},[i]);return S.useLayoutEffect(()=>a.listen(u),[a,u]),S.createElement(p6,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var u2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pt=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:i,state:u,target:d,to:f,preventScrollReset:m,viewTransition:p,...v},y){let{basename:x}=S.useContext(Aa),b=typeof f=="string"&&u2.test(f),T,N=!1;if(typeof f=="string"&&b&&(T=f,c2))try{let L=new URL(window.location.href),U=f.startsWith("//")?new URL(L.protocol+f):new URL(f),B=Bs(U.pathname,x);U.origin===L.origin&&B!=null?f=B+U.search+U.hash:N=!0}catch{Ea(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let C=QB(f,{relative:a}),[A,R,_]=P6(r,v),O=G6(f,{replace:i,state:u,target:d,preventScrollReset:m,relative:a,viewTransition:p});function D(L){t&&t(L),L.defaultPrevented||O(L)}let P=S.createElement("a",{...v,..._,href:T||C,onClick:N||s?t:D,ref:U6(y,R),target:d,"data-discover":!b&&n==="render"?"true":void 0});return A&&!b?S.createElement(S.Fragment,null,P,S.createElement(j6,{page:C})):P});Pt.displayName="Link";var B6=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:i,viewTransition:u,children:d,...f},m){let p=Yd(i,{relative:f.relative}),v=Rn(),y=S.useContext(Lp),{navigator:x,basename:b}=S.useContext(Aa),T=y!=null&&W6(p)&&u===!0,N=x.encodeLocation?x.encodeLocation(p).pathname:p.pathname,C=v.pathname,A=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(C=C.toLowerCase(),A=A?A.toLowerCase():null,N=N.toLowerCase()),A&&b&&(A=Bs(A,b)||A);const R=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let _=C===N||!a&&C.startsWith(N)&&C.charAt(R)==="/",O=A!=null&&(A===N||!a&&A.startsWith(N)&&A.charAt(N.length)==="/"),D={isActive:_,isPending:O,isTransitioning:T},P=_?t:void 0,L;typeof r=="function"?L=r(D):L=[r,_?"active":null,O?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let U=typeof s=="function"?s(D):s;return S.createElement(Pt,{...f,"aria-current":P,className:L,ref:m,style:U,to:i,viewTransition:u},typeof d=="function"?d(D):d)});B6.displayName="NavLink";var H6=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:i=Tm,action:u,onSubmit:d,relative:f,preventScrollReset:m,viewTransition:p,...v},y)=>{let x=q6(),b=Y6(u,{relative:f}),T=i.toLowerCase()==="get"?"get":"post",N=typeof u=="string"&&u2.test(u),C=A=>{if(d&&d(A),A.defaultPrevented)return;A.preventDefault();let R=A.nativeEvent.submitter,_=(R==null?void 0:R.getAttribute("formmethod"))||i;x(R||A.currentTarget,{fetcherKey:t,method:_,navigate:n,replace:a,state:s,relative:f,preventScrollReset:m,viewTransition:p})};return S.createElement("form",{ref:y,method:T,action:b,onSubmit:r?d:C,...v,"data-discover":!N&&e==="render"?"true":void 0})});H6.displayName="Form";function V6(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function d2(e){let t=S.useContext(jc);return Gt(t,V6(e)),t}function G6(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:i}={}){let u=OE(),d=Rn(),f=Yd(e,{relative:s});return S.useCallback(m=>{if(b6(m,t)){m.preventDefault();let p=n!==void 0?n:bd(d)===bd(f);u(e,{replace:p,state:r,preventScrollReset:a,relative:s,viewTransition:i})}},[d,u,f,n,r,t,e,a,s,i])}var z6=0,$6=()=>`__${String(++z6)}__`;function q6(){let{router:e}=d2("useSubmit"),{basename:t}=S.useContext(Aa),n=u6();return S.useCallback(async(r,a={})=>{let{action:s,method:i,encType:u,formData:d,body:f}=T6(r,t);if(a.navigate===!1){let m=a.fetcherKey||$6();await e.fetch(m,n,a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||i,formEncType:a.encType||u,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||i,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function Y6(e,{relative:t}={}){let{basename:n}=S.useContext(Aa),r=S.useContext(_a);Gt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...Yd(e||".",{relative:t})},i=Rn();if(e==null){s.search=i.search;let u=new URLSearchParams(s.search),d=u.getAll("index");if(d.some(m=>m==="")){u.delete("index"),d.filter(p=>p).forEach(p=>u.append("index",p));let m=u.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Fs([n,s.pathname])),bd(s)}function W6(e,t={}){let n=S.useContext(t2);Gt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=d2("useViewTransitionState"),a=Yd(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Bs(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Bs(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Wm(a.pathname,i)!=null||Wm(a.pathname,s)!=null}new TextEncoder;[...O6];var K6=()=>{};function X6(e,t,n){let r=S.useRef(K6);S.useEffect(()=>{r.current=e}),S.useEffect(()=>{},[n]),S.useEffect(()=>{if(t===null||t===!1)return;let a=setInterval(()=>r.current(),t);return()=>clearInterval(a)},[t])}function f2(e,t){return Math.random()*(t-e+1)+e}function qh(e,t){return Math.floor(f2(e,t))}var Q6=S.forwardRef(({progress:e,height:t=2,className:n="",color:r="red",background:a="transparent",onLoaderFinished:s,transitionTime:i=300,loaderSpeed:u=500,waitingTime:d=1e3,shadow:f=!0,containerStyle:m={},style:p={},shadowStyle:v={},containerClassName:y=""},x)=>{let b=S.useRef(!1),[T,N]=S.useState(0),C=S.useRef({active:!1,refreshRate:1e3}),[A,R]=S.useState({active:!1,value:60}),_={height:"100%",background:r,transition:`all ${u}ms ease`,width:"0%"},O={position:"fixed",top:0,left:0,height:t,background:a,zIndex:99999999999,width:"100%"},D={boxShadow:`0 0 10px ${r}, 0 0 10px ${r}`,width:"5%",opacity:1,position:"absolute",height:"100%",transition:`all ${u}ms ease`,transform:"rotate(2deg) translate(0px, -2px)",left:"-10rem"},[P,L]=S.useState(_),[U,B]=S.useState(D);S.useEffect(()=>(b.current=!0,()=>{b.current=!1}),[]),S.useImperativeHandle(x,()=>({continuousStart(Z,ee=1e3){if(A.active)return;if(e!==void 0){console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");return}let Q=Z||qh(10,20);C.current={active:!0,refreshRate:ee},N(Q),H(Q)},staticStart(Z){if(C.current.active)return;if(e!==void 0){console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");return}let ee=Z||qh(30,60);R({active:!0,value:ee}),N(ee),H(ee)},start(Z="continuous",ee,Q){if(e!==void 0){console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");return}Z==="continuous"?C.current={active:!0,refreshRate:Q||1e3}:R({active:!0,value:ee||20});let j=qh(10,20),Y=qh(30,70),V=ee||(Z==="continuous"?j:Y);N(V),H(V)},complete(){if(e!==void 0){console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");return}N(100),H(100)},increase(Z){if(e!==void 0){console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");return}N(ee=>{let Q=ee+Z;return H(Q),Q})},decrease(Z){if(e!==void 0){console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");return}N(ee=>{let Q=ee-Z;return H(Q),Q})},getProgress(){return T}})),S.useEffect(()=>{L({...P,background:r}),B({...U,boxShadow:`0 0 10px ${r}, 0 0 5px ${r}`})},[r]),S.useEffect(()=>{if(x){if(x&&e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar! Please use only props or only ref methods! Ref methods will override props if "ref" property is available.`);return}H(T)}else e&&H(e)},[e]);let H=Z=>{Z>=100?(L({...P,width:"100%"}),f&&B({...U,left:Z-10+"%"}),setTimeout(()=>{b.current&&(L({...P,opacity:0,width:"100%",transition:`all ${i}ms ease-out`,color:r}),setTimeout(()=>{b.current&&(C.current.active&&(C.current={...C.current,active:!1},N(0),H(0)),A.active&&(R({...A,active:!1}),N(0),H(0)),s&&s(),N(0),H(0))},i))},d)):(L(ee=>({...ee,width:Z+"%",opacity:1,transition:Z>0?`all ${u}ms ease`:""})),f&&B({...U,left:Z-5.5+"%",transition:Z>0?`all ${u}ms ease`:""}))};return X6(()=>{let Z=Math.min(10,(100-T)/5),ee=Math.min(20,(100-T)/3),Q=f2(Z,ee);T+Q<95&&(N(T+Q),H(T+Q))},C.current.active?C.current.refreshRate:null),S.createElement("div",{className:y,style:{...O,...m}},S.createElement("div",{className:n,style:{...P,...p}},f?S.createElement("div",{style:{...U,...v}}):null))}),h2=S.createContext(void 0),Z6=({children:e,props:t})=>{let[n,r]=S.useState(t||{}),a=S.useRef(null),s=(i="continuous")=>{var u;return(u=a.current)==null?void 0:u.start(i)};return S.createElement(h2.Provider,{value:{start:s,complete:()=>{var i;return(i=a.current)==null?void 0:i.complete()},getProgress:()=>{var i;return((i=a.current)==null?void 0:i.getProgress())||0},increase:i=>{var u;return(u=a.current)==null?void 0:u.increase(i)},decrease:i=>{var u;return(u=a.current)==null?void 0:u.decrease(i)},setProps:i=>r({...i,...n})}},S.createElement(Q6,{ref:a,...n}),e)},J6=e=>{let t=S.useContext(h2);if(!t)throw new Error("[react-top-loading-bar] useLoadingBar hook must be used within a LoadingBarContainer. Try wrapping parent component in <LoadingBarContainer>.");return S.useEffect(()=>{e&&t.setProps(e)},[]),{start:t.start,complete:t.complete,increase:t.increase,decrease:t.decrease,getProgress:t.getProgress}};function eH(){return c.jsx("div",{className:"flex flex-col items-center justify-center grow h-[95%]",children:c.jsx(PE,{})})}function ns(e){var t;return(t=chrome==null?void 0:chrome.runtime)!=null&&t.id?chrome.runtime.getURL(e):"/FAP-TiktokVibe/"+e}function KC(){return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("img",{src:ns("/media/illustrations/19.svg"),className:"dark:hidden max-h-[160px]",alt:"image"}),c.jsx("img",{src:ns("/media/illustrations/19-dark.svg"),className:"hidden dark:block max-h-[160px]",alt:"image"})]}),c.jsx("span",{className:"badge badge-primary badge-outline mb-3",children:"404 Error"}),c.jsx("h3",{className:"text-2xl font-semibold text-mono text-center mb-2",children:"We have lost this page"}),c.jsxs("div",{className:"text-base text-center text-secondary-foreground mb-10",children:["The requested page is missing. Check the URL or ",c.jsx(Pt,{to:"/",className:"text-primary font-medium hover:text-primary-active",children:"Return Home"}),"."]})]})}function XC(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wd(...e){return t=>{let n=!1;const r=e.map(a=>{const s=XC(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():XC(e[a],null)}}}}function Ue(...e){return S.useCallback(Wd(...e),e)}function ko(e){const t=tH(e),n=S.forwardRef((r,a)=>{const{children:s,...i}=r,u=S.Children.toArray(s),d=u.find(nH);if(d){const f=d.props.children,m=u.map(p=>p===d?S.Children.count(f)>1?S.Children.only(null):S.isValidElement(f)?f.props.children:null:p);return c.jsx(t,{...i,ref:a,children:S.isValidElement(f)?S.cloneElement(f,void 0,m):null})}return c.jsx(t,{...i,ref:a,children:s})});return n.displayName=`${e}.Slot`,n}var m2=ko("Slot");function tH(e){const t=S.forwardRef((n,r)=>{const{children:a,...s}=n;if(S.isValidElement(a)){const i=aH(a),u=rH(s,a.props);return a.type!==S.Fragment&&(u.ref=r?Wd(r,i):i),S.cloneElement(a,u)}return S.Children.count(a)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var p2=Symbol("radix.slottable");function g2(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=p2,t}function nH(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===p2}function rH(e,t){const n={...t};for(const r in t){const a=e[r],s=t[r];/^on[A-Z]/.test(r)?a&&s?n[r]=(...u)=>{s(...u),a(...u)}:a&&(n[r]=a):r==="style"?n[r]={...a,...s}:r==="className"&&(n[r]=[a,s].filter(Boolean).join(" "))}return{...e,...n}}function aH(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function v2(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=v2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function y2(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=v2(e))&&(r&&(r+=" "),r+=t);return r}const QC=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ZC=y2,Mt=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ZC(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:s}=t,i=Object.keys(a).map(f=>{const m=n==null?void 0:n[f],p=s==null?void 0:s[f];if(m===null)return null;const v=QC(m)||QC(p);return a[f][v]}),u=n&&Object.entries(n).reduce((f,m)=>{let[p,v]=m;return v===void 0||(f[p]=v),f},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,m)=>{let{class:p,className:v,...y}=m;return Object.entries(y).every(x=>{let[b,T]=x;return Array.isArray(T)?T.includes({...s,...u}[b]):{...s,...u}[b]===T})?[...f,p,v]:f},[]);return ZC(e,i,d,n==null?void 0:n.class,n==null?void 0:n.className)},kE="-",sH=e=>{const t=iH(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const u=i.split(kE);return u[0]===""&&u.length!==1&&u.shift(),x2(u,t)||oH(i)},getConflictingClassGroupIds:(i,u)=>{const d=n[i]||[];return u&&r[i]?[...d,...r[i]]:d}}},x2=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?x2(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const s=e.join(kE);return(i=t.validators.find(({validator:u})=>u(s)))==null?void 0:i.classGroupId},JC=/^\[(.+)\]$/,oH=e=>{if(JC.test(e)){const t=JC.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},iH=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)Ax(n[a],r,a,t);return r},Ax=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:eA(t,a);s.classGroupId=n;return}if(typeof a=="function"){if(lH(a)){Ax(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,i])=>{Ax(i,eA(t,s),n,r)})})},eA=(e,t)=>{let n=e;return t.split(kE).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},lH=e=>e.isThemeGetter,cH=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return a(s,i),i},set(s,i){n.has(s)?n.set(s,i):a(s,i)}}},_x="!",Rx=":",uH=Rx.length,dH=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const s=[];let i=0,u=0,d=0,f;for(let x=0;x<a.length;x++){let b=a[x];if(i===0&&u===0){if(b===Rx){s.push(a.slice(d,x)),d=x+uH;continue}if(b==="/"){f=x;continue}}b==="["?i++:b==="]"?i--:b==="("?u++:b===")"&&u--}const m=s.length===0?a:a.substring(d),p=fH(m),v=p!==m,y=f&&f>d?f-d:void 0;return{modifiers:s,hasImportantModifier:v,baseClassName:p,maybePostfixModifierPosition:y}};if(t){const a=t+Rx,s=r;r=i=>i.startsWith(a)?s(i.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=s=>n({className:s,parseClassName:a})}return r},fH=e=>e.endsWith(_x)?e.substring(0,e.length-1):e.startsWith(_x)?e.substring(1):e,hH=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let s=[];return r.forEach(i=>{i[0]==="["||t[i]?(a.push(...s.sort(),i),s=[]):s.push(i)}),a.push(...s.sort()),a}},mH=e=>({cache:cH(e.cacheSize),parseClassName:dH(e),sortModifiers:hH(e),...sH(e)}),pH=/\s+/,gH=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:s}=t,i=[],u=e.trim().split(pH);let d="";for(let f=u.length-1;f>=0;f-=1){const m=u[f],{isExternal:p,modifiers:v,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:b}=n(m);if(p){d=m+(d.length>0?" "+d:d);continue}let T=!!b,N=r(T?x.substring(0,b):x);if(!N){if(!T){d=m+(d.length>0?" "+d:d);continue}if(N=r(x),!N){d=m+(d.length>0?" "+d:d);continue}T=!1}const C=s(v).join(":"),A=y?C+_x:C,R=A+N;if(i.includes(R))continue;i.push(R);const _=a(N,T);for(let O=0;O<_.length;++O){const D=_[O];i.push(A+D)}d=m+(d.length>0?" "+d:d)}return d};function vH(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=b2(t))&&(r&&(r+=" "),r+=n);return r}const b2=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=b2(e[r]))&&(n&&(n+=" "),n+=t);return n};function yH(e,...t){let n,r,a,s=i;function i(d){const f=t.reduce((m,p)=>p(m),e());return n=mH(f),r=n.cache.get,a=n.cache.set,s=u,u(d)}function u(d){const f=r(d);if(f)return f;const m=gH(d,n);return a(d,m),m}return function(){return s(vH.apply(null,arguments))}}const yn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},E2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,S2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xH=/^\d+\/\d+$/,bH=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,EH=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,SH=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,TH=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,NH=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ql=e=>xH.test(e),Xe=e=>!!e&&!Number.isNaN(Number(e)),vo=e=>!!e&&Number.isInteger(Number(e)),iy=e=>e.endsWith("%")&&Xe(e.slice(0,-1)),As=e=>bH.test(e),wH=()=>!0,CH=e=>EH.test(e)&&!SH.test(e),T2=()=>!1,AH=e=>TH.test(e),_H=e=>NH.test(e),RH=e=>!Ee(e)&&!Se(e),MH=e=>kc(e,C2,T2),Ee=e=>E2.test(e),Si=e=>kc(e,A2,CH),ly=e=>kc(e,jH,Xe),tA=e=>kc(e,N2,T2),OH=e=>kc(e,w2,_H),Yh=e=>kc(e,_2,AH),Se=e=>S2.test(e),Qu=e=>Uc(e,A2),DH=e=>Uc(e,LH),nA=e=>Uc(e,N2),IH=e=>Uc(e,C2),PH=e=>Uc(e,w2),Wh=e=>Uc(e,_2,!0),kc=(e,t,n)=>{const r=E2.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Uc=(e,t,n=!1)=>{const r=S2.exec(e);return r?r[1]?t(r[1]):n:!1},N2=e=>e==="position"||e==="percentage",w2=e=>e==="image"||e==="url",C2=e=>e==="length"||e==="size"||e==="bg-size",A2=e=>e==="length",jH=e=>e==="number",LH=e=>e==="family-name",_2=e=>e==="shadow",kH=()=>{const e=yn("color"),t=yn("font"),n=yn("text"),r=yn("font-weight"),a=yn("tracking"),s=yn("leading"),i=yn("breakpoint"),u=yn("container"),d=yn("spacing"),f=yn("radius"),m=yn("shadow"),p=yn("inset-shadow"),v=yn("text-shadow"),y=yn("drop-shadow"),x=yn("blur"),b=yn("perspective"),T=yn("aspect"),N=yn("ease"),C=yn("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...R(),Se,Ee],O=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],P=()=>[Se,Ee,d],L=()=>[ql,"full","auto",...P()],U=()=>[vo,"none","subgrid",Se,Ee],B=()=>["auto",{span:["full",vo,Se,Ee]},vo,Se,Ee],H=()=>[vo,"auto",Se,Ee],Z=()=>["auto","min","max","fr",Se,Ee],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...P()],Y=()=>[ql,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],V=()=>[e,Se,Ee],te=()=>[...R(),nA,tA,{position:[Se,Ee]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",IH,MH,{size:[Se,Ee]}],se=()=>[iy,Qu,Si],re=()=>["","none","full",f,Se,Ee],ue=()=>["",Xe,Qu,Si],xe=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[Xe,iy,nA,tA],ge=()=>["","none",x,Se,Ee],Ne=()=>["none",Xe,Se,Ee],Ae=()=>["none",Xe,Se,Ee],Me=()=>[Xe,Se,Ee],He=()=>[ql,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[As],breakpoint:[As],color:[wH],container:[As],"drop-shadow":[As],ease:["in","out","in-out"],font:[RH],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[As],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[As],shadow:[As],spacing:["px",Xe],text:[As],"text-shadow":[As],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ql,Ee,Se,T]}],container:["container"],columns:[{columns:[Xe,Ee,Se,u]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[vo,"auto",Se,Ee]}],basis:[{basis:[ql,"full","auto",u,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Xe,ql,"auto","initial","none",Ee]}],grow:[{grow:["",Xe,Se,Ee]}],shrink:[{shrink:["",Xe,Se,Ee]}],order:[{order:[vo,"first","last","none",Se,Ee]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],w:[{w:[u,"screen",...Y()]}],"min-w":[{"min-w":[u,"screen","none",...Y()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...Y()]}],h:[{h:["screen",...Y()]}],"min-h":[{"min-h":["screen","none",...Y()]}],"max-h":[{"max-h":["screen",...Y()]}],"font-size":[{text:["base",n,Qu,Si]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Se,ly]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",iy,Ee]}],"font-family":[{font:[DH,Ee,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Se,Ee]}],"line-clamp":[{"line-clamp":[Xe,"none",Se,ly]}],leading:[{leading:[s,...P()]}],"list-image":[{"list-image":["none",Se,Ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Se,Ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Xe,"from-font","auto",Se,Si]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[Xe,"auto",Se,Ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se,Ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Se,Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},vo,Se,Ee],radial:["",Se,Ee],conic:[vo,Se,Ee]},PH,OH]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...xe(),"hidden","none"]}],"divide-style":[{divide:[...xe(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Xe,Se,Ee]}],"outline-w":[{outline:["",Xe,Qu,Si]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",m,Wh,Yh]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",p,Wh,Yh]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[Xe,Si]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",v,Wh,Yh]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Xe,Se,Ee]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Xe]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[Se,Ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":R()}],"mask-image-conic-pos":[{"mask-conic":[Xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Se,Ee]}],filter:[{filter:["","none",Se,Ee]}],blur:[{blur:ge()}],brightness:[{brightness:[Xe,Se,Ee]}],contrast:[{contrast:[Xe,Se,Ee]}],"drop-shadow":[{"drop-shadow":["","none",y,Wh,Yh]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",Xe,Se,Ee]}],"hue-rotate":[{"hue-rotate":[Xe,Se,Ee]}],invert:[{invert:["",Xe,Se,Ee]}],saturate:[{saturate:[Xe,Se,Ee]}],sepia:[{sepia:["",Xe,Se,Ee]}],"backdrop-filter":[{"backdrop-filter":["","none",Se,Ee]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[Xe,Se,Ee]}],"backdrop-contrast":[{"backdrop-contrast":[Xe,Se,Ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Xe,Se,Ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Xe,Se,Ee]}],"backdrop-invert":[{"backdrop-invert":["",Xe,Se,Ee]}],"backdrop-opacity":[{"backdrop-opacity":[Xe,Se,Ee]}],"backdrop-saturate":[{"backdrop-saturate":[Xe,Se,Ee]}],"backdrop-sepia":[{"backdrop-sepia":["",Xe,Se,Ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Se,Ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Xe,"initial",Se,Ee]}],ease:[{ease:["linear","initial",N,Se,Ee]}],delay:[{delay:[Xe,Se,Ee]}],animate:[{animate:["none",C,Se,Ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,Se,Ee]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Me()}],"skew-x":[{"skew-x":Me()}],"skew-y":[{"skew-y":Me()}],transform:[{transform:[Se,Ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:He()}],"translate-x":[{"translate-x":He()}],"translate-y":[{"translate-y":He()}],"translate-z":[{"translate-z":He()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Se,Ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Se,Ee]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[Xe,Qu,Si,ly]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},UH=yH(kH);function X(...e){return UH(y2(e))}const FH=Mt("inline-flex items-center justify-center border font-medium focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 [&_svg]:-ms-px [&_svg]:shrink-0",{variants:{variant:{primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-green-500 text-white",warning:"bg-yellow-500 text-white",info:"bg-violet-500 text-white",mono:"bg-mono text-mono-foreground",destructive:"bg-destructive text-destructive-foreground"},appearance:{solid:"border-transparent",outline:"",light:"",stroke:"bg-transparent border border-border text-secondary-foreground",ghost:"border-transparent bg-transparent"},disabled:{true:"opacity-50 pointer-events-none"},size:{lg:"rounded-md px-[0.5rem] h-7 min-w-7 gap-1.5 text-xs [&_svg]:size-3.5",md:"rounded-md px-[0.45rem] h-6 min-w-6 gap-1.5 text-xs [&_svg]:size-3.5 ",sm:"rounded-sm px-[0.325rem] h-5 min-w-5 gap-1 text-[0.6875rem] leading-[0.75rem] [&_svg]:size-3",xs:"rounded-sm px-[0.25rem] h-4 min-w-4 gap-1 text-[0.625rem] leading-[0.5rem] [&_svg]:size-3"},shape:{default:"",circle:"rounded-full"}},compoundVariants:[{variant:"primary",appearance:"outline",className:"bg-primary/10 border-primary/10 text-primary"},{variant:"secondary",appearance:"outline",className:"bg-secondary dark:bg-secondary/50 border-border text-secondary-foreground"},{variant:"success",appearance:"outline",className:"border bg-green-100 text-green-700 border-green-200 dark:text-green-600 dark:bg-green-950/50 dark:border-green-950"},{variant:"warning",appearance:"outline",className:"border bg-yellow-100 text-yellow-700 border-yellow-200 dark:text-yellow-600 dark:bg-yellow-950/50 dark:border-yellow-950"},{variant:"info",appearance:"outline",className:"border bg-violet-100 text-violet-700 border-violet-200 dark:text-violet-600 dark:bg-violet-950/50 dark:border-violet-950"},{variant:"mono",appearance:"outline",className:"bg-mono/10 border-mono/10 text-mono"},{variant:"destructive",appearance:"outline",className:"bg-destructive/10 border-destructive/10 text-destructive"},{variant:"primary",appearance:"light",className:"bg-primary/10 text-primary"},{variant:"secondary",appearance:"light",className:"bg-secondary dark:bg-secondary/50 text-secondary-foreground"},{variant:"success",appearance:"light",className:"border bg-green-100 text-green-700 dark:text-green-600 dark:bg-green-950/50"},{variant:"warning",appearance:"light",className:"border bg-yellow-100 text-yellow-700 dark:text-yellow-600 dark:bg-yellow-950/50"},{variant:"info",appearance:"light",className:"border bg-violet-100 text-violet-700 dark:text-violet-600 dark:bg-violet-950/50"},{variant:"mono",appearance:"light",className:"bg-mono/10 text-mono"},{variant:"destructive",appearance:"light",className:"bg-destructive/10 text-destructive"},{variant:"primary",appearance:"ghost",className:"text-primary"},{variant:"secondary",appearance:"ghost",className:"text-secondary-foreground"},{variant:"success",appearance:"ghost",className:"text-green-500"},{variant:"warning",appearance:"ghost",className:"text-yellow-500"},{variant:"info",appearance:"ghost",className:"text-violet-500"},{variant:"mono",appearance:"ghost",className:"text-mono"},{variant:"destructive",appearance:"ghost",className:"text-destructive"},{size:"lg",appearance:"ghost",className:"px-0"},{size:"md",appearance:"ghost",className:"px-0"},{size:"sm",appearance:"ghost",className:"px-0"},{size:"xs",appearance:"ghost",className:"px-0"}],defaultVariants:{variant:"secondary",appearance:"solid",size:"md"}});function kt({className:e,variant:t,size:n,appearance:r,shape:a,asChild:s=!1,disabled:i,...u}){const d=s?m2:"span";return c.jsx(d,{"data-slot":"badge",className:X(FH({variant:t,size:n,appearance:r,shape:a,disabled:i}),e),...u})}/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const BH=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),HH=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),rA=e=>{const t=HH(e);return t.charAt(0).toUpperCase()+t.slice(1)},R2=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),VH=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var GH={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zH=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:i,...u},d)=>S.createElement("svg",{ref:d,...GH,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:R2("lucide",a),...!s&&!VH(u)&&{"aria-hidden":"true"},...u},[...i.map(([f,m])=>S.createElement(f,m)),...Array.isArray(s)?s:[s]]));/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pe=(e,t)=>{const n=S.forwardRef(({className:r,...a},s)=>S.createElement(zH,{ref:s,iconNode:t,className:R2(`lucide-${BH(rA(e))}`,`lucide-${e}`,r),...a}));return n.displayName=rA(e),n};/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $H=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],aA=pe("arrow-down",$H);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qH=[["path",{d:"M3 19V5",key:"rwsyhb"}],["path",{d:"m13 6-6 6 6 6",key:"1yhaz7"}],["path",{d:"M7 12h14",key:"uoisry"}]],YH=pe("arrow-left-to-line",qH);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const WH=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Up=pe("arrow-left",WH);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KH=[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]],XH=pe("arrow-right-to-line",KH);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QH=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],UE=pe("arrow-right",QH);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ZH=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],sA=pe("arrow-up",ZH);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const JH=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],Ed=pe("award",JH);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e8=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}]],t8=pe("badge",e8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const n8=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],r8=pe("bell",n8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a8=[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]],s8=pe("book-open-check",a8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o8=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Ps=pe("book-open",o8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i8=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],l8=pe("book",i8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c8=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],oA=pe("briefcase",c8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u8=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],cy=pe("building-2",u8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d8=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]],f8=pe("building",d8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h8=[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],m8=pe("calendar-clock",h8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p8=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],$i=pe("calendar-days",p8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g8=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],ea=pe("calendar",g8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v8=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],y8=pe("chart-column",v8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x8=[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]],b8=pe("chart-no-axes-column",x8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E8=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Mo=pe("check",E8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S8=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Fc=pe("chevron-down",S8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const T8=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],M2=pe("chevron-left",T8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N8=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ec=pe("chevron-right",N8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w8=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],C8=pe("chevron-up",w8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const A8=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],_8=pe("chevrons-up-down",A8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Sd=pe("circle-alert",R8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M8=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],O8=pe("circle-check-big",M8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Kd=pe("circle-check",D8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const I8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],P8=pe("circle-help",I8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const j8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],L8=pe("circle-pause",j8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const k8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],O2=pe("circle-user",k8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const U8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Fp=pe("circle-x",U8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const F8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Mx=pe("circle",F8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B8=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]],iA=pe("clipboard-check",B8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const H8=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],FE=pe("clipboard-list",H8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]],wm=pe("clock-3",V8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const G8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Gs=pe("clock",G8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z8=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],$8=pe("code",z8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q8=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Y8=pe("credit-card",q8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const W8=[["path",{d:"M11 20H2",key:"nlcfvz"}],["path",{d:"M11 4.562v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561z",key:"au4z13"}],["path",{d:"M11 4H8a2 2 0 0 0-2 2v14",key:"74r1mk"}],["path",{d:"M14 12h.01",key:"1jfl7z"}],["path",{d:"M22 20h-3",key:"vhrsz"}]],K8=pe("door-open",W8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X8=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],BE=pe("download",X8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Q8=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Z8=pe("ellipsis",Q8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J8=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ds=pe("external-link",J8);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eV=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],lA=pe("eye",eV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tV=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],_i=pe("file-text",tV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nV=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],rV=pe("funnel",nV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],D2=pe("globe",aV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sV=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],rs=pe("graduation-cap",sV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oV=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],Ox=pe("hash",oV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iV=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],lV=pe("heart",iV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cV=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],Km=pe("house",cV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uV=[["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["path",{d:"M6.17 15a3 3 0 0 1 5.66 0",key:"n6f512"}],["circle",{cx:"9",cy:"11",r:"2",key:"yxgjnd"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]],dV=pe("id-card",uV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Zi=pe("info",fV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hV=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],mV=pe("layout-grid",hV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pV=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],gV=pe("list",pV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vV=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Sr=pe("loader-circle",vV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yV=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],HE=pe("mail",yV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xV=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Bp=pe("map-pin",xV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bV=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],EV=pe("megaphone",bV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const SV=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],TV=pe("menu",SV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const NV=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],Dx=pe("message-circle",NV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wV=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],Ix=pe("message-square",wV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const CV=[["path",{d:"M5 12h14",key:"1ays0h"}]],AV=pe("minus",CV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _V=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],RV=pe("moon",_V);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const MV=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]];pe("newspaper",MV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const OV=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],I2=pe("phone",OV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const DV=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],IV=pe("pin-off",DV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const PV=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],P2=pe("plus",PV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jV=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],LV=pe("qr-code",jV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kV=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],Xm=pe("receipt",kV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const UV=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],j2=pe("refresh-cw",UV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const FV=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],BV=pe("scroll-text",FV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HV=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Hp=pe("search",HV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VV=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],GV=pe("send",VV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zV=[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],L2=pe("settings-2",zV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $V=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],qV=pe("shield-check",$V);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const YV=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],WV=pe("shield",YV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KV=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],XV=pe("shopping-cart",KV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QV=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],ZV=pe("sparkles",QV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const JV=[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],e9=pe("square-code",JV);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const t9=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],n9=pe("square-pen",t9);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const r9=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],a9=pe("star",r9);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s9=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],o9=pe("trash",s9);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i9=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],l9=pe("trending-up",i9);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c9=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],u9=pe("triangle-alert",c9);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d9=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],f9=pe("upload",d9);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h9=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]],m9=pe("user-check",h9);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p9=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],g9=pe("user-cog",p9);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v9=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],jo=pe("user",v9);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y9=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Ri=pe("users",y9);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x9=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],VE=pe("video",x9);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b9=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Bc=pe("x",b9);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E9=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],S9=pe("zap",E9),Td=Mt("cursor-pointer group whitespace-nowrap focus-visible:outline-hidden inline-flex items-center justify-center has-data-[arrow=true]:justify-between whitespace-nowrap text-sm font-semibold transition-all duration-300 disabled:pointer-events-none disabled:opacity-50 [&_svg]:shrink-0 rounded-xl border border-border shadow-lg hover:-translate-y-0.5 hover:shadow-xl active:translate-y-0.5 transition-all duration-300 ease-in-out",{variants:{variant:{primary:"bg-gradient-to-r from-primary to-[#4f46e5] text-primary-foreground hover:from-accent hover:to-accent/80 hover:text-accent-foreground border-transparent hover:border-transparent",mono:"bg-foreground/5 text-foreground hover:bg-foreground/10 border-border",destructive:"bg-destructive text-white hover:bg-destructive/90 border-transparent",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 border-border",outline:"bg-transparent text-foreground border-border hover:bg-foreground/5",dashed:"text-foreground border border-border border-dashed bg-background hover:bg-foreground/5 data-[state=open]:text-foreground",ghost:"text-foreground border-transparent shadow-none hover:bg-foreground/5 hover:shadow-none hover:translate-none active:translate-none",dim:"text-muted-foreground border-transparent shadow-none hover:text-foreground hover:shadow-none hover:translate-none active:translate-none",foreground:"",inverse:""},appearance:{default:"",ghost:""},underline:{solid:"",dashed:""},underlined:{solid:"",dashed:""},size:{lg:"h-10 px-4 text-sm gap-1.5 [&_svg:not([class*=size-])]:size-4",md:"h-8.5 px-3 gap-1.5 text-[0.8125rem] leading-(--text-sm--line-height) [&_svg:not([class*=size-])]:size-4",sm:"h-7 px-2.5 gap-1.25 text-xs [&_svg:not([class*=size-])]:size-3.5"},autoHeight:{true:"",false:""},shape:{default:"",circle:"rounded-full"},mode:{default:"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",icon:"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",link:"text-primary h-auto p-0 bg-transparent rounded-none hover:bg-transparent data-[state=open]:bg-transparent",input:`
            justify-start font-normal hover:bg-background [&_svg]:transition-colors [&_svg]:hover:text-foreground data-[state=open]:bg-background 
            focus-visible:border-ring focus-visible:outline-hidden focus-visible:ring-[3px] focus-visible:ring-ring/30 
            [[data-state=open]>&]:border-ring [[data-state=open]>&]:outline-hidden [[data-state=open]>&]:ring-[3px] 
            [[data-state=open]>&]:ring-ring/30 
            aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive dark:aria-invalid:ring-destructive/20
            in-data-[invalid=true]:border-destructive/60 in-data-[invalid=true]:ring-destructive/10  dark:in-data-[invalid=true]:border-destructive dark:in-data-[invalid=true]:ring-destructive/20
          `},placeholder:{true:"text-muted-foreground",false:""}},compoundVariants:[{variant:"ghost",mode:"default",className:"[&_svg:not([role=img]):not([class*=text-])]:opacity-60"},{variant:"outline",mode:"default",className:"[&_svg:not([role=img]):not([class*=text-])]:opacity-60"},{variant:"dashed",mode:"default",className:"[&_svg:not([role=img]):not([class*=text-])]:opacity-60"},{variant:"secondary",mode:"default",className:"[&_svg:not([role=img]):not([class*=text-])]:opacity-60"},{variant:"outline",mode:"input",className:"[&_svg:not([role=img]):not([class*=text-])]:opacity-60"},{variant:"outline",mode:"icon",className:"[&_svg:not([role=img]):not([class*=text-])]:opacity-60"},{size:"md",autoHeight:!0,className:"h-auto min-h-8.5"},{size:"sm",autoHeight:!0,className:"h-auto min-h-7"},{size:"lg",autoHeight:!0,className:"h-auto min-h-10"},{variant:"primary",mode:"default",appearance:"default",className:""},{variant:"mono",mode:"default",appearance:"default",className:""},{variant:"secondary",mode:"default",appearance:"default",className:""},{variant:"outline",mode:"default",appearance:"default",className:""},{variant:"dashed",mode:"default",appearance:"default",className:""},{variant:"destructive",mode:"default",appearance:"default",className:""},{variant:"primary",mode:"icon",appearance:"default",className:""},{variant:"mono",mode:"icon",appearance:"default",className:""},{variant:"secondary",mode:"icon",appearance:"default",className:""},{variant:"outline",mode:"icon",appearance:"default",className:""},{variant:"dashed",mode:"icon",appearance:"default",className:""},{variant:"destructive",mode:"icon",appearance:"default",className:""},{variant:"primary",mode:"link",underline:"solid",className:"font-medium text-primary hover:text-primary/90 [&_svg:not([role=img]):not([class*=text-])]:opacity-60 hover:underline hover:underline-offset-4 hover:decoration-solid"},{variant:"primary",mode:"link",underline:"dashed",className:"font-medium text-primary hover:text-primary/90 [&_svg:not([role=img]):not([class*=text-])]:opacity-60 hover:underline hover:underline-offset-4 hover:decoration-dashed decoration-1"},{variant:"primary",mode:"link",underlined:"solid",className:"font-medium text-primary hover:text-primary/90 [&_svg:not([role=img]):not([class*=text-])]:opacity-60 underline underline-offset-4 decoration-solid"},{variant:"primary",mode:"link",underlined:"dashed",className:"font-medium text-primary hover:text-primary/90 [&_svg]:opacity-60 underline underline-offset-4 decoration-dashed decoration-1"},{variant:"inverse",mode:"link",underline:"solid",className:"font-medium text-inherit [&_svg:not([role=img]):not([class*=text-])]:opacity-60 hover:underline hover:underline-offset-4 hover:decoration-solid"},{variant:"inverse",mode:"link",underline:"dashed",className:"font-medium text-inherit [&_svg:not([role=img]):not([class*=text-])]:opacity-60 hover:underline hover:underline-offset-4 hover:decoration-dashed decoration-1"},{variant:"inverse",mode:"link",underlined:"solid",className:"font-medium text-inherit [&_svg:not([role=img]):not([class*=text-])]:opacity-60 underline underline-offset-4 decoration-solid"},{variant:"inverse",mode:"link",underlined:"dashed",className:"font-medium text-inherit [&_svg:not([role=img]):not([class*=text-])]:opacity-60 underline underline-offset-4 decoration-dashed decoration-1"},{variant:"foreground",mode:"link",underline:"solid",className:"font-medium text-foreground [&_svg:not([role=img]):not([class*=text-])]:opacity-60 hover:underline hover:underline-offset-4 hover:decoration-solid"},{variant:"foreground",mode:"link",underline:"dashed",className:"font-medium text-foreground [&_svg:not([role=img]):not([class*=text-])]:opacity-60 hover:underline hover:underline-offset-4 hover:decoration-dashed decoration-1"},{variant:"foreground",mode:"link",underlined:"solid",className:"font-medium text-foreground [&_svg:not([role=img]):not([class*=text-])]:opacity-60 underline underline-offset-4 decoration-solid"},{variant:"foreground",mode:"link",underlined:"dashed",className:"font-medium text-foreground [&_svg:not([role=img]):not([class*=text-])]:opacity-60 underline underline-offset-4 decoration-dashed decoration-1"},{variant:"primary",appearance:"ghost",className:"bg-transparent text-primary/90 hover:bg-primary/5 data-[state=open]:bg-primary/5"},{variant:"destructive",appearance:"ghost",className:"bg-transparent text-destructive/90 hover:bg-destructive/5 data-[state=open]:bg-destructive/5"},{variant:"ghost",mode:"icon",className:"text-muted-foreground"},{size:"sm",mode:"icon",className:"w-7 h-7 p-0 [[&_svg:not([class*=size-])]:size-3.5"},{size:"md",mode:"icon",className:"w-8.5 h-8.5 p-0 [&_svg:not([class*=size-])]:size-4"},{size:"lg",mode:"icon",className:"w-10 h-10 p-0 [&_svg:not([class*=size-])]:size-4"},{mode:"input",placeholder:!0,variant:"outline",className:"font-normal text-muted-foreground"},{mode:"input",variant:"outline",size:"sm",className:"gap-1.25"},{mode:"input",variant:"outline",size:"md",className:"gap-1.5"},{mode:"input",variant:"outline",size:"lg",className:"gap-1.5"}],defaultVariants:{variant:"primary",mode:"default",size:"md",shape:"default",appearance:"default"}});function ke({className:e,selected:t,variant:n,shape:r,appearance:a,mode:s,size:i,autoHeight:u,underlined:d,underline:f,asChild:m=!1,placeholder:p=!1,...v}){const y=m?m2:"button";return c.jsx(y,{"data-slot":"button",className:X(Td({variant:n,size:i,shape:r,appearance:a,mode:s,autoHeight:u,placeholder:p,underlined:d,underline:f,className:e}),m&&v.disabled&&"pointer-events-none opacity-50"),...t&&{"data-state":"open"},...v})}function T9(){return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("img",{src:ns("/media/illustrations/20.svg"),className:"dark:hidden max-h-[160px]",alt:"image"}),c.jsx("img",{src:ns("/media/illustrations/20-dark.svg"),className:"light:hidden max-h-[160px]",alt:"image"})]}),c.jsx(kt,{variant:"destructive",appearance:"outline",className:"mb-3",children:"500 Error"}),c.jsx("h3",{className:"text-2xl font-semibold text-mono text-center mb-2",children:"Internal Server Error"}),c.jsxs("div",{className:"text-base text-center text-secondary-foreground mb-10",children:["Server error occurred. Please try again later or  ",c.jsx("a",{href:"https://github.com/",className:"text-accent font-medium hover:text-accent/80 border-b border-accent",children:"open an issue"}),"  for assistance."]}),c.jsx(ke,{asChild:!0,children:c.jsx(Pt,{to:"/",children:"Back to Home"})})]})}function N9(){return c.jsx(o2,{children:c.jsxs(lt,{element:c.jsx(eH,{}),children:[c.jsx(lt,{index:!0,element:c.jsx(KC,{})}),c.jsx(lt,{path:"404",element:c.jsx(KC,{})}),c.jsx(lt,{path:"500",element:c.jsx(T9,{})}),c.jsx(lt,{path:"*",element:c.jsx(m6,{to:"/error/404"})})]})})}var uy,cA;function w9(){if(cA)return uy;cA=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(s,i){if(s===i)return!0;if(s&&i&&typeof s=="object"&&typeof i=="object"){if(s.constructor!==i.constructor)return!1;var u,d,f;if(Array.isArray(s)){if(u=s.length,u!=i.length)return!1;for(d=u;d--!==0;)if(!a(s[d],i[d]))return!1;return!0}var m;if(t&&s instanceof Map&&i instanceof Map){if(s.size!==i.size)return!1;for(m=s.entries();!(d=m.next()).done;)if(!i.has(d.value[0]))return!1;for(m=s.entries();!(d=m.next()).done;)if(!a(d.value[1],i.get(d.value[0])))return!1;return!0}if(n&&s instanceof Set&&i instanceof Set){if(s.size!==i.size)return!1;for(m=s.entries();!(d=m.next()).done;)if(!i.has(d.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(i)){if(u=s.length,u!=i.length)return!1;for(d=u;d--!==0;)if(s[d]!==i[d])return!1;return!0}if(s.constructor===RegExp)return s.source===i.source&&s.flags===i.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof i.valueOf=="function")return s.valueOf()===i.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof i.toString=="function")return s.toString()===i.toString();if(f=Object.keys(s),u=f.length,u!==Object.keys(i).length)return!1;for(d=u;d--!==0;)if(!Object.prototype.hasOwnProperty.call(i,f[d]))return!1;if(e&&s instanceof Element)return!1;for(d=u;d--!==0;)if(!((f[d]==="_owner"||f[d]==="__v"||f[d]==="__o")&&s.$$typeof)&&!a(s[f[d]],i[f[d]]))return!1;return!0}return s!==s&&i!==i}return uy=function(i,u){try{return a(i,u)}catch(d){if((d.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw d}},uy}var C9=w9();const A9=zd(C9);var dy,uA;function _9(){if(uA)return dy;uA=1;var e=function(t,n,r,a,s,i,u,d){if(!t){var f;if(n===void 0)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[r,a,s,i,u,d],p=0;f=new Error(n.replace(/%s/g,function(){return m[p++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}};return dy=e,dy}var R9=_9();const dA=zd(R9);var fy,fA;function M9(){return fA||(fA=1,fy=function(t,n,r,a){var s=r?r.call(a,t,n):void 0;if(s!==void 0)return!!s;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var i=Object.keys(t),u=Object.keys(n);if(i.length!==u.length)return!1;for(var d=Object.prototype.hasOwnProperty.bind(n),f=0;f<i.length;f++){var m=i[f];if(!d(m))return!1;var p=t[m],v=n[m];if(s=r?r.call(a,p,v,m):void 0,s===!1||s===void 0&&p!==v)return!1}return!0}),fy}var O9=M9();const D9=zd(O9);var k2=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(k2||{}),hy={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},hA=Object.values(k2),GE={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},I9=Object.entries(GE).reduce((e,[t,n])=>(e[n]=t,e),{}),ga="data-rh",sc={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},oc=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},P9=e=>{let t=oc(e,"title");const n=oc(e,sc.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=oc(e,sc.DEFAULT_TITLE);return t||r||void 0},j9=e=>oc(e,sc.ON_CHANGE_CLIENT_STATE)||(()=>{}),my=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),L9=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const a=Object.keys(r);for(let s=0;s<a.length;s+=1){const u=a[s].toLowerCase();if(e.indexOf(u)!==-1&&r[u])return n.concat(r)}}return n},[]),k9=e=>console&&typeof console.warn=="function"&&console.warn(e),Zu=(e,t,n)=>{const r={};return n.filter(a=>Array.isArray(a[e])?!0:(typeof a[e]<"u"&&k9(`Helmet: ${e} should be of type "Array". Instead found type "${typeof a[e]}"`),!1)).map(a=>a[e]).reverse().reduce((a,s)=>{const i={};s.filter(d=>{let f;const m=Object.keys(d);for(let v=0;v<m.length;v+=1){const y=m[v],x=y.toLowerCase();t.indexOf(x)!==-1&&!(f==="rel"&&d[f].toLowerCase()==="canonical")&&!(x==="rel"&&d[x].toLowerCase()==="stylesheet")&&(f=x),t.indexOf(y)!==-1&&(y==="innerHTML"||y==="cssText"||y==="itemprop")&&(f=y)}if(!f||!d[f])return!1;const p=d[f].toLowerCase();return r[f]||(r[f]={}),i[f]||(i[f]={}),r[f][p]?!1:(i[f][p]=!0,!0)}).reverse().forEach(d=>a.push(d));const u=Object.keys(i);for(let d=0;d<u.length;d+=1){const f=u[d],m={...r[f],...i[f]};r[f]=m}return a},[]).reverse()},U9=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},F9=e=>({baseTag:L9(["href"],e),bodyAttributes:my("bodyAttributes",e),defer:oc(e,sc.DEFER),encode:oc(e,sc.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:my("htmlAttributes",e),linkTags:Zu("link",["rel","href"],e),metaTags:Zu("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Zu("noscript",["innerHTML"],e),onChangeClientState:j9(e),scriptTags:Zu("script",["src","innerHTML"],e),styleTags:Zu("style",["cssText"],e),title:P9(e),titleAttributes:my("titleAttributes",e),prioritizeSeoTags:U9(e,sc.PRIORITIZE_SEO_TAGS)}),U2=e=>Array.isArray(e)?e.join(""):e,B9=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},py=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(B9(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},mA=(e,t)=>({...e,[t]:void 0}),H9=["noscript","script","style"],Px=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),F2=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),V9=(e,t,n,r)=>{const a=F2(n),s=U2(t);return a?`<${e} ${ga}="true" ${a}>${Px(s,r)}</${e}>`:`<${e} ${ga}="true">${Px(s,r)}</${e}>`},G9=(e,t,n=!0)=>t.reduce((r,a)=>{const s=a,i=Object.keys(s).filter(f=>!(f==="innerHTML"||f==="cssText")).reduce((f,m)=>{const p=typeof s[m]>"u"?m:`${m}="${Px(s[m],n)}"`;return f?`${f} ${p}`:p},""),u=s.innerHTML||s.cssText||"",d=H9.indexOf(e)===-1;return`${r}<${e} ${ga}="true" ${i}${d?"/>":`>${u}</${e}>`}`},""),B2=(e,t={})=>Object.keys(e).reduce((n,r)=>{const a=GE[r];return n[a||r]=e[r],n},t),z9=(e,t,n)=>{const r={key:t,[ga]:!0},a=B2(n,r);return[z.createElement("title",a,t)]},Cm=(e,t)=>t.map((n,r)=>{const a={key:r,[ga]:!0};return Object.keys(n).forEach(s=>{const u=GE[s]||s;if(u==="innerHTML"||u==="cssText"){const d=n.innerHTML||n.cssText;a.dangerouslySetInnerHTML={__html:d}}else a[u]=n[s]}),z.createElement(e,a)}),Qr=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>z9(e,t.title,t.titleAttributes),toString:()=>V9(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>B2(t),toString:()=>F2(t)};default:return{toComponent:()=>Cm(e,t),toString:()=>G9(e,t,n)}}},$9=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const a=py(e,hy.meta),s=py(t,hy.link),i=py(n,hy.script);return{priorityMethods:{toComponent:()=>[...Cm("meta",a.priority),...Cm("link",s.priority),...Cm("script",i.priority)],toString:()=>`${Qr("meta",a.priority,r)} ${Qr("link",s.priority,r)} ${Qr("script",i.priority,r)}`},metaTags:a.default,linkTags:s.default,scriptTags:i.default}},q9=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:a,noscriptTags:s,styleTags:i,title:u="",titleAttributes:d,prioritizeSeoTags:f}=e;let{linkTags:m,metaTags:p,scriptTags:v}=e,y={toComponent:()=>{},toString:()=>""};return f&&({priorityMethods:y,linkTags:m,metaTags:p,scriptTags:v}=$9(e)),{priority:y,base:Qr("base",t,r),bodyAttributes:Qr("bodyAttributes",n,r),htmlAttributes:Qr("htmlAttributes",a,r),link:Qr("link",m,r),meta:Qr("meta",p,r),noscript:Qr("noscript",s,r),script:Qr("script",v,r),style:Qr("style",i,r),title:Qr("title",{title:u,titleAttributes:d},r)}},jx=q9,Kh=[],H2=!!(typeof window<"u"&&window.document&&window.document.createElement),Lx=class{constructor(e,t){Ir(this,"instances",[]);Ir(this,"canUseDOM",H2);Ir(this,"context");Ir(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Kh:this.instances,add:e=>{(this.canUseDOM?Kh:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Kh:this.instances).indexOf(e);(this.canUseDOM?Kh:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=jx({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Y9={},V2=z.createContext(Y9),ji,G2=(ji=class extends S.Component{constructor(n){super(n);Ir(this,"helmetData");this.helmetData=new Lx(this.props.context||{},ji.canUseDOM)}render(){return z.createElement(V2.Provider,{value:this.helmetData.value},this.props.children)}},Ir(ji,"canUseDOM",H2),ji),Yl=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${ga}]`),a=[].slice.call(r),s=[];let i;return t&&t.length&&t.forEach(u=>{const d=document.createElement(e);for(const f in u)if(Object.prototype.hasOwnProperty.call(u,f))if(f==="innerHTML")d.innerHTML=u.innerHTML;else if(f==="cssText")d.styleSheet?d.styleSheet.cssText=u.cssText:d.appendChild(document.createTextNode(u.cssText));else{const m=f,p=typeof u[m]>"u"?"":u[m];d.setAttribute(f,p)}d.setAttribute(ga,"true"),a.some((f,m)=>(i=m,d.isEqualNode(f)))?a.splice(i,1):s.push(d)}),a.forEach(u=>{var d;return(d=u.parentNode)==null?void 0:d.removeChild(u)}),s.forEach(u=>n.appendChild(u)),{oldTags:a,newTags:s}},kx=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(ga),a=r?r.split(","):[],s=[...a],i=Object.keys(t);for(const u of i){const d=t[u]||"";n.getAttribute(u)!==d&&n.setAttribute(u,d),a.indexOf(u)===-1&&a.push(u);const f=s.indexOf(u);f!==-1&&s.splice(f,1)}for(let u=s.length-1;u>=0;u-=1)n.removeAttribute(s[u]);a.length===s.length?n.removeAttribute(ga):n.getAttribute(ga)!==i.join(",")&&n.setAttribute(ga,i.join(","))},W9=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=U2(e)),kx("title",t)},pA=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:a,linkTags:s,metaTags:i,noscriptTags:u,onChangeClientState:d,scriptTags:f,styleTags:m,title:p,titleAttributes:v}=e;kx("body",r),kx("html",a),W9(p,v);const y={baseTag:Yl("base",n),linkTags:Yl("link",s),metaTags:Yl("meta",i),noscriptTags:Yl("noscript",u),scriptTags:Yl("script",f),styleTags:Yl("style",m)},x={},b={};Object.keys(y).forEach(T=>{const{newTags:N,oldTags:C}=y[T];N.length&&(x[T]=N),C.length&&(b[T]=y[T].oldTags)}),t&&t(),d(e,x,b)},Ju=null,K9=e=>{Ju&&cancelAnimationFrame(Ju),e.defer?Ju=requestAnimationFrame(()=>{pA(e,()=>{Ju=null})}):(pA(e),Ju=null)},X9=K9,gA=class extends S.Component{constructor(){super(...arguments);Ir(this,"rendered",!1)}shouldComponentUpdate(t){return!D9(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const a=F9(t.get().map(s=>{const i={...s.props};return delete i.context,i}));G2.canUseDOM?X9(a):jx&&(r=jx(a)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Sx,Q9=(Sx=class extends S.Component{shouldComponentUpdate(e){return!A9(mA(this.props,"helmetData"),mA(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return dA(hA.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${hA.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),dA(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return z.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:a,...s}=r.props,i=Object.keys(s).reduce((d,f)=>(d[I9[f]||f]=s[f],d),{});let{type:u}=r;switch(typeof u=="symbol"?u=u.toString():this.warnOnInvalidChildren(r,a),u){case"Symbol(react.fragment)":t=this.mapChildrenToProps(a,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,i,a);break;default:t=this.mapObjectTypeChildren(r,t,i,a);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Lx)){const a=r;r=new Lx(a.context,!0),delete n.helmetData}return r?z.createElement(gA,{...n,context:r.value}):z.createElement(V2.Consumer,null,a=>z.createElement(gA,{...n,context:a}))}},Ir(Sx,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Sx),Ux=function(e,t){return Ux=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Ux(e,t)};function mr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ux(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ve=function(){return ve=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},ve.apply(this,arguments)};function Ko(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 z2(e,t,n,r){var a=arguments.length,s=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s}function $2(e,t){return function(n,r){t(n,r,e)}}function q2(e,t,n,r,a,s){function i(N){if(N!==void 0&&typeof N!="function")throw new TypeError("Function expected");return N}for(var u=r.kind,d=u==="getter"?"get":u==="setter"?"set":"value",f=!t&&e?r.static?e:e.prototype:null,m=t||(f?Object.getOwnPropertyDescriptor(f,r.name):{}),p,v=!1,y=n.length-1;y>=0;y--){var x={};for(var b in r)x[b]=b==="access"?{}:r[b];for(var b in r.access)x.access[b]=r.access[b];x.addInitializer=function(N){if(v)throw new TypeError("Cannot add initializers after decoration has completed");s.push(i(N||null))};var T=(0,n[y])(u==="accessor"?{get:m.get,set:m.set}:m[d],x);if(u==="accessor"){if(T===void 0)continue;if(T===null||typeof T!="object")throw new TypeError("Object expected");(p=i(T.get))&&(m.get=p),(p=i(T.set))&&(m.set=p),(p=i(T.init))&&a.unshift(p)}else(p=i(T))&&(u==="field"?a.unshift(p):m[d]=p)}f&&Object.defineProperty(f,r.name,m),v=!0}function Y2(e,t,n){for(var r=arguments.length>2,a=0;a<t.length;a++)n=r?t[a].call(e,n):t[a].call(e);return r?n:void 0}function W2(e){return typeof e=="symbol"?e:"".concat(e)}function K2(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function X2(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Q2(e,t,n,r){function a(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function u(m){try{f(r.next(m))}catch(p){i(p)}}function d(m){try{f(r.throw(m))}catch(p){i(p)}}function f(m){m.done?s(m.value):a(m.value).then(u,d)}f((r=r.apply(e,t||[])).next())})}function Z2(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=u(0),i.throw=u(1),i.return=u(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(f){return function(m){return d([f,m])}}function d(f){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,f[0]&&(n=0)),n;)try{if(r=1,a&&(s=f[0]&2?a.return:f[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,f[1])).done)return s;switch(a=0,s&&(f=[f[0]&2,s.value]),f[0]){case 0:case 1:s=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,a=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){n.label=f[1];break}if(f[0]===6&&n.label<s[1]){n.label=s[1],s=f;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(f);break}s[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(m){f=[6,m],a=0}finally{r=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var Vp=Object.create?function(e,t,n,r){r===void 0&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};function J2(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Vp(t,e,n)}function Qm(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function zE(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,s=[],i;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)s.push(a.value)}catch(u){i={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function eO(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(zE(arguments[t]));return e}function tO(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),a=0,t=0;t<n;t++)for(var s=arguments[t],i=0,u=s.length;i<u;i++,a++)r[a]=s[i];return r}function Jt(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))}function Sc(e){return this instanceof Sc?(this.v=e,this):new Sc(e)}function nO(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),a,s=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",i),a[Symbol.asyncIterator]=function(){return this},a;function i(y){return function(x){return Promise.resolve(x).then(y,p)}}function u(y,x){r[y]&&(a[y]=function(b){return new Promise(function(T,N){s.push([y,b,T,N])>1||d(y,b)})},x&&(a[y]=x(a[y])))}function d(y,x){try{f(r[y](x))}catch(b){v(s[0][3],b)}}function f(y){y.value instanceof Sc?Promise.resolve(y.value.v).then(m,p):v(s[0][2],y)}function m(y){d("next",y)}function p(y){d("throw",y)}function v(y,x){y(x),s.shift(),s.length&&d(s[0][0],s[0][1])}}function rO(e){var t,n;return t={},r("next"),r("throw",function(a){throw a}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(a,s){t[a]=e[a]?function(i){return(n=!n)?{value:Sc(e[a](i)),done:!1}:s?s(i):i}:s}}function aO(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Qm=="function"?Qm(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(i){return new Promise(function(u,d){i=e[s](i),a(u,d,i.done,i.value)})}}function a(s,i,u,d){Promise.resolve(d).then(function(f){s({value:f,done:u})},i)}}function sO(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Z9=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Fx=function(e){return Fx=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},Fx(e)};function oO(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Fx(e),r=0;r<n.length;r++)n[r]!=="default"&&Vp(t,e,n[r]);return Z9(t,e),t}function iO(e){return e&&e.__esModule?e:{default:e}}function lO(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function cO(e,t,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(e,n):a?a.value=n:t.set(e,n),n}function uO(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function dO(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,a;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(a=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");a&&(r=function(){try{a.call(this)}catch(s){return Promise.reject(s)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var J9=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function fO(e){function t(s){e.error=e.hasError?new J9(s,e.error,"An error was suppressed during disposal."):s,e.hasError=!0}var n,r=0;function a(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(a);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(a,function(i){return t(i),a()})}else r|=1}catch(i){t(i)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return a()}function hO(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,a,s,i){return r?t?".jsx":".js":a&&(!s||!i)?n:a+s+"."+i.toLowerCase()+"js"}):e}const e7={__extends:mr,__assign:ve,__rest:Ko,__decorate:z2,__param:$2,__esDecorate:q2,__runInitializers:Y2,__propKey:W2,__setFunctionName:K2,__metadata:X2,__awaiter:Q2,__generator:Z2,__createBinding:Vp,__exportStar:J2,__values:Qm,__read:zE,__spread:eO,__spreadArrays:tO,__spreadArray:Jt,__await:Sc,__asyncGenerator:nO,__asyncDelegator:rO,__asyncValues:aO,__makeTemplateObject:sO,__importStar:oO,__importDefault:iO,__classPrivateFieldGet:lO,__classPrivateFieldSet:cO,__classPrivateFieldIn:uO,__addDisposableResource:dO,__disposeResources:fO,__rewriteRelativeImportExtension:hO},t7=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:dO,get __assign(){return ve},__asyncDelegator:rO,__asyncGenerator:nO,__asyncValues:aO,__await:Sc,__awaiter:Q2,__classPrivateFieldGet:lO,__classPrivateFieldIn:uO,__classPrivateFieldSet:cO,__createBinding:Vp,__decorate:z2,__disposeResources:fO,__esDecorate:q2,__exportStar:J2,__extends:mr,__generator:Z2,__importDefault:iO,__importStar:oO,__makeTemplateObject:sO,__metadata:X2,__param:$2,__propKey:W2,__read:zE,__rest:Ko,__rewriteRelativeImportExtension:hO,__runInitializers:Y2,__setFunctionName:K2,__spread:eO,__spreadArray:Jt,__spreadArrays:tO,__values:Qm,default:e7},Symbol.toStringTag,{value:"Module"}));function ir(e,t){var n=t&&t.cache?t.cache:l7,r=t&&t.serializer?t.serializer:o7,a=t&&t.strategy?t.strategy:a7;return a(e,{cache:n,serializer:r})}function n7(e){return e==null||typeof e=="number"||typeof e=="boolean"}function r7(e,t,n,r){var a=n7(r)?r:n(r),s=t.get(a);return typeof s>"u"&&(s=e.call(this,r),t.set(a,s)),s}function mO(e,t,n){var r=Array.prototype.slice.call(arguments,3),a=n(r),s=t.get(a);return typeof s>"u"&&(s=e.apply(this,r),t.set(a,s)),s}function pO(e,t,n,r,a){return n.bind(t,e,r,a)}function a7(e,t){var n=e.length===1?r7:mO;return pO(e,this,n,t.cache.create(),t.serializer)}function s7(e,t){return pO(e,this,mO,t.cache.create(),t.serializer)}var o7=function(){return JSON.stringify(arguments)},i7=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),l7={create:function(){return new i7}},lr={variadic:s7},rt;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(rt||(rt={}));var Lt;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Lt||(Lt={}));var Tc;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Tc||(Tc={}));function vA(e){return e.type===Lt.literal}function c7(e){return e.type===Lt.argument}function gO(e){return e.type===Lt.number}function vO(e){return e.type===Lt.date}function yO(e){return e.type===Lt.time}function xO(e){return e.type===Lt.select}function bO(e){return e.type===Lt.plural}function u7(e){return e.type===Lt.pound}function EO(e){return e.type===Lt.tag}function SO(e){return!!(e&&typeof e=="object"&&e.type===Tc.number)}function Bx(e){return!!(e&&typeof e=="object"&&e.type===Tc.dateTime)}var TO=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,d7=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function f7(e){var t={};return e.replace(d7,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var h7=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function m7(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(h7).filter(function(v){return v.length>0}),n=[],r=0,a=t;r<a.length;r++){var s=a[r],i=s.split("/");if(i.length===0)throw new Error("Invalid number skeleton");for(var u=i[0],d=i.slice(1),f=0,m=d;f<m.length;f++){var p=m[f];if(p.length===0)throw new Error("Invalid number skeleton")}n.push({stem:u,options:d})}return n}function p7(e){return e.replace(/^(.*?)-/,"")}var yA=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,NO=/^(@+)?(\+|#+)?[rs]?$/g,g7=/(\*)(0+)|(#+)(0+)|(0+)/g,wO=/^(0+)$/;function xA(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(NO,function(n,r,a){return typeof a!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):a==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof a=="string"?a.length:0)),""}),t}function CO(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function v7(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!wO.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function bA(e){var t={},n=CO(e);return n||t}function y7(e){for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=p7(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ve(ve(ve({},t),{notation:"scientific"}),a.options.reduce(function(d,f){return ve(ve({},d),bA(f))},{}));continue;case"engineering":t=ve(ve(ve({},t),{notation:"engineering"}),a.options.reduce(function(d,f){return ve(ve({},d),bA(f))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(g7,function(d,f,m,p,v,y){if(f)t.minimumIntegerDigits=m.length;else{if(p&&v)throw new Error("We currently do not support maximum integer digits");if(y)throw new Error("We currently do not support exact integer digits")}return""});continue}if(wO.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(yA.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(yA,function(d,f,m,p,v,y){return m==="*"?t.minimumFractionDigits=f.length:p&&p[0]==="#"?t.maximumFractionDigits=p.length:v&&y?(t.minimumFractionDigits=v.length,t.maximumFractionDigits=v.length+y.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});var s=a.options[0];s==="w"?t=ve(ve({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=ve(ve({},t),xA(s)));continue}if(NO.test(a.stem)){t=ve(ve({},t),xA(a.stem));continue}var i=CO(a.stem);i&&(t=ve(ve({},t),i));var u=v7(a.stem);u&&(t=ve(ve({},t),u))}return t}var Xh={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function x7(e,t){for(var n="",r=0;r<e.length;r++){var a=e.charAt(r);if(a==="j"){for(var s=0;r+1<e.length&&e.charAt(r+1)===a;)s++,r++;var i=1+(s&1),u=s<2?1:3+(s>>1),d="a",f=b7(t);for((f=="H"||f=="k")&&(u=0);u-- >0;)n+=d;for(;i-- >0;)n=f+n}else a==="J"?n+="H":n+=a}return n}function b7(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var a=Xh[r||""]||Xh[n||""]||Xh["".concat(n,"-001")]||Xh["001"];return a[0]}var gy,E7=new RegExp("^".concat(TO.source,"*")),S7=new RegExp("".concat(TO.source,"*$"));function st(e,t){return{start:e,end:t}}var T7=!!String.prototype.startsWith&&"_a".startsWith("a",1),N7=!!String.fromCodePoint,w7=!!Object.fromEntries,C7=!!String.prototype.codePointAt,A7=!!String.prototype.trimStart,_7=!!String.prototype.trimEnd,R7=!!Number.isSafeInteger,M7=R7?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Hx=!0;try{var O7=_O("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Hx=((gy=O7.exec("a"))===null||gy===void 0?void 0:gy[0])==="a"}catch{Hx=!1}var EA=T7?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Vx=N7?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",a=t.length,s=0,i;a>s;){if(i=t[s++],i>1114111)throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return r},SA=w7?Object.fromEntries:function(t){for(var n={},r=0,a=t;r<a.length;r++){var s=a[r],i=s[0],u=s[1];n[i]=u}return n},AO=C7?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var a=t.charCodeAt(n),s;return a<55296||a>56319||n+1===r||(s=t.charCodeAt(n+1))<56320||s>57343?a:(a-55296<<10)+(s-56320)+65536}},D7=A7?function(t){return t.trimStart()}:function(t){return t.replace(E7,"")},I7=_7?function(t){return t.trimEnd()}:function(t){return t.replace(S7,"")};function _O(e,t){return new RegExp(e,t)}var Gx;if(Hx){var TA=_O("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Gx=function(t,n){var r;TA.lastIndex=n;var a=TA.exec(t);return(r=a[1])!==null&&r!==void 0?r:""}}else Gx=function(t,n){for(var r=[];;){var a=AO(t,n);if(a===void 0||RO(a)||k7(a))break;r.push(a),n+=a>=65536?2:1}return Vx.apply(void 0,r)};var P7=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var a=[];!this.isEOF();){var s=this.char();if(s===123){var i=this.parseArgument(t,r);if(i.err)return i;a.push(i.val)}else{if(s===125&&t>0)break;if(s===35&&(n==="plural"||n==="selectordinal")){var u=this.clonePosition();this.bump(),a.push({type:Lt.pound,location:st(u,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(rt.UNMATCHED_CLOSING_TAG,st(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&zx(this.peek()||0)){var i=this.parseTag(t,n);if(i.err)return i;a.push(i.val)}else{var i=this.parseLiteral(t,n);if(i.err)return i;a.push(i.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Lt.literal,value:"<".concat(a,"/>"),location:st(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,n,!0);if(s.err)return s;var i=s.val,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!zx(this.char()))return this.error(rt.INVALID_TAG,st(u,this.clonePosition()));var d=this.clonePosition(),f=this.parseTagName();return a!==f?this.error(rt.UNMATCHED_CLOSING_TAG,st(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Lt.tag,value:a,children:i,location:st(r,this.clonePosition())},err:null}:this.error(rt.INVALID_TAG,st(u,this.clonePosition())))}else return this.error(rt.UNCLOSED_TAG,st(r,this.clonePosition()))}else return this.error(rt.INVALID_TAG,st(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&L7(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),a="";;){var s=this.tryParseQuote(n);if(s){a+=s;continue}var i=this.tryParseUnquoted(t,n);if(i){a+=i;continue}var u=this.tryParseLeftAngleBracket();if(u){a+=u;continue}break}var d=st(r,this.clonePosition());return{val:{type:Lt.literal,value:a,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!j7(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Vx.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Vx(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(rt.EXPECT_ARGUMENT_CLOSING_BRACE,st(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(rt.EMPTY_ARGUMENT,st(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(rt.MALFORMED_ARGUMENT,st(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(rt.EXPECT_ARGUMENT_CLOSING_BRACE,st(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Lt.argument,value:a,location:st(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(rt.EXPECT_ARGUMENT_CLOSING_BRACE,st(r,this.clonePosition())):this.parseArgumentOptions(t,n,a,r);default:return this.error(rt.MALFORMED_ARGUMENT,st(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Gx(this.message,n),a=n+r.length;this.bumpTo(a);var s=this.clonePosition(),i=st(t,s);return{value:r,location:i}},e.prototype.parseArgumentOptions=function(t,n,r,a){var s,i=this.clonePosition(),u=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(u){case"":return this.error(rt.EXPECT_ARGUMENT_TYPE,st(i,d));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var m=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var v=I7(p.val);if(v.length===0)return this.error(rt.EXPECT_ARGUMENT_STYLE,st(this.clonePosition(),this.clonePosition()));var y=st(m,this.clonePosition());f={style:v,styleLocation:y}}var x=this.tryParseArgumentClose(a);if(x.err)return x;var b=st(a,this.clonePosition());if(f&&EA(f==null?void 0:f.style,"::",0)){var T=D7(f.style.slice(2));if(u==="number"){var p=this.parseNumberSkeletonFromString(T,f.styleLocation);return p.err?p:{val:{type:Lt.number,value:r,location:b,style:p.val},err:null}}else{if(T.length===0)return this.error(rt.EXPECT_DATE_TIME_SKELETON,b);var N=T;this.locale&&(N=x7(T,this.locale));var v={type:Tc.dateTime,pattern:N,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?f7(N):{}},C=u==="date"?Lt.date:Lt.time;return{val:{type:C,value:r,location:b,style:v},err:null}}}return{val:{type:u==="number"?Lt.number:u==="date"?Lt.date:Lt.time,value:r,location:b,style:(s=f==null?void 0:f.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(rt.EXPECT_SELECT_ARGUMENT_OPTIONS,st(A,ve({},A)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),_=0;if(u!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(rt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,st(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(rt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,rt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),R=this.parseIdentifierIfPossible(),_=p.val}var O=this.tryParsePluralOrSelectOptions(t,u,n,R);if(O.err)return O;var x=this.tryParseArgumentClose(a);if(x.err)return x;var D=st(a,this.clonePosition());return u==="select"?{val:{type:Lt.select,value:r,options:SA(O.val),location:D},err:null}:{val:{type:Lt.plural,value:r,options:SA(O.val),offset:_,pluralType:u==="plural"?"cardinal":"ordinal",location:D},err:null}}default:return this.error(rt.INVALID_ARGUMENT_TYPE,st(i,d))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(rt.EXPECT_ARGUMENT_CLOSING_BRACE,st(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(rt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,st(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=m7(t)}catch{return this.error(rt.INVALID_NUMBER_SKELETON,n)}return{val:{type:Tc.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?y7(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,a){for(var s,i=!1,u=[],d=new Set,f=a.value,m=a.location;;){if(f.length===0){var p=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var v=this.tryParseDecimalInteger(rt.EXPECT_PLURAL_ARGUMENT_SELECTOR,rt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(v.err)return v;m=st(p,this.clonePosition()),f=this.message.slice(p.offset,this.offset())}else break}if(d.has(f))return this.error(n==="select"?rt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:rt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,m);f==="other"&&(i=!0),this.bumpSpace();var y=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?rt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:rt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,st(this.clonePosition(),this.clonePosition()));var x=this.parseMessage(t+1,n,r);if(x.err)return x;var b=this.tryParseArgumentClose(y);if(b.err)return b;u.push([f,{value:x.val,location:st(y,this.clonePosition())}]),d.add(f),this.bumpSpace(),s=this.parseIdentifierIfPossible(),f=s.value,m=s.location}return u.length===0?this.error(n==="select"?rt.EXPECT_SELECT_ARGUMENT_SELECTOR:rt.EXPECT_PLURAL_ARGUMENT_SELECTOR,st(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(rt.MISSING_OTHER_CLAUSE,st(this.clonePosition(),this.clonePosition())):{val:u,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var s=!1,i=0;!this.isEOF();){var u=this.char();if(u>=48&&u<=57)s=!0,i=i*10+(u-48),this.bump();else break}var d=st(a,this.clonePosition());return s?(i*=r,M7(i)?{val:i,err:null}:this.error(n,d)):this.error(t,d)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=AO(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(EA(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&RO(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function zx(e){return e>=97&&e<=122||e>=65&&e<=90}function j7(e){return zx(e)||e===47}function L7(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function RO(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function k7(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function $x(e){e.forEach(function(t){if(delete t.location,xO(t)||bO(t))for(var n in t.options)delete t.options[n].location,$x(t.options[n].value);else gO(t)&&SO(t.style)||(vO(t)||yO(t))&&Bx(t.style)?delete t.style.location:EO(t)&&$x(t.children)})}function U7(e,t){t===void 0&&(t={}),t=ve({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new P7(e,t).parse();if(n.err){var r=SyntaxError(rt[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||$x(n.val),n.val}var as;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(as||(as={}));var Xo=function(e){mr(t,e);function t(n,r,a){var s=e.call(this,n)||this;return s.code=r,s.originalMessage=a,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),NA=function(e){mr(t,e);function t(n,r,a,s){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(a).join('", "'),'"'),as.INVALID_VALUE,s)||this}return t}(Xo),F7=function(e){mr(t,e);function t(n,r,a){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),as.INVALID_VALUE,a)||this}return t}(Xo),B7=function(e){mr(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),as.MISSING_VALUE,r)||this}return t}(Xo),sr;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(sr||(sr={}));function H7(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==sr.literal||n.type!==sr.literal?t.push(n):r.value+=n.value,t},[])}function MO(e){return typeof e=="function"}function Am(e,t,n,r,a,s,i){if(e.length===1&&vA(e[0]))return[{type:sr.literal,value:e[0].value}];for(var u=[],d=0,f=e;d<f.length;d++){var m=f[d];if(vA(m)){u.push({type:sr.literal,value:m.value});continue}if(u7(m)){typeof s=="number"&&u.push({type:sr.literal,value:n.getNumberFormat(t).format(s)});continue}var p=m.value;if(!(a&&p in a))throw new B7(p,i);var v=a[p];if(c7(m)){(!v||typeof v=="string"||typeof v=="number")&&(v=typeof v=="string"||typeof v=="number"?String(v):""),u.push({type:typeof v=="string"?sr.literal:sr.object,value:v});continue}if(vO(m)){var y=typeof m.style=="string"?r.date[m.style]:Bx(m.style)?m.style.parsedOptions:void 0;u.push({type:sr.literal,value:n.getDateTimeFormat(t,y).format(v)});continue}if(yO(m)){var y=typeof m.style=="string"?r.time[m.style]:Bx(m.style)?m.style.parsedOptions:r.time.medium;u.push({type:sr.literal,value:n.getDateTimeFormat(t,y).format(v)});continue}if(gO(m)){var y=typeof m.style=="string"?r.number[m.style]:SO(m.style)?m.style.parsedOptions:void 0;y&&y.scale&&(v=v*(y.scale||1)),u.push({type:sr.literal,value:n.getNumberFormat(t,y).format(v)});continue}if(EO(m)){var x=m.children,b=m.value,T=a[b];if(!MO(T))throw new F7(b,"function",i);var N=Am(x,t,n,r,a,s),C=T(N.map(function(_){return _.value}));Array.isArray(C)||(C=[C]),u.push.apply(u,C.map(function(_){return{type:typeof _=="string"?sr.literal:sr.object,value:_}}))}if(xO(m)){var A=m.options[v]||m.options.other;if(!A)throw new NA(m.value,v,Object.keys(m.options),i);u.push.apply(u,Am(A.value,t,n,r,a));continue}if(bO(m)){var A=m.options["=".concat(v)];if(!A){if(!Intl.PluralRules)throw new Xo(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`,as.MISSING_INTL_API,i);var R=n.getPluralRules(t,{type:m.pluralType}).select(v-(m.offset||0));A=m.options[R]||m.options.other}if(!A)throw new NA(m.value,v,Object.keys(m.options),i);u.push.apply(u,Am(A.value,t,n,r,a,v-(m.offset||0)));continue}}return H7(u)}function V7(e,t){return t?ve(ve(ve({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=ve(ve({},e[r]),t[r]||{}),n},{})):e}function G7(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=V7(e[r],t[r]),n},ve({},e)):e}function vy(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function z7(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ir(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Jt([void 0],n,!1)))},{cache:vy(e.number),strategy:lr.variadic}),getDateTimeFormat:ir(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Jt([void 0],n,!1)))},{cache:vy(e.dateTime),strategy:lr.variadic}),getPluralRules:ir(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Jt([void 0],n,!1)))},{cache:vy(e.pluralRules),strategy:lr.variadic})}}var OO=function(){function e(t,n,r,a){n===void 0&&(n=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(d){var f=s.formatToParts(d);if(f.length===1)return f[0].value;var m=f.reduce(function(p,v){return!p.length||v.type!==sr.literal||typeof p[p.length-1]!="string"?p.push(v.value):p[p.length-1]+=v.value,p},[]);return m.length<=1?m[0]||"":m},this.formatToParts=function(d){return Am(s.ast,s.locales,s.formatters,s.formats,d,void 0,s.message)},this.resolvedOptions=function(){var d;return{locale:((d=s.resolvedLocale)===null||d===void 0?void 0:d.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var i=a||{};i.formatters;var u=Ko(i,["formatters"]);this.ast=e.__parse(t,ve(ve({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=G7(e.formats,r),this.formatters=a&&a.formatters||z7(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=U7,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),qi;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(qi||(qi={}));var Xd=function(e){mr(t,e);function t(n,r,a){var s=this,i=a?a instanceof Error?a:new Error(String(a)):void 0;return s=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
`).concat(i?`
`.concat(i.message,`
`).concat(i.stack):""))||this,s.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(s,t),s}return t}(Error),$7=function(e){mr(t,e);function t(n,r){return e.call(this,qi.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Xd),q7=function(e){mr(t,e);function t(n,r){return e.call(this,qi.INVALID_CONFIG,n,r)||this}return t}(Xd),wA=function(e){mr(t,e);function t(n,r){return e.call(this,qi.MISSING_DATA,n,r)||this}return t}(Xd),ra=function(e){mr(t,e);function t(n,r,a){var s=e.call(this,qi.FORMAT_ERROR,"".concat(n,`
Locale: `).concat(r,`
`),a)||this;return s.locale=r,s}return t}(Xd),yy=function(e){mr(t,e);function t(n,r,a,s){var i=e.call(this,"".concat(n,`
MessageID: `).concat(a==null?void 0:a.id,`
Default Message: `).concat(a==null?void 0:a.defaultMessage,`
Description: `).concat(a==null?void 0:a.description,`
`),r,s)||this;return i.descriptor=a,i.locale=r,i}return t}(ra),Y7=function(e){mr(t,e);function t(n,r){var a=e.call(this,qi.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(s){var i;return(i=s.value)!==null&&i!==void 0?i:JSON.stringify(s)}).join(),")"):"id"," as fallback."))||this;return a.descriptor=n,a}return t}(Xd);function W7(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}function Hc(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,a){return a in e?r[a]=e[a]:a in n&&(r[a]=n[a]),r},{})}var K7=function(e){},X7=function(e){},DO={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:K7,onWarn:X7};function IO(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ti(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Q7(e){e===void 0&&(e=IO());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,a=ir(function(){for(var u,d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return new((u=Intl.DateTimeFormat).bind.apply(u,Jt([void 0],d,!1)))},{cache:Ti(e.dateTime),strategy:lr.variadic}),s=ir(function(){for(var u,d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return new((u=Intl.NumberFormat).bind.apply(u,Jt([void 0],d,!1)))},{cache:Ti(e.number),strategy:lr.variadic}),i=ir(function(){for(var u,d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return new((u=Intl.PluralRules).bind.apply(u,Jt([void 0],d,!1)))},{cache:Ti(e.pluralRules),strategy:lr.variadic});return{getDateTimeFormat:a,getNumberFormat:s,getMessageFormat:ir(function(u,d,f,m){return new OO(u,d,f,ve({formatters:{getNumberFormat:s,getDateTimeFormat:a,getPluralRules:i}},m||{}))},{cache:Ti(e.message),strategy:lr.variadic}),getRelativeTimeFormat:ir(function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];return new(t.bind.apply(t,Jt([void 0],u,!1)))},{cache:Ti(e.relativeTime),strategy:lr.variadic}),getPluralRules:i,getListFormat:ir(function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];return new(n.bind.apply(n,Jt([void 0],u,!1)))},{cache:Ti(e.list),strategy:lr.variadic}),getDisplayNames:ir(function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];return new(r.bind.apply(r,Jt([void 0],u,!1)))},{cache:Ti(e.displayNames),strategy:lr.variadic})}}function $E(e,t,n,r){var a=e&&e[t],s;if(a&&(s=a[n]),s)return s;r(new $7("No ".concat(t," format named: ").concat(n)))}function Qh(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=ve({timeZone:t},e[r]),n},{})}function CA(e,t){var n=Object.keys(ve(ve({},e),t));return n.reduce(function(r,a){return r[a]=ve(ve({},e[a]||{}),t[a]||{}),r},{})}function AA(e,t){if(!t)return e;var n=OO.formats;return ve(ve(ve({},n),e),{date:CA(Qh(n.date,t),Qh(e.date||{},t)),time:CA(Qh(n.time,t),Qh(e.time||{},t))})}var qx=function(e,t,n,r,a){var s=e.locale,i=e.formats,u=e.messages,d=e.defaultLocale,f=e.defaultFormats,m=e.fallbackOnEmptyString,p=e.onError,v=e.timeZone,y=e.defaultRichTextElements;n===void 0&&(n={id:""});var x=n.id,b=n.defaultMessage;W7(!!x,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var T=String(x),N=u&&Object.prototype.hasOwnProperty.call(u,T)&&u[T];if(Array.isArray(N)&&N.length===1&&N[0].type===Lt.literal)return N[0].value;if(!r&&N&&typeof N=="string"&&!y)return N.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=ve(ve({},y),r||{}),i=AA(i,v),f=AA(f,v),!N){if(m===!1&&N==="")return N;if((!b||s&&s.toLowerCase()!==d.toLowerCase())&&p(new Y7(n,s)),b)try{var C=t.getMessageFormat(b,d,f,a);return C.format(r)}catch(A){return p(new yy('Error formatting default message for: "'.concat(T,'", rendering default message verbatim'),s,n,A)),typeof b=="string"?b:T}return T}try{var C=t.getMessageFormat(N,s,i,ve({formatters:t},a||{}));return C.format(r)}catch(A){p(new yy('Error formatting message: "'.concat(T,'", using ').concat(b?"default message":"id"," as fallback."),s,n,A))}if(b)try{var C=t.getMessageFormat(b,d,f,a);return C.format(r)}catch(A){p(new yy('Error formatting the default message for: "'.concat(T,'", rendering message verbatim'),s,n,A))}return typeof N=="string"?N:typeof b=="string"?b:T},Z7=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Qd(e,t,n,r){var a=e.locale,s=e.formats,i=e.onError,u=e.timeZone;r===void 0&&(r={});var d=r.format,f=ve(ve({},u&&{timeZone:u}),d&&$E(s,t,d,i)),m=Hc(r,Z7,f);return t==="time"&&!m.hour&&!m.minute&&!m.second&&!m.timeStyle&&!m.dateStyle&&(m=ve(ve({},m),{hour:"numeric",minute:"numeric"})),n(a,m)}function J7(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],s=n[1],i=s===void 0?{}:s,u=typeof a=="string"?new Date(a||0):a;try{return Qd(e,"date",t,i).format(u)}catch(d){e.onError(new ra("Error formatting date.",e.locale,d))}return String(u)}function eG(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],s=n[1],i=s===void 0?{}:s,u=typeof a=="string"?new Date(a||0):a;try{return Qd(e,"time",t,i).format(u)}catch(d){e.onError(new ra("Error formatting time.",e.locale,d))}return String(u)}function tG(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],s=n[1],i=n[2],u=i===void 0?{}:i,d=typeof a=="string"?new Date(a||0):a,f=typeof s=="string"?new Date(s||0):s;try{return Qd(e,"dateTimeRange",t,u).formatRange(d,f)}catch(m){e.onError(new ra("Error formatting date time range.",e.locale,m))}return String(d)}function nG(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],s=n[1],i=s===void 0?{}:s,u=typeof a=="string"?new Date(a||0):a;try{return Qd(e,"date",t,i).formatToParts(u)}catch(d){e.onError(new ra("Error formatting date.",e.locale,d))}return[]}function rG(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],s=n[1],i=s===void 0?{}:s,u=typeof a=="string"?new Date(a||0):a;try{return Qd(e,"time",t,i).formatToParts(u)}catch(d){e.onError(new ra("Error formatting time.",e.locale,d))}return[]}var aG=["style","type","fallback","languageDisplay"];function sG(e,t,n,r){var a=e.locale,s=e.onError,i=Intl.DisplayNames;i||s(new Xo(`Intl.DisplayNames is not available in this environment.
Try polyfilling it using "@formatjs/intl-displaynames"
`,as.MISSING_INTL_API));var u=Hc(r,aG);try{return t(a,u).of(n)}catch(d){s(new ra("Error formatting display name.",a,d))}}var oG=["type","style"],_A=Date.now();function iG(e){return"".concat(_A,"_").concat(e,"_").concat(_A)}function lG(e,t,n,r){r===void 0&&(r={});var a=PO(e,t,n,r).reduce(function(s,i){var u=i.value;return typeof u!="string"?s.push(u):typeof s[s.length-1]=="string"?s[s.length-1]+=u:s.push(u),s},[]);return a.length===1?a[0]:a.length===0?"":a}function PO(e,t,n,r){var a=e.locale,s=e.onError;r===void 0&&(r={});var i=Intl.ListFormat;i||s(new Xo(`Intl.ListFormat is not available in this environment.
Try polyfilling it using "@formatjs/intl-listformat"
`,as.MISSING_INTL_API));var u=Hc(r,oG);try{var d={},f=n.map(function(m,p){if(typeof m=="object"){var v=iG(p);return d[v]=m,v}return String(m)});return t(a,u).formatToParts(f).map(function(m){return m.type==="literal"?m:ve(ve({},m),{value:d[m.value]||m.value})})}catch(m){s(new ra("Error formatting list.",a,m))}return n}var cG=["type"];function uG(e,t,n,r){var a=e.locale,s=e.onError;r===void 0&&(r={}),Intl.PluralRules||s(new Xo(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`,as.MISSING_INTL_API));var i=Hc(r,cG);try{return t(a,i).select(n)}catch(u){s(new ra("Error formatting plural.",a,u))}return"other"}var dG=["numeric","style"];function fG(e,t,n){var r=e.locale,a=e.formats,s=e.onError;n===void 0&&(n={});var i=n.format,u=!!i&&$E(a,"relative",i,s)||{},d=Hc(n,dG,u);return t(r,d)}function hG(e,t,n,r,a){a===void 0&&(a={}),r||(r="second");var s=Intl.RelativeTimeFormat;s||e.onError(new Xo(`Intl.RelativeTimeFormat is not available in this environment.
Try polyfilling it using "@formatjs/intl-relativetimeformat"
`,as.MISSING_INTL_API));try{return fG(e,t,a).format(n,r)}catch(i){e.onError(new ra("Error formatting relative time.",e.locale,i))}return String(n)}var mG=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function jO(e,t,n){var r=e.locale,a=e.formats,s=e.onError;n===void 0&&(n={});var i=n.format,u=i&&$E(a,"number",i,s)||{},d=Hc(n,mG,u);return t(r,d)}function pG(e,t,n,r){r===void 0&&(r={});try{return jO(e,t,r).format(n)}catch(a){e.onError(new ra("Error formatting number.",e.locale,a))}return String(n)}function gG(e,t,n,r){r===void 0&&(r={});try{return jO(e,t,r).formatToParts(n)}catch(a){e.onError(new ra("Error formatting number.",e.locale,a))}return[]}function vG(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function yG(e){e.onWarn&&e.defaultRichTextElements&&vG(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. 
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function xG(e,t){var n=Q7(t),r=ve(ve({},DO),e),a=r.locale,s=r.defaultLocale,i=r.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&i?i(new wA('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(s,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&i&&i(new wA('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(s,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(i&&i(new q7('"locale" was not configured, using "'.concat(s,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),yG(r),ve(ve({},r),{formatters:n,formatNumber:pG.bind(null,r,n.getNumberFormat),formatNumberToParts:gG.bind(null,r,n.getNumberFormat),formatRelativeTime:hG.bind(null,r,n.getRelativeTimeFormat),formatDate:J7.bind(null,r,n.getDateTimeFormat),formatDateToParts:nG.bind(null,r,n.getDateTimeFormat),formatTime:eG.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:tG.bind(null,r,n.getDateTimeFormat),formatTimeToParts:rG.bind(null,r,n.getDateTimeFormat),formatPlural:uG.bind(null,r,n.getPluralRules),formatMessage:qx.bind(null,r,n),$t:qx.bind(null,r,n),formatList:lG.bind(null,r,n.getListFormat),formatListToParts:PO.bind(null,r,n.getListFormat),formatDisplayName:sG.bind(null,r,n.getDisplayNames)})}function bG(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}function LO(e){bG(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var kO=ve(ve({},DO),{textComponent:S.Fragment}),EG={key:42},SG=function(e){return S.isValidElement(e)?S.createElement(S.Fragment,EG,e):e},TG=function(e){var t;return(t=S.Children.map(e,SG))!==null&&t!==void 0?t:[]};function NG(e){return function(t){return e(S.Children.toArray(t))}}function wG(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(var s=0;s<a;s++){var i=n[s];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}var xy={exports:{}},ft={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var RA;function CG(){if(RA)return ft;RA=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function A(_){if(typeof _=="object"&&_!==null){var O=_.$$typeof;switch(O){case t:switch(_=_.type,_){case d:case f:case r:case s:case a:case p:return _;default:switch(_=_&&_.$$typeof,_){case u:case m:case x:case y:case i:return _;default:return O}}case n:return O}}}function R(_){return A(_)===f}return ft.AsyncMode=d,ft.ConcurrentMode=f,ft.ContextConsumer=u,ft.ContextProvider=i,ft.Element=t,ft.ForwardRef=m,ft.Fragment=r,ft.Lazy=x,ft.Memo=y,ft.Portal=n,ft.Profiler=s,ft.StrictMode=a,ft.Suspense=p,ft.isAsyncMode=function(_){return R(_)||A(_)===d},ft.isConcurrentMode=R,ft.isContextConsumer=function(_){return A(_)===u},ft.isContextProvider=function(_){return A(_)===i},ft.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},ft.isForwardRef=function(_){return A(_)===m},ft.isFragment=function(_){return A(_)===r},ft.isLazy=function(_){return A(_)===x},ft.isMemo=function(_){return A(_)===y},ft.isPortal=function(_){return A(_)===n},ft.isProfiler=function(_){return A(_)===s},ft.isStrictMode=function(_){return A(_)===a},ft.isSuspense=function(_){return A(_)===p},ft.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===f||_===s||_===a||_===p||_===v||typeof _=="object"&&_!==null&&(_.$$typeof===x||_.$$typeof===y||_.$$typeof===i||_.$$typeof===u||_.$$typeof===m||_.$$typeof===T||_.$$typeof===N||_.$$typeof===C||_.$$typeof===b)},ft.typeOf=A,ft}var MA;function AG(){return MA||(MA=1,xy.exports=CG()),xy.exports}var by,OA;function _G(){if(OA)return by;OA=1;var e=AG(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=a;function i(x){return e.isMemo(x)?a:s[x.$$typeof]||t}var u=Object.defineProperty,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,v=Object.prototype;function y(x,b,T){if(typeof b!="string"){if(v){var N=p(b);N&&N!==v&&y(x,N,T)}var C=d(b);f&&(C=C.concat(f(b)));for(var A=i(x),R=i(b),_=0;_<C.length;++_){var O=C[_];if(!n[O]&&!(T&&T[O])&&!(R&&R[O])&&!(A&&A[O])){var D=m(b,O);try{u(x,O,D)}catch{}}}}return x}return by=y,by}_G();var qE=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=S.createContext(null)):S.createContext(null);qE.Consumer;var RG=qE.Provider,MG=RG,OG=qE;function Ge(){var e=S.useContext(OG);return LO(e),e}var Yx;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Yx||(Yx={}));var Wx;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Wx||(Wx={}));function UO(e){var t=function(n){var r=Ge(),a=n.value,s=n.children,i=Ko(n,["value","children"]),u=typeof a=="string"?new Date(a||0):a,d=e==="formatDate"?r.formatDateToParts(u,i):r.formatTimeToParts(u,i);return s(d)};return t.displayName=Wx[e],t}function Zd(e){var t=function(n){var r=Ge(),a=n.value,s=n.children,i=Ko(n,["value","children"]),u=r[e](a,i);if(typeof s=="function")return s(u);var d=r.textComponent||S.Fragment;return S.createElement(d,null,u)};return t.displayName=Yx[e],t}function FO(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=MO(r)?NG(r):r,t},{})}var DA=function(e,t,n,r){for(var a=[],s=4;s<arguments.length;s++)a[s-4]=arguments[s];var i=FO(r),u=qx.apply(void 0,Jt([e,t,n,i],a,!1));return Array.isArray(u)?TG(u):u},IA=function(e,t){var n=e.defaultRichTextElements,r=Ko(e,["defaultRichTextElements"]),a=FO(n),s=xG(ve(ve(ve({},kO),r),{defaultRichTextElements:a}),t),i={locale:s.locale,timeZone:s.timeZone,fallbackOnEmptyString:s.fallbackOnEmptyString,formats:s.formats,defaultLocale:s.defaultLocale,defaultFormats:s.defaultFormats,messages:s.messages,onError:s.onError,defaultRichTextElements:a};return ve(ve({},s),{formatMessage:DA.bind(null,i,s.formatters),$t:DA.bind(null,i,s.formatters)})};function Ey(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var DG=function(e){mr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=IO(),n.state={cache:n.cache,intl:IA(Ey(n.props),n.cache),prevConfig:Ey(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var a=r.prevConfig,s=r.cache,i=Ey(n);return wG(a,i)?null:{intl:IA(i,s),prevConfig:i}},t.prototype.render=function(){return LO(this.state.intl),S.createElement(MG,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=kO,t}(S.PureComponent);Zd("formatDate");Zd("formatTime");Zd("formatNumber");Zd("formatList");Zd("formatDisplayName");UO("formatDate");UO("formatTime");const YE=[{title:"MENU.ACADEMIC_PORTAL",icon:mV,children:[{title:"MENU.HOME",path:"/"},{title:"MENU.HOME",path:"/Student.aspx"},{title:"MENU.NEWS",path:"/CmsFAP/News.aspx"}]},{heading:"MENU.MAIN"},{title:"MENU.REGISTRATION_APPLICATION",icon:_i,children:[{title:"MENU.REGISTER_COURSE",children:[{title:"MENU.REGISTER_COURSE_ABROAD",path:"/FrontOffice/RegisterCourse.aspx?code=R14"},{title:"MENU.REGISTER_EXTRA_COURSES",path:"/FrontOffice/RegisterCourse.aspx?code=R3"},{title:"MENU.REGISTER_IMPROVE_MARK",path:"/FrontOffice/RegisterCourse.aspx?code=R4"},{title:"MENU.REGISTER_REPEAT_COURSE",path:"/FrontOffice/RegisterCourse.aspx?code=R5"},{title:"MENU.REGISTER_FREE_ELECTIVE",path:"/FrontOffice/RegisterElective.aspx"},{title:"MENU.REGISTER_FAST_TRACK",path:"/FrontOffice/RegisterCourseFast.aspx"},{title:"MENU.REGISTER_TUTORING",path:"/FrontOffice/RegisterMore.aspx"},{title:"MENU.CANCEL_REGISTRATION",path:"/FrontOffice/RegisteredCourses.aspx"},{title:"MENU.WISHLIST_COURSE",path:"/FrontOffice/WishList.aspx"},{title:"MENU.REGISTER_WISHLIST",path:"/FrontOffice/RegisterWishlish.aspx"},{title:"MENU.REQUEST_CLASS_SWAP",path:"/App/CourseChange.aspx"},{title:"MENU.MOVE_OUT_CLASS",path:"/FrontOffice/Courses.aspx"}]},{title:"MENU.SUSPEND_AND_CONFIRM",children:[{title:"MENU.SUSPEND_ONE_SEMESTER_REPEAT",path:"/FrontOffice/AddApplication.aspx?code=R1"},{title:"MENU.SUSPEND_ONE_SEMESTER",path:"/FrontOffice/AddApplication.aspx?code=R2"},{title:"MENU.STUDENT_CONFIRMATION",path:"/App/AddApp.aspx"},{title:"MENU.SEND_APPLICATION",path:"/App/SendAcad.aspx"},{title:"MENU.VIEW_APPLICATION",path:"/App/AcadAppView.aspx"}]},{title:"MENU.OTHERS",children:[{title:"MENU.INSURANCE_REGISTER",path:"/BHYT/Register.aspx"},{title:"MENU.STARTUP_SUPPORT",path:"/SBA/Add.aspx"},{title:"MENU.VIEW_STARTUP_SUPPORT",path:"/SBA/StudentSBA.aspx"},{title:"MENU.ATTENDANCE_BY_CODE",path:"/Schedule/AttendanceByRoll.aspx"},{title:"MENU.CHOOSE_PAID_ITEMS",path:"/FrontOffice/ShoppingCart.aspx"},{title:"MENU.PAYMENT",path:"/FrontOffice/CheckOut.aspx"},{title:"MENU.ORIENTATION_GUIDE",path:"https://fap.fpt.edu.vn/temp/Regulations/Slide_OR_student.rar"},{title:"MENU.UPGRADE_SEB",path:"https://drive.google.com/drive/u/2/folders/1RmjeKAvef6BXg_qlAl6JnZx2ZkY3qj_3"}]}]},{title:"MENU.LOOKUP",icon:Hp,children:[{title:"MENU.SCHEDULE_AND_EXAM",children:[{title:"MENU.UNIVERSITY_TIMETABLE",path:"/Course/Courses.aspx"},{title:"MENU.WEEKLY_TIMETABLE",path:"/Report/ScheduleOfWeek.aspx"},{title:"MENU.VIEW_EXAM_SCHEDULE",path:"/Exam/ScheduleExams.aspx"},{title:"MENU.STUDENT_BOOK_ROOM",path:"/Schedule/ActivityStudent.aspx"}]},{title:"MENU.TUITION_AND_SYLLABUS",children:[{title:"MENU.TUITION_FEE_PER_COURSE",path:"/FrontOffice/SubjectFees.aspx"},{title:"MENU.VIEW_SYLLABUSES",path:"http://flm.fpt.edu.vn"},{title:"MENU.EDUNEXT_GUIDE",path:"https://fap.fpt.edu.vn/temp/Regulations/Huong_dan_KTXH_tren_EduNext_Sp23_Sinh_Vien.pdf"}]}]},{title:"MENU.REPORTS",icon:_i,children:[{title:"MENU.STUDY_REPORT",children:[{title:"MENU.ATTENDANCE_REPORT",path:"/Report/ViewAttendstudent.aspx"},{title:"MENU.MARK_REPORT",path:"/Grade/StudentGrade.aspx"},{title:"MENU.ACADEMIC_TRANSCRIPT",path:"/Grade/StudentTranscript.aspx"}]},{title:"MENU.FEEDBACK",children:[{title:"MENU.FEEDBACK_TEACHING",path:"/Feedback/StudentFeedBack.aspx"}]}]},{title:"MENU.INFORMATION",icon:Zi,children:[{title:"MENU.PERSONAL_INFORMATION",children:[{title:"MENU.STUDENT_PROFILE",path:"/User/Profile.aspx"},{title:"MENU.UPDATE_PROFILE",path:"/User/verProfile.aspx"},{title:"MENU.VIEW_SEMESTER",path:"/Course/Terms.aspx"},{title:"MENU.VIEW_ROOM",path:"/Campus/Rooms.aspx"}]},{title:"MENU.REGULATIONS",children:[{title:"MENU.GENERAL_REGULATIONS",path:"/User/Regulations.aspx"},{title:"MENU.DORMITORY_REGULATIONS_HANOI",path:"https://fap.fpt.edu.vn/temp/Regulations/QD 272_new.pdf"},{title:"MENU.DORMITORY_REGULATIONS_CANTHO",path:"https://fap.fpt.edu.vn/temp/Regulations/KTXCT.pdf"},{title:"MENU.DORMITORY_ON_CAMPUS",path:"https://ocd.fpt.edu.vn/"}]}]},{title:"MENU.COURSES_ON_COURSERA",icon:rs,children:[{title:"MENU.INFORMATION_AND_GUIDE",children:[{title:"MENU.ANNOUNCEMENT",path:"https://fap.fpt.edu.vn/temp/Regulations/FPTU-Coursera.pdf"},{title:"MENU.CERTIFICATE_GUIDE",path:"https://fap.fpt.edu.vn/temp/Regulations/Coursera_certificates_submission_guidelines.pdf"},{title:"MENU.WILEY_GUIDE",path:"https://fap.fpt.edu.vn/temp/Regulations/How-to-access-Wiley-eBook-on-Vitalsource-platform_13_Jan_2025.pdf"}]},{title:"MENU.STUDY_SUPPORT",children:[{title:"MENU.ASK_MENTOR",path:"/SRS/AddQA.aspx"},{title:"MENU.VIEW_ANSWER",path:"/SRS/ViewQAS.aspx"},{title:"MENU.SUBMIT_CERTIFICATES",path:"https://insideuni.fpt.edu.vn/13"},{title:"MENU.DOWNLOAD_EOSCLIENT",path:"https://fap.fpt.edu.vn/temp/template/EOS_Client_Sinhvien.rar"}]}]}],Xr=[{title:"MENU.HOME",path:"/Student.aspx"},{title:"MENU.NEWS",path:"/CmsFAP/News.aspx"},{title:"MENU.REGISTRATION_APPLICATION",children:[{title:"MENU.REGISTER_COURSE",children:[{children:[{title:"MENU.REGISTER_COURSE_ABROAD",icon:D2,path:"/FrontOffice/RegisterCourse.aspx?code=R14"},{title:"MENU.REGISTER_EXTRA_COURSES",icon:Gs,path:"/FrontOffice/RegisterCourse.aspx?code=R3"},{title:"MENU.REGISTER_IMPROVE_MARK",icon:l9,path:"/FrontOffice/RegisterCourse.aspx?code=R4"},{title:"MENU.REGISTER_REPEAT_COURSE",icon:j2,path:"/FrontOffice/RegisterCourse.aspx?code=R5"},{title:"MENU.REGISTER_FREE_ELECTIVE",icon:Ps,path:"/FrontOffice/RegisterElective.aspx"},{title:"MENU.REGISTER_FAST_TRACK",icon:S9,path:"/FrontOffice/RegisterCourseFast.aspx"},{title:"MENU.REGISTER_TUTORING",icon:rs,path:"/FrontOffice/RegisterMore.aspx"}]},{children:[{title:"MENU.CANCEL_REGISTRATION",icon:Fp,path:"/FrontOffice/RegisteredCourses.aspx"},{title:"MENU.WISHLIST_COURSE",icon:gV,path:"/FrontOffice/WishList.aspx"},{title:"MENU.REGISTER_WISHLIST",icon:iA,path:"/FrontOffice/RegisterWishlish.aspx"},{title:"MENU.REQUEST_CLASS_SWAP",icon:Ri,path:"/App/CourseChange.aspx"},{title:"MENU.MOVE_OUT_CLASS",icon:UE,path:"/FrontOffice/Courses.aspx"}]}]},{title:"MENU.SUSPEND_AND_CONFIRM",children:[{children:[{title:"MENU.SUSPEND_ONE_SEMESTER_REPEAT",icon:L8,path:"/FrontOffice/AddApplication.aspx?code=R1"},{title:"MENU.SUSPEND_ONE_SEMESTER",icon:ea,path:"/FrontOffice/AddApplication.aspx?code=R2"},{title:"MENU.STUDENT_CONFIRMATION",icon:m9,path:"/App/AddApp.aspx"},{title:"MENU.SEND_APPLICATION",icon:GV,path:"/App/SendAcad.aspx"},{title:"MENU.VIEW_APPLICATION",icon:lA,path:"/App/AcadAppView.aspx"}]}]},{title:"MENU.OTHERS",children:[{children:[{title:"MENU.INSURANCE_REGISTER",icon:lV,path:"/BHYT/Register.aspx"},{title:"MENU.STARTUP_SUPPORT",icon:oA,path:"/SBA/Add.aspx"},{title:"MENU.VIEW_STARTUP_SUPPORT",icon:_i,path:"/SBA/StudentSBA.aspx"},{title:"MENU.ATTENDANCE_BY_CODE",icon:LV,path:"/Schedule/AttendanceByRoll.aspx"},{title:"MENU.CHOOSE_PAID_ITEMS",icon:XV,path:"/FrontOffice/ShoppingCart.aspx"},{title:"MENU.PAYMENT",icon:Y8,path:"/FrontOffice/CheckOut.aspx"}]}]}]},{title:"MENU.LOOKUP",children:[{title:"MENU.SCHEDULE_AND_EXAM",children:[{children:[{title:"MENU.UNIVERSITY_TIMETABLE",icon:ea,path:"/Course/Courses.aspx"},{title:"MENU.WEEKLY_TIMETABLE",icon:$i,path:"/Report/ScheduleOfWeek.aspx"},{title:"MENU.VIEW_EXAM_SCHEDULE",icon:FE,path:"/Exam/ScheduleExams.aspx"},{title:"MENU.STUDENT_BOOK_ROOM",icon:cy,path:"/Schedule/ActivityStudent.aspx"}]}]},{title:"MENU.TUITION_AND_SYLLABUS",children:[{children:[{title:"MENU.TUITION_FEE_PER_COURSE",icon:Xm,path:"/FrontOffice/SubjectFees.aspx"},{title:"MENU.VIEW_SYLLABUSES",icon:Ps,path:"http://flm.fpt.edu.vn"},{title:"MENU.EDUNEXT_GUIDE",icon:rs,path:"https://fap.fpt.edu.vn/temp/Regulations/Huong_dan_KTXH_tren_EduNext_Sp23_Sinh_Vien.pdf"}]}]},{title:"MENU.RESULTS_AND_SUPPORT",children:[{children:[{title:"MENU.OJT",icon:oA,path:"/App/ViewOjtCas.aspx"},{title:"MENU.GRADUATION_THESIS",icon:Ed,path:"/App/ViewXetTN.aspx"},{title:"MENU.HELP",icon:P8,path:"/Report/Help.aspx"},{title:"MENU.UPGRADE_SEB",icon:WV,path:"https://drive.google.com/drive/u/2/folders/1RmjeKAvef6BXg_qlAl6JnZx2ZkY3qj_3"},{title:"MENU.ORIENTATION_GUIDE",icon:_i,path:"https://fap.fpt.edu.vn/temp/Regulations/Slide_OR_student.rar"}]}]}]},{title:"MENU.REPORTS",children:[{title:"MENU.STUDY_REPORT",children:[{children:[{title:"MENU.ATTENDANCE_REPORT",icon:iA,path:"/Report/ViewAttendstudent.aspx"},{title:"MENU.MARK_REPORT",icon:Ed,path:"/Grade/StudentGrade.aspx"},{title:"MENU.ACADEMIC_TRANSCRIPT",icon:BV,path:"/Grade/StudentTranscript.aspx"},{title:"MENU.CURRICULUM",icon:Ps,path:"/FrontOffice/StudentCurriculum.aspx"},{title:"MENU.TRANSACTION_HISTORY",icon:Xm,path:"/Finance/TransReport.aspx"},{title:"MENU.CERTIFICATES",icon:t8,path:"/Report/Awa.aspx"},{title:"MENU.REPORT_MOVEMENT_SCORE",icon:a9,path:"/Report/PrintReportFinalS.aspx"}]}]},{title:"MENU.FEEDBACK",children:[{children:[{title:"MENU.FEEDBACK_TEACHING",icon:Ix,path:"/Feedback/StudentFeedBack.aspx"}]}]}]},{title:"MENU.INFORMATION",children:[{title:"MENU.PERSONAL_INFORMATION",children:[{children:[{title:"MENU.STUDENT_PROFILE",icon:O2,path:"/User/Profile.aspx"},{title:"MENU.UPDATE_PROFILE",icon:g9,path:"/User/verProfile.aspx"},{title:"MENU.VIEW_SEMESTER",icon:ea,path:"/Course/Terms.aspx"},{title:"MENU.VIEW_ROOM",icon:cy,path:"/Campus/Rooms.aspx"}]}]},{title:"MENU.REGULATIONS",children:[{children:[{title:"MENU.GENERAL_REGULATIONS",icon:_i,path:"/User/Regulations.aspx"},{title:"MENU.DORMITORY_REGULATIONS_HANOI",icon:Km,path:"https://fap.fpt.edu.vn/temp/Regulations/QD 272_new.pdf"},{title:"MENU.DORMITORY_REGULATIONS_CANTHO",icon:Km,path:"https://fap.fpt.edu.vn/temp/Regulations/KTXCT.pdf"},{title:"MENU.DORMITORY_ON_CAMPUS",icon:cy,path:"https://ocd.fpt.edu.vn/"}]}]}]},{title:"MENU.COURSES_ON_COURSERA",children:[{title:"MENU.INFORMATION_AND_GUIDE",children:[{children:[{title:"MENU.ANNOUNCEMENT",icon:r8,path:"https://fap.fpt.edu.vn/temp/Regulations/FPTU-Coursera.pdf"},{title:"MENU.CERTIFICATE_GUIDE",icon:_i,path:"https://fap.fpt.edu.vn/temp/Regulations/Coursera_certificates_submission_guidelines.pdf"},{title:"MENU.WILEY_GUIDE",icon:Ps,path:"https://fap.fpt.edu.vn/temp/Regulations/How-to-access-Wiley-eBook-on-Vitalsource-platform_13_Jan_2025.pdf"}]}]},{title:"MENU.STUDY_SUPPORT",children:[{children:[{title:"MENU.ASK_MENTOR",icon:Ix,path:"/SRS/AddQA.aspx"},{title:"MENU.VIEW_ANSWER",icon:lA,path:"/SRS/ViewQAS.aspx"},{title:"MENU.SUBMIT_CERTIFICATES",icon:f9,path:"https://insideuni.fpt.edu.vn/13"},{title:"MENU.DOWNLOAD_EOSCLIENT",icon:BE,path:"https://fap.fpt.edu.vn/temp/template/EOS_Client_Sinhvien.rar"}]}]}]}],IG=[{title:"MENU.HOME",path:"/Student.aspx"},{title:"MENU.REGISTRATION_APPLICATION",children:[{title:"MENU.REGISTER_COURSE",children:[{title:"MENU.REGISTER_COURSE_ABROAD",path:"/FrontOffice/RegisterCourse.aspx?code=R14"},{title:"MENU.REGISTER_EXTRA_COURSES",path:"/FrontOffice/RegisterCourse.aspx?code=R3"},{title:"MENU.REGISTER_IMPROVE_MARK",path:"/FrontOffice/RegisterCourse.aspx?code=R4"},{title:"MENU.REGISTER_REPEAT_COURSE",path:"/FrontOffice/RegisterCourse.aspx?code=R5"},{title:"MENU.REGISTER_FREE_ELECTIVE",path:"/FrontOffice/RegisterElective.aspx"}]},{title:"MENU.SUSPEND_AND_CONFIRM",children:[{title:"MENU.SUSPEND_ONE_SEMESTER_REPEAT",path:"/FrontOffice/AddApplication.aspx?code=R1"},{title:"MENU.SUSPEND_ONE_SEMESTER",path:"/FrontOffice/AddApplication.aspx?code=R2"},{title:"MENU.STUDENT_CONFIRMATION",path:"/App/AddApp.aspx"}]}]},{title:"MENU.LOOKUP",children:[{title:"MENU.SCHEDULE_AND_EXAM",children:[{title:"MENU.UNIVERSITY_TIMETABLE",path:"/Course/Courses.aspx"},{title:"MENU.WEEKLY_TIMETABLE",path:"/Report/ScheduleOfWeek.aspx"},{title:"MENU.VIEW_EXAM_SCHEDULE",path:"/Exam/ScheduleExams.aspx"}]}]},{title:"MENU.REPORTS",children:[{title:"MENU.STUDY_REPORT",children:[{title:"MENU.ATTENDANCE_REPORT",path:"/Report/ViewAttendstudent.aspx"},{title:"MENU.MARK_REPORT",path:"/Grade/StudentGrade.aspx"},{title:"MENU.ACADEMIC_TRANSCRIPT",path:"/Grade/StudentTranscript.aspx"}]}]}];function PG(e){S.useEffect(()=>{const t=e.split(/\s+/).filter(Boolean);return t.forEach(n=>{document.body.classList.add(n)}),()=>{t.forEach(n=>{document.body.classList.remove(n)})}},[e])}const Jd=e=>{const t=u=>u&&u==="/"?u===e:!!u&&e.startsWith(u),n=u=>!u||!Array.isArray(u)?!1:u.some(d=>d.path&&t(d.path)||d.children&&n(d.children)),r=u=>(u.path?t(u.path):!1)||(u.children?n(u.children):!1),a=u=>{for(const d of u){if(d.path&&t(d.path))return d.children&&d.children.length>0&&a(d.children)||d;if(d.children&&d.children.length>0){const f=a(d.children);if(f)return f}}};return{isActive:t,hasActiveChild:n,isItemActive:r,getCurrentItem:a,getBreadcrumb:u=>{const d=(m,p=[])=>{for(const v of m){const y=[...p,v];if(v.path&&t(v.path))return y;if(v.children&&v.children.length>0){const x=d(v.children,y);if(x.length>y.length)return x}}return p},f=d(u);return f.length>0?f:[]},getChildren:(u,d)=>{const f=p=>{for(const v of p)if(v.path&&(v.path===e||v.path!=="/"&&v.path!==""&&e.startsWith(v.path))||v.children&&f(v.children))return!0;return!1},m=(p,v,y=0)=>{for(const x of p)if(x.children){if(v===y&&f(x.children))return x.children;const b=m(x.children,v,y+1);if(b)return b}else if(v===y&&x.path&&(x.path===e||x.path!=="/"&&x.path!==""&&e.startsWith(x.path)))return p;return null};return m(u,d)}}},jG=1*60*1e3,BO=S.createContext({getData:()=>{},setData:()=>{},fetchData:async()=>{},loading:!1,error:null,shouldShowFallback:!1}),LG=({children:e})=>{const[t,n]=S.useState({}),[r,a]=S.useState(!1),[s,i]=S.useState(!0),[u,d]=S.useState(null),f=Rn(),m=window.location.pathname,p=N=>{const C=t[N];return C?Date.now()-C.timestamp<jG:!1},v=()=>{const N=t[m];return N==null?void 0:N.element},y=N=>{n(C=>({...C,[m]:{element:N,timestamp:Date.now()}}))},x=async N=>{d(null);try{const C=await fetch(N??window.location.href,{redirect:"manual"});if(C.status===302||!C.ok){window.location.href="/Default.aspx";return}const A=await C.text(),_=new DOMParser().parseFromString(A,"text/html");if(!_)throw new Error("Failed to parse HTML document");const O=_.querySelector(".container");if(!O)throw new Error("Container element not found");n(D=>({...D,[m]:{element:O,timestamp:Date.now()}}))}catch(C){console.error("Error fetching data:",C),d(C instanceof Error?C:new Error(String(C)))}},b=S.useMemo(()=>!!(!p(m)||s&&!p(m)),[s,p,m]),T={setData:y,getData:v,loading:s,fetchData:x,error:u,shouldShowFallback:b};return S.useLayoutEffect(()=>{window._data&&n(N=>({...N,[m]:{element:window._data.element,timestamp:Date.now()}})),a(!0),i(!1)},[]),S.useLayoutEffect(()=>{r&&(i(!0),x().finally(()=>{i(!1)}))},[f.key]),c.jsx(BO.Provider,{value:T,children:e})};function fn(){return S.useContext(BO)}function WE(e){const{getData:t}=fn(),n={};return Object.keys(e).forEach(r=>{var i;const a=e[r],s=(i=t())==null?void 0:i.querySelector(a);n[r]=s instanceof HTMLElement?s.innerText.trim():""}),n}function Mn(e){const{getData:t}=fn(),n={};return Object.keys(e).forEach(r=>{n[r]=e[r](t())??void 0}),n}const PA={layout:"",container:"fixed",layouts:{demo1:{sidebarCollapse:!1,sidebarTheme:"light"},demo2:{headerSticky:!0,headerStickyOffset:200},demo5:{headerSticky:!0,headerStickyOffset:200},demo7:{headerSticky:!0,headerStickyOffset:200},demo9:{headerSticky:!0,headerStickyOffset:200}}},HO=S.createContext(void 0),Zm="app_settings_",KE=()=>typeof window<"u";function kG(e,t){return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}function Sy(e,t,n){const r=t.split("."),a=r.pop(),s=r.reduce((i,u)=>i[u]??(i[u]={}),e);return s[a]=n,{...e}}function UG(e,t){if(KE())try{localStorage.setItem(`${Zm}${e}`,JSON.stringify(t))}catch(n){console.error("LocalStorage write error:",n)}}function FG(e){if(KE())try{const t=localStorage.getItem(`${Zm}${e}`);return t?JSON.parse(t):void 0}catch(t){console.error("LocalStorage read error:",t);return}}const BG=({children:e})=>{const[t,n]=S.useState(structuredClone(PA));S.useEffect(()=>{if(!KE())return;const u=structuredClone(PA);Object.keys(localStorage).filter(d=>d.startsWith(Zm)).forEach(d=>{const f=d.replace(Zm,""),m=FG(f);m!==void 0&&Sy(u,f,m)}),n(u)},[]);const r=S.useCallback(u=>kG(t,u),[t]),a=S.useCallback((u,d)=>{n(f=>Sy({...f},u,d))},[]),s=S.useCallback((u,d)=>{n(f=>{const m=Sy({...f},u,d);return UG(u,d),m})},[]),i=S.useMemo(()=>({getOption:r,setOption:a,storeOption:s,settings:t}),[r,a,s,t]);return c.jsx(HO.Provider,{value:i,children:e})},VO=()=>{const e=S.useContext(HO);if(!e)throw new Error("useSettings must be used within a SettingsProvider");return e},HG=({color:e="currentColor",size:t=24,className:n,...r})=>z.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},z.createElement("path",{d:"M4.00001 20V14C4.00001 9.58172 7.58173 6 12 6C16.4183 6 20 9.58172 20 14V20H21V22H3.00001V20H4.00001ZM6.00001 14H8.00001C8.00001 11.7909 9.79087 10 12 10V8C8.6863 8 6.00001 10.6863 6.00001 14ZM11 2H13V5H11V2ZM19.7782 4.80761L21.1924 6.22183L19.0711 8.34315L17.6569 6.92893L19.7782 4.80761ZM2.80762 6.22183L4.22183 4.80761L6.34315 6.92893L4.92894 8.34315L2.80762 6.22183Z"})),VG=({color:e="currentColor",size:t=24,className:n,...r})=>z.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},z.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM17.4571 9.45711L11 15.9142L6.79289 11.7071L8.20711 10.2929L11 13.0858L16.0429 8.04289L17.4571 9.45711Z"})),GG=({color:e="currentColor",size:t=24,className:n,...r})=>z.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},z.createElement("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 15V17H13V15H11ZM11 7V13H13V7H11Z"})),zG=({color:e="currentColor",size:t=24,className:n,...r})=>z.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},z.createElement("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z"})),$G=({color:e="currentColor",size:t=24,className:n,...r})=>z.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},z.createElement("path",{d:"M18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z"})),qG=({color:e="currentColor",size:t=24,className:n,...r})=>z.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},z.createElement("path",{d:"M8 7C5.23858 7 3 9.23858 3 12C3 14.7614 5.23858 17 8 17H16C18.7614 17 21 14.7614 21 12C21 9.23858 18.7614 7 16 7H8ZM8 5H16C19.866 5 23 8.13401 23 12C23 15.866 19.866 19 16 19H8C4.13401 19 1 15.866 1 12C1 8.13401 4.13401 5 8 5ZM8 15C6.34315 15 5 13.6569 5 12C5 10.3431 6.34315 9 8 9C9.65685 9 11 10.3431 11 12C11 13.6569 9.65685 15 8 15Z"}));class GO extends S.Component{constructor(n){super(n);Ir(this,"handleReload",()=>{window.location.reload()});Ir(this,"toggleExtensionHelp",()=>{this.setState(n=>({showExtensionHelp:!n.showExtensionHelp}))});Ir(this,"toggleExtension",()=>{if(typeof chrome>"u"||!chrome.storage){this.openExtensionsPage();return}const n=!this.state.isExtensionEnabled;this.setState({isExtensionEnabled:n});try{chrome.storage.local.set({enabled:n},()=>{if(chrome.runtime.lastError){console.error("Error updating storage:",chrome.runtime.lastError);return}window.location.reload()})}catch(r){console.error("Error toggling extension:",r),this.openExtensionsPage()}});Ir(this,"openExtensionsPage",()=>{const{browserType:n}=this.state;let r="";switch(n){case"chrome":r="chrome://extensions/";break;case"firefox":r="about:addons";break;case"edge":r="edge://extensions/";break;default:alert("To disable the extension, please open your browser's extension settings page.");return}try{window.open(r,"_blank")}catch{alert(`Please open ${r} in a new tab to manage your extensions.`)}});this.state={hasError:!1,showExtensionHelp:!1,browserType:this.detectBrowser(),isExtensionEnabled:!0}}componentDidMount(){if(typeof chrome<"u"&&chrome.storage)try{chrome.storage.local.get("enabled",n=>{const r=n.enabled===void 0?!0:n.enabled;this.setState({isExtensionEnabled:r})})}catch(n){console.error("Error accessing extension storage:",n)}}detectBrowser(){const n=navigator.userAgent.toLowerCase();return n.indexOf("edg")!==-1?"edge":n.indexOf("chrome")!==-1?"chrome":n.indexOf("firefox")!==-1?"firefox":"other"}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,r){console.error("Error caught by ErrorBoundary:",n,r)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:c.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[70vh] p-6",children:[c.jsx("div",{className:"text-destructive mb-4",children:c.jsx(HG,{className:"h-16 w-16 mx-auto"})}),c.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Something went wrong"}),c.jsx("p",{className:"text-muted-foreground mb-6 text-center max-w-md",children:"We encountered an unexpected error. You can try reloading the page to resolve the issue."}),c.jsxs("div",{className:"flex gap-3 mb-3",children:[c.jsxs(ke,{onClick:this.handleReload,className:"flex items-center gap-2",children:[c.jsx($G,{}),"Reload Page"]}),c.jsxs(ke,{onClick:this.toggleExtension,variant:typeof chrome<"u"&&chrome.storage?"secondary":"outline",className:"flex items-center gap-2",children:[c.jsx(qG,{}),typeof chrome<"u"&&chrome.storage?this.state.isExtensionEnabled?"Disable Extension":"Enable Extension":"Manage Extensions"]})]}),c.jsx("small",{className:"text-muted-foreground mb-6 text-center max-w-md",children:"If the issue persists, you can try disabling the extension temporarily."})]}):this.props.children}}const YG=()=>Mn({isRequireFeedback:e=>{const t=e==null?void 0:e.querySelector("#ctl00_mainContent_divFed");return t&&t.innerHTML.trim()!==""},tuitionContent:e=>{var n;const t=e==null?void 0:e.querySelector("#ctl00_mainContent_HocPhi");return t&&((n=t.textContent)==null?void 0:n.trim())},accountBalance:e=>{var n;const t=e==null?void 0:e.querySelector("#ctl00_mainContent_lblAccount");return t&&((n=t.innerHTML)==null?void 0:n.trim())},EOSClientDownloadLink:e=>{const t=e==null?void 0:e.querySelector("#ctl00_mainContent_lblEos a");return t&&t.getAttribute("href")}}),Zh={chromeWebStoreLink:"https://chromewebstore.google.com/",cmsLink:"http://cms.fpt.edu.vn",libraryLink:"http://library.fpt.edu.vn",books24x7Link:"http://library.books24x7.com"},WG=Mt("w-full mx-auto px-4 lg:px-6",{variants:{width:{fixed:"max-w-[1320px]",fluid:""}},defaultVariants:{width:"fixed"}});function ht({children:e,width:t,className:n=""}){const{settings:r}=VO(),a=t??r.container??"fixed";return c.jsx("div",{"data-slot":"container",className:X(WG({width:a}),n),children:e})}function KG(){const e=new Date().getFullYear();return c.jsx("footer",{className:"footer border-t border-white/5 bg-background/50 backdrop-blur-md font-mono text-xs uppercase py-3 mt-10 relative z-20",children:c.jsx(ht,{children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 py-4 items-start",children:[c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx("a",{href:Zh.chromeWebStoreLink,target:"_blank",className:"text-card-foreground hover:text-accent border-b-2 border-transparent hover:border-accent transition-all font-black text-sm tracking-widest",children:"NeoFAP."}),c.jsxs("span",{className:"text-muted-foreground text-[10px] tracking-widest normal-case font-mono",children:["// Anti-gravity Stack v3.0 — ",e]})]}),c.jsxs("nav",{className:"flex flex-col gap-2",children:[c.jsx("span",{className:"text-muted-foreground text-[10px] tracking-widest mb-1",children:"PORTAL LINKS"}),c.jsx("a",{href:Zh.cmsLink,target:"_blank",className:"hover:text-accent border-b-2 border-transparent hover:border-accent transition-all text-muted-foreground hover:text-card-foreground",children:"CMS"}),c.jsx("a",{href:Zh.libraryLink,target:"_blank",className:"hover:text-accent border-b-2 border-transparent hover:border-accent transition-all text-muted-foreground hover:text-card-foreground",children:"Library"}),c.jsx("a",{href:Zh.books24x7Link,target:"_blank",className:"hover:text-accent border-b-2 border-transparent hover:border-accent transition-all text-muted-foreground hover:text-card-foreground",children:"Books24x7"})]}),c.jsxs("div",{className:"flex flex-col gap-1.5 md:items-end",children:[c.jsx("span",{className:"text-muted-foreground text-[10px] tracking-widest mb-1",children:"SYSTEM STATUS"}),c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"size-1.5 rounded-full bg-accent inline-block"}),c.jsx("span",{className:"text-accent text-[10px] tracking-widest",children:"ONLINE"})]}),c.jsx("span",{className:"text-muted-foreground text-[10px] normal-case",children:"FPT Academic Portal"})]})]})})})}function XG({targetRef:e}={}){const[t,n]=S.useState(0);return S.useEffect(()=>{const r=(e==null?void 0:e.current)||document,a=r===document?window:r,s=()=>{const i=r===document?window.scrollY:r.scrollTop;n(i)};return a.addEventListener("scroll",s),s(),()=>{a.removeEventListener("scroll",s)}},[e]),t}const Ty=992;function QG(){const[e,t]=S.useState(void 0);return S.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Ty-1}px)`),r=()=>{t(window.innerWidth<Ty)};return n.addEventListener("change",r),t(window.innerWidth<Ty),()=>n.removeEventListener("change",r)},[]),!!e}function me(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function ZG(e,t){const n=S.createContext(t),r=s=>{const{children:i,...u}=s,d=S.useMemo(()=>u,Object.values(u));return c.jsx(n.Provider,{value:d,children:i})};r.displayName=e+"Provider";function a(s){const i=S.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,a]}function Gn(e,t=[]){let n=[];function r(s,i){const u=S.createContext(i),d=n.length;n=[...n,i];const f=p=>{var N;const{scope:v,children:y,...x}=p,b=((N=v==null?void 0:v[e])==null?void 0:N[d])||u,T=S.useMemo(()=>x,Object.values(x));return c.jsx(b.Provider,{value:T,children:y})};f.displayName=s+"Provider";function m(p,v){var b;const y=((b=v==null?void 0:v[e])==null?void 0:b[d])||u,x=S.useContext(y);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[f,m]}const a=()=>{const s=n.map(i=>S.createContext(i));return function(u){const d=(u==null?void 0:u[e])||s;return S.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return a.scopeName=e,[r,JG(a,...t)]}function JG(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(s){const i=r.reduce((u,{useScope:d,scopeName:f})=>{const p=d(s)[`__scope${f}`];return{...u,...p}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var zt=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},ez=WM[" useId ".trim().toString()]||(()=>{}),tz=0;function _n(e){const[t,n]=S.useState(ez());return zt(()=>{n(r=>r??String(tz++))},[e]),e||(t?`radix-${t}`:"")}var nz=WM[" useInsertionEffect ".trim().toString()]||zt;function hr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,s,i]=rz({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:a;{const m=S.useRef(e!==void 0);S.useEffect(()=>{const p=m.current;p!==u&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=u},[u,r])}const f=S.useCallback(m=>{var p;if(u){const v=az(m)?m(e):m;v!==e&&((p=i.current)==null||p.call(i,v))}else s(m)},[u,e,s,i]);return[d,f]}function rz({defaultProp:e,onChange:t}){const[n,r]=S.useState(e),a=S.useRef(n),s=S.useRef(t);return nz(()=>{s.current=t},[t]),S.useEffect(()=>{var i;a.current!==n&&((i=s.current)==null||i.call(s,n),a.current=n)},[n,a]),[n,r,s]}function az(e){return typeof e=="function"}var sz=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=sz.reduce((e,t)=>{const n=ko(`Primitive.${t}`),r=S.forwardRef((a,s)=>{const{asChild:i,...u}=a,d=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(d,{...u,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Jm(e,t){e&&$d.flushSync(()=>e.dispatchEvent(t))}function It(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function oz(e,t=globalThis==null?void 0:globalThis.document){const n=It(e);S.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var iz="DismissableLayer",Kx="dismissableLayer.update",lz="dismissableLayer.pointerDownOutside",cz="dismissableLayer.focusOutside",jA,zO=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ji=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:i,onDismiss:u,...d}=e,f=S.useContext(zO),[m,p]=S.useState(null),v=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=S.useState({}),x=Ue(t,D=>p(D)),b=Array.from(f.layers),[T]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),N=b.indexOf(T),C=m?b.indexOf(m):-1,A=f.layersWithOutsidePointerEventsDisabled.size>0,R=C>=N,_=fz(D=>{const P=D.target,L=[...f.branches].some(U=>U.contains(P));!R||L||(a==null||a(D),i==null||i(D),D.defaultPrevented||u==null||u())},v),O=hz(D=>{const P=D.target;[...f.branches].some(U=>U.contains(P))||(s==null||s(D),i==null||i(D),D.defaultPrevented||u==null||u())},v);return oz(D=>{C===f.layers.size-1&&(r==null||r(D),!D.defaultPrevented&&u&&(D.preventDefault(),u()))},v),S.useEffect(()=>{if(m)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(jA=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),LA(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=jA)}},[m,v,n,f]),S.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),LA())},[m,f]),S.useEffect(()=>{const D=()=>y({});return document.addEventListener(Kx,D),()=>document.removeEventListener(Kx,D)},[]),c.jsx(ye.div,{...d,ref:x,style:{pointerEvents:A?R?"auto":"none":void 0,...e.style},onFocusCapture:me(e.onFocusCapture,O.onFocusCapture),onBlurCapture:me(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:me(e.onPointerDownCapture,_.onPointerDownCapture)})});Ji.displayName=iz;var uz="DismissableLayerBranch",dz=S.forwardRef((e,t)=>{const n=S.useContext(zO),r=S.useRef(null),a=Ue(t,r);return S.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(ye.div,{...e,ref:a})});dz.displayName=uz;function fz(e,t=globalThis==null?void 0:globalThis.document){const n=It(e),r=S.useRef(!1),a=S.useRef(()=>{});return S.useEffect(()=>{const s=u=>{if(u.target&&!r.current){let d=function(){$O(lz,n,f,{discrete:!0})};const f={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=d,t.addEventListener("click",a.current,{once:!0})):d()}else t.removeEventListener("click",a.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function hz(e,t=globalThis==null?void 0:globalThis.document){const n=It(e),r=S.useRef(!1);return S.useEffect(()=>{const a=s=>{s.target&&!r.current&&$O(cz,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function LA(){const e=new CustomEvent(Kx);document.dispatchEvent(e)}function $O(e,t,n,{discrete:r}){const a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Jm(a,s):a.dispatchEvent(s)}var Ny="focusScope.autoFocusOnMount",wy="focusScope.autoFocusOnUnmount",kA={bubbles:!1,cancelable:!0},mz="FocusScope",ef=S.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...i}=e,[u,d]=S.useState(null),f=It(a),m=It(s),p=S.useRef(null),v=Ue(t,b=>d(b)),y=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let b=function(A){if(y.paused||!u)return;const R=A.target;u.contains(R)?p.current=R:xo(p.current,{select:!0})},T=function(A){if(y.paused||!u)return;const R=A.relatedTarget;R!==null&&(u.contains(R)||xo(p.current,{select:!0}))},N=function(A){if(document.activeElement===document.body)for(const _ of A)_.removedNodes.length>0&&xo(u)};document.addEventListener("focusin",b),document.addEventListener("focusout",T);const C=new MutationObserver(N);return u&&C.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",T),C.disconnect()}}},[r,u,y.paused]),S.useEffect(()=>{if(u){FA.add(y);const b=document.activeElement;if(!u.contains(b)){const N=new CustomEvent(Ny,kA);u.addEventListener(Ny,f),u.dispatchEvent(N),N.defaultPrevented||(pz(bz(qO(u)),{select:!0}),document.activeElement===b&&xo(u))}return()=>{u.removeEventListener(Ny,f),setTimeout(()=>{const N=new CustomEvent(wy,kA);u.addEventListener(wy,m),u.dispatchEvent(N),N.defaultPrevented||xo(b??document.body,{select:!0}),u.removeEventListener(wy,m),FA.remove(y)},0)}}},[u,f,m,y]);const x=S.useCallback(b=>{if(!n&&!r||y.paused)return;const T=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,N=document.activeElement;if(T&&N){const C=b.currentTarget,[A,R]=gz(C);A&&R?!b.shiftKey&&N===R?(b.preventDefault(),n&&xo(A,{select:!0})):b.shiftKey&&N===A&&(b.preventDefault(),n&&xo(R,{select:!0})):N===C&&b.preventDefault()}},[n,r,y.paused]);return c.jsx(ye.div,{tabIndex:-1,...i,ref:v,onKeyDown:x})});ef.displayName=mz;function pz(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xo(r,{select:t}),document.activeElement!==n)return}function gz(e){const t=qO(e),n=UA(t,e),r=UA(t.reverse(),e);return[n,r]}function qO(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function UA(e,t){for(const n of e)if(!vz(n,{upTo:t}))return n}function vz(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function yz(e){return e instanceof HTMLInputElement&&"select"in e}function xo(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&yz(e)&&t&&e.select()}}var FA=xz();function xz(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=BA(e,t),e.unshift(t)},remove(t){var n;e=BA(e,t),(n=e[0])==null||n.resume()}}}function BA(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function bz(e){return e.filter(t=>t.tagName!=="A")}var Ez="Portal",Gp=S.forwardRef((e,t)=>{var u;const{container:n,...r}=e,[a,s]=S.useState(!1);zt(()=>s(!0),[]);const i=n||a&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return i?jp.createPortal(c.jsx(ye.div,{...r,ref:t}),i):null});Gp.displayName=Ez;function Sz(e,t){return S.useReducer((n,r)=>t[n][r]??n,e)}var on=e=>{const{present:t,children:n}=e,r=Tz(t),a=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),s=Ue(r.ref,Nz(a));return typeof n=="function"||r.isPresent?S.cloneElement(a,{ref:s}):null};on.displayName="Presence";function Tz(e){const[t,n]=S.useState(),r=S.useRef(null),a=S.useRef(e),s=S.useRef("none"),i=e?"mounted":"unmounted",[u,d]=Sz(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const f=Jh(r.current);s.current=u==="mounted"?f:"none"},[u]),zt(()=>{const f=r.current,m=a.current;if(m!==e){const v=s.current,y=Jh(f);e?d("MOUNT"):y==="none"||(f==null?void 0:f.display)==="none"?d("UNMOUNT"):d(m&&v!==y?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),zt(()=>{if(t){let f;const m=t.ownerDocument.defaultView??window,p=y=>{const b=Jh(r.current).includes(y.animationName);if(y.target===t&&b&&(d("ANIMATION_END"),!a.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",f=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},v=y=>{y.target===t&&(s.current=Jh(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{m.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:S.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Jh(e){return(e==null?void 0:e.animationName)||"none"}function Nz(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Cy=0;function zp(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??HA()),document.body.insertAdjacentElement("beforeend",e[1]??HA()),Cy++,()=>{Cy===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Cy--}},[])}function HA(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var _m="right-scroll-bar-position",Rm="width-before-scroll-bar",wz="with-scroll-bars-hidden",Cz="--removed-body-scroll-bar-size";function Ay(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Az(e,t){var n=S.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var _z=typeof window<"u"?S.useLayoutEffect:S.useEffect,VA=new WeakMap;function Rz(e,t){var n=Az(null,function(r){return e.forEach(function(a){return Ay(a,r)})});return _z(function(){var r=VA.get(n);if(r){var a=new Set(r),s=new Set(e),i=n.current;a.forEach(function(u){s.has(u)||Ay(u,null)}),s.forEach(function(u){a.has(u)||Ay(u,i)})}VA.set(n,e)},[e]),n}function Mz(e){return e}function Oz(e,t){t===void 0&&(t=Mz);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(u){return u!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(u){return s(u)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var u=n;n=[],u.forEach(s),i=n}var d=function(){var m=i;i=[],m.forEach(s)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(m){i.push(m),f()},filter:function(m){return i=i.filter(m),n}}}};return a}function Dz(e){e===void 0&&(e={});var t=Oz(null);return t.options=ve({async:!0,ssr:!1},e),t}var YO=function(e){var t=e.sideCar,n=Ko(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return S.createElement(r,ve({},n))};YO.isSideCarExport=!0;function Iz(e,t){return e.useMedium(t),YO}var WO=Dz(),_y=function(){},$p=S.forwardRef(function(e,t){var n=S.useRef(null),r=S.useState({onScrollCapture:_y,onWheelCapture:_y,onTouchMoveCapture:_y}),a=r[0],s=r[1],i=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,m=e.enabled,p=e.shards,v=e.sideCar,y=e.noIsolation,x=e.inert,b=e.allowPinchZoom,T=e.as,N=T===void 0?"div":T,C=e.gapMode,A=Ko(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=v,_=Rz([n,t]),O=ve(ve({},A),a);return S.createElement(S.Fragment,null,m&&S.createElement(R,{sideCar:WO,removeScrollBar:f,shards:p,noIsolation:y,inert:x,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:C}),i?S.cloneElement(S.Children.only(u),ve(ve({},O),{ref:_})):S.createElement(N,ve({},O,{className:d,ref:_}),u))});$p.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$p.classNames={fullWidth:Rm,zeroRight:_m};var Pz=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function jz(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Pz();return t&&e.setAttribute("nonce",t),e}function Lz(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function kz(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Uz=function(){var e=0,t=null;return{add:function(n){e==0&&(t=jz())&&(Lz(t,n),kz(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Fz=function(){var e=Uz();return function(t,n){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},KO=function(){var e=Fz(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},Bz={left:0,top:0,right:0,gap:0},Ry=function(e){return parseInt(e||"",10)||0},Hz=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Ry(n),Ry(r),Ry(a)]},Vz=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Bz;var t=Hz(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Gz=KO(),ic="data-scroll-locked",zz=function(e,t,n,r){var a=e.left,s=e.top,i=e.right,u=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(wz,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(u,"px ").concat(r,`;
  }
  body[`).concat(ic,`] {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
    padding-left: `.concat(a,`px;
    padding-top: `).concat(s,`px;
    padding-right: `).concat(i,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(u,"px ").concat(r,`;
    `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(_m,` {
    right: `).concat(u,"px ").concat(r,`;
  }
  
  .`).concat(Rm,` {
    margin-right: `).concat(u,"px ").concat(r,`;
  }
  
  .`).concat(_m," .").concat(_m,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(Rm," .").concat(Rm,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat(ic,`] {
    `).concat(Cz,": ").concat(u,`px;
  }
`)},GA=function(){var e=parseInt(document.body.getAttribute(ic)||"0",10);return isFinite(e)?e:0},$z=function(){S.useEffect(function(){return document.body.setAttribute(ic,(GA()+1).toString()),function(){var e=GA()-1;e<=0?document.body.removeAttribute(ic):document.body.setAttribute(ic,e.toString())}},[])},qz=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;$z();var s=S.useMemo(function(){return Vz(a)},[a]);return S.createElement(Gz,{styles:zz(s,!t,a,n?"":"!important")})},Xx=!1;if(typeof window<"u")try{var em=Object.defineProperty({},"passive",{get:function(){return Xx=!0,!0}});window.addEventListener("test",em,em),window.removeEventListener("test",em,em)}catch{Xx=!1}var Wl=Xx?{passive:!1}:!1,Yz=function(e){return e.tagName==="TEXTAREA"},XO=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Yz(e)&&n[t]==="visible")},Wz=function(e){return XO(e,"overflowY")},Kz=function(e){return XO(e,"overflowX")},zA=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=QO(e,r);if(a){var s=ZO(e,r),i=s[1],u=s[2];if(i>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Xz=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Qz=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},QO=function(e,t){return e==="v"?Wz(t):Kz(t)},ZO=function(e,t){return e==="v"?Xz(t):Qz(t)},Zz=function(e,t){return e==="h"&&t==="rtl"?-1:1},Jz=function(e,t,n,r,a){var s=Zz(e,window.getComputedStyle(t).direction),i=s*r,u=n.target,d=t.contains(u),f=!1,m=i>0,p=0,v=0;do{var y=ZO(e,u),x=y[0],b=y[1],T=y[2],N=b-T-s*x;(x||N)&&QO(e,u)&&(p+=N,v+=x),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(m&&Math.abs(p)<1||!m&&Math.abs(v)<1)&&(f=!0),f},tm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$A=function(e){return[e.deltaX,e.deltaY]},qA=function(e){return e&&"current"in e?e.current:e},e$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},t$=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},n$=0,Kl=[];function r$(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),a=S.useState(n$++)[0],s=S.useState(KO)[0],i=S.useRef(e);S.useEffect(function(){i.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var b=Jt([e.lockRef.current],(e.shards||[]).map(qA),!0).filter(Boolean);return b.forEach(function(T){return T.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),b.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=S.useCallback(function(b,T){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!i.current.allowPinchZoom;var N=tm(b),C=n.current,A="deltaX"in b?b.deltaX:C[0]-N[0],R="deltaY"in b?b.deltaY:C[1]-N[1],_,O=b.target,D=Math.abs(A)>Math.abs(R)?"h":"v";if("touches"in b&&D==="h"&&O.type==="range")return!1;var P=zA(D,O);if(!P)return!0;if(P?_=D:(_=D==="v"?"h":"v",P=zA(D,O)),!P)return!1;if(!r.current&&"changedTouches"in b&&(A||R)&&(r.current=_),!_)return!0;var L=r.current||_;return Jz(L,T,b,L==="h"?A:R)},[]),d=S.useCallback(function(b){var T=b;if(!(!Kl.length||Kl[Kl.length-1]!==s)){var N="deltaY"in T?$A(T):tm(T),C=t.current.filter(function(_){return _.name===T.type&&(_.target===T.target||T.target===_.shadowParent)&&e$(_.delta,N)})[0];if(C&&C.should){T.cancelable&&T.preventDefault();return}if(!C){var A=(i.current.shards||[]).map(qA).filter(Boolean).filter(function(_){return _.contains(T.target)}),R=A.length>0?u(T,A[0]):!i.current.noIsolation;R&&T.cancelable&&T.preventDefault()}}},[]),f=S.useCallback(function(b,T,N,C){var A={name:b,delta:T,target:N,should:C,shadowParent:a$(N)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(R){return R!==A})},1)},[]),m=S.useCallback(function(b){n.current=tm(b),r.current=void 0},[]),p=S.useCallback(function(b){f(b.type,$A(b),b.target,u(b,e.lockRef.current))},[]),v=S.useCallback(function(b){f(b.type,tm(b),b.target,u(b,e.lockRef.current))},[]);S.useEffect(function(){return Kl.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",d,Wl),document.addEventListener("touchmove",d,Wl),document.addEventListener("touchstart",m,Wl),function(){Kl=Kl.filter(function(b){return b!==s}),document.removeEventListener("wheel",d,Wl),document.removeEventListener("touchmove",d,Wl),document.removeEventListener("touchstart",m,Wl)}},[]);var y=e.removeScrollBar,x=e.inert;return S.createElement(S.Fragment,null,x?S.createElement(s,{styles:t$(a)}):null,y?S.createElement(qz,{gapMode:e.gapMode}):null)}function a$(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const s$=Iz(WO,r$);var tf=S.forwardRef(function(e,t){return S.createElement($p,ve({},e,{ref:t,sideCar:s$}))});tf.classNames=$p.classNames;var o$=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xl=new WeakMap,nm=new WeakMap,rm={},My=0,JO=function(e){return e&&(e.host||JO(e.parentNode))},i$=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=JO(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},l$=function(e,t,n,r){var a=i$(t,Array.isArray(e)?e:[e]);rm[n]||(rm[n]=new WeakMap);var s=rm[n],i=[],u=new Set,d=new Set(a),f=function(p){!p||u.has(p)||(u.add(p),f(p.parentNode))};a.forEach(f);var m=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(v){if(u.has(v))m(v);else try{var y=v.getAttribute(r),x=y!==null&&y!=="false",b=(Xl.get(v)||0)+1,T=(s.get(v)||0)+1;Xl.set(v,b),s.set(v,T),i.push(v),b===1&&x&&nm.set(v,!0),T===1&&v.setAttribute(n,"true"),x||v.setAttribute(r,"true")}catch(N){console.error("aria-hidden: cannot operate on ",v,N)}})};return m(t),u.clear(),My++,function(){i.forEach(function(p){var v=Xl.get(p)-1,y=s.get(p)-1;Xl.set(p,v),s.set(p,y),v||(nm.has(p)||p.removeAttribute(r),nm.delete(p)),y||p.removeAttribute(n)}),My--,My||(Xl=new WeakMap,Xl=new WeakMap,nm=new WeakMap,rm={})}},qp=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=o$(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),l$(r,a,n,"aria-hidden")):function(){return null}},Yp="Dialog",[eD,tD]=Gn(Yp),[c$,Ra]=eD(Yp),nD=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,u=S.useRef(null),d=S.useRef(null),[f,m]=hr({prop:r,defaultProp:a??!1,onChange:s,caller:Yp});return c.jsx(c$,{scope:t,triggerRef:u,contentRef:d,contentId:_n(),titleId:_n(),descriptionId:_n(),open:f,onOpenChange:m,onOpenToggle:S.useCallback(()=>m(p=>!p),[m]),modal:i,children:n})};nD.displayName=Yp;var rD="DialogTrigger",aD=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ra(rD,n),s=Ue(t,a.triggerRef);return c.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":ZE(a.open),...r,ref:s,onClick:me(e.onClick,a.onOpenToggle)})});aD.displayName=rD;var XE="DialogPortal",[u$,sD]=eD(XE,{forceMount:void 0}),oD=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,s=Ra(XE,t);return c.jsx(u$,{scope:t,forceMount:n,children:S.Children.map(r,i=>c.jsx(on,{present:n||s.open,children:c.jsx(Gp,{asChild:!0,container:a,children:i})}))})};oD.displayName=XE;var ep="DialogOverlay",iD=S.forwardRef((e,t)=>{const n=sD(ep,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,s=Ra(ep,e.__scopeDialog);return s.modal?c.jsx(on,{present:r||s.open,children:c.jsx(f$,{...a,ref:t})}):null});iD.displayName=ep;var d$=ko("DialogOverlay.RemoveScroll"),f$=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ra(ep,n);return c.jsx(tf,{as:d$,allowPinchZoom:!0,shards:[a.contentRef],children:c.jsx(ye.div,{"data-state":ZE(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Yi="DialogContent",lD=S.forwardRef((e,t)=>{const n=sD(Yi,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,s=Ra(Yi,e.__scopeDialog);return c.jsx(on,{present:r||s.open,children:s.modal?c.jsx(h$,{...a,ref:t}):c.jsx(m$,{...a,ref:t})})});lD.displayName=Yi;var h$=S.forwardRef((e,t)=>{const n=Ra(Yi,e.__scopeDialog),r=S.useRef(null),a=Ue(t,n.contentRef,r);return S.useEffect(()=>{const s=r.current;if(s)return qp(s)},[]),c.jsx(cD,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0;(i.button===2||u)&&s.preventDefault()}),onFocusOutside:me(e.onFocusOutside,s=>s.preventDefault())})}),m$=S.forwardRef((e,t)=>{const n=Ra(Yi,e.__scopeDialog),r=S.useRef(!1),a=S.useRef(!1);return c.jsx(cD,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,u;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(u=n.triggerRef.current)==null||u.focus(),s.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:s=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const i=s.target;((f=n.triggerRef.current)==null?void 0:f.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&a.current&&s.preventDefault()}})}),cD=S.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:s,...i}=e,u=Ra(Yi,n),d=S.useRef(null),f=Ue(t,d);return zp(),c.jsxs(c.Fragment,{children:[c.jsx(ef,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:s,children:c.jsx(Ji,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":ZE(u.open),...i,ref:f,onDismiss:()=>u.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(g$,{titleId:u.titleId}),c.jsx(y$,{contentRef:d,descriptionId:u.descriptionId})]})]})}),QE="DialogTitle",uD=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ra(QE,n);return c.jsx(ye.h2,{id:a.titleId,...r,ref:t})});uD.displayName=QE;var dD="DialogDescription",fD=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ra(dD,n);return c.jsx(ye.p,{id:a.descriptionId,...r,ref:t})});fD.displayName=dD;var hD="DialogClose",mD=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ra(hD,n);return c.jsx(ye.button,{type:"button",...r,ref:t,onClick:me(e.onClick,()=>a.onOpenChange(!1))})});mD.displayName=hD;function ZE(e){return e?"open":"closed"}var pD="DialogTitleWarning",[p$,gD]=ZG(pD,{contentName:Yi,titleName:QE,docsSlug:"dialog"}),g$=({titleId:e})=>{const t=gD(pD),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return S.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},v$="DialogDescriptionWarning",y$=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${gD(v$).contentName}}.`;return S.useEffect(()=>{var s;const a=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},JE=nD,vD=aD,e1=oD,t1=iD,n1=lD,Wp=uD,Kp=fD,Xp=mD;function x$({...e}){return c.jsx(JE,{"data-slot":"sheet",...e})}function b$({...e}){return c.jsx(vD,{"data-slot":"sheet-trigger",...e})}function E$({...e}){return c.jsx(e1,{"data-slot":"sheet-portal",...e})}function S$({className:e,...t}){return c.jsx(t1,{"data-slot":"sheet-overlay",className:X("fixed inset-0 z-50 bg-black/30 [backdrop-filter:blur(4px)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t})}const T$=Mt("flex flex-col items-strech fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-400",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 start-0 h-full w-3/4 border-e data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm rtl:data-[state=closed]:slide-out-to-right rtl:data-[state=open]:slide-in-from-right",right:"inset-y-0 end-0 h-full w-3/4  border-s data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm rtl:data-[state=closed]:slide-out-to-left rtl:data-[state=open]:slide-in-from-left"}},defaultVariants:{side:"right"}});function N$({side:e="right",overlay:t=!0,close:n=!0,className:r,children:a,...s}){return c.jsxs(E$,{children:[t&&c.jsx(S$,{}),c.jsxs(n1,{className:X(T$({side:e}),r),...s,children:[a,n&&c.jsxs(Xp,{"data-slot":"sheet-close",className:"cursor-pointer absolute end-5 top-4 rounded-sm opacity-60 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[c.jsx(Bc,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}const w$=({className:e,...t})=>c.jsx("div",{"data-slot":"sheet-header",className:X("flex flex-col space-y-1 text-center sm:text-start",e),...t}),C$=({className:e,...t})=>c.jsx("div",{"data-slot":"sheet-body",className:X("py-2.5",e),...t});function A$({className:e,...t}){return c.jsx(Wp,{"data-slot":"sheet-title",className:X("text-base font-semibold text-foreground",e),...t})}function _$({className:e,...t}){return c.jsx(Kp,{"data-slot":"sheet-description",className:X("text-sm text-muted-foreground",e),...t})}var yD=S.createContext(void 0),R$=e=>{const{dir:t,children:n}=e;return c.jsx(yD.Provider,{value:t,children:n})};function el(e){const t=S.useContext(yD);return e||t||"ltr"}function Vc(e){const t=e+"CollectionProvider",[n,r]=Gn(t),[a,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=b=>{const{scope:T,children:N}=b,C=z.useRef(null),A=z.useRef(new Map).current;return c.jsx(a,{scope:T,itemMap:A,collectionRef:C,children:N})};i.displayName=t;const u=e+"CollectionSlot",d=ko(u),f=z.forwardRef((b,T)=>{const{scope:N,children:C}=b,A=s(u,N),R=Ue(T,A.collectionRef);return c.jsx(d,{ref:R,children:C})});f.displayName=u;const m=e+"CollectionItemSlot",p="data-radix-collection-item",v=ko(m),y=z.forwardRef((b,T)=>{const{scope:N,children:C,...A}=b,R=z.useRef(null),_=Ue(T,R),O=s(m,N);return z.useEffect(()=>(O.itemMap.set(R,{ref:R,...A}),()=>void O.itemMap.delete(R))),c.jsx(v,{[p]:"",ref:_,children:C})});y.displayName=m;function x(b){const T=s(e+"CollectionConsumer",b);return z.useCallback(()=>{const C=T.collectionRef.current;if(!C)return[];const A=Array.from(C.querySelectorAll(`[${p}]`));return Array.from(T.itemMap.values()).sort((O,D)=>A.indexOf(O.ref.current)-A.indexOf(D.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:i,Slot:f,ItemSlot:y},x,r]}function r1(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var xD=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),M$="VisuallyHidden",bD=S.forwardRef((e,t)=>c.jsx(ye.span,{...e,ref:t,style:{...xD,...e.style}}));bD.displayName=M$;var ED=bD,tl="NavigationMenu",[a1,SD,O$]=Vc(tl),[Qx,D$,I$]=Vc(tl),[s1,Xme]=Gn(tl,[O$,I$]),[P$,aa]=s1(tl),[j$,L$]=s1(tl),TD=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:a,defaultValue:s,delayDuration:i=200,skipDelayDuration:u=300,orientation:d="horizontal",dir:f,...m}=e,[p,v]=S.useState(null),y=Ue(t,L=>v(L)),x=el(f),b=S.useRef(0),T=S.useRef(0),N=S.useRef(0),[C,A]=S.useState(!0),[R,_]=hr({prop:r,onChange:L=>{const U=L!=="",B=u>0;U?(window.clearTimeout(N.current),B&&A(!1)):(window.clearTimeout(N.current),N.current=window.setTimeout(()=>A(!0),u)),a==null||a(L)},defaultProp:s??"",caller:tl}),O=S.useCallback(()=>{window.clearTimeout(T.current),T.current=window.setTimeout(()=>_(""),150)},[_]),D=S.useCallback(L=>{window.clearTimeout(T.current),_(L)},[_]),P=S.useCallback(L=>{R===L?window.clearTimeout(T.current):b.current=window.setTimeout(()=>{window.clearTimeout(T.current),_(L)},i)},[R,_,i]);return S.useEffect(()=>()=>{window.clearTimeout(b.current),window.clearTimeout(T.current),window.clearTimeout(N.current)},[]),c.jsx(ND,{scope:n,isRootMenu:!0,value:R,dir:x,orientation:d,rootNavigationMenu:p,onTriggerEnter:L=>{window.clearTimeout(b.current),C?P(L):D(L)},onTriggerLeave:()=>{window.clearTimeout(b.current),O()},onContentEnter:()=>window.clearTimeout(T.current),onContentLeave:O,onItemSelect:L=>{_(U=>U===L?"":L)},onItemDismiss:()=>_(""),children:c.jsx(ye.nav,{"aria-label":"Main","data-orientation":d,dir:x,...m,ref:y})})});TD.displayName=tl;var Zx="NavigationMenuSub",k$=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:a,defaultValue:s,orientation:i="horizontal",...u}=e,d=aa(Zx,n),[f,m]=hr({prop:r,onChange:a,defaultProp:s??"",caller:Zx});return c.jsx(ND,{scope:n,isRootMenu:!1,value:f,dir:d.dir,orientation:i,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:p=>m(p),onItemSelect:p=>m(p),onItemDismiss:()=>m(""),children:c.jsx(ye.div,{"data-orientation":i,...u,ref:t})})});k$.displayName=Zx;var ND=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:a,orientation:s,children:i,value:u,onItemSelect:d,onItemDismiss:f,onTriggerEnter:m,onTriggerLeave:p,onContentEnter:v,onContentLeave:y}=e,[x,b]=S.useState(null),[T,N]=S.useState(new Map),[C,A]=S.useState(null);return c.jsx(P$,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:u,previousValue:r1(u),baseId:_n(),dir:a,orientation:s,viewport:x,onViewportChange:b,indicatorTrack:C,onIndicatorTrackChange:A,onTriggerEnter:It(m),onTriggerLeave:It(p),onContentEnter:It(v),onContentLeave:It(y),onItemSelect:It(d),onItemDismiss:It(f),onViewportContentChange:S.useCallback((R,_)=>{N(O=>(O.set(R,_),new Map(O)))},[]),onViewportContentRemove:S.useCallback(R=>{N(_=>_.has(R)?(_.delete(R),new Map(_)):_)},[]),children:c.jsx(a1.Provider,{scope:t,children:c.jsx(j$,{scope:t,items:T,children:i})})})},wD="NavigationMenuList",CD=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,a=aa(wD,n),s=c.jsx(ye.ul,{"data-orientation":a.orientation,...r,ref:t});return c.jsx(ye.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange,children:c.jsx(a1.Slot,{scope:n,children:a.isRootMenu?c.jsx(jD,{asChild:!0,children:s}):s})})});CD.displayName=wD;var AD="NavigationMenuItem",[U$,_D]=s1(AD),RD=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...a}=e,s=_n(),i=r||s||"LEGACY_REACT_AUTO_VALUE",u=S.useRef(null),d=S.useRef(null),f=S.useRef(null),m=S.useRef(()=>{}),p=S.useRef(!1),v=S.useCallback((x="start")=>{if(u.current){m.current();const b=eb(u.current);b.length&&l1(x==="start"?b:b.reverse())}},[]),y=S.useCallback(()=>{if(u.current){const x=eb(u.current);x.length&&(m.current=q$(x))}},[]);return c.jsx(U$,{scope:n,value:i,triggerRef:d,contentRef:u,focusProxyRef:f,wasEscapeCloseRef:p,onEntryKeyDown:v,onFocusProxyEnter:v,onRootContentClose:y,onContentFocusOutside:y,children:c.jsx(ye.li,{...a,ref:t})})});RD.displayName=AD;var Jx="NavigationMenuTrigger",MD=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...a}=e,s=aa(Jx,e.__scopeNavigationMenu),i=_D(Jx,e.__scopeNavigationMenu),u=S.useRef(null),d=Ue(u,i.triggerRef,t),f=kD(s.baseId,i.value),m=UD(s.baseId,i.value),p=S.useRef(!1),v=S.useRef(!1),y=i.value===s.value;return c.jsxs(c.Fragment,{children:[c.jsx(a1.ItemSlot,{scope:n,value:i.value,children:c.jsx(LD,{asChild:!0,children:c.jsx(ye.button,{id:f,disabled:r,"data-disabled":r?"":void 0,"data-state":c1(y),"aria-expanded":y,"aria-controls":m,...a,ref:d,onPointerEnter:me(e.onPointerEnter,()=>{v.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:me(e.onPointerMove,tp(()=>{r||v.current||i.wasEscapeCloseRef.current||p.current||(s.onTriggerEnter(i.value),p.current=!0)})),onPointerLeave:me(e.onPointerLeave,tp(()=>{r||(s.onTriggerLeave(),p.current=!1)})),onClick:me(e.onClick,()=>{s.onItemSelect(i.value),v.current=y}),onKeyDown:me(e.onKeyDown,x=>{const T={horizontal:"ArrowDown",vertical:s.dir==="rtl"?"ArrowLeft":"ArrowRight"}[s.orientation];y&&x.key===T&&(i.onEntryKeyDown(),x.preventDefault())})})})}),y&&c.jsxs(c.Fragment,{children:[c.jsx(ED,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:x=>{const b=i.contentRef.current,T=x.relatedTarget,N=T===u.current,C=b==null?void 0:b.contains(T);(N||!C)&&i.onFocusProxyEnter(N?"start":"end")}}),s.viewport&&c.jsx("span",{"aria-owns":m})]})]})});MD.displayName=Jx;var F$="NavigationMenuLink",YA="navigationMenu.linkSelect",OD=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:a,...s}=e;return c.jsx(LD,{asChild:!0,children:c.jsx(ye.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...s,ref:t,onClick:me(e.onClick,i=>{const u=i.target,d=new CustomEvent(YA,{bubbles:!0,cancelable:!0});if(u.addEventListener(YA,f=>a==null?void 0:a(f),{once:!0}),Jm(u,d),!d.defaultPrevented&&!i.metaKey){const f=new CustomEvent(Mm,{bubbles:!0,cancelable:!0});Jm(u,f)}},{checkForDefaultPrevented:!1})})})});OD.displayName=F$;var o1="NavigationMenuIndicator",B$=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=aa(o1,e.__scopeNavigationMenu),s=!!a.value;return a.indicatorTrack?jp.createPortal(c.jsx(on,{present:n||s,children:c.jsx(H$,{...r,ref:t})}),a.indicatorTrack):null});B$.displayName=o1;var H$=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,a=aa(o1,n),s=SD(n),[i,u]=S.useState(null),[d,f]=S.useState(null),m=a.orientation==="horizontal",p=!!a.value;S.useEffect(()=>{var b;const x=(b=s().find(T=>T.value===a.value))==null?void 0:b.ref.current;x&&u(x)},[s,a.value]);const v=()=>{i&&f({size:m?i.offsetWidth:i.offsetHeight,offset:m?i.offsetLeft:i.offsetTop})};return tb(i,v),tb(a.indicatorTrack,v),d?c.jsx(ye.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":a.orientation,...r,ref:t,style:{position:"absolute",...m?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...r.style}}):null}),Nc="NavigationMenuContent",DD=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=aa(Nc,e.__scopeNavigationMenu),s=_D(Nc,e.__scopeNavigationMenu),i=Ue(s.contentRef,t),u=s.value===a.value,d={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...r};return a.viewport?c.jsx(V$,{forceMount:n,...d,ref:i}):c.jsx(on,{present:n||u,children:c.jsx(ID,{"data-state":c1(u),...d,ref:i,onPointerEnter:me(e.onPointerEnter,a.onContentEnter),onPointerLeave:me(e.onPointerLeave,tp(a.onContentLeave)),style:{pointerEvents:!u&&a.isRootMenu?"none":void 0,...d.style}})})});DD.displayName=Nc;var V$=S.forwardRef((e,t)=>{const n=aa(Nc,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:a}=n;return zt(()=>{r(e.value,{ref:t,...e})},[e,t,r]),zt(()=>()=>a(e.value),[e.value,a]),null}),Mm="navigationMenu.rootContentDismiss",ID=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:a,focusProxyRef:s,wasEscapeCloseRef:i,onRootContentClose:u,onContentFocusOutside:d,...f}=e,m=aa(Nc,n),p=S.useRef(null),v=Ue(p,t),y=kD(m.baseId,r),x=UD(m.baseId,r),b=SD(n),T=S.useRef(null),{onItemDismiss:N}=m;S.useEffect(()=>{const A=p.current;if(m.isRootMenu&&A){const R=()=>{var _;N(),u(),A.contains(document.activeElement)&&((_=a.current)==null||_.focus())};return A.addEventListener(Mm,R),()=>A.removeEventListener(Mm,R)}},[m.isRootMenu,e.value,a,N,u]);const C=S.useMemo(()=>{const R=b().map(U=>U.value);m.dir==="rtl"&&R.reverse();const _=R.indexOf(m.value),O=R.indexOf(m.previousValue),D=r===m.value,P=O===R.indexOf(r);if(!D&&!P)return T.current;const L=(()=>{if(_!==O){if(D&&O!==-1)return _>O?"from-end":"from-start";if(P&&_!==-1)return _>O?"to-start":"to-end"}return null})();return T.current=L,L},[m.previousValue,m.value,m.dir,b,r]);return c.jsx(jD,{asChild:!0,children:c.jsx(Ji,{id:x,"aria-labelledby":y,"data-motion":C,"data-orientation":m.orientation,...f,ref:v,disableOutsidePointerEvents:!1,onDismiss:()=>{var R;const A=new Event(Mm,{bubbles:!0,cancelable:!0});(R=p.current)==null||R.dispatchEvent(A)},onFocusOutside:me(e.onFocusOutside,A=>{var _;d();const R=A.target;(_=m.rootNavigationMenu)!=null&&_.contains(R)&&A.preventDefault()}),onPointerDownOutside:me(e.onPointerDownOutside,A=>{var D;const R=A.target,_=b().some(P=>{var L;return(L=P.ref.current)==null?void 0:L.contains(R)}),O=m.isRootMenu&&((D=m.viewport)==null?void 0:D.contains(R));(_||O||!m.isRootMenu)&&A.preventDefault()}),onKeyDown:me(e.onKeyDown,A=>{var O;const R=A.altKey||A.ctrlKey||A.metaKey;if(A.key==="Tab"&&!R){const D=eb(A.currentTarget),P=document.activeElement,L=D.findIndex(H=>H===P),B=A.shiftKey?D.slice(0,L).reverse():D.slice(L+1,D.length);l1(B)?A.preventDefault():(O=s.current)==null||O.focus()}}),onEscapeKeyDown:me(e.onEscapeKeyDown,A=>{i.current=!0})})})}),i1="NavigationMenuViewport",PD=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=!!aa(i1,e.__scopeNavigationMenu).value;return c.jsx(on,{present:n||s,children:c.jsx(G$,{...r,ref:t})})});PD.displayName=i1;var G$=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...a}=e,s=aa(i1,n),i=Ue(t,s.onViewportChange),u=L$(Nc,e.__scopeNavigationMenu),[d,f]=S.useState(null),[m,p]=S.useState(null),v=d?(d==null?void 0:d.width)+"px":void 0,y=d?(d==null?void 0:d.height)+"px":void 0,x=!!s.value,b=x?s.value:s.previousValue;return tb(m,()=>{m&&f({width:m.offsetWidth,height:m.offsetHeight})}),c.jsx(ye.div,{"data-state":c1(x),"data-orientation":s.orientation,...a,ref:i,style:{pointerEvents:!x&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":v,"--radix-navigation-menu-viewport-height":y,...a.style},onPointerEnter:me(e.onPointerEnter,s.onContentEnter),onPointerLeave:me(e.onPointerLeave,tp(s.onContentLeave)),children:Array.from(u.items).map(([N,{ref:C,forceMount:A,...R}])=>{const _=b===N;return c.jsx(on,{present:A||_,children:c.jsx(ID,{...R,ref:Wd(C,O=>{_&&O&&p(O)})})},N)})})}),z$="FocusGroup",jD=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,a=aa(z$,n);return c.jsx(Qx.Provider,{scope:n,children:c.jsx(Qx.Slot,{scope:n,children:c.jsx(ye.div,{dir:a.dir,...r,ref:t})})})}),WA=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],$$="FocusGroupItem",LD=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,a=D$(n),s=aa($$,n);return c.jsx(Qx.ItemSlot,{scope:n,children:c.jsx(ye.button,{...r,ref:t,onKeyDown:me(e.onKeyDown,i=>{if(["Home","End",...WA].includes(i.key)){let d=a().map(p=>p.ref.current);if([s.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&d.reverse(),WA.includes(i.key)){const p=d.indexOf(i.currentTarget);d=d.slice(p+1)}setTimeout(()=>l1(d)),i.preventDefault()}})})})});function eb(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function l1(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function q$(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function tb(e,t){const n=It(t);zt(()=>{let r=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(r),a.unobserve(e)}}},[e,n])}function c1(e){return e?"open":"closed"}function kD(e,t){return`${e}-trigger-${t}`}function UD(e,t){return`${e}-content-${t}`}function tp(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Y$=TD,W$=CD,K$=RD,X$=MD,Q$=OD,Z$=DD,J$=PD;function eq({className:e,children:t,viewport:n=!0,...r}){return c.jsxs(Y$,{"data-slot":"navigation-menu","data-viewport":n,className:X("group/navigation-menu relative flex max-w-max items-center justify-center",e),...r,children:[t,n&&c.jsx(rq,{})]})}function tq({className:e,...t}){return c.jsx(W$,{"data-slot":"navigation-menu-list",className:X("group flex list-none items-center justify-center gap-1",e),...t})}function Ni({className:e,...t}){return c.jsx(K$,{"data-slot":"navigation-menu-item",className:X("relative",e),...t})}const nq=Mt("cursor-pointer group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-accent/50 data-[state=open]:bg-accent/50 data-[active=true]:text-accent ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1");function ed({className:e,children:t,...n}){return c.jsxs(X$,{"data-slot":"navigation-menu-trigger",className:X(nq(),"group",e),...n,children:[t," ",c.jsx(Fc,{className:"relative top-[1px] ms-1 size-3.5 opacity-60 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function td({className:e,...t}){return c.jsx(Z$,{"data-slot":"navigation-menu-content",className:X("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52! data-[motion=from-start]:slide-in-from-left-52! data-[motion=to-end]:slide-out-to-right-52! data-[motion=to-start]:slide-out-to-left-52! top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",e),...t})}function rq({className:e,...t}){return c.jsx("div",{className:X("absolute top-full left-0 isolate z-50"),children:c.jsx(J$,{"data-slot":"navigation-menu-viewport",className:X("shadow-2xl border border-white/10 bg-[#0b0f19]/90 backdrop-blur-xl rounded-2xl origin-top-center data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-2.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden md:w-[var(--radix-navigation-menu-viewport-width)] text-foreground",e),...t})})}function nb({className:e,...t}){return c.jsx(Q$,{"data-slot":"navigation-menu-link",className:X("hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[active=true]:bg-accent/50 data-[active=true]:text-accent ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 flex flex-col gap-1 rounded-md p-2 text-sm transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1",e),...t})}const nf=e=>{const{pathname:t}=Rn(),{isActive:n}=Jd(t),r=Ge(),a=s=>s.map((i,u)=>i.children?c.jsxs("div",{className:"text-start",children:[c.jsx("div",{className:"pt-1",children:c.jsx("span",{className:"text-card-foreground font-black text-xs font-mono uppercase p-2.5 text-start block",children:r.formatMessage({id:i.title})})}),a(i.children)]},u):c.jsx(nb,{asChild:!0,children:c.jsxs(Pt,{...n(i.path)&&{"data-active":!0},to:i.path||"",className:X("flex flex-row items-center justify-start text-start gap-2.5 px-2.5 py-2 rounded-none hover:bg-accent hover:text-accent-foreground text-sm font-bold font-mono uppercase transition-all duration-100","[&_svg]:text-muted-foreground hover:[&_svg]:text-accent-foreground [&[data-active=true]_svg]:text-accent"),children:[i.icon&&c.jsx(i.icon,{className:"size-4"}),r.formatMessage({id:i.title}),i.disabled&&c.jsx(kt,{variant:"secondary",size:"sm",children:"Soon"}),i.badge&&c.jsx(kt,{variant:"primary",size:"sm",appearance:"outline",children:i.badge})]})},u));return a(e)},aq=({items:e})=>{var r;const t=e[3],n=Ge();return c.jsx("div",{className:"w-full gap-0 lg:w-[775px]",children:c.jsx("div",{className:"pt-4 pb-2 lg:p-7.5",children:c.jsx("div",{className:"grid lg:grid-cols-3 gap-5 lg:gap-8",children:(r=t.children)==null?void 0:r.map((a,s)=>{var i;return c.jsxs("div",{className:"flex flex-col",children:[c.jsx("h3",{className:"text-xs text-card-foreground font-black uppercase font-mono leading-none ps-2.5 mb-3 lg:mb-4 border-b-2 border-border pb-2 text-start",children:n.formatMessage({id:a.title})}),c.jsx("div",{className:"grid lg:grid-cols-1 gap-2",children:(i=a.children)==null?void 0:i.map((u,d)=>c.jsx("div",{className:"space-y-0.5",children:u.children&&nf(u.children)},`profile-sub-${d}`))})]},`profile-${s}`)})})})})},sq=({items:e})=>{var r;const t=e[5],n=Ge();return c.jsx("div",{className:"w-full gap-0 lg:w-[525px]",children:c.jsx("div",{className:"pt-4 pb-2 lg:p-7.5",children:c.jsx("div",{className:"grid lg:grid-cols-2 gap-5 lg:gap-8",children:(r=t.children)==null?void 0:r.map((a,s)=>{var i;return c.jsxs("div",{className:"flex flex-col",children:[c.jsx("h3",{className:"text-sm text-foreground font-semibold leading-none ps-2.5 mb-3 lg:mb-4 border-b border-gray-200 pb-2 text-start",children:n.formatMessage({id:a.title})}),c.jsx("div",{className:"grid lg:grid-cols-1 gap-2",children:(i=a.children)==null?void 0:i.map((u,d)=>c.jsx("div",{className:"space-y-0.5",children:u.children&&nf(u.children)},`profile-sub-${d}`))})]},`profile-${s}`)})})})})},oq=({items:e})=>{var r;const t=e[4],n=Ge();return c.jsx("div",{className:"w-full gap-0 lg:w-[525px]",children:c.jsx("div",{className:"pt-4 pb-2 lg:p-7.5",children:c.jsx("div",{className:"grid lg:grid-cols-2 gap-5 lg:gap-8",children:(r=t.children)==null?void 0:r.map((a,s)=>{var i;return c.jsxs("div",{className:"flex flex-col",children:[c.jsx("h3",{className:"text-sm text-foreground font-semibold leading-none ps-2.5 mb-3 lg:mb-4 border-b border-gray-200 pb-2 text-start",children:n.formatMessage({id:a.title})}),c.jsx("div",{className:"grid lg:grid-cols-1 gap-2",children:(i=a.children)==null?void 0:i.map((u,d)=>c.jsx("div",{className:"space-y-0.5",children:u.children&&nf(u.children)},`profile-sub-${d}`))})]},`profile-${s}`)})})})})},iq=({items:e})=>{var r;const t=e[2],n=Ge();return c.jsx("div",{className:"w-full gap-0 lg:w-[995px]",children:c.jsx("div",{className:"pt-4 pb-2 lg:p-7.5",children:c.jsx("div",{className:"grid lg:grid-cols-3 gap-5 lg:gap-8",children:(r=t.children)==null?void 0:r.map((a,s)=>{var i;return c.jsxs("div",{className:"flex flex-col",children:[c.jsx("h3",{className:"text-xs text-card-foreground font-black uppercase font-mono leading-none ps-2.5 mb-3 lg:mb-4 border-b-2 border-border pb-2 text-start",children:n.formatMessage({id:a.title})}),c.jsx("div",{className:"grid lg:grid-cols-1 gap-2",children:(i=a.children)==null?void 0:i.map((u,d)=>c.jsx("div",{className:"space-y-0.5",children:u.children&&nf(u.children)},`profile-sub-${d}`))})]},`profile-${s}`)})})})})},lq=({items:e})=>{var r;const t=e[6],n=Ge();return c.jsx("div",{className:"w-full gap-0 lg:w-[625px]",children:c.jsx("div",{className:"pt-4 pb-2 lg:p-7.5",children:c.jsx("div",{className:"grid lg:grid-cols-2 gap-5 lg:gap-8",children:(r=t.children)==null?void 0:r.map((a,s)=>{var i;return c.jsxs("div",{className:"flex flex-col",children:[c.jsx("h3",{className:"text-xs text-card-foreground font-black uppercase font-mono leading-none ps-2.5 mb-3 lg:mb-4 border-b-2 border-border pb-2 text-start",children:n.formatMessage({id:a.title})}),c.jsx("div",{className:"grid lg:grid-cols-1 gap-2",children:(i=a.children)==null?void 0:i.map((u,d)=>c.jsx("div",{className:"space-y-0.5",children:u.children&&nf(u.children)},`profile-sub-${d}`))})]},`profile-${s}`)})})})})};function cq(){const{pathname:e}=Rn(),{isActive:t,hasActiveChild:n}=Jd(e),r=Xr[0],a=Xr[1],s=Xr[2],i=Xr[3],u=Xr[4],d=Xr[6],f=Xr[5],m=`
    !bg-transparent hover:!bg-transparent focus:!bg-transparent
    data-[state=open]:!bg-transparent data-[active=true]:!bg-transparent
    text-xs text-foreground/80 hover:text-accent focus:text-accent
    data-[active=true]:text-accent data-[state=open]:text-accent
    font-mono font-semibold uppercase tracking-wider transition-all duration-300
    px-2 xl:px-3 py-1.5 rounded-full hover:shadow-[0_0_12px_rgba(6,182,212,0.15)]
    inline-flex! whitespace-nowrap
  `,p=Ge();return c.jsx(eq,{children:c.jsxs(tq,{className:"gap-3 lg:gap-4 xl:gap-6",children:[c.jsx(Ni,{children:c.jsx(nb,{asChild:!0,className:X(m),children:c.jsx(Pt,{to:r.path||"/","data-active":t(r.path)||void 0,children:p.formatMessage({id:r.title})})})}),c.jsx(Ni,{children:c.jsx(nb,{asChild:!0,className:X(m),children:c.jsx(Pt,{to:a.path||"/","data-active":t(a.path)||void 0,children:p.formatMessage({id:a.title})})})}),c.jsxs(Ni,{children:[c.jsx(ed,{className:X(m),"data-active":n(s.children)||void 0,children:p.formatMessage({id:s.title})}),c.jsx(td,{className:"p-0",children:c.jsx(iq,{items:Xr})})]}),c.jsxs(Ni,{children:[c.jsx(ed,{className:X(m),"data-active":n(i.children)||void 0,children:p.formatMessage({id:i.title})}),c.jsx(td,{className:"p-0",children:c.jsx(aq,{items:Xr})})]}),c.jsxs(Ni,{children:[c.jsx(ed,{className:X(m),"data-active":n(u.children||[])||void 0,children:p.formatMessage({id:u.title})}),c.jsx(td,{className:"p-0",children:c.jsx(oq,{items:Xr})})]}),c.jsxs(Ni,{children:[c.jsx(ed,{className:X(m),"data-active":n(d.children||[])||void 0,children:p.formatMessage({id:d.title})}),c.jsx(td,{className:"p-0",children:c.jsx(lq,{items:Xr})})]}),c.jsxs(Ni,{children:[c.jsx(ed,{className:X(m),"data-active":n(f.children)||void 0,children:p.formatMessage({id:f.title})}),c.jsx(td,{className:"p-0",children:c.jsx(sq,{items:Xr})})]})]})})}var Qp="Collapsible",[uq,FD]=Gn(Qp),[dq,u1]=uq(Qp),BD=S.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:s,onOpenChange:i,...u}=e,[d,f]=hr({prop:r,defaultProp:a??!1,onChange:i,caller:Qp});return c.jsx(dq,{scope:n,disabled:s,contentId:_n(),open:d,onOpenToggle:S.useCallback(()=>f(m=>!m),[f]),children:c.jsx(ye.div,{"data-state":f1(d),"data-disabled":s?"":void 0,...u,ref:t})})});BD.displayName=Qp;var HD="CollapsibleTrigger",VD=S.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,a=u1(HD,n);return c.jsx(ye.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":f1(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:t,onClick:me(e.onClick,a.onOpenToggle)})});VD.displayName=HD;var d1="CollapsibleContent",GD=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=u1(d1,e.__scopeCollapsible);return c.jsx(on,{present:n||a.open,children:({present:s})=>c.jsx(fq,{...r,ref:t,present:s})})});GD.displayName=d1;var fq=S.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:a,...s}=e,i=u1(d1,n),[u,d]=S.useState(r),f=S.useRef(null),m=Ue(t,f),p=S.useRef(0),v=p.current,y=S.useRef(0),x=y.current,b=i.open||u,T=S.useRef(b),N=S.useRef(void 0);return S.useEffect(()=>{const C=requestAnimationFrame(()=>T.current=!1);return()=>cancelAnimationFrame(C)},[]),zt(()=>{const C=f.current;if(C){N.current=N.current||{transitionDuration:C.style.transitionDuration,animationName:C.style.animationName},C.style.transitionDuration="0s",C.style.animationName="none";const A=C.getBoundingClientRect();p.current=A.height,y.current=A.width,T.current||(C.style.transitionDuration=N.current.transitionDuration,C.style.animationName=N.current.animationName),d(r)}},[i.open,r]),c.jsx(ye.div,{"data-state":f1(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!b,...s,ref:m,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:b&&a})});function f1(e){return e?"open":"closed"}var hq=BD,mq=VD,pq=GD,Ma="Accordion",gq=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[h1,vq,yq]=Vc(Ma),[Zp,Qme]=Gn(Ma,[yq,FD]),m1=FD(),zD=z.forwardRef((e,t)=>{const{type:n,...r}=e,a=r,s=r;return c.jsx(h1.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?c.jsx(Sq,{...s,ref:t}):c.jsx(Eq,{...a,ref:t})})});zD.displayName=Ma;var[$D,xq]=Zp(Ma),[qD,bq]=Zp(Ma,{collapsible:!1}),Eq=z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},collapsible:s=!1,...i}=e,[u,d]=hr({prop:n,defaultProp:r??"",onChange:a,caller:Ma});return c.jsx($D,{scope:e.__scopeAccordion,value:z.useMemo(()=>u?[u]:[],[u]),onItemOpen:d,onItemClose:z.useCallback(()=>s&&d(""),[s,d]),children:c.jsx(qD,{scope:e.__scopeAccordion,collapsible:s,children:c.jsx(YD,{...i,ref:t})})})}),Sq=z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},...s}=e,[i,u]=hr({prop:n,defaultProp:r??[],onChange:a,caller:Ma}),d=z.useCallback(m=>u((p=[])=>[...p,m]),[u]),f=z.useCallback(m=>u((p=[])=>p.filter(v=>v!==m)),[u]);return c.jsx($D,{scope:e.__scopeAccordion,value:i,onItemOpen:d,onItemClose:f,children:c.jsx(qD,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(YD,{...s,ref:t})})})}),[Tq,Jp]=Zp(Ma),YD=z.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:a,orientation:s="vertical",...i}=e,u=z.useRef(null),d=Ue(u,t),f=vq(n),p=el(a)==="ltr",v=me(e.onKeyDown,y=>{var P;if(!gq.includes(y.key))return;const x=y.target,b=f().filter(L=>{var U;return!((U=L.ref.current)!=null&&U.disabled)}),T=b.findIndex(L=>L.ref.current===x),N=b.length;if(T===-1)return;y.preventDefault();let C=T;const A=0,R=N-1,_=()=>{C=T+1,C>R&&(C=A)},O=()=>{C=T-1,C<A&&(C=R)};switch(y.key){case"Home":C=A;break;case"End":C=R;break;case"ArrowRight":s==="horizontal"&&(p?_():O());break;case"ArrowDown":s==="vertical"&&_();break;case"ArrowLeft":s==="horizontal"&&(p?O():_());break;case"ArrowUp":s==="vertical"&&O();break}const D=C%N;(P=b[D].ref.current)==null||P.focus()});return c.jsx(Tq,{scope:n,disabled:r,direction:a,orientation:s,children:c.jsx(h1.Slot,{scope:n,children:c.jsx(ye.div,{...i,"data-orientation":s,ref:d,onKeyDown:r?void 0:v})})})}),np="AccordionItem",[Nq,p1]=Zp(np),WD=z.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...a}=e,s=Jp(np,n),i=xq(np,n),u=m1(n),d=_n(),f=r&&i.value.includes(r)||!1,m=s.disabled||e.disabled;return c.jsx(Nq,{scope:n,open:f,disabled:m,triggerId:d,children:c.jsx(hq,{"data-orientation":s.orientation,"data-state":eI(f),...u,...a,ref:t,disabled:m,open:f,onOpenChange:p=>{p?i.onItemOpen(r):i.onItemClose(r)}})})});WD.displayName=np;var KD="AccordionHeader",XD=z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,a=Jp(Ma,n),s=p1(KD,n);return c.jsx(ye.h3,{"data-orientation":a.orientation,"data-state":eI(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});XD.displayName=KD;var rb="AccordionTrigger",QD=z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,a=Jp(Ma,n),s=p1(rb,n),i=bq(rb,n),u=m1(n);return c.jsx(h1.ItemSlot,{scope:n,children:c.jsx(mq,{"aria-disabled":s.open&&!i.collapsible||void 0,"data-orientation":a.orientation,id:s.triggerId,...u,...r,ref:t})})});QD.displayName=rb;var ZD="AccordionContent",JD=z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,a=Jp(Ma,n),s=p1(ZD,n),i=m1(n);return c.jsx(pq,{role:"region","aria-labelledby":s.triggerId,"data-orientation":a.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});JD.displayName=ZD;function eI(e){return e?"open":"closed"}var Nd=zD,g1=WD,v1=XD,y1=QD,tI=JD;const nl=S.createContext({matchPath:()=>!1,selectedValue:"",setSelectedValue:()=>{},nestedStates:{},setNestedStates:()=>{}});function wq({className:e,matchPath:t=()=>!1,classNames:n,children:r,selectedValue:a,onItemClick:s,...i}){const[u,d]=S.useState(a);S.useEffect(()=>{d(a)},[a]);const f=S.useMemo(()=>{const x=(C,A=[])=>{let R=[];return S.Children.forEach(C,_=>{if(S.isValidElement(_)){const{value:O,children:D}=_.props,P=O?[...A,O]:A;if(O&&(O===a||t(O)))R=P;else if(D){const L=x(D,P);L.length>0&&(R=L)}}}),R},b=x(r),T=b.length>1?b.slice(0,b.length-1):b,N={};if(T.length>0)if(i.type==="multiple")N.root=T;else{N.root=T[0];for(let C=0;C<T.length-1;C++)N[T[C]]=T[C+1]}return N},[r,t,a,i.type]),[m,p]=S.useState(f),v=Array.isArray(m.root)?m.root:typeof m.root=="string"?[m.root]:[],y=m.root??"";return c.jsx(nl.Provider,{value:{matchPath:t,selectedValue:u,setSelectedValue:d,classNames:n,onItemClick:s,nestedStates:m,setNestedStates:p},children:i.type==="single"?c.jsx(Nd,{"data-slot":"accordion-menu",value:y,className:X("w-full",n==null?void 0:n.root,e),onValueChange:x=>p(b=>({...b,root:x})),...i,role:"menu",children:r}):c.jsx(Nd,{"data-slot":"accordion-menu",value:v,className:X("w-full",n==null?void 0:n.root,e),onValueChange:x=>p(b=>({...b,root:x})),...i,role:"menu",children:r})})}function KA({children:e,className:t,...n}){const{classNames:r}=S.useContext(nl);return c.jsx("div",{"data-slot":"accordion-menu-group",role:"group",className:X("space-y-0.5",r==null?void 0:r.group,t),...n,children:e})}function Cq({children:e,className:t,...n}){const{classNames:r}=S.useContext(nl);return c.jsx("div",{"data-slot":"accordion-menu-label",role:"presentation",className:X("px-2 py-1.5 text-xs font-medium text-muted-foreground",r==null?void 0:r.label,t),...n,children:e})}const Aq=Mt("relative cursor-pointer select-none flex w-full text-start items-center text-foreground rounded-lg gap-2 px-2 py-1.5 text-sm outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground disabled:opacity-50 disabled:bg-transparent focus-visible:bg-accent focus-visible:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:opacity-60 [&_svg:not([class*=size-])]:size-4 [&_svg]:shrink-0 [&_a]:flex [&_a,&>div]:w-full [&_a,&>div]:items-center [&_a,&>div]:gap-2",{variants:{variant:{default:"",destructive:"text-destructive hover:text-destructive focus:text-destructive hover:bg-destructive/5 focus:bg-destructive/5 data-[active=true]:bg-destructive/5"}},defaultVariants:{variant:"default"}});function XA({className:e,children:t,variant:n,asChild:r,onClick:a,...s}){const{classNames:i,selectedValue:u,matchPath:d,onItemClick:f}=S.useContext(nl);return c.jsx(g1,{className:"flex",...s,children:c.jsx(v1,{className:"flex w-full",children:c.jsx(y1,{asChild:r,"data-slot":"accordion-menu-item",className:X(Aq({variant:n}),i==null?void 0:i.item,e),onClick:m=>{f&&f(s.value,m),a&&a(m),m.preventDefault()},onKeyDown:m=>{if(m.key==="Enter"){m.preventDefault();const v=m.currentTarget.firstElementChild;v&&v.click()}},"data-selected":d(s.value)||u===s.value?"true":void 0,children:t})})})}function QA({className:e,children:t,...n}){const{classNames:r}=S.useContext(nl);return c.jsx(g1,{"data-slot":"accordion-menu-sub",className:X(r==null?void 0:r.sub,e),...n,children:t})}function ZA({className:e,children:t}){const{classNames:n}=S.useContext(nl);return c.jsx(v1,{className:"flex",children:c.jsx(y1,{"data-slot":"accordion-menu-sub-trigger",className:X("w-full relative flex items-center cursor-pointer select-none text-start rounded-lg gap-2 px-2 py-1.5 text-sm outline-hidden text-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([role=img]):not([class*=text-])]:opacity-60 [&_svg:not([class*=size-])]:size-4 [&_svg]:shrink-0",n==null?void 0:n.subTrigger,e),children:c.jsxs(c.Fragment,{children:[t,c.jsx(Fc,{"data-slot":"accordion-menu-sub-indicator",className:X("ms-auto size-3.5! shrink-0 text-muted-foreground transition-transform duration-200 [[data-state=open]>&]:-rotate-180")})]})})})}function JA({className:e,children:t,type:n,collapsible:r,defaultValue:a,parentValue:s,...i}){const{nestedStates:u,setNestedStates:d,classNames:f}=S.useContext(nl);let m;if(n==="multiple"){const p=u[s];Array.isArray(p)?m=p:typeof p=="string"?m=[p]:a?m=Array.isArray(a)?a:[a]:m=[]}else m=u[s]??a??"";return c.jsx(tI,{"data-slot":"accordion-menu-sub-content",className:X("ps-5","overflow-hidden transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",f==null?void 0:f.subContent,e),...i,children:n==="multiple"?c.jsx(Nd,{className:X("w-full py-0.5",f==null?void 0:f.subWrapper),type:"multiple",value:m,role:"menu","data-slot":"accordion-menu-sub-wrapper",onValueChange:p=>{const v=Array.isArray(p)?p:[p];d(y=>({...y,[s]:v}))},children:t}):c.jsx(Nd,{className:X("w-full py-0.5",f==null?void 0:f.subWrapper),type:"single",collapsible:r,value:m,role:"menu","data-slot":"accordion-menu-sub-wrapper",onValueChange:p=>d(v=>({...v,[s]:p})),children:t})})}function _q(){const{pathname:e}=Rn(),t=Ge(),n=m=>m?t.formatMessage({id:m,defaultMessage:m}):"",r=S.useCallback(m=>m===e||m.length>1&&e.startsWith(m),[e]),a={root:"space-y-1",group:"gap-px",label:"uppercase text-xs font-medium text-muted-foreground/70 pt-2.25 pb-px",separator:"",item:"h-8 hover:bg-transparent text-accent-foreground hover:text-primary data-[selected=true]:text-primary data-[selected=true]:bg-muted data-[selected=true]:font-medium",sub:"",subTrigger:"h-8 hover:bg-transparent text-accent-foreground hover:text-primary data-[selected=true]:text-primary data-[selected=true]:bg-muted data-[selected=true]:font-medium",subContent:"py-0",indicator:""},s=m=>m.map((p,v)=>p.heading?f(p,v):p.disabled?c.jsx(c.Fragment,{}):i(p,v)),i=(m,p)=>m.children?c.jsxs(QA,{value:m.path||`root-${p}`,children:[c.jsxs(ZA,{className:"text-sm font-medium",children:[m.icon&&c.jsx(m.icon,{"data-slot":"accordion-menu-icon"}),c.jsxs("div",{className:"flex items-center justify-between grow gap-2",children:[c.jsx("span",{"data-slot":"accordion-menu-title",children:n(m.title)}),m.badge&&c.jsx(kt,{variant:"secondary",size:"sm",className:"ms-auto",children:m.badge})]})]}),c.jsx(JA,{type:"single",collapsible:!0,parentValue:m.path||`root-${p}`,className:"ps-6",children:c.jsx(KA,{children:u(m.children,1)})})]},p):c.jsx(XA,{value:m.path||"",className:"text-sm font-medium",children:c.jsxs(Pt,{to:m.path||"#",className:"",children:[m.icon&&c.jsx(m.icon,{"data-slot":"accordion-menu-icon"}),c.jsxs("div",{className:"flex items-center justify-between grow gap-2",children:[c.jsx("span",{"data-slot":"accordion-menu-title",children:n(m.title)}),m.badge&&c.jsx(kt,{variant:"secondary",size:"sm",className:"ms-auto",children:m.badge})]})]})},p),u=(m,p=0)=>m.map((v,y)=>v.disabled?c.jsx(c.Fragment,{}):d(v,y,p)),d=(m,p,v=0)=>m.children?c.jsxs(QA,{value:m.path||`child-${v}-${p}`,children:[c.jsxs(ZA,{className:"text-[13px]",children:[m.icon&&c.jsx(m.icon,{"data-slot":"accordion-menu-icon"}),m.collapse?c.jsxs("span",{className:"text-muted-foreground",children:[c.jsx("span",{className:"hidden [[data-state=open]>span>&]:inline",children:n(m.collapseTitle)}),c.jsx("span",{className:"inline [[data-state=open]>span>&]:hidden",children:n(m.expandTitle)})]}):n(m.title),m.badge&&c.jsx(kt,{variant:"secondary",size:"sm",className:"ms-auto",children:m.badge})]}),c.jsx(JA,{type:"single",collapsible:!0,parentValue:m.path||`child-${v}-${p}`,className:X("ps-4",!m.collapse&&"relative"),children:c.jsx(KA,{children:u(m.children,m.collapse?v:v+1)})})]},p):c.jsx(XA,{value:m.path||"",className:"text-[13px]",children:c.jsxs(Pt,{to:m.path||"#",children:[m.icon&&c.jsx(m.icon,{"data-slot":"accordion-menu-icon"}),c.jsxs("div",{className:"flex items-center justify-between grow gap-2",children:[c.jsx("span",{children:n(m.title)}),m.badge&&c.jsx(kt,{variant:"secondary",size:"sm",className:"ms-auto",children:m.badge})]})]})},p),f=(m,p)=>c.jsx(Cq,{children:n(m.heading)},p);return c.jsx("div",{className:"flex grow shrink-0 py-5 px-5",children:c.jsx(wq,{selectedValue:e,matchPath:r,type:"single",collapsible:!0,classNames:a,children:s(IG)})})}const Rq=()=>{const{pathname:e}=Rn(),[t,n]=S.useState(!1),r=QG();return S.useEffect(()=>{n(!1)},[e]),c.jsxs("div",{className:"flex items-center gap-3 lg:gap-6 xl:gap-10",children:[c.jsxs(Pt,{to:"/Student.aspx",className:"flex items-center gap-2.5 shrink-0 group",children:[c.jsx("img",{src:ns("/media/fpt/fpt-logo.png"),className:"max-h-[32px] transition-all duration-150 group-hover:drop-shadow-[2px_2px_0px_var(--accent)]",alt:"FPT University"}),c.jsx("span",{className:"hidden lg:block font-black text-base uppercase tracking-tight text-mono glitch-hover",children:"Academic Portal"})]}),r?c.jsxs(x$,{open:t,onOpenChange:n,children:[c.jsx(b$,{asChild:!0,children:c.jsx(ke,{variant:"outline",size:"sm",mode:"icon",className:"bg-white/5 border border-white/10 text-foreground hover:bg-accent/10 hover:text-accent hover:border-accent/20 transition-all duration-300 rounded-xl size-9 p-0 flex items-center justify-center shadow-[0_0_12px_rgba(255,255,255,0.02)] backdrop-blur-md",children:c.jsx(TV,{className:"size-5"})})}),c.jsxs(N$,{className:"p-0 gap-0 w-[275px]",side:"left",close:!1,children:[c.jsxs(w$,{className:"p-0 space-y-0",children:[c.jsx(A$,{className:"sr-only",children:"Navigation Menu"}),c.jsx(_$,{className:"sr-only",children:"Mobile Navigation Drawer"})]}),c.jsx(C$,{className:"p-0 flex flex-col grow",children:c.jsx(_q,{})})]})]}):c.jsx(cq,{})]})},Mq={"FAP.TITLE":"FAP - Academic Portal","USER.MENU.PUBLIC_PROFILE":"Public Profile","USER.MENU.MY_PROFILE":"My Profile","USER.MENU.MY_ACCOUNT":"My Account","USER.MENU.GET_STARTED":"Get Started","USER.MENU.BILLING":"Billing","USER.MENU.SECURITY":"Security","USER.MENU.MEMBERS_&_ROLES":"Members & Roles","USER.MENU.INTEGRATIONS":"Integrations","USER.MENU.NOTIFICATIONS":"Notifications","USER.MENU.DEV_FORUM":"Dev Forum","USER.MENU.PAYMENT_&_SUBSCRIPTION_INFO":"Payment & subscription info","USER.MENU.DARK_MODE":"Dark Mode","USER.MENU.LOGOUT":"Logout","USER.MENU.LANGUAGE":"Language","NEWS.TITLE":"News","NEWS.LATEST":"Latest News","NEWS.VIEW_ALL":"View All","NEWS.POSTED_AT":"Posted at {date}","NEWS.EMPTY":"No news items available","MENU.ACADEMIC_PORTAL":"Academic Portal","MENU.HOME":"Home","MENU.NEWS":"News","MENU.MAIN":"Main Menu","MENU.REGISTRATION_APPLICATION":"Registration/Application","MENU.REGISTER_COURSE":"Register Course","MENU.REGISTER_COURSE_ABROAD":"Register for courses abroad","MENU.REGISTER_EXTRA_COURSES":"Register extra courses","MENU.REGISTER_IMPROVE_MARK":"Register to improve mark","MENU.REGISTER_REPEAT_COURSE":"Register to repeat a course","MENU.REGISTER_FREE_ELECTIVE":"Register Free Elective Courses","MENU.REGISTER_FAST_TRACK":"Register fast-track course","MENU.REGISTER_TUTORING":"Register tutoring course","MENU.CANCEL_REGISTRATION":"Cancel registration","MENU.WISHLIST_COURSE":"Wishlist Course","MENU.REGISTER_WISHLIST":"Register wishlist","MENU.REQUEST_CLASS_SWAP":"Request class swap with student","MENU.MOVE_OUT_CLASS":"Move out class","MENU.SUSPEND_AND_CONFIRM":"Suspend & Confirm","MENU.SUSPEND_ONE_SEMESTER_REPEAT":"Suspend one semester to take repeated course","MENU.SUSPEND_ONE_SEMESTER":"Suspend one semester","MENU.STUDENT_CONFIRMATION":"Student Confirmation","MENU.SEND_APPLICATION":"Send Application","MENU.VIEW_APPLICATION":"View Application","MENU.OTHERS":"Others","MENU.INSURANCE_REGISTER":"Register for Health Insurance","MENU.STARTUP_SUPPORT":"Startup support request","MENU.VIEW_STARTUP_SUPPORT":"View startup support","MENU.ATTENDANCE_BY_CODE":"Attendance by code","MENU.CHOOSE_PAID_ITEMS":"Choose paid items","MENU.PAYMENT":"Payment","MENU.ORIENTATION_GUIDE":"Orientation guide for students","MENU.UPGRADE_SEB":"Upgrade SAFE EXAM BROWSER (SEB)","MENU.LOOKUP":"Information Access","MENU.SCHEDULE_AND_EXAM":"Schedule & Exam","MENU.UNIVERSITY_TIMETABLE":"University timetable","MENU.WEEKLY_TIMETABLE":"Weekly timetable","MENU.VIEW_EXAM_SCHEDULE":"View exam schedule","MENU.STUDENT_BOOK_ROOM":"Student book room","MENU.TUITION_AND_SYLLABUS":"Tuition & Syllabus","MENU.TUITION_FEE_PER_COURSE":"Tuition fee per course","MENU.VIEW_SYLLABUSES":"View Syllabuses","MENU.EDUNEXT_GUIDE":"EduNext student guideline","MENU.RESULTS_AND_SUPPORT":"Results & Support","MENU.OJT":"OJT","MENU.GRADUATION_THESIS":"Graduation thesis review","MENU.HELP":"Help","MENU.REPORTS":"Reports","MENU.STUDY_REPORT":"Study Report","MENU.ATTENDANCE_REPORT":"Attendance report","MENU.MARK_REPORT":"Mark Report","MENU.ACADEMIC_TRANSCRIPT":"Academic Transcript","MENU.CURRICULUM":"Curriculum","MENU.TRANSACTION_HISTORY":"Transaction history","MENU.CERTIFICATES":"Certificates","MENU.REPORT_MOVEMENT_SCORE":"Movement score report","MENU.FEEDBACK":"Feedback","MENU.FEEDBACK_TEACHING":"Feedback about teaching","MENU.INFORMATION":"Others","MENU.PERSONAL_INFORMATION":"Personal Information","MENU.STUDENT_PROFILE":"Student Profile","MENU.UPDATE_PROFILE":"Update Profile","MENU.VIEW_SEMESTER":"View semester","MENU.VIEW_ROOM":"View room","MENU.REGULATIONS":"Regulations","MENU.GENERAL_REGULATIONS":"General Regulations","MENU.DORMITORY_REGULATIONS_HANOI":"Dormitory regulations (Hanoi)","MENU.DORMITORY_REGULATIONS_CANTHO":"Dormitory regulations (Can Tho)","MENU.DORMITORY_ON_CAMPUS":"On Campus Dormitory","MENU.COURSES_ON_COURSERA":"Coursera","MENU.INFORMATION_AND_GUIDE":"Information & Guide","MENU.ANNOUNCEMENT":"Announcement","MENU.CERTIFICATE_GUIDE":"Certificate submission guideline","MENU.WILEY_GUIDE":"How to access Wiley eBook on VitalSource platform","MENU.STUDY_SUPPORT":"Study Support","MENU.ASK_MENTOR":"Ask mentor","MENU.VIEW_ANSWER":"View answer","MENU.SUBMIT_CERTIFICATES":"Submit certificates","MENU.DOWNLOAD_EOSCLIENT":"Download EOSClient","DASHBOARD.APPLICATION_DEADLINE.PROCEDURE_TYPE":"Procedure type","DASHBOARD.APPLICATION_DEADLINE.DEADLINE":"Application deadline","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_4_WEEKS_BEFORE_NEW_SEMESTER":"4 weeks before the new semester","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_10_DAYS_BEFORE_NEW_SEMESTER":"10 days before the new semester","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_1_WEEK_BEFORE_NEW_SEMESTER":"1 week before the new semester","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_12H_BEFORE_FINAL_EXAM_RESIT":"12 hours before the final exam resit","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_3_DAYS_AFTER_RESULT_PUBLIC":"3 days after the examination result public","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_BEFORE_SEMESTER_START":"Before starting the new semester","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_5_WORKING_DAYS_BEFORE_NEW_SEMESTER":"5 working days before the new semester (excluding Sat, Sun)","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_3_WORKING_DAYS_BEFORE_NEW_COURSE":"3 working days before the new course (excluding Sat, Sun)","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_12H_FRIDAY_WEEK9":"12 a.m - Friday of the ninth week of the semester","DASHBOARD.APPLICATION_DEADLINE.PROC_CHANGING_MAJOR":"Changing major","DASHBOARD.APPLICATION_DEADLINE.PROC_CHANGING_CAMPUS":"Changing campus","DASHBOARD.APPLICATION_DEADLINE.PROC_REJOIN":"Rejoin","DASHBOARD.APPLICATION_DEADLINE.PROC_SUSPEND_ONE_SEMESTER":"Suspend one semester","DASHBOARD.APPLICATION_DEADLINE.PROC_SUSPEND_ONE_SEMESTER_REPEAT":"Suspend one semester to take repeated course","DASHBOARD.APPLICATION_DEADLINE.PROC_SUSPEND_SUBJECT":"Suspend subject","DASHBOARD.APPLICATION_DEADLINE.PROC_REGISTER_REPEAT_COURSE":"Register to repeat a course","DASHBOARD.APPLICATION_DEADLINE.PROC_REGISTER_EXTRA_COURSES":"Register extra courses","DASHBOARD.APPLICATION_DEADLINE.PROC_REGISTER_IMPROVE_MARK":"Register to improve mark","DASHBOARD.APPLICATION_DEADLINE.PROC_MOVE_OUT_CLASS":"Move out class","DASHBOARD.APPLICATION_DEADLINE.PROC_REQUEST_DROP_OUT":"Request a drop out","DASHBOARD.APPLICATION_DEADLINE.PROC_RETAKE_IMPROVE_MARK":"Retake to improve mark","DASHBOARD.APPLICATION_DEADLINE.PROC_RE_EXAMINATION":"Re-examination","DASHBOARD.APPLICATION_DEADLINE.PROC_FREE_OF_ATTENDANCE":"Free of attendance","DASHBOARD.APPLICATION_DEADLINE.PROC_PAY_SPECIALIZED_TUITION":"Pay specialized tuition","DASHBOARD.APPLICATION_DEADLINE.PROC_PAY_PREPARATION_ENGLISH_TUITION":"Pay preparation English tuition","DASHBOARD.APPLICATION_DEADLINE.PROC_REGISTER_FINAL_EXAM_ONLINE":"Register for final exam for subjects online","SCHEDULE.CONTROLS.SELECT_YEAR":"Select year","SCHEDULE.CONTROLS.SELECT_WEEK":"Select week","SCHEDULE.CONTROLS.IMPORT_TO_CALENDAR":"Import to Calendar","SCHEDULE.STATS.PENDING_SLOT":"pending slot","SCHEDULE.STATS.ATTENDED_SLOT":"attended slot","SCHEDULE.STATS.ABSENT_SLOT":"absent slot","SCHEDULE.STATS.NOT_YET":"Not Yet","SCHEDULE.STATS.ATTENDED":"Attended","SCHEDULE.STATS.ABSENT":"Absent","SCHEDULE.BUILDING_GUIDE.TITLE":"Campus Building Guide","SCHEDULE.BUILDING_GUIDE.CONTENT":'<ul className="space-y-1 text-muted-foreground"><li>• Rooms starting with <strong>AL</strong> belong to Alpha building. E.g: AL...</li><li>• Rooms starting with <strong>BE</strong> belong to Beta building. E.g: BE...</li><li>• Rooms starting with <strong>GA</strong> belong to Gamma building. E.g: G201...</li><li>• Rooms starting with <strong>DE</strong> belong to Delta building. E.g: DE...</li><li>• Practice rooms starting with <strong>R</strong> belong to Vovinam practice area.</li><li>• Little UK (<strong>LUK</strong>) is located on the 5th floor of Delta building</li><li>• Martial arts hall No. 1 (<strong>VOV1</strong> - located at the end of Alpha building) includes 6 practice courts: R01-VOV1 to R06-VOV1</li><li>• Martial arts hall No. 2 (<strong>VOV2</strong> - next to school gate) includes 8 practice courts: R01-VOV2 to R08-VOV2</li><li>• Martial arts hall No. 3 (<strong>VOV3</strong> - next to Delta lake) includes 4 practice courts: R01-VOV3 to R04-VOV3</li></ul>',"SCHEDULE.IMPORT.TITLE":"Import to Calendar","SCHEDULE.IMPORT.NO_CLASSES":"No upcoming classes available to import","SCHEDULE.IMPORT.SELECT_ALL_CLASSES":"Select All Classes","SCHEDULE.SHIFT_DETAIL.TITLE":"Class Activity Details","SCHEDULE.SHIFT_DETAIL.CLASS_DETAILS":"Class Details","SCHEDULE.SHIFT_DETAIL.RESOURCES_LINKS":"Resources & Links","SCHEDULE.SHIFT_DETAIL.NO_DETAILS":"No details available for this activity","COMMON.CLOSE":"Close","ATTENDANCE.REPORT.TITLE":"Attendance Report","ATTENDANCE.FILTER.PLACEHOLDER":"Filter status","ATTENDANCE.FILTER.ALL_CLASSES":"All classes","ATTENDANCE.FILTER.PRESENT_ONLY":"Present only","ATTENDANCE.FILTER.ABSENT_ONLY":"Absent only","ATTENDANCE.FILTER.UPCOMING_ONLY":"Upcoming only","ATTENDANCE.VIEW.GRID":"Grid View","ATTENDANCE.VIEW.LIST":"List View","ATTENDANCE.EMPTY.TITLE":"No classes found","ATTENDANCE.EMPTY.NO_FILTER_CLASSES":"No {filter} classes found. Try changing the filter.","ATTENDANCE.EMPTY.NO_COURSE_CLASSES":"There are no classes for this course.","ATTENDANCE.TABLE.DATE":"Date","ATTENDANCE.TABLE.TIME":"Time","ATTENDANCE.TABLE.ROOM":"Room","ATTENDANCE.TABLE.LECTURER":"Lecturer","ATTENDANCE.TABLE.STATUS":"Status","ATTENDANCE.STATS.TITLE":"Attendance Statistics","ATTENDANCE.STATS.PRESENT":"Present","ATTENDANCE.STATS.ABSENT":"Absent","ATTENDANCE.STATS.UPCOMING":"Upcoming","ATTENDANCE.COURSE_SELECTOR.TITLE":"Select course","ATTENDANCE.COURSE_SELECTOR.EMPTY_TITLE":"No courses found","ATTENDANCE.COURSE_SELECTOR.EMPTY_MESSAGE":"No courses found for this term.","COMMON.SLOT":"Slot {number}","HELP.LOADING.QUESTIONS":"Loading questions...","HELP.TITLE":"Frequently Asked Questions","HELP.QUESTIONS_COUNT":"{count, plural, =0 {No questions} =1 {1 question} other {# questions}} available","HELP.SEARCH.PLACEHOLDER":"Search questions...","HELP.SEARCH.NO_MATCH_TITLE":"No questions match your search","HELP.SEARCH.NO_MATCH_MESSAGE":"Try a different search term or {clearLink}","HELP.SEARCH.CLEAR":"clear your search","HELP.EMPTY.NO_QUESTIONS":"No FAQ questions available","HELP.LOADING.ANSWER":"Loading answer...","HELP.ANSWER.NOT_AVAILABLE":"No answer available for this question.","HELP.TIPS.TITLE":"Tips for finding answers","HELP.TIPS.TIP_1":"Use the search box to find specific topics","HELP.TIPS.TIP_2":"Click on a question to view the answer","HELP.TIPS.TIP_3":"If you can't find what you're looking for, contact your academic advisor","HELP.CONTACT.TITLE":"Contact support","HELP.CONTACT.MESSAGE":"If you need additional help, you can contact the support team.","HELP.CONTACT.STUDENT_SERVICE_OFFICE":"Student Service Office:","HELP.ERROR.LOADING_CONTENT":"Error loading content.","COMMON.LOADING":"Loading...","GRADE.COURSE_SELECTOR.TITLE":"Select course","GRADE.COURSE_SELECTOR.EMPTY_TITLE":"No courses found","GRADE.COURSE_SELECTOR.EMPTY_MESSAGE":"No courses found for this term.","GRADE.COURSE_SELECTOR.ACTIVE_STATUS":"Showing","GRADE.REPORT.TITLE":"Grade Report","GRADE.REPORT.SELECT_COURSE_MESSAGE":"Select a course to see the report","ANNOUNCE.TITLE":"Announcement","SUBJECT_FEES.TABLE.SUBJECT_CODE":"Subject Code","SUBJECT_FEES.TABLE.SUBJECT_NAME":"Subject Name","SUBJECT_FEES.TABLE.CREDITS":"Credits","SUBJECT_FEES.TABLE.CREDITS_TOOLTIP":"Number of credits for this subject","SUBJECT_FEES.TABLE.FEE":"Fee","SUBJECT_FEES.TABLE.INTERNATIONAL_FEE":"International Fee","SUBJECT_FEES.SEARCH.PLACEHOLDER":"Search subjects...","CURRICULUM.INFO.LABEL":"Curriculum:","CURRICULUM.SUBJECTS.TITLE":"Curriculum Subjects","CURRICULUM.TABLE.NO":"No.","CURRICULUM.TABLE.SUBJECT_CODE":"Subject Code","CURRICULUM.TABLE.SUBJECT_NAME":"Subject Name","CURRICULUM.TABLE.TERM":"Term","CURRICULUM.PREREQUISITES.TITLE":"Subject Prerequisites","CURRICULUM.TABLE.PREREQUISITE":"Prerequisite","CURRICULUM.TABLE.ALTERNATIVE":"Alternative","CURRICULUM.TABLE.CONDITION":"Condition","TRANSACTION.REPORT.TITLE":"Transaction Report","TRANSACTION.REPORT.DESCRIPTION":"Select date range to view transaction history","TRANSACTION.FILTER.FROM_DATE":"From Date","TRANSACTION.FILTER.TO_DATE":"To Date","TRANSACTION.FILTER.SELECT_DATE":"Select date","TRANSACTION.ACTIONS.VIEW":"View","TRANSACTION.ACTIONS.EXPORT":"Export","TRANSACTION.HISTORY.TITLE":"Transaction History","TRANSACTION.HISTORY.SHOWING":"Showing {count} transactions from {fromDate} to {toDate}","TRANSACTION.EMPTY.NO_DISPLAY_TITLE":"No Transactions to Display","TRANSACTION.EMPTY.NO_DISPLAY_MESSAGE":"Select a date range above and click View to see your transaction history","TRANSACTION.EMPTY.NOT_FOUND_TITLE":"No Transactions Found","TRANSACTION.EMPTY.NOT_FOUND_MESSAGE":"No transactions were found for the selected date range","TRANSACTION.TABLE.NO":"No.","TRANSACTION.TABLE.RECEIPT_NO":"Receipt No","TRANSACTION.TABLE.DATE":"Date","TRANSACTION.TABLE.FEE_TYPE":"Fee Type","TRANSACTION.TABLE.AMOUNT":"Amount","TRANSACTION.TABLE.INPUT_BY":"Input By","TRANSACTION.TABLE.DESCRIPTION":"Description","TRANSACTION.SUMMARY.TOTAL_BALANCE":"Total Balance:","EXAM.STATS.TOTAL":"Total:","EXAM.STATS.UPCOMING":"Upcoming","EXAM.STATS.COMPLETED":"Completed","EXAM.STATS.NEXT":"Next:","EXAM.STATS.COMPLETE_PERCENTAGE":"% complete","EXAM.TABS.ALL_EXAMS":"All Exams","EXAM.EMPTY.NO_EXAMS_TITLE":"No exams found","EXAM.EMPTY.NO_EXAMS_MESSAGE":"There are no exams scheduled for your courses","EXAM.EMPTY.NO_UPCOMING_TITLE":"No upcoming exams","EXAM.EMPTY.NO_UPCOMING_MESSAGE":"You don't have any upcoming exams scheduled","EXAM.EMPTY.NO_COMPLETED_TITLE":"No completed exams","EXAM.EMPTY.NO_COMPLETED_MESSAGE":"You haven't completed any exams yet","EXAM.STATUS.UPCOMING":"Upcoming","EXAM.STATUS.ONGOING":"Ongoing","EXAM.STATUS.COMPLETED":"Completed","EXAM.STATUS.UNKNOWN":"Unknown","EXAM.CARD.EXAM_DATE":"Exam Date","EXAM.CARD.EXAM_TIME":"Exam Time","EXAM.CARD.ROOM_NO":"Room No","EXAM.CARD.PUBLIC_DATE":"Public Date","EXAM.CARD.NOT_ASSIGNED":"Not assigned yet","EXAM.CARD.COMING_UP":"Coming up in {timeRemaining}","EXAM.TIME.DAYS":"{count, plural, =1 {day} other {days}}","EXAM.TIME.HOURS":"{count, plural, =1 {hour} other {hours}}","PROFILE.TABS.PROFILE":"Profile","PROFILE.TABS.ACADEMIC":"Academic","PROFILE.TABS.PARENT":"Parent","PROFILE.TABS.OTHER":"Other","PROFILE.ACTIONS.EDIT_PROFILE":"Edit Profile","PROFILE.INFO.PROFILE":"Profile Information","PROFILE.INFO.ACADEMIC":"Academic Information","PROFILE.INFO.PARENT":"Parent Information","PROFILE.INFO.OTHER":"Other Information","PROFILE.CARD.NOT_PROVIDED":"Not provided","PROFILE.CARD.NO_INFORMATION_TITLE":"No Information Available","PROFILE.CARD.NO_INFORMATION_MESSAGE":"There is no {title} data available at this time.","PROFILE.IMAGE.ALT":"User","PROFILE.UPDATE.BACK_TO_PROFILE":"Back to Profile","PROFILE.UPDATE.TITLE":"Update Profile","PROFILE.UPDATE.WARNING":"This is important information used by the university for graduation certificates, transcripts, and certificates issued to students. It is also used for reporting to relevant ministries, so students need to enter complete and accurate information.","GROUPS.COURSE.GROUP_LABEL":"Group","GROUPS.STATS.TOTAL":"Total:","GROUPS.STATS.STUDENTS":"students","GROUPS.TABLE.TITLE":"Group Members","GROUPS.TABLE.DESCRIPTION":"Students enrolled in {groupName} group for {courseName}","GROUPS.TABLE.NO":"No.","GROUPS.TABLE.ROLL_NUMBER":"Roll Number","GROUPS.TABLE.SURNAME":"Surname","GROUPS.TABLE.MIDDLE_NAME":"Middle Name","GROUPS.TABLE.GIVEN_NAME":"Given Name","GROUPS.TABLE.FULL_NAME":"Full Name","GROUPS.TABLE.YOU":"You","ACTIVITY.INFO.TITLE":"Important Information","ACTIVITY.INFO.RULE_1":"Each student can book a maximum of 4 slots per week.","ACTIVITY.INFO.RULE_2":"Available booking times: slots 7-8 on weekdays and slots 1-6 on weekends.","ACTIVITY.INFO.RULE_3":'Rooms marked with "+" are available for booking. Rooms with "i" are already booked or reserved for other purposes.',"ACTIVITY.BOOKING.TITLE":"Booking Options","ACTIVITY.FORM.CAMPUS":"Campus","ACTIVITY.FORM.AREA":"Area","ACTIVITY.FORM.DATE":"Date","ACTIVITY.FORM.SELECT_CAMPUS":"Select campus","ACTIVITY.FORM.SELECT_AREA":"Select area","ACTIVITY.ACTIONS.VIEW":"View","ACTIVITY.ACTIONS.LOADING":"Loading...","ACTIVITY.LEGEND.THEORETICAL_THEATRE":"Theoretical theatre","ACTIVITY.LEGEND.MEETING_ROOM":"Meeting room","ACTIVITY.LEGEND.CLASS_ROOM":"Class room","ACTIVITY.LEGEND.COMPUTER_LAB":"Computer lab","ACTIVITY.LEGEND.GUEST_ROOM":"Guest room","ACTIVITY.MY_BOOKINGS.TITLE":"My Bookings","NEWS.DETAIL.BACK_TO_NEWS":"Back to News","NEWS.BREADCRUMB.NEWS":"News","APPLICATION.LOADING":"Loading data...","APPLICATION.EMPTY":"No applications found.","APPLICATION.TABLE.TYPE":"Application Type","APPLICATION.TABLE.PURPOSE":"Purpose","APPLICATION.TABLE.CREATE_DATE":"Created Date","APPLICATION.TABLE.STATUS":"Status","APPLICATION.TABLE.PROCESSED_AT":"Processed At","APPLICATION.DETAIL.TITLE":"Application Details","APPLICATION.DETAIL.TYPE":"Application Type:","APPLICATION.DETAIL.CREATE_DATE":"Created Date:","APPLICATION.DETAIL.PROCESSED_AT":"Processed At:","APPLICATION.DETAIL.PURPOSE":"Purpose:","APPLICATION.DETAIL.PROCESS_NOTE":"Processing Response:","APPLICATION.DETAIL.NO_RESPONSE":"None","APPLICATION.DETAIL.ATTACHMENT":"Attachment:","APPLICATION.ACTIONS.CLOSE":"Close","TRANSCRIPT.EMPTY":"No transcript data available.","TRANSCRIPT.TERM":"Term","TRANSCRIPT.SESSION":"{session} {year}","TRANSCRIPT.STATS.AVG":"AVG:","TRANSCRIPT.STATS.TOTAL_CREDITS":"Total Credits:","TRANSCRIPT.STATS.COURSES":"Courses:","TRANSCRIPT.TABLE.NO":"No.","TRANSCRIPT.TABLE.CODE":"Code","TRANSCRIPT.TABLE.NAME":"Name","TRANSCRIPT.TABLE.CREDIT":"Credit","TRANSCRIPT.TABLE.GRADE":"Grade","TRANSCRIPT.TABLE.STATUS":"Status","TRANSCRIPT.DETAILS.PREREQ":"Prereq:","TRANSCRIPT.DETAILS.REPLACED":"Replaced:","TRANSCRIPT.SUMMARY.AVERAGE_GPA":"Average GPA","TRANSCRIPT.SUMMARY.TOTAL_CREDITS":"Total Credits","TRANSCRIPT.SETTINGS.TITLE":"GPA Calculation Settings","TRANSCRIPT.SETTINGS.BUTTON":"GPA Calculation Settings","TRANSCRIPT.SETTINGS.DESCRIPTION":"Subject codes that will be excluded from GPA calculation:","TRANSCRIPT.SETTINGS.ADD_PLACEHOLDER":"Add subject code...","TRANSCRIPT.SETTINGS.ADD":"Add","TRANSCRIPT.SETTINGS.REMOVE":"Remove","TRANSCRIPT.SETTINGS.CANCEL":"Cancel","TRANSCRIPT.SETTINGS.SAVE":"Save","LOGIN.TITLE":"Sign In","LOGIN.SUBTITLE":"Students, Lecturers, Staff of FPT University","LOGIN.GOOGLE":"Sign in with Google","LOGIN.FEID_SEPARATOR":"or with FeID","LOGIN.FEID":"Sign in with FeID"},Oq={"FAP.TITLE":"FAP - Academic Portal","USER.MENU.PUBLIC_PROFILE":"Profil Public","USER.MENU.MY_PROFILE":"Mon Profil","USER.MENU.MY_ACCOUNT":"Mon Compte","USER.MENU.GET_STARTED":"Commencer","USER.MENU.BILLING":"Facturation","USER.MENU.SECURITY":"Sécurité","USER.MENU.MEMBERS_&_ROLES":"Membres et Rôles","USER.MENU.INTEGRATIONS":"Intégrations","USER.MENU.NOTIFICATIONS":"Notifications","USER.MENU.DEV_FORUM":"Forum de Développement","USER.MENU.PAYMENT_&_SUBSCRIPTION_INFO":"Informations sur le paiement et l'abonnement","USER.MENU.DARK_MODE":"Mode sombre","USER.MENU.LOGOUT":"Déconnexion","USER.MENU.LANGUAGE":"Langue","NEWS.TITLE":"Tin tức","NEWS.LATEST":"Tin tức mới nhất","NEWS.VIEW_ALL":"Xem tất cả","NEWS.POSTED_AT":"Đăng lúc {date}","NEWS.EMPTY":"Không có tin tức nào","MENU.ACADEMIC_PORTAL":"Cổng thông tin học vụ","MENU.HOME":"Trang chủ","MENU.NEWS":"Tin tức","MENU.MAIN":"Menu chính","MENU.REGISTRATION_APPLICATION":"Thủ tục / đơn từ","MENU.REGISTER_COURSE":"Đăng ký học","MENU.REGISTER_COURSE_ABROAD":"Đăng ký học môn học tại nước ngoài","MENU.REGISTER_EXTRA_COURSES":"Đăng ký môn học đi chậm kỳ","MENU.REGISTER_IMPROVE_MARK":"Đăng ký học cải thiện điểm","MENU.REGISTER_REPEAT_COURSE":"Đăng ký học lại","MENU.REGISTER_FREE_ELECTIVE":"Đăng ký môn tự chọn","MENU.REGISTER_FAST_TRACK":"Đăng ký học vượt kỳ","MENU.REGISTER_TUTORING":"Đăng ký học phụ đạo","MENU.CANCEL_REGISTRATION":"Hủy đăng ký học","MENU.WISHLIST_COURSE":"Danh sách môn học chờ lớp","MENU.REGISTER_WISHLIST":"Đăng ký danh sách chờ","MENU.REQUEST_CLASS_SWAP":"Yêu cầu đổi chéo lớp","MENU.MOVE_OUT_CLASS":"Xin chuyển lớp","MENU.SUSPEND_AND_CONFIRM":"Tạm hoãn & Xác nhận","MENU.SUSPEND_ONE_SEMESTER_REPEAT":"Tạm hoãn một học kỳ để học lại","MENU.SUSPEND_ONE_SEMESTER":"Xin tạm nghỉ một học kỳ","MENU.STUDENT_CONFIRMATION":"Xin xác nhận sinh viên","MENU.SEND_APPLICATION":"Gửi đơn","MENU.VIEW_APPLICATION":"Xem đơn","MENU.OTHERS":"Khác","MENU.INSURANCE_REGISTER":"Đăng ký bảo hiểm y tế","MENU.STARTUP_SUPPORT":"Đề nghị hỗ trợ kinh phí khởi nghiệp","MENU.VIEW_STARTUP_SUPPORT":"Xem đề nghị hỗ trợ","MENU.ATTENDANCE_BY_CODE":"Điểm danh bằng mã","MENU.CHOOSE_PAID_ITEMS":"Lựa chọn các khoản nộp","MENU.PAYMENT":"Thanh toán","MENU.ORIENTATION_GUIDE":"Định hướng cho sinh viên","MENU.UPGRADE_SEB":"Nâng cấp SEB","MENU.LOOKUP":"Tra cứu","MENU.SCHEDULE_AND_EXAM":"Lịch học & Thi","MENU.UNIVERSITY_TIMETABLE":"Lịch học","MENU.WEEKLY_TIMETABLE":"Thời khóa biểu từng tuần","MENU.VIEW_EXAM_SCHEDULE":"Xem lịch thi","MENU.STUDENT_BOOK_ROOM":"Đặt phòng học","MENU.TUITION_AND_SYLLABUS":"Học phí & Đề cương","MENU.TUITION_FEE_PER_COURSE":"Biểu học phí","MENU.VIEW_SYLLABUSES":"Xem đề cương môn học","MENU.EDUNEXT_GUIDE":"Hướng dẫn EduNext","MENU.RESULTS_AND_SUPPORT":"Kết quả & Hỗ trợ","MENU.OJT":"Kết quả OJT","MENU.GRADUATION_THESIS":"Kết quả KLTN","MENU.HELP":"Hỗ trợ","MENU.REPORTS":"Báo cáo","MENU.STUDY_REPORT":"Báo cáo học tập","MENU.ATTENDANCE_REPORT":"Báo cáo điểm danh","MENU.MARK_REPORT":"Báo cáo điểm","MENU.ACADEMIC_TRANSCRIPT":"Bảng điểm","MENU.CURRICULUM":"Khung chương trình","MENU.TRANSACTION_HISTORY":"Lịch sử giao dịch","MENU.CERTIFICATES":"Các loại chứng chỉ","MENU.REPORT_MOVEMENT_SCORE":"Báo cáo điểm phong trào","MENU.FEEDBACK":"Ý kiến","MENU.FEEDBACK_TEACHING":"Ý kiến về việc giảng dạy","MENU.INFORMATION":"Thông tin","MENU.PERSONAL_INFORMATION":"Thông tin cá nhân","MENU.STUDENT_PROFILE":"Hồ sơ sinh viên","MENU.UPDATE_PROFILE":"Cập nhật hồ sơ","MENU.VIEW_SEMESTER":"Thông tin học kỳ","MENU.VIEW_ROOM":"Thông tin phòng học","MENU.REGULATIONS":"Quy định","MENU.GENERAL_REGULATIONS":"Quy định chung","MENU.DORMITORY_REGULATIONS_HANOI":"Nội quy KTX Hà Nội","MENU.DORMITORY_REGULATIONS_CANTHO":"Nội quy KTX Cần Thơ","MENU.DORMITORY_ON_CAMPUS":"Thông tin KTX Hòa Lạc","MENU.COURSES_ON_COURSERA":"Coursera","MENU.INFORMATION_AND_GUIDE":"Thông tin & Hướng dẫn","MENU.ANNOUNCEMENT":"Thông báo","MENU.CERTIFICATE_GUIDE":"Hướng dẫn nộp chứng chỉ","MENU.WILEY_GUIDE":"Hướng dẫn truy cập Wiley eBook","MENU.STUDY_SUPPORT":"Hỗ trợ học tập","MENU.ASK_MENTOR":"Hỏi đáp với mentor","MENU.VIEW_ANSWER":"Xem câu trả lời","MENU.SUBMIT_CERTIFICATES":"Nộp chứng chỉ","MENU.DOWNLOAD_EOSCLIENT":"Tải EOSClient","DASHBOARD.APPLICATION_DEADLINE.PROCEDURE_TYPE":"Loại thủ tục","DASHBOARD.APPLICATION_DEADLINE.DEADLINE":"Hạn nộp đơn","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_4_WEEKS_BEFORE_NEW_SEMESTER":"4 tuần trước học kỳ mới","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_10_DAYS_BEFORE_NEW_SEMESTER":"10 ngày trước học kỳ mới","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_1_WEEK_BEFORE_NEW_SEMESTER":"1 tuần trước học kỳ mới","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_12H_BEFORE_FINAL_EXAM_RESIT":"12h trước lịch thi lại","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_3_DAYS_AFTER_RESULT_PUBLIC":"3 ngày sau ngày công bố kết quả","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_BEFORE_SEMESTER_START":"Trước khi học kỳ bắt đầu","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_5_WORKING_DAYS_BEFORE_NEW_SEMESTER":"5 ngày trước học kỳ mới (không tính T7, CN)","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_3_WORKING_DAYS_BEFORE_NEW_COURSE":"3 ngày trước khi bắt đầu khóa học (không tính T7, CN)","DASHBOARD.APPLICATION_DEADLINE.DEADLINE_12H_FRIDAY_WEEK9":"12h Thứ 6 tuần thứ 9 của học kỳ","DASHBOARD.APPLICATION_DEADLINE.PROC_CHANGING_MAJOR":"Chuyển ngành","DASHBOARD.APPLICATION_DEADLINE.PROC_CHANGING_CAMPUS":"Chuyển cơ sở","DASHBOARD.APPLICATION_DEADLINE.PROC_REJOIN":"Nhập học trở lại","DASHBOARD.APPLICATION_DEADLINE.PROC_SUSPEND_ONE_SEMESTER":"Bảo lưu học kỳ","DASHBOARD.APPLICATION_DEADLINE.PROC_SUSPEND_ONE_SEMESTER_REPEAT":"Tạm ngưng tiến độ 1 học kỳ để học lại","DASHBOARD.APPLICATION_DEADLINE.PROC_SUSPEND_SUBJECT":"Tạm ngừng môn","DASHBOARD.APPLICATION_DEADLINE.PROC_REGISTER_REPEAT_COURSE":"Đăng ký học lại","DASHBOARD.APPLICATION_DEADLINE.PROC_REGISTER_EXTRA_COURSES":"Đăng ký học đi chậm kỳ","DASHBOARD.APPLICATION_DEADLINE.PROC_REGISTER_IMPROVE_MARK":"Đăng ký học cải thiện","DASHBOARD.APPLICATION_DEADLINE.PROC_MOVE_OUT_CLASS":"Chuyển lớp","DASHBOARD.APPLICATION_DEADLINE.PROC_REQUEST_DROP_OUT":"Thôi học tự nguyện","DASHBOARD.APPLICATION_DEADLINE.PROC_RETAKE_IMPROVE_MARK":"Thi cải thiện","DASHBOARD.APPLICATION_DEADLINE.PROC_RE_EXAMINATION":"Phúc tra","DASHBOARD.APPLICATION_DEADLINE.PROC_FREE_OF_ATTENDANCE":"Miễn điểm danh","DASHBOARD.APPLICATION_DEADLINE.PROC_PAY_SPECIALIZED_TUITION":"Nộp học phí chuyên ngành","DASHBOARD.APPLICATION_DEADLINE.PROC_PAY_PREPARATION_ENGLISH_TUITION":"Nộp học phí Tiếng Anh dự bị","DASHBOARD.APPLICATION_DEADLINE.PROC_REGISTER_FINAL_EXAM_ONLINE":"Đăng ký thi thẩm định các môn online","SCHEDULE.CONTROLS.SELECT_YEAR":"Chọn năm","SCHEDULE.CONTROLS.SELECT_WEEK":"Chọn tuần","SCHEDULE.CONTROLS.IMPORT_TO_CALENDAR":"Nhập vào lịch","SCHEDULE.STATS.PENDING_SLOT":"tiết chưa học","SCHEDULE.STATS.ATTENDED_SLOT":"tiết đã học","SCHEDULE.STATS.ABSENT_SLOT":"tiết vắng mặt","SCHEDULE.STATS.NOT_YET":"Chưa học","SCHEDULE.STATS.ATTENDED":"Đã học","SCHEDULE.STATS.ABSENT":"Vắng mặt","SCHEDULE.BUILDING_GUIDE.TITLE":"Hướng dẫn tòa nhà cơ sở","SCHEDULE.BUILDING_GUIDE.CONTENT":'<ul className="space-y-1 text-muted-foreground"><li>• Các phòng bắt đầu bằng <strong>AL</strong> thuộc tòa nhà Alpha. VD: AL...</li><li>• Các phòng bắt đầu bằng <strong>BE</strong> thuộc tòa nhà Beta. VD: BE...</li><li>• Các phòng bắt đầu bằng <strong>GA</strong> thuộc tòa nhà Gamma. VD: G201...</li><li>• Các phòng bắt đầu bằng <strong>DE</strong> thuộc tòa nhà Delta. VD: DE...</li><li>• Các phòng tập bắt đầu bằng <strong>R</strong> thuộc khu vực sân tập Vovinam.</li><li>• Little UK (<strong>LUK</strong>) thuộc tầng 5 tòa nhà Delta</li><li>• Nhà võ số 1 (<strong>VOV1</strong> - nằm cuối tòa nhà Alpha) gồm 6 sân tập: R01-VOV1 đến R06-VOV1</li><li>• Nhà võ số 2 (<strong>VOV2</strong> - cạnh cổng trường) gồm 8 sân tập: R01-VOV2 đến R08-VOV2</li><li>• Nhà võ số 3 (<strong>VOV3</strong> - cạnh hồ Delta) gồm 4 sân tập: R01-VOV3 đến R04-VOV3</li></ul>',"SCHEDULE.IMPORT.TITLE":"Nhập vào lịch","SCHEDULE.IMPORT.NO_CLASSES":"Không có lớp học sắp tới để nhập","SCHEDULE.IMPORT.SELECT_ALL_CLASSES":"Chọn tất cả lớp học","SCHEDULE.SHIFT_DETAIL.TITLE":"Chi tiết hoạt động lớp học","SCHEDULE.SHIFT_DETAIL.CLASS_DETAILS":"Chi tiết lớp học","SCHEDULE.SHIFT_DETAIL.RESOURCES_LINKS":"Tài nguyên & Liên kết","SCHEDULE.SHIFT_DETAIL.NO_DETAILS":"Không có chi tiết nào cho hoạt động này","COMMON.CLOSE":"Đóng","ATTENDANCE.REPORT.TITLE":"Báo cáo điểm danh","ATTENDANCE.FILTER.PLACEHOLDER":"Lọc trạng thái","ATTENDANCE.FILTER.ALL_CLASSES":"Tất cả lớp học","ATTENDANCE.FILTER.PRESENT_ONLY":"Chỉ có mặt","ATTENDANCE.FILTER.ABSENT_ONLY":"Chỉ vắng mặt","ATTENDANCE.FILTER.UPCOMING_ONLY":"Chỉ sắp tới","ATTENDANCE.VIEW.GRID":"Dạng lưới","ATTENDANCE.VIEW.LIST":"Dạng danh sách","ATTENDANCE.EMPTY.TITLE":"Không tìm thấy lớp học","ATTENDANCE.EMPTY.NO_FILTER_CLASSES":"Không tìm thấy lớp học {filter}. Thử thay đổi bộ lọc.","ATTENDANCE.EMPTY.NO_COURSE_CLASSES":"Không có lớp học nào cho môn học này.","ATTENDANCE.TABLE.DATE":"Ngày","ATTENDANCE.TABLE.TIME":"Thời gian","ATTENDANCE.TABLE.ROOM":"Phòng","ATTENDANCE.TABLE.LECTURER":"Giảng viên","ATTENDANCE.TABLE.STATUS":"Trạng thái","ATTENDANCE.STATS.TITLE":"Thống kê điểm danh","ATTENDANCE.STATS.PRESENT":"Có mặt","ATTENDANCE.STATS.ABSENT":"Vắng mặt","ATTENDANCE.STATS.UPCOMING":"Sắp tới","ATTENDANCE.COURSE_SELECTOR.TITLE":"Chọn môn học","ATTENDANCE.COURSE_SELECTOR.EMPTY_TITLE":"Không tìm thấy môn học","ATTENDANCE.COURSE_SELECTOR.EMPTY_MESSAGE":"Không có môn học nào cho học kỳ này.","COMMON.SLOT":"Tiết {number}","HELP.LOADING.QUESTIONS":"Đang tải câu hỏi...","HELP.TITLE":"Câu hỏi thường gặp","HELP.QUESTIONS_COUNT":"{count, plural, =0 {Không có câu hỏi} =1 {1 câu hỏi} other {# câu hỏi}} có sẵn","HELP.SEARCH.PLACEHOLDER":"Tìm kiếm câu hỏi...","HELP.SEARCH.NO_MATCH_TITLE":"Không có câu hỏi nào phù hợp với tìm kiếm","HELP.SEARCH.NO_MATCH_MESSAGE":"Thử từ khóa khác hoặc {clearLink}","HELP.SEARCH.CLEAR":"xóa tìm kiếm","HELP.EMPTY.NO_QUESTIONS":"Không có câu hỏi FAQ nào","HELP.LOADING.ANSWER":"Đang tải câu trả lời...","HELP.ANSWER.NOT_AVAILABLE":"Không có câu trả lời cho câu hỏi này.","HELP.TIPS.TITLE":"Mẹo tìm câu trả lời","HELP.TIPS.TIP_1":"Sử dụng ô tìm kiếm để tìm chủ đề cụ thể","HELP.TIPS.TIP_2":"Nhấp vào câu hỏi để xem câu trả lời","HELP.TIPS.TIP_3":"Nếu không tìm thấy thông tin cần thiết, hãy liên hệ cố vấn học tập","HELP.CONTACT.TITLE":"Liên hệ hỗ trợ","HELP.CONTACT.MESSAGE":"Nếu bạn cần thêm trợ giúp, có thể liên hệ với đội ngũ hỗ trợ.","HELP.CONTACT.STUDENT_SERVICE_OFFICE":"Phòng dịch vụ sinh viên:","HELP.ERROR.LOADING_CONTENT":"Lỗi khi tải nội dung.","COMMON.LOADING":"Đang tải...","GRADE.COURSE_SELECTOR.TITLE":"Chọn môn học","GRADE.COURSE_SELECTOR.EMPTY_TITLE":"Không tìm thấy môn học","GRADE.COURSE_SELECTOR.EMPTY_MESSAGE":"Không có môn học nào cho học kỳ này.","GRADE.COURSE_SELECTOR.ACTIVE_STATUS":"Đang hiển thị","GRADE.REPORT.TITLE":"Báo cáo điểm","GRADE.REPORT.SELECT_COURSE_MESSAGE":"Chọn một môn học để xem báo cáo","ANNOUNCE.TITLE":"Thông báo","SUBJECT_FEES.TABLE.SUBJECT_CODE":"Mã môn học","SUBJECT_FEES.TABLE.SUBJECT_NAME":"Tên môn học","SUBJECT_FEES.TABLE.CREDITS":"Tín chỉ","SUBJECT_FEES.TABLE.CREDITS_TOOLTIP":"Số tín chỉ cho môn học này","SUBJECT_FEES.TABLE.FEE":"Học phí","SUBJECT_FEES.TABLE.INTERNATIONAL_FEE":"Học phí quốc tế","SUBJECT_FEES.SEARCH.PLACEHOLDER":"Tìm kiếm môn học...","CURRICULUM.INFO.LABEL":"Khung chương trình:","CURRICULUM.SUBJECTS.TITLE":"Các môn học trong chương trình","CURRICULUM.TABLE.NO":"STT","CURRICULUM.TABLE.SUBJECT_CODE":"Mã môn học","CURRICULUM.TABLE.SUBJECT_NAME":"Tên môn học","CURRICULUM.TABLE.TERM":"Học kỳ","CURRICULUM.PREREQUISITES.TITLE":"Môn học tiên quyết","CURRICULUM.TABLE.PREREQUISITE":"Môn tiên quyết","CURRICULUM.TABLE.ALTERNATIVE":"Môn thay thế","CURRICULUM.TABLE.CONDITION":"Điều kiện","TRANSACTION.REPORT.TITLE":"Báo cáo giao dịch","TRANSACTION.REPORT.DESCRIPTION":"Chọn khoảng thời gian để xem lịch sử giao dịch","TRANSACTION.FILTER.FROM_DATE":"Từ ngày","TRANSACTION.FILTER.TO_DATE":"Đến ngày","TRANSACTION.FILTER.SELECT_DATE":"Chọn ngày","TRANSACTION.ACTIONS.VIEW":"Xem","TRANSACTION.ACTIONS.EXPORT":"Xuất file","TRANSACTION.HISTORY.TITLE":"Lịch sử giao dịch","TRANSACTION.HISTORY.SHOWING":"Hiển thị {count} giao dịch từ {fromDate} đến {toDate}","TRANSACTION.EMPTY.NO_DISPLAY_TITLE":"Không có giao dịch để hiển thị","TRANSACTION.EMPTY.NO_DISPLAY_MESSAGE":"Chọn khoảng thời gian ở trên và nhấp Xem để xem lịch sử giao dịch của bạn","TRANSACTION.EMPTY.NOT_FOUND_TITLE":"Không tìm thấy giao dịch","TRANSACTION.EMPTY.NOT_FOUND_MESSAGE":"Không tìm thấy giao dịch nào trong khoảng thời gian đã chọn","TRANSACTION.TABLE.NO":"STT","TRANSACTION.TABLE.RECEIPT_NO":"Số phiếu thu","TRANSACTION.TABLE.DATE":"Ngày","TRANSACTION.TABLE.FEE_TYPE":"Loại phí","TRANSACTION.TABLE.AMOUNT":"Số tiền","TRANSACTION.TABLE.INPUT_BY":"Người nhập","TRANSACTION.TABLE.DESCRIPTION":"Mô tả","TRANSACTION.SUMMARY.TOTAL_BALANCE":"Tổng số dư:","EXAM.STATS.TOTAL":"Tổng:","EXAM.STATS.UPCOMING":"Sắp tới","EXAM.STATS.COMPLETED":"Đã hoàn thành","EXAM.STATS.NEXT":"Tiếp theo:","EXAM.STATS.COMPLETE_PERCENTAGE":"% hoàn thành","EXAM.TABS.ALL_EXAMS":"Tất cả kỳ thi","EXAM.EMPTY.NO_EXAMS_TITLE":"Không tìm thấy kỳ thi","EXAM.EMPTY.NO_EXAMS_MESSAGE":"Không có kỳ thi nào được lên lịch cho các môn học của bạn","EXAM.EMPTY.NO_UPCOMING_TITLE":"Không có kỳ thi sắp tới","EXAM.EMPTY.NO_UPCOMING_MESSAGE":"Bạn không có kỳ thi nào sắp tới","EXAM.EMPTY.NO_COMPLETED_TITLE":"Chưa hoàn thành kỳ thi nào","EXAM.EMPTY.NO_COMPLETED_MESSAGE":"Bạn chưa hoàn thành kỳ thi nào","EXAM.STATUS.UPCOMING":"Sắp tới","EXAM.STATUS.ONGOING":"Đang diễn ra","EXAM.STATUS.COMPLETED":"Đã hoàn thành","EXAM.STATUS.UNKNOWN":"Không xác định","EXAM.CARD.EXAM_DATE":"Ngày thi","EXAM.CARD.EXAM_TIME":"Giờ thi","EXAM.CARD.ROOM_NO":"Phòng thi","EXAM.CARD.PUBLIC_DATE":"Ngày công bố điểm","EXAM.CARD.NOT_ASSIGNED":"Chưa được phân phòng","EXAM.CARD.COMING_UP":"Còn {timeRemaining} nữa","EXAM.TIME.DAYS":"{count, plural, =1 {ngày} other {ngày}}","EXAM.TIME.HOURS":"{count, plural, =1 {giờ} other {giờ}}","PROFILE.TABS.PROFILE":"Hồ sơ","PROFILE.TABS.ACADEMIC":"Học vụ","PROFILE.TABS.PARENT":"Phụ huynh","PROFILE.TABS.OTHER":"Khác","PROFILE.ACTIONS.EDIT_PROFILE":"Chỉnh sửa hồ sơ","PROFILE.INFO.PROFILE":"Thông tin hồ sơ","PROFILE.INFO.ACADEMIC":"Thông tin học vụ","PROFILE.INFO.PARENT":"Thông tin phụ huynh","PROFILE.INFO.OTHER":"Thông tin khác","PROFILE.CARD.NOT_PROVIDED":"Chưa cung cấp","PROFILE.CARD.NO_INFORMATION_TITLE":"Không có thông tin","PROFILE.CARD.NO_INFORMATION_MESSAGE":"Hiện tại không có dữ liệu {title} nào.","PROFILE.IMAGE.ALT":"Người dùng","PROFILE.UPDATE.BACK_TO_PROFILE":"Quay lại hồ sơ","PROFILE.UPDATE.TITLE":"Cập nhật hồ sơ","PROFILE.UPDATE.WARNING":"Đây là những thông tin quan trọng, được nhà trường dùng để in bằng tốt nghiệp, bảng điểm tốt nghiệp và các chứng chỉ cấp cho sinh viên, ngoài ra còn để báo cáo các Bộ ngành liên quan nên sinh viên cần nhập thông tin đầy đủ, chính xác.","GROUPS.COURSE.GROUP_LABEL":"Nhóm","GROUPS.STATS.TOTAL":"Tổng cộng:","GROUPS.STATS.STUDENTS":"sinh viên","GROUPS.TABLE.TITLE":"Thành viên nhóm","GROUPS.TABLE.DESCRIPTION":"Sinh viên đăng ký nhóm {groupName} cho môn {courseName}","GROUPS.TABLE.NO":"STT","GROUPS.TABLE.ROLL_NUMBER":"Mã SV","GROUPS.TABLE.SURNAME":"Họ","GROUPS.TABLE.MIDDLE_NAME":"Tên đệm","GROUPS.TABLE.GIVEN_NAME":"Tên","GROUPS.TABLE.FULL_NAME":"Họ và tên","GROUPS.TABLE.YOU":"Bạn","ACTIVITY.INFO.TITLE":"Thông tin quan trọng","ACTIVITY.INFO.RULE_1":"Mỗi sinh viên có thể đặt tối đa 4 tiết trong một tuần.","ACTIVITY.INFO.RULE_2":"Thời gian đặt phòng: tiết 7-8 trong ngày và tiết 1-6 cuối tuần.","ACTIVITY.INFO.RULE_3":'Phòng có dấu "+" có thể đặt được. Phòng có dấu "i" đã được đặt hoặc dành cho mục đích khác.',"ACTIVITY.BOOKING.TITLE":"Tùy chọn đặt phòng","ACTIVITY.FORM.CAMPUS":"Cơ sở","ACTIVITY.FORM.AREA":"Khu vực","ACTIVITY.FORM.DATE":"Ngày","ACTIVITY.FORM.SELECT_CAMPUS":"Chọn cơ sở","ACTIVITY.FORM.SELECT_AREA":"Chọn khu vực","ACTIVITY.ACTIONS.VIEW":"Xem","ACTIVITY.ACTIONS.LOADING":"Đang tải...","ACTIVITY.LEGEND.THEORETICAL_THEATRE":"Giảng đường lý thuyết","ACTIVITY.LEGEND.MEETING_ROOM":"Phòng họp","ACTIVITY.LEGEND.CLASS_ROOM":"Phòng học","ACTIVITY.LEGEND.COMPUTER_LAB":"Phòng máy tính","ACTIVITY.LEGEND.GUEST_ROOM":"Phòng khách","ACTIVITY.MY_BOOKINGS.TITLE":"Lịch đặt của tôi","NEWS.DETAIL.BACK_TO_NEWS":"Quay lại tin tức","NEWS.BREADCRUMB.NEWS":"Tin tức","APPLICATION.LOADING":"Đang tải dữ liệu...","APPLICATION.EMPTY":"Không có đơn nào.","APPLICATION.TABLE.TYPE":"Loại đơn","APPLICATION.TABLE.PURPOSE":"Mục đích","APPLICATION.TABLE.CREATE_DATE":"Ngày tạo","APPLICATION.TABLE.STATUS":"Trạng thái","APPLICATION.TABLE.PROCESSED_AT":"Xử lý lúc","APPLICATION.DETAIL.TITLE":"Chi tiết đơn từ","APPLICATION.DETAIL.TYPE":"Loại đơn:","APPLICATION.DETAIL.CREATE_DATE":"Ngày tạo:","APPLICATION.DETAIL.PROCESSED_AT":"Xử lý lúc:","APPLICATION.DETAIL.PURPOSE":"Mục đích:","APPLICATION.DETAIL.PROCESS_NOTE":"Phản hồi xử lý:","APPLICATION.DETAIL.NO_RESPONSE":"Không có","APPLICATION.DETAIL.ATTACHMENT":"Tệp đính kèm:","APPLICATION.ACTIONS.CLOSE":"Đóng","TRANSCRIPT.EMPTY":"Không có dữ liệu bảng điểm.","TRANSCRIPT.TERM":"Học kỳ","TRANSCRIPT.SESSION":"{session} {year}","TRANSCRIPT.STATS.AVG":"TB:","TRANSCRIPT.STATS.TOTAL_CREDITS":"Tổng tín chỉ:","TRANSCRIPT.STATS.COURSES":"Môn học:","TRANSCRIPT.TABLE.NO":"STT","TRANSCRIPT.TABLE.CODE":"Mã","TRANSCRIPT.TABLE.NAME":"Tên môn","TRANSCRIPT.TABLE.CREDIT":"Tín chỉ","TRANSCRIPT.TABLE.GRADE":"Điểm","TRANSCRIPT.TABLE.STATUS":"Trạng thái","TRANSCRIPT.DETAILS.PREREQ":"Tiên quyết:","TRANSCRIPT.DETAILS.REPLACED":"Thay thế:","TRANSCRIPT.SUMMARY.AVERAGE_GPA":"GPA trung bình","TRANSCRIPT.SUMMARY.TOTAL_CREDITS":"Tổng tín chỉ","TRANSCRIPT.SETTINGS.TITLE":"Cài đặt môn không tính GPA","TRANSCRIPT.SETTINGS.BUTTON":"Cài đặt môn không tính GPA","TRANSCRIPT.SETTINGS.DESCRIPTION":"Các mã môn sẽ không được tính vào GPA:","TRANSCRIPT.SETTINGS.ADD_PLACEHOLDER":"Thêm mã môn...","TRANSCRIPT.SETTINGS.ADD":"Thêm","TRANSCRIPT.SETTINGS.REMOVE":"Xóa","TRANSCRIPT.SETTINGS.CANCEL":"Hủy","TRANSCRIPT.SETTINGS.SAVE":"Lưu","LOGIN.TITLE":"Đăng nhập","LOGIN.SUBTITLE":"Sinh viên, Giảng viên, Cán bộ ĐH-FPT","LOGIN.GOOGLE":"Đăng nhập bằng Google","LOGIN.FEID_SEPARATOR":"hoặc bằng FeID","LOGIN.FEID":"Đăng nhập bằng FeID"},e_={vi:Oq,en:Mq},ab="i18nConfig",rp=[{label:"Vietnamese",code:"vi",direction:"ltr",flag:ns("/media/flags/vietnam.svg"),messages:e_.vi},{label:"English",code:"en",direction:"ltr",flag:ns("/media/flags/united-states.svg"),messages:e_.en}],Dq=rp[0],Iq=e=>{try{const t=localStorage.getItem(e);if(t)return JSON.parse(t)}catch(t){console.error("Read from local storage",t)}},nI=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("Save in local storage",n)}};var Oy={};const rI=wE(t7);var am={};function aI(e){return Intl.getCanonicalLocales(e)}function Pq(e,t){var n=t.zoneNames,r=t.uppercaseLinks,a=e.toUpperCase(),s=n.reduce(function(u,d){return u[d.toUpperCase()]=d,u},{}),i=r[a]||s[a];return i==="Etc/UTC"||i==="Etc/GMT"?"UTC":i}/*!
 *  decimal.js v10.5.0
 *  An arbitrary-precision Decimal type for JavaScript.
 *  https://github.com/MikeMcl/decimal.js
 *  Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
 *  MIT Licence
 */var sb=9e15,Qo=1e9,ob="0123456789abcdef",ap="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",sp="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",ib={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:sb,crypto:!1},sI,js,Be=!0,eg="[DecimalError] ",Uo=eg+"Invalid argument: ",oI=eg+"Precision limit exceeded",iI=eg+"crypto unavailable",lI="[object Decimal]",Jn=Math.floor,bn=Math.pow,jq=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Lq=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,kq=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,cI=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ya=1e7,Re=7,Uq=9007199254740991,Fq=ap.length-1,lb=sp.length-1,de={toStringTag:lI};de.absoluteValue=de.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),Ce(e)};de.ceil=function(){return Ce(new this.constructor(this),this.e+1,2)};de.clampedTo=de.clamp=function(e,t){var n,r=this,a=r.constructor;if(e=new a(e),t=new a(t),!e.s||!t.s)return new a(NaN);if(e.gt(t))throw Error(Uo+t);return n=r.cmp(e),n<0?e:r.cmp(t)>0?t:new a(r)};de.comparedTo=de.cmp=function(e){var t,n,r,a,s=this,i=s.d,u=(e=new s.constructor(e)).d,d=s.s,f=e.s;if(!i||!u)return!d||!f?NaN:d!==f?d:i===u?0:!i^d<0?1:-1;if(!i[0]||!u[0])return i[0]?d:u[0]?-f:0;if(d!==f)return d;if(s.e!==e.e)return s.e>e.e^d<0?1:-1;for(r=i.length,a=u.length,t=0,n=r<a?r:a;t<n;++t)if(i[t]!==u[t])return i[t]>u[t]^d<0?1:-1;return r===a?0:r>a^d<0?1:-1};de.cosine=de.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+Re,r.rounding=1,n=Bq(r,mI(r,n)),r.precision=e,r.rounding=t,Ce(js==2||js==3?n.neg():n,e,t,!0)):new r(1):new r(NaN)};de.cubeRoot=de.cbrt=function(){var e,t,n,r,a,s,i,u,d,f,m=this,p=m.constructor;if(!m.isFinite()||m.isZero())return new p(m);for(Be=!1,s=m.s*bn(m.s*m,1/3),!s||Math.abs(s)==1/0?(n=Hn(m.d),e=m.e,(s=(e-n.length+1)%3)&&(n+=s==1||s==-2?"0":"00"),s=bn(n,1/3),e=Jn((e+1)/3)-(e%3==(e<0?-1:2)),s==1/0?n="5e"+e:(n=s.toExponential(),n=n.slice(0,n.indexOf("e")+1)+e),r=new p(n),r.s=m.s):r=new p(s.toString()),i=(e=p.precision)+3;;)if(u=r,d=u.times(u).times(u),f=d.plus(m),r=_t(f.plus(m).times(u),f.plus(d),i+2,1),Hn(u.d).slice(0,i)===(n=Hn(r.d)).slice(0,i))if(n=n.slice(i-3,i+1),n=="9999"||!a&&n=="4999"){if(!a&&(Ce(u,e+1,0),u.times(u).times(u).eq(m))){r=u;break}i+=4,a=1}else{(!+n||!+n.slice(1)&&n.charAt(0)=="5")&&(Ce(r,e+1,1),t=!r.times(r).times(r).eq(m));break}return Be=!0,Ce(r,e,p.rounding,t)};de.decimalPlaces=de.dp=function(){var e,t=this.d,n=NaN;if(t){if(e=t.length-1,n=(e-Jn(this.e/Re))*Re,e=t[e],e)for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n};de.dividedBy=de.div=function(e){return _t(this,new this.constructor(e))};de.dividedToIntegerBy=de.divToInt=function(e){var t=this,n=t.constructor;return Ce(_t(t,new n(e),0,1,1),n.precision,n.rounding)};de.equals=de.eq=function(e){return this.cmp(e)===0};de.floor=function(){return Ce(new this.constructor(this),this.e+1,3)};de.greaterThan=de.gt=function(e){return this.cmp(e)>0};de.greaterThanOrEqualTo=de.gte=function(e){var t=this.cmp(e);return t==1||t===0};de.hyperbolicCosine=de.cosh=function(){var e,t,n,r,a,s=this,i=s.constructor,u=new i(1);if(!s.isFinite())return new i(s.s?1/0:NaN);if(s.isZero())return u;n=i.precision,r=i.rounding,i.precision=n+Math.max(s.e,s.sd())+4,i.rounding=1,a=s.d.length,a<32?(e=Math.ceil(a/3),t=(1/ng(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),s=wc(i,1,s.times(t),new i(1),!0);for(var d,f=e,m=new i(8);f--;)d=s.times(s),s=u.minus(d.times(m.minus(d.times(m))));return Ce(s,i.precision=n,i.rounding=r,!0)};de.hyperbolicSine=de.sinh=function(){var e,t,n,r,a=this,s=a.constructor;if(!a.isFinite()||a.isZero())return new s(a);if(t=s.precision,n=s.rounding,s.precision=t+Math.max(a.e,a.sd())+4,s.rounding=1,r=a.d.length,r<3)a=wc(s,2,a,a,!0);else{e=1.4*Math.sqrt(r),e=e>16?16:e|0,a=a.times(1/ng(5,e)),a=wc(s,2,a,a,!0);for(var i,u=new s(5),d=new s(16),f=new s(20);e--;)i=a.times(a),a=a.times(u.plus(i.times(d.times(i).plus(f))))}return s.precision=t,s.rounding=n,Ce(a,t,n,!0)};de.hyperbolicTangent=de.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,_t(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)};de.inverseCosine=de.acos=function(){var e=this,t=e.constructor,n=e.abs().cmp(1),r=t.precision,a=t.rounding;return n!==-1?n===0?e.isNeg()?Za(t,r,a):new t(0):new t(NaN):e.isZero()?Za(t,r+4,a).times(.5):(t.precision=r+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=r,t.rounding=a,e.times(2))};de.inverseHyperbolicCosine=de.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,Be=!1,n=n.times(n).minus(1).sqrt().plus(n),Be=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)};de.inverseHyperbolicSine=de.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,Be=!1,n=n.times(n).plus(1).sqrt().plus(n),Be=!0,r.precision=e,r.rounding=t,n.ln())};de.inverseHyperbolicTangent=de.atanh=function(){var e,t,n,r,a=this,s=a.constructor;return a.isFinite()?a.e>=0?new s(a.abs().eq(1)?a.s/0:a.isZero()?a:NaN):(e=s.precision,t=s.rounding,r=a.sd(),Math.max(r,e)<2*-a.e-1?Ce(new s(a),e,t,!0):(s.precision=n=r-a.e,a=_t(a.plus(1),new s(1).minus(a),n+e,1),s.precision=e+4,s.rounding=1,a=a.ln(),s.precision=e,s.rounding=t,a.times(.5))):new s(NaN)};de.inverseSine=de.asin=function(){var e,t,n,r,a=this,s=a.constructor;return a.isZero()?new s(a):(t=a.abs().cmp(1),n=s.precision,r=s.rounding,t!==-1?t===0?(e=Za(s,n+4,r).times(.5),e.s=a.s,e):new s(NaN):(s.precision=n+6,s.rounding=1,a=a.div(new s(1).minus(a.times(a)).sqrt().plus(1)).atan(),s.precision=n,s.rounding=r,a.times(2)))};de.inverseTangent=de.atan=function(){var e,t,n,r,a,s,i,u,d,f=this,m=f.constructor,p=m.precision,v=m.rounding;if(f.isFinite()){if(f.isZero())return new m(f);if(f.abs().eq(1)&&p+4<=lb)return i=Za(m,p+4,v).times(.25),i.s=f.s,i}else{if(!f.s)return new m(NaN);if(p+4<=lb)return i=Za(m,p+4,v).times(.5),i.s=f.s,i}for(m.precision=u=p+10,m.rounding=1,n=Math.min(28,u/Re+2|0),e=n;e;--e)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(Be=!1,t=Math.ceil(u/Re),r=1,d=f.times(f),i=new m(f),a=f;e!==-1;)if(a=a.times(d),s=i.minus(a.div(r+=2)),a=a.times(d),i=s.plus(a.div(r+=2)),i.d[t]!==void 0)for(e=t;i.d[e]===s.d[e]&&e--;);return n&&(i=i.times(2<<n-1)),Be=!0,Ce(i,m.precision=p,m.rounding=v,!0)};de.isFinite=function(){return!!this.d};de.isInteger=de.isInt=function(){return!!this.d&&Jn(this.e/Re)>this.d.length-2};de.isNaN=function(){return!this.s};de.isNegative=de.isNeg=function(){return this.s<0};de.isPositive=de.isPos=function(){return this.s>0};de.isZero=function(){return!!this.d&&this.d[0]===0};de.lessThan=de.lt=function(e){return this.cmp(e)<0};de.lessThanOrEqualTo=de.lte=function(e){return this.cmp(e)<1};de.logarithm=de.log=function(e){var t,n,r,a,s,i,u,d,f=this,m=f.constructor,p=m.precision,v=m.rounding,y=5;if(e==null)e=new m(10),t=!0;else{if(e=new m(e),n=e.d,e.s<0||!n||!n[0]||e.eq(1))return new m(NaN);t=e.eq(10)}if(n=f.d,f.s<0||!n||!n[0]||f.eq(1))return new m(n&&!n[0]?-1/0:f.s!=1?NaN:n?0:1/0);if(t)if(n.length>1)s=!0;else{for(a=n[0];a%10===0;)a/=10;s=a!==1}if(Be=!1,u=p+y,i=Oo(f,u),r=t?op(m,u+10):Oo(e,u),d=_t(i,r,u,1),wd(d.d,a=p,v))do if(u+=10,i=Oo(f,u),r=t?op(m,u+10):Oo(e,u),d=_t(i,r,u,1),!s){+Hn(d.d).slice(a+1,a+15)+1==1e14&&(d=Ce(d,p+1,0));break}while(wd(d.d,a+=10,v));return Be=!0,Ce(d,p,v)};de.minus=de.sub=function(e){var t,n,r,a,s,i,u,d,f,m,p,v,y=this,x=y.constructor;if(e=new x(e),!y.d||!e.d)return!y.s||!e.s?e=new x(NaN):y.d?e.s=-e.s:e=new x(e.d||y.s!==e.s?y:NaN),e;if(y.s!=e.s)return e.s=-e.s,y.plus(e);if(f=y.d,v=e.d,u=x.precision,d=x.rounding,!f[0]||!v[0]){if(v[0])e.s=-e.s;else if(f[0])e=new x(y);else return new x(d===3?-0:0);return Be?Ce(e,u,d):e}if(n=Jn(e.e/Re),m=Jn(y.e/Re),f=f.slice(),s=m-n,s){for(p=s<0,p?(t=f,s=-s,i=v.length):(t=v,n=m,i=f.length),r=Math.max(Math.ceil(u/Re),i)+2,s>r&&(s=r,t.length=1),t.reverse(),r=s;r--;)t.push(0);t.reverse()}else{for(r=f.length,i=v.length,p=r<i,p&&(i=r),r=0;r<i;r++)if(f[r]!=v[r]){p=f[r]<v[r];break}s=0}for(p&&(t=f,f=v,v=t,e.s=-e.s),i=f.length,r=v.length-i;r>0;--r)f[i++]=0;for(r=v.length;r>s;){if(f[--r]<v[r]){for(a=r;a&&f[--a]===0;)f[a]=ya-1;--f[a],f[r]+=ya}f[r]-=v[r]}for(;f[--i]===0;)f.pop();for(;f[0]===0;f.shift())--n;return f[0]?(e.d=f,e.e=tg(f,n),Be?Ce(e,u,d):e):new x(d===3?-0:0)};de.modulo=de.mod=function(e){var t,n=this,r=n.constructor;return e=new r(e),!n.d||!e.s||e.d&&!e.d[0]?new r(NaN):!e.d||n.d&&!n.d[0]?Ce(new r(n),r.precision,r.rounding):(Be=!1,r.modulo==9?(t=_t(n,e.abs(),0,3,1),t.s*=e.s):t=_t(n,e,0,r.modulo,1),t=t.times(e),Be=!0,n.minus(t))};de.naturalExponential=de.exp=function(){return cb(this)};de.naturalLogarithm=de.ln=function(){return Oo(this)};de.negated=de.neg=function(){var e=new this.constructor(this);return e.s=-e.s,Ce(e)};de.plus=de.add=function(e){var t,n,r,a,s,i,u,d,f,m,p=this,v=p.constructor;if(e=new v(e),!p.d||!e.d)return!p.s||!e.s?e=new v(NaN):p.d||(e=new v(e.d||p.s===e.s?p:NaN)),e;if(p.s!=e.s)return e.s=-e.s,p.minus(e);if(f=p.d,m=e.d,u=v.precision,d=v.rounding,!f[0]||!m[0])return m[0]||(e=new v(p)),Be?Ce(e,u,d):e;if(s=Jn(p.e/Re),r=Jn(e.e/Re),f=f.slice(),a=s-r,a){for(a<0?(n=f,a=-a,i=m.length):(n=m,r=s,i=f.length),s=Math.ceil(u/Re),i=s>i?s+1:i+1,a>i&&(a=i,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(i=f.length,a=m.length,i-a<0&&(a=i,n=m,m=f,f=n),t=0;a;)t=(f[--a]=f[a]+m[a]+t)/ya|0,f[a]%=ya;for(t&&(f.unshift(t),++r),i=f.length;f[--i]==0;)f.pop();return e.d=f,e.e=tg(f,r),Be?Ce(e,u,d):e};de.precision=de.sd=function(e){var t,n=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Uo+e);return n.d?(t=uI(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t};de.round=function(){var e=this,t=e.constructor;return Ce(new t(e),e.e+1,t.rounding)};de.sine=de.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+Re,r.rounding=1,n=Vq(r,mI(r,n)),r.precision=e,r.rounding=t,Ce(js>2?n.neg():n,e,t,!0)):new r(NaN)};de.squareRoot=de.sqrt=function(){var e,t,n,r,a,s,i=this,u=i.d,d=i.e,f=i.s,m=i.constructor;if(f!==1||!u||!u[0])return new m(!f||f<0&&(!u||u[0])?NaN:u?i:1/0);for(Be=!1,f=Math.sqrt(+i),f==0||f==1/0?(t=Hn(u),(t.length+d)%2==0&&(t+="0"),f=Math.sqrt(t),d=Jn((d+1)/2)-(d<0||d%2),f==1/0?t="5e"+d:(t=f.toExponential(),t=t.slice(0,t.indexOf("e")+1)+d),r=new m(t)):r=new m(f.toString()),n=(d=m.precision)+3;;)if(s=r,r=s.plus(_t(i,s,n+2,1)).times(.5),Hn(s.d).slice(0,n)===(t=Hn(r.d)).slice(0,n))if(t=t.slice(n-3,n+1),t=="9999"||!a&&t=="4999"){if(!a&&(Ce(s,d+1,0),s.times(s).eq(i))){r=s;break}n+=4,a=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(Ce(r,d+1,1),e=!r.times(r).eq(i));break}return Be=!0,Ce(r,d,m.rounding,e)};de.tangent=de.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,n=n.sin(),n.s=1,n=_t(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,Ce(js==2||js==4?n.neg():n,e,t,!0)):new r(NaN)};de.times=de.mul=function(e){var t,n,r,a,s,i,u,d,f,m=this,p=m.constructor,v=m.d,y=(e=new p(e)).d;if(e.s*=m.s,!v||!v[0]||!y||!y[0])return new p(!e.s||v&&!v[0]&&!y||y&&!y[0]&&!v?NaN:!v||!y?e.s/0:e.s*0);for(n=Jn(m.e/Re)+Jn(e.e/Re),d=v.length,f=y.length,d<f&&(s=v,v=y,y=s,i=d,d=f,f=i),s=[],i=d+f,r=i;r--;)s.push(0);for(r=f;--r>=0;){for(t=0,a=d+r;a>r;)u=s[a]+y[r]*v[a-r-1]+t,s[a--]=u%ya|0,t=u/ya|0;s[a]=(s[a]+t)%ya|0}for(;!s[--i];)s.pop();return t?++n:s.shift(),e.d=s,e.e=tg(s,n),Be?Ce(e,p.precision,p.rounding):e};de.toBinary=function(e,t){return x1(this,2,e,t)};de.toDecimalPlaces=de.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Tr(e,0,Qo),t===void 0?t=r.rounding:Tr(t,0,8),Ce(n,e+n.e+1,t))};de.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=ss(r,!0):(Tr(e,0,Qo),t===void 0?t=a.rounding:Tr(t,0,8),r=Ce(new a(r),e+1,t),n=ss(r,!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n};de.toFixed=function(e,t){var n,r,a=this,s=a.constructor;return e===void 0?n=ss(a):(Tr(e,0,Qo),t===void 0?t=s.rounding:Tr(t,0,8),r=Ce(new s(a),e+a.e+1,t),n=ss(r,!1,e+r.e+1)),a.isNeg()&&!a.isZero()?"-"+n:n};de.toFraction=function(e){var t,n,r,a,s,i,u,d,f,m,p,v,y=this,x=y.d,b=y.constructor;if(!x)return new b(y);if(f=n=new b(1),r=d=new b(0),t=new b(r),s=t.e=uI(x)-y.e-1,i=s%Re,t.d[0]=bn(10,i<0?Re+i:i),e==null)e=s>0?t:f;else{if(u=new b(e),!u.isInt()||u.lt(f))throw Error(Uo+u);e=u.gt(t)?s>0?t:f:u}for(Be=!1,u=new b(Hn(x)),m=b.precision,b.precision=s=x.length*Re*2;p=_t(u,t,0,1,1),a=n.plus(p.times(r)),a.cmp(e)!=1;)n=r,r=a,a=f,f=d.plus(p.times(a)),d=a,a=t,t=u.minus(p.times(a)),u=a;return a=_t(e.minus(n),r,0,1,1),d=d.plus(a.times(f)),n=n.plus(a.times(r)),d.s=f.s=y.s,v=_t(f,r,s,1).minus(y).abs().cmp(_t(d,n,s,1).minus(y).abs())<1?[f,r]:[d,n],b.precision=m,Be=!0,v};de.toHexadecimal=de.toHex=function(e,t){return x1(this,16,e,t)};de.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),e==null){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),t===void 0?t=r.rounding:Tr(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(Be=!1,n=_t(n,e,0,t,1).times(e),Be=!0,Ce(n)):(e.s=n.s,n=e),n};de.toNumber=function(){return+this};de.toOctal=function(e,t){return x1(this,8,e,t)};de.toPower=de.pow=function(e){var t,n,r,a,s,i,u=this,d=u.constructor,f=+(e=new d(e));if(!u.d||!e.d||!u.d[0]||!e.d[0])return new d(bn(+u,f));if(u=new d(u),u.eq(1))return u;if(r=d.precision,s=d.rounding,e.eq(1))return Ce(u,r,s);if(t=Jn(e.e/Re),t>=e.d.length-1&&(n=f<0?-f:f)<=Uq)return a=dI(d,u,n,r),e.s<0?new d(1).div(a):Ce(a,r,s);if(i=u.s,i<0){if(t<e.d.length-1)return new d(NaN);if((e.d[t]&1)==0&&(i=1),u.e==0&&u.d[0]==1&&u.d.length==1)return u.s=i,u}return n=bn(+u,f),t=n==0||!isFinite(n)?Jn(f*(Math.log("0."+Hn(u.d))/Math.LN10+u.e+1)):new d(n+"").e,t>d.maxE+1||t<d.minE-1?new d(t>0?i/0:0):(Be=!1,d.rounding=u.s=1,n=Math.min(12,(t+"").length),a=cb(e.times(Oo(u,r+n)),r),a.d&&(a=Ce(a,r+5,1),wd(a.d,r,s)&&(t=r+10,a=Ce(cb(e.times(Oo(u,t+n)),t),t+5,1),+Hn(a.d).slice(r+1,r+15)+1==1e14&&(a=Ce(a,r+1,0)))),a.s=i,Be=!0,d.rounding=s,Ce(a,r,s))};de.toPrecision=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=ss(r,r.e<=a.toExpNeg||r.e>=a.toExpPos):(Tr(e,1,Qo),t===void 0?t=a.rounding:Tr(t,0,8),r=Ce(new a(r),e,t),n=ss(r,e<=r.e||r.e<=a.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n};de.toSignificantDigits=de.toSD=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Tr(e,1,Qo),t===void 0?t=r.rounding:Tr(t,0,8)),Ce(new r(n),e,t)};de.toString=function(){var e=this,t=e.constructor,n=ss(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n};de.truncated=de.trunc=function(){return Ce(new this.constructor(this),this.e+1,1)};de.valueOf=de.toJSON=function(){var e=this,t=e.constructor,n=ss(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};function Hn(e){var t,n,r,a=e.length-1,s="",i=e[0];if(a>0){for(s+=i,t=1;t<a;t++)r=e[t]+"",n=Re-r.length,n&&(s+=So(n)),s+=r;i=e[t],r=i+"",n=Re-r.length,n&&(s+=So(n))}else if(i===0)return"0";for(;i%10===0;)i/=10;return s+i}function Tr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Uo+e)}function wd(e,t,n,r){var a,s,i,u;for(s=e[0];s>=10;s/=10)--t;return--t<0?(t+=Re,a=0):(a=Math.ceil((t+1)/Re),t%=Re),s=bn(10,Re-t),u=e[a]%s|0,r==null?t<3?(t==0?u=u/100|0:t==1&&(u=u/10|0),i=n<4&&u==99999||n>3&&u==49999||u==5e4||u==0):i=(n<4&&u+1==s||n>3&&u+1==s/2)&&(e[a+1]/s/100|0)==bn(10,t-2)-1||(u==s/2||u==0)&&(e[a+1]/s/100|0)==0:t<4?(t==0?u=u/1e3|0:t==1?u=u/100|0:t==2&&(u=u/10|0),i=(r||n<4)&&u==9999||!r&&n>3&&u==4999):i=((r||n<4)&&u+1==s||!r&&n>3&&u+1==s/2)&&(e[a+1]/s/1e3|0)==bn(10,t-3)-1,i}function Om(e,t,n){for(var r,a=[0],s,i=0,u=e.length;i<u;){for(s=a.length;s--;)a[s]*=t;for(a[0]+=ob.indexOf(e.charAt(i++)),r=0;r<a.length;r++)a[r]>n-1&&(a[r+1]===void 0&&(a[r+1]=0),a[r+1]+=a[r]/n|0,a[r]%=n)}return a.reverse()}function Bq(e,t){var n,r,a;if(t.isZero())return t;r=t.d.length,r<32?(n=Math.ceil(r/3),a=(1/ng(4,n)).toString()):(n=16,a="2.3283064365386962890625e-10"),e.precision+=n,t=wc(e,1,t.times(a),new e(1));for(var s=n;s--;){var i=t.times(t);t=i.times(i).minus(i).times(8).plus(1)}return e.precision-=n,t}var _t=function(){function e(r,a,s){var i,u=0,d=r.length;for(r=r.slice();d--;)i=r[d]*a+u,r[d]=i%s|0,u=i/s|0;return u&&r.unshift(u),r}function t(r,a,s,i){var u,d;if(s!=i)d=s>i?1:-1;else for(u=d=0;u<s;u++)if(r[u]!=a[u]){d=r[u]>a[u]?1:-1;break}return d}function n(r,a,s,i){for(var u=0;s--;)r[s]-=u,u=r[s]<a[s]?1:0,r[s]=u*i+r[s]-a[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,s,i,u,d){var f,m,p,v,y,x,b,T,N,C,A,R,_,O,D,P,L,U,B,H,Z=r.constructor,ee=r.s==a.s?1:-1,Q=r.d,j=a.d;if(!Q||!Q[0]||!j||!j[0])return new Z(!r.s||!a.s||(Q?j&&Q[0]==j[0]:!j)?NaN:Q&&Q[0]==0||!j?ee*0:ee/0);for(d?(y=1,m=r.e-a.e):(d=ya,y=Re,m=Jn(r.e/y)-Jn(a.e/y)),B=j.length,L=Q.length,N=new Z(ee),C=N.d=[],p=0;j[p]==(Q[p]||0);p++);if(j[p]>(Q[p]||0)&&m--,s==null?(O=s=Z.precision,i=Z.rounding):u?O=s+(r.e-a.e)+1:O=s,O<0)C.push(1),x=!0;else{if(O=O/y+2|0,p=0,B==1){for(v=0,j=j[0],O++;(p<L||v)&&O--;p++)D=v*d+(Q[p]||0),C[p]=D/j|0,v=D%j|0;x=v||p<L}else{for(v=d/(j[0]+1)|0,v>1&&(j=e(j,v,d),Q=e(Q,v,d),B=j.length,L=Q.length),P=B,A=Q.slice(0,B),R=A.length;R<B;)A[R++]=0;H=j.slice(),H.unshift(0),U=j[0],j[1]>=d/2&&++U;do v=0,f=t(j,A,B,R),f<0?(_=A[0],B!=R&&(_=_*d+(A[1]||0)),v=_/U|0,v>1?(v>=d&&(v=d-1),b=e(j,v,d),T=b.length,R=A.length,f=t(b,A,T,R),f==1&&(v--,n(b,B<T?H:j,T,d))):(v==0&&(f=v=1),b=j.slice()),T=b.length,T<R&&b.unshift(0),n(A,b,R,d),f==-1&&(R=A.length,f=t(j,A,B,R),f<1&&(v++,n(A,B<R?H:j,R,d))),R=A.length):f===0&&(v++,A=[0]),C[p++]=v,f&&A[0]?A[R++]=Q[P]||0:(A=[Q[P]],R=1);while((P++<L||A[0]!==void 0)&&O--);x=A[0]!==void 0}C[0]||C.shift()}if(y==1)N.e=m,sI=x;else{for(p=1,v=C[0];v>=10;v/=10)p++;N.e=p+m*y-1,Ce(N,u?s+N.e+1:s,i,x)}return N}}();function Ce(e,t,n,r){var a,s,i,u,d,f,m,p,v,y=e.constructor;e:if(t!=null){if(p=e.d,!p)return e;for(a=1,u=p[0];u>=10;u/=10)a++;if(s=t-a,s<0)s+=Re,i=t,m=p[v=0],d=m/bn(10,a-i-1)%10|0;else if(v=Math.ceil((s+1)/Re),u=p.length,v>=u)if(r){for(;u++<=v;)p.push(0);m=d=0,a=1,s%=Re,i=s-Re+1}else break e;else{for(m=u=p[v],a=1;u>=10;u/=10)a++;s%=Re,i=s-Re+a,d=i<0?0:m/bn(10,a-i-1)%10|0}if(r=r||t<0||p[v+1]!==void 0||(i<0?m:m%bn(10,a-i-1)),f=n<4?(d||r)&&(n==0||n==(e.s<0?3:2)):d>5||d==5&&(n==4||r||n==6&&(s>0?i>0?m/bn(10,a-i):0:p[v-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,f?(t-=e.e+1,p[0]=bn(10,(Re-t%Re)%Re),e.e=-t||0):p[0]=e.e=0,e;if(s==0?(p.length=v,u=1,v--):(p.length=v+1,u=bn(10,Re-s),p[v]=i>0?(m/bn(10,a-i)%bn(10,i)|0)*u:0),f)for(;;)if(v==0){for(s=1,i=p[0];i>=10;i/=10)s++;for(i=p[0]+=u,u=1;i>=10;i/=10)u++;s!=u&&(e.e++,p[0]==ya&&(p[0]=1));break}else{if(p[v]+=u,p[v]!=ya)break;p[v--]=0,u=1}for(s=p.length;p[--s]===0;)p.pop()}return Be&&(e.e>y.maxE?(e.d=null,e.e=NaN):e.e<y.minE&&(e.e=0,e.d=[0])),e}function ss(e,t,n){if(!e.isFinite())return hI(e);var r,a=e.e,s=Hn(e.d),i=s.length;return t?(n&&(r=n-i)>0?s=s.charAt(0)+"."+s.slice(1)+So(r):i>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(e.e<0?"e":"e+")+e.e):a<0?(s="0."+So(-a-1)+s,n&&(r=n-i)>0&&(s+=So(r))):a>=i?(s+=So(a+1-i),n&&(r=n-a-1)>0&&(s=s+"."+So(r))):((r=a+1)<i&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-i)>0&&(a+1===i&&(s+="."),s+=So(r))),s}function tg(e,t){var n=e[0];for(t*=Re;n>=10;n/=10)t++;return t}function op(e,t,n){if(t>Fq)throw Be=!0,n&&(e.precision=n),Error(oI);return Ce(new e(ap),t,1,!0)}function Za(e,t,n){if(t>lb)throw Error(oI);return Ce(new e(sp),t,n,!0)}function uI(e){var t=e.length-1,n=t*Re+1;if(t=e[t],t){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function So(e){for(var t="";e--;)t+="0";return t}function dI(e,t,n,r){var a,s=new e(1),i=Math.ceil(r/Re+4);for(Be=!1;;){if(n%2&&(s=s.times(t),n_(s.d,i)&&(a=!0)),n=Jn(n/2),n===0){n=s.d.length-1,a&&s.d[n]===0&&++s.d[n];break}t=t.times(t),n_(t.d,i)}return Be=!0,s}function t_(e){return e.d[e.d.length-1]&1}function fI(e,t,n){for(var r,a,s=new e(t[0]),i=0;++i<t.length;){if(a=new e(t[i]),!a.s){s=a;break}r=s.cmp(a),(r===n||r===0&&s.s===n)&&(s=a)}return s}function cb(e,t){var n,r,a,s,i,u,d,f=0,m=0,p=0,v=e.constructor,y=v.rounding,x=v.precision;if(!e.d||!e.d[0]||e.e>17)return new v(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(Be=!1,d=x):d=t,u=new v(.03125);e.e>-2;)e=e.times(u),p+=5;for(r=Math.log(bn(2,p))/Math.LN10*2+5|0,d+=r,n=s=i=new v(1),v.precision=d;;){if(s=Ce(s.times(e),d,1),n=n.times(++m),u=i.plus(_t(s,n,d,1)),Hn(u.d).slice(0,d)===Hn(i.d).slice(0,d)){for(a=p;a--;)i=Ce(i.times(i),d,1);if(t==null)if(f<3&&wd(i.d,d-r,y,f))v.precision=d+=10,n=s=u=new v(1),m=0,f++;else return Ce(i,v.precision=x,y,Be=!0);else return v.precision=x,i}i=u}}function Oo(e,t){var n,r,a,s,i,u,d,f,m,p,v,y=1,x=10,b=e,T=b.d,N=b.constructor,C=N.rounding,A=N.precision;if(b.s<0||!T||!T[0]||!b.e&&T[0]==1&&T.length==1)return new N(T&&!T[0]?-1/0:b.s!=1?NaN:T?0:b);if(t==null?(Be=!1,m=A):m=t,N.precision=m+=x,n=Hn(T),r=n.charAt(0),Math.abs(s=b.e)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)b=b.times(e),n=Hn(b.d),r=n.charAt(0),y++;s=b.e,r>1?(b=new N("0."+n),s++):b=new N(r+"."+n.slice(1))}else return f=op(N,m+2,A).times(s+""),b=Oo(new N(r+"."+n.slice(1)),m-x).plus(f),N.precision=A,t==null?Ce(b,A,C,Be=!0):b;for(p=b,d=i=b=_t(b.minus(1),b.plus(1),m,1),v=Ce(b.times(b),m,1),a=3;;){if(i=Ce(i.times(v),m,1),f=d.plus(_t(i,new N(a),m,1)),Hn(f.d).slice(0,m)===Hn(d.d).slice(0,m))if(d=d.times(2),s!==0&&(d=d.plus(op(N,m+2,A).times(s+""))),d=_t(d,new N(y),m,1),t==null)if(wd(d.d,m-x,C,u))N.precision=m+=x,f=i=b=_t(p.minus(1),p.plus(1),m,1),v=Ce(b.times(b),m,1),a=u=1;else return Ce(d,N.precision=A,C,Be=!0);else return N.precision=A,d;d=f,a+=2}}function hI(e){return String(e.s*e.s/0)}function Dm(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;r++);for(a=t.length;t.charCodeAt(a-1)===48;--a);if(t=t.slice(r,a),t){if(a-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%Re,n<0&&(r+=Re),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=Re;r<a;)e.d.push(+t.slice(r,r+=Re));t=t.slice(r),r=Re-t.length}else r-=a;for(;r--;)t+="0";e.d.push(+t),Be&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function Hq(e,t){var n,r,a,s,i,u,d,f,m;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),cI.test(t))return Dm(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Lq.test(t))n=16,t=t.toLowerCase();else if(jq.test(t))n=2;else if(kq.test(t))n=8;else throw Error(Uo+t);for(s=t.search(/p/i),s>0?(d=+t.slice(s+1),t=t.substring(2,s)):t=t.slice(2),s=t.indexOf("."),i=s>=0,r=e.constructor,i&&(t=t.replace(".",""),u=t.length,s=u-s,a=dI(r,new r(n),s,s*2)),f=Om(t,n,ya),m=f.length-1,s=m;f[s]===0;--s)f.pop();return s<0?new r(e.s*0):(e.e=tg(f,m),e.d=f,Be=!1,i&&(e=_t(e,a,u*4)),d&&(e=e.times(Math.abs(d)<54?bn(2,d):We.pow(2,d))),Be=!0,e)}function Vq(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:wc(e,2,t,t);n=1.4*Math.sqrt(r),n=n>16?16:n|0,t=t.times(1/ng(5,n)),t=wc(e,2,t,t);for(var a,s=new e(5),i=new e(16),u=new e(20);n--;)a=t.times(t),t=t.times(s.plus(a.times(i.times(a).minus(u))));return t}function wc(e,t,n,r,a){var s,i,u,d,f=e.precision,m=Math.ceil(f/Re);for(Be=!1,d=n.times(n),u=new e(r);;){if(i=_t(u.times(d),new e(t++*t++),f,1),u=a?r.plus(i):r.minus(i),r=_t(i.times(d),new e(t++*t++),f,1),i=u.plus(r),i.d[m]!==void 0){for(s=m;i.d[s]===u.d[s]&&s--;);if(s==-1)break}s=u,u=r,r=i,i=s}return Be=!0,i.d.length=m+1,i}function ng(e,t){for(var n=e;--t;)n*=e;return n}function mI(e,t){var n,r=t.s<0,a=Za(e,e.precision,1),s=a.times(.5);if(t=t.abs(),t.lte(s))return js=r?4:1,t;if(n=t.divToInt(a),n.isZero())js=r?3:2;else{if(t=t.minus(n.times(a)),t.lte(s))return js=t_(n)?r?2:3:r?4:1,t;js=t_(n)?r?1:4:r?3:2}return t.minus(a).abs()}function x1(e,t,n,r){var a,s,i,u,d,f,m,p,v,y=e.constructor,x=n!==void 0;if(x?(Tr(n,1,Qo),r===void 0?r=y.rounding:Tr(r,0,8)):(n=y.precision,r=y.rounding),!e.isFinite())m=hI(e);else{for(m=ss(e),i=m.indexOf("."),x?(a=2,t==16?n=n*4-3:t==8&&(n=n*3-2)):a=t,i>=0&&(m=m.replace(".",""),v=new y(1),v.e=m.length-i,v.d=Om(ss(v),10,a),v.e=v.d.length),p=Om(m,10,a),s=d=p.length;p[--d]==0;)p.pop();if(!p[0])m=x?"0p+0":"0";else{if(i<0?s--:(e=new y(e),e.d=p,e.e=s,e=_t(e,v,n,r,0,a),p=e.d,s=e.e,f=sI),i=p[n],u=a/2,f=f||p[n+1]!==void 0,f=r<4?(i!==void 0||f)&&(r===0||r===(e.s<0?3:2)):i>u||i===u&&(r===4||f||r===6&&p[n-1]&1||r===(e.s<0?8:7)),p.length=n,f)for(;++p[--n]>a-1;)p[n]=0,n||(++s,p.unshift(1));for(d=p.length;!p[d-1];--d);for(i=0,m="";i<d;i++)m+=ob.charAt(p[i]);if(x){if(d>1)if(t==16||t==8){for(i=t==16?4:3,--d;d%i;d++)m+="0";for(p=Om(m,a,t),d=p.length;!p[d-1];--d);for(i=1,m="1.";i<d;i++)m+=ob.charAt(p[i])}else m=m.charAt(0)+"."+m.slice(1);m=m+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)m="0"+m;m="0."+m}else if(++s>d)for(s-=d;s--;)m+="0";else s<d&&(m=m.slice(0,s)+"."+m.slice(s))}m=(t==16?"0x":t==2?"0b":t==8?"0o":"")+m}return e.s<0?"-"+m:m}function n_(e,t){if(e.length>t)return e.length=t,!0}function Gq(e){return new this(e).abs()}function zq(e){return new this(e).acos()}function $q(e){return new this(e).acosh()}function qq(e,t){return new this(e).plus(t)}function Yq(e){return new this(e).asin()}function Wq(e){return new this(e).asinh()}function Kq(e){return new this(e).atan()}function Xq(e){return new this(e).atanh()}function Qq(e,t){e=new this(e),t=new this(t);var n,r=this.precision,a=this.rounding,s=r+4;return!e.s||!t.s?n=new this(NaN):!e.d&&!t.d?(n=Za(this,s,1).times(t.s>0?.25:.75),n.s=e.s):!t.d||e.isZero()?(n=t.s<0?Za(this,r,a):new this(0),n.s=e.s):!e.d||t.isZero()?(n=Za(this,s,1).times(.5),n.s=e.s):t.s<0?(this.precision=s,this.rounding=1,n=this.atan(_t(e,t,s,1)),t=Za(this,s,1),this.precision=r,this.rounding=a,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(_t(e,t,s,1)),n}function Zq(e){return new this(e).cbrt()}function Jq(e){return Ce(e=new this(e),e.e+1,2)}function eY(e,t,n){return new this(e).clamp(t,n)}function tY(e){if(!e||typeof e!="object")throw Error(eg+"Object expected");var t,n,r,a=e.defaults===!0,s=["precision",1,Qo,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,sb,"maxE",0,sb,"minE",-9e15,0,"modulo",0,9];for(t=0;t<s.length;t+=3)if(n=s[t],a&&(this[n]=ib[n]),(r=e[n])!==void 0)if(Jn(r)===r&&r>=s[t+1]&&r<=s[t+2])this[n]=r;else throw Error(Uo+n+": "+r);if(n="crypto",a&&(this[n]=ib[n]),(r=e[n])!==void 0)if(r===!0||r===!1||r===0||r===1)if(r)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(iI);else this[n]=!1;else throw Error(Uo+n+": "+r);return this}function nY(e){return new this(e).cos()}function rY(e){return new this(e).cosh()}function pI(e){var t,n,r;function a(s){var i,u,d,f=this;if(!(f instanceof a))return new a(s);if(f.constructor=a,r_(s)){f.s=s.s,Be?!s.d||s.e>a.maxE?(f.e=NaN,f.d=null):s.e<a.minE?(f.e=0,f.d=[0]):(f.e=s.e,f.d=s.d.slice()):(f.e=s.e,f.d=s.d?s.d.slice():s.d);return}if(d=typeof s,d==="number"){if(s===0){f.s=1/s<0?-1:1,f.e=0,f.d=[0];return}if(s<0?(s=-s,f.s=-1):f.s=1,s===~~s&&s<1e7){for(i=0,u=s;u>=10;u/=10)i++;Be?i>a.maxE?(f.e=NaN,f.d=null):i<a.minE?(f.e=0,f.d=[0]):(f.e=i,f.d=[s]):(f.e=i,f.d=[s]);return}if(s*0!==0){s||(f.s=NaN),f.e=NaN,f.d=null;return}return Dm(f,s.toString())}if(d==="string")return(u=s.charCodeAt(0))===45?(s=s.slice(1),f.s=-1):(u===43&&(s=s.slice(1)),f.s=1),cI.test(s)?Dm(f,s):Hq(f,s);if(d==="bigint")return s<0?(s=-s,f.s=-1):f.s=1,Dm(f,s.toString());throw Error(Uo+s)}if(a.prototype=de,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.EUCLID=9,a.config=a.set=tY,a.clone=pI,a.isDecimal=r_,a.abs=Gq,a.acos=zq,a.acosh=$q,a.add=qq,a.asin=Yq,a.asinh=Wq,a.atan=Kq,a.atanh=Xq,a.atan2=Qq,a.cbrt=Zq,a.ceil=Jq,a.clamp=eY,a.cos=nY,a.cosh=rY,a.div=aY,a.exp=sY,a.floor=oY,a.hypot=iY,a.ln=lY,a.log=cY,a.log10=dY,a.log2=uY,a.max=fY,a.min=hY,a.mod=mY,a.mul=pY,a.pow=gY,a.random=vY,a.round=yY,a.sign=xY,a.sin=bY,a.sinh=EY,a.sqrt=SY,a.sub=TY,a.sum=NY,a.tan=wY,a.tanh=CY,a.trunc=AY,e===void 0&&(e={}),e&&e.defaults!==!0)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return a.config(e),a}function aY(e,t){return new this(e).div(t)}function sY(e){return new this(e).exp()}function oY(e){return Ce(e=new this(e),e.e+1,3)}function iY(){var e,t,n=new this(0);for(Be=!1,e=0;e<arguments.length;)if(t=new this(arguments[e++]),t.d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return Be=!0,new this(1/0);n=t}return Be=!0,n.sqrt()}function r_(e){return e instanceof We||e&&e.toStringTag===lI||!1}function lY(e){return new this(e).ln()}function cY(e,t){return new this(e).log(t)}function uY(e){return new this(e).log(2)}function dY(e){return new this(e).log(10)}function fY(){return fI(this,arguments,-1)}function hY(){return fI(this,arguments,1)}function mY(e,t){return new this(e).mod(t)}function pY(e,t){return new this(e).mul(t)}function gY(e,t){return new this(e).pow(t)}function vY(e){var t,n,r,a,s=0,i=new this(1),u=[];if(e===void 0?e=this.precision:Tr(e,1,Qo),r=Math.ceil(e/Re),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));s<r;)a=t[s],a>=429e7?t[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=a%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(r*=4);s<r;)a=t[s]+(t[s+1]<<8)+(t[s+2]<<16)+((t[s+3]&127)<<24),a>=214e7?crypto.randomBytes(4).copy(t,s):(u.push(a%1e7),s+=4);s=r/4}else throw Error(iI);else for(;s<r;)u[s++]=Math.random()*1e7|0;for(r=u[--s],e%=Re,r&&e&&(a=bn(10,Re-e),u[s]=(r/a|0)*a);u[s]===0;s--)u.pop();if(s<0)n=0,u=[0];else{for(n=-1;u[0]===0;n-=Re)u.shift();for(r=1,a=u[0];a>=10;a/=10)r++;r<Re&&(n-=Re-r)}return i.e=n,i.d=u,i}function yY(e){return Ce(e=new this(e),e.e+1,this.rounding)}function xY(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function bY(e){return new this(e).sin()}function EY(e){return new this(e).sinh()}function SY(e){return new this(e).sqrt()}function TY(e,t){return new this(e).sub(t)}function NY(){var e=0,t=arguments,n=new this(t[e]);for(Be=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return Be=!0,Ce(n,this.precision,this.rounding)}function wY(e){return new this(e).tan()}function CY(e){return new this(e).tanh()}function AY(e){return Ce(e=new this(e),e.e+1,1)}de[Symbol.for("nodejs.util.inspect.custom")]=de.toString;de[Symbol.toStringTag]="Decimal";var We=de.constructor=pI(ib);ap=new We(ap);sp=new We(sp);new We(10);var rf=new We(0),_Y=new We(-0);function fd(e,t){if(typeof e.repeat=="function")return e.repeat(t);for(var n=new Array(t),r=0;r<n.length;r++)n[r]=e;return n.join("")}function gI(e,t,n,r){e.get(t)||e.set(t,Object.create(null));var a=e.get(t);a[n]=r}function RY(e,t,n){for(var r=0,a=Object.keys(n);r<a.length;r++){var s=a[r];gI(e,t,s,n[s])}}function MY(e,t,n){return vI(e,t,n)[n]}function vI(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=e.get(t);if(!a)throw new TypeError("".concat(t," InternalSlot has not been initialized"));return n.reduce(function(s,i){return s[i]=a[i],s},Object.create(null))}function OY(e){return e.type==="literal"}function DY(e,t,n){var r=n.value;Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r})}function IY(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n})}function Ut(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var PY=ir(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Jt([void 0],t,!1)))},{strategy:lr.variadic}),jY=ir(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Jt([void 0],t,!1)))},{strategy:lr.variadic}),LY=ir(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Jt([void 0],t,!1)))},{strategy:lr.variadic}),kY=ir(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.Locale).bind.apply(e,Jt([void 0],t,!1)))},{strategy:lr.variadic}),UY=ir(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.ListFormat).bind.apply(e,Jt([void 0],t,!1)))},{strategy:lr.variadic});function b1(e){if(typeof e=="symbol")throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function E1(e){if(typeof e=="number")return new We(e);if(Ut(typeof e!="bigint"&&typeof e!="symbol","BigInt and Symbol are not supported",TypeError),e===void 0)return new We(NaN);if(e===null||e===0)return rf;if(e===!0)return new We(1);if(typeof e=="string")try{return new We(e)}catch{return new We(NaN)}Ut(typeof e=="object","object expected",TypeError);var t=_1(e,"number");return Ut(typeof t!="object","object expected",TypeError),E1(t)}function FY(e){var t=E1(e);if(t.isNaN()||t.isZero())return rf;if(t.isFinite())return t;var n=t.abs().floor();return t.isNegative()&&(n=n.negated()),n}function BY(e){return e.isFinite()?e.abs().greaterThan(8.64*1e15)?new We(NaN):FY(e):new We(NaN)}function S1(e){if(e==null)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}function HY(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}function yI(e){return new Array(e)}function xI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function VY(e){if(e===null)return"Null";if(typeof e>"u")return"Undefined";if(typeof e=="function"||typeof e=="object")return"Object";if(typeof e=="number")return"Number";if(typeof e=="boolean")return"Boolean";if(typeof e=="string")return"String";if(typeof e=="symbol")return"Symbol";if(typeof e=="bigint")return"BigInt"}var bI=864e5;function af(e,t){return e-Math.floor(e/t)*t}function T1(e){return Math.floor(e/bI)}function GY(e){return af(T1(e)+4,7)}function EI(e){return Date.UTC(e,0)/bI}function zY(e){return Date.UTC(e,0)}function N1(e){return new Date(e).getUTCFullYear()}function SI(e){return e%4!==0?365:e%100!==0?366:e%400!==0?365:366}function w1(e){return T1(e)-EI(N1(e))}function C1(e){return SI(N1(e))===365?0:1}function TI(e){var t=w1(e),n=C1(e);if(t>=0&&t<31)return 0;if(t<59+n)return 1;if(t<90+n)return 2;if(t<120+n)return 3;if(t<151+n)return 4;if(t<181+n)return 5;if(t<212+n)return 6;if(t<243+n)return 7;if(t<273+n)return 8;if(t<304+n)return 9;if(t<334+n)return 10;if(t<365+n)return 11;throw new Error("Invalid time")}function $Y(e){var t=w1(e),n=TI(e),r=C1(e);if(n===0)return t+1;if(n===1)return t-30;if(n===2)return t-58-r;if(n===3)return t-89-r;if(n===4)return t-119-r;if(n===5)return t-150-r;if(n===6)return t-180-r;if(n===7)return t-211-r;if(n===8)return t-242-r;if(n===9)return t-272-r;if(n===10)return t-303-r;if(n===11)return t-333-r;throw new Error("Invalid time")}var qY=24,NI=60,wI=60,A1=1e3,CI=A1*wI,YY=CI*NI;function WY(e){return af(Math.floor(e/YY),qY)}function KY(e){return af(Math.floor(e/CI),NI)}function XY(e){return af(Math.floor(e/A1),wI)}function AI(e){return typeof e=="function"}function QY(e,t,n){if(!AI(e))return!1;if(n!=null&&n.boundTargetFunction){var r=n==null?void 0:n.boundTargetFunction;return t instanceof r}if(typeof t!="object")return!1;var a=e.prototype;if(typeof a!="object")throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(a,t)}function ZY(e){return af(e,A1)}function JY(e,t){var n;t==="string"?n=["toString","valueOf"]:n=["valueOf","toString"];for(var r=0,a=n;r<a.length;r++){var s=a[r],i=e[s];if(AI(i)){var u=i.call(e);if(typeof u!="object")return u}}throw new TypeError("Cannot convert object to primitive value")}function _1(e,t){if(typeof e=="object"&&e!=null){var n=Symbol.toPrimitive in e?e[Symbol.toPrimitive]:void 0,r=void 0;if(n!==void 0){t===void 0?r="default":t==="string"?r="string":(Ut(t==="number",'preferredType must be "string" or "number"'),r="number");var a=n.call(e,r);if(typeof a!="object")return a;throw new TypeError("Cannot convert exotic object to primitive.")}return t===void 0&&(t="number"),JY(e,t)}return e}function _I(e){return typeof e>"u"?Object.create(null):S1(e)}function id(e,t,n,r){if(e===void 0)return r;var a=Number(e);if(isNaN(a)||a<t||a>n)throw new RangeError("".concat(a," is outside of range [").concat(t,", ").concat(n,"]"));return Math.floor(a)}function ub(e,t,n,r,a){var s=e[t];return id(s,n,r,a)}function Xn(e,t,n,r,a){if(typeof e!="object")throw new TypeError("Options must be an object");var s=e[t];if(s!==void 0){if(n!=="boolean"&&n!=="string")throw new TypeError("invalid type");if(n==="boolean"&&(s=!!s),n==="string"&&(s=b1(s)),r!==void 0&&!r.filter(function(i){return i==s}).length)throw new RangeError("".concat(s," is not within ").concat(r.join(", ")));return s}return a}function eW(e){if(typeof e>"u")return Object.create(null);if(typeof e=="object")return e;throw new TypeError("Options must be an object")}function RI(e,t,n,r,a,s){var i=e[t];if(i===void 0)return s;if(i===!0)return r;var u=!!i;if(u===!1)return a;if(i=b1(i),i==="true"||i==="false")return s;if((n||[]).indexOf(i)===-1)throw new RangeError("Invalid value ".concat(i));return i}var MI=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function OI(e){return e.slice(e.indexOf("-")+1)}var DI=MI.map(OI);function Im(e){return DI.indexOf(e)>-1}function tW(e,t){var n=t.zoneNamesFromData,r=t.uppercaseLinks,a=e.toUpperCase(),s=new Set,i=new Set;return n.map(function(u){return u.toUpperCase()}).forEach(function(u){return s.add(u)}),Object.keys(r).forEach(function(u){i.add(u.toUpperCase()),s.add(r[u].toUpperCase())}),s.has(a)||i.has(a)}function nW(e){return e.replace(/([a-z])/g,function(t,n){return n.toUpperCase()})}var rW=/[^A-Z]/;function II(e){return e=nW(e),!(e.length!==3||rW.test(e))}function aW(e){return e.replace(/([A-Z])/g,function(t,n){return n.toLowerCase()})}function PI(e){if(e=aW(e),Im(e))return!0;var t=e.split("-per-");if(t.length!==2)return!1;var n=t[0],r=t[1];return!(!Im(n)||!Im(r))}function R1(e,t,n,r){if(e.eq(t)||(Ut(t.lessThan(e)&&e.lessThan(n),"x should be between r1 and r2 but x=".concat(e,", r1=").concat(t,", r2=").concat(n)),r==="zero"))return t;if(r==="infinity")return n;var a=e.minus(t),s=n.minus(e);if(a.lessThan(s))return t;if(s.lessThan(a))return n;if(Ut(a.eq(s),"d1 should be equal to d2"),r==="half-zero")return t;if(r==="half-infinity")return n;Ut(r==="half-even","unsignedRoundingMode should be half-even");var i=t.div(n.minus(t)).mod(2);return i.isZero()?t:n}var a_=new Set(["unit","exponentMinusSign","minusSign","plusSign","percentSign","exponentSeparator","percent","percentSign","currency","literal"]);function jI(e,t,n){for(var r=n.getInternalSlots,a=r(e),s=a.dataLocaleData.numbers.symbols[a.numberingSystem],i=new RegExp("s?[".concat(s.rangeSign,"]s?")),u=t.findIndex(function(v){return v.type==="literal"&&i.test(v.value)}),d=[],f=u-1;f>=0&&a_.has(t[f].type);f--)d.unshift(t[f]);if(Array.from(d.map(function(v){return v.value}).join("")).length>1){var m=Array.from(t);return m.splice(u-d.length,d.length),m}for(var p=[],f=u+1;f<t.length&&a_.has(t[f].type);f++)p.push(t[f]);if(Array.from(p.map(function(v){return v.value}).join("")).length>1){var m=Array.from(t);return m.splice(u+1,p.length),m}return t}We.set({toExpPos:100});function db(e,t){var n=e.notation,r=e.dataLocaleData,a=e.numberingSystem;switch(n){case"standard":return 0;case"scientific":return t.toNumber();case"engineering":var s=t.div(3).floor();return s.times(3).toNumber();default:{Ut(n==="compact","Invalid notation");var i=e.compactDisplay,u=e.style,d=e.currencyDisplay,f=void 0;if(u==="currency"&&d!=="name"){var m=r.numbers.currency[a]||r.numbers.currency[r.numbers.nu[0]];f=m.short}else{var p=r.numbers.decimal[a]||r.numbers.decimal[r.numbers.nu[0]];f=i==="long"?p.long:p.short}if(!f)return 0;var v=We.pow(10,t).toString(),y=Object.keys(f);if(v<y[0])return 0;if(v>y[y.length-1])return y[y.length-1].length-1;var x=y.indexOf(v);if(x===-1)return 0;var b=y[x],T=f[b].other;return T==="0"?0:b.length-f[b].other.match(/0+/)[0].length}}}var sW={ceil:"zero",floor:"infinity",expand:"infinity",trunc:"zero",halfCeil:"half-zero",halfFloor:"half-infinity",halfExpand:"half-infinity",halfTrunc:"half-zero",halfEven:"half-even"},oW={ceil:"infinity",floor:"zero",expand:"infinity",trunc:"zero",halfCeil:"half-infinity",halfFloor:"half-zero",halfExpand:"half-infinity",halfTrunc:"half-zero",halfEven:"half-even"};function M1(e,t){return t?sW[e]:oW[e]}We.set({toExpPos:100});function LI(e,t){return e.times(We.pow(10,-t))}function iW(e,t,n){var r=e.times(We.pow(10,t)).floor(),a=r.div(n).floor().times(n),s=LI(a,t);return{n1:a,r1:s}}function lW(e,t,n){var r=e.times(We.pow(10,t)).ceil(),a=r.div(n).ceil().times(n),s=LI(a,t);return{n2:a,r2:s}}function ip(e,t,n,r,a){var s=n,i=iW(e,s,r),u=i.n1,d=i.r1,f=lW(e,s,r),m=f.n2,p=f.r2,v=R1(e,d,p,a),y,x,b;v.eq(d)?(y=u,x=d):(y=m,x=p),y.isZero()?b="0":b=y.toString();var T;if(s!==0){var N=b.length;if(N<=s){var C=fd("0",s-N+1);b=C+b,N=s+1}var A=b.slice(0,N-s),R=b.slice(b.length-s);b=A+"."+R,T=A.length}else T=b.length;for(var _=n-t;_>0&&b[b.length-1]==="0";)b=b.slice(0,b.length-1),_--;return b[b.length-1]==="."&&(b=b.slice(0,b.length-1)),{formattedString:b,roundedNumber:x,integerDigitsCount:T,roundingMagnitude:-s}}function cW(e,t){for(var n=We.pow(10,t),r=We.pow(10,t-1),a=e.div(r).log(10).plus(t).minus(1).ceil(),s=a;;){var i=e.div(We.pow(10,s.minus(t).plus(1))).floor();if(i.lessThan(n)&&i.greaterThanOrEqualTo(r)){var u=i.times(We.pow(10,s.minus(t).plus(1)));if(u.lessThanOrEqualTo(e))return{n1:i,e1:s,r1:u}}s=s.minus(1)}}function uW(e,t){for(var n=We.pow(10,t),r=We.pow(10,t-1),a=e.div(n).log(10).plus(t).minus(1).floor(),s=a;;){var i=e.div(We.pow(10,s.minus(t).plus(1))).ceil();if(i.lessThan(n)&&i.greaterThanOrEqualTo(r)){var u=i.times(We.pow(10,s.minus(t).plus(1)));if(u.greaterThanOrEqualTo(e))return{n2:i,e2:s,r2:u}}s=s.plus(1)}}function fb(e,t,n,r){var a=n,s,i,u;if(e.isZero())s=fd("0",a),i=0,u=rf;else{var d=cW(e,a),f=d.n1,m=d.e1,p=d.r1,v=uW(e,a),y=v.n2,x=v.e2,b=v.r2,T=R1(e,p,b,r),N=void 0;T.eq(p)?(N=f,i=m.toNumber(),u=p):(N=y,i=x.toNumber(),u=b),s=N.toString()}var C;if(i>=a-1?(s=s+fd("0",i-a+1),C=i+1):i>=0?(s=s.slice(0,i+1)+"."+s.slice(s.length-(a-(i+1))),C=i+1):(Ut(i<0,"e should be less than 0"),s="0."+fd("0",-i-1)+s,C=1),s.includes(".")&&n>t){for(var A=n-t;A>0&&s[s.length-1]==="0";)s=s.slice(0,s.length-1),A--;s[s.length-1]==="."&&(s=s.slice(0,s.length-1))}return{formattedString:s,roundedNumber:u,integerDigitsCount:C,roundingMagnitude:i}}function O1(e,t){var n=t,r;n.isZero()&&n.isNegative()?(r="negative",n=rf):(Ut(n.isFinite(),"NumberFormatDigitInternalSlots value is not finite"),n.lessThan(0)?r="negative":r="positive",r==="negative"&&(n=n.negated()));var a,s=e.roundingType,i=M1(e.roundingMode,r==="negative");switch(s){case"significantDigits":a=fb(n,e.minimumSignificantDigits,e.maximumSignificantDigits,i);break;case"fractionDigits":a=ip(n,e.minimumFractionDigits,e.maximumFractionDigits,e.roundingIncrement,i);break;default:var u=fb(n,e.minimumSignificantDigits,e.maximumSignificantDigits,i),d=ip(n,e.minimumFractionDigits,e.maximumFractionDigits,e.roundingIncrement,i);e.roundingType==="morePrecision"?u.roundingMagnitude<=d.roundingMagnitude?a=u:a=d:(Ut(e.roundingType==="lessPrecision","Invalid roundingType"),u.roundingMagnitude<=d.roundingMagnitude?a=d:a=u);break}n=a.roundedNumber;var f=a.formattedString;if(e.trailingZeroDisplay==="stripIfInteger"&&n.isInteger()){var m=f.indexOf(".");m>-1&&(f=f.slice(0,m))}var p=a.integerDigitsCount,v=e.minimumIntegerDigits;if(p<v){var y=fd("0",v-p);f=y+f}return r==="negative"&&(n.isZero()?n=_Y:n=n.negated()),{roundedNumber:n,formattedString:f}}function kI(e,t){if(t.isZero())return[0,0];t.isNegative()&&(t=t.negated());var n=t.log(10).floor(),r=db(e,n);t=t.times(We.pow(10,-r));var a=O1(e,t);if(a.roundedNumber.isZero())return[r,n.toNumber()];var s=a.roundedNumber.log(10).floor();return s.eq(n.minus(r))?[r,n.toNumber()]:[db(e,n.plus(1)),n.plus(1).toNumber()]}function UI(e,t){var n=t.currencyDigitsData;return xI(n,e)?n[e]:2}var FI=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/,dW={adlm:["𞥐","𞥑","𞥒","𞥓","𞥔","𞥕","𞥖","𞥗","𞥘","𞥙"],ahom:["𑜰","𑜱","𑜲","𑜳","𑜴","𑜵","𑜶","𑜷","𑜸","𑜹"],arab:["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],arabext:["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],bali:["᭐","᭑","᭒","᭓","᭔","᭕","᭖","᭗","᭘","᭙"],beng:["০","১","২","৩","৪","৫","৬","৭","৮","৯"],bhks:["𑱐","𑱑","𑱒","𑱓","𑱔","𑱕","𑱖","𑱗","𑱘","𑱙"],brah:["𑁦","𑁧","𑁨","𑁩","𑁪","𑁫","𑁬","𑁭","𑁮","𑁯"],cakm:["𑄶","𑄷","𑄸","𑄹","𑄺","𑄻","𑄼","𑄽","𑄾","𑄿"],cham:["꩐","꩑","꩒","꩓","꩔","꩕","꩖","꩗","꩘","꩙"],deva:["०","१","२","३","४","५","६","७","८","९"],diak:["𑥐","𑥑","𑥒","𑥓","𑥔","𑥕","𑥖","𑥗","𑥘","𑥙"],fullwide:["０","１","２","３","４","５","６","７","８","９"],gong:["𑶠","𑶡","𑶢","𑶣","𑶤","𑶥","𑶦","𑶧","𑶨","𑶩"],gonm:["𑵐","𑵑","𑵒","𑵓","𑵔","𑵕","𑵖","𑵗","𑵘","𑵙"],gujr:["૦","૧","૨","૩","૪","૫","૬","૭","૮","૯"],guru:["੦","੧","੨","੩","੪","੫","੬","੭","੮","੯"],hanidec:["〇","一","二","三","四","五","六","七","八","九"],hmng:["𖭐","𖭑","𖭒","𖭓","𖭔","𖭕","𖭖","𖭗","𖭘","𖭙"],hmnp:["𞅀","𞅁","𞅂","𞅃","𞅄","𞅅","𞅆","𞅇","𞅈","𞅉"],java:["꧐","꧑","꧒","꧓","꧔","꧕","꧖","꧗","꧘","꧙"],kali:["꤀","꤁","꤂","꤃","꤄","꤅","꤆","꤇","꤈","꤉"],khmr:["០","១","២","៣","៤","៥","៦","៧","៨","៩"],knda:["೦","೧","೨","೩","೪","೫","೬","೭","೮","೯"],lana:["᪀","᪁","᪂","᪃","᪄","᪅","᪆","᪇","᪈","᪉"],lanatham:["᪐","᪑","᪒","᪓","᪔","᪕","᪖","᪗","᪘","᪙"],laoo:["໐","໑","໒","໓","໔","໕","໖","໗","໘","໙"],lepc:["᪐","᪑","᪒","᪓","᪔","᪕","᪖","᪗","᪘","᪙"],limb:["᥆","᥇","᥈","᥉","᥊","᥋","᥌","᥍","᥎","᥏"],mathbold:["𝟎","𝟏","𝟐","𝟑","𝟒","𝟓","𝟔","𝟕","𝟖","𝟗"],mathdbl:["𝟘","𝟙","𝟚","𝟛","𝟜","𝟝","𝟞","𝟟","𝟠","𝟡"],mathmono:["𝟶","𝟷","𝟸","𝟹","𝟺","𝟻","𝟼","𝟽","𝟾","𝟿"],mathsanb:["𝟬","𝟭","𝟮","𝟯","𝟰","𝟱","𝟲","𝟳","𝟴","𝟵"],mathsans:["𝟢","𝟣","𝟤","𝟥","𝟦","𝟧","𝟨","𝟩","𝟪","𝟫"],mlym:["൦","൧","൨","൩","൪","൫","൬","൭","൮","൯"],modi:["𑙐","𑙑","𑙒","𑙓","𑙔","𑙕","𑙖","𑙗","𑙘","𑙙"],mong:["᠐","᠑","᠒","᠓","᠔","᠕","᠖","᠗","᠘","᠙"],mroo:["𖩠","𖩡","𖩢","𖩣","𖩤","𖩥","𖩦","𖩧","𖩨","𖩩"],mtei:["꯰","꯱","꯲","꯳","꯴","꯵","꯶","꯷","꯸","꯹"],mymr:["၀","၁","၂","၃","၄","၅","၆","၇","၈","၉"],mymrshan:["႐","႑","႒","႓","႔","႕","႖","႗","႘","႙"],mymrtlng:["꧰","꧱","꧲","꧳","꧴","꧵","꧶","꧷","꧸","꧹"],newa:["𑑐","𑑑","𑑒","𑑓","𑑔","𑑕","𑑖","𑑗","𑑘","𑑙"],nkoo:["߀","߁","߂","߃","߄","߅","߆","߇","߈","߉"],olck:["᱐","᱑","᱒","᱓","᱔","᱕","᱖","᱗","᱘","᱙"],orya:["୦","୧","୨","୩","୪","୫","୬","୭","୮","୯"],osma:["𐒠","𐒡","𐒢","𐒣","𐒤","𐒥","𐒦","𐒧","𐒨","𐒩"],rohg:["𐴰","𐴱","𐴲","𐴳","𐴴","𐴵","𐴶","𐴷","𐴸","𐴹"],saur:["꣐","꣑","꣒","꣓","꣔","꣕","꣖","꣗","꣘","꣙"],segment:["🯰","🯱","🯲","🯳","🯴","🯵","🯶","🯷","🯸","🯹"],shrd:["𑇐","𑇑","𑇒","𑇓","𑇔","𑇕","𑇖","𑇗","𑇘","𑇙"],sind:["𑋰","𑋱","𑋲","𑋳","𑋴","𑋵","𑋶","𑋷","𑋸","𑋹"],sinh:["෦","෧","෨","෩","෪","෫","෬","෭","෮","෯"],sora:["𑃰","𑃱","𑃲","𑃳","𑃴","𑃵","𑃶","𑃷","𑃸","𑃹"],sund:["᮰","᮱","᮲","᮳","᮴","᮵","᮶","᮷","᮸","᮹"],takr:["𑛀","𑛁","𑛂","𑛃","𑛄","𑛅","𑛆","𑛇","𑛈","𑛉"],talu:["᧐","᧑","᧒","᧓","᧔","᧕","᧖","᧗","᧘","᧙"],tamldec:["௦","௧","௨","௩","௪","௫","௬","௭","௮","௯"],telu:["౦","౧","౨","౩","౪","౫","౬","౭","౮","౯"],thai:["๐","๑","๒","๓","๔","๕","๖","๗","๘","๙"],tibt:["༠","༡","༢","༣","༤","༥","༦","༧","༨","༩"],tirh:["𑓐","𑓑","𑓒","𑓓","𑓔","𑓕","𑓖","𑓗","𑓘","𑓙"],vaii:["ᘠ","ᘡ","ᘢ","ᘣ","ᘤ","ᘥ","ᘦ","ᘧ","ᘨ","ᘩ"],wara:["𑣠","𑣡","𑣢","𑣣","𑣤","𑣥","𑣦","𑣧","𑣨","𑣩"],wcho:["𞋰","𞋱","𞋲","𞋳","𞋴","𞋵","𞋶","𞋷","𞋸","𞋹"]},fW=new RegExp("^".concat(FI.source)),hW=new RegExp("".concat(FI.source,"$")),s_=/[#0](?:[\.,][#0]+)*/g;function BI(e,t,n,r){var a,s=e.sign,i=e.exponent,u=e.magnitude,d=r.notation,f=r.style,m=r.numberingSystem,p=t.numbers.nu[0],v=null;d==="compact"&&u&&(v=pW(e,n,t,f,r.compactDisplay,r.currencyDisplay,m));var y;if(f==="currency"&&r.currencyDisplay!=="name"){var x=t.currencies[r.currency];if(x)switch(r.currencyDisplay){case"code":y=r.currency;break;case"symbol":y=x.symbol;break;default:y=x.narrow;break}else y=r.currency}var b;if(v)b=v;else if(f==="decimal"||f==="unit"||f==="currency"&&r.currencyDisplay==="name"){var T=t.numbers.decimal[m]||t.numbers.decimal[p];b=Pm(T.standard,s)}else if(f==="currency"){var N=t.numbers.currency[m]||t.numbers.currency[p];b=Pm(N[r.currencySign],s)}else{var C=t.numbers.percent[m]||t.numbers.percent[p];b=Pm(C,s)}var A=s_.exec(b)[0];if(b=b.replace(s_,"{0}").replace(/'(.)'/g,"$1"),f==="currency"&&r.currencyDisplay!=="name"){var N=t.numbers.currency[m]||t.numbers.currency[p],R=N.currencySpacing.afterInsertBetween;R&&!hW.test(y)&&(b=b.replace("¤{0}","¤".concat(R,"{0}")));var _=N.currencySpacing.beforeInsertBetween;_&&!fW.test(y)&&(b=b.replace("{0}¤","{0}".concat(_,"¤")))}for(var O=b.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),D=[],P=t.numbers.symbols[m]||t.numbers.symbols[p],L=0,U=O;L<U.length;L++){var B=U[L];if(B)switch(B){case"{0}":{D.push.apply(D,mW(P,e,d,i,m,!v&&((a=r.useGrouping)!==null&&a!==void 0?a:!0),A,f,r.roundingIncrement,M1(r.roundingMode,s===-1)));break}case"-":D.push({type:"minusSign",value:P.minusSign});break;case"+":D.push({type:"plusSign",value:P.plusSign});break;case"%":D.push({type:"percentSign",value:P.percentSign});break;case"¤":D.push({type:"currency",value:y});break;default:/^\{c:/.test(B)?D.push({type:"compact",value:B.substring(3,B.length-1)}):D.push({type:"literal",value:B});break}}switch(f){case"currency":if(r.currencyDisplay==="name"){var H=(t.numbers.currency[m]||t.numbers.currency[p]).unitPattern,Z=void 0,ee=t.currencies[r.currency];ee?Z=Jl(n,e.roundedNumber.times(We.pow(10,i)).toNumber(),ee.displayName):Z=r.currency;for(var Q=H.split(/(\{[01]\})/g),j=[],Y=0,V=Q;Y<V.length;Y++){var B=V[Y];switch(B){case"{0}":j.push.apply(j,D);break;case"{1}":j.push({type:"currency",value:Z});break;default:B&&j.push({type:"literal",value:B});break}}return j}else return D;case"unit":{var te=r.unit,k=r.unitDisplay,$=t.units.simple[te],H=void 0;if($)H=Jl(n,e.roundedNumber.times(We.pow(10,i)).toNumber(),t.units.simple[te][k]);else{var se=te.split("-per-"),re=se[0],ue=se[1];$=t.units.simple[re];var xe=Jl(n,e.roundedNumber.times(We.pow(10,i)).toNumber(),t.units.simple[re][k]),fe=t.units.simple[ue].perUnit[k];if(fe)H=fe.replace("{0}",xe);else{var he=t.units.compound.per[k],ge=Jl(n,1,t.units.simple[ue][k]);H=H=he.replace("{0}",xe).replace("{1}",ge.replace("{0}",""))}}for(var j=[],Ne=0,Ae=H.split(/(\s*\{0\}\s*)/);Ne<Ae.length;Ne++){var B=Ae[Ne],Me=/^(\s*)\{0\}(\s*)$/.exec(B);Me?(Me[1]&&j.push({type:"literal",value:Me[1]}),j.push.apply(j,D),Me[2]&&j.push({type:"literal",value:Me[2]})):B&&j.push({type:"unit",value:B})}return j}default:return D}}function mW(e,t,n,r,a,s,i,u,d,f){var m=[],p=t.formattedString,v=t.roundedNumber;if(v.isNaN())return[{type:"nan",value:p}];if(!v.isFinite())return[{type:"infinity",value:p}];var y=dW[a];y&&(p=p.replace(/\d/g,function(H){return y[+H]||H}));var x=p.indexOf("."),b,T;x>0?(b=p.slice(0,x),T=p.slice(x+1)):b=p;var N=!1;if(s==="always"?N=!0:s==="min2"?N=v.greaterThanOrEqualTo(1e4):(s==="auto"||s)&&(N=n!=="compact"||v.greaterThanOrEqualTo(1e4)),N){var C=u==="currency"&&e.currencyGroup!=null?e.currencyGroup:e.group,A=[],R=i.split(".")[0],_=R.split(","),O=3,D=3;_.length>1&&(O=_[_.length-1].length),_.length>2&&(D=_[_.length-2].length);var P=b.length-O;if(P>0){for(A.push(b.slice(P,P+O)),P-=D;P>0;P-=D)A.push(b.slice(P,P+D));A.push(b.slice(0,P+D))}else A.push(b);for(;A.length>0;){var L=A.pop();m.push({type:"integer",value:L}),A.length>0&&m.push({type:"group",value:C})}}else m.push({type:"integer",value:b});if(T!==void 0){var U=u==="currency"&&e.currencyDecimal!=null?e.currencyDecimal:e.decimal;m.push({type:"decimal",value:U},{type:"fraction",value:T})}if((n==="scientific"||n==="engineering")&&v.isFinite()){m.push({type:"exponentSeparator",value:e.exponential}),r<0&&(m.push({type:"exponentMinusSign",value:e.minusSign}),r=-r);var B=ip(new We(r),0,0,d,f);m.push({type:"exponentInteger",value:B.formattedString})}return m}function Pm(e,t){e.indexOf(";")<0&&(e="".concat(e,";-").concat(e));var n=e.split(";"),r=n[0],a=n[1];switch(t){case 0:return r;case-1:return a;default:return a.indexOf("-")>=0?a.replace(/-/g,"+"):"+".concat(r)}}function pW(e,t,n,r,a,s,i){var u,d=e.roundedNumber,f=e.sign,m=e.magnitude,p=String(Math.pow(10,m)),v=n.numbers.nu[0],y;if(r==="currency"&&s!=="name"){var x=n.numbers.currency,b=x[i]||x[v],T=(u=b.short)===null||u===void 0?void 0:u[p];if(!T)return null;y=Jl(t,d.toNumber(),T)}else{var x=n.numbers.decimal,N=x[i]||x[v],C=N[a][p];if(!C)return null;y=Jl(t,d.toNumber(),C)}return y==="0"?null:(y=Pm(y,f).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0"),y)}function Jl(e,t,n){return n[e.select(t)]||n.other}function HI(e,t){var n=e.dataLocaleData.numbers.symbols[e.numberingSystem],r=n.approximatelySign;return t.push({type:"approximatelySign",value:r}),t}function Cd(e,t){var n,r=t,a=0,s=e.pl,i=e.dataLocaleData,u=e.numberingSystem,d=i.numbers.symbols[u]||i.numbers.symbols[i.numbers.nu[0]],f=0,m;if(r.isNaN())m=d.nan;else if(!r.isFinite())m=d.infinity;else{r.isZero()||(Ut(r.isFinite(),"Input must be a mathematical value"),e.style=="percent"&&(r=r.times(100)),n=kI(e,r),f=n[0],a=n[1],r=r.times(We.pow(10,-f)));var p=O1(e,r);m=p.formattedString,r=p.roundedNumber}var v,y=e.signDisplay;switch(y){case"never":v=0;break;case"auto":r.isPositive()||r.isNaN()?v=0:v=-1;break;case"always":r.isPositive()||r.isNaN()?v=1:v=-1;break;case"exceptZero":r.isZero()?v=0:r.isNegative()?v=-1:v=1;break;default:Ut(y==="negative",'signDisplay must be "negative"'),r.isNegative()&&!r.isZero()?v=-1:v=0;break}return BI({roundedNumber:r,formattedString:m,exponent:f,magnitude:a,sign:v},e.dataLocaleData,s,e)}function hb(e,t){var n=Cd(e,t);return n.map(function(r){return r.value}).join("")}function D1(e,t,n,r){var a=r.getInternalSlots;Ut(!t.isNaN()&&!n.isNaN(),"Input must be a number",RangeError);var s=a(e),i=Cd(s,t),u=Cd(s,n);if(hb(s,t)===hb(s,n)){var d=HI(s,i);return d.forEach(function(p){p.source="shared"}),d}var f=[];i.forEach(function(p){p.source="startRange",f.push(p)});var m=s.dataLocaleData.numbers.symbols[s.numberingSystem].rangeSign;return f.push({type:"literal",value:m,source:"shared"}),u.forEach(function(p){p.source="endRange",f.push(p)}),jI(e,f,{getInternalSlots:a})}function gW(e,t,n,r){var a=r.getInternalSlots,s=D1(e,t,n,{getInternalSlots:a});return s.map(function(i){return i.value}).join("")}function vW(e,t,n,r){var a=r.getInternalSlots,s=D1(e,t,n,{getInternalSlots:a});return s.map(function(i,u){return{type:i.type,value:i.value,source:i.source,result:u.toString()}})}function yW(e,t,n){for(var r=Cd(n.getInternalSlots(e),t),a=yI(0),s=0,i=r;s<i.length;s++){var u=i[s];a.push({type:u.type,value:u.value})}return a}function xW(e){return Intl.getCanonicalLocales(e)}var Dy={supplemental:{languageMatching:{"written-new":[{paradigmLocales:{_locales:"en en_GB es es_419 pt_BR pt_PT"}},{$enUS:{_value:"AS+CA+GU+MH+MP+PH+PR+UM+US+VI"}},{$cnsar:{_value:"HK+MO"}},{$americas:{_value:"019"}},{$maghreb:{_value:"MA+DZ+TN+LY+MR+EH"}},{no:{_desired:"nb",_distance:"1"}},{bs:{_desired:"hr",_distance:"4"}},{bs:{_desired:"sh",_distance:"4"}},{hr:{_desired:"sh",_distance:"4"}},{sr:{_desired:"sh",_distance:"4"}},{aa:{_desired:"ssy",_distance:"4"}},{de:{_desired:"gsw",_distance:"4",_oneway:"true"}},{de:{_desired:"lb",_distance:"4",_oneway:"true"}},{no:{_desired:"da",_distance:"8"}},{nb:{_desired:"da",_distance:"8"}},{ru:{_desired:"ab",_distance:"30",_oneway:"true"}},{en:{_desired:"ach",_distance:"30",_oneway:"true"}},{nl:{_desired:"af",_distance:"20",_oneway:"true"}},{en:{_desired:"ak",_distance:"30",_oneway:"true"}},{en:{_desired:"am",_distance:"30",_oneway:"true"}},{es:{_desired:"ay",_distance:"20",_oneway:"true"}},{ru:{_desired:"az",_distance:"30",_oneway:"true"}},{ur:{_desired:"bal",_distance:"20",_oneway:"true"}},{ru:{_desired:"be",_distance:"20",_oneway:"true"}},{en:{_desired:"bem",_distance:"30",_oneway:"true"}},{hi:{_desired:"bh",_distance:"30",_oneway:"true"}},{en:{_desired:"bn",_distance:"30",_oneway:"true"}},{zh:{_desired:"bo",_distance:"20",_oneway:"true"}},{fr:{_desired:"br",_distance:"20",_oneway:"true"}},{es:{_desired:"ca",_distance:"20",_oneway:"true"}},{fil:{_desired:"ceb",_distance:"30",_oneway:"true"}},{en:{_desired:"chr",_distance:"20",_oneway:"true"}},{ar:{_desired:"ckb",_distance:"30",_oneway:"true"}},{fr:{_desired:"co",_distance:"20",_oneway:"true"}},{fr:{_desired:"crs",_distance:"20",_oneway:"true"}},{sk:{_desired:"cs",_distance:"20"}},{en:{_desired:"cy",_distance:"20",_oneway:"true"}},{en:{_desired:"ee",_distance:"30",_oneway:"true"}},{en:{_desired:"eo",_distance:"30",_oneway:"true"}},{es:{_desired:"eu",_distance:"20",_oneway:"true"}},{da:{_desired:"fo",_distance:"20",_oneway:"true"}},{nl:{_desired:"fy",_distance:"20",_oneway:"true"}},{en:{_desired:"ga",_distance:"20",_oneway:"true"}},{en:{_desired:"gaa",_distance:"30",_oneway:"true"}},{en:{_desired:"gd",_distance:"20",_oneway:"true"}},{es:{_desired:"gl",_distance:"20",_oneway:"true"}},{es:{_desired:"gn",_distance:"20",_oneway:"true"}},{hi:{_desired:"gu",_distance:"30",_oneway:"true"}},{en:{_desired:"ha",_distance:"30",_oneway:"true"}},{en:{_desired:"haw",_distance:"20",_oneway:"true"}},{fr:{_desired:"ht",_distance:"20",_oneway:"true"}},{ru:{_desired:"hy",_distance:"30",_oneway:"true"}},{en:{_desired:"ia",_distance:"30",_oneway:"true"}},{en:{_desired:"ig",_distance:"30",_oneway:"true"}},{en:{_desired:"is",_distance:"20",_oneway:"true"}},{id:{_desired:"jv",_distance:"20",_oneway:"true"}},{en:{_desired:"ka",_distance:"30",_oneway:"true"}},{fr:{_desired:"kg",_distance:"30",_oneway:"true"}},{ru:{_desired:"kk",_distance:"30",_oneway:"true"}},{en:{_desired:"km",_distance:"30",_oneway:"true"}},{en:{_desired:"kn",_distance:"30",_oneway:"true"}},{en:{_desired:"kri",_distance:"30",_oneway:"true"}},{tr:{_desired:"ku",_distance:"30",_oneway:"true"}},{ru:{_desired:"ky",_distance:"30",_oneway:"true"}},{it:{_desired:"la",_distance:"20",_oneway:"true"}},{en:{_desired:"lg",_distance:"30",_oneway:"true"}},{fr:{_desired:"ln",_distance:"30",_oneway:"true"}},{en:{_desired:"lo",_distance:"30",_oneway:"true"}},{en:{_desired:"loz",_distance:"30",_oneway:"true"}},{fr:{_desired:"lua",_distance:"30",_oneway:"true"}},{hi:{_desired:"mai",_distance:"20",_oneway:"true"}},{en:{_desired:"mfe",_distance:"30",_oneway:"true"}},{fr:{_desired:"mg",_distance:"30",_oneway:"true"}},{en:{_desired:"mi",_distance:"20",_oneway:"true"}},{en:{_desired:"ml",_distance:"30",_oneway:"true"}},{ru:{_desired:"mn",_distance:"30",_oneway:"true"}},{hi:{_desired:"mr",_distance:"30",_oneway:"true"}},{id:{_desired:"ms",_distance:"30",_oneway:"true"}},{en:{_desired:"mt",_distance:"30",_oneway:"true"}},{en:{_desired:"my",_distance:"30",_oneway:"true"}},{en:{_desired:"ne",_distance:"30",_oneway:"true"}},{nb:{_desired:"nn",_distance:"20"}},{no:{_desired:"nn",_distance:"20"}},{en:{_desired:"nso",_distance:"30",_oneway:"true"}},{en:{_desired:"ny",_distance:"30",_oneway:"true"}},{en:{_desired:"nyn",_distance:"30",_oneway:"true"}},{fr:{_desired:"oc",_distance:"20",_oneway:"true"}},{en:{_desired:"om",_distance:"30",_oneway:"true"}},{en:{_desired:"or",_distance:"30",_oneway:"true"}},{en:{_desired:"pa",_distance:"30",_oneway:"true"}},{en:{_desired:"pcm",_distance:"20",_oneway:"true"}},{en:{_desired:"ps",_distance:"30",_oneway:"true"}},{es:{_desired:"qu",_distance:"30",_oneway:"true"}},{de:{_desired:"rm",_distance:"20",_oneway:"true"}},{en:{_desired:"rn",_distance:"30",_oneway:"true"}},{fr:{_desired:"rw",_distance:"30",_oneway:"true"}},{hi:{_desired:"sa",_distance:"30",_oneway:"true"}},{en:{_desired:"sd",_distance:"30",_oneway:"true"}},{en:{_desired:"si",_distance:"30",_oneway:"true"}},{en:{_desired:"sn",_distance:"30",_oneway:"true"}},{en:{_desired:"so",_distance:"30",_oneway:"true"}},{en:{_desired:"sq",_distance:"30",_oneway:"true"}},{en:{_desired:"st",_distance:"30",_oneway:"true"}},{id:{_desired:"su",_distance:"20",_oneway:"true"}},{en:{_desired:"sw",_distance:"30",_oneway:"true"}},{en:{_desired:"ta",_distance:"30",_oneway:"true"}},{en:{_desired:"te",_distance:"30",_oneway:"true"}},{ru:{_desired:"tg",_distance:"30",_oneway:"true"}},{en:{_desired:"ti",_distance:"30",_oneway:"true"}},{ru:{_desired:"tk",_distance:"30",_oneway:"true"}},{en:{_desired:"tlh",_distance:"30",_oneway:"true"}},{en:{_desired:"tn",_distance:"30",_oneway:"true"}},{en:{_desired:"to",_distance:"30",_oneway:"true"}},{ru:{_desired:"tt",_distance:"30",_oneway:"true"}},{en:{_desired:"tum",_distance:"30",_oneway:"true"}},{zh:{_desired:"ug",_distance:"20",_oneway:"true"}},{ru:{_desired:"uk",_distance:"20",_oneway:"true"}},{en:{_desired:"ur",_distance:"30",_oneway:"true"}},{ru:{_desired:"uz",_distance:"30",_oneway:"true"}},{fr:{_desired:"wo",_distance:"30",_oneway:"true"}},{en:{_desired:"xh",_distance:"30",_oneway:"true"}},{en:{_desired:"yi",_distance:"30",_oneway:"true"}},{en:{_desired:"yo",_distance:"30",_oneway:"true"}},{zh:{_desired:"za",_distance:"20",_oneway:"true"}},{en:{_desired:"zu",_distance:"30",_oneway:"true"}},{ar:{_desired:"aao",_distance:"10",_oneway:"true"}},{ar:{_desired:"abh",_distance:"10",_oneway:"true"}},{ar:{_desired:"abv",_distance:"10",_oneway:"true"}},{ar:{_desired:"acm",_distance:"10",_oneway:"true"}},{ar:{_desired:"acq",_distance:"10",_oneway:"true"}},{ar:{_desired:"acw",_distance:"10",_oneway:"true"}},{ar:{_desired:"acx",_distance:"10",_oneway:"true"}},{ar:{_desired:"acy",_distance:"10",_oneway:"true"}},{ar:{_desired:"adf",_distance:"10",_oneway:"true"}},{ar:{_desired:"aeb",_distance:"10",_oneway:"true"}},{ar:{_desired:"aec",_distance:"10",_oneway:"true"}},{ar:{_desired:"afb",_distance:"10",_oneway:"true"}},{ar:{_desired:"ajp",_distance:"10",_oneway:"true"}},{ar:{_desired:"apc",_distance:"10",_oneway:"true"}},{ar:{_desired:"apd",_distance:"10",_oneway:"true"}},{ar:{_desired:"arq",_distance:"10",_oneway:"true"}},{ar:{_desired:"ars",_distance:"10",_oneway:"true"}},{ar:{_desired:"ary",_distance:"10",_oneway:"true"}},{ar:{_desired:"arz",_distance:"10",_oneway:"true"}},{ar:{_desired:"auz",_distance:"10",_oneway:"true"}},{ar:{_desired:"avl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayh",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayn",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayp",_distance:"10",_oneway:"true"}},{ar:{_desired:"bbz",_distance:"10",_oneway:"true"}},{ar:{_desired:"pga",_distance:"10",_oneway:"true"}},{ar:{_desired:"shu",_distance:"10",_oneway:"true"}},{ar:{_desired:"ssh",_distance:"10",_oneway:"true"}},{az:{_desired:"azb",_distance:"10",_oneway:"true"}},{et:{_desired:"vro",_distance:"10",_oneway:"true"}},{ff:{_desired:"ffm",_distance:"10",_oneway:"true"}},{ff:{_desired:"fub",_distance:"10",_oneway:"true"}},{ff:{_desired:"fue",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuf",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuh",_distance:"10",_oneway:"true"}},{ff:{_desired:"fui",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuq",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuv",_distance:"10",_oneway:"true"}},{gn:{_desired:"gnw",_distance:"10",_oneway:"true"}},{gn:{_desired:"gui",_distance:"10",_oneway:"true"}},{gn:{_desired:"gun",_distance:"10",_oneway:"true"}},{gn:{_desired:"nhd",_distance:"10",_oneway:"true"}},{iu:{_desired:"ikt",_distance:"10",_oneway:"true"}},{kln:{_desired:"enb",_distance:"10",_oneway:"true"}},{kln:{_desired:"eyo",_distance:"10",_oneway:"true"}},{kln:{_desired:"niq",_distance:"10",_oneway:"true"}},{kln:{_desired:"oki",_distance:"10",_oneway:"true"}},{kln:{_desired:"pko",_distance:"10",_oneway:"true"}},{kln:{_desired:"sgc",_distance:"10",_oneway:"true"}},{kln:{_desired:"tec",_distance:"10",_oneway:"true"}},{kln:{_desired:"tuy",_distance:"10",_oneway:"true"}},{kok:{_desired:"gom",_distance:"10",_oneway:"true"}},{kpe:{_desired:"gkp",_distance:"10",_oneway:"true"}},{luy:{_desired:"ida",_distance:"10",_oneway:"true"}},{luy:{_desired:"lkb",_distance:"10",_oneway:"true"}},{luy:{_desired:"lko",_distance:"10",_oneway:"true"}},{luy:{_desired:"lks",_distance:"10",_oneway:"true"}},{luy:{_desired:"lri",_distance:"10",_oneway:"true"}},{luy:{_desired:"lrm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lsm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lto",_distance:"10",_oneway:"true"}},{luy:{_desired:"lts",_distance:"10",_oneway:"true"}},{luy:{_desired:"lwg",_distance:"10",_oneway:"true"}},{luy:{_desired:"nle",_distance:"10",_oneway:"true"}},{luy:{_desired:"nyd",_distance:"10",_oneway:"true"}},{luy:{_desired:"rag",_distance:"10",_oneway:"true"}},{lv:{_desired:"ltg",_distance:"10",_oneway:"true"}},{mg:{_desired:"bhr",_distance:"10",_oneway:"true"}},{mg:{_desired:"bjq",_distance:"10",_oneway:"true"}},{mg:{_desired:"bmm",_distance:"10",_oneway:"true"}},{mg:{_desired:"bzc",_distance:"10",_oneway:"true"}},{mg:{_desired:"msh",_distance:"10",_oneway:"true"}},{mg:{_desired:"skg",_distance:"10",_oneway:"true"}},{mg:{_desired:"tdx",_distance:"10",_oneway:"true"}},{mg:{_desired:"tkg",_distance:"10",_oneway:"true"}},{mg:{_desired:"txy",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmv",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmw",_distance:"10",_oneway:"true"}},{mn:{_desired:"mvf",_distance:"10",_oneway:"true"}},{ms:{_desired:"bjn",_distance:"10",_oneway:"true"}},{ms:{_desired:"btj",_distance:"10",_oneway:"true"}},{ms:{_desired:"bve",_distance:"10",_oneway:"true"}},{ms:{_desired:"bvu",_distance:"10",_oneway:"true"}},{ms:{_desired:"coa",_distance:"10",_oneway:"true"}},{ms:{_desired:"dup",_distance:"10",_oneway:"true"}},{ms:{_desired:"hji",_distance:"10",_oneway:"true"}},{ms:{_desired:"id",_distance:"10",_oneway:"true"}},{ms:{_desired:"jak",_distance:"10",_oneway:"true"}},{ms:{_desired:"jax",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvb",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvr",_distance:"10",_oneway:"true"}},{ms:{_desired:"kxd",_distance:"10",_oneway:"true"}},{ms:{_desired:"lce",_distance:"10",_oneway:"true"}},{ms:{_desired:"lcf",_distance:"10",_oneway:"true"}},{ms:{_desired:"liw",_distance:"10",_oneway:"true"}},{ms:{_desired:"max",_distance:"10",_oneway:"true"}},{ms:{_desired:"meo",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfa",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfb",_distance:"10",_oneway:"true"}},{ms:{_desired:"min",_distance:"10",_oneway:"true"}},{ms:{_desired:"mqg",_distance:"10",_oneway:"true"}},{ms:{_desired:"msi",_distance:"10",_oneway:"true"}},{ms:{_desired:"mui",_distance:"10",_oneway:"true"}},{ms:{_desired:"orn",_distance:"10",_oneway:"true"}},{ms:{_desired:"ors",_distance:"10",_oneway:"true"}},{ms:{_desired:"pel",_distance:"10",_oneway:"true"}},{ms:{_desired:"pse",_distance:"10",_oneway:"true"}},{ms:{_desired:"tmw",_distance:"10",_oneway:"true"}},{ms:{_desired:"urk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkt",_distance:"10",_oneway:"true"}},{ms:{_desired:"xmm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zlm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zmi",_distance:"10",_oneway:"true"}},{ne:{_desired:"dty",_distance:"10",_oneway:"true"}},{om:{_desired:"gax",_distance:"10",_oneway:"true"}},{om:{_desired:"hae",_distance:"10",_oneway:"true"}},{om:{_desired:"orc",_distance:"10",_oneway:"true"}},{or:{_desired:"spv",_distance:"10",_oneway:"true"}},{ps:{_desired:"pbt",_distance:"10",_oneway:"true"}},{ps:{_desired:"pst",_distance:"10",_oneway:"true"}},{qu:{_desired:"qub",_distance:"10",_oneway:"true"}},{qu:{_desired:"qud",_distance:"10",_oneway:"true"}},{qu:{_desired:"quf",_distance:"10",_oneway:"true"}},{qu:{_desired:"qug",_distance:"10",_oneway:"true"}},{qu:{_desired:"quh",_distance:"10",_oneway:"true"}},{qu:{_desired:"quk",_distance:"10",_oneway:"true"}},{qu:{_desired:"qul",_distance:"10",_oneway:"true"}},{qu:{_desired:"qup",_distance:"10",_oneway:"true"}},{qu:{_desired:"qur",_distance:"10",_oneway:"true"}},{qu:{_desired:"qus",_distance:"10",_oneway:"true"}},{qu:{_desired:"quw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qux",_distance:"10",_oneway:"true"}},{qu:{_desired:"quy",_distance:"10",_oneway:"true"}},{qu:{_desired:"qva",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qve",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvi",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvj",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvm",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvs",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvz",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qws",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxr",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxt",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxu",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxw",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdc",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdn",_distance:"10",_oneway:"true"}},{sc:{_desired:"sro",_distance:"10",_oneway:"true"}},{sq:{_desired:"aae",_distance:"10",_oneway:"true"}},{sq:{_desired:"aat",_distance:"10",_oneway:"true"}},{sq:{_desired:"aln",_distance:"10",_oneway:"true"}},{syr:{_desired:"aii",_distance:"10",_oneway:"true"}},{uz:{_desired:"uzs",_distance:"10",_oneway:"true"}},{yi:{_desired:"yih",_distance:"10",_oneway:"true"}},{zh:{_desired:"cdo",_distance:"10",_oneway:"true"}},{zh:{_desired:"cjy",_distance:"10",_oneway:"true"}},{zh:{_desired:"cpx",_distance:"10",_oneway:"true"}},{zh:{_desired:"czh",_distance:"10",_oneway:"true"}},{zh:{_desired:"czo",_distance:"10",_oneway:"true"}},{zh:{_desired:"gan",_distance:"10",_oneway:"true"}},{zh:{_desired:"hak",_distance:"10",_oneway:"true"}},{zh:{_desired:"hsn",_distance:"10",_oneway:"true"}},{zh:{_desired:"lzh",_distance:"10",_oneway:"true"}},{zh:{_desired:"mnp",_distance:"10",_oneway:"true"}},{zh:{_desired:"nan",_distance:"10",_oneway:"true"}},{zh:{_desired:"wuu",_distance:"10",_oneway:"true"}},{zh:{_desired:"yue",_distance:"10",_oneway:"true"}},{"*":{_desired:"*",_distance:"80"}},{"en-Latn":{_desired:"am-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"az-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"bn-Beng",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"bo-Tibt",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"hy-Armn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ka-Geor",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"km-Khmr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"kn-Knda",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"lo-Laoo",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ml-Mlym",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"my-Mymr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ne-Deva",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"or-Orya",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"pa-Guru",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ps-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"sd-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"si-Sinh",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ta-Taml",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"te-Telu",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ti-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"tk-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ur-Arab",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"uz-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"yi-Hebr",_distance:"10",_oneway:"true"}},{"sr-Cyrl":{_desired:"sr-Latn",_distance:"5"}},{"zh-Hans":{_desired:"za-Latn",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"zh-Hant":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"ar-Arab":{_desired:"ar-Latn",_distance:"20",_oneway:"true"}},{"bn-Beng":{_desired:"bn-Latn",_distance:"20",_oneway:"true"}},{"gu-Gujr":{_desired:"gu-Latn",_distance:"20",_oneway:"true"}},{"hi-Deva":{_desired:"hi-Latn",_distance:"20",_oneway:"true"}},{"kn-Knda":{_desired:"kn-Latn",_distance:"20",_oneway:"true"}},{"ml-Mlym":{_desired:"ml-Latn",_distance:"20",_oneway:"true"}},{"mr-Deva":{_desired:"mr-Latn",_distance:"20",_oneway:"true"}},{"ta-Taml":{_desired:"ta-Latn",_distance:"20",_oneway:"true"}},{"te-Telu":{_desired:"te-Latn",_distance:"20",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Latn",_distance:"20",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Latn",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hani",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hrkt",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hani",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hang",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"ko-Hang":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"*-*":{_desired:"*-*",_distance:"50"}},{"ar-*-$maghreb":{_desired:"ar-*-$maghreb",_distance:"4"}},{"ar-*-$!maghreb":{_desired:"ar-*-$!maghreb",_distance:"4"}},{"ar-*-*":{_desired:"ar-*-*",_distance:"5"}},{"en-*-$enUS":{_desired:"en-*-$enUS",_distance:"4"}},{"en-*-GB":{_desired:"en-*-$!enUS",_distance:"3"}},{"en-*-$!enUS":{_desired:"en-*-$!enUS",_distance:"4"}},{"en-*-*":{_desired:"en-*-*",_distance:"5"}},{"es-*-$americas":{_desired:"es-*-$americas",_distance:"4"}},{"es-*-$!americas":{_desired:"es-*-$!americas",_distance:"4"}},{"es-*-*":{_desired:"es-*-*",_distance:"5"}},{"pt-*-$americas":{_desired:"pt-*-$americas",_distance:"4"}},{"pt-*-$!americas":{_desired:"pt-*-$!americas",_distance:"4"}},{"pt-*-*":{_desired:"pt-*-*",_distance:"5"}},{"zh-Hant-$cnsar":{_desired:"zh-Hant-$cnsar",_distance:"4"}},{"zh-Hant-$!cnsar":{_desired:"zh-Hant-$!cnsar",_distance:"4"}},{"zh-Hant-*":{_desired:"zh-Hant-*",_distance:"5"}},{"*-*-*":{_desired:"*-*-*",_distance:"4"}}]}}},bW={"001":["001","001-status-grouping","002","005","009","011","013","014","015","017","018","019","021","029","030","034","035","039","053","054","057","061","142","143","145","150","151","154","155","AC","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CP","CQ","CR","CU","CV","CW","CX","CY","CZ","DE","DG","DJ","DK","DM","DO","DZ","EA","EC","EE","EG","EH","ER","ES","ET","EU","EZ","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","IC","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","QO","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","UN","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"002":["002","002-status-grouping","011","014","015","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","DZ","EA","EG","EH","ER","ET","GA","GH","GM","GN","GQ","GW","IC","IO","KE","KM","LR","LS","LY","MA","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SD","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TN","TZ","UG","YT","ZA","ZM","ZW"],"003":["003","013","021","029","AG","AI","AW","BB","BL","BM","BQ","BS","BZ","CA","CR","CU","CW","DM","DO","GD","GL","GP","GT","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PM","PR","SV","SX","TC","TT","US","VC","VG","VI"],"005":["005","AR","BO","BR","BV","CL","CO","EC","FK","GF","GS","GY","PE","PY","SR","UY","VE"],"009":["009","053","054","057","061","AC","AQ","AS","AU","CC","CK","CP","CX","DG","FJ","FM","GU","HM","KI","MH","MP","NC","NF","NR","NU","NZ","PF","PG","PN","PW","QO","SB","TA","TK","TO","TV","UM","VU","WF","WS"],"011":["011","BF","BJ","CI","CV","GH","GM","GN","GW","LR","ML","MR","NE","NG","SH","SL","SN","TG"],"013":["013","BZ","CR","GT","HN","MX","NI","PA","SV"],"014":["014","BI","DJ","ER","ET","IO","KE","KM","MG","MU","MW","MZ","RE","RW","SC","SO","SS","TF","TZ","UG","YT","ZM","ZW"],"015":["015","DZ","EA","EG","EH","IC","LY","MA","SD","TN"],"017":["017","AO","CD","CF","CG","CM","GA","GQ","ST","TD"],"018":["018","BW","LS","NA","SZ","ZA"],"019":["003","005","013","019","019-status-grouping","021","029","419","AG","AI","AR","AW","BB","BL","BM","BO","BQ","BR","BS","BV","BZ","CA","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GL","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PM","PR","PY","SR","SV","SX","TC","TT","US","UY","VC","VE","VG","VI"],"021":["021","BM","CA","GL","PM","US"],"029":["029","AG","AI","AW","BB","BL","BQ","BS","CU","CW","DM","DO","GD","GP","HT","JM","KN","KY","LC","MF","MQ","MS","PR","SX","TC","TT","VC","VG","VI"],"030":["030","CN","HK","JP","KP","KR","MN","MO","TW"],"034":["034","AF","BD","BT","IN","IR","LK","MV","NP","PK"],"035":["035","BN","ID","KH","LA","MM","MY","PH","SG","TH","TL","VN"],"039":["039","AD","AL","BA","ES","GI","GR","HR","IT","ME","MK","MT","PT","RS","SI","SM","VA","XK"],"053":["053","AU","CC","CX","HM","NF","NZ"],"054":["054","FJ","NC","PG","SB","VU"],"057":["057","FM","GU","KI","MH","MP","NR","PW","UM"],"061":["061","AS","CK","NU","PF","PN","TK","TO","TV","WF","WS"],142:["030","034","035","142","143","145","AE","AF","AM","AZ","BD","BH","BN","BT","CN","CY","GE","HK","ID","IL","IN","IQ","IR","JO","JP","KG","KH","KP","KR","KW","KZ","LA","LB","LK","MM","MN","MO","MV","MY","NP","OM","PH","PK","PS","QA","SA","SG","SY","TH","TJ","TL","TM","TR","TW","UZ","VN","YE"],143:["143","KG","KZ","TJ","TM","UZ"],145:["145","AE","AM","AZ","BH","CY","GE","IL","IQ","JO","KW","LB","OM","PS","QA","SA","SY","TR","YE"],150:["039","150","151","154","155","AD","AL","AT","AX","BA","BE","BG","BY","CH","CQ","CZ","DE","DK","EE","ES","FI","FO","FR","GB","GG","GI","GR","HR","HU","IE","IM","IS","IT","JE","LI","LT","LU","LV","MC","MD","ME","MK","MT","NL","NO","PL","PT","RO","RS","RU","SE","SI","SJ","SK","SM","UA","VA","XK"],151:["151","BG","BY","CZ","HU","MD","PL","RO","RU","SK","UA"],154:["154","AX","CQ","DK","EE","FI","FO","GB","GG","IE","IM","IS","JE","LT","LV","NO","SE","SJ"],155:["155","AT","BE","CH","DE","FR","LI","LU","MC","NL"],202:["011","014","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","ER","ET","GA","GH","GM","GN","GQ","GW","IO","KE","KM","LR","LS","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TZ","UG","YT","ZA","ZM","ZW"],419:["005","013","029","419","AG","AI","AR","AW","BB","BL","BO","BQ","BR","BS","BV","BZ","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PR","PY","SR","SV","SX","TC","TT","UY","VC","VE","VG","VI"],EU:["AT","BE","BG","CY","CZ","DE","DK","EE","ES","EU","FI","FR","GR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK"],EZ:["AT","BE","CY","DE","EE","ES","EZ","FI","FR","GR","IE","IT","LT","LU","LV","MT","NL","PT","SI","SK"],QO:["AC","AQ","CP","DG","QO","TA"],UN:["AD","AE","AF","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CF","CG","CH","CI","CL","CM","CN","CO","CR","CU","CV","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IR","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MM","MN","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SI","SK","SL","SM","SN","SO","SR","SS","ST","SV","SY","SZ","TD","TG","TH","TJ","TL","TM","TN","TO","TR","TT","TV","TZ","UA","UG","UN","US","UY","UZ","VC","VE","VN","VU","WS","YE","ZA","ZM","ZW"]},I1=/-u(?:-[0-9a-z]{2,8})+/gi;function Ls(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var EW=838,Iy;function SW(){var e,t;if(!Iy){var n=(t=(e=Dy.supplemental.languageMatching["written-new"][0])===null||e===void 0?void 0:e.paradigmLocales)===null||t===void 0?void 0:t._locales.split(" "),r=Dy.supplemental.languageMatching["written-new"].slice(1,5),a=Dy.supplemental.languageMatching["written-new"].slice(5),s=a.map(function(i){var u=Object.keys(i)[0],d=i[u];return{supported:u,desired:d._desired,distance:+d._distance,oneway:d.oneway==="true"}},{});Iy={matches:s,matchVariables:r.reduce(function(i,u){var d=Object.keys(u)[0],f=u[d];return i[d.slice(1)]=f._value.split("+"),i},{}),paradigmLocales:Jt(Jt([],n,!0),n.map(function(i){return new Intl.Locale(i.replace(/_/g,"-")).maximize().toString()}),!0)}}return Iy}function sm(e,t,n){var r=t.split("-"),a=r[0],s=r[1],i=r[2],u=!0;if(i&&i[0]==="$"){var d=i[1]!=="!",f=d?n[i.slice(1)]:n[i.slice(2)],m=f.map(function(p){return bW[p]||[p]}).reduce(function(p,v){return Jt(Jt([],p,!0),v,!0)},[]);u&&(u=m.indexOf(e.region||"")>-1==d)}else u&&(u=e.region?i==="*"||i===e.region:!0);return u&&(u=e.script?s==="*"||s===e.script:!0),u&&(u=e.language?a==="*"||a===e.language:!0),u}function o_(e){return[e.language,e.script,e.region].filter(Boolean).join("-")}function Py(e,t,n){for(var r=0,a=n.matches;r<a.length;r++){var s=a[r],i=sm(e,s.desired,n.matchVariables)&&sm(t,s.supported,n.matchVariables);if(!s.oneway&&!i&&(i=sm(e,s.supported,n.matchVariables)&&sm(t,s.desired,n.matchVariables)),i){var u=s.distance*10;return n.paradigmLocales.indexOf(o_(e))>-1!=n.paradigmLocales.indexOf(o_(t))>-1?u-1:u}}throw new Error("No matching distance found")}function TW(e,t){var n=new Intl.Locale(e).maximize(),r=new Intl.Locale(t).maximize(),a={language:n.language,script:n.script||"",region:n.region||""},s={language:r.language,script:r.script||"",region:r.region||""},i=0,u=SW();return a.language!==s.language&&(i+=Py({language:n.language,script:"",region:""},{language:r.language,script:"",region:""},u)),a.script!==s.script&&(i+=Py({language:n.language,script:a.script,region:""},{language:r.language,script:s.script,region:""},u)),a.region!==s.region&&(i+=Py(a,s,u)),i}function NW(e,t,n){n===void 0&&(n=EW);var r=1/0,a={matchedDesiredLocale:"",distances:{}};return e.forEach(function(s,i){a.distances[s]||(a.distances[s]={}),t.forEach(function(u){var d=TW(s,u)+0+i*40;a.distances[s][u]=d,d<r&&(r=d,a.matchedDesiredLocale=s,a.matchedSupportedLocale=u)})}),r>=n&&(a.matchedDesiredLocale=void 0,a.matchedSupportedLocale=void 0),a}function wW(e,t,n){var r,a,s=[],i=t.reduce(function(d,f){var m=f.replace(I1,"");return s.push(m),d[m]=f,d},{}),u=NW(s,e);return u.matchedSupportedLocale&&u.matchedDesiredLocale&&(r=u.matchedSupportedLocale,a=i[u.matchedDesiredLocale].slice(u.matchedDesiredLocale.length)||void 0),r?{locale:r,extension:a}:{locale:n()}}function CW(e,t){var n=t.toLowerCase();Ls(e!==void 0,"ukey must be defined");var r=n;return r}function i_(e){return Intl.getCanonicalLocales(e)[0]}function AW(e,t,n){Ls(e.indexOf("-u-")===-1,"Expected locale to not have a Unicode locale extension");for(var r="-u",a=0,s=t;a<s.length;a++){var i=s[a];r+="-".concat(i)}for(var u=0,d=n;u<d.length;u++){var f=d[u],m=f.key,p=f.value;r+="-".concat(m),p!==""&&(r+="-".concat(p))}if(r==="-u")return i_(e);var v=e.indexOf("-x-"),y;if(v===-1)y=e+r;else{var x=e.slice(0,v),b=e.slice(v);y=x+r+b}return i_(y)}function VI(e,t){for(var n=t;;){if(e.indexOf(n)>-1)return n;var r=n.lastIndexOf("-");if(!~r)return;r>=2&&n[r-2]==="-"&&(r-=2),n=n.slice(0,r)}}function _W(e,t,n){for(var r={locale:""},a=0,s=t;a<s.length;a++){var i=s[a],u=i.replace(I1,""),d=VI(e,u);if(d)return r.locale=d,i!==u&&(r.extension=i.slice(u.length,i.length)),r}return r.locale=n(),r}function RW(e){Ls(e===e.toLowerCase(),"Expected extension to be lowercase"),Ls(e.slice(0,3)==="-u-","Expected extension to be a Unicode locale extension");for(var t=[],n=[],r,a=e.length,s=3;s<a;){var i=e.indexOf("-",s),u=void 0;i===-1?u=a-s:u=i-s;var d=e.slice(s,s+u);Ls(u>=2,"Expected a subtag to have at least 2 characters"),r===void 0&&u!=2?t.indexOf(d)===-1&&t.push(d):u===2?(r={key:d,value:""},n.find(function(f){return f.key===(r==null?void 0:r.key)})===void 0&&n.push(r)):(r==null?void 0:r.value)===""?r.value=d:(Ls(r!==void 0,"Expected keyword to be defined"),r.value+="-"+d),s+=u+1}return{attributes:t,keywords:n}}function P1(e,t,n,r,a,s){var i,u=n.localeMatcher,d;u==="lookup"?d=_W(Array.from(e),t,s):d=wW(Array.from(e),t,s),d==null&&(d={locale:s(),extension:""});var f=d.locale,m=a[f],p={locale:"en",dataLocale:f},v,y;d.extension?(v=RW(d.extension),y=v.keywords):y=[];for(var x=[],b=function(R){var _=(i=m==null?void 0:m[R])!==null&&i!==void 0?i:[];Ls(Array.isArray(_),"keyLocaleData for ".concat(R," must be an array"));var O=_[0];Ls(O===void 0||typeof O=="string","value must be a string or undefined");var D=void 0,P=y.find(function(H){return H.key===R});if(P){var L=P.value;L!==""?_.indexOf(L)>-1&&(O=L,D={key:R,value:O}):_.indexOf("true")>-1&&(O="true",D={key:R,value:O})}var U=n[R];if(Ls(U==null||typeof U=="string","optionsValue must be a string or undefined"),typeof U=="string"){var B=R.toLowerCase();U=CW(B,U),U===""&&(U="true")}U!==O&&_.indexOf(U)>-1&&(O=U,D=void 0),D&&x.push(D),p[R]=O},T=0,N=r;T<N.length;T++){var C=N[T];b(C)}var A=[];return x.length>0&&(A=[],f=AW(f,A,x)),p.locale=f,p}function mb(e,t){for(var n=[],r=0,a=t;r<a.length;r++){var s=a[r],i=s.replace(I1,""),u=VI(e,i);u&&n.push(u)}return n}function MW(e,t,n,r){return P1(t,xW(e),{localeMatcher:(r==null?void 0:r.algorithm)||"best fit"},[],{},function(){return n}).locale}const OW=Object.freeze(Object.defineProperty({__proto__:null,LookupSupportedLocales:mb,ResolveLocale:P1,match:MW},Symbol.toStringTag,{value:"Module"}));var l_=new Set([1,2,5,10,20,25,50,100,200,250,500,1e3,2e3,2500,5e3]);function GI(e,t,n,r,a){var s=ub(t,"minimumIntegerDigits",1,21,1),i=t.minimumFractionDigits,u=t.maximumFractionDigits,d=t.minimumSignificantDigits,f=t.maximumSignificantDigits;e.minimumIntegerDigits=s;var m=ub(t,"roundingIncrement",1,5e3,1);Ut(l_.has(m),"Invalid rounding increment value: ".concat(m,`.
Valid values are `).concat(Array.from(l_).join(", "),"."));var p=Xn(t,"roundingMode","string",["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"],"halfExpand"),v=Xn(t,"roundingPriority","string",["auto","morePrecision","lessPrecision"],"auto"),y=Xn(t,"trailingZeroDisplay","string",["auto","stripIfInteger"],"auto");m!==1&&(r=n),e.roundingIncrement=m,e.roundingMode=p,e.trailingZeroDisplay=y;var x=d!==void 0||f!==void 0,b=i!==void 0||u!==void 0,T=!0,N=!0;if(v==="auto"&&(T=x,(x||!b&&a==="compact")&&(N=!1)),T&&(x?(e.minimumSignificantDigits=id(d,1,21,1),e.maximumSignificantDigits=id(f,e.minimumSignificantDigits,21,21)):(e.minimumSignificantDigits=1,e.maximumSignificantDigits=21)),N)if(b){if(i=id(i,0,100,void 0),u=id(u,0,100,void 0),i===void 0)Ut(u!==void 0,"maximumFractionDigits must be defined"),i=Math.min(n,u);else if(u===void 0)u=Math.max(r,i);else if(i>u)throw new RangeError("Invalid range, ".concat(i," > ").concat(u));e.minimumFractionDigits=i,e.maximumFractionDigits=u}else e.minimumFractionDigits=n,e.maximumFractionDigits=r;!T&&!N?(e.minimumFractionDigits=0,e.maximumFractionDigits=0,e.minimumSignificantDigits=1,e.maximumSignificantDigits=2,e.roundingType="morePrecision",e.roundingPriority="morePrecision"):v==="morePrecision"?(e.roundingType="morePrecision",e.roundingPriority="morePrecision"):v==="lessPrecision"?(e.roundingType="lessPrecision",e.roundingPriority="lessPrecision"):x?(e.roundingType="significantDigits",e.roundingPriority="auto"):(e.roundingType="fractionDigits",e.roundingPriority="auto"),m!==1&&(Ut(e.roundingType==="fractionDigits","Invalid roundingType",TypeError),Ut(e.maximumFractionDigits===e.minimumFractionDigits,"With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.",RangeError))}function zI(e,t){t===void 0&&(t=Object.create(null));var n=Xn(t,"style","string",["decimal","percent","currency","unit"],"decimal");e.style=n;var r=Xn(t,"currency","string",void 0,void 0);Ut(r===void 0||II(r),"Malformed currency code",RangeError),Ut(n!=="currency"||r!==void 0,"currency cannot be undefined",TypeError);var a=Xn(t,"currencyDisplay","string",["code","symbol","narrowSymbol","name"],"symbol"),s=Xn(t,"currencySign","string",["standard","accounting"],"standard"),i=Xn(t,"unit","string",void 0,void 0);Ut(i===void 0||PI(i),"Invalid unit argument for Intl.NumberFormat()",RangeError),Ut(n!=="unit"||i!==void 0,"unit cannot be undefined",TypeError);var u=Xn(t,"unitDisplay","string",["short","narrow","long"],"short");n==="currency"&&(e.currency=r.toUpperCase(),e.currencyDisplay=a,e.currencySign=s),n==="unit"&&(e.unit=i,e.unitDisplay=u)}function DW(e,t,n,r){var a=r.getInternalSlots,s=r.localeData,i=r.availableLocales,u=r.numberingSystemNames,d=r.getDefaultLocale,f=r.currencyDigitsData,m=aI(t),p=_I(n),v=Object.create(null),y=Xn(p,"localeMatcher","string",["lookup","best fit"],"best fit");v.localeMatcher=y;var x=Xn(p,"numberingSystem","string",void 0,void 0);if(x!==void 0&&u.indexOf(x)<0)throw RangeError("Invalid numberingSystems: ".concat(x));v.nu=x;var b=P1(Array.from(i),m,v,["nu"],s,d),T=s[b.dataLocale];Ut(!!T,"Missing locale data for ".concat(b.dataLocale));var N=a(e);N.locale=b.locale,N.dataLocale=b.dataLocale,N.numberingSystem=b.nu,N.dataLocaleData=T,zI(N,p);var C=N.style,A=Xn(p,"notation","string",["standard","scientific","engineering","compact"],"standard");N.notation=A;var R,_;if(C==="currency"&&A==="standard"){var O=N.currency,D=UI(O,{currencyDigitsData:f});R=D,_=D}else R=0,_=C==="percent"?0:3;GI(N,p,R,_,A);var P=Xn(p,"compactDisplay","string",["short","long"],"short"),L="auto";A==="compact"&&(N.compactDisplay=P,L="min2");var U=RI(p,"useGrouping",["min2","auto","always"],"always",!1,L);N.useGrouping=U;var B=Xn(p,"signDisplay","string",["auto","never","always","exceptZero","negative"],"auto");return N.signDisplay=B,e}function IW(e){for(var t=[],n=e.indexOf("{"),r=0,a=0,s=e.length;n<e.length&&n>-1;)r=e.indexOf("}",n),Ut(r>n,"Invalid pattern ".concat(e)),n>a&&t.push({type:"literal",value:e.substring(a,n)}),t.push({type:e.substring(n+1,r),value:void 0}),a=r+1,n=e.indexOf("{",a);return a<s&&t.push({type:"literal",value:e.substring(a,s)}),t}function PW(e,t,n){var r="best fit";return n!==void 0&&(n=S1(n),r=Xn(n,"localeMatcher","string",["lookup","best fit"],"best fit")),mb(Array.from(e),t)}(function(e){mr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="MISSING_LOCALE_DATA",n}return t})(Error);function jW(e){return e.type==="MISSING_LOCALE_DATA"}var pb;(function(e){e.startRange="startRange",e.shared="shared",e.endRange="endRange"})(pb||(pb={}));function LW(e){var t=_1(e,"number");if(typeof t=="bigint")return new We(t);if(t===void 0)return new We(NaN);if(t===!0)return new We(1);if(t===!1)return new We(0);if(t===null)return new We(0);try{return new We(t)}catch{return new We(NaN)}}const kW=Object.freeze(Object.defineProperty({__proto__:null,ApplyUnsignedRoundingMode:R1,ArrayCreate:yI,CanonicalizeLocaleList:aI,CanonicalizeTimeZoneName:Pq,CoerceOptionsToObject:_I,CollapseNumberRange:jI,ComputeExponent:kI,ComputeExponentForMagnitude:db,CurrencyDigits:UI,DateFromTime:$Y,Day:T1,DayFromYear:EI,DayWithinYear:w1,DaysInYear:SI,FormatApproximately:HI,FormatNumeric:hb,FormatNumericRange:gW,FormatNumericRangeToParts:vW,FormatNumericToParts:yW,FormatNumericToString:O1,GetNumberOption:ub,GetOption:Xn,GetOptionsObject:eW,GetStringOrBooleanOption:RI,GetUnsignedRoundingMode:M1,HasOwnProperty:xI,HourFromTime:WY,InLeapYear:C1,InitializeNumberFormat:DW,IsSanctionedSimpleUnitIdentifier:Im,IsValidTimeZoneName:tW,IsWellFormedCurrencyCode:II,IsWellFormedUnitIdentifier:PI,MinFromTime:KY,MonthFromTime:TI,OrdinaryHasInstance:QY,PartitionNumberPattern:Cd,PartitionNumberRangePattern:D1,PartitionPattern:IW,get RangePatternType(){return pb},SANCTIONED_UNITS:MI,SIMPLE_UNITS:DI,SameValue:HY,SecFromTime:XY,SetNumberFormatDigitOptions:GI,SetNumberFormatUnitOptions:zI,SupportedLocales:PW,TimeClip:BY,TimeFromYear:zY,ToIntlMathematicalValue:LW,ToNumber:E1,ToObject:S1,ToPrimitive:_1,ToRawFixed:ip,ToRawPrecision:fb,ToString:b1,Type:VY,WeekDay:GY,YearFromTime:N1,ZERO:rf,_formatToParts:BI,createDataProperty:IY,createMemoizedDateTimeFormat:jY,createMemoizedListFormat:UY,createMemoizedLocale:kY,createMemoizedNumberFormat:PY,createMemoizedPluralRules:LY,defineProperty:DY,getInternalSlot:MY,getMultiInternalSlots:vI,invariant:Ut,isLiteralPart:OY,isMissingLocaleDataError:jW,msFromTime:ZY,removeUnitNamespace:OI,setInternalSlot:gI,setMultiInternalSlots:RY},Symbol.toStringTag,{value:"Module"})),sf=wE(kW);var om={};const $I=wE(OW);var c_;function UW(){if(c_)return om;c_=1,Object.defineProperty(om,"__esModule",{value:!0}),om.InitializeRelativeTimeFormat=r;var e=sf,t=$I,n=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;function r(a,s,i,u){var d=u.getInternalSlots,f=u.availableLocales,m=u.relevantExtensionKeys,p=u.localeData,v=u.getDefaultLocale,y=d(a);y.initializedRelativeTimeFormat=!0;var x=(0,e.CanonicalizeLocaleList)(s),b=Object.create(null),T=(0,e.CoerceOptionsToObject)(i),N=(0,e.GetOption)(T,"localeMatcher","string",["best fit","lookup"],"best fit");b.localeMatcher=N;var C=(0,e.GetOption)(T,"numberingSystem","string",void 0,void 0);if(C!==void 0&&!n.test(C))throw new RangeError("Invalid numbering system ".concat(C));b.nu=C;var A=(0,t.ResolveLocale)(f,x,b,m,p,v),R=A.locale,_=A.nu;y.locale=R,y.style=(0,e.GetOption)(T,"style","string",["long","narrow","short"],"long"),y.numeric=(0,e.GetOption)(T,"numeric","string",["always","auto"],"always");var O=p[A.dataLocale];return(0,e.invariant)(!!O,"Missing locale data for ".concat(A.dataLocale)),y.fields=O,y.numberFormat=(0,e.createMemoizedNumberFormat)(s),y.pluralRules=(0,e.createMemoizedPluralRules)(s),y.numberingSystem=_,a}return om}var im={},lm={},u_;function FW(){if(u_)return lm;u_=1,Object.defineProperty(lm,"__esModule",{value:!0}),lm.SingularRelativeTimeUnit=t;var e=sf;function t(n){if((0,e.invariant)((0,e.Type)(n)==="String","unit must be a string"),n==="seconds")return"second";if(n==="minutes")return"minute";if(n==="hours")return"hour";if(n==="days")return"day";if(n==="weeks")return"week";if(n==="months")return"month";if(n==="quarters")return"quarter";if(n==="years")return"year";if(n!=="second"&&n!=="minute"&&n!=="hour"&&n!=="day"&&n!=="week"&&n!=="month"&&n!=="quarter"&&n!=="year")throw new RangeError("invalid unit");return n}return lm}var cm={},d_;function BW(){if(d_)return cm;d_=1,Object.defineProperty(cm,"__esModule",{value:!0}),cm.MakePartsList=t;var e=sf;function t(n,r,a){for(var s=(0,e.PartitionPattern)(n),i=[],u=0,d=s;u<d.length;u++){var f=d[u];if(f.type==="literal")i.push({type:"literal",value:f.value});else{(0,e.invariant)(f.type==="0","Malformed pattern ".concat(n));for(var m=0,p=a;m<p.length;m++){var v=p[m];i.push({type:v.type,value:v.value,unit:r})}}}return i}return cm}var f_;function HW(){if(f_)return im;f_=1,Object.defineProperty(im,"__esModule",{value:!0}),im.PartitionRelativeTimePattern=r;var e=sf,t=FW(),n=BW();function r(a,s,i,u){var d=u.getInternalSlots;if((0,e.invariant)((0,e.Type)(s)==="Number","value must be number, instead got ".concat(typeof s),TypeError),(0,e.invariant)((0,e.Type)(i)==="String","unit must be number, instead got ".concat(typeof s),TypeError),isNaN(s)||!isFinite(s))throw new RangeError("Invalid value ".concat(s));var f=(0,t.SingularRelativeTimeUnit)(i),m=d(a),p=m.fields,v=m.style,y=m.numeric,x=m.pluralRules,b=m.numberFormat,T=f;v==="short"?T="".concat(f,"-short"):v==="narrow"&&(T="".concat(f,"-narrow")),T in p||(T=f);var N=p[T];if(y==="auto"&&(0,e.ToString)(s)in N)return[{type:"literal",value:N[(0,e.ToString)(s)]}];var C="future";((0,e.SameValue)(s,-0)||s<0)&&(C="past");var A=N[C],R=typeof b.formatToParts=="function"?b.formatToParts(Math.abs(s)):[{type:"literal",value:b.format(Math.abs(s)),unit:i}],_=x.select(s),O=A[_];return(0,n.MakePartsList)(O,f,R)}return im}var um={},h_;function VW(){if(h_)return um;h_=1,Object.defineProperty(um,"__esModule",{value:!0}),um.default=t;var e=new WeakMap;function t(n){var r=e.get(n);return r||(r=Object.create(null),e.set(n,r)),r}return um}var m_;function GW(){if(m_)return am;m_=1,Object.defineProperty(am,"__esModule",{value:!0});var e=rI,t=sf,n=UW(),r=HW(),a=e.__importDefault(VW()),s=function(){function i(u,d){var f=this&&this instanceof i?this.constructor:void 0;if(!f)throw new TypeError("Intl.RelativeTimeFormat must be called with 'new'");return(0,n.InitializeRelativeTimeFormat)(this,u,d,{getInternalSlots:a.default,availableLocales:i.availableLocales,relevantExtensionKeys:i.relevantExtensionKeys,localeData:i.localeData,getDefaultLocale:i.getDefaultLocale})}return i.prototype.format=function(u,d){if(typeof this!="object")throw new TypeError("format was called on a non-object");var f=(0,a.default)(this);if(!f.initializedRelativeTimeFormat)throw new TypeError("format was called on a invalid context");return(0,r.PartitionRelativeTimePattern)(this,Number(u),(0,t.ToString)(d),{getInternalSlots:a.default}).map(function(m){return m.value}).join("")},i.prototype.formatToParts=function(u,d){if(typeof this!="object")throw new TypeError("formatToParts was called on a non-object");var f=(0,a.default)(this);if(!f.initializedRelativeTimeFormat)throw new TypeError("formatToParts was called on a invalid context");return(0,r.PartitionRelativeTimePattern)(this,Number(u),(0,t.ToString)(d),{getInternalSlots:a.default})},i.prototype.resolvedOptions=function(){if(typeof this!="object")throw new TypeError("resolvedOptions was called on a non-object");var u=(0,a.default)(this);if(!u.initializedRelativeTimeFormat)throw new TypeError("resolvedOptions was called on a invalid context");return{locale:u.locale,style:u.style,numeric:u.numeric,numberingSystem:u.numberingSystem}},i.supportedLocalesOf=function(u,d){return(0,t.SupportedLocales)(i.availableLocales,(0,t.CanonicalizeLocaleList)(u),d)},i.__addLocaleData=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];for(var f=0,m=u;f<m.length;f++){var p=m[f],v=p.data,y=p.locale,x=new Intl.Locale(y).minimize().toString();i.localeData[y]=i.localeData[x]=v,i.availableLocales.add(x),i.availableLocales.add(y),i.__defaultLocale||(i.__defaultLocale=x)}},i.getDefaultLocale=function(){return i.__defaultLocale},i.localeData={},i.availableLocales=new Set,i.__defaultLocale="",i.relevantExtensionKeys=["nu"],i.polyfilled=!0,i}();am.default=s;try{typeof Symbol<"u"&&Object.defineProperty(s.prototype,Symbol.toStringTag,{value:"Intl.RelativeTimeFormat",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(s.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch{}return am}var dm={},nd={},p_;function zW(){return p_||(p_=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.supportedLocales=void 0,nd.supportedLocales=["af","af-NA","agq","ak","am","ar","ar-AE","ar-BH","ar-DJ","ar-DZ","ar-EG","ar-EH","ar-ER","ar-IL","ar-IQ","ar-JO","ar-KM","ar-KW","ar-LB","ar-LY","ar-MA","ar-MR","ar-OM","ar-PS","ar-QA","ar-SA","ar-SD","ar-SO","ar-SS","ar-SY","ar-TD","ar-TN","ar-YE","as","asa","ast","az","az-Cyrl","az-Latn","bas","be","be-tarask","bem","bez","bg","bm","bn","bn-IN","bo","bo-IN","br","brx","bs","bs-Cyrl","bs-Latn","ca","ca-AD","ca-ES-valencia","ca-FR","ca-IT","ccp","ccp-IN","ce","ceb","cgg","chr","ckb","ckb-IR","cs","cy","da","da-GL","dav","de","de-AT","de-BE","de-CH","de-IT","de-LI","de-LU","dje","doi","dsb","dua","dyo","dz","ebu","ee","ee-TG","el","el-CY","en","en-001","en-150","en-AE","en-AG","en-AI","en-AS","en-AT","en-AU","en-BB","en-BE","en-BI","en-BM","en-BS","en-BW","en-BZ","en-CA","en-CC","en-CH","en-CK","en-CM","en-CX","en-CY","en-DE","en-DG","en-DK","en-DM","en-ER","en-FI","en-FJ","en-FK","en-FM","en-GB","en-GD","en-GG","en-GH","en-GI","en-GM","en-GU","en-GY","en-HK","en-IE","en-IL","en-IM","en-IN","en-IO","en-JE","en-JM","en-KE","en-KI","en-KN","en-KY","en-LC","en-LR","en-LS","en-MG","en-MH","en-MO","en-MP","en-MS","en-MT","en-MU","en-MW","en-MY","en-NA","en-NF","en-NG","en-NL","en-NR","en-NU","en-NZ","en-PG","en-PH","en-PK","en-PN","en-PR","en-PW","en-RW","en-SB","en-SC","en-SD","en-SE","en-SG","en-SH","en-SI","en-SL","en-SS","en-SX","en-SZ","en-TC","en-TK","en-TO","en-TT","en-TV","en-TZ","en-UG","en-UM","en-VC","en-VG","en-VI","en-VU","en-WS","en-ZA","en-ZM","en-ZW","eo","es","es-419","es-AR","es-BO","es-BR","es-BZ","es-CL","es-CO","es-CR","es-CU","es-DO","es-EA","es-EC","es-GQ","es-GT","es-HN","es-IC","es-MX","es-NI","es-PA","es-PE","es-PH","es-PR","es-PY","es-SV","es-US","es-UY","es-VE","et","eu","ewo","fa","fa-AF","ff","ff-Adlm","ff-Adlm-BF","ff-Adlm-CM","ff-Adlm-GH","ff-Adlm-GM","ff-Adlm-GW","ff-Adlm-LR","ff-Adlm-MR","ff-Adlm-NE","ff-Adlm-NG","ff-Adlm-SL","ff-Adlm-SN","ff-Latn","ff-Latn-BF","ff-Latn-CM","ff-Latn-GH","ff-Latn-GM","ff-Latn-GN","ff-Latn-GW","ff-Latn-LR","ff-Latn-MR","ff-Latn-NE","ff-Latn-NG","ff-Latn-SL","fi","fil","fo","fo-DK","fr","fr-BE","fr-BF","fr-BI","fr-BJ","fr-BL","fr-CA","fr-CD","fr-CF","fr-CG","fr-CH","fr-CI","fr-CM","fr-DJ","fr-DZ","fr-GA","fr-GF","fr-GN","fr-GP","fr-GQ","fr-HT","fr-KM","fr-LU","fr-MA","fr-MC","fr-MF","fr-MG","fr-ML","fr-MQ","fr-MR","fr-MU","fr-NC","fr-NE","fr-PF","fr-PM","fr-RE","fr-RW","fr-SC","fr-SN","fr-SY","fr-TD","fr-TG","fr-TN","fr-VU","fr-WF","fr-YT","fur","fy","ga","ga-GB","gd","gl","gsw","gsw-FR","gsw-LI","gu","guz","gv","ha","ha-GH","ha-NE","haw","he","hi","hr","hr-BA","hsb","hu","hy","ia","id","ig","ii","is","it","it-CH","it-SM","it-VA","ja","jgo","jmc","jv","ka","kab","kam","kde","kea","kgp","khq","ki","kk","kkj","kl","kln","km","kn","ko","ko-KP","kok","ks","ks-Arab","ksb","ksf","ksh","ku","kw","ky","lag","lb","lg","lkt","ln","ln-AO","ln-CF","ln-CG","lo","lrc","lrc-IQ","lt","lu","luo","luy","lv","mai","mas","mas-TZ","mer","mfe","mg","mgh","mgo","mi","mk","ml","mn","mni","mni-Beng","mr","ms","ms-BN","ms-ID","ms-SG","mt","mua","my","mzn","naq","nb","nb-SJ","nd","nds","nds-NL","ne","ne-IN","nl","nl-AW","nl-BE","nl-BQ","nl-CW","nl-SR","nl-SX","nmg","nn","nnh","no","nus","nyn","om","om-KE","or","os","os-RU","pa","pa-Arab","pa-Guru","pcm","pl","ps","ps-PK","pt","pt-AO","pt-CH","pt-CV","pt-GQ","pt-GW","pt-LU","pt-MO","pt-MZ","pt-PT","pt-ST","pt-TL","qu","qu-BO","qu-EC","rm","rn","ro","ro-MD","rof","ru","ru-BY","ru-KG","ru-KZ","ru-MD","ru-UA","rw","rwk","sa","sah","saq","sat","sat-Olck","sbp","sc","sd","sd-Arab","sd-Deva","se","se-FI","se-SE","seh","ses","sg","shi","shi-Latn","shi-Tfng","si","sk","sl","smn","sn","so","so-DJ","so-ET","so-KE","sq","sq-MK","sq-XK","sr","sr-Cyrl","sr-Cyrl-BA","sr-Cyrl-ME","sr-Cyrl-XK","sr-Latn","sr-Latn-BA","sr-Latn-ME","sr-Latn-XK","su","su-Latn","sv","sv-AX","sv-FI","sw","sw-CD","sw-KE","sw-UG","ta","ta-LK","ta-MY","ta-SG","te","teo","teo-KE","tg","th","ti","ti-ER","tk","to","tr","tr-CY","tt","twq","tzm","ug","uk","und","ur","ur-IN","uz","uz-Arab","uz-Cyrl","uz-Latn","vai","vai-Latn","vai-Vaii","vi","vun","wae","wo","xh","xog","yav","yi","yo","yo-BJ","yrl","yrl-CO","yrl-VE","yue","yue-Hans","yue-Hant","zgh","zh","zh-Hans","zh-Hans-HK","zh-Hans-MO","zh-Hans-SG","zh-Hant","zh-Hant-HK","zh-Hant-MO","zu"]),nd}var g_;function $W(){if(g_)return dm;g_=1,Object.defineProperty(dm,"__esModule",{value:!0}),dm.shouldPolyfill=a;var e=$I,t=zW();function n(s){if(!s)return!0;var i=Array.isArray(s)?s:[s];return Intl.RelativeTimeFormat.supportedLocalesOf(i).length===i.length}function r(s){try{return"numberingSystem"in new Intl.RelativeTimeFormat(s||"en",{numeric:"auto"}).resolvedOptions()}catch{return!1}}function a(s){if(s===void 0&&(s="en"),!("RelativeTimeFormat"in Intl)||!n(s)||!r(s))return(0,e.match)([s],t.supportedLocales,"en")}return dm}var v_;function qW(){if(v_)return Oy;v_=1,Object.defineProperty(Oy,"__esModule",{value:!0});var e=rI,t=e.__importDefault(GW()),n=$W();return(0,n.shouldPolyfill)()&&Object.defineProperty(Intl,"RelativeTimeFormat",{value:t.default,writable:!0,enumerable:!1,configurable:!0}),Oy}qW();Intl.RelativeTimeFormat&&typeof Intl.RelativeTimeFormat.__addLocaleData=="function"&&Intl.RelativeTimeFormat.__addLocaleData({data:{day:{"-1":"yesterday",0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}},"day-narrow":{"-1":"yesterday",0:"today",1:"tomorrow",future:{one:"in {0}d",other:"in {0}d"},past:{one:"{0}d ago",other:"{0}d ago"}},"day-short":{"-1":"yesterday",0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}},hour:{0:"this hour",future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0}h",other:"in {0}h"},past:{one:"{0}h ago",other:"{0}h ago"}},"hour-short":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}},minute:{0:"this minute",future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0}m",other:"in {0}m"},past:{one:"{0}m ago",other:"{0}m ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}},month:{"-1":"last month",0:"this month",1:"next month",future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}},"month-narrow":{"-1":"last mo.",0:"this mo.",1:"next mo.",future:{one:"in {0}mo",other:"in {0}mo"},past:{one:"{0}mo ago",other:"{0}mo ago"}},"month-short":{"-1":"last mo.",0:"this mo.",1:"next mo.",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}},nu:["latn"],quarter:{"-1":"last quarter",0:"this quarter",1:"next quarter",future:{one:"in {0} quarter",other:"in {0} quarters"},past:{one:"{0} quarter ago",other:"{0} quarters ago"}},"quarter-narrow":{"-1":"last qtr.",0:"this qtr.",1:"next qtr.",future:{one:"in {0}q",other:"in {0}q"},past:{one:"{0}q ago",other:"{0}q ago"}},"quarter-short":{"-1":"last qtr.",0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"}},second:{0:"now",future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}},"second-narrow":{0:"now",future:{one:"in {0}s",other:"in {0}s"},past:{one:"{0}s ago",other:"{0}s ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}},week:{"-1":"last week",0:"this week",1:"next week",future:{one:"in {0} week",other:"in {0} weeks"},past:{one:"{0} week ago",other:"{0} weeks ago"}},"week-narrow":{"-1":"last wk.",0:"this wk.",1:"next wk.",future:{one:"in {0}w",other:"in {0}w"},past:{one:"{0}w ago",other:"{0}w ago"}},"week-short":{"-1":"last wk.",0:"this wk.",1:"next wk.",future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"}},year:{"-1":"last year",0:"this year",1:"next year",future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}},"year-narrow":{"-1":"last yr.",0:"this yr.",1:"next yr.",future:{one:"in {0}y",other:"in {0}y"},past:{one:"{0}y ago",other:"{0}y ago"}},"year-short":{"-1":"last yr.",0:"this yr.",1:"next yr.",future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},locale:"en"});Intl.RelativeTimeFormat&&typeof Intl.RelativeTimeFormat.__addLocaleData=="function"&&Intl.RelativeTimeFormat.__addLocaleData({data:{day:{"-1":"gestern","-2":"vorgestern",0:"heute",1:"morgen",2:"übermorgen",future:{one:"in {0} Tag",other:"in {0} Tagen"},past:{one:"vor {0} Tag",other:"vor {0} Tagen"}},"day-narrow":{"-1":"gestern","-2":"vorgestern",0:"heute",1:"morgen",2:"übermorgen",future:{one:"in {0} Tag",other:"in {0} Tagen"},past:{one:"vor {0} Tag",other:"vor {0} Tagen"}},"day-short":{"-1":"gestern","-2":"vorgestern",0:"heute",1:"morgen",2:"übermorgen",future:{one:"in {0} Tag",other:"in {0} Tagen"},past:{one:"vor {0} Tag",other:"vor {0} Tagen"}},hour:{0:"in dieser Stunde",future:{one:"in {0} Stunde",other:"in {0} Stunden"},past:{one:"vor {0} Stunde",other:"vor {0} Stunden"}},"hour-narrow":{0:"in dieser Stunde",future:{one:"in {0} Std.",other:"in {0} Std."},past:{one:"vor {0} Std.",other:"vor {0} Std."}},"hour-short":{0:"in dieser Stunde",future:{one:"in {0} Std.",other:"in {0} Std."},past:{one:"vor {0} Std.",other:"vor {0} Std."}},minute:{0:"in dieser Minute",future:{one:"in {0} Minute",other:"in {0} Minuten"},past:{one:"vor {0} Minute",other:"vor {0} Minuten"}},"minute-narrow":{0:"in dieser Minute",future:{one:"in {0} m",other:"in {0} m"},past:{one:"vor {0} m",other:"vor {0} m"}},"minute-short":{0:"in dieser Minute",future:{one:"in {0} Min.",other:"in {0} Min."},past:{one:"vor {0} Min.",other:"vor {0} Min."}},month:{"-1":"letzten Monat",0:"diesen Monat",1:"nächsten Monat",future:{one:"in {0} Monat",other:"in {0} Monaten"},past:{one:"vor {0} Monat",other:"vor {0} Monaten"}},"month-narrow":{"-1":"letzten Monat",0:"diesen Monat",1:"nächsten Monat",future:{one:"in {0} Monat",other:"in {0} Monaten"},past:{one:"vor {0} Monat",other:"vor {0} Monaten"}},"month-short":{"-1":"letzten Monat",0:"diesen Monat",1:"nächsten Monat",future:{one:"in {0} Monat",other:"in {0} Monaten"},past:{one:"vor {0} Monat",other:"vor {0} Monaten"}},nu:["latn"],quarter:{"-1":"letztes Quartal",0:"dieses Quartal",1:"nächstes Quartal",future:{one:"in {0} Quartal",other:"in {0} Quartalen"},past:{one:"vor {0} Quartal",other:"vor {0} Quartalen"}},"quarter-narrow":{"-1":"letztes Quartal",0:"dieses Quartal",1:"nächstes Quartal",future:{one:"in {0} Q",other:"in {0} Q"},past:{one:"vor {0} Q",other:"vor {0} Q"}},"quarter-short":{"-1":"letztes Quartal",0:"dieses Quartal",1:"nächstes Quartal",future:{one:"in {0} Quart.",other:"in {0} Quart."},past:{one:"vor {0} Quart.",other:"vor {0} Quart."}},second:{0:"jetzt",future:{one:"in {0} Sekunde",other:"in {0} Sekunden"},past:{one:"vor {0} Sekunde",other:"vor {0} Sekunden"}},"second-narrow":{0:"jetzt",future:{one:"in {0} s",other:"in {0} s"},past:{one:"vor {0} s",other:"vor {0} s"}},"second-short":{0:"jetzt",future:{one:"in {0} Sek.",other:"in {0} Sek."},past:{one:"vor {0} Sek.",other:"vor {0} Sek."}},week:{"-1":"letzte Woche",0:"diese Woche",1:"nächste Woche",future:{one:"in {0} Woche",other:"in {0} Wochen"},past:{one:"vor {0} Woche",other:"vor {0} Wochen"}},"week-narrow":{"-1":"letzte Woche",0:"diese Woche",1:"nächste Woche",future:{one:"in {0} Wo.",other:"in {0} Wo."},past:{one:"vor {0} Wo.",other:"vor {0} Wo."}},"week-short":{"-1":"letzte Woche",0:"diese Woche",1:"nächste Woche",future:{one:"in {0} Woche",other:"in {0} Wochen"},past:{one:"vor {0} Woche",other:"vor {0} Wochen"}},year:{"-1":"letztes Jahr",0:"dieses Jahr",1:"nächstes Jahr",future:{one:"in {0} Jahr",other:"in {0} Jahren"},past:{one:"vor {0} Jahr",other:"vor {0} Jahren"}},"year-narrow":{"-1":"letztes Jahr",0:"dieses Jahr",1:"nächstes Jahr",future:{one:"in {0} Jahr",other:"in {0} Jahren"},past:{one:"vor {0} Jahr",other:"vor {0} Jahren"}},"year-short":{"-1":"letztes Jahr",0:"dieses Jahr",1:"nächstes Jahr",future:{one:"in {0} Jahr",other:"in {0} Jahren"},past:{one:"vor {0} Jahr",other:"vor {0} Jahren"}}},locale:"de"});Intl.RelativeTimeFormat&&typeof Intl.RelativeTimeFormat.__addLocaleData=="function"&&Intl.RelativeTimeFormat.__addLocaleData({data:{day:{"-1":"ayer","-2":"anteayer",0:"hoy",1:"mañana",2:"pasado mañana",future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}},"day-narrow":{"-1":"ayer","-2":"anteayer",0:"hoy",1:"mañana",2:"pasado mañana",future:{one:"dentro de {0} d",other:"dentro de {0} d"},past:{one:"hace {0} d",other:"hace {0} d"}},"day-short":{"-1":"ayer","-2":"anteayer",0:"hoy",1:"mañana",2:"pasado mañana",future:{one:"dentro de {0} d",other:"dentro de {0} d"},past:{one:"hace {0} d",other:"hace {0} d"}},hour:{0:"esta hora",future:{one:"dentro de {0} hora",other:"dentro de {0} horas"},past:{one:"hace {0} hora",other:"hace {0} horas"}},"hour-narrow":{0:"esta hora",future:{one:"dentro de {0} h",other:"dentro de {0} h"},past:{one:"hace {0} h",other:"hace {0} h"}},"hour-short":{0:"esta hora",future:{one:"dentro de {0} h",other:"dentro de {0} h"},past:{one:"hace {0} h",other:"hace {0} h"}},minute:{0:"este minuto",future:{one:"dentro de {0} minuto",other:"dentro de {0} minutos"},past:{one:"hace {0} minuto",other:"hace {0} minutos"}},"minute-narrow":{0:"este minuto",future:{one:"dentro de {0} min",other:"dentro de {0} min"},past:{one:"hace {0} min",other:"hace {0} min"}},"minute-short":{0:"este minuto",future:{one:"dentro de {0} min",other:"dentro de {0} min"},past:{one:"hace {0} min",other:"hace {0} min"}},month:{"-1":"el mes pasado",0:"este mes",1:"el próximo mes",future:{one:"dentro de {0} mes",other:"dentro de {0} meses"},past:{one:"hace {0} mes",other:"hace {0} meses"}},"month-narrow":{"-1":"el mes pasado",0:"este mes",1:"el próximo mes",future:{one:"dentro de {0} m",other:"dentro de {0} m"},past:{one:"hace {0} m",other:"hace {0} m"}},"month-short":{"-1":"el mes pasado",0:"este mes",1:"el próximo mes",future:{one:"dentro de {0} m",other:"dentro de {0} m"},past:{one:"hace {0} m",other:"hace {0} m"}},nu:["latn"],quarter:{"-1":"el trimestre pasado",0:"este trimestre",1:"el próximo trimestre",future:{one:"dentro de {0} trimestre",other:"dentro de {0} trimestres"},past:{one:"hace {0} trimestre",other:"hace {0} trimestres"}},"quarter-narrow":{"-1":"el trimestre pasado",0:"este trimestre",1:"el próximo trimestre",future:{one:"dentro de {0} trim.",other:"dentro de {0} trim."},past:{one:"hace {0} trim.",other:"hace {0} trim."}},"quarter-short":{"-1":"el trimestre pasado",0:"este trimestre",1:"el próximo trimestre",future:{one:"dentro de {0} trim.",other:"dentro de {0} trim."},past:{one:"hace {0} trim.",other:"hace {0} trim."}},second:{0:"ahora",future:{one:"dentro de {0} segundo",other:"dentro de {0} segundos"},past:{one:"hace {0} segundo",other:"hace {0} segundos"}},"second-narrow":{0:"ahora",future:{one:"dentro de {0} s",other:"dentro de {0} s"},past:{one:"hace {0} s",other:"hace {0} s"}},"second-short":{0:"ahora",future:{one:"dentro de {0} s",other:"dentro de {0} s"},past:{one:"hace {0} s",other:"hace {0} s"}},week:{"-1":"la semana pasada",0:"esta semana",1:"la próxima semana",future:{one:"dentro de {0} semana",other:"dentro de {0} semanas"},past:{one:"hace {0} semana",other:"hace {0} semanas"}},"week-narrow":{"-1":"sem. ant.",0:"esta sem.",1:"próx. sem.",future:{one:"dentro de {0} sem.",other:"dentro de {0} sem."},past:{one:"hace {0} sem.",other:"hace {0} sem."}},"week-short":{"-1":"sem. ant.",0:"esta sem.",1:"próx. sem.",future:{one:"dentro de {0} sem.",other:"dentro de {0} sem."},past:{one:"hace {0} sem.",other:"hace {0} sem."}},year:{"-1":"el año pasado",0:"este año",1:"el próximo año",future:{one:"dentro de {0} año",other:"dentro de {0} años"},past:{one:"hace {0} año",other:"hace {0} años"}},"year-narrow":{"-1":"el año pasado",0:"este año",1:"el próximo año",future:{one:"dentro de {0} a",other:"dentro de {0} a"},past:{one:"hace {0} a",other:"hace {0} a"}},"year-short":{"-1":"el año pasado",0:"este año",1:"el próximo año",future:{one:"dentro de {0} a",other:"dentro de {0} a"},past:{one:"hace {0} a",other:"hace {0} a"}}},locale:"es"});Intl.RelativeTimeFormat&&typeof Intl.RelativeTimeFormat.__addLocaleData=="function"&&Intl.RelativeTimeFormat.__addLocaleData({data:{day:{"-1":"hier","-2":"avant-hier",0:"aujourd’hui",1:"demain",2:"après-demain",future:{one:"dans {0} jour",other:"dans {0} jours"},past:{one:"il y a {0} jour",other:"il y a {0} jours"}},"day-narrow":{"-1":"hier","-2":"avant-hier",0:"aujourd’hui",1:"demain",2:"après-demain",future:{one:"+{0} j",other:"+{0} j"},past:{one:"-{0} j",other:"-{0} j"}},"day-short":{"-1":"hier","-2":"avant-hier",0:"aujourd’hui",1:"demain",2:"après-demain",future:{one:"dans {0} j",other:"dans {0} j"},past:{one:"il y a {0} j",other:"il y a {0} j"}},hour:{0:"cette heure-ci",future:{one:"dans {0} heure",other:"dans {0} heures"},past:{one:"il y a {0} heure",other:"il y a {0} heures"}},"hour-narrow":{0:"cette heure-ci",future:{one:"+{0} h",other:"+{0} h"},past:{one:"-{0} h",other:"-{0} h"}},"hour-short":{0:"cette heure-ci",future:{one:"dans {0} h",other:"dans {0} h"},past:{one:"il y a {0} h",other:"il y a {0} h"}},minute:{0:"cette minute-ci",future:{one:"dans {0} minute",other:"dans {0} minutes"},past:{one:"il y a {0} minute",other:"il y a {0} minutes"}},"minute-narrow":{0:"cette minute-ci",future:{one:"+{0} min",other:"+{0} min"},past:{one:"-{0} min",other:"-{0} min"}},"minute-short":{0:"cette minute-ci",future:{one:"dans {0} min",other:"dans {0} min"},past:{one:"il y a {0} min",other:"il y a {0} min"}},month:{"-1":"le mois dernier",0:"ce mois-ci",1:"le mois prochain",future:{one:"dans {0} mois",other:"dans {0} mois"},past:{one:"il y a {0} mois",other:"il y a {0} mois"}},"month-narrow":{"-1":"le mois dernier",0:"ce mois-ci",1:"le mois prochain",future:{one:"+{0} m.",other:"+{0} m."},past:{one:"-{0} m.",other:"-{0} m."}},"month-short":{"-1":"le mois dernier",0:"ce mois-ci",1:"le mois prochain",future:{one:"dans {0} m.",other:"dans {0} m."},past:{one:"il y a {0} m.",other:"il y a {0} m."}},nu:["latn"],quarter:{"-1":"le trimestre dernier",0:"ce trimestre",1:"le trimestre prochain",future:{one:"dans {0} trimestre",other:"dans {0} trimestres"},past:{one:"il y a {0} trimestre",other:"il y a {0} trimestres"}},"quarter-narrow":{"-1":"le trimestre dernier",0:"ce trimestre",1:"le trimestre prochain",future:{one:"+{0} trim.",other:"+{0} trim."},past:{one:"-{0} trim.",other:"-{0} trim."}},"quarter-short":{"-1":"le trimestre dernier",0:"ce trimestre",1:"le trimestre prochain",future:{one:"dans {0} trim.",other:"dans {0} trim."},past:{one:"il y a {0} trim.",other:"il y a {0} trim."}},second:{0:"maintenant",future:{one:"dans {0} seconde",other:"dans {0} secondes"},past:{one:"il y a {0} seconde",other:"il y a {0} secondes"}},"second-narrow":{0:"maintenant",future:{one:"+{0} s",other:"+{0} s"},past:{one:"-{0} s",other:"-{0} s"}},"second-short":{0:"maintenant",future:{one:"dans {0} s",other:"dans {0} s"},past:{one:"il y a {0} s",other:"il y a {0} s"}},week:{"-1":"la semaine dernière",0:"cette semaine",1:"la semaine prochaine",future:{one:"dans {0} semaine",other:"dans {0} semaines"},past:{one:"il y a {0} semaine",other:"il y a {0} semaines"}},"week-narrow":{"-1":"la semaine dernière",0:"cette semaine",1:"la semaine prochaine",future:{one:"+{0} sem.",other:"+{0} sem."},past:{one:"-{0} sem.",other:"-{0} sem."}},"week-short":{"-1":"la semaine dernière",0:"cette semaine",1:"la semaine prochaine",future:{one:"dans {0} sem.",other:"dans {0} sem."},past:{one:"il y a {0} sem.",other:"il y a {0} sem."}},year:{"-1":"l’année dernière",0:"cette année",1:"l’année prochaine",future:{one:"dans {0} an",other:"dans {0} ans"},past:{one:"il y a {0} an",other:"il y a {0} ans"}},"year-narrow":{"-1":"l’année dernière",0:"cette année",1:"l’année prochaine",future:{one:"+{0} a",other:"+{0} a"},past:{one:"-{0} a",other:"-{0} a"}},"year-short":{"-1":"l’année dernière",0:"cette année",1:"l’année prochaine",future:{one:"dans {0} a",other:"dans {0} a"},past:{one:"il y a {0} a",other:"il y a {0} a"}}},locale:"fr"});Intl.RelativeTimeFormat&&typeof Intl.RelativeTimeFormat.__addLocaleData=="function"&&Intl.RelativeTimeFormat.__addLocaleData({data:{day:{"-1":"昨日","-2":"一昨日",0:"今日",1:"明日",2:"明後日",future:{other:"{0} 日後"},past:{other:"{0} 日前"}},"day-narrow":{"-1":"昨日","-2":"一昨日",0:"今日",1:"明日",2:"明後日",future:{other:"{0}日後"},past:{other:"{0}日前"}},"day-short":{"-1":"昨日","-2":"一昨日",0:"今日",1:"明日",2:"明後日",future:{other:"{0} 日後"},past:{other:"{0} 日前"}},hour:{0:"1 時間以内",future:{other:"{0} 時間後"},past:{other:"{0} 時間前"}},"hour-narrow":{0:"1 時間以内",future:{other:"{0}時間後"},past:{other:"{0}時間前"}},"hour-short":{0:"1 時間以内",future:{other:"{0} 時間後"},past:{other:"{0} 時間前"}},minute:{0:"1 分以内",future:{other:"{0} 分後"},past:{other:"{0} 分前"}},"minute-narrow":{0:"1 分以内",future:{other:"{0}分後"},past:{other:"{0}分前"}},"minute-short":{0:"1 分以内",future:{other:"{0} 分後"},past:{other:"{0} 分前"}},month:{"-1":"先月",0:"今月",1:"来月",future:{other:"{0} か月後"},past:{other:"{0} か月前"}},"month-narrow":{"-1":"先月",0:"今月",1:"来月",future:{other:"{0}か月後"},past:{other:"{0}か月前"}},"month-short":{"-1":"先月",0:"今月",1:"来月",future:{other:"{0} か月後"},past:{other:"{0} か月前"}},nu:["latn"],quarter:{"-1":"前四半期",0:"今四半期",1:"翌四半期",future:{other:"{0} 四半期後"},past:{other:"{0} 四半期前"}},"quarter-narrow":{"-1":"前四半期",0:"今四半期",1:"翌四半期",future:{other:"{0}四半期後"},past:{other:"{0}四半期前"}},"quarter-short":{"-1":"前四半期",0:"今四半期",1:"翌四半期",future:{other:"{0} 四半期後"},past:{other:"{0} 四半期前"}},second:{0:"今",future:{other:"{0} 秒後"},past:{other:"{0} 秒前"}},"second-narrow":{0:"今",future:{other:"{0}秒後"},past:{other:"{0}秒前"}},"second-short":{0:"今",future:{other:"{0} 秒後"},past:{other:"{0} 秒前"}},week:{"-1":"先週",0:"今週",1:"来週",future:{other:"{0} 週間後"},past:{other:"{0} 週間前"}},"week-narrow":{"-1":"先週",0:"今週",1:"来週",future:{other:"{0}週間後"},past:{other:"{0}週間前"}},"week-short":{"-1":"先週",0:"今週",1:"来週",future:{other:"{0} 週間後"},past:{other:"{0} 週間前"}},year:{"-1":"昨年",0:"今年",1:"来年",future:{other:"{0} 年後"},past:{other:"{0} 年前"}},"year-narrow":{"-1":"昨年",0:"今年",1:"来年",future:{other:"{0}年後"},past:{other:"{0}年前"}},"year-short":{"-1":"昨年",0:"今年",1:"来年",future:{other:"{0} 年後"},past:{other:"{0} 年前"}}},locale:"ja"});Intl.RelativeTimeFormat&&typeof Intl.RelativeTimeFormat.__addLocaleData=="function"&&Intl.RelativeTimeFormat.__addLocaleData({data:{day:{"-1":"昨天","-2":"前天",0:"今天",1:"明天",2:"后天",future:{other:"{0}天后"},past:{other:"{0}天前"}},"day-narrow":{"-1":"昨天","-2":"前天",0:"今天",1:"明天",2:"后天",future:{other:"{0}天后"},past:{other:"{0}天前"}},"day-short":{"-1":"昨天","-2":"前天",0:"今天",1:"明天",2:"后天",future:{other:"{0}天后"},past:{other:"{0}天前"}},hour:{0:"这一时间 / 此时",future:{other:"{0}小时后"},past:{other:"{0}小时前"}},"hour-narrow":{0:"这一时间 / 此时",future:{other:"{0}小时后"},past:{other:"{0}小时前"}},"hour-short":{0:"这一时间 / 此时",future:{other:"{0}小时后"},past:{other:"{0}小时前"}},minute:{0:"此刻",future:{other:"{0}分钟后"},past:{other:"{0}分钟前"}},"minute-narrow":{0:"此刻",future:{other:"{0}分钟后"},past:{other:"{0}分钟前"}},"minute-short":{0:"此刻",future:{other:"{0}分钟后"},past:{other:"{0}分钟前"}},month:{"-1":"上个月",0:"本月",1:"下个月",future:{other:"{0}个月后"},past:{other:"{0}个月前"}},"month-narrow":{"-1":"上个月",0:"本月",1:"下个月",future:{other:"{0}个月后"},past:{other:"{0}个月前"}},"month-short":{"-1":"上个月",0:"本月",1:"下个月",future:{other:"{0}个月后"},past:{other:"{0}个月前"}},nu:["latn"],quarter:{"-1":"上季度",0:"本季度",1:"下季度",future:{other:"{0}个季度后"},past:{other:"{0}个季度前"}},"quarter-narrow":{"-1":"上季度",0:"本季度",1:"下季度",future:{other:"{0}个季度后"},past:{other:"{0}个季度前"}},"quarter-short":{"-1":"上季度",0:"本季度",1:"下季度",future:{other:"{0}个季度后"},past:{other:"{0}个季度前"}},second:{0:"现在",future:{other:"{0}秒钟后"},past:{other:"{0}秒钟前"}},"second-narrow":{0:"现在",future:{other:"{0}秒后"},past:{other:"{0}秒前"}},"second-short":{0:"现在",future:{other:"{0}秒后"},past:{other:"{0}秒前"}},week:{"-1":"上周",0:"本周",1:"下周",future:{other:"{0}周后"},past:{other:"{0}周前"}},"week-narrow":{"-1":"上周",0:"本周",1:"下周",future:{other:"{0}周后"},past:{other:"{0}周前"}},"week-short":{"-1":"上周",0:"本周",1:"下周",future:{other:"{0}周后"},past:{other:"{0}周前"}},year:{"-1":"去年",0:"今年",1:"明年",future:{other:"{0}年后"},past:{other:"{0}年前"}},"year-narrow":{"-1":"去年",0:"今年",1:"明年",future:{other:"{0}年后"},past:{other:"{0}年前"}},"year-short":{"-1":"去年",0:"今年",1:"明年",future:{other:"{0}年后"},past:{other:"{0}年前"}}},locale:"zh"});const qI=()=>{const t=new URLSearchParams(window.location.search).get("lang");if(t){const r=rp.find(a=>a.code===t);if(r)return nI(ab,r),r}return Iq(ab)??Dq},YI={currenLanguage:qI(),changeLanguage:e=>{},isRTL:()=>!1},WI=S.createContext(YI),YW=()=>S.useContext(WI),WW=({children:e})=>{const[t,n]=S.useState(YI.currenLanguage),r=s=>{nI(ab,s),n(s)},a=()=>t.direction==="rtl";return S.useEffect(()=>{document.documentElement.setAttribute("dir",t.direction)},[t]),c.jsx(WI.Provider,{value:{isRTL:a,currenLanguage:t,changeLanguage:r},children:c.jsx(DG,{messages:t.messages,locale:t.code,defaultLocale:qI().code,children:c.jsx(R$,{dir:t.direction,children:e})})})},KW=["top","right","bottom","left"],Fo=Math.min,jr=Math.max,lp=Math.round,fm=Math.floor,es=e=>({x:e,y:e}),XW={left:"right",right:"left",bottom:"top",top:"bottom"},QW={start:"end",end:"start"};function gb(e,t,n){return jr(e,Fo(t,n))}function Hs(e,t){return typeof e=="function"?e(t):e}function Vs(e){return e.split("-")[0]}function Gc(e){return e.split("-")[1]}function j1(e){return e==="x"?"y":"x"}function L1(e){return e==="y"?"height":"width"}function Bo(e){return["top","bottom"].includes(Vs(e))?"y":"x"}function k1(e){return j1(Bo(e))}function ZW(e,t,n){n===void 0&&(n=!1);const r=Gc(e),a=k1(e),s=L1(a);let i=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=cp(i)),[i,cp(i)]}function JW(e){const t=cp(e);return[vb(e),t,vb(t)]}function vb(e){return e.replace(/start|end/g,t=>QW[t])}function eK(e,t,n){const r=["left","right"],a=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?s:i;default:return[]}}function tK(e,t,n,r){const a=Gc(e);let s=eK(Vs(e),n==="start",r);return a&&(s=s.map(i=>i+"-"+a),t&&(s=s.concat(s.map(vb)))),s}function cp(e){return e.replace(/left|right|bottom|top/g,t=>XW[t])}function nK(e){return{top:0,right:0,bottom:0,left:0,...e}}function KI(e){return typeof e!="number"?nK(e):{top:e,right:e,bottom:e,left:e}}function up(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function y_(e,t,n){let{reference:r,floating:a}=e;const s=Bo(t),i=k1(t),u=L1(i),d=Vs(t),f=s==="y",m=r.x+r.width/2-a.width/2,p=r.y+r.height/2-a.height/2,v=r[u]/2-a[u]/2;let y;switch(d){case"top":y={x:m,y:r.y-a.height};break;case"bottom":y={x:m,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-a.width,y:p};break;default:y={x:r.x,y:r.y}}switch(Gc(t)){case"start":y[i]-=v*(n&&f?-1:1);break;case"end":y[i]+=v*(n&&f?-1:1);break}return y}const rK=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:s=[],platform:i}=n,u=s.filter(Boolean),d=await(i.isRTL==null?void 0:i.isRTL(t));let f=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:p}=y_(f,r,d),v=r,y={},x=0;for(let b=0;b<u.length;b++){const{name:T,fn:N}=u[b],{x:C,y:A,data:R,reset:_}=await N({x:m,y:p,initialPlacement:r,placement:v,strategy:a,middlewareData:y,rects:f,platform:i,elements:{reference:e,floating:t}});m=C??m,p=A??p,y={...y,[T]:{...y[T],...R}},_&&x<=50&&(x++,typeof _=="object"&&(_.placement&&(v=_.placement),_.rects&&(f=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):_.rects),{x:m,y:p}=y_(f,v,d)),b=-1)}return{x:m,y:p,placement:v,strategy:a,middlewareData:y}};async function Ad(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:s,rects:i,elements:u,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:v=!1,padding:y=0}=Hs(t,e),x=KI(y),T=u[v?p==="floating"?"reference":"floating":p],N=up(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(T)))==null||n?T:T.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:f,rootBoundary:m,strategy:d})),C=p==="floating"?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),R=await(s.isElement==null?void 0:s.isElement(A))?await(s.getScale==null?void 0:s.getScale(A))||{x:1,y:1}:{x:1,y:1},_=up(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:C,offsetParent:A,strategy:d}):C);return{top:(N.top-_.top+x.top)/R.y,bottom:(_.bottom-N.bottom+x.bottom)/R.y,left:(N.left-_.left+x.left)/R.x,right:(_.right-N.right+x.right)/R.x}}const aK=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:s,platform:i,elements:u,middlewareData:d}=t,{element:f,padding:m=0}=Hs(e,t)||{};if(f==null)return{};const p=KI(m),v={x:n,y:r},y=k1(a),x=L1(y),b=await i.getDimensions(f),T=y==="y",N=T?"top":"left",C=T?"bottom":"right",A=T?"clientHeight":"clientWidth",R=s.reference[x]+s.reference[y]-v[y]-s.floating[x],_=v[y]-s.reference[y],O=await(i.getOffsetParent==null?void 0:i.getOffsetParent(f));let D=O?O[A]:0;(!D||!await(i.isElement==null?void 0:i.isElement(O)))&&(D=u.floating[A]||s.floating[x]);const P=R/2-_/2,L=D/2-b[x]/2-1,U=Fo(p[N],L),B=Fo(p[C],L),H=U,Z=D-b[x]-B,ee=D/2-b[x]/2+P,Q=gb(H,ee,Z),j=!d.arrow&&Gc(a)!=null&&ee!==Q&&s.reference[x]/2-(ee<H?U:B)-b[x]/2<0,Y=j?ee<H?ee-H:ee-Z:0;return{[y]:v[y]+Y,data:{[y]:Q,centerOffset:ee-Q-Y,...j&&{alignmentOffset:Y}},reset:j}}}),sK=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:s,rects:i,initialPlacement:u,platform:d,elements:f}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:b=!0,...T}=Hs(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const N=Vs(a),C=Bo(u),A=Vs(u)===u,R=await(d.isRTL==null?void 0:d.isRTL(f.floating)),_=v||(A||!b?[cp(u)]:JW(u)),O=x!=="none";!v&&O&&_.push(...tK(u,b,x,R));const D=[u,..._],P=await Ad(t,T),L=[];let U=((r=s.flip)==null?void 0:r.overflows)||[];if(m&&L.push(P[N]),p){const ee=ZW(a,i,R);L.push(P[ee[0]],P[ee[1]])}if(U=[...U,{placement:a,overflows:L}],!L.every(ee=>ee<=0)){var B,H;const ee=(((B=s.flip)==null?void 0:B.index)||0)+1,Q=D[ee];if(Q)return{data:{index:ee,overflows:U},reset:{placement:Q}};let j=(H=U.filter(Y=>Y.overflows[0]<=0).sort((Y,V)=>Y.overflows[1]-V.overflows[1])[0])==null?void 0:H.placement;if(!j)switch(y){case"bestFit":{var Z;const Y=(Z=U.filter(V=>{if(O){const te=Bo(V.placement);return te===C||te==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(te=>te>0).reduce((te,k)=>te+k,0)]).sort((V,te)=>V[1]-te[1])[0])==null?void 0:Z[0];Y&&(j=Y);break}case"initialPlacement":j=u;break}if(a!==j)return{reset:{placement:j}}}return{}}}};function x_(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function b_(e){return KW.some(t=>e[t]>=0)}const oK=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=Hs(e,t);switch(r){case"referenceHidden":{const s=await Ad(t,{...a,elementContext:"reference"}),i=x_(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:b_(i)}}}case"escaped":{const s=await Ad(t,{...a,altBoundary:!0}),i=x_(s,n.floating);return{data:{escapedOffsets:i,escaped:b_(i)}}}default:return{}}}}};async function iK(e,t){const{placement:n,platform:r,elements:a}=e,s=await(r.isRTL==null?void 0:r.isRTL(a.floating)),i=Vs(n),u=Gc(n),d=Bo(n)==="y",f=["left","top"].includes(i)?-1:1,m=s&&d?-1:1,p=Hs(t,e);let{mainAxis:v,crossAxis:y,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&typeof x=="number"&&(y=u==="end"?x*-1:x),d?{x:y*m,y:v*f}:{x:v*f,y:y*m}}const lK=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:s,placement:i,middlewareData:u}=t,d=await iK(t,e);return i===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:a+d.x,y:s+d.y,data:{...d,placement:i}}}}},cK=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:u={fn:T=>{let{x:N,y:C}=T;return{x:N,y:C}}},...d}=Hs(e,t),f={x:n,y:r},m=await Ad(t,d),p=Bo(Vs(a)),v=j1(p);let y=f[v],x=f[p];if(s){const T=v==="y"?"top":"left",N=v==="y"?"bottom":"right",C=y+m[T],A=y-m[N];y=gb(C,y,A)}if(i){const T=p==="y"?"top":"left",N=p==="y"?"bottom":"right",C=x+m[T],A=x-m[N];x=gb(C,x,A)}const b=u.fn({...t,[v]:y,[p]:x});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[v]:s,[p]:i}}}}}},uK=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:s,middlewareData:i}=t,{offset:u=0,mainAxis:d=!0,crossAxis:f=!0}=Hs(e,t),m={x:n,y:r},p=Bo(a),v=j1(p);let y=m[v],x=m[p];const b=Hs(u,t),T=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(d){const A=v==="y"?"height":"width",R=s.reference[v]-s.floating[A]+T.mainAxis,_=s.reference[v]+s.reference[A]-T.mainAxis;y<R?y=R:y>_&&(y=_)}if(f){var N,C;const A=v==="y"?"width":"height",R=["top","left"].includes(Vs(a)),_=s.reference[p]-s.floating[A]+(R&&((N=i.offset)==null?void 0:N[p])||0)+(R?0:T.crossAxis),O=s.reference[p]+s.reference[A]+(R?0:((C=i.offset)==null?void 0:C[p])||0)-(R?T.crossAxis:0);x<_?x=_:x>O&&(x=O)}return{[v]:y,[p]:x}}}},dK=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:s,platform:i,elements:u}=t,{apply:d=()=>{},...f}=Hs(e,t),m=await Ad(t,f),p=Vs(a),v=Gc(a),y=Bo(a)==="y",{width:x,height:b}=s.floating;let T,N;p==="top"||p==="bottom"?(T=p,N=v===(await(i.isRTL==null?void 0:i.isRTL(u.floating))?"start":"end")?"left":"right"):(N=p,T=v==="end"?"top":"bottom");const C=b-m.top-m.bottom,A=x-m.left-m.right,R=Fo(b-m[T],C),_=Fo(x-m[N],A),O=!t.middlewareData.shift;let D=R,P=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=C),O&&!v){const U=jr(m.left,0),B=jr(m.right,0),H=jr(m.top,0),Z=jr(m.bottom,0);y?P=x-2*(U!==0||B!==0?U+B:jr(m.left,m.right)):D=b-2*(H!==0||Z!==0?H+Z:jr(m.top,m.bottom))}await d({...t,availableWidth:P,availableHeight:D});const L=await i.getDimensions(u.floating);return x!==L.width||b!==L.height?{reset:{rects:!0}}:{}}}};function rg(){return typeof window<"u"}function zc(e){return XI(e)?(e.nodeName||"").toLowerCase():"#document"}function kr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ls(e){var t;return(t=(XI(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function XI(e){return rg()?e instanceof Node||e instanceof kr(e).Node:!1}function Sa(e){return rg()?e instanceof Element||e instanceof kr(e).Element:!1}function os(e){return rg()?e instanceof HTMLElement||e instanceof kr(e).HTMLElement:!1}function E_(e){return!rg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof kr(e).ShadowRoot}function of(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Ta(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function fK(e){return["table","td","th"].includes(zc(e))}function ag(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function U1(e){const t=F1(),n=Sa(e)?Ta(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function hK(e){let t=Ho(e);for(;os(t)&&!Cc(t);){if(U1(t))return t;if(ag(t))return null;t=Ho(t)}return null}function F1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Cc(e){return["html","body","#document"].includes(zc(e))}function Ta(e){return kr(e).getComputedStyle(e)}function sg(e){return Sa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ho(e){if(zc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||E_(e)&&e.host||ls(e);return E_(t)?t.host:t}function QI(e){const t=Ho(e);return Cc(t)?e.ownerDocument?e.ownerDocument.body:e.body:os(t)&&of(t)?t:QI(t)}function _d(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=QI(e),s=a===((r=e.ownerDocument)==null?void 0:r.body),i=kr(a);if(s){const u=yb(i);return t.concat(i,i.visualViewport||[],of(a)?a:[],u&&n?_d(u):[])}return t.concat(a,_d(a,[],n))}function yb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ZI(e){const t=Ta(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=os(e),s=a?e.offsetWidth:n,i=a?e.offsetHeight:r,u=lp(n)!==s||lp(r)!==i;return u&&(n=s,r=i),{width:n,height:r,$:u}}function B1(e){return Sa(e)?e:e.contextElement}function lc(e){const t=B1(e);if(!os(t))return es(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:s}=ZI(t);let i=(s?lp(n.width):n.width)/r,u=(s?lp(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!u||!Number.isFinite(u))&&(u=1),{x:i,y:u}}const mK=es(0);function JI(e){const t=kr(e);return!F1()||!t.visualViewport?mK:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pK(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==kr(e)?!1:t}function Wi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),s=B1(e);let i=es(1);t&&(r?Sa(r)&&(i=lc(r)):i=lc(e));const u=pK(s,n,r)?JI(s):es(0);let d=(a.left+u.x)/i.x,f=(a.top+u.y)/i.y,m=a.width/i.x,p=a.height/i.y;if(s){const v=kr(s),y=r&&Sa(r)?kr(r):r;let x=v,b=yb(x);for(;b&&r&&y!==x;){const T=lc(b),N=b.getBoundingClientRect(),C=Ta(b),A=N.left+(b.clientLeft+parseFloat(C.paddingLeft))*T.x,R=N.top+(b.clientTop+parseFloat(C.paddingTop))*T.y;d*=T.x,f*=T.y,m*=T.x,p*=T.y,d+=A,f+=R,x=kr(b),b=yb(x)}}return up({width:m,height:p,x:d,y:f})}function H1(e,t){const n=sg(e).scrollLeft;return t?t.left+n:Wi(ls(e)).left+n}function eP(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-(n?0:H1(e,r)),s=r.top+t.scrollTop;return{x:a,y:s}}function gK(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const s=a==="fixed",i=ls(r),u=t?ag(t.floating):!1;if(r===i||u&&s)return n;let d={scrollLeft:0,scrollTop:0},f=es(1);const m=es(0),p=os(r);if((p||!p&&!s)&&((zc(r)!=="body"||of(i))&&(d=sg(r)),os(r))){const y=Wi(r);f=lc(r),m.x=y.x+r.clientLeft,m.y=y.y+r.clientTop}const v=i&&!p&&!s?eP(i,d,!0):es(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+m.x+v.x,y:n.y*f.y-d.scrollTop*f.y+m.y+v.y}}function vK(e){return Array.from(e.getClientRects())}function yK(e){const t=ls(e),n=sg(e),r=e.ownerDocument.body,a=jr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=jr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+H1(e);const u=-n.scrollTop;return Ta(r).direction==="rtl"&&(i+=jr(t.clientWidth,r.clientWidth)-a),{width:a,height:s,x:i,y:u}}function xK(e,t){const n=kr(e),r=ls(e),a=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,u=0,d=0;if(a){s=a.width,i=a.height;const f=F1();(!f||f&&t==="fixed")&&(u=a.offsetLeft,d=a.offsetTop)}return{width:s,height:i,x:u,y:d}}function bK(e,t){const n=Wi(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,s=os(e)?lc(e):es(1),i=e.clientWidth*s.x,u=e.clientHeight*s.y,d=a*s.x,f=r*s.y;return{width:i,height:u,x:d,y:f}}function S_(e,t,n){let r;if(t==="viewport")r=xK(e,n);else if(t==="document")r=yK(ls(e));else if(Sa(t))r=bK(t,n);else{const a=JI(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return up(r)}function tP(e,t){const n=Ho(e);return n===t||!Sa(n)||Cc(n)?!1:Ta(n).position==="fixed"||tP(n,t)}function EK(e,t){const n=t.get(e);if(n)return n;let r=_d(e,[],!1).filter(u=>Sa(u)&&zc(u)!=="body"),a=null;const s=Ta(e).position==="fixed";let i=s?Ho(e):e;for(;Sa(i)&&!Cc(i);){const u=Ta(i),d=U1(i);!d&&u.position==="fixed"&&(a=null),(s?!d&&!a:!d&&u.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||of(i)&&!d&&tP(e,i))?r=r.filter(m=>m!==i):a=u,i=Ho(i)}return t.set(e,r),r}function SK(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const i=[...n==="clippingAncestors"?ag(t)?[]:EK(t,this._c):[].concat(n),r],u=i[0],d=i.reduce((f,m)=>{const p=S_(t,m,a);return f.top=jr(p.top,f.top),f.right=Fo(p.right,f.right),f.bottom=Fo(p.bottom,f.bottom),f.left=jr(p.left,f.left),f},S_(t,u,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function TK(e){const{width:t,height:n}=ZI(e);return{width:t,height:n}}function NK(e,t,n){const r=os(t),a=ls(t),s=n==="fixed",i=Wi(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const d=es(0);if(r||!r&&!s)if((zc(t)!=="body"||of(a))&&(u=sg(t)),r){const v=Wi(t,!0,s,t);d.x=v.x+t.clientLeft,d.y=v.y+t.clientTop}else a&&(d.x=H1(a));const f=a&&!r&&!s?eP(a,u):es(0),m=i.left+u.scrollLeft-d.x-f.x,p=i.top+u.scrollTop-d.y-f.y;return{x:m,y:p,width:i.width,height:i.height}}function jy(e){return Ta(e).position==="static"}function T_(e,t){if(!os(e)||Ta(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ls(e)===n&&(n=n.ownerDocument.body),n}function nP(e,t){const n=kr(e);if(ag(e))return n;if(!os(e)){let a=Ho(e);for(;a&&!Cc(a);){if(Sa(a)&&!jy(a))return a;a=Ho(a)}return n}let r=T_(e,t);for(;r&&fK(r)&&jy(r);)r=T_(r,t);return r&&Cc(r)&&jy(r)&&!U1(r)?n:r||hK(e)||n}const wK=async function(e){const t=this.getOffsetParent||nP,n=this.getDimensions,r=await n(e.floating);return{reference:NK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function CK(e){return Ta(e).direction==="rtl"}const AK={convertOffsetParentRelativeRectToViewportRelativeRect:gK,getDocumentElement:ls,getClippingRect:SK,getOffsetParent:nP,getElementRects:wK,getClientRects:vK,getDimensions:TK,getScale:lc,isElement:Sa,isRTL:CK};function rP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _K(e,t){let n=null,r;const a=ls(e);function s(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function i(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),s();const f=e.getBoundingClientRect(),{left:m,top:p,width:v,height:y}=f;if(u||t(),!v||!y)return;const x=fm(p),b=fm(a.clientWidth-(m+v)),T=fm(a.clientHeight-(p+y)),N=fm(m),A={rootMargin:-x+"px "+-b+"px "+-T+"px "+-N+"px",threshold:jr(0,Fo(1,d))||1};let R=!0;function _(O){const D=O[0].intersectionRatio;if(D!==d){if(!R)return i();D?i(!1,D):r=setTimeout(()=>{i(!1,1e-7)},1e3)}D===1&&!rP(f,e.getBoundingClientRect())&&i(),R=!1}try{n=new IntersectionObserver(_,{...A,root:a.ownerDocument})}catch{n=new IntersectionObserver(_,A)}n.observe(e)}return i(!0),s}function RK(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=B1(e),m=a||s?[...f?_d(f):[],..._d(t)]:[];m.forEach(N=>{a&&N.addEventListener("scroll",n,{passive:!0}),s&&N.addEventListener("resize",n)});const p=f&&u?_K(f,n):null;let v=-1,y=null;i&&(y=new ResizeObserver(N=>{let[C]=N;C&&C.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var A;(A=y)==null||A.observe(t)})),n()}),f&&!d&&y.observe(f),y.observe(t));let x,b=d?Wi(e):null;d&&T();function T(){const N=Wi(e);b&&!rP(b,N)&&n(),b=N,x=requestAnimationFrame(T)}return n(),()=>{var N;m.forEach(C=>{a&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),p==null||p(),(N=y)==null||N.disconnect(),y=null,d&&cancelAnimationFrame(x)}}const MK=lK,OK=cK,DK=sK,IK=dK,PK=oK,N_=aK,jK=uK,LK=(e,t,n)=>{const r=new Map,a={platform:AK,...n},s={...a.platform,_c:r};return rK(e,t,{...a,platform:s})};var jm=typeof document<"u"?S.useLayoutEffect:S.useEffect;function dp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!dp(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const s=a[r];if(!(s==="_owner"&&e.$$typeof)&&!dp(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function aP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function w_(e,t){const n=aP(e);return Math.round(t*n)/n}function Ly(e){const t=S.useRef(e);return jm(()=>{t.current=e}),t}function kK(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:s,floating:i}={},transform:u=!0,whileElementsMounted:d,open:f}=e,[m,p]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,y]=S.useState(r);dp(v,r)||y(r);const[x,b]=S.useState(null),[T,N]=S.useState(null),C=S.useCallback(V=>{V!==O.current&&(O.current=V,b(V))},[]),A=S.useCallback(V=>{V!==D.current&&(D.current=V,N(V))},[]),R=s||x,_=i||T,O=S.useRef(null),D=S.useRef(null),P=S.useRef(m),L=d!=null,U=Ly(d),B=Ly(a),H=Ly(f),Z=S.useCallback(()=>{if(!O.current||!D.current)return;const V={placement:t,strategy:n,middleware:v};B.current&&(V.platform=B.current),LK(O.current,D.current,V).then(te=>{const k={...te,isPositioned:H.current!==!1};ee.current&&!dp(P.current,k)&&(P.current=k,$d.flushSync(()=>{p(k)}))})},[v,t,n,B,H]);jm(()=>{f===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,p(V=>({...V,isPositioned:!1})))},[f]);const ee=S.useRef(!1);jm(()=>(ee.current=!0,()=>{ee.current=!1}),[]),jm(()=>{if(R&&(O.current=R),_&&(D.current=_),R&&_){if(U.current)return U.current(R,_,Z);Z()}},[R,_,Z,U,L]);const Q=S.useMemo(()=>({reference:O,floating:D,setReference:C,setFloating:A}),[C,A]),j=S.useMemo(()=>({reference:R,floating:_}),[R,_]),Y=S.useMemo(()=>{const V={position:n,left:0,top:0};if(!j.floating)return V;const te=w_(j.floating,m.x),k=w_(j.floating,m.y);return u?{...V,transform:"translate("+te+"px, "+k+"px)",...aP(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:k}},[n,u,j.floating,m.x,m.y]);return S.useMemo(()=>({...m,update:Z,refs:Q,elements:j,floatingStyles:Y}),[m,Z,Q,j,Y])}const UK=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?N_({element:r.current,padding:a}).fn(n):{}:r?N_({element:r,padding:a}).fn(n):{}}}},FK=(e,t)=>({...MK(e),options:[e,t]}),BK=(e,t)=>({...OK(e),options:[e,t]}),HK=(e,t)=>({...jK(e),options:[e,t]}),VK=(e,t)=>({...DK(e),options:[e,t]}),GK=(e,t)=>({...IK(e),options:[e,t]}),zK=(e,t)=>({...PK(e),options:[e,t]}),$K=(e,t)=>({...UK(e),options:[e,t]});var qK="Arrow",sP=S.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...s}=e;return c.jsx(ye.svg,{...s,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});sP.displayName=qK;var YK=sP;function oP(e){const[t,n]=S.useState(void 0);return zt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let i,u;if("borderBoxSize"in s){const d=s.borderBoxSize,f=Array.isArray(d)?d[0]:d;i=f.inlineSize,u=f.blockSize}else i=e.offsetWidth,u=e.offsetHeight;n({width:i,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var V1="Popper",[iP,Zo]=Gn(V1),[WK,lP]=iP(V1),cP=e=>{const{__scopePopper:t,children:n}=e,[r,a]=S.useState(null);return c.jsx(WK,{scope:t,anchor:r,onAnchorChange:a,children:n})};cP.displayName=V1;var uP="PopperAnchor",dP=S.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,s=lP(uP,n),i=S.useRef(null),u=Ue(t,i);return S.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:c.jsx(ye.div,{...a,ref:u})});dP.displayName=uP;var G1="PopperContent",[KK,XK]=iP(G1),fP=S.forwardRef((e,t)=>{var he,ge,Ne,Ae,Me,He;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:s="center",alignOffset:i=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:y="optimized",onPlaced:x,...b}=e,T=lP(G1,n),[N,C]=S.useState(null),A=Ue(t,Ft=>C(Ft)),[R,_]=S.useState(null),O=oP(R),D=(O==null?void 0:O.width)??0,P=(O==null?void 0:O.height)??0,L=r+(s!=="center"?"-"+s:""),U=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},B=Array.isArray(f)?f:[f],H=B.length>0,Z={padding:U,boundary:B.filter(ZK),altBoundary:H},{refs:ee,floatingStyles:Q,placement:j,isPositioned:Y,middlewareData:V}=kK({strategy:"fixed",placement:L,whileElementsMounted:(...Ft)=>RK(...Ft,{animationFrame:y==="always"}),elements:{reference:T.anchor},middleware:[FK({mainAxis:a+P,alignmentAxis:i}),d&&BK({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?HK():void 0,...Z}),d&&VK({...Z}),GK({...Z,apply:({elements:Ft,rects:dt,availableWidth:On,availableHeight:tr})=>{const{width:yt,height:oa}=dt.reference,Wt=Ft.floating.style;Wt.setProperty("--radix-popper-available-width",`${On}px`),Wt.setProperty("--radix-popper-available-height",`${tr}px`),Wt.setProperty("--radix-popper-anchor-width",`${yt}px`),Wt.setProperty("--radix-popper-anchor-height",`${oa}px`)}}),R&&$K({element:R,padding:u}),JK({arrowWidth:D,arrowHeight:P}),v&&zK({strategy:"referenceHidden",...Z})]}),[te,k]=pP(j),$=It(x);zt(()=>{Y&&($==null||$())},[Y,$]);const se=(he=V.arrow)==null?void 0:he.x,re=(ge=V.arrow)==null?void 0:ge.y,ue=((Ne=V.arrow)==null?void 0:Ne.centerOffset)!==0,[xe,fe]=S.useState();return zt(()=>{N&&fe(window.getComputedStyle(N).zIndex)},[N]),c.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:Y?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[(Ae=V.transformOrigin)==null?void 0:Ae.x,(Me=V.transformOrigin)==null?void 0:Me.y].join(" "),...((He=V.hide)==null?void 0:He.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(KK,{scope:n,placedSide:te,onArrowChange:_,arrowX:se,arrowY:re,shouldHideArrow:ue,children:c.jsx(ye.div,{"data-side":te,"data-align":k,...b,ref:A,style:{...b.style,animation:Y?void 0:"none"}})})})});fP.displayName=G1;var hP="PopperArrow",QK={top:"bottom",right:"left",bottom:"top",left:"right"},mP=S.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,s=XK(hP,r),i=QK[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(YK,{...a,ref:n,style:{...a.style,display:"block"}})})});mP.displayName=hP;function ZK(e){return e!==null}var JK=e=>({name:"transformOrigin",options:e,fn(t){var T,N,C;const{placement:n,rects:r,middlewareData:a}=t,i=((T=a.arrow)==null?void 0:T.centerOffset)!==0,u=i?0:e.arrowWidth,d=i?0:e.arrowHeight,[f,m]=pP(n),p={start:"0%",center:"50%",end:"100%"}[m],v=(((N=a.arrow)==null?void 0:N.x)??0)+u/2,y=(((C=a.arrow)==null?void 0:C.y)??0)+d/2;let x="",b="";return f==="bottom"?(x=i?p:`${v}px`,b=`${-d}px`):f==="top"?(x=i?p:`${v}px`,b=`${r.floating.height+d}px`):f==="right"?(x=`${-d}px`,b=i?p:`${y}px`):f==="left"&&(x=`${r.floating.width+d}px`,b=i?p:`${y}px`),{data:{x,y:b}}}});function pP(e){const[t,n="center"]=e.split("-");return[t,n]}var lf=cP,cf=dP,og=fP,ig=mP,ky="rovingFocusGroup.onEntryFocus",eX={bubbles:!1,cancelable:!0},uf="RovingFocusGroup",[xb,gP,tX]=Vc(uf),[nX,lg]=Gn(uf,[tX]),[rX,aX]=nX(uf),vP=S.forwardRef((e,t)=>c.jsx(xb.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(xb.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(sX,{...e,ref:t})})}));vP.displayName=uf;var sX=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:f,preventScrollOnEntryFocus:m=!1,...p}=e,v=S.useRef(null),y=Ue(t,v),x=el(s),[b,T]=hr({prop:i,defaultProp:u??null,onChange:d,caller:uf}),[N,C]=S.useState(!1),A=It(f),R=gP(n),_=S.useRef(!1),[O,D]=S.useState(0);return S.useEffect(()=>{const P=v.current;if(P)return P.addEventListener(ky,A),()=>P.removeEventListener(ky,A)},[A]),c.jsx(rX,{scope:n,orientation:r,dir:x,loop:a,currentTabStopId:b,onItemFocus:S.useCallback(P=>T(P),[T]),onItemShiftTab:S.useCallback(()=>C(!0),[]),onFocusableItemAdd:S.useCallback(()=>D(P=>P+1),[]),onFocusableItemRemove:S.useCallback(()=>D(P=>P-1),[]),children:c.jsx(ye.div,{tabIndex:N||O===0?-1:0,"data-orientation":r,...p,ref:y,style:{outline:"none",...e.style},onMouseDown:me(e.onMouseDown,()=>{_.current=!0}),onFocus:me(e.onFocus,P=>{const L=!_.current;if(P.target===P.currentTarget&&L&&!N){const U=new CustomEvent(ky,eX);if(P.currentTarget.dispatchEvent(U),!U.defaultPrevented){const B=R().filter(j=>j.focusable),H=B.find(j=>j.active),Z=B.find(j=>j.id===b),Q=[H,Z,...B].filter(Boolean).map(j=>j.ref.current);bP(Q,m)}}_.current=!1}),onBlur:me(e.onBlur,()=>C(!1))})})}),yP="RovingFocusGroupItem",xP=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:s,children:i,...u}=e,d=_n(),f=s||d,m=aX(yP,n),p=m.currentTabStopId===f,v=gP(n),{onFocusableItemAdd:y,onFocusableItemRemove:x,currentTabStopId:b}=m;return S.useEffect(()=>{if(r)return y(),()=>x()},[r,y,x]),c.jsx(xb.ItemSlot,{scope:n,id:f,focusable:r,active:a,children:c.jsx(ye.span,{tabIndex:p?0:-1,"data-orientation":m.orientation,...u,ref:t,onMouseDown:me(e.onMouseDown,T=>{r?m.onItemFocus(f):T.preventDefault()}),onFocus:me(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:me(e.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){m.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const N=lX(T,m.orientation,m.dir);if(N!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let A=v().filter(R=>R.focusable).map(R=>R.ref.current);if(N==="last")A.reverse();else if(N==="prev"||N==="next"){N==="prev"&&A.reverse();const R=A.indexOf(T.currentTarget);A=m.loop?cX(A,R+1):A.slice(R+1)}setTimeout(()=>bP(A))}}),children:typeof i=="function"?i({isCurrentTabStop:p,hasTabStop:b!=null}):i})})});xP.displayName=yP;var oX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function iX(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function lX(e,t,n){const r=iX(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return oX[r]}function bP(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function cX(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var EP=vP,SP=xP,bb=["Enter"," "],uX=["ArrowDown","PageUp","Home"],TP=["ArrowUp","PageDown","End"],dX=[...uX,...TP],fX={ltr:[...bb,"ArrowRight"],rtl:[...bb,"ArrowLeft"]},hX={ltr:["ArrowLeft"],rtl:["ArrowRight"]},df="Menu",[Rd,mX,pX]=Vc(df),[rl,NP]=Gn(df,[pX,Zo,lg]),ff=Zo(),wP=lg(),[CP,Jo]=rl(df),[gX,hf]=rl(df),AP=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:a,onOpenChange:s,modal:i=!0}=e,u=ff(t),[d,f]=S.useState(null),m=S.useRef(!1),p=It(s),v=el(a);return S.useEffect(()=>{const y=()=>{m.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>m.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),c.jsx(lf,{...u,children:c.jsx(CP,{scope:t,open:n,onOpenChange:p,content:d,onContentChange:f,children:c.jsx(gX,{scope:t,onClose:S.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:m,dir:v,modal:i,children:r})})})};AP.displayName=df;var vX="MenuAnchor",z1=S.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,a=ff(n);return c.jsx(cf,{...a,...r,ref:t})});z1.displayName=vX;var $1="MenuPortal",[yX,_P]=rl($1,{forceMount:void 0}),RP=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:a}=e,s=Jo($1,t);return c.jsx(yX,{scope:t,forceMount:n,children:c.jsx(on,{present:n||s.open,children:c.jsx(Gp,{asChild:!0,container:a,children:r})})})};RP.displayName=$1;var ta="MenuContent",[xX,q1]=rl(ta),MP=S.forwardRef((e,t)=>{const n=_P(ta,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,s=Jo(ta,e.__scopeMenu),i=hf(ta,e.__scopeMenu);return c.jsx(Rd.Provider,{scope:e.__scopeMenu,children:c.jsx(on,{present:r||s.open,children:c.jsx(Rd.Slot,{scope:e.__scopeMenu,children:i.modal?c.jsx(bX,{...a,ref:t}):c.jsx(EX,{...a,ref:t})})})})}),bX=S.forwardRef((e,t)=>{const n=Jo(ta,e.__scopeMenu),r=S.useRef(null),a=Ue(t,r);return S.useEffect(()=>{const s=r.current;if(s)return qp(s)},[]),c.jsx(Y1,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:me(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),EX=S.forwardRef((e,t)=>{const n=Jo(ta,e.__scopeMenu);return c.jsx(Y1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),SX=ko("MenuContent.ScrollLock"),Y1=S.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:u,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:v,onDismiss:y,disableOutsideScroll:x,...b}=e,T=Jo(ta,n),N=hf(ta,n),C=ff(n),A=wP(n),R=mX(n),[_,O]=S.useState(null),D=S.useRef(null),P=Ue(t,D,T.onContentChange),L=S.useRef(0),U=S.useRef(""),B=S.useRef(0),H=S.useRef(null),Z=S.useRef("right"),ee=S.useRef(0),Q=x?tf:S.Fragment,j=x?{as:SX,allowPinchZoom:!0}:void 0,Y=te=>{var he,ge;const k=U.current+te,$=R().filter(Ne=>!Ne.disabled),se=document.activeElement,re=(he=$.find(Ne=>Ne.ref.current===se))==null?void 0:he.textValue,ue=$.map(Ne=>Ne.textValue),xe=PX(ue,k,re),fe=(ge=$.find(Ne=>Ne.textValue===xe))==null?void 0:ge.ref.current;(function Ne(Ae){U.current=Ae,window.clearTimeout(L.current),Ae!==""&&(L.current=window.setTimeout(()=>Ne(""),1e3))})(k),fe&&setTimeout(()=>fe.focus())};S.useEffect(()=>()=>window.clearTimeout(L.current),[]),zp();const V=S.useCallback(te=>{var $,se;return Z.current===(($=H.current)==null?void 0:$.side)&&LX(te,(se=H.current)==null?void 0:se.area)},[]);return c.jsx(xX,{scope:n,searchRef:U,onItemEnter:S.useCallback(te=>{V(te)&&te.preventDefault()},[V]),onItemLeave:S.useCallback(te=>{var k;V(te)||((k=D.current)==null||k.focus(),O(null))},[V]),onTriggerLeave:S.useCallback(te=>{V(te)&&te.preventDefault()},[V]),pointerGraceTimerRef:B,onPointerGraceIntentChange:S.useCallback(te=>{H.current=te},[]),children:c.jsx(Q,{...j,children:c.jsx(ef,{asChild:!0,trapped:a,onMountAutoFocus:me(s,te=>{var k;te.preventDefault(),(k=D.current)==null||k.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:c.jsx(Ji,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:v,onDismiss:y,children:c.jsx(EP,{asChild:!0,...A,dir:N.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:O,onEntryFocus:me(d,te=>{N.isUsingKeyboardRef.current||te.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(og,{role:"menu","aria-orientation":"vertical","data-state":YP(T.open),"data-radix-menu-content":"",dir:N.dir,...C,...b,ref:P,style:{outline:"none",...b.style},onKeyDown:me(b.onKeyDown,te=>{const $=te.target.closest("[data-radix-menu-content]")===te.currentTarget,se=te.ctrlKey||te.altKey||te.metaKey,re=te.key.length===1;$&&(te.key==="Tab"&&te.preventDefault(),!se&&re&&Y(te.key));const ue=D.current;if(te.target!==ue||!dX.includes(te.key))return;te.preventDefault();const fe=R().filter(he=>!he.disabled).map(he=>he.ref.current);TP.includes(te.key)&&fe.reverse(),DX(fe)}),onBlur:me(e.onBlur,te=>{te.currentTarget.contains(te.target)||(window.clearTimeout(L.current),U.current="")}),onPointerMove:me(e.onPointerMove,Md(te=>{const k=te.target,$=ee.current!==te.clientX;if(te.currentTarget.contains(k)&&$){const se=te.clientX>ee.current?"right":"left";Z.current=se,ee.current=te.clientX}}))})})})})})})});MP.displayName=ta;var TX="MenuGroup",W1=S.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(ye.div,{role:"group",...r,ref:t})});W1.displayName=TX;var NX="MenuLabel",OP=S.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(ye.div,{...r,ref:t})});OP.displayName=NX;var fp="MenuItem",C_="menu.itemSelect",cg=S.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...a}=e,s=S.useRef(null),i=hf(fp,e.__scopeMenu),u=q1(fp,e.__scopeMenu),d=Ue(t,s),f=S.useRef(!1),m=()=>{const p=s.current;if(!n&&p){const v=new CustomEvent(C_,{bubbles:!0,cancelable:!0});p.addEventListener(C_,y=>r==null?void 0:r(y),{once:!0}),Jm(p,v),v.defaultPrevented?f.current=!1:i.onClose()}};return c.jsx(DP,{...a,ref:d,disabled:n,onClick:me(e.onClick,m),onPointerDown:p=>{var v;(v=e.onPointerDown)==null||v.call(e,p),f.current=!0},onPointerUp:me(e.onPointerUp,p=>{var v;f.current||(v=p.currentTarget)==null||v.click()}),onKeyDown:me(e.onKeyDown,p=>{const v=u.searchRef.current!=="";n||v&&p.key===" "||bb.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});cg.displayName=fp;var DP=S.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:a,...s}=e,i=q1(fp,n),u=wP(n),d=S.useRef(null),f=Ue(t,d),[m,p]=S.useState(!1),[v,y]=S.useState("");return S.useEffect(()=>{const x=d.current;x&&y((x.textContent??"").trim())},[s.children]),c.jsx(Rd.ItemSlot,{scope:n,disabled:r,textValue:a??v,children:c.jsx(SP,{asChild:!0,...u,focusable:!r,children:c.jsx(ye.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:f,onPointerMove:me(e.onPointerMove,Md(x=>{r?i.onItemLeave(x):(i.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:me(e.onPointerLeave,Md(x=>i.onItemLeave(x))),onFocus:me(e.onFocus,()=>p(!0)),onBlur:me(e.onBlur,()=>p(!1))})})})}),wX="MenuCheckboxItem",IP=S.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...a}=e;return c.jsx(UP,{scope:e.__scopeMenu,checked:n,children:c.jsx(cg,{role:"menuitemcheckbox","aria-checked":hp(n)?"mixed":n,...a,ref:t,"data-state":Q1(n),onSelect:me(a.onSelect,()=>r==null?void 0:r(hp(n)?!0:!n),{checkForDefaultPrevented:!1})})})});IP.displayName=wX;var PP="MenuRadioGroup",[CX,AX]=rl(PP,{value:void 0,onValueChange:()=>{}}),jP=S.forwardRef((e,t)=>{const{value:n,onValueChange:r,...a}=e,s=It(r);return c.jsx(CX,{scope:e.__scopeMenu,value:n,onValueChange:s,children:c.jsx(W1,{...a,ref:t})})});jP.displayName=PP;var LP="MenuRadioItem",kP=S.forwardRef((e,t)=>{const{value:n,...r}=e,a=AX(LP,e.__scopeMenu),s=n===a.value;return c.jsx(UP,{scope:e.__scopeMenu,checked:s,children:c.jsx(cg,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Q1(s),onSelect:me(r.onSelect,()=>{var i;return(i=a.onValueChange)==null?void 0:i.call(a,n)},{checkForDefaultPrevented:!1})})})});kP.displayName=LP;var K1="MenuItemIndicator",[UP,_X]=rl(K1,{checked:!1}),FP=S.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...a}=e,s=_X(K1,n);return c.jsx(on,{present:r||hp(s.checked)||s.checked===!0,children:c.jsx(ye.span,{...a,ref:t,"data-state":Q1(s.checked)})})});FP.displayName=K1;var RX="MenuSeparator",BP=S.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(ye.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});BP.displayName=RX;var MX="MenuArrow",HP=S.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,a=ff(n);return c.jsx(ig,{...a,...r,ref:t})});HP.displayName=MX;var X1="MenuSub",[OX,VP]=rl(X1),GP=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:a}=e,s=Jo(X1,t),i=ff(t),[u,d]=S.useState(null),[f,m]=S.useState(null),p=It(a);return S.useEffect(()=>(s.open===!1&&p(!1),()=>p(!1)),[s.open,p]),c.jsx(lf,{...i,children:c.jsx(CP,{scope:t,open:r,onOpenChange:p,content:f,onContentChange:m,children:c.jsx(OX,{scope:t,contentId:_n(),triggerId:_n(),trigger:u,onTriggerChange:d,children:n})})})};GP.displayName=X1;var ld="MenuSubTrigger",zP=S.forwardRef((e,t)=>{const n=Jo(ld,e.__scopeMenu),r=hf(ld,e.__scopeMenu),a=VP(ld,e.__scopeMenu),s=q1(ld,e.__scopeMenu),i=S.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:d}=s,f={__scopeMenu:e.__scopeMenu},m=S.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return S.useEffect(()=>m,[m]),S.useEffect(()=>{const p=u.current;return()=>{window.clearTimeout(p),d(null)}},[u,d]),c.jsx(z1,{asChild:!0,...f,children:c.jsx(DP,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":YP(n.open),...e,ref:Wd(t,a.onTriggerChange),onClick:p=>{var v;(v=e.onClick)==null||v.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:me(e.onPointerMove,Md(p=>{s.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:me(e.onPointerLeave,Md(p=>{var y,x;m();const v=(y=n.content)==null?void 0:y.getBoundingClientRect();if(v){const b=(x=n.content)==null?void 0:x.dataset.side,T=b==="right",N=T?-5:5,C=v[T?"left":"right"],A=v[T?"right":"left"];s.onPointerGraceIntentChange({area:[{x:p.clientX+N,y:p.clientY},{x:C,y:v.top},{x:A,y:v.top},{x:A,y:v.bottom},{x:C,y:v.bottom}],side:b}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(p),p.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:me(e.onKeyDown,p=>{var y;const v=s.searchRef.current!=="";e.disabled||v&&p.key===" "||fX[r.dir].includes(p.key)&&(n.onOpenChange(!0),(y=n.content)==null||y.focus(),p.preventDefault())})})})});zP.displayName=ld;var $P="MenuSubContent",qP=S.forwardRef((e,t)=>{const n=_P(ta,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,s=Jo(ta,e.__scopeMenu),i=hf(ta,e.__scopeMenu),u=VP($P,e.__scopeMenu),d=S.useRef(null),f=Ue(t,d);return c.jsx(Rd.Provider,{scope:e.__scopeMenu,children:c.jsx(on,{present:r||s.open,children:c.jsx(Rd.Slot,{scope:e.__scopeMenu,children:c.jsx(Y1,{id:u.contentId,"aria-labelledby":u.triggerId,...a,ref:f,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var p;i.isUsingKeyboardRef.current&&((p=d.current)==null||p.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:me(e.onFocusOutside,m=>{m.target!==u.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:me(e.onEscapeKeyDown,m=>{i.onClose(),m.preventDefault()}),onKeyDown:me(e.onKeyDown,m=>{var y;const p=m.currentTarget.contains(m.target),v=hX[i.dir].includes(m.key);p&&v&&(s.onOpenChange(!1),(y=u.trigger)==null||y.focus(),m.preventDefault())})})})})})});qP.displayName=$P;function YP(e){return e?"open":"closed"}function hp(e){return e==="indeterminate"}function Q1(e){return hp(e)?"indeterminate":e?"checked":"unchecked"}function DX(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function IX(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function PX(e,t,n){const a=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=IX(e,Math.max(s,0));a.length===1&&(i=i.filter(f=>f!==n));const d=i.find(f=>f.toLowerCase().startsWith(a.toLowerCase()));return d!==n?d:void 0}function jX(e,t){const{x:n,y:r}=e;let a=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const u=t[s],d=t[i],f=u.x,m=u.y,p=d.x,v=d.y;m>r!=v>r&&n<(p-f)*(r-m)/(v-m)+f&&(a=!a)}return a}function LX(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return jX(n,t)}function Md(e){return t=>t.pointerType==="mouse"?e(t):void 0}var kX=AP,UX=z1,FX=RP,BX=MP,HX=W1,VX=OP,GX=cg,zX=IP,$X=jP,qX=kP,YX=FP,WX=BP,KX=HP,XX=GP,QX=zP,ZX=qP,ug="DropdownMenu",[JX,Zme]=Gn(ug,[NP]),er=NP(),[eQ,WP]=JX(ug),KP=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:a,defaultOpen:s,onOpenChange:i,modal:u=!0}=e,d=er(t),f=S.useRef(null),[m,p]=hr({prop:a,defaultProp:s??!1,onChange:i,caller:ug});return c.jsx(eQ,{scope:t,triggerId:_n(),triggerRef:f,contentId:_n(),open:m,onOpenChange:p,onOpenToggle:S.useCallback(()=>p(v=>!v),[p]),modal:u,children:c.jsx(kX,{...d,open:m,onOpenChange:p,dir:r,modal:u,children:n})})};KP.displayName=ug;var XP="DropdownMenuTrigger",QP=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,s=WP(XP,n),i=er(n);return c.jsx(UX,{asChild:!0,...i,children:c.jsx(ye.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:Wd(t,s.triggerRef),onPointerDown:me(e.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(s.onOpenToggle(),s.open||u.preventDefault())}),onKeyDown:me(e.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&s.onOpenToggle(),u.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});QP.displayName=XP;var tQ="DropdownMenuPortal",ZP=e=>{const{__scopeDropdownMenu:t,...n}=e,r=er(t);return c.jsx(FX,{...r,...n})};ZP.displayName=tQ;var JP="DropdownMenuContent",ej=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=WP(JP,n),s=er(n),i=S.useRef(!1);return c.jsx(BX,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...r,ref:t,onCloseAutoFocus:me(e.onCloseAutoFocus,u=>{var d;i.current||(d=a.triggerRef.current)==null||d.focus(),i.current=!1,u.preventDefault()}),onInteractOutside:me(e.onInteractOutside,u=>{const d=u.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0,m=d.button===2||f;(!a.modal||m)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ej.displayName=JP;var nQ="DropdownMenuGroup",rQ=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=er(n);return c.jsx(HX,{...a,...r,ref:t})});rQ.displayName=nQ;var aQ="DropdownMenuLabel",tj=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=er(n);return c.jsx(VX,{...a,...r,ref:t})});tj.displayName=aQ;var sQ="DropdownMenuItem",nj=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=er(n);return c.jsx(GX,{...a,...r,ref:t})});nj.displayName=sQ;var oQ="DropdownMenuCheckboxItem",rj=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=er(n);return c.jsx(zX,{...a,...r,ref:t})});rj.displayName=oQ;var iQ="DropdownMenuRadioGroup",aj=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=er(n);return c.jsx($X,{...a,...r,ref:t})});aj.displayName=iQ;var lQ="DropdownMenuRadioItem",sj=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=er(n);return c.jsx(qX,{...a,...r,ref:t})});sj.displayName=lQ;var cQ="DropdownMenuItemIndicator",oj=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=er(n);return c.jsx(YX,{...a,...r,ref:t})});oj.displayName=cQ;var uQ="DropdownMenuSeparator",ij=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=er(n);return c.jsx(WX,{...a,...r,ref:t})});ij.displayName=uQ;var dQ="DropdownMenuArrow",fQ=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=er(n);return c.jsx(KX,{...a,...r,ref:t})});fQ.displayName=dQ;var hQ=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:a,defaultOpen:s}=e,i=er(t),[u,d]=hr({prop:r,defaultProp:s??!1,onChange:a,caller:"DropdownMenuSub"});return c.jsx(XX,{...i,open:u,onOpenChange:d,children:n})},mQ="DropdownMenuSubTrigger",lj=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=er(n);return c.jsx(QX,{...a,...r,ref:t})});lj.displayName=mQ;var pQ="DropdownMenuSubContent",cj=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=er(n);return c.jsx(ZX,{...a,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});cj.displayName=pQ;var gQ=KP,vQ=QP,uj=ZP,yQ=ej,xQ=tj,bQ=nj,EQ=rj,SQ=aj,TQ=sj,dj=oj,NQ=ij,wQ=hQ,CQ=lj,AQ=cj;function fj({...e}){return c.jsx(gQ,{"data-slot":"dropdown-menu",...e})}function _Q({...e}){return c.jsx(uj,{"data-slot":"dropdown-menu-portal",...e})}function hj({...e}){return c.jsx(vQ,{className:"select-none","data-slot":"dropdown-menu-trigger",...e})}function mj({className:e,inset:t,children:n,...r}){return c.jsxs(CQ,{"data-slot":"dropdown-menu-sub-trigger",className:X("flex cursor-default gap-2 select-none items-center justify-start text-start rounded-md px-2 py-1.5 text-sm outline-hidden","focus:bg-accent focus:text-foreground","data-[state=open]:bg-accent data-[state=open]:text-foreground","data-[here=true]:bg-accent data-[here=true]:text-foreground","[&>svg]:pointer-events-none [&_svg:not([role=img]):not([class*=text-])]:opacity-60 [&>svg]:size-4 [&>svg]:shrink-0",t&&"ps-8",e),...r,children:[n,c.jsx(Ec,{"data-slot":"dropdown-menu-sub-trigger-indicator",className:"ms-auto size-3.5! rtl:rotate-180"})]})}function pj({className:e,...t}){return c.jsx(AQ,{"data-slot":"dropdown-menu-sub-content",className:X("space-y-0.5 z-50 min-w-[8rem] overflow-hidden shadow-md shadow-black/5 rounded-md border border-border bg-popover text-popover-foreground p-2 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})}function gj({className:e,sideOffset:t=4,...n}){return c.jsx(uj,{children:c.jsx(yQ,{"data-slot":"dropdown-menu-content",sideOffset:t,className:X("space-y-0.5 z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-popover p-2 text-popover-foreground shadow-md shadow-black/5 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})})}function Wa({className:e,inset:t,variant:n,...r}){return c.jsx(bQ,{"data-slot":"dropdown-menu-item",className:X("text-foreground relative flex cursor-default select-none items-center justify-start text-start gap-2 rounded-md px-2 py-1.5 text-sm outline-hidden transition-colors data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([role=img]):not([class*=text-])]:opacity-60 [&_svg:not([class*=size-])]:size-4 [&_svg]:shrink-0","focus:bg-accent focus:text-foreground","data-[active=true]:bg-accent data-[active=true]:text-accent-foreground",t&&"ps-8",n==="destructive"&&"text-destructive hover:text-destructive focus:text-destructive hover:bg-destructive/5 focus:bg-destructive/5 data-[active=true]:bg-destructive/5",e),...r})}function RQ({className:e,children:t,checked:n,...r}){return c.jsxs(EQ,{"data-slot":"dropdown-menu-checkbox-item",className:X("relative flex cursor-default select-none items-center justify-start text-start rounded-md py-1.5 ps-8 pe-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",e),checked:n,...r,children:[c.jsx("span",{className:"absolute start-2 flex h-3.5 w-3.5 items-center text-muted-foreground justify-center",children:c.jsx(dj,{children:c.jsx(Mo,{className:"h-4 w-4 text-primary"})})}),t]})}function MQ({className:e,children:t,...n}){return c.jsxs(TQ,{"data-slot":"dropdown-menu-radio-item",className:X("relative flex cursor-default select-none items-center justify-start text-start rounded-md py-1.5 ps-6 pe-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",e),...n,children:[c.jsx("span",{className:"absolute start-1.5 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(dj,{children:c.jsx(Mx,{className:"h-1.5 w-1.5 fill-primary stroke-primary"})})}),t]})}function OQ({className:e,inset:t,...n}){return c.jsx(xQ,{"data-slot":"dropdown-menu-label",className:X("px-2 py-1.5 text-xs text-muted-foreground font-medium",t&&"ps-8",e),...n})}function DQ({...e}){return c.jsx(SQ,{"data-slot":"dropdown-menu-radio-group",...e})}function ec({className:e,...t}){return c.jsx(NQ,{"data-slot":"dropdown-menu-separator",className:X("-mx-2 my-1.5 h-px bg-muted",e),...t})}function vj({...e}){return c.jsx(wQ,{"data-slot":"dropdown-menu-sub",...e})}function IQ({trigger:e}){const{theme:t,setTheme:n}=AE(),r=WE({rollNumber:"#ctl00_lblLogIn",fullName:"#ctl00_lblLogIn",campusName:"#ctl00_lblCampusName"}),{currenLanguage:a,changeLanguage:s}=YW(),i=ns("/media/avatars/blank.png"),u=d=>{s(d)};return c.jsxs(fj,{children:[c.jsx(hj,{asChild:!0,children:e}),c.jsxs(gj,{className:"w-64",side:"bottom",align:"end",children:[c.jsx("div",{className:"flex items-center justify-between p-3",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("img",{className:"size-9 rounded-full border-2 border-success",src:i,alt:"User avatar"}),c.jsxs("div",{className:"flex flex-col",children:[c.jsx(Pt,{to:"/account/home/get-started",className:"text-sm text-mono hover:text-primary font-semibold",children:r.fullName}),c.jsx("span",{className:"text-xs text-muted-foreground hover:text-primary",children:r.rollNumber}),r.campusName&&c.jsx("span",{className:"text-[10px] text-accent/80 font-mono font-semibold uppercase mt-0.5 select-none",children:r.campusName.replace("CAMPUS: ","")})]})]})}),c.jsx(ec,{}),c.jsx(Wa,{asChild:!0,children:c.jsxs(Pt,{to:"/User/Profile.aspx",className:"flex items-center gap-2",children:[c.jsx(dV,{}),"Student Profile"]})}),c.jsx(Wa,{asChild:!0,children:c.jsxs(Pt,{to:"/User/verProfile.aspx",className:"flex items-center gap-2",children:[c.jsx(O2,{}),"Update Profile"]})}),c.jsx(Wa,{asChild:!0,children:c.jsxs(Pt,{to:"https://chromewebstore.google.com/",target:"_blank",className:"flex items-center gap-2",children:[c.jsx(e9,{}),"Reviews NeoFAP"]})}),c.jsxs(vj,{children:[c.jsxs(mj,{className:"flex items-center gap-2 [&_[data-slot=dropdown-menu-sub-trigger-indicator]]:hidden hover:[&_[data-slot=badge]]:border-input data-[state=open]:[&_[data-slot=badge]]:border-input",children:[c.jsx(D2,{}),c.jsxs("span",{className:"flex items-center justify-between gap-2 grow relative",children:["Language",c.jsxs(kt,{appearance:"stroke",className:"absolute end-0 top-1/2 -translate-y-1/2",children:[a.label,c.jsx("img",{src:a.flag,className:"w-3.5 h-3.5 rounded-full",alt:a.label})]})]})]}),c.jsx(pj,{className:"w-48",children:c.jsx(DQ,{value:a.code,onValueChange:d=>{const f=rp.find(m=>m.code===d);f&&u(f)},children:rp.map(d=>c.jsxs(MQ,{value:d.code,className:"flex items-center gap-2",children:[c.jsx("img",{src:d.flag,className:"w-4 h-4 rounded-full",alt:d.label}),c.jsx("span",{children:d.label})]},d.code))})})]}),c.jsx(ec,{}),c.jsxs(Wa,{className:"flex items-center gap-2 cursor-default pointer-events-none select-none text-muted-foreground",children:[c.jsx(RV,{className:"size-4 text-accent"}),c.jsxs("div",{className:"flex items-center gap-2 justify-between grow font-sans text-xs uppercase font-bold",children:["Dark Mode Only",c.jsx("span",{className:"text-[10px] text-accent font-mono font-bold lowercase",children:"active"})]})]}),c.jsx("div",{className:"p-2 mt-1",children:c.jsx(ke,{variant:"outline",size:"sm",className:"w-full",asChild:!0,children:c.jsx("a",{href:"/Student.aspx?logout=true",children:"Logout"})})})]})]})}const PQ=()=>{var n,r;const t=((r=(n=WE({rollNumber:"#ctl00_lblLogIn",fullName:"#ctl00_lblLogIn",campusName:"#ctl00_lblCampusName"}).fullName)==null?void 0:n.charAt(0))==null?void 0:r.toUpperCase())??"?";return c.jsx("div",{className:"flex items-center gap-3 shrink-0",children:c.jsx(IQ,{trigger:c.jsx("button",{type:"button",className:`size-9 shrink-0 inline-flex items-center justify-center font-extrabold text-sm uppercase\r
              rounded-full border border-accent/25 bg-accent/15 text-accent\r
              shadow-[0_0_12px_rgba(37,244,238,0.15)]\r
              hover:bg-accent hover:text-accent-foreground hover:shadow-[0_0_16px_rgba(37,244,238,0.45)]\r
              transition-all duration-300 cursor-pointer select-none`,"aria-label":"Open user menu",children:t})})})},jQ=()=>{const e=XG(),[t,n]=S.useState(!1);return S.useEffect(()=>{n(e>10)},[e]),c.jsxs("header",{className:X("fixed top-4 left-1/2 -translate-x-1/2 w-[calc(100%-2rem)] max-w-7xl h-16 rounded-2xl z-40 transition-all duration-500 ease-in-out","px-6 flex items-center justify-between",t?"bg-[#0b0f19]/75 border border-accent/25 backdrop-blur-lg shadow-[0_8px_32px_rgba(0,242,254,0.15)]":"bg-white/5 border border-white/10 backdrop-blur-md shadow-[0_8px_32px_rgba(0,0,0,0.3)]"),children:[c.jsx(Rq,{}),c.jsx(PQ,{})]})};function LQ({children:e}){return c.jsx(ht,{children:c.jsx("div",{className:"flex items-center justify-between flex-wrap gap-2 la:gap-5 my-5",children:e})})}function kQ({children:e}){return c.jsx("div",{className:"flex items-center flex-wrap gap-2.5",children:e})}function UQ(){const{pathname:e}=Rn(),{getBreadcrumb:t,isActive:n}=Jd(e),r=t(YE);return r.length===0?null:c.jsxs("div",{className:"flex items-center gap-1 text-xs font-mono text-muted-foreground",children:[c.jsx("span",{className:"text-accent/60",children:"~/"}),r.map((a,s)=>{const i=s===r.length-1,u=a.path?n(a.path):!1;return c.jsxs(S.Fragment,{children:[a.path?c.jsx(Pt,{to:a.path,className:X("flex items-center gap-1 uppercase tracking-wider",u?"text-accent":"text-muted-foreground hover:text-accent"),children:Eb(a.title)}):c.jsx("span",{className:X("uppercase tracking-wider",i?"text-accent":"text-muted-foreground"),children:Eb(a.title)}),!i&&c.jsx("span",{className:"text-border",children:"/"})]},s)})]})}function Eb(e,t){const n=Ge();return typeof e=="string"&&e?n.formatMessage({id:e}):typeof(t==null?void 0:t.title)=="string"&&t.title?n.formatMessage({id:t.title}):e}function FQ({title:e=""}){const{pathname:t}=Rn(),{getCurrentItem:n}=Jd(t),r=n(YE);return c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-1.5 h-6 rounded-full bg-gradient-to-b from-accent to-primary shrink-0 shadow-[0_0_8px_var(--accent)]"}),c.jsx("h1",{className:"font-extrabold text-2xl text-white tracking-tight",children:Eb(e,r)})]}),c.jsx(UQ,{})]})}function BQ(){return c.jsx("div",{className:"fixed bottom-4 right-4 z-50 pointer-events-none select-none font-mono text-[10px]",children:c.jsx("span",{className:"pointer-events-auto text-white/25 opacity-30 hover:opacity-100 hover:text-white transition-all duration-500 ease-in-out cursor-default",style:{transition:"all 0.5s ease-in-out"},onMouseEnter:e=>{e.currentTarget.style.textShadow="1px 0 #FE2C55, -1px 0 #25F4EE"},onMouseLeave:e=>{e.currentTarget.style.textShadow="none"},children:"UI.Override // QuiNC"})})}const A_=()=>{const{setOption:e}=VO(),{pathname:t}=Rn(),{getCurrentItem:n}=Jd(t),r=n(YE);PG(`
    [--header-height-default:95px]
    data-[sticky-header=on]:[--header-height:60px]
    [--header-height:var(--header-height-default)]	
    [--header-height-mobile:70px]	
  `),S.useEffect(()=>{e("layout","demo7")},[e]);const{EOSClientDownloadLink:a}=YG(),{shouldShowFallback:s}=fn(),i=Ge();return c.jsxs(c.Fragment,{children:[c.jsx(Q9,{children:c.jsx("title",{children:i.formatMessage({id:(r==null?void 0:r.title)||"COMMON.TITLE",defaultMessage:"FAP - Academic Portal"})})}),c.jsx("div",{className:"fixed -top-[20%] -left-[10%] w-[50%] h-[50%] rounded-full bg-orb-1 opacity-40 dark:opacity-20 blur-[120px] pointer-events-none z-0 transition-opacity duration-500"}),c.jsx("div",{className:"fixed -bottom-[20%] -right-[10%] w-[50%] h-[50%] rounded-full bg-orb-2 opacity-40 dark:opacity-20 blur-[120px] pointer-events-none z-0 transition-opacity duration-500"}),c.jsxs("div",{className:"flex grow flex-col pt-24 relative z-10",children:[c.jsx(jQ,{}),c.jsxs("div",{className:"grow relative z-10",role:"main",children:[c.jsxs(LQ,{children:[c.jsx(FQ,{}),t.includes("/Student.aspx")&&c.jsx(kQ,{children:c.jsx(ke,{className:"neo-btn",asChild:!0,children:c.jsxs("a",{href:a??"",target:"_blank",children:[c.jsx(BE,{}),"Download EOSClient"]})})})]}),c.jsx(GO,{children:s?c.jsx(c.Fragment,{children:c.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:c.jsxs("div",{className:"flex flex-col items-center justify-center",children:[c.jsx(Sr,{className:"h-10 w-10 animate-spin text-primary"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."})]})})}):c.jsx(PE,{})})]}),c.jsx(KG,{})]}),c.jsx(BQ,{})]})},yj=S.createContext({variant:"default"}),dg=()=>{const e=S.useContext(yj);if(!e)throw new Error("useCardContext must be used within a Card component");return e},HQ=Mt("flex flex-col items-stretch text-card-foreground rounded-3xl liquid-glass-panel neo-card-hover transition-colors duration-500 ease-in-out",{variants:{variant:{default:"",accent:"border-accent/20 dark:border-accent/20"}},defaultVariants:{variant:"default"}}),VQ=Mt("flex items-center justify-between flex-wrap px-5 min-h-14 gap-2.5",{variants:{variant:{default:"border-b border-border/50",accent:""}},defaultVariants:{variant:"default"}}),GQ=Mt("grow p-5",{variants:{variant:{default:"",accent:"bg-card/40 rounded-3xl"}},defaultVariants:{variant:"default"}}),zQ=Mt("grid grow",{variants:{variant:{default:"",accent:"bg-card/40 rounded-3xl"}},defaultVariants:{variant:"default"}}),$Q=Mt("flex items-center px-5 min-h-14",{variants:{variant:{default:"border-t border-border/50",accent:"bg-card/40 rounded-3xl mt-[2px]"}},defaultVariants:{variant:"default"}});function ct({className:e,variant:t="default",...n}){return c.jsx(yj.Provider,{value:{variant:t||"default"},children:c.jsx("div",{"data-slot":"card",className:X(HQ({variant:t}),e),...n})})}function Yt({className:e,...t}){const{variant:n}=dg();return c.jsx("div",{"data-slot":"card-header",className:X(VQ({variant:n}),e),...t})}function Nt({className:e,...t}){const{variant:n}=dg();return c.jsx("div",{"data-slot":"card-content",className:X(GQ({variant:n}),e),...t})}function mf({className:e,...t}){const{variant:n}=dg();return c.jsx("div",{"data-slot":"card-table",className:X(zQ({variant:n}),e),...t})}function $c({className:e,...t}){const{variant:n}=dg();return c.jsx("div",{"data-slot":"card-footer",className:X($Q({variant:n}),e),...t})}function xj({className:e,...t}){return c.jsx("div",{"data-slot":"card-heading",className:X("space-y-1",e),...t})}function fg({className:e,...t}){return c.jsx("div",{"data-slot":"card-toolbar",className:X("flex items-center gap-2.5",e),...t})}function Zn({className:e,...t}){return c.jsx("h3",{"data-slot":"card-title",className:X("text-base font-semibold leading-none tracking-tight",e),...t})}function mp({className:e,...t}){return c.jsx("div",{"data-slot":"card-description",className:X("text-sm text-muted-foreground",e),...t})}const qQ=()=>{const{title:e,content:t}=Mn({title:a=>{var i;const s=a==null?void 0:a.querySelectorAll("table")[1];return s&&((i=s.querySelector("table span"))==null?void 0:i.innerHTML)||""},content:a=>{const s=a==null?void 0:a.querySelectorAll("table")[1];if(s){const i=s.cloneNode(!0),u=i.querySelector("table");u&&u.remove();const d=i.querySelector("div");return d?d.innerHTML:i.innerHTML}return""}}),n=S.useMemo(()=>e?e.replace(/<\/?[^>]+(>|$)/g,"").trim():"",[e]),r=S.useMemo(()=>{if(!t)return"";let a=t.replace(/src="\/(?!\/)/g,'src="https://fap.fpt.edu.vn/');const s=document.createElement("div");return s.innerHTML=a,s.querySelectorAll("table").forEach(m=>{m.classList.add("w-full","my-4","border-collapse"),m.style.borderCollapse="collapse",m.querySelectorAll("tr").forEach((v,y)=>{v.classList.add(y%2===0?"bg-card":"bg-muted/20"),v.querySelectorAll("td, th").forEach(b=>{b.classList.add("p-2","border","border-border","text-sm")})})}),s.querySelectorAll("a").forEach(m=>{m.classList.add("text-primary","hover:underline"),m.setAttribute("rel","noopener noreferrer")}),s.querySelectorAll("img").forEach(m=>{m.classList.add("max-w-full","h-auto","my-4","rounded-md")}),s.querySelectorAll("ul, ol").forEach(m=>{m.classList.add("my-4","pl-5"),m.querySelectorAll("li").forEach(v=>{v.classList.add("mb-2")})}),s.innerHTML},[t]);return{title:n,content:r}},YQ=()=>{const e=Ge(),{title:t,content:n}=qQ(),{loading:r}=fn();return c.jsxs(ht,{children:[c.jsxs("div",{className:"mb-5 flex items-center gap-2 text-primary",children:[c.jsx(Dx,{className:"h-5 w-5"}),c.jsx("h1",{className:"text-xl font-semibold",children:e.formatMessage({id:"ANNOUNCE.TITLE"})})]}),c.jsxs(ct,{className:"relative",children:[r&&c.jsx("div",{className:"absolute inset-0 bg-background/70 flex items-center justify-center z-10 rounded-xl",children:c.jsx(Sr,{className:"h-6 w-6 text-primary animate-spin"})}),c.jsx(Nt,{className:"p-6 sm:p-8",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h2",{className:"text-xl sm:text-2xl font-semibold text-foreground mb-6",children:t}),c.jsx("div",{className:"prose prose-sm sm:prose max-w-none text-muted-foreground",dangerouslySetInnerHTML:{__html:n||""}})]})})]})]})};function Na({className:e,...t}){return c.jsx("div",{"data-slot":"table-wrapper",className:"relative w-full overflow-auto",children:c.jsx("table",{"data-slot":"table",className:X("w-full caption-bottom text-foreground text-sm",e),...t})})}function wa({className:e,...t}){return c.jsx("thead",{"data-slot":"table-header",className:X("[&_tr]:border-b",e),...t})}function Ca({className:e,...t}){return c.jsx("tbody",{"data-slot":"table-body",className:X("[&_tr:last-child]:border-0",e),...t})}function en({className:e,...t}){return c.jsx("tr",{"data-slot":"table-row",className:X("border-b transition-colors [&:has(td):hover]:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}function Fe({className:e,...t}){return c.jsx("th",{"data-slot":"table-head",className:X("h-12 px-4 text-left rtl:text-right align-middle font-normal text-muted-foreground [&:has([role=checkbox])]:pe-0",e),...t})}function Qe({className:e,...t}){return c.jsx("td",{"data-slot":"table-cell",className:X("p-4 align-middle [&:has([role=checkbox])]:pe-0",e),...t})}const WQ=()=>{const e=Ge(),t=[{deadline:"DASHBOARD.APPLICATION_DEADLINE.DEADLINE_4_WEEKS_BEFORE_NEW_SEMESTER",procedures:["DASHBOARD.APPLICATION_DEADLINE.PROC_CHANGING_MAJOR","DASHBOARD.APPLICATION_DEADLINE.PROC_CHANGING_CAMPUS"]},{deadline:"DASHBOARD.APPLICATION_DEADLINE.DEADLINE_10_DAYS_BEFORE_NEW_SEMESTER",procedures:["DASHBOARD.APPLICATION_DEADLINE.PROC_REJOIN"]},{deadline:"DASHBOARD.APPLICATION_DEADLINE.DEADLINE_1_WEEK_BEFORE_NEW_SEMESTER",procedures:["DASHBOARD.APPLICATION_DEADLINE.PROC_SUSPEND_ONE_SEMESTER","DASHBOARD.APPLICATION_DEADLINE.PROC_SUSPEND_ONE_SEMESTER_REPEAT","DASHBOARD.APPLICATION_DEADLINE.PROC_SUSPEND_SUBJECT","DASHBOARD.APPLICATION_DEADLINE.PROC_REGISTER_REPEAT_COURSE","DASHBOARD.APPLICATION_DEADLINE.PROC_REGISTER_EXTRA_COURSES","DASHBOARD.APPLICATION_DEADLINE.PROC_REGISTER_IMPROVE_MARK","DASHBOARD.APPLICATION_DEADLINE.PROC_MOVE_OUT_CLASS","DASHBOARD.APPLICATION_DEADLINE.PROC_REQUEST_DROP_OUT"]},{deadline:"DASHBOARD.APPLICATION_DEADLINE.DEADLINE_12H_BEFORE_FINAL_EXAM_RESIT",procedures:["DASHBOARD.APPLICATION_DEADLINE.PROC_RETAKE_IMPROVE_MARK"]},{deadline:"DASHBOARD.APPLICATION_DEADLINE.DEADLINE_3_DAYS_AFTER_RESULT_PUBLIC",procedures:["DASHBOARD.APPLICATION_DEADLINE.PROC_RE_EXAMINATION"]},{deadline:"DASHBOARD.APPLICATION_DEADLINE.DEADLINE_BEFORE_SEMESTER_START",procedures:["DASHBOARD.APPLICATION_DEADLINE.PROC_FREE_OF_ATTENDANCE"]},{deadline:"DASHBOARD.APPLICATION_DEADLINE.DEADLINE_5_WORKING_DAYS_BEFORE_NEW_SEMESTER",procedures:["DASHBOARD.APPLICATION_DEADLINE.PROC_PAY_SPECIALIZED_TUITION"]},{deadline:"DASHBOARD.APPLICATION_DEADLINE.DEADLINE_3_WORKING_DAYS_BEFORE_NEW_COURSE",procedures:["DASHBOARD.APPLICATION_DEADLINE.PROC_PAY_PREPARATION_ENGLISH_TUITION"]},{deadline:"DASHBOARD.APPLICATION_DEADLINE.DEADLINE_12H_FRIDAY_WEEK9",procedures:["DASHBOARD.APPLICATION_DEADLINE.PROC_REGISTER_FINAL_EXAM_ONLINE"]}];return c.jsxs("div",{className:"neo-card neo-card-hover p-6 rounded-3xl text-card-foreground relative z-10",children:[c.jsxs("h3",{className:"font-bold text-sm tracking-wider text-card-foreground uppercase mb-4 flex items-center gap-2 pb-2 border-b border-border/50 w-full",children:[c.jsx(_i,{className:"size-4.5 text-accent shrink-0"}),e.formatMessage({id:"DASHBOARD.APPLICATION_DEADLINE.TITLE",defaultMessage:"Application Deadlines"})]}),c.jsx("div",{className:"overflow-hidden text-sm border border-border rounded-2xl bg-foreground/[0.03]",children:c.jsxs(Na,{className:"w-full text-sm",children:[c.jsx(wa,{children:c.jsxs(en,{className:"bg-foreground/[0.05] border-b border-border",children:[c.jsx(Fe,{className:"text-left text-card-foreground font-bold py-3.5 px-4 border-r border-border w-1/2",children:e.formatMessage({id:"DASHBOARD.APPLICATION_DEADLINE.PROCEDURE_TYPE"})}),c.jsx(Fe,{className:"text-left text-card-foreground font-bold py-3.5 px-4",children:e.formatMessage({id:"DASHBOARD.APPLICATION_DEADLINE.DEADLINE"})})]})}),c.jsx(Ca,{children:t.map((n,r)=>n.procedures.map((a,s)=>c.jsxs(en,{className:"border-b border-border/50 last:border-b-0 hover:bg-foreground/[0.04] transition-colors duration-150 text-card-foreground",children:[c.jsx(Qe,{className:"border-r border-border/50 font-medium py-3.5 px-4",children:e.formatMessage({id:a})}),s===0?c.jsx(Qe,{className:"text-accent bg-accent/10 dark:bg-accent/5 py-3.5 px-4 font-semibold text-xs align-middle border-b border-border/50 last:border-b-0",rowSpan:n.procedures.length,children:e.formatMessage({id:n.deadline})}):null]},`${r}-${s}`)))})]})})]})},KQ=()=>{const e={col1:[{title:"Registration/Application (Thủ tục/đơn từ)",links:[{title:"Suspend one semester to take repeated course",href:"FrontOffice/AddApplication.aspx?code=R1",cancelHref:"FrontOffice/RemoveApplication.aspx?code=R1",description:"Xin tạm hoãn tiến độ một học kỳ để học lại | Hủy bỏ việc xin tạm hoãn"},{title:"Suspend one semester",href:"FrontOffice/AddApplication.aspx?code=R2",cancelHref:"FrontOffice/RemoveApplication.aspx?code=R2",description:"Xin tạm nghỉ một học kỳ | Hủy bỏ việc xin tạm nghỉ"},{title:"Move out class",href:"FrontOffice/Courses.aspx",description:"Xin chuyển lớp"},{title:"Đăng ký học môn học tại nước ngoài",href:"FrontOffice/RegisterCourse.aspx?code=R14"},{title:"Register extra courses",href:"FrontOffice/RegisterCourse.aspx?code=R3",description:"Đăng ký môn học đi chậm kỳ"},{title:"Register to improve mark",href:"FrontOffice/RegisterCourse.aspx?code=R4",description:"Đăng ký học cải thiện điểm"},{title:"Register to repeat a course",href:"FrontOffice/RegisterCourse.aspx?code=R5",description:"Đăng ký học lại"},{title:"Cancel registration",href:"FrontOffice/RegisteredCourses.aspx",description:"Hủy đăng ký học"},{title:"Register Free Elective Courses",href:"FrontOffice/RegisterElective.aspx",description:"Đăng ký môn tự chọn"},{title:"Send Application",href:"App/SendAcad.aspx",description:"Gửi đơn"},{title:"View Application",href:"App/AcadAppView.aspx",description:"Xem đơn"},{title:"Xin xác nhận sinh viên",href:"App/AddApp.aspx"},{title:"Choose paid items",href:"FrontOffice/ShoppingCart.aspx",description:"Lựa chọn các khoản nộp"},{title:"Thanh toán",href:"FrontOffice/CheckOut.aspx"},{title:"Yêu cầu đổi chéo lớp với sinh viên",href:"App/CourseChange.aspx"},{title:"Sinh viên điểm danh bằng mã được cấp",href:"Schedule/AttendanceByRoll.aspx"},{title:"Wishlist Course",href:"FrontOffice/WishList.aspx",description:"Danh các môn học chờ lớp"},{title:"Register wishlist",href:"FrontOffice/RegisterWishlish.aspx",description:"Đăng ký"},{title:"Đề nghị hỗ trợ kinh phí khởi nghiệp",href:"SBA/Add.aspx"},{title:"View",href:"SBA/StudentSBA.aspx"},{title:"Đăng ký học vượt kỳ",href:"FrontOffice/RegisterCourseFast.aspx"},{title:"Đăng ký học phụ đạo",href:"FrontOffice/RegisterMore.aspx"},{title:"Đăng ký bảo hiểm y tế",href:"BHYT/Register.aspx"}]},{title:"Feedback (Ý kiến)",links:[{title:"Feedback about teaching",href:"Feedback/StudentFeedBack.aspx",description:"Ý kiến về việc giảng dạy"}]},{title:"Others (Khác)",links:[{title:"Student Profile",href:"User/Profile.aspx"},{title:"Update Profile",href:"User/verProfile.aspx"},{title:"View semester",href:"Course/Terms.aspx"},{title:"View room",href:"Campus/Rooms.aspx",description:"Xem thông tin về học kỳ, phòng"},{title:"Các loại chứng chỉ",href:"Report/Awa.aspx"},{title:"Report điểm phong trào",href:"Report/PrintReportFinalS.aspx"},{title:"How to access Wiley eBook on VitalSource platform",href:"https://fap.fpt.edu.vn/temp/Regulations/How-to-access-Wiley-eBook-on-Vitalsource-platform_13_Jan_2025.pdf",target:"_blank"}]}],col2:[{title:"Information Access (Tra cứu thông tin)",links:[{title:"University timetable",href:"Course/Courses.aspx",description:"Lịch học"},{title:"Tuition fee per course",href:"FrontOffice/SubjectFees.aspx",description:"Biểu học phí"},{title:"Weekly timetable",href:"Report/ScheduleOfWeek.aspx",description:"Thời khóa biểu từng tuần"},{title:"View exam schedule",href:"Exam/ScheduleExams.aspx",description:"Xem lịch thi"},{title:"View Syllabuses",href:"http://flm.fpt.edu.vn",target:"_blank",description:"Xem đề cương môn học"},{title:"EduNext student guideline",href:"https://fap.fpt.edu.vn/temp/Regulations/Huong_dan_KTXH_tren_EduNext_Sp23_Sinh_Vien.pdf",isNew:!0,target:"_blank"},{title:"Help/Hỗ trợ",href:"Report/Help.aspx",isNew:!0},{title:"Tài liệu hướng dẫn: Định hướng cho sinh viên",href:"https://fap.fpt.edu.vn/temp/Regulations/Slide_OR_student.rar",isNew:!0,target:"_blank"},{title:"Student book room",href:"Schedule/ActivityStudent.aspx",isNew:!0},{title:"OJT",href:"App/ViewOjtCas.aspx",target:"_blank"},{title:"Xét khóa luận tốt nghiệp",href:"App/ViewXetTN.aspx",target:"_blank"},{title:"Nâng cấp phần mềm SAFE EXAM BROWSER (SEB)",href:"https://drive.google.com/drive/u/2/folders/1RmjeKAvef6BXg_qlAl6JnZx2ZkY3qj_3",isNew:!0,target:"_blank"}]},{title:"Reports (Báo cáo)",links:[{title:"Attendance report",href:"Report/ViewAttendstudent.aspx",description:"Báo cáo điểm danh"},{title:"Mark Report",href:"Grade/StudentGrade.aspx",description:"Báo cáo điểm"},{title:"Academic Transcript",href:"Grade/StudentTranscript.aspx",description:"Bảng điểm"},{title:"Curriculum",href:"FrontOffice/StudentCurriculum.aspx",description:"Khung chương trình"},{title:"Transaction history",href:"Finance/TransReport.aspx",description:"Lịch sử giao dịch"}]},{title:"Regulations (Các quy định)",links:[{title:"Regulations...",href:"User/Regulations.aspx",target:"_blank"},{title:"Dormitory regulations (Nội quy KTX Hà Nội)",href:"https://fap.fpt.edu.vn/temp/Regulations/QD 272_new.pdf",target:"_blank"},{title:"Dormitory regulations (Nội quy KTX Cần Thơ)",href:"https://fap.fpt.edu.vn/temp/Regulations/KTXCT.pdf",target:"_blank"}]},{title:"Thông tin KTX",links:[{title:"Thông tin KTX => Hòa Lạc - On Campus Dormitory",href:"https://ocd.fpt.edu.vn/"}]},{title:"Courses on FPTU-Coursera",links:[{title:"Announcement",href:"https://fap.fpt.edu.vn/temp/Regulations/FPTU-Coursera.pdf",target:"_blank"},{title:"Ask mentor",href:"SRS/AddQA.aspx",target:"_blank"},{title:"View answer",href:"SRS/ViewQAS.aspx",target:"_blank"},{title:"Submit certificates",href:"https://insideuni.fpt.edu.vn/13",target:"_blank"},{title:"Certificate submission guideline",href:"https://fap.fpt.edu.vn/temp/Regulations/Coursera_certificates_submission_guidelines.pdf",target:"_blank"}]}]},t=a=>c.jsxs("div",{className:"flex flex-col gap-0.5 font-medium",children:[c.jsxs("div",{className:"flex items-center flex-wrap gap-1",children:[c.jsx(Pt,{to:a.href.startsWith("http")?a.href:`/${a.href}`,target:a.target,className:"text-foreground/90 hover:text-accent hover:bg-foreground/5 px-2 py-1 rounded-lg transition-all duration-200 inline-block text-[13px]",children:a.title}),a.cancelHref&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-foreground/20 mx-1",children:"|"}),c.jsx(Pt,{to:a.cancelHref.startsWith("http")?a.cancelHref:`/${a.cancelHref}`,className:"text-destructive hover:bg-destructive/10 px-2 py-1 rounded-lg transition-all duration-200 text-[13px]",children:"Cancel"})]}),a.isNew&&c.jsx("span",{className:"ml-1.5 px-2 py-0.5 bg-destructive text-white font-mono text-[9px] font-bold uppercase rounded-full animate-pulse",children:"NEW"})]}),a.description&&c.jsx("span",{className:"text-muted-foreground text-[11px] ml-2 block",children:a.description})]}),n=a=>{const s=a.toLowerCase();return s.includes("registration")||s.includes("application")||s.includes("thủ tục")?c.jsx(FE,{className:"size-4.5 text-accent shrink-0"}):s.includes("feedback")||s.includes("ý kiến")?c.jsx(Ix,{className:"size-4.5 text-accent shrink-0"}):s.includes("information access")||s.includes("tra cứu")?c.jsx(Hp,{className:"size-4.5 text-accent shrink-0"}):s.includes("reports")||s.includes("báo cáo")?c.jsx(y8,{className:"size-4.5 text-accent shrink-0"}):s.includes("regulations")||s.includes("quy định")?c.jsx(Ps,{className:"size-4.5 text-accent shrink-0"}):s.includes("ktx")?c.jsx(Km,{className:"size-4.5 text-accent shrink-0"}):s.includes("coursera")?c.jsx(rs,{className:"size-4.5 text-accent shrink-0"}):c.jsx(Z8,{className:"size-4.5 text-accent shrink-0"})},r=a=>c.jsxs("div",{className:"neo-card neo-card-hover p-6 rounded-3xl text-card-foreground",children:[c.jsxs("h3",{className:"font-bold text-sm tracking-wider uppercase mb-4 pb-2 border-b border-border/55 text-card-foreground flex items-center gap-2",children:[n(a.title),a.title]}),c.jsx("ul",{className:"space-y-3.5 pl-1",children:a.links.map((s,i)=>c.jsx("li",{className:"text-sm font-semibold",children:t(s)},i))})]},a.title);return c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 relative z-10",children:[c.jsx("div",{className:"space-y-8 flex flex-col",children:e.col1.map(a=>r(a))}),c.jsx("div",{className:"space-y-8 flex flex-col",children:e.col2.map(a=>r(a))})]})},XQ=Mt("flex items-stretch w-full gap-2 group-[.toaster]:w-(--width)",{variants:{variant:{secondary:"",primary:"",destructive:"",success:"",info:"",mono:"",warning:""},icon:{primary:"",destructive:"",success:"",info:"",warning:""},appearance:{solid:"",outline:"",light:"",stroke:"text-foreground"},size:{lg:"rounded-lg p-4 gap-3 text-base [&>[data-slot=alert-icon]>svg]:size-6 *:data-slot=alert-icon:mt-0 *:data-slot=alert-close:mt-0.5 *:data-slot=alert-close:-me-0.5",md:"rounded-lg p-3.5 gap-2.5 text-sm [&>[data-slot=alert-icon]>svg]:size-5 *:data-slot=alert-icon:mt-0 *:data-slot=alert-close:-me-0.5",sm:"rounded-md px-3 py-2.5 gap-2 text-xs [&>[data-slot=alert-icon]>svg]:size-4 *:data-alert-icon:mt-0.5 *:data-slot=alert-close:-me-0.5 [&>[data-slot=alert-close]>svg]:size-3.5!"}},compoundVariants:[{variant:"secondary",appearance:"solid",className:"bg-muted text-foreground *:data-alert-close:text-foreground"},{variant:"primary",appearance:"solid",className:"bg-primary text-primary-foreground *:data-alert-close:text-primary-foreground"},{variant:"destructive",appearance:"solid",className:"bg-destructive text-destructive-foreground *:data-alert-close:text-destructive-foreground"},{variant:"success",appearance:"solid",className:"bg-green-500 text-white *:data-alert-close:text-white"},{variant:"info",appearance:"solid",className:"bg-violet-600 text-white *:data-alert-close:text-white"},{variant:"warning",appearance:"solid",className:"bg-yellow-500 text-white *:data-alert-close:text-white"},{variant:"mono",appearance:"solid",className:"bg-mono text-mono-foreground *:data-alert-close:text-mono-foreground"},{variant:"secondary",appearance:"outline",className:"border border-border bg-background text-foreground *:data-alert-close:text-foreground"},{variant:"primary",appearance:"outline",className:"border border-border bg-background text-primary *:data-alert-close:text-foreground"},{variant:"destructive",appearance:"outline",className:"border border-border bg-background text-destructive *:data-alert-close:text-foreground"},{variant:"success",appearance:"outline",className:"border border-border bg-background text-green-500 *:data-alert-close:text-foreground"},{variant:"info",appearance:"outline",className:"border border-border bg-background text-violet-600 *:data-alert-close:text-foreground"},{variant:"warning",appearance:"outline",className:"border border-border bg-background text-yellow-500 *:data-alert-close:text-foreground"},{variant:"mono",appearance:"outline",className:"border border-border bg-background text-mono *:data-alert-close:text-foreground"},{variant:"secondary",appearance:"stroke",className:"border border-border bg-background [&>div:first-of-type>svg]:text-foreground"},{variant:"primary",appearance:"stroke",className:"border border-border bg-background [&>div:first-of-type>svg]:text-primary"},{variant:"destructive",appearance:"stroke",className:"border border-border bg-background [&>div:first-of-type>svg]:text-destructive"},{variant:"success",appearance:"stroke",className:"border border-border bg-background [&>div:first-of-type>svg]:text-green-500"},{variant:"info",appearance:"stroke",className:"border border-border bg-background [&>div:first-of-type>svg]:text-violet-600"},{variant:"warning",appearance:"stroke",className:"border border-border bg-background [&>div:first-of-type>svg]:text-yellow-500"},{variant:"mono",appearance:"stroke",className:"border border-border bg-background [&>div:first-of-type>svg]:text-mono"},{variant:"secondary",appearance:"light",className:"bg-muted border border-border text-foreground"},{variant:"primary",appearance:"light",className:"bg-primary/5 border border-primary/10 text-foreground [&>div:first-of-type>svg]:text-primary"},{variant:"destructive",appearance:"light",className:"bg-destructive/5 border border-destructive/10 text-foreground [&>div:first-of-type>svg]:text-destructive"},{variant:"success",appearance:"light",className:"bg-green-50 dark:bg-green-950/30 border border-green-200 dark:border-green-950/50 text-foreground [&>div:first-of-type>svg]:text-green-500"},{variant:"info",appearance:"light",className:"bg-violet-50 dark:bg-violet-950/30 border border-violet-200 dark:border-violet-950/50 text-foreground [&>div:first-of-type>svg]:text-violet-600"},{variant:"warning",appearance:"light",className:"bg-yellow-50 dark:bg-yellow-950/30 border border-yellow-200 dark:border-yellow-950/50 text-foreground [&>div:first-of-type>svg]:text-yellow-500"},{variant:"mono",icon:"primary",className:"[&>div:first-of-type>svg]:text-primary"},{variant:"mono",icon:"warning",className:"[&>div:first-of-type>svg]:text-yellow-500"},{variant:"mono",icon:"success",className:"[&>div:first-of-type>svg]:text-green-500"},{variant:"mono",icon:"destructive",className:"[&>div:first-of-type>svg]:text-destructive"},{variant:"mono",icon:"info",className:"[&>div:first-of-type>svg]:text-violet-600"}],defaultVariants:{variant:"secondary",appearance:"solid",size:"md"}});function al({className:e,variant:t,size:n,icon:r,appearance:a,close:s=!1,onClose:i,children:u,...d}){return c.jsxs("div",{"data-slot":"alert",role:"alert",className:X(XQ({variant:t,size:n,icon:r,appearance:a}),e),...d,children:[u,s&&c.jsx(ke,{size:"sm",variant:"inverse",mode:"icon",onClick:i,"aria-label":"Dismiss","data-alert-close":"true",className:X("group shrink-0 size-4"),children:c.jsx(Bc,{className:"opacity-60! group-hover:opacity-100! size-4!"})})]})}function pf({className:e,...t}){return c.jsx("div",{"data-slot":"alert-title",className:X("grow tracking-tight",e),...t})}function Z1({children:e,className:t,...n}){return c.jsx("div",{"data-slot":"alert-icon",className:X("shrink-0",t),...n,children:e})}function hg({className:e,...t}){return c.jsx("div",{"data-slot":"alert-description",className:X("text-sm [&_p]:leading-relaxed [&_p]:mb-2",e),...t})}const QQ=({tuitionContent:e,accountBalance:t})=>e?c.jsx(al,{variant:"destructive",appearance:"light",className:"mb-5 border-destructive/20 bg-destructive/5 p-5 rounded-2xl",children:c.jsxs("div",{className:"flex items-start",children:[c.jsx(zG,{className:"h-5 w-5 text-destructive mr-3 mt-0.5"}),c.jsxs(hg,{className:"text-foreground",children:[c.jsx("div",{className:"font-semibold text-sm leading-relaxed",children:e}),t&&c.jsx("div",{dangerouslySetInnerHTML:{__html:t},className:"mt-2 text-xs text-muted-foreground [&>b]:text-accent [&>span]:text-accent"})]})]})}):null,ZQ=({isVisible:e})=>e?c.jsx(ct,{className:"mb-5 bg-destructive/5 border-destructive/20",children:c.jsx(Nt,{className:"p-6",children:c.jsxs("div",{className:"text-center max-w-2xl mx-auto",children:[c.jsx("h3",{className:"text-lg font-bold text-destructive mb-3 uppercase tracking-wider",children:"Required Feedback / Nhận xét môn học"}),c.jsx("div",{className:"text-sm text-foreground/80 mb-6 leading-relaxed",children:"Now is the time to take feedbacks on teachers and subjects which you are learning! The feedbacks will help FPT University to have information about teachers and the teaching of teachers. Take all your feedbacks before you view the information about learning (such as grade, attendance ...) please! This page will display on your screen, unless you take all your feedbacks."}),c.jsx(Pt,{to:"/Feedback/StudentFeedBack.aspx",className:"neo-btn px-6 py-3 text-sm rounded-xl font-bold",children:"Ý kiến về việc giảng dạy"})]})})}):null,bj=S.createContext({});function JQ(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const eZ=typeof window<"u",tZ=eZ?S.useLayoutEffect:S.useEffect,J1=S.createContext(null);function eS(e,t){e.indexOf(t)===-1&&e.push(t)}function pp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const is=(e,t,n)=>n>t?t:n<e?e:n;let tS=()=>{};const Vo={},Ej=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Sj=e=>typeof e=="object"&&e!==null,Tj=e=>/^0[^.\s]+$/u.test(e);function Nj(e){let t;return()=>(t===void 0&&(t=e()),t)}const na=e=>e,gf=(...e)=>e.reduce((t,n)=>r=>n(t(r))),Od=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class nS{constructor(){this.subscriptions=[]}add(t){return eS(this.subscriptions,t),()=>pp(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 i=this.subscriptions[s];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ur=e=>e*1e3,Jr=e=>e/1e3,wj=(e,t)=>t?e*(1e3/t):0,Cj=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,nZ=1e-7,rZ=12;function aZ(e,t,n,r,a){let s,i,u=0;do i=t+(n-t)/2,s=Cj(i,r,a)-e,s>0?n=i:t=i;while(Math.abs(s)>nZ&&++u<rZ);return i}function vf(e,t,n,r){if(e===t&&n===r)return na;const a=s=>aZ(s,0,1,e,n);return s=>s===0||s===1?s:Cj(a(s),t,r)}const Aj=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_j=e=>t=>1-e(1-t),Rj=vf(.33,1.53,.69,.99),rS=_j(Rj),Mj=Aj(rS),Oj=e=>e>=1?1:(e*=2)<1?.5*rS(e):.5*(2-Math.pow(2,-10*(e-1))),aS=e=>1-Math.sin(Math.acos(e)),Dj=_j(aS),Ij=Aj(aS),sZ=vf(.42,0,1,1),oZ=vf(0,0,.58,1),Pj=vf(.42,0,.58,1),iZ=e=>Array.isArray(e)&&typeof e[0]!="number",jj=e=>Array.isArray(e)&&typeof e[0]=="number",lZ={linear:na,easeIn:sZ,easeInOut:Pj,easeOut:oZ,circIn:aS,circInOut:Ij,circOut:Dj,backIn:rS,backInOut:Mj,backOut:Rj,anticipate:Oj},cZ=e=>typeof e=="string",__=e=>{if(jj(e)){tS(e.length===4);const[t,n,r,a]=e;return vf(t,n,r,a)}else if(cZ(e))return lZ[e];return e},hm=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function uZ(e,t){let n=new Set,r=new Set,a=!1,s=!1;const i=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function d(m){i.has(m)&&(f.schedule(m),e()),m(u)}const f={schedule:(m,p=!1,v=!1)=>{const x=v&&a?n:r;return p&&i.add(m),x.add(m),m},cancel:m=>{r.delete(m),i.delete(m)},process:m=>{if(u=m,a){s=!0;return}a=!0;const p=n;n=r,r=p,n.forEach(d),n.clear(),a=!1,s&&(s=!1,f.process(m))}};return f}const dZ=40;function Lj(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=hm.reduce((A,R)=>(A[R]=uZ(s),A),{}),{setup:u,read:d,resolveKeyframes:f,preUpdate:m,update:p,preRender:v,render:y,postRender:x}=i,b=()=>{const A=Vo.useManualTiming,R=A?a.timestamp:performance.now();n=!1,A||(a.delta=r?1e3/60:Math.max(Math.min(R-a.timestamp,dZ),1)),a.timestamp=R,a.isProcessing=!0,u.process(a),d.process(a),f.process(a),m.process(a),p.process(a),v.process(a),y.process(a),x.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(b))},T=()=>{n=!0,r=!0,a.isProcessing||e(b)};return{schedule:hm.reduce((A,R)=>{const _=i[R];return A[R]=(O,D=!1,P=!1)=>(n||T(),_.schedule(O,D,P)),A},{}),cancel:A=>{for(let R=0;R<hm.length;R++)i[hm[R]].cancel(A)},state:a,steps:i}}const{schedule:Rt,cancel:Go,state:Un,steps:Uy}=Lj(typeof requestAnimationFrame<"u"?requestAnimationFrame:na,!0);let Lm;function fZ(){Lm=void 0}const dr={now:()=>(Lm===void 0&&dr.set(Un.isProcessing||Vo.useManualTiming?Un.timestamp:performance.now()),Lm),set:e=>{Lm=e,queueMicrotask(fZ)}},kj=e=>t=>typeof t=="string"&&t.startsWith(e),Uj=kj("--"),hZ=kj("var(--"),sS=e=>hZ(e)?mZ.test(e.split("/*")[0].trim()):!1,mZ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function R_(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const qc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Dd={...qc,transform:e=>is(0,1,e)},mm={...qc,default:1},hd=e=>Math.round(e*1e5)/1e5,oS=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function pZ(e){return e==null}const gZ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,iS=(e,t)=>n=>!!(typeof n=="string"&&gZ.test(n)&&n.startsWith(e)||t&&!pZ(n)&&Object.prototype.hasOwnProperty.call(n,t)),Fj=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,i,u]=r.match(oS);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(i),alpha:u!==void 0?parseFloat(u):1}},vZ=e=>is(0,255,e),Fy={...qc,transform:e=>Math.round(vZ(e))},Mi={test:iS("rgb","red"),parse:Fj("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fy.transform(e)+", "+Fy.transform(t)+", "+Fy.transform(n)+", "+hd(Dd.transform(r))+")"};function yZ(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 Sb={test:iS("#"),parse:yZ,transform:Mi.transform},yf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Rs=yf("deg"),ts=yf("%"),Te=yf("px"),xZ=yf("vh"),bZ=yf("vw"),M_={...ts,parse:e=>ts.parse(e)/100,transform:e=>ts.transform(e*100)},tc={test:iS("hsl","hue"),parse:Fj("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ts.transform(hd(t))+", "+ts.transform(hd(n))+", "+hd(Dd.transform(r))+")"},dn={test:e=>Mi.test(e)||Sb.test(e)||tc.test(e),parse:e=>Mi.test(e)?Mi.parse(e):tc.test(e)?tc.parse(e):Sb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Mi.transform(e):tc.transform(e),getAnimatableNone:e=>{const t=dn.parse(e);return t.alpha=0,dn.transform(t)}},EZ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function SZ(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(oS))==null?void 0:t.length)||0)+(((n=e.match(EZ))==null?void 0:n.length)||0)>0}const Bj="number",Hj="color",TZ="var",NZ="var(",O_="${}",wZ=/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 Ac(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const u=t.replace(wZ,d=>(dn.test(d)?(r.color.push(s),a.push(Hj),n.push(dn.parse(d))):d.startsWith(NZ)?(r.var.push(s),a.push(TZ),n.push(d)):(r.number.push(s),a.push(Bj),n.push(parseFloat(d))),++s,O_)).split(O_);return{values:n,split:u,indexes:r,types:a}}function CZ(e){return Ac(e).values}function Vj({split:e,types:t}){const n=e.length;return r=>{let a="";for(let s=0;s<n;s++)if(a+=e[s],r[s]!==void 0){const i=t[s];i===Bj?a+=hd(r[s]):i===Hj?a+=dn.transform(r[s]):a+=r[s]}return a}}function AZ(e){return Vj(Ac(e))}const _Z=e=>typeof e=="number"?0:dn.test(e)?dn.getAnimatableNone(e):e,RZ=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:_Z(e);function MZ(e){const t=Ac(e);return Vj(t)(t.values.map((r,a)=>RZ(r,t.split[a])))}const xa={test:SZ,parse:CZ,createTransformer:AZ,getAnimatableNone:MZ};function By(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 OZ({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,s=0,i=0;if(!t)a=s=i=n;else{const u=n<.5?n*(1+t):n+t-n*t,d=2*n-u;a=By(d,u,e+1/3),s=By(d,u,e),i=By(d,u,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function gp(e,t){return n=>n>0?t:e}const At=(e,t,n)=>e+(t-e)*n,Hy=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},DZ=[Sb,Mi,tc],IZ=e=>DZ.find(t=>t.test(e));function D_(e){const t=IZ(e);if(!t)return!1;let n=t.parse(e);return t===tc&&(n=OZ(n)),n}const I_=(e,t)=>{const n=D_(e),r=D_(t);if(!n||!r)return gp(e,t);const a={...n};return s=>(a.red=Hy(n.red,r.red,s),a.green=Hy(n.green,r.green,s),a.blue=Hy(n.blue,r.blue,s),a.alpha=At(n.alpha,r.alpha,s),Mi.transform(a))},Tb=new Set(["none","hidden"]);function PZ(e,t){return Tb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function jZ(e,t){return n=>At(e,t,n)}function lS(e){return typeof e=="number"?jZ:typeof e=="string"?sS(e)?gp:dn.test(e)?I_:UZ:Array.isArray(e)?Gj:typeof e=="object"?dn.test(e)?I_:LZ:gp}function Gj(e,t){const n=[...e],r=n.length,a=e.map((s,i)=>lS(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=a[i](s);return n}}function LZ(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=lS(e[a])(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}}function kZ(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],i=e.indexes[s][r[s]],u=e.values[i]??0;n[a]=u,r[s]++}return n}const UZ=(e,t)=>{const n=xa.createTransformer(t),r=Ac(e),a=Ac(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?Tb.has(e)&&!a.values.length||Tb.has(t)&&!r.values.length?PZ(e,t):gf(Gj(kZ(r,a),a.values),n):gp(e,t)};function zj(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?At(e,t,n):lS(e)(e,t)}const FZ=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Rt.update(t,n),stop:()=>Go(t),now:()=>Un.isProcessing?Un.timestamp:dr.now()}},$j=(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)})`},vp=2e4;function cS(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<vp;)t+=n,r=e.next(t);return t>=vp?1/0:t}function BZ(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(cS(r),vp);return{type:"keyframes",ease:s=>r.next(a*s).value/t,duration:Jr(a)}}const Zt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Nb(e,t){return e*Math.sqrt(1-t*t)}const HZ=12;function VZ(e,t,n){let r=n;for(let a=1;a<HZ;a++)r=r-e(r)/t(r);return r}const P_=.001;function GZ({duration:e=Zt.duration,bounce:t=Zt.bounce,velocity:n=Zt.velocity,mass:r=Zt.mass}){let a,s,i=1-t;i=is(Zt.minDamping,Zt.maxDamping,i),e=is(Zt.minDuration,Zt.maxDuration,Jr(e)),i<1?(a=f=>{const m=f*i,p=m*e,v=m-n,y=Nb(f,i),x=Math.exp(-p);return P_-v/y*x},s=f=>{const p=f*i*e,v=p*n+n,y=Math.pow(i,2)*Math.pow(f,2)*e,x=Math.exp(-p),b=Nb(Math.pow(f,2),i);return(-a(f)+P_>0?-1:1)*((v-y)*x)/b}):(a=f=>{const m=Math.exp(-f*e),p=(f-n)*e+1;return-.001+m*p},s=f=>{const m=Math.exp(-f*e),p=(n-f)*(e*e);return m*p});const u=5/e,d=VZ(a,s,u);if(e=Ur(e),isNaN(d))return{stiffness:Zt.stiffness,damping:Zt.damping,duration:e};{const f=Math.pow(d,2)*r;return{stiffness:f,damping:i*2*Math.sqrt(r*f),duration:e}}}const zZ=["duration","bounce"],$Z=["stiffness","damping","mass"];function j_(e,t){return t.some(n=>e[n]!==void 0)}function qZ(e){let t={velocity:Zt.velocity,stiffness:Zt.stiffness,damping:Zt.damping,mass:Zt.mass,isResolvedFromDuration:!1,...e};if(!j_(e,$Z)&&j_(e,zZ))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,s=2*is(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Zt.mass,stiffness:a,damping:s}}else{const n=GZ({...e,velocity:0});t={...t,...n,mass:Zt.mass},t.isResolvedFromDuration=!0}return t}function yp(e=Zt.visualDuration,t=Zt.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],i=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:d,damping:f,mass:m,duration:p,velocity:v,isResolvedFromDuration:y}=qZ({...n,velocity:-Jr(n.velocity||0)}),x=v||0,b=f/(2*Math.sqrt(d*m)),T=i-s,N=Jr(Math.sqrt(d/m)),C=Math.abs(T)<5;r||(r=C?Zt.restSpeed.granular:Zt.restSpeed.default),a||(a=C?Zt.restDelta.granular:Zt.restDelta.default);let A,R,_,O,D,P;if(b<1)_=Nb(N,b),O=(x+b*N*T)/_,A=U=>{const B=Math.exp(-b*N*U);return i-B*(O*Math.sin(_*U)+T*Math.cos(_*U))},D=b*N*O+T*_,P=b*N*T-O*_,R=U=>Math.exp(-b*N*U)*(D*Math.sin(_*U)+P*Math.cos(_*U));else if(b===1){A=B=>i-Math.exp(-N*B)*(T+(x+N*T)*B);const U=x+N*T;R=B=>Math.exp(-N*B)*(N*U*B-x)}else{const U=N*Math.sqrt(b*b-1);A=ee=>{const Q=Math.exp(-b*N*ee),j=Math.min(U*ee,300);return i-Q*((x+b*N*T)*Math.sinh(j)+U*T*Math.cosh(j))/U};const B=(x+b*N*T)/U,H=b*N*B-T*U,Z=b*N*T-B*U;R=ee=>{const Q=Math.exp(-b*N*ee),j=Math.min(U*ee,300);return Q*(H*Math.sinh(j)+Z*Math.cosh(j))}}const L={calculatedDuration:y&&p||null,velocity:U=>Ur(R(U)),next:U=>{if(!y&&b<1){const H=Math.exp(-b*N*U),Z=Math.sin(_*U),ee=Math.cos(_*U),Q=i-H*(O*Z+T*ee),j=Ur(H*(D*Z+P*ee));return u.done=Math.abs(j)<=r&&Math.abs(i-Q)<=a,u.value=u.done?i:Q,u}const B=A(U);if(y)u.done=U>=p;else{const H=Ur(R(U));u.done=Math.abs(H)<=r&&Math.abs(i-B)<=a}return u.value=u.done?i:B,u},toString:()=>{const U=Math.min(cS(L),vp),B=$j(H=>L.next(U*H).value,U,30);return U+"ms "+B},toTransition:()=>{}};return L}yp.applyToOptions=e=>{const t=BZ(e,100,yp);return e.ease=t.ease,e.duration=Ur(t.duration),e.type="keyframes",e};const YZ=5;function qj(e,t,n){const r=Math.max(t-YZ,0);return wj(n-e(r),t-r)}function wb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:i,min:u,max:d,restDelta:f=.5,restSpeed:m}){const p=e[0],v={done:!1,value:p},y=P=>u!==void 0&&P<u||d!==void 0&&P>d,x=P=>u===void 0?d:d===void 0||Math.abs(u-P)<Math.abs(d-P)?u:d;let b=n*t;const T=p+b,N=i===void 0?T:i(T);N!==T&&(b=N-p);const C=P=>-b*Math.exp(-P/r),A=P=>N+C(P),R=P=>{const L=C(P),U=A(P);v.done=Math.abs(L)<=f,v.value=v.done?N:U};let _,O;const D=P=>{y(v.value)&&(_=P,O=yp({keyframes:[v.value,x(v.value)],velocity:qj(A,P,v.value),damping:a,stiffness:s,restDelta:f,restSpeed:m}))};return D(0),{calculatedDuration:null,next:P=>{let L=!1;return!O&&_===void 0&&(L=!0,R(P),D(P)),_!==void 0&&P>=_?O.next(P-_):(!L&&R(P),v)}}}function WZ(e,t,n){const r=[],a=n||Vo.mix||zj,s=e.length-1;for(let i=0;i<s;i++){let u=a(e[i],e[i+1]);if(t){const d=Array.isArray(t)?t[i]||na:t;u=gf(d,u)}r.push(u)}return r}function KZ(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(tS(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=WZ(t,r,a),d=u.length,f=m=>{if(i&&m<e[0])return t[0];let p=0;if(d>1)for(;p<e.length-2&&!(m<e[p+1]);p++);const v=Od(e[p],e[p+1],m);return u[p](v)};return n?m=>f(is(e[0],e[s-1],m)):f}function XZ(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Od(0,t,r);e.push(At(n,1,a))}}function QZ(e){const t=[0];return XZ(t,e.length-1),t}function ZZ(e,t){return e.map(n=>n*t)}function JZ(e,t){return e.map(()=>t||Pj).splice(0,e.length-1)}function md({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=iZ(r)?r.map(__):__(r),s={done:!1,value:t[0]},i=ZZ(n&&n.length===t.length?n:QZ(t),e),u=KZ(i,t,{ease:Array.isArray(a)?a:JZ(t,a)});return{calculatedDuration:e,next:d=>(s.value=u(d),s.done=d>=e,s)}}const eJ=e=>e!==null;function mg(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(eJ),u=a<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!u||r===void 0?s[u]:r}const tJ={decay:wb,inertia:wb,tween:md,keyframes:md,spring:yp};function Yj(e){typeof e.type=="string"&&(e.type=tJ[e.type])}class uS{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 nJ=e=>e/100;class xp extends uS{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,a;const{motionValue:n}=this.options;n&&n.updatedAt!==dr.now()&&this.tick(dr.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;Yj(t);const{type:n=md,repeat:r=0,repeatDelay:a=0,repeatType:s,velocity:i=0}=t;let{keyframes:u}=t;const d=n||md;d!==md&&typeof u[0]!="number"&&(this.mixKeyframes=gf(nJ,zj(u[0],u[1])),u=[0,100]);const f=d({...t,keyframes:u});s==="mirror"&&(this.mirroredGenerator=d({...t,keyframes:[...u].reverse(),velocity:-i})),f.calculatedDuration===null&&(f.calculatedDuration=cS(f));const{calculatedDuration:m}=f;this.calculatedDuration=m,this.resolvedDuration=m+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=f}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:i,resolvedDuration:u,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:m,repeat:p,repeatType:v,repeatDelay:y,type:x,onUpdate:b,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 N=this.currentTime-f*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?N<0:N>a;this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let A=this.currentTime,R=r;if(p){const P=Math.min(this.currentTime,a)/u;let L=Math.floor(P),U=P%1;!U&&P>=1&&(U=1),U===1&&L--,L=Math.min(L,p+1),!!(L%2)&&(v==="reverse"?(U=1-U,y&&(U-=y/u)):v==="mirror"&&(R=i)),A=is(0,1,U)*u}let _;C?(this.delayState.value=m[0],_=this.delayState):_=R.next(A),s&&!C&&(_.value=s(_.value));let{done:O}=_;!C&&d!==null&&(O=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return D&&x!==wb&&(_.value=mg(m,this.options,T,this.speed)),b&&b(_.value),D&&this.finish(),_}then(t,n){return this.finished.then(t,n)}get duration(){return Jr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jr(t)}get time(){return Jr(this.currentTime)}set time(t){t=Ur(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return qj(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(dr.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Jr(this.currentTime))}play(){var a,s;if(this.isStopped)return;const{driver:t=FZ,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),(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(dr.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 rJ(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Oi=e=>e*180/Math.PI,Cb=e=>{const t=Oi(Math.atan2(e[1],e[0]));return Ab(t)},aJ={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Cb,rotateZ:Cb,skewX:e=>Oi(Math.atan(e[1])),skewY:e=>Oi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ab=e=>(e=e%360,e<0&&(e+=360),e),L_=Cb,k_=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),U_=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),sJ={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:k_,scaleY:U_,scale:e=>(k_(e)+U_(e))/2,rotateX:e=>Ab(Oi(Math.atan2(e[6],e[5]))),rotateY:e=>Ab(Oi(Math.atan2(-e[2],e[0]))),rotateZ:L_,rotate:L_,skewX:e=>Oi(Math.atan(e[4])),skewY:e=>Oi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function _b(e){return e.includes("scale")?1:0}function Rb(e,t){if(!e||e==="none")return _b(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=sJ,a=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=aJ,a=u}if(!a)return _b(t);const s=r[t],i=a[1].split(",").map(iJ);return typeof s=="function"?s(i):i[s]}const oJ=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Rb(n,t)};function iJ(e){return parseFloat(e.trim())}const Yc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wc=new Set([...Yc,"pathRotation"]),F_=e=>e===qc||e===Te,lJ=new Set(["x","y","z"]),cJ=Yc.filter(e=>!lJ.has(e));function uJ(e){const t=[];return cJ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Do={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const a=e.max-e.min;return r==="border-box"?a:a-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const a=e.max-e.min;return r==="border-box"?a:a-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})=>Rb(t,"x"),y:(e,{transform:t})=>Rb(t,"y")};Do.translateX=Do.x;Do.translateY=Do.y;const Hi=new Set;let Mb=!1,Ob=!1,Db=!1;function Wj(){if(Ob){const e=Array.from(Hi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=uJ(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,i])=>{var u;(u=r.getValue(s))==null||u.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ob=!1,Mb=!1,Hi.forEach(e=>e.complete(Db)),Hi.clear()}function Kj(){Hi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ob=!0)})}function dJ(){Db=!0,Kj(),Wj(),Db=!1}class dS{constructor(t,n,r,a,s,i=!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=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Hi.add(this),Mb||(Mb=!0,Rt.read(Kj),Rt.resolveKeyframes(Wj))):(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(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const u=r.readValue(n,i);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=i),a&&s===void 0&&a.set(t[0])}rJ(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Hi.delete(this)}cancel(){this.state==="scheduled"&&(Hi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const fJ=e=>e.startsWith("--");function Xj(e,t,n){fJ(t)?e.style.setProperty(t,n):e.style[t]=n}const hJ={};function Qj(e,t){const n=Nj(e);return()=>hJ[t]??n()}const mJ=Qj(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Zj=Qj(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cd=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,B_={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cd([0,.65,.55,1]),circOut:cd([.55,0,1,.45]),backIn:cd([.31,.01,.66,-.59]),backOut:cd([.33,1.53,.69,.99])};function Jj(e,t){if(e)return typeof e=="function"?Zj()?$j(e,t):"ease-out":jj(e)?cd(e):Array.isArray(e)?e.map(n=>Jj(n,t)||B_.easeOut):B_[e]}function pJ(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:i="loop",ease:u="easeOut",times:d}={},f=void 0){const m={[t]:n};d&&(m.offset=d);const p=Jj(u,a);Array.isArray(p)&&(m.easing=p);const v={delay:r,duration:a,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return f&&(v.pseudoElement=f),e.animate(m,v)}function eL(e){return typeof e=="function"&&"applyToOptions"in e}function gJ({type:e,...t}){return eL(e)&&Zj()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class tL extends uS{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:s,allowFlatten:i=!1,finalKeyframe:u,onComplete:d}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,tS(typeof t.type!="string");const f=gJ(t);this.animation=pJ(n,r,a,f,s),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const m=mg(a,this.options,u,this.speed);this.updateMotionValue&&this.updateMotionValue(m),Xj(n,r,m),this.animation.cancel()}d==null||d(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,a;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((a=(r=this.animation).commitStyles)==null||a.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Jr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jr(t)}get time(){return Jr(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ur(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:a}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&mJ()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),na):a(this)}}const nL={anticipate:Oj,backInOut:Mj,circInOut:Ij};function vJ(e){return e in nL}function yJ(e){typeof e.ease=="string"&&vJ(e.ease)&&(e.ease=nL[e.ease])}const Vy=10;class xJ extends tL{constructor(t){yJ(t),Yj(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:s,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new xp({...i,autoplay:!1}),d=Math.max(Vy,dr.now()-this.startTime),f=is(0,Vy,d-Vy),m=u.sample(d).value,{name:p}=this.options;s&&p&&Xj(s,p,m),n.setWithVelocity(u.sample(Math.max(0,d-f)).value,m,f),u.stop()}}const H_=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xa.test(e)||e==="0")&&!e.startsWith("url("));function bJ(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 EJ(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],i=H_(a,t),u=H_(s,t);return!i||!u?!1:bJ(e)||(n==="spring"||eL(n))&&r}function Ib(e){e.duration=0,e.type="keyframes"}const rL=new Set(["opacity","clipPath","filter","transform"]),SJ=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function TJ(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&SJ.test(e[t]))return!0;return!1}const NJ=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),wJ=Nj(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function CJ(e){var p;const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:s,type:i,keyframes:u}=e;if(!(((p=t==null?void 0:t.owner)==null?void 0:p.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:m}=t.owner.getProps();return wJ()&&n&&(rL.has(n)||NJ.has(n)&&TJ(u))&&(n!=="transform"||!m)&&!f&&!r&&a!=="mirror"&&s!==0&&i!=="inertia"}const AJ=40;class _J extends uS{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:i="loop",keyframes:u,name:d,motionValue:f,element:m,...p}){var x;super(),this.stop=()=>{var b,T;this._animation&&(this._animation.stop(),(b=this.stopTimeline)==null||b.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=dr.now();const v={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:s,repeatType:i,name:d,motionValue:f,element:m,...p},y=(m==null?void 0:m.KeyframeResolver)||dS;this.keyframeResolver=new y(u,(b,T,N)=>this.onKeyframesResolved(b,T,v,!N),d,f,m),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,a){var N,C;this.keyframeResolver=void 0;const{name:s,type:i,velocity:u,delay:d,isHandoff:f,onUpdate:m}=r;this.resolvedAt=dr.now();let p=!0;EJ(t,s,i,u)||(p=!1,(Vo.instantAnimations||!d)&&(m==null||m(mg(t,r,n))),t[0]=t[t.length-1],Ib(r),r.repeat=0);const y={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>AJ?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},x=p&&!f&&CJ(y),b=(C=(N=y.motionValue)==null?void 0:N.owner)==null?void 0:C.current;let T;if(x)try{T=new xJ({...y,element:b})}catch{T=new xp(y)}else T=new xp(y);T.finished.then(()=>{this.notifyFinished()}).catch(na),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}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(),dJ()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function aL(e,t,n,r=0,a=1){const s=Array.from(e).sort((f,m)=>f.sortNodePosition(m)).indexOf(t),i=e.size,u=(i-1)*r;return typeof n=="function"?n(s,i):a===1?s*r:u-s*r}const V_=30,RJ=e=>!isNaN(parseFloat(e));class MJ{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const a=dr.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 i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=dr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=RJ(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 nS);const r=this.events[t].add(n);return t==="change"?()=>{r(),Rt.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=dr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>V_)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,V_);return wj(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 _c(e,t){return new MJ(e,t)}function sL(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function fS(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?sL(n,e):n}const OJ={type:"spring",stiffness:500,damping:25,restSpeed:10},DJ=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),IJ={type:"keyframes",duration:.8},PJ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jJ=(e,{keyframes:t})=>t.length>2?IJ:Wc.has(e)?e.startsWith("scale")?DJ(t[1]):OJ:PJ,LJ=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function kJ(e){for(const t in e)if(!LJ.has(t))return!0;return!1}const hS=(e,t,n,r={},a,s)=>i=>{const u=fS(r,e)||{},d=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Ur(d);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:v=>{t.set(v),u.onUpdate&&u.onUpdate(v)},onComplete:()=>{i(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:a};kJ(u)||Object.assign(m,jJ(e,m)),m.duration&&(m.duration=Ur(m.duration)),m.repeatDelay&&(m.repeatDelay=Ur(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let p=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Ib(m),m.delay===0&&(p=!0)),(Vo.instantAnimations||Vo.skipAnimations||a!=null&&a.shouldSkipAnimations||u.skipAnimations)&&(p=!0,Ib(m),m.delay=0),m.allowFlatten=!u.type&&!u.ease,p&&!s&&t.get()!==void 0){const v=mg(m.keyframes,u);if(v!==void 0){Rt.update(()=>{m.onUpdate(v),m.onComplete()});return}}return u.isSync?new xp(m):new _J(m)},UJ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function FJ(e){const t=UJ.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function oL(e,t,n=1){const[r,a]=FJ(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return Ej(i)?parseFloat(i):i}return sS(a)?oL(a,t,n+1):a}function G_(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function mS(e,t,n,r){if(typeof t=="function"){const[a,s]=G_(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]=G_(r);t=t(n!==void 0?n:e.custom,a,s)}return t}function Vi(e,t,n){const r=e.getProps();return mS(r,t,n!==void 0?n:r.custom,e)}const iL=new Set(["width","height","top","left","right","bottom",...Yc]),Pb=e=>Array.isArray(e);function BJ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_c(n))}function HJ(e){return Pb(e)?e[e.length-1]||0:e}function VJ(e,t){const n=Vi(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const i in s){const u=HJ(s[i]);BJ(e,i,u)}}const Vn=e=>!!(e&&e.getVelocity);function GJ(e){return!!(Vn(e)&&e.add)}function jb(e,t){const n=e.getValue("willChange");if(GJ(n))return n.add(t);if(!n&&Vo.WillChange){const r=new Vo.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function pS(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const zJ="framerAppearId",lL="data-"+pS(zJ);function cL(e){return e.props[lL]}function $J({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function uL(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:s,transitionEnd:i,...u}=t;const d=e.getDefaultTransition();s=s?sL(s,d):d;const f=s==null?void 0:s.reduceMotion,m=s==null?void 0:s.skipAnimations;r&&(s=r);const p=[],v=a&&e.animationState&&e.animationState.getState()[a],y=s==null?void 0:s.path;y&&y.animateVisualElement(e,u,s,n,p);for(const x in u){const b=e.getValue(x,e.latestValues[x]??null),T=u[x];if(T===void 0||v&&$J(v,x))continue;const N={delay:n,...fS(s||{},x)};m&&(N.skipAnimations=!0);const C=b.get();if(C!==void 0&&!b.isAnimating()&&!Array.isArray(T)&&T===C&&!N.velocity){Rt.update(()=>b.set(T));continue}let A=!1;if(window.MotionHandoffAnimation){const O=cL(e);if(O){const D=window.MotionHandoffAnimation(O,x,Rt);D!==null&&(N.startTime=D,A=!0)}}jb(e,x);const R=f??e.shouldReduceMotion;b.start(hS(x,b,T,R&&iL.has(x)?{type:!1}:N,e,A));const _=b.animation;_&&p.push(_)}if(i){const x=()=>Rt.update(()=>{i&&VJ(e,i)});p.length?Promise.all(p).then(x):x()}return p}function Lb(e,t,n={}){var d;const r=Vi(e,t,n.type==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const s=r?()=>Promise.all(uL(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:m=0,staggerChildren:p,staggerDirection:v}=a;return qJ(e,t,f,m,p,v,n)}:()=>Promise.resolve(),{when:u}=a;if(u){const[f,m]=u==="beforeChildren"?[s,i]:[i,s];return f().then(()=>m())}else return Promise.all([s(),i(n.delay)])}function qJ(e,t,n=0,r=0,a=0,s=1,i){const u=[];for(const d of e.variantChildren)d.notify("AnimationStart",t),u.push(Lb(d,t,{...i,delay:n+(typeof r=="function"?0:r)+aL(e.variantChildren,d,r,a,s)}).then(()=>d.notify("AnimationComplete",t)));return Promise.all(u)}function YJ(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>Lb(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=Lb(e,t,n);else{const a=typeof t=="function"?Vi(e,t,n.custom):t;r=Promise.all(uL(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const WJ={test:e=>e==="auto",parse:e=>e},dL=e=>t=>t.test(e),fL=[qc,Te,ts,Rs,bZ,xZ,WJ],z_=e=>fL.find(dL(e));function KJ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Tj(e):!0}const XJ=new Set(["brightness","contrast","saturate","opacity"]);function QJ(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(oS)||[];if(!r)return e;const a=n.replace(r,"");let s=XJ.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const ZJ=/\b([a-z-]*)\(.*?\)/gu,kb={...xa,getAnimatableNone:e=>{const t=e.match(ZJ);return t?t.map(QJ).join(" "):e}},Ub={...xa,getAnimatableNone:e=>{const t=xa.parse(e);return xa.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},$_={...qc,transform:Math.round},JJ={rotate:Rs,pathRotation:Rs,rotateX:Rs,rotateY:Rs,rotateZ:Rs,scale:mm,scaleX:mm,scaleY:mm,scaleZ:mm,skew:Rs,skewX:Rs,skewY:Rs,distance:Te,translateX:Te,translateY:Te,translateZ:Te,x:Te,y:Te,z:Te,perspective:Te,transformPerspective:Te,opacity:Dd,originX:M_,originY:M_,originZ:Te},bp={borderWidth:Te,borderTopWidth:Te,borderRightWidth:Te,borderBottomWidth:Te,borderLeftWidth:Te,borderRadius:Te,borderTopLeftRadius:Te,borderTopRightRadius:Te,borderBottomRightRadius:Te,borderBottomLeftRadius:Te,width:Te,maxWidth:Te,height:Te,maxHeight:Te,top:Te,right:Te,bottom:Te,left:Te,inset:Te,insetBlock:Te,insetBlockStart:Te,insetBlockEnd:Te,insetInline:Te,insetInlineStart:Te,insetInlineEnd:Te,padding:Te,paddingTop:Te,paddingRight:Te,paddingBottom:Te,paddingLeft:Te,paddingBlock:Te,paddingBlockStart:Te,paddingBlockEnd:Te,paddingInline:Te,paddingInlineStart:Te,paddingInlineEnd:Te,margin:Te,marginTop:Te,marginRight:Te,marginBottom:Te,marginLeft:Te,marginBlock:Te,marginBlockStart:Te,marginBlockEnd:Te,marginInline:Te,marginInlineStart:Te,marginInlineEnd:Te,fontSize:Te,backgroundPositionX:Te,backgroundPositionY:Te,...JJ,zIndex:$_,fillOpacity:Dd,strokeOpacity:Dd,numOctaves:$_},eee={...bp,color:dn,backgroundColor:dn,outlineColor:dn,fill:dn,stroke:dn,borderColor:dn,borderTopColor:dn,borderRightColor:dn,borderBottomColor:dn,borderLeftColor:dn,filter:kb,WebkitFilter:kb,mask:Ub,WebkitMask:Ub},hL=e=>eee[e],tee=new Set([kb,Ub]);function mL(e,t){let n=hL(e);return tee.has(n)||(n=xa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const nee=new Set(["auto","none","0"]);function ree(e,t,n){let r=0,a;for(;r<e.length&&!a;){const s=e[r];typeof s=="string"&&!nee.has(s)&&Ac(s).values.length&&(a=e[r]),r++}if(a&&n)for(const s of t)e[s]=mL(n,a)}class aee extends dS{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 m=0;m<t.length;m++){let p=t[m];if(typeof p=="string"&&(p=p.trim(),sS(p))){const v=oL(p,n.current);v!==void 0&&(t[m]=v),m===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!iL.has(r)||t.length!==2)return;const[a,s]=t,i=z_(a),u=z_(s),d=R_(a),f=R_(s);if(d!==f&&Do[r]){this.needsMeasurement=!0;return}if(i!==u)if(F_(i)&&F_(u))for(let m=0;m<t.length;m++){const p=t[m];typeof p=="string"&&(t[m]=parseFloat(p))}else Do[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||KJ(t[a]))&&r.push(a);r.length&&ree(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=Do[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 u;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,i=r[s];r[s]=Do[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),(u=this.removedTransforms)!=null&&u.length&&this.removedTransforms.forEach(([d,f])=>{t.getValue(d).set(f)}),this.resolveNoneKeyframes()}}function pL(e,t,n){if(e==null)return[];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).filter(r=>r!=null)}const Fb=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function see(e){return Sj(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:gS}=Lj(queueMicrotask,!1),da={x:!1,y:!1};function gL(){return da.x||da.y}function oee(e){return e==="x"||e==="y"?da[e]?null:(da[e]=!0,()=>{da[e]=!1}):da.x||da.y?null:(da.x=da.y=!0,()=>{da.x=da.y=!1})}function vL(e,t){const n=pL(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function iee(e){return!(e.pointerType==="touch"||gL())}function lee(e,t,n={}){const[r,a,s]=vL(e,n);return r.forEach(i=>{let u=!1,d=!1,f;const m=()=>{i.removeEventListener("pointerleave",x)},p=T=>{f&&(f(T),f=void 0),m()},v=T=>{u=!1,window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),d&&(d=!1,p(T))},y=()=>{u=!0,window.addEventListener("pointerup",v,a),window.addEventListener("pointercancel",v,a)},x=T=>{if(T.pointerType!=="touch"){if(u){d=!0;return}p(T)}},b=T=>{if(!iee(T))return;d=!1;const N=t(i,T);typeof N=="function"&&(f=N,i.addEventListener("pointerleave",x,a))};i.addEventListener("pointerenter",b,a),i.addEventListener("pointerdown",y,a)}),s}const yL=(e,t)=>t?e===t?!0:yL(e,t.parentElement):!1,vS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,cee=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function uee(e){return cee.has(e.tagName)||e.isContentEditable===!0}const dee=new Set(["INPUT","SELECT","TEXTAREA"]);function fee(e){return dee.has(e.tagName)||e.isContentEditable===!0}const km=new WeakSet;function q_(e){return t=>{t.key==="Enter"&&e(t)}}function Gy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const hee=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=q_(()=>{if(km.has(n))return;Gy(n,"down");const a=q_(()=>{Gy(n,"up")}),s=()=>Gy(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 Y_(e){return vS(e)&&!gL()}const W_=new WeakSet;function mee(e,t,n={}){const[r,a,s]=vL(e,n),i=u=>{const d=u.currentTarget;if(!Y_(u)||W_.has(u))return;km.add(d),n.stopPropagation&&W_.add(u);const f=t(d,u),m=(y,x)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",v),km.has(d)&&km.delete(d),Y_(y)&&typeof f=="function"&&f(y,{success:x})},p=y=>{m(y,d===window||d===document||n.useGlobalTarget||yL(d,y.target))},v=y=>{m(y,!1)};window.addEventListener("pointerup",p,a),window.addEventListener("pointercancel",v,a)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",i,a),see(u)&&(u.addEventListener("focus",f=>hee(f,a)),!uee(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),s}function yS(e){return Sj(e)&&"ownerSVGElement"in e}const Um=new WeakMap;let bo;const xL=(e,t,n)=>(r,a)=>a&&a[0]?a[0][e+"Size"]:yS(r)&&"getBBox"in r?r.getBBox()[t]:r[n],pee=xL("inline","width","offsetWidth"),gee=xL("block","height","offsetHeight");function vee({target:e,borderBoxSize:t}){var n;(n=Um.get(e))==null||n.forEach(r=>{r(e,{get width(){return pee(e,t)},get height(){return gee(e,t)}})})}function yee(e){e.forEach(vee)}function xee(){typeof ResizeObserver>"u"||(bo=new ResizeObserver(yee))}function bee(e,t){bo||xee();const n=pL(e);return n.forEach(r=>{let a=Um.get(r);a||(a=new Set,Um.set(r,a)),a.add(t),bo==null||bo.observe(r)}),()=>{n.forEach(r=>{const a=Um.get(r);a==null||a.delete(t),a!=null&&a.size||bo==null||bo.unobserve(r)})}}const Fm=new Set;let nc;function Eee(){nc=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Fm.forEach(t=>t(e))},window.addEventListener("resize",nc)}function See(e){return Fm.add(e),nc||Eee(),()=>{Fm.delete(e),!Fm.size&&typeof nc=="function"&&(window.removeEventListener("resize",nc),nc=void 0)}}function K_(e,t){return typeof e=="function"?See(e):bee(e,t)}function Tee(e){return yS(e)&&e.tagName==="svg"}const Nee=[...fL,dn,xa],wee=e=>Nee.find(dL(e)),X_=()=>({translate:0,scale:1,origin:0,originPoint:0}),rc=()=>({x:X_(),y:X_()}),Q_=()=>({min:0,max:0}),xn=()=>({x:Q_(),y:Q_()}),Cee=new WeakMap;function pg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Id(e){return typeof e=="string"||Array.isArray(e)}const xS=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bS=["initial",...xS];function gg(e){return pg(e.animate)||bS.some(t=>Id(e[t]))}function bL(e){return!!(gg(e)||e.variants)}function Aee(e,t,n){for(const r in t){const a=t[r],s=n[r];if(Vn(a))e.addValue(r,a);else if(Vn(s))e.addValue(r,_c(a,{owner:e}));else if(s!==a)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(a):i.hasAnimated||i.set(a)}else{const i=e.getStaticValue(r);e.addValue(r,_c(i!==void 0?i:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Bb={current:null},EL={current:!1},_ee=typeof window<"u";function Ree(){if(EL.current=!0,!!_ee)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Bb.current=e.matches;e.addEventListener("change",t),t()}else Bb.current=!1}const Z_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ep={};function SL(e){Ep=e}function Mee(){return Ep}class Oee{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,skipAnimations:s,blockInitialAnimation:i,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=dS,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=dr.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Rt.render(this.render,!1,!0))};const{latestValues:f,renderState:m}=u;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=s,this.options=d,this.blockInitialAnimation=!!i,this.isControllingVariants=gg(n),this.isVariantNode=bL(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in v){const x=v[y];f[y]!==void 0&&Vn(x)&&x.set(f[y])}}mount(t){var n,r;if(this.hasBeenMounted)for(const a in this.initialValues)(n=this.values.get(a))==null||n.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,Cee.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,s)=>this.bindToMotionValue(s,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(EL.current||Ree(),this.shouldReduceMotion=Bb.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Go(this.notifyUpdate),Go(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&rL.has(t)&&this.current instanceof HTMLElement){const{factory:i,keyframes:u,times:d,ease:f,duration:m}=n.accelerate,p=new tL({element:this.current,name:t,keyframes:u,times:d,ease:f,duration:Ur(m)}),v=i(p);this.valueSubscriptions.set(t,()=>{v(),p.cancel()});return}const r=Wc.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Rt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),s&&s()})}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 Ep){const n=Ep[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):xn()}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<Z_.length;r++){const a=Z_[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const s="on"+a,i=t[s];i&&(this.propEventSubscriptions[a]=this.on(a,i))}this.prevMotionValues=Aee(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=_c(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"&&(Ej(r)||Tj(r))?r=parseFloat(r):!wee(r)&&xa.test(n)&&(r=mL(t,n)),this.setBaseTarget(t,Vn(r)?r.get():r)),Vn(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 i=mS(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Vn(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 nS),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){gS.render(this.render)}}class TL extends Oee{constructor(){super(...arguments),this.KeyframeResolver=aee}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Vn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class ei{constructor(t){this.isMounted=!1,this.node=t}update(){}}function NL({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Dee({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Iee(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 zy(e){return e===void 0||e===1}function Hb({scale:e,scaleX:t,scaleY:n}){return!zy(e)||!zy(t)||!zy(n)}function Ci(e){return Hb(e)||wL(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function wL(e){return J_(e.x)||J_(e.y)}function J_(e){return e&&e!=="0%"}function Sp(e,t,n){const r=e-n,a=t*r;return n+a}function eR(e,t,n,r,a){return a!==void 0&&(e=Sp(e,a,r)),Sp(e,n,r)+t}function Vb(e,t=0,n=1,r,a){e.min=eR(e.min,t,n,r,a),e.max=eR(e.max,t,n,r,a)}function CL(e,{x:t,y:n}){Vb(e.x,t.translate,t.scale,t.originPoint),Vb(e.y,n.translate,n.scale,n.originPoint)}const tR=.999999999999,nR=1.0000000000001;function Pee(e,t,n,r=!1){var u;const a=n.length;if(!a)return;t.x=t.y=1;let s,i;for(let d=0;d<a;d++){s=n[d],i=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&&(Ka(e.x,-s.scroll.offset.x),Ka(e.y,-s.scroll.offset.y)),i&&(t.x*=i.x.scale,t.y*=i.y.scale,CL(e,i)),r&&Ci(s.latestValues)&&Bm(e,s.latestValues,(u=s.layout)==null?void 0:u.layoutBox))}t.x<nR&&t.x>tR&&(t.x=1),t.y<nR&&t.y>tR&&(t.y=1)}function Ka(e,t){e.min+=t,e.max+=t}function rR(e,t,n,r,a=.5){const s=At(e.min,e.max,a);Vb(e,t,n,s,r)}function aR(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Bm(e,t,n){const r=n??e;rR(e.x,aR(t.x,r.x),t.scaleX,t.scale,t.originX),rR(e.y,aR(t.y,r.y),t.scaleY,t.scale,t.originY)}function AL(e,t){return NL(Iee(e.getBoundingClientRect(),t))}function jee(e,t,n){const r=AL(e,n),{scroll:a}=t;return a&&(Ka(r.x,a.offset.x),Ka(r.y,a.offset.y)),r}const Lee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kee=Yc.length;function Uee(e,t,n){let r="",a=!0;for(let i=0;i<kee;i++){const u=Yc[i],d=e[u];if(d===void 0)continue;let f=!0;if(typeof d=="number")f=d===(u.startsWith("scale")?1:0);else{const m=parseFloat(d);f=u.startsWith("scale")?m===1:m===0}if(!f||n){const m=Fb(d,bp[u]);if(!f){a=!1;const p=Lee[u]||u;r+=`${p}(${m}) `}n&&(t[u]=m)}}const s=e.pathRotation;return s&&(a=!1,r+=`rotate(${Fb(s,bp.pathRotation)}) `),r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function ES(e,t,n){const{style:r,vars:a,transformOrigin:s}=e;let i=!1,u=!1;for(const d in t){const f=t[d];if(Wc.has(d)){i=!0;continue}else if(Uj(d)){a[d]=f;continue}else{const m=Fb(f,bp[d]);d.startsWith("origin")?(u=!0,s[d]=m):r[d]=m}}if(t.transform||(i||n?r.transform=Uee(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:m=0}=s;r.transformOrigin=`${d} ${f} ${m}`}}function _L(e,{style:t,vars:n},r,a){const s=e.style;let i;for(i in t)s[i]=t[i];a==null||a.applyProjectionStyles(s,r);for(i in n)s.setProperty(i,n[i])}function sR(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const rd={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Te.test(e))e=parseFloat(e);else return e;const n=sR(e,t.target.x),r=sR(e,t.target.y);return`${n}% ${r}%`}},Fee={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=xa.parse(e);if(a.length>5)return r;const s=xa.createTransformer(e),i=typeof a[0]!="number"?1:0,u=n.x.scale*t.x,d=n.y.scale*t.y;a[0+i]/=u,a[1+i]/=d;const f=At(u,d,.5);return typeof a[2+i]=="number"&&(a[2+i]/=f),typeof a[3+i]=="number"&&(a[3+i]/=f),s(a)}},Gb={borderRadius:{...rd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rd,borderTopRightRadius:rd,borderBottomLeftRadius:rd,borderBottomRightRadius:rd,boxShadow:Fee};function RL(e,{layout:t,layoutId:n}){return Wc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Gb[e]||e==="opacity")}function SS(e,t,n){var i;const r=e.style,a=t==null?void 0:t.style,s={};if(!r)return s;for(const u in r)(Vn(r[u])||a&&Vn(a[u])||RL(u,e)||((i=n==null?void 0:n.getValue(u))==null?void 0:i.liveStyle)!==void 0)&&(s[u]=r[u]);return s}function Bee(e){return window.getComputedStyle(e)}class Hee extends TL{constructor(){super(...arguments),this.type="html",this.renderInstance=_L}readValueFromInstance(t,n){var r;if(Wc.has(n))return(r=this.projection)!=null&&r.isProjecting?_b(n):oJ(t,n);{const a=Bee(t),s=(Uj(n)?a.getPropertyValue(n):a[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return AL(t,n)}build(t,n,r){ES(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return SS(t,n,r)}}const Vee={offset:"stroke-dashoffset",array:"stroke-dasharray"},Gee={offset:"strokeDashoffset",array:"strokeDasharray"};function zee(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?Vee:Gee;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const $ee=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ML(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:i=0,...u},d,f,m){if(ES(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:v}=e;p.transform&&(v.transform=p.transform,delete p.transform),(v.transform||p.transformOrigin)&&(v.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),v.transform&&(v.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete p.transformBox);for(const y of $ee)p[y]!==void 0&&(v[y]=p[y],delete p[y]);t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&zee(p,a,s,i,!1)}const OL=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"]),DL=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qee(e,t,n,r){_L(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(OL.has(a)?a:pS(a),t.attrs[a])}function IL(e,t,n){const r=SS(e,t,n);for(const a in e)if(Vn(e[a])||Vn(t[a])){const s=Yc.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[s]=e[a]}return r}class Yee extends TL{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Wc.has(n)){const r=hL(n);return r&&r.default||0}return n=OL.has(n)?n:pS(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return IL(t,n,r)}build(t,n,r){ML(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){qee(t,n,r,a)}mount(t){this.isSVGTag=DL(t.tagName),super.mount(t)}}const Wee=bS.length;function PL(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?PL(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Wee;n++){const r=bS[n],a=e.props[r];(Id(a)||a===!1)&&(t[r]=a)}return t}function jL(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 Kee=[...xS].reverse(),Xee=xS.length;function Qee(e){return t=>Promise.all(t.map(({animation:n,options:r})=>YJ(e,n,r)))}function Zee(e){let t=Qee(e),n=oR(),r=!0,a=!1;const s=f=>(m,p)=>{var y;const v=Vi(e,p,f==="exit"?(y=e.presenceContext)==null?void 0:y.custom:void 0);if(v){const{transition:x,transitionEnd:b,...T}=v;m={...m,...T,...b}}return m};function i(f){t=f(e)}function u(f){const{props:m}=e,p=PL(e.parent)||{},v=[],y=new Set;let x={},b=1/0;for(let N=0;N<Xee;N++){const C=Kee[N],A=n[C],R=m[C]!==void 0?m[C]:p[C],_=Id(R),O=C===f?A.isActive:null;O===!1&&(b=N);let D=R===p[C]&&R!==m[C]&&_;if(D&&(r||a)&&e.manuallyAnimateOnMount&&(D=!1),A.protectedKeys={...x},!A.isActive&&O===null||!R&&!A.prevProp||pg(R)||typeof R=="boolean")continue;if(C==="exit"&&A.isActive&&O!==!0){A.prevResolvedValues&&(x={...x,...A.prevResolvedValues});continue}const P=Jee(A.prevProp,R);let L=P||C===f&&A.isActive&&!D&&_||N>b&&_,U=!1;const B=Array.isArray(R)?R:[R];let H=B.reduce(s(C),{});O===!1&&(H={});const{prevResolvedValues:Z={}}=A,ee={...Z,...H},Q=V=>{L=!0,y.has(V)&&(U=!0,y.delete(V)),A.needsAnimating[V]=!0;const te=e.getValue(V);te&&(te.liveStyle=!1)};for(const V in ee){const te=H[V],k=Z[V];if(x.hasOwnProperty(V))continue;let $=!1;Pb(te)&&Pb(k)?$=!jL(te,k)||P:$=te!==k,$?te!=null?Q(V):y.add(V):te!==void 0&&y.has(V)?Q(V):A.protectedKeys[V]=!0}A.prevProp=R,A.prevResolvedValues=H,A.isActive&&(x={...x,...H}),(r||a)&&e.blockInitialAnimation&&(L=!1);const j=D&&P;L&&(!j||U)&&v.push(...B.map(V=>{const te={type:C};if(typeof V=="string"&&(r||a)&&!j&&e.manuallyAnimateOnMount&&e.parent){const{parent:k}=e,$=Vi(k,V);if(k.enteringChildren&&$){const{delayChildren:se}=$.transition||{};te.delay=aL(k.enteringChildren,e,se)}}return{animation:V,options:te}}))}if(y.size){const N={};if(typeof m.initial!="boolean"){const C=Vi(e,Array.isArray(m.initial)?m.initial[0]:m.initial);C&&C.transition&&(N.transition=C.transition)}y.forEach(C=>{const A=e.getBaseTarget(C),R=e.getValue(C);R&&(R.liveStyle=!0),N[C]=A??null}),v.push({animation:N})}let T=!!v.length;return r&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,a=!1,T?t(v):Promise.resolve()}function d(f,m){var v;if(n[f].isActive===m)return Promise.resolve();(v=e.variantChildren)==null||v.forEach(y=>{var x;return(x=y.animationState)==null?void 0:x.setActive(f,m)}),n[f].isActive=m;const p=u(f);for(const y in n)n[y].protectedKeys={};return p}return{animateChanges:u,setActive:d,setAnimateFunction:i,getState:()=>n,reset:()=>{n=oR(),a=!0}}}function Jee(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jL(t,e):!1}function wi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function oR(){return{animate:wi(!0),whileInView:wi(),whileHover:wi(),whileTap:wi(),whileDrag:wi(),whileFocus:wi(),exit:wi()}}function zb(e,t){e.min=t.min,e.max=t.max}function ua(e,t){zb(e.x,t.x),zb(e.y,t.y)}function iR(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const LL=1e-4,ete=1-LL,tte=1+LL,kL=.01,nte=0-kL,rte=0+kL;function fr(e){return e.max-e.min}function ate(e,t,n){return Math.abs(e-t)<=n}function lR(e,t,n,r=.5){e.origin=r,e.originPoint=At(t.min,t.max,e.origin),e.scale=fr(n)/fr(t),e.translate=At(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ete&&e.scale<=tte||isNaN(e.scale))&&(e.scale=1),(e.translate>=nte&&e.translate<=rte||isNaN(e.translate))&&(e.translate=0)}function pd(e,t,n,r){lR(e.x,t.x,n.x,r?r.originX:void 0),lR(e.y,t.y,n.y,r?r.originY:void 0)}function cR(e,t,n,r=0){const a=r?At(n.min,n.max,r):n.min;e.min=a+t.min,e.max=e.min+fr(t)}function ste(e,t,n,r){cR(e.x,t.x,n.x,r==null?void 0:r.x),cR(e.y,t.y,n.y,r==null?void 0:r.y)}function uR(e,t,n,r=0){const a=r?At(n.min,n.max,r):n.min;e.min=t.min-a,e.max=e.min+fr(t)}function Tp(e,t,n,r){uR(e.x,t.x,n.x,r==null?void 0:r.x),uR(e.y,t.y,n.y,r==null?void 0:r.y)}function dR(e,t,n,r,a){return e-=t,e=Sp(e,1/n,r),a!==void 0&&(e=Sp(e,1/a,r)),e}function ote(e,t=0,n=1,r=.5,a,s=e,i=e){if(ts.test(t)&&(t=parseFloat(t),t=At(i.min,i.max,t/100)-i.min),typeof t!="number")return;let u=At(s.min,s.max,r);e===s&&(u-=t),e.min=dR(e.min,t,n,u,a),e.max=dR(e.max,t,n,u,a)}function fR(e,t,[n,r,a],s,i){ote(e,t[n],t[r],t[a],t.scale,s,i)}const ite=["x","scaleX","originX"],lte=["y","scaleY","originY"];function hR(e,t,n,r){fR(e.x,t,ite,n?n.x:void 0,r?r.x:void 0),fR(e.y,t,lte,n?n.y:void 0,r?r.y:void 0)}function mR(e){return e.translate===0&&e.scale===1}function UL(e){return mR(e.x)&&mR(e.y)}function pR(e,t){return e.min===t.min&&e.max===t.max}function cte(e,t){return pR(e.x,t.x)&&pR(e.y,t.y)}function gR(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function FL(e,t){return gR(e.x,t.x)&&gR(e.y,t.y)}function vR(e){return fr(e.x)/fr(e.y)}function yR(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ga(e){return[e("x"),e("y")]}function ute(e,t,n){let r="";const a=e.x.translate/t.x,s=e.y.translate/t.y,i=(n==null?void 0:n.z)||0;if((a||s||i)&&(r=`translate3d(${a}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:m,pathRotation:p,rotateX:v,rotateY:y,skewX:x,skewY:b}=n;f&&(r=`perspective(${f}px) ${r}`),m&&(r+=`rotate(${m}deg) `),p&&(r+=`rotate(${p}deg) `),v&&(r+=`rotateX(${v}deg) `),y&&(r+=`rotateY(${y}deg) `),x&&(r+=`skewX(${x}deg) `),b&&(r+=`skewY(${b}deg) `)}const u=e.x.scale*t.x,d=e.y.scale*t.y;return(u!==1||d!==1)&&(r+=`scale(${u}, ${d})`),r||"none"}const BL=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],dte=BL.length,xR=e=>typeof e=="string"?parseFloat(e):e,bR=e=>typeof e=="number"||Te.test(e);function fte(e,t,n,r,a,s){a?(e.opacity=At(0,n.opacity??1,hte(r)),e.opacityExit=At(t.opacity??1,0,mte(r))):s&&(e.opacity=At(t.opacity??1,n.opacity??1,r));for(let i=0;i<dte;i++){const u=BL[i];let d=ER(t,u),f=ER(n,u);if(d===void 0&&f===void 0)continue;d||(d=0),f||(f=0),d===0||f===0||bR(d)===bR(f)?(e[u]=Math.max(At(xR(d),xR(f),r),0),(ts.test(f)||ts.test(d))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=At(t.rotate||0,n.rotate||0,r))}function ER(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const hte=HL(0,.5,Dj),mte=HL(.5,.95,na);function HL(e,t,n){return r=>r<e?0:r>t?1:n(Od(e,t,r))}function pte(e,t,n){const r=Vn(e)?e:_c(e);return r.start(hS("",r,t,n)),r.animation}function Pd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const gte=(e,t)=>e.depth-t.depth;class vte{constructor(){this.children=[],this.isDirty=!1}add(t){eS(this.children,t),this.isDirty=!0}remove(t){pp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(gte),this.isDirty=!1,this.children.forEach(t)}}function yte(e,t){const n=dr.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(Go(r),e(s-t))};return Rt.setup(r,!0),()=>Go(r)}function Hm(e){return Vn(e)?e.get():e}class xte{constructor(){this.members=[]}add(t){eS(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const a=r.instance;(!a||a.isConnected===!1)&&!r.snapshot&&(pp(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(pp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const a=this.members[r];if(a.isPresent!==!1&&((n=a.instance)==null?void 0:n.isConnected)!==!1)return this.promote(a),!0}return!1}promote(t,n){var a;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=r.options,{layoutDependency:i}=t.options;(s===void 0||s!==i)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(a=t.root)!=null&&a.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,a,s,i;(r=(n=t.options).onExitComplete)==null||r.call(n),(i=(a=t.resumingFrom)==null?void 0:(s=a.options).onExitComplete)==null||i.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Vm={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$y=["","X","Y","Z"],bte=1e3;let Ete=0;function qy(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function VL(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=cL(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Rt,!(a||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&VL(r)}function GL({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(i={},u=t==null?void 0:t()){this.id=Ete++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Nte),this.nodes.forEach(Mte),this.nodes.forEach(Ote),this.nodes.forEach(wte)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new vte)}addEventListener(i,u){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new nS),this.eventHandlers.get(i).add(u)}notifyListeners(i,...u){const d=this.eventHandlers.get(i);d&&d.notify(...u)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=yS(i)&&!Tee(i),this.instance=i;const{layoutId:u,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||u)&&(this.isLayoutDirty=!0),e){let m,p=0;const v=()=>this.root.updateBlockedByResize=!1;Rt.read(()=>{p=window.innerWidth}),e(i,()=>{const y=window.innerWidth;y!==p&&(p=y,this.root.updateBlockedByResize=!0,m&&m(),m=yte(v,250),Vm.hasAnimatedSinceResize&&(Vm.hasAnimatedSinceResize=!1,this.nodes.forEach(NR)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||f.getDefaultTransition()||Lte,{onLayoutAnimationStart:b,onLayoutAnimationComplete:T}=f.getProps(),N=!this.targetLayout||!FL(this.targetLayout,y),C=!p&&v;if(this.options.layoutRoot||this.resumeFrom||C||p&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...fS(x,"layout"),onPlay:b,onComplete:T};(f.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(m,C,A.path)}else p||NR(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Go(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(Dte),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&VL(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const p=this.path[m];p.shouldResetTransform=!0,(typeof p.latestValues.x=="string"||typeof p.latestValues.y=="string")&&(p.isLayoutDirty=!0),p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:u,layout:d}=this.options;if(u===void 0&&!d)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const d=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),d&&this.nodes.forEach(Ate),this.nodes.forEach(SR);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(TR);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(_te),this.nodes.forEach(Rte),this.nodes.forEach(Ste),this.nodes.forEach(Tte)):this.nodes.forEach(TR),this.clearAllSnapshots();const u=dr.now();Un.delta=is(0,1e3/60,u-Un.timestamp),Un.timestamp=u,Un.isProcessing=!0,Uy.update.process(Un),Uy.preRender.process(Un),Uy.render.process(Un),Un.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gS.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Cte),this.sharedNodes.forEach(Ite)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Rt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!fr(this.snapshot.measuredBox.x)&&!fr(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 d=0;d<this.path.length;d++)this.path[d].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=xn()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(u=!1),u&&this.instance){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!a)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!UL(this.projectionDelta),d=this.getTransformTemplate(),f=d?d(this.latestValues,""):void 0,m=f!==this.prevTransformTemplateValue;i&&this.instance&&(u||Ci(this.latestValues)||m)&&(a(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const u=this.measurePageBox();let d=this.removeElementScroll(u);return i&&(d=this.removeTransform(d)),kte(d),{animationId:this.root.animationId,measuredBox:u,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:i}=this.options;if(!i)return xn();const u=i.measureViewportBox();if(!(((f=this.scroll)==null?void 0:f.wasRoot)||this.path.some(Ute))){const{scroll:m}=this.root;m&&(Ka(u.x,m.offset.x),Ka(u.y,m.offset.y))}return u}removeElementScroll(i){var d;const u=xn();if(ua(u,i),(d=this.scroll)!=null&&d.wasRoot)return u;for(let f=0;f<this.path.length;f++){const m=this.path[f],{scroll:p,options:v}=m;m!==this.root&&p&&v.layoutScroll&&(p.wasRoot&&ua(u,i),Ka(u.x,p.offset.x),Ka(u.y,p.offset.y))}return u}applyTransform(i,u=!1,d){var m,p;const f=d||xn();ua(f,i);for(let v=0;v<this.path.length;v++){const y=this.path[v];!u&&y.options.layoutScroll&&y.scroll&&y!==y.root&&(Ka(f.x,-y.scroll.offset.x),Ka(f.y,-y.scroll.offset.y)),Ci(y.latestValues)&&Bm(f,y.latestValues,(m=y.layout)==null?void 0:m.layoutBox)}return Ci(this.latestValues)&&Bm(f,this.latestValues,(p=this.layout)==null?void 0:p.layoutBox),f}removeTransform(i){var d;const u=xn();ua(u,i);for(let f=0;f<this.path.length;f++){const m=this.path[f];if(!Ci(m.latestValues))continue;let p;m.instance&&(Hb(m.latestValues)&&m.updateSnapshot(),p=xn(),ua(p,m.measurePageBox())),hR(u,m.latestValues,(d=m.snapshot)==null?void 0:d.layoutBox,p)}return Ci(this.latestValues)&&hR(u,this.latestValues),u}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==Un.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var y;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(i||d&&this.isSharedProjectionDirty||this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!this.layout||!(m||p))return;this.resolvedRelativeTargetAt=Un.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=xn(),this.targetWithTransforms=xn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ste(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ua(this.target,this.layout.layoutBox),CL(this.target,this.targetDelta)):ua(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Hb(this.parent.latestValues)||wL(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,u,d){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xn(),this.relativeTargetOrigin=xn(),Tp(this.relativeTargetOrigin,u,d,this.options.layoutAnchor||void 0),ua(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var x;const i=this.getLead(),u=!!this.resumingFrom||this!==i;let d=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Un.timestamp&&(d=!1),d)return;const{layout:f,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||m))return;ua(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,v=this.treeScale.y;Pee(this.layoutCorrected,this.treeScale,this.path,u),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=xn());const{target:y}=i;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(iR(this.prevProjectionDelta.x,this.projectionDelta.x),iR(this.prevProjectionDelta.y,this.projectionDelta.y)),pd(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==v||!yR(this.projectionDelta.x,this.prevProjectionDelta.x)||!yR(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){var u;if((u=this.options.visualElement)==null||u.scheduleRender(),i){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=rc(),this.projectionDelta=rc(),this.projectionDeltaWithTransform=rc()}setAnimationOrigin(i,u=!1,d){const f=this.snapshot,m=f?f.latestValues:{},p={...this.latestValues},v=rc();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const y=xn(),x=f?f.source:void 0,b=this.layout?this.layout.source:void 0,T=x!==b,N=this.getStack(),C=!N||N.members.length<=1,A=!!(T&&!C&&this.options.crossfade===!0&&!this.path.some(jte));this.animationProgress=0;let R;const _=d==null?void 0:d.interpolateProjection(i);this.mixTargetDelta=O=>{const D=O/1e3,P=_==null?void 0:_(D);P?(v.x.translate=P.x,v.x.scale=At(i.x.scale,1,D),v.x.origin=i.x.origin,v.x.originPoint=i.x.originPoint,v.y.translate=P.y,v.y.scale=At(i.y.scale,1,D),v.y.origin=i.y.origin,v.y.originPoint=i.y.originPoint):(wR(v.x,i.x,D),wR(v.y,i.y,D)),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Tp(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Pte(this.relativeTarget,this.relativeTargetOrigin,y,D),R&&cte(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=xn()),ua(R,this.relativeTarget)),T&&(this.animationValues=p,fte(p,m,this.latestValues,D,A,C)),P&&P.rotate!==void 0&&(this.animationValues||(this.animationValues=p),this.animationValues.pathRotation=P.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=D},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){var u,d,f;this.notifyListeners("animationStart"),(u=this.currentAnimation)==null||u.stop(),(f=(d=this.resumingFrom)==null?void 0:d.currentAnimation)==null||f.stop(),this.pendingAnimation&&(Go(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Rt.update(()=>{Vm.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_c(0)),this.motionValue.jump(0,!1),this.currentAnimation=pte(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),i.onUpdate&&i.onUpdate(m)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(bte),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:u,target:d,layout:f,latestValues:m}=i;if(!(!u||!d||!f)){if(this!==i&&this.layout&&f&&zL(this.options.animationType,this.layout.layoutBox,f.layoutBox)){d=this.target||xn();const p=fr(this.layout.layoutBox.x);d.x.min=i.target.x.min,d.x.max=d.x.min+p;const v=fr(this.layout.layoutBox.y);d.y.min=i.target.y.min,d.y.max=d.y.min+v}ua(u,d),Bm(u,m),pd(this.projectionDeltaWithTransform,this.layoutCorrected,u,m)}}registerSharedNode(i,u){this.sharedNodes.has(i)||this.sharedNodes.set(i,new xte),this.sharedNodes.get(i).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var u;const{layoutId:i}=this.options;return i?((u=this.getStack())==null?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:i}=this.options;return i?(u=this.getStack())==null?void 0:u.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:u,preserveFollowOpacity:d}={}){const f=this.getStack();f&&f.promote(this,d),i&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let u=!1;const{latestValues:d}=i;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(u=!0),!u)return;const f={};d.z&&qy("z",i,f,this.animationValues);for(let m=0;m<$y.length;m++)qy(`rotate${$y[m]}`,i,f,this.animationValues),qy(`skew${$y[m]}`,i,f,this.animationValues);i.render();for(const m in f)i.setStaticValue(m,f[m]),this.animationValues&&(this.animationValues[m]=f[m]);i.scheduleRender()}applyProjectionStyles(i,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const d=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=Hm(u==null?void 0:u.pointerEvents)||"",i.transform=d?d(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=Hm(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!Ci(this.latestValues)&&(i.transform=d?d({},""):"none",this.hasProjected=!1);return}i.visibility="";const m=f.animationValues||f.latestValues;this.applyTransformsToTarget();let p=ute(this.projectionDeltaWithTransform,this.treeScale,m);d&&(p=d(m,p)),i.transform=p;const{x:v,y}=this.projectionDelta;i.transformOrigin=`${v.origin*100}% ${y.origin*100}% 0`,f.animationValues?i.opacity=f===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:i.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const x in Gb){if(m[x]===void 0)continue;const{correct:b,applyTo:T,isCSSVariable:N}=Gb[x],C=p==="none"?m[x]:b(m[x],f);if(T){const A=T.length;for(let R=0;R<A;R++)i[T[R]]=C}else N?this.options.visualElement.renderState.vars[x]=C:i[x]=C}this.options.layoutId&&(i.pointerEvents=f===this?Hm(u==null?void 0:u.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var u;return(u=i.currentAnimation)==null?void 0:u.stop()}),this.root.nodes.forEach(SR),this.root.sharedNodes.clear()}}}function Ste(e){e.updateLayout()}function Tte(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,i=t.source!==e.layout.source;if(s==="size")Ga(p=>{const v=i?t.measuredBox[p]:t.layoutBox[p],y=fr(v);v.min=r[p].min,v.max=v.min+y});else if(s==="x"||s==="y"){const p=s==="x"?"y":"x";zb(i?t.measuredBox[p]:t.layoutBox[p],r[p])}else zL(s,t.layoutBox,r)&&Ga(p=>{const v=i?t.measuredBox[p]:t.layoutBox[p],y=fr(r[p]);v.max=v.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+y)});const u=rc();pd(u,r,t.layoutBox);const d=rc();i?pd(d,e.applyTransform(a,!0),t.measuredBox):pd(d,r,t.layoutBox);const f=!UL(u);let m=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:v,layout:y}=p;if(v&&y){const x=e.options.layoutAnchor||void 0,b=xn();Tp(b,t.layoutBox,v.layoutBox,x);const T=xn();Tp(T,r,y.layoutBox,x),FL(b,T)||(m=!0),p.options.layoutRoot&&(e.relativeTarget=T,e.relativeTargetOrigin=b,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:d,layoutDelta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Nte(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 wte(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Cte(e){e.clearSnapshot()}function SR(e){e.clearMeasurements()}function Ate(e){e.isLayoutDirty=!0,e.updateLayout()}function TR(e){e.isLayoutDirty=!1}function _te(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Rte(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function NR(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Mte(e){e.resolveTargetDelta()}function Ote(e){e.calcProjection()}function Dte(e){e.resetSkewAndRotation()}function Ite(e){e.removeLeadSnapshot()}function wR(e,t,n){e.translate=At(t.translate,0,n),e.scale=At(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function CR(e,t,n,r){e.min=At(t.min,n.min,r),e.max=At(t.max,n.max,r)}function Pte(e,t,n,r){CR(e.x,t.x,n.x,r),CR(e.y,t.y,n.y,r)}function jte(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Lte={duration:.45,ease:[.4,0,.1,1]},AR=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),_R=AR("applewebkit/")&&!AR("chrome/")?Math.round:na;function RR(e){e.min=_R(e.min),e.max=_R(e.max)}function kte(e){RR(e.x),RR(e.y)}function zL(e,t,n){return e==="position"||e==="preserve-aspect"&&!ate(vR(t),vR(n),.2)}function Ute(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Fte=GL({attachResizeListener:(e,t)=>Pd(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Yy={current:void 0},$L=GL({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Yy.current){const e=new Fte({});e.mount(window),e.setOptions({layoutScroll:!0}),Yy.current=e}return Yy.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),qL=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Bte(e=!0){const t=S.useContext(J1);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=S.useId();S.useEffect(()=>{if(e)return a(s)},[e]);const i=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,i]:[!0]}const YL=S.createContext({strict:!1}),MR={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let OR=!1;function Hte(){if(OR)return;const e={};for(const t in MR)e[t]={isEnabled:n=>MR[t].some(r=>!!n[r])};SL(e),OR=!0}function WL(){return Hte(),Mee()}function Vte(e){const t=WL();for(const n in e)t[n]={...t[n],...e[n]};SL(t)}const Gte=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Np(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Gte.has(e)}let KL=e=>!Np(e);function zte(e){typeof e=="function"&&(KL=t=>t.startsWith("on")?!Np(t):e(t))}try{zte(require("@emotion/is-prop-valid").default)}catch{}function $te(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||Vn(e[a])||(KL(a)||n===!0&&Np(a)||!t&&!Np(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const vg=S.createContext({});function qte(e,t){if(gg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Id(n)?n:void 0,animate:Id(r)?r:void 0}}return e.inherit!==!1?t:{}}function Yte(e){const{initial:t,animate:n}=qte(e,S.useContext(vg));return S.useMemo(()=>({initial:t,animate:n}),[DR(t),DR(n)])}function DR(e){return Array.isArray(e)?e.join(" "):e}const TS=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function XL(e,t,n){for(const r in t)!Vn(t[r])&&!RL(r,n)&&(e[r]=t[r])}function Wte({transformTemplate:e},t){return S.useMemo(()=>{const n=TS();return ES(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Kte(e,t){const n=e.style||{},r={};return XL(r,n,e),Object.assign(r,Wte(e,t)),r}function Xte(e,t){const n={},r=Kte(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 QL=()=>({...TS(),attrs:{}});function Qte(e,t,n,r){const a=S.useMemo(()=>{const s=QL();return ML(s,t,DL(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};XL(s,e.style,e),a.style={...s,...a.style}}return a}const Zte=["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 NS(e){return typeof e!="string"||e.includes("-")?!1:!!(Zte.indexOf(e)>-1||/[A-Z]/u.test(e))}function Jte(e,t,n,{latestValues:r},a,s=!1,i){const d=(i??NS(e)?Qte:Xte)(t,r,a,e),f=$te(t,typeof e=="string",s),m=e!==S.Fragment?{...f,...d,ref:n}:{},{children:p}=t,v=S.useMemo(()=>Vn(p)?p.get():p,[p]);return S.createElement(e,{...m,children:v})}function ene({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:tne(n,r,a,e),renderState:t()}}function tne(e,t,n,r){const a={},s=r(e,{});for(const v in s)a[v]=Hm(s[v]);let{initial:i,animate:u}=e;const d=gg(e),f=bL(e);t&&f&&!d&&e.inherit!==!1&&(i===void 0&&(i=t.initial),u===void 0&&(u=t.animate));let m=n?n.initial===!1:!1;m=m||i===!1;const p=m?u:i;if(p&&typeof p!="boolean"&&!pg(p)){const v=Array.isArray(p)?p:[p];for(let y=0;y<v.length;y++){const x=mS(e,v[y]);if(x){const{transitionEnd:b,transition:T,...N}=x;for(const C in N){let A=N[C];if(Array.isArray(A)){const R=m?A.length-1:0;A=A[R]}A!==null&&(a[C]=A)}for(const C in b)a[C]=b[C]}}}return a}const ZL=e=>(t,n)=>{const r=S.useContext(vg),a=S.useContext(J1),s=()=>ene(e,t,r,a);return n?s():JQ(s)},nne=ZL({scrapeMotionValuesFromProps:SS,createRenderState:TS}),rne=ZL({scrapeMotionValuesFromProps:IL,createRenderState:QL}),ane=Symbol.for("motionComponentSymbol");function sne(e,t,n){const r=S.useRef(n);S.useInsertionEffect(()=>{r.current=n});const a=S.useRef(null);return S.useCallback(s=>{var u;s&&((u=e.onMount)==null||u.call(e,s)),t&&(s?t.mount(s):t.unmount());const i=r.current;if(typeof i=="function")if(s){const d=i(s);typeof d=="function"&&(a.current=d)}else a.current?(a.current(),a.current=null):i(s);else i&&(i.current=s)},[t])}const JL=S.createContext({});function Zl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function one(e,t,n,r,a,s){var A,R;const{visualElement:i}=S.useContext(vg),u=S.useContext(YL),d=S.useContext(J1),f=S.useContext(qL),m=f.reducedMotion,p=f.skipAnimations,v=S.useRef(null),y=S.useRef(!1);r=r||u.renderer,!v.current&&r&&(v.current=r(e,{visualState:t,parent:i,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:m,skipAnimations:p,isSVG:s}),y.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const x=v.current,b=S.useContext(JL);x&&!x.projection&&a&&(x.type==="html"||x.type==="svg")&&ine(v.current,n,a,b);const T=S.useRef(!1);S.useInsertionEffect(()=>{x&&T.current&&x.update(n,d)});const N=n[lL],C=S.useRef(!!N&&typeof window<"u"&&!((A=window.MotionHandoffIsComplete)!=null&&A.call(window,N))&&((R=window.MotionHasOptimisedAnimation)==null?void 0:R.call(window,N)));return tZ(()=>{y.current=!0,x&&(T.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),C.current&&x.animationState&&x.animationState.animateChanges())}),S.useEffect(()=>{x&&(!C.current&&x.animationState&&x.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)==null||_.call(window,N)}),C.current=!1),x.enteringChildren=void 0)}),x}function ine(e,t,n,r){const{layoutId:a,layout:s,drag:i,dragConstraints:u,layoutScroll:d,layoutRoot:f,layoutAnchor:m,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:e5(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!i||u&&Zl(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:d,layoutRoot:f,layoutAnchor:m})}function e5(e){if(e)return e.options.allowProjection!==!1?e.projection:e5(e.parent)}function Wy(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&Vte(r);const s=n?n==="svg":NS(e),i=s?rne:nne;function u(f,m){let p;const v={...S.useContext(qL),...f,layoutId:lne(f)},{isStatic:y}=v,x=Yte(f),b=i(f,y);if(!y&&typeof window<"u"){cne();const T=une(v);p=T.MeasureLayout,x.visualElement=one(e,b,v,a,T.ProjectionNode,s)}return c.jsxs(vg.Provider,{value:x,children:[p&&x.visualElement?c.jsx(p,{visualElement:x.visualElement,...v}):null,Jte(e,f,sne(b,x.visualElement,m),b,y,t,s)]})}u.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const d=S.forwardRef(u);return d[ane]=e,d}function lne({layoutId:e}){const t=S.useContext(bj).id;return t&&e!==void 0?t+"-"+e:e}function cne(e,t){S.useContext(YL).strict}function une(e){const t=WL(),{drag:n,layout:r}=t;if(!n&&!r)return{};const a={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function dne(e,t){if(typeof Proxy>"u")return Wy;const n=new Map,r=(s,i)=>Wy(s,i,e,t),a=(s,i)=>r(s,i);return new Proxy(a,{get:(s,i)=>i==="create"?r:(n.has(i)||n.set(i,Wy(i,void 0,e,t)),n.get(i))})}const fne=(e,t)=>t.isSVG??NS(e)?new Yee(t):new Hee(t,{allowProjection:e!==S.Fragment});class hne extends ei{constructor(t){super(t),t.animationState||(t.animationState=Zee(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();pg(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 mne=0;class pne extends ei{constructor(){super(...arguments),this.id=mne++,this.isExitComplete=!1}update(){var s;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:i,custom:u}=this.node.getProps();if(typeof i=="string"||typeof i=="object"&&i!==null&&!Array.isArray(i)){const d=Vi(this.node,i,u);if(d){const{transition:f,transitionEnd:m,...p}=d;for(const v in p)(s=this.node.getValue(v))==null||s.jump(p[v])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const gne={animation:{Feature:hne},exit:{Feature:pne}};function xf(e){return{point:{x:e.pageX,y:e.pageY}}}const vne=e=>t=>vS(t)&&e(t,xf(t));function gd(e,t,n,r){return Pd(e,t,vne(n),r)}const t5=({current:e})=>e?e.ownerDocument.defaultView:null,IR=(e,t)=>Math.abs(e-t);function yne(e,t){const n=IR(e.x,t.x),r=IR(e.y,t.y);return Math.sqrt(n**2+r**2)}const PR=new Set(["auto","scroll"]);class n5{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:s=!1,distanceThreshold:i=3,element:u}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=y=>{this.handleScroll(y.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=pm(this.lastRawMoveEventInfo,this.transformPagePoint));const y=Ky(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,b=yne(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!b)return;const{point:T}=y,{timestamp:N}=Un;this.history.push({...T,timestamp:N});const{onStart:C,onMove:A}=this.handlers;x||(C&&C(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,y)},this.handlePointerMove=(y,x)=>{this.lastMoveEvent=y,this.lastRawMoveEventInfo=x,this.lastMoveEventInfo=pm(x,this.transformPagePoint),Rt.update(this.updatePoint,!0)},this.handlePointerUp=(y,x)=>{this.end();const{onEnd:b,onSessionEnd:T,resumeAnimation:N}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&N&&N(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Ky(y.type==="pointercancel"?this.lastMoveEventInfo:pm(x,this.transformPagePoint),this.history);this.startEvent&&b&&b(y,C),T&&T(y,C)},!vS(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=a||window;const d=xf(t),f=pm(d,this.transformPagePoint),{point:m}=f,{timestamp:p}=Un;this.history=[{...m,timestamp:p}];const{onSessionStart:v}=n;v&&v(t,Ky(f,this.history)),this.removeListeners=gf(gd(this.contextWindow,"pointermove",this.handlePointerMove),gd(this.contextWindow,"pointerup",this.handlePointerUp),gd(this.contextWindow,"pointercancel",this.handlePointerUp)),u&&this.startScrollTracking(u)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(PR.has(r.overflowX)||PR.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,a=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:a.x-n.x,y:a.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,a),Rt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Go(this.updatePoint)}}function pm(e,t){return t?{point:t(e.point)}:e}function jR(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ky({point:e},t){return{point:e,delta:jR(e,r5(t)),offset:jR(e,xne(t)),velocity:bne(t,.1)}}function xne(e){return e[0]}function r5(e){return e[e.length-1]}function bne(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=r5(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Ur(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&a.timestamp-r.timestamp>Ur(t)*2&&(r=e[1]);const s=Jr(a.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const i={x:(a.x-r.x)/s,y:(a.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Ene(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?At(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?At(n,e,r.max):Math.min(e,n)),e}function LR(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 Sne(e,{top:t,left:n,bottom:r,right:a}){return{x:LR(e.x,n,a),y:LR(e.y,t,r)}}function kR(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 Tne(e,t){return{x:kR(e.x,t.x),y:kR(e.y,t.y)}}function Nne(e,t){let n=.5;const r=fr(e),a=fr(t);return a>r?n=Od(t.min,t.max-r,e.min):r>a&&(n=Od(e.min,e.max-a,t.min)),is(0,1,n)}function wne(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 $b=.35;function Cne(e=$b){return e===!1?e=0:e===!0&&(e=$b),{x:UR(e,"left","right"),y:UR(e,"top","bottom")}}function UR(e,t,n){return{min:FR(e,t),max:FR(e,n)}}function FR(e,t){return typeof e=="number"?e:e[t]||0}const Ane=new WeakMap;class _ne{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=xn(),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=p=>{n&&this.snapToCursor(xf(p).point),this.stopAnimation()},i=(p,v)=>{const{drag:y,dragPropagation:x,onDragStart:b}=this.getProps();if(y&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=oee(y),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ga(N=>{let C=this.getAxisMotionValue(N).get()||0;if(ts.test(C)){const{projection:A}=this.visualElement;if(A&&A.layout){const R=A.layout.layoutBox[N];R&&(C=fr(R)*(parseFloat(C)/100))}}this.originPoint[N]=C}),b&&Rt.update(()=>b(p,v),!1,!0),jb(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},u=(p,v)=>{this.latestPointerEvent=p,this.latestPanInfo=v;const{dragPropagation:y,dragDirectionLock:x,onDirectionLock:b,onDrag:T}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:N}=v;if(x&&this.currentDirection===null){this.currentDirection=Mne(N),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",v.point,N),this.updateAxis("y",v.point,N),this.visualElement.render(),T&&Rt.update(()=>T(p,v),!1,!0)},d=(p,v)=>{this.latestPointerEvent=p,this.latestPanInfo=v,this.stop(p,v),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>{const{dragSnapToOrigin:p}=this.getProps();(p||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();this.panSession=new n5(t,{onSessionStart:s,onStart:i,onMove:u,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:t5(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!a||!r)return;const{velocity:i}=a;this.startAnimation(i);const{onDragEnd:u}=this.getProps();u&&Rt.postRender(()=>u(r,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!gm(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=Ene(i,this.constraints[t],this.elastic[t])),s.set(i)}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&&Zl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Sne(r.layoutBox,t):this.constraints=!1,this.elastic=Cne(n),a!==this.constraints&&!Zl(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Ga(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=wne(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Zl(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;a.root&&(a.root.scroll=void 0,a.root.updateScroll());const s=jee(r,a.root,this.visualElement.getTransformPagePoint());let i=Tne(a.layout.layoutBox,s);if(n){const u=n(Dee(i));this.hasMutatedConstraints=!!u,u&&(i=NL(u))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:u}=this.getProps(),d=this.constraints||{},f=Ga(m=>{if(!gm(m,n,this.currentDirection))return;let p=d&&d[m]||{};(i===!0||i===m)&&(p={min:0,max:0});const v=a?200:1e6,y=a?40:1e7,x={type:"inertia",velocity:r?t[m]:0,bounceStiffness:v,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(m,x)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return jb(this.visualElement,t),r.start(hS(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ga(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps()[n];return a||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Ga(n=>{const{drag:r}=this.getProps();if(!gm(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(n);if(a&&a.layout){const{min:i,max:u}=a.layout.layoutBox[n],d=s.get()||0;s.set(t[n]-At(i,u,.5)+d)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Zl(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Ga(i=>{const u=this.getAxisMotionValue(i);if(u&&this.constraints!==!1){const d=u.get();a[i]=Nne({min:d,max:d},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ga(i=>{if(!gm(i,t,null))return;const u=this.getAxisMotionValue(i),{min:d,max:f}=this.constraints[i];u.set(At(d,f,a[i]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Ane.set(this.visualElement,this);const t=this.visualElement.current,n=gd(t,"pointerdown",f=>{const{drag:m,dragListener:p=!0}=this.getProps(),v=f.target,y=v!==t&&fee(v);m&&p&&!y&&this.start(f)});let r;const a=()=>{const{dragConstraints:f}=this.getProps();Zl(f)&&f.current&&(this.constraints=this.resolveRefConstraints(),r||(r=Rne(t,f.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,i=s.addEventListener("measure",a);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Rt.read(a);const u=Pd(window,"resize",()=>this.scalePositionWithinConstraints()),d=s.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m})=>{this.isDragging&&m&&(Ga(p=>{const v=this.getAxisMotionValue(p);v&&(this.originPoint[p]+=f[p].translate,v.set(v.get()+f[p].translate))}),this.visualElement.render())});return()=>{u(),n(),i(),d&&d(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:s=!1,dragElastic:i=$b,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:s,dragElastic:i,dragMomentum:u}}}function BR(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Rne(e,t,n){const r=K_(e,BR(n)),a=K_(t,BR(n));return()=>{r(),a()}}function gm(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Mne(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class One extends ei{constructor(t){super(t),this.removeGroupControls=na,this.removeListeners=na,this.controls=new _ne(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||na}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Xy=e=>(t,n)=>{e&&Rt.update(()=>e(t,n),!1,!0)};class Dne extends ei{constructor(){super(...arguments),this.removePointerDownListener=na}onPointerDown(t){this.session=new n5(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:t5(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:Xy(t),onStart:Xy(n),onMove:Xy(r),onEnd:(s,i)=>{delete this.session,a&&Rt.postRender(()=>a(s,i))}}}mount(){this.removePointerDownListener=gd(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Qy=!1;class Ine extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&a&&r.register(s),Qy&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Vm.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:s}=this.props,{projection:i}=r;return i&&(i.isPresent=s,t.layoutDependency!==n&&i.setOptions({...i.options,layoutDependency:n}),Qy=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==s?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||Rt.postRender(()=>{const u=i.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),gS.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;Qy=!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 a5(e){const[t,n]=Bte(),r=S.useContext(bj);return c.jsx(Ine,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(JL),isPresent:t,safeToRemove:n})}const Pne={pan:{Feature:Dne},drag:{Feature:One,ProjectionNode:$L,MeasureLayout:a5}};function HR(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&&Rt.postRender(()=>s(t,xf(t)))}class jne extends ei{mount(){const{current:t}=this.node;t&&(this.unmount=lee(t,(n,r)=>(HR(this.node,r,"Start"),a=>HR(this.node,a,"End"))))}unmount(){}}class Lne extends ei{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=gf(Pd(this.node.current,"focus",()=>this.onFocus()),Pd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function VR(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&&Rt.postRender(()=>s(t,xf(t)))}class kne extends ei{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=mee(t,(a,s)=>(VR(this.node,s,"Start"),(i,{success:u})=>VR(this.node,i,u?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const qb=new WeakMap,Zy=new WeakMap,Une=e=>{const t=qb.get(e.target);t&&t(e)},Fne=e=>{e.forEach(Une)};function Bne({root:e,...t}){const n=e||document;Zy.has(n)||Zy.set(n,{});const r=Zy.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(Fne,{root:e,...t})),r[a]}function Hne(e,t,n){const r=Bne(t);return qb.set(e,n),r.observe(e),()=>{qb.delete(e),r.unobserve(e)}}const Vne={some:0,all:1};class Gne extends ei{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var d;(d=this.stopObserver)==null||d.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:s}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:Vne[a]},u=f=>{const{isIntersecting:m}=f;if(this.isInView===m||(this.isInView=m,s&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:p,onViewportLeave:v}=this.node.getProps(),y=m?p:v;y&&y(f)};this.stopObserver=Hne(this.node.current,i,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(zne(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function zne({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const $ne={inView:{Feature:Gne},tap:{Feature:kne},focus:{Feature:Lne},hover:{Feature:jne}},qne={layout:{ProjectionNode:$L,MeasureLayout:a5}},Yne={...gne,...$ne,...Pne,...qne},vd=dne(Yne,fne),GR="fap_attendance_summary_cache",Wne=2*60*60*1e3,Kne=({subjectCode:e})=>{const[t,n]=S.useState(null),[r,a]=S.useState(!1);if(S.useEffect(()=>{(async()=>{const f=localStorage.getItem(GR);if(f)try{const m=JSON.parse(f);if(Date.now()-m.timestamp<Wne&&m.summary[e]){n(m.summary[e]);return}}catch(m){console.error("Failed to parse attendance cache:",m)}try{const m=await fetch("/Report/ViewAttendstudent.aspx");if(!m.ok)return;const p=await m.text(),y=new DOMParser().parseFromString(p,"text/html").querySelector("#ctl00_mainContent_divCourse table");if(!y)return;const x=Array.from(y.querySelectorAll('a[href*="ViewAttendstudent.aspx"]')),b={};await Promise.all(x.map(async T=>{var N;try{const C=T.getAttribute("href");if(!C)return;const A=(N=T.textContent)==null?void 0:N.match(/\(([^)]+)\)/),R=A?A[1].trim():"";if(!R)return;const _=await fetch(C);if(!_.ok)return;const O=await _.text(),P=new DOMParser().parseFromString(O,"text/html").querySelector(".table1");if(P){const L=Array.from(P.rows),U=L.slice(2,L.length-1);let B=0,H=U.length;U.forEach(Q=>{var Y;const j=Q.cells[6];j&&((Y=j.textContent)==null?void 0:Y.trim().toLowerCase())==="absent"&&B++});const Z=Math.floor(H*.2),ee=Z-B;b[R]={subjectCode:R,total:H,absent:B,maxAllowed:Z,remaining:ee}}}catch(C){console.error("Error parsing single course attendance:",C)}})),localStorage.setItem(GR,JSON.stringify({summary:b,timestamp:Date.now()})),b[e]&&n(b[e])}catch(m){console.error("Failed to fetch attendance background summary:",m)}})()},[e]),!t)return null;const s=t.remaining<=1,i=t.remaining<=0,u=i?"text-rose-400 bg-rose-500/10 border-rose-500/20":s?"text-rose-400 bg-rose-500/10 border-rose-500/20 animate-pulse":"text-accent bg-accent/10 border-accent/20";return c.jsxs("div",{className:"relative mt-2",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[c.jsx("div",{className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-bold font-mono border ${u} transition-all duration-300 select-none cursor-help`,children:i?c.jsxs(c.Fragment,{children:[c.jsx(Sd,{className:"size-3 shrink-0"}),"Hết buổi nghỉ! Nguy hiểm"]}):s?c.jsxs(c.Fragment,{children:[c.jsx(Sd,{className:"size-3 shrink-0 animate-bounce"}),"Còn 1 buổi, cẩn thận!"]}):c.jsxs(c.Fragment,{children:[c.jsx(qV,{className:"size-3 shrink-0 text-accent"}),"Còn ",t.remaining," buổi nghỉ"]})}),r&&c.jsxs("div",{className:"absolute left-0 bottom-full mb-1.5 z-20 w-max max-w-xs bg-slate-950/95 border border-white/10 rounded-lg p-2 text-[10px] font-mono text-slate-300 shadow-xl backdrop-blur-md",children:[c.jsx("div",{className:"font-bold text-white border-b border-white/10 pb-1 mb-1",children:"Chi tiết Điểm danh:"}),c.jsxs("div",{children:["• Số buổi vắng: ",c.jsx("span",{className:"text-rose-400 font-bold",children:t.absent}),"/",t.total," slot"]}),c.jsxs("div",{children:["• Giới hạn 20%: tối đa ",t.maxAllowed," slot"]}),c.jsxs("div",{className:`font-bold mt-0.5 ${t.remaining<=1?"text-rose-400":"text-accent"}`,children:["• Còn lại được phép vắng: ",t.remaining," slot"]})]})]})},Xne=Mt("flex flex-col fixed outline-0 z-50 border border-white/15 bg-[#131520] p-6 shadow-[0_16px_50px_rgba(0,0,0,0.5)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 rounded-3xl",{variants:{variant:{default:"left-[50%] top-[50%] max-w-lg translate-x-[-50%] translate-y-[-50%] w-full",fullscreen:"inset-5"}},defaultVariants:{variant:"default"}});function bf({...e}){return c.jsx(JE,{"data-slot":"dialog",...e})}function Qne({...e}){return c.jsx(e1,{"data-slot":"dialog-portal",...e})}function Zne({...e}){return c.jsx(Xp,{"data-slot":"dialog-close",...e})}function Jne({className:e,...t}){return c.jsx(t1,{"data-slot":"dialog-overlay",className:X("fixed inset-0 z-50 bg-black/30 [backdrop-filter:blur(4px)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t})}function Ef({className:e,children:t,close:n=!0,overlay:r=!0,variant:a,...s}){return c.jsxs(Qne,{children:[r&&c.jsx(Jne,{}),c.jsxs(n1,{"data-slot":"dialog-content",className:X(Xne({variant:a}),e),...s,children:[c.jsx(Wp,{className:"sr-only",children:"Notification"}),c.jsx(Kp,{className:"sr-only",children:"Dialog information details"}),t,n&&c.jsxs(Zne,{className:"cursor-pointer outline-0 absolute end-5 top-5 rounded-sm opacity-60 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[c.jsx(Bc,{className:"size-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}const Sf=({className:e,...t})=>c.jsx("div",{"data-slot":"dialog-header",className:X("flex flex-col space-y-1 text-center sm:text-start mb-5",e),...t}),Tf=({className:e,...t})=>c.jsx("div",{"data-slot":"dialog-footer",className:X("flex flex-col-reverse sm:flex-row sm:justify-end pt-5 sm:space-x-2.5",e),...t});function Nf({className:e,...t}){return c.jsx(Wp,{"data-slot":"dialog-title",className:X("text-lg font-semibold leading-none tracking-tight",e),...t})}function ere({className:e,...t}){return c.jsx(Kp,{"data-slot":"dialog-description",className:X("text-sm text-muted-foreground",e),...t})}var yg="Tabs",[tre,epe]=Gn(yg,[lg]),s5=lg(),[nre,wS]=tre(yg),o5=S.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:s,orientation:i="horizontal",dir:u,activationMode:d="automatic",...f}=e,m=el(u),[p,v]=hr({prop:r,onChange:a,defaultProp:s??"",caller:yg});return c.jsx(nre,{scope:n,baseId:_n(),value:p,onValueChange:v,orientation:i,dir:m,activationMode:d,children:c.jsx(ye.div,{dir:m,"data-orientation":i,...f,ref:t})})});o5.displayName=yg;var i5="TabsList",l5=S.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,s=wS(i5,n),i=s5(n);return c.jsx(EP,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:r,children:c.jsx(ye.div,{role:"tablist","aria-orientation":s.orientation,...a,ref:t})})});l5.displayName=i5;var c5="TabsTrigger",u5=S.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...s}=e,i=wS(c5,n),u=s5(n),d=h5(i.baseId,r),f=m5(i.baseId,r),m=r===i.value;return c.jsx(SP,{asChild:!0,...u,focusable:!a,active:m,children:c.jsx(ye.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":f,"data-state":m?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...s,ref:t,onMouseDown:me(e.onMouseDown,p=>{!a&&p.button===0&&p.ctrlKey===!1?i.onValueChange(r):p.preventDefault()}),onKeyDown:me(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&i.onValueChange(r)}),onFocus:me(e.onFocus,()=>{const p=i.activationMode!=="manual";!m&&!a&&p&&i.onValueChange(r)})})})});u5.displayName=c5;var d5="TabsContent",f5=S.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:s,...i}=e,u=wS(d5,n),d=h5(u.baseId,r),f=m5(u.baseId,r),m=r===u.value,p=S.useRef(m);return S.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),c.jsx(on,{present:a||m,children:({present:v})=>c.jsx(ye.div,{"data-state":m?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!v,id:f,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&s})})});f5.displayName=d5;function h5(e,t){return`${e}-trigger-${t}`}function m5(e,t){return`${e}-content-${t}`}var rre=o5,are=l5,sre=u5,ore=f5;const ire=Mt("flex items-center shrink-0",{variants:{variant:{default:"bg-accent p-1",button:"",line:"border-b border-border"},shape:{default:"",pill:""},size:{lg:"gap-2.5",md:"gap-2",sm:"gap-1.5",xs:"gap-1"}},compoundVariants:[{variant:"default",size:"lg",className:"p-1.5 gap-2.5"},{variant:"default",size:"md",className:"p-1 gap-2"},{variant:"default",size:"sm",className:"p-1 gap-1.5"},{variant:"default",size:"xs",className:"p-1 gap-1"},{variant:"default",shape:"default",size:"lg",className:"rounded-lg"},{variant:"default",shape:"default",size:"md",className:"rounded-lg"},{variant:"default",shape:"default",size:"sm",className:"rounded-md"},{variant:"default",shape:"default",size:"xs",className:"rounded-md"},{variant:"line",size:"lg",className:"gap-9"},{variant:"line",size:"md",className:"gap-8"},{variant:"line",size:"sm",className:"gap-4"},{variant:"line",size:"xs",className:"gap-4"},{variant:"default",shape:"pill",className:"rounded-full [&_[role=tab]]:rounded-full"},{variant:"button",shape:"pill",className:"rounded-full [&_[role=tab]]:rounded-full"}],defaultVariants:{variant:"default",size:"md"}}),lre=Mt("shrink-0 cursor-pointer whitespace-nowrap inline-flex justify-center items-center font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:shrink-0 [&_svg]:text-muted-foreground [&:hover_svg]:text-primary [&[data-state=active]_svg]:text-primary",{variants:{variant:{default:"text-muted-foreground data-[state=active]:bg-background hover:text-foreground data-[state=active]:text-foreground data-[state=active]:shadow-xs data-[state=active]:shadow-black/5",button:"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-lg text-accent-foreground hover:text-foreground data-[state=active]:bg-accent data-[state=active]:text-foreground",line:"border-b-2 text-muted-foreground border-transparent data-[state=active]:border-primary hover:text-primary data-[state=active]:text-primary data-[state=active]:border-primary data-[state=active]:text-primary"},size:{lg:"gap-2.5 [&_svg]:size-5 text-sm",md:"gap-2 [&_svg]:size-4 text-sm",sm:"gap-1.5 [&_svg]:size-3.5 text-xs",xs:"gap-1 [&_svg]:size-3.5 text-xs"}},compoundVariants:[{variant:"default",size:"lg",className:"py-2.5 px-4 rounded-md"},{variant:"default",size:"md",className:"py-1.5 px-3 rounded-md"},{variant:"default",size:"sm",className:"py-1.5 px-2.5 rounded-sm"},{variant:"default",size:"xs",className:"py-1 px-2 rounded-sm"},{variant:"button",size:"lg",className:"py-3 px-4 rounded-lg"},{variant:"button",size:"md",className:"py-2.5 px-3 rounded-lg"},{variant:"button",size:"sm",className:"py-2 px-2.5 rounded-md"},{variant:"button",size:"xs",className:"py-1.5 px-2 rounded-md"},{variant:"line",size:"lg",className:"py-3"},{variant:"line",size:"md",className:"py-2.5"},{variant:"line",size:"sm",className:"py-2"},{variant:"line",size:"xs",className:"py-1.5"}],defaultVariants:{variant:"default",size:"md"}}),cre=Mt("mt-2.5 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{variant:{default:""}},defaultVariants:{variant:"default"}}),p5=S.createContext({variant:"default",size:"md"});function cc({className:e,...t}){return c.jsx(rre,{"data-slot":"tabs",className:X("",e),...t})}function jd({className:e,variant:t="default",shape:n="default",size:r="md",...a}){return c.jsx(p5.Provider,{value:{variant:t||"default",size:r||"md"},children:c.jsx(are,{"data-slot":"tabs-list",className:X(ire({variant:t,shape:n,size:r}),e),...a})})}function Lr({className:e,...t}){const{variant:n,size:r}=S.useContext(p5);return c.jsx(sre,{"data-slot":"tabs-trigger",className:X(lre({variant:n,size:r}),e),...t})}function Gi({className:e,variant:t,...n}){return c.jsx(ore,{"data-slot":"tabs-content",className:X(cre({variant:t}),e),...n})}const g5=({activityId:e,activityStatus:t,shiftTime:n,isOpen:r,onClose:a})=>{var T,N,C,A,R,_,O,D,P,L,U,B,H,Z,ee,Q;const s=Ge(),[i,u]=S.useState(!1),[d,f]=S.useState(null),[m,p]=S.useState("details");S.useEffect(()=>{e&&r?v(e):f(null)},[e,r]);const v=async j=>{u(!0);try{const V=await(await fetch(`/Schedule/ActivityDetail.aspx?id=${j}`)).text(),k=new DOMParser().parseFromString(V,"text/html");if(k){const $=k.querySelector("#ctl00_mainContent_divContent");if($){const se=$.querySelectorAll("tr");let re="",ue="",xe="",fe="",he="",ge="",Ne="",Ae="",Me="",He="",Ft="";if(se.forEach(dt=>{var tr,yt,oa,Wt;const On=dt.querySelectorAll("td");if(On.length>=2){const Bt=((tr=On[0].textContent)==null?void 0:tr.trim().toLowerCase())||"",Dn=((yt=On[1].textContent)==null?void 0:yt.trim())||"";if(Bt.includes("date")||Bt.includes("ngày"))re=Dn;else if(Bt.includes("slot")||Bt.includes("ca"))ue=Dn;else if(Bt.includes("student group")||Bt.includes("lớp"))xe=Dn,fe=((oa=On[1].querySelector("a"))==null?void 0:oa.getAttribute("href"))||"";else if(Bt.includes("instructor")||Bt.includes("giảng viên")){const ln=Array.from(On[1].querySelectorAll("a")),Sn=ln.find(us=>!us.href.includes("meet.google.com"));he=((Wt=Sn==null?void 0:Sn.textContent)==null?void 0:Wt.trim())||Dn.split(`
`)[0].trim()||"",ge=(Sn==null?void 0:Sn.getAttribute("href"))||"";const Ys=ln.find(us=>us.href.includes("meet.google.com"));Ys&&!Ne&&(Ne=Ys.getAttribute("href")||"")}else Bt.includes("course")||Bt.includes("môn học")?Ae=Dn:Bt.includes("campus")||Bt.includes("cơ sở")?Me=Dn:Bt.includes("attendance")||Bt.includes("điểm danh")?He=Dn:(Bt.includes("record time")||Bt.includes("thời gian ghi nhận")||Bt.includes("record"))&&(Ft=Dn)}}),!Ne){const dt=$.querySelector('a[href*="meet.google.com"]');Ne=(dt==null?void 0:dt.getAttribute("href"))||""}if(ge){const dt=ge.match(/username=([^&]+)/);dt&&dt[1]&&(ge=`/User/UserDetail.aspx?login=${dt[1]}`)}f({id:j,date:re,slot:ue,time:n,studentGroup:{name:xe,link:fe},instructor:{name:he,link:ge},meetURL:Ne,course:Ae,campus:Me,attendance:He,recordTime:Ft})}}}catch(Y){console.error("Error fetching shift detail:",Y)}finally{u(!1)}},x=(()=>{switch(t){case 0:return{bg:"bg-sky-500/10 border border-sky-500/20",text:"text-sky-400",icon:c.jsx(wm,{className:"h-4 w-4 text-sky-400"})};case 1:return{bg:"bg-emerald-500/10 border border-emerald-500/20",text:"text-emerald-400",icon:c.jsx(Kd,{className:"h-4 w-4 text-emerald-400"})};case 2:return{bg:"bg-rose-500/10 border border-rose-500/20",text:"text-rose-400",icon:c.jsx(Fp,{className:"h-4 w-4 text-rose-400"})};default:return{bg:"bg-white/5 border border-white/10",text:"text-muted-foreground",icon:c.jsx(Sd,{className:"h-4 w-4 text-muted-foreground"})}}})(),b=t===0?"NOT YET":t===1?"ATTENDED":"ABSENT";return c.jsx(bf,{open:r,onOpenChange:j=>!j&&a(),children:c.jsxs(Ef,{className:"sm:max-w-2xl",children:[c.jsxs(Sf,{className:"border-b border-white/5 pb-3",children:[c.jsxs(Nf,{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-accent font-extrabold tracking-wide",children:s.formatMessage({id:"SCHEDULE.SHIFT_DETAIL.TITLE"})}),e&&c.jsxs(kt,{variant:"secondary",className:"ml-1 font-mono text-xs",children:["#",e]})]}),c.jsx(ere,{className:"sr-only",children:"Shift Details and Resources"})]}),i?c.jsx("div",{className:"flex justify-center items-center py-16",children:c.jsx(Sr,{className:"h-8 w-8 animate-spin text-accent"})}):d?c.jsxs("div",{className:"py-2 space-y-3",children:[c.jsxs("div",{className:X("px-4 py-2.5 rounded-xl flex items-center justify-between",x.bg),children:[c.jsxs("div",{className:"flex items-center gap-2",children:[x.icon,c.jsx("span",{className:X("font-bold text-sm font-mono tracking-widest uppercase",x.text),children:b})]}),d.recordTime&&c.jsxs("div",{className:"text-[10px] font-mono text-muted-foreground flex items-center gap-1",children:[c.jsx(wm,{className:"h-3 w-3"}),"Record time: ",d.recordTime]})]}),c.jsxs(cc,{defaultValue:"details",value:m,onValueChange:p,className:"w-full",children:[c.jsxs(jd,{className:"grid grid-cols-2 mb-4",children:[c.jsx(Lr,{value:"details",children:s.formatMessage({id:"SCHEDULE.SHIFT_DETAIL.CLASS_DETAILS"})}),c.jsx(Lr,{value:"links",children:s.formatMessage({id:"SCHEDULE.SHIFT_DETAIL.RESOURCES_LINKS"})})]}),c.jsx(Gi,{value:"details",className:"space-y-4",children:c.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[c.jsxs("div",{className:"space-y-3",children:[c.jsxs("h3",{className:"text-xs font-bold font-mono uppercase tracking-widest text-accent flex items-center gap-1.5",children:[c.jsx(rs,{className:"size-3.5"}),"Course Information"]}),c.jsxs("div",{className:"rounded-xl border border-white/5 bg-white/[0.02] p-4 space-y-4",children:[c.jsx("div",{className:"rounded-lg bg-accent/10 border border-accent/15 px-3 py-2 text-center",children:c.jsx("p",{className:"text-accent font-semibold text-sm leading-snug",children:d.course})}),c.jsxs("div",{className:"space-y-2.5 text-sm",children:[c.jsxs("div",{className:"flex items-center gap-2.5 text-muted-foreground",children:[c.jsx($i,{className:"size-3.5 shrink-0 text-accent/60"}),c.jsx("span",{className:"text-muted-foreground/60 text-xs font-mono uppercase",children:"Date"}),c.jsx("span",{className:"font-semibold text-foreground ml-auto",children:d.date})]}),c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx(Ox,{className:"size-3.5 shrink-0 text-accent/60"}),c.jsx("span",{className:"text-muted-foreground/60 text-xs font-mono uppercase",children:"Slot"}),c.jsxs("span",{className:"font-semibold text-foreground ml-auto",children:["Slot ",d.slot]})]}),c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx(wm,{className:"size-3.5 shrink-0 text-accent/60"}),c.jsx("span",{className:"text-muted-foreground/60 text-xs font-mono uppercase",children:"Time"}),c.jsx("span",{className:"font-semibold text-foreground ml-auto font-mono",children:d.time||"N/A"})]})]})]})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsxs("h3",{className:"text-xs font-bold font-mono uppercase tracking-widest text-purple-400 flex items-center gap-1.5",children:[c.jsx(Ri,{className:"size-3.5"}),"People"]}),c.jsxs("div",{className:"rounded-xl border border-white/5 bg-white/[0.02] p-4 space-y-3",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsxs("p",{className:"text-[10px] uppercase font-mono text-muted-foreground/50 tracking-wider flex items-center gap-1",children:[c.jsx(jo,{className:"size-3"}),"Instructor"]}),(T=d.instructor)!=null&&T.link?c.jsxs("a",{href:d.instructor.link,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 group",children:[c.jsx("div",{className:"size-7 rounded-full bg-purple-500/20 border border-purple-500/30 flex items-center justify-center text-purple-400 font-bold text-xs",children:((C=(N=d.instructor.name)==null?void 0:N[0])==null?void 0:C.toUpperCase())||"I"}),c.jsx("span",{className:"font-semibold text-sm group-hover:text-accent transition-colors",children:d.instructor.name}),c.jsx(Ds,{className:"size-3 text-muted-foreground/30 group-hover:text-accent/60 transition-colors ml-auto"})]}):c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"size-7 rounded-full bg-white/5 border border-white/10 flex items-center justify-center text-muted-foreground font-bold text-xs",children:((_=(R=(A=d.instructor)==null?void 0:A.name)==null?void 0:R[0])==null?void 0:_.toUpperCase())||"I"}),c.jsx("span",{className:"font-semibold text-sm",children:((O=d.instructor)==null?void 0:O.name)||"—"})]})]}),c.jsx("div",{className:"border-t border-white/5"}),c.jsxs("div",{className:"space-y-1",children:[c.jsxs("p",{className:"text-[10px] uppercase font-mono text-muted-foreground/50 tracking-wider flex items-center gap-1",children:[c.jsx(Ri,{className:"size-3"}),"Student Group"]}),(D=d.studentGroup)!=null&&D.link?c.jsxs("a",{href:d.studentGroup.link,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 group",children:[c.jsx("div",{className:"size-7 rounded-full bg-sky-500/20 border border-sky-500/30 flex items-center justify-center text-sky-400 font-bold text-xs",children:((L=(P=d.studentGroup.name)==null?void 0:P[0])==null?void 0:L.toUpperCase())||"S"}),c.jsx("span",{className:"font-semibold text-sm group-hover:text-accent transition-colors",children:d.studentGroup.name}),c.jsx(Ds,{className:"size-3 text-muted-foreground/30 group-hover:text-accent/60 transition-colors ml-auto"})]}):c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"size-7 rounded-full bg-white/5 border border-white/10 flex items-center justify-center text-muted-foreground font-bold text-xs",children:((H=(B=(U=d.studentGroup)==null?void 0:U.name)==null?void 0:B[0])==null?void 0:H.toUpperCase())||"S"}),c.jsx("span",{className:"font-semibold text-sm",children:((Z=d.studentGroup)==null?void 0:Z.name)||"—"})]})]})]})]})]})}),c.jsx(Gi,{value:"links",children:c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[c.jsxs("a",{href:d.meetURL||void 0,target:"_blank",rel:"noopener noreferrer",className:X("group flex flex-col p-4 rounded-xl border transition-all duration-200",d.meetURL?"border-emerald-500/25 bg-emerald-500/5 hover:bg-emerald-500/10 hover:border-emerald-500/40 cursor-pointer":"border-white/5 bg-white/[0.02] opacity-50 pointer-events-none"),children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx(VE,{className:"size-4 text-emerald-400"}),c.jsx("span",{className:"font-bold text-sm",children:"Google Meet"}),d.meetURL&&c.jsx(Ds,{className:"size-3 text-muted-foreground/30 group-hover:text-emerald-400 ml-auto transition-colors"})]}),c.jsx("p",{className:"text-[10px] text-muted-foreground mb-3",children:d.meetURL?"Join online meeting for this class":"No meeting link provided"}),c.jsx("div",{className:"mt-auto",children:c.jsx("span",{className:X("text-[10px] font-bold font-mono px-2 py-0.5 rounded-full border",d.meetURL?"text-emerald-400 bg-emerald-500/10 border-emerald-500/20":"text-muted-foreground/40 bg-white/5 border-white/5"),children:d.meetURL?"Join Meeting →":"Unavailable"})})]}),c.jsxs("a",{href:"https://fu-edunext.fpt.edu.vn",target:"_blank",rel:"noopener noreferrer",className:"group flex flex-col p-4 rounded-xl border border-sky-500/25 bg-sky-500/5 hover:bg-sky-500/10 hover:border-sky-500/40 transition-all duration-200 cursor-pointer",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx(Ps,{className:"size-4 text-sky-400"}),c.jsx("span",{className:"font-bold text-sm",children:"EduNext"}),c.jsx(Ds,{className:"size-3 text-muted-foreground/30 group-hover:text-sky-400 ml-auto transition-colors"})]}),c.jsx("p",{className:"text-[10px] text-muted-foreground mb-3",children:"Access course materials and resources"}),c.jsx("div",{className:"mt-auto",children:c.jsx("span",{className:"text-[10px] font-bold font-mono px-2 py-0.5 rounded-full border text-sky-400 bg-sky-500/10 border-sky-500/20",children:"Open EduNext →"})})]}),(ee=d.studentGroup)!=null&&ee.link?c.jsxs("a",{href:d.studentGroup.link,target:"_blank",rel:"noopener noreferrer",className:"group flex flex-col p-4 rounded-xl border border-purple-500/25 bg-purple-500/5 hover:bg-purple-500/10 hover:border-purple-500/40 transition-all duration-200 cursor-pointer",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx(Ri,{className:"size-4 text-purple-400"}),c.jsx("span",{className:"font-bold text-sm",children:"Student Group"}),c.jsx(Ds,{className:"size-3 text-muted-foreground/30 group-hover:text-purple-400 ml-auto transition-colors"})]}),c.jsx("p",{className:"text-[10px] text-muted-foreground mb-3",children:"View student group details"}),c.jsx("div",{className:"mt-auto",children:c.jsx("span",{className:"text-[10px] font-bold font-mono px-2 py-0.5 rounded-full border text-purple-400 bg-purple-500/10 border-purple-500/20",children:"View Group →"})})]}):c.jsxs("div",{className:"flex flex-col p-4 rounded-xl border border-white/5 bg-white/[0.02] opacity-50",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx(Ri,{className:"size-4 text-muted-foreground/40"}),c.jsx("span",{className:"font-bold text-sm text-muted-foreground/60",children:"Student Group"})]}),c.jsx("p",{className:"text-[10px] text-muted-foreground/40",children:"No group link available"})]}),(Q=d.instructor)!=null&&Q.link?c.jsxs("a",{href:d.instructor.link,target:"_blank",rel:"noopener noreferrer",className:"group flex flex-col p-4 rounded-xl border border-orange-500/25 bg-orange-500/5 hover:bg-orange-500/10 hover:border-orange-500/40 transition-all duration-200 cursor-pointer",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx(jo,{className:"size-4 text-orange-400"}),c.jsx("span",{className:"font-bold text-sm",children:"Instructor Profile"}),c.jsx(Ds,{className:"size-3 text-muted-foreground/30 group-hover:text-orange-400 ml-auto transition-colors"})]}),c.jsx("p",{className:"text-[10px] text-muted-foreground mb-3",children:"View instructor details and contact"}),c.jsx("div",{className:"mt-auto",children:c.jsx("span",{className:"text-[10px] font-bold font-mono px-2 py-0.5 rounded-full border text-orange-400 bg-orange-500/10 border-orange-500/20",children:"View Profile →"})})]}):c.jsxs("div",{className:"flex flex-col p-4 rounded-xl border border-white/5 bg-white/[0.02] opacity-50",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx(jo,{className:"size-4 text-muted-foreground/40"}),c.jsx("span",{className:"font-bold text-sm text-muted-foreground/60",children:"Instructor Profile"})]}),c.jsx("p",{className:"text-[10px] text-muted-foreground/40",children:"No profile link available"})]})]})})]})]}):c.jsxs("div",{className:"py-12 text-center text-muted-foreground",children:[c.jsx(Sd,{className:"h-10 w-10 mx-auto mb-2 text-muted-foreground/30"}),c.jsx("p",{className:"text-sm",children:s.formatMessage({id:"SCHEDULE.SHIFT_DETAIL.NO_DETAILS"})})]}),c.jsx(Tf,{className:"border-t border-white/5 pt-3",children:c.jsx(ke,{variant:"outline",onClick:a,children:s.formatMessage({id:"COMMON.CLOSE"})})})]})})},ure={hidden:{opacity:0},show:{opacity:1,transition:{staggerChildren:.08}}},dre={hidden:{opacity:0,y:15},show:{opacity:1,y:0,transition:{type:"spring",stiffness:260,damping:20}}};function Yb(){var e,t,n;try{const a=new Intl.DateTimeFormat("en-US",{timeZone:"Asia/Ho_Chi_Minh",year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date),s=((e=a.find(d=>d.type==="day"))==null?void 0:e.value)||"",i=((t=a.find(d=>d.type==="month"))==null?void 0:t.value)||"",u=((n=a.find(d=>d.type==="year"))==null?void 0:n.value)||"";return{day:s,month:i,year:u}}catch{const a=new Date;return{day:String(a.getDate()).padStart(2,"0"),month:String(a.getMonth()+1).padStart(2,"0"),year:String(a.getFullYear())}}}function fre(e){const t=e.match(/(\d{1,2})\/(\d{1,2})/);return t?`${t[1].padStart(2,"0")}/${t[2].padStart(2,"0")}`:""}function hre(e){var b,T,N,C,A;const{day:t,month:n}=Yb(),r=`${t}/${n}`,i=new DOMParser().parseFromString(e,"text/html").querySelector(".container");if(!i)return[];const u=i.querySelectorAll("table")[2];if(!u)return[];const d=u.rows[1];if(!d)return[];const f=u.rows[2];if(!f)return[];const m=f.cells.length-d.cells.length,p={};Array.from(d.cells).forEach((R,_)=>{var D;const O=fre(((D=R.textContent)==null?void 0:D.trim())||"");if(O){const P=_+m;p[P]=O}});const v=Object.keys(p).find(R=>p[parseInt(R)]===r);if(v===void 0)return[];const y=parseInt(v),x=[];for(let R=2;R<u.rows.length;R++){const _=u.rows[R].cells[y];if(!_)continue;const O=((b=_.textContent)==null?void 0:b.trim())||"";if(!(O==="-"||O===""))try{const D=_.querySelector('a[href*="ActivityDetail.aspx?id"]');if(!D)continue;const P=((T=D.textContent)==null?void 0:T.trim().replace(/^-/,"").trim())||"Class",L=((C=(N=_.querySelector("span.label.label-success"))==null?void 0:N.textContent)==null?void 0:C.trim().replace(/[()]/g,""))||"",U=((A=O.split(" at ")[1])==null?void 0:A.split(" ")[0])||"",H=(D.getAttribute("href")||"").match(/id=(\d+)/),Z=H?parseInt(H[1]):void 0;let ee=0;/attended|đã điểm danh|có mặt|đã học/i.test(O)?ee=1:/absent|vắng mặt/i.test(O)&&(ee=2),x.push({id:`class-${R}-${Z||P}`,type:"class",subjectCode:P.split(" ")[0]||P,subjectName:P,time:L,room:U,status:ee,activityId:Z})}catch(D){console.error("Error parsing class cell:",D)}}return x}const mre=()=>{const{day:e,month:t}=Yb(),n=`${e}/${t}`,[r,a]=S.useState(!0),[s,i]=S.useState([]),[u,d]=S.useState(null),[f,m]=S.useState(!1),p=v=>{v.type==="class"&&v.activityId&&(d(v),m(!0))};return S.useEffect(()=>{(async()=>{var y,x,b,T,N,C;try{const A=[],R=await fetch("/Report/ScheduleOfWeek.aspx");if(R.ok){const D=await R.text(),P=hre(D);A.push(...P)}const _=await fetch("/Exam/ScheduleExams.aspx");if(_.ok){const D=await _.text(),L=new DOMParser().parseFromString(D,"text/html").querySelector("#ctl00_mainContent_divContent table");if(L){const{day:U,month:B,year:H}=Yb(),Z=`${U}/${B}/${H}`,ee=L.querySelectorAll("tr");for(let Q=1;Q<ee.length;Q++){const j=ee[Q].querySelectorAll("td");j.length>=9&&(((y=j[3].textContent)==null?void 0:y.trim())||"")===Z&&A.push({id:`exam-${Q}-${(x=j[1].textContent)==null?void 0:x.trim()}`,type:"exam",subjectCode:((b=j[1].textContent)==null?void 0:b.trim())||"",subjectName:((T=j[2].textContent)==null?void 0:T.trim())||"",room:((N=j[4].textContent)==null?void 0:N.trim())||"",time:((C=j[5].textContent)==null?void 0:C.trim())||"",status:0})}}}const O=D=>{try{const P=D.split("-")[0].trim(),L=P.match(/(\d+)[h:](\d+)/);if(L)return parseInt(L[1])*60+parseInt(L[2]);const U=P.match(/(\d+)/);if(U)return parseInt(U[1])*60}catch{}return 0};A.sort((D,P)=>O(D.time)-O(P.time)),await Promise.allSettled(A.filter(D=>D.type==="class"&&D.activityId).map(async D=>{try{const P=await fetch(`/Schedule/ActivityDetail.aspx?id=${D.activityId}`);if(!P.ok)return;const L=await P.text(),B=new DOMParser().parseFromString(L,"text/html").querySelector("#ctl00_mainContent_divContent");if(B){const H=B.querySelector('a[href*="meet.google.com"]');H&&(D.meetURL=H.getAttribute("href")||"")}}catch{}})),i(A)}catch(A){console.error("Failed to fetch today agenda:",A)}finally{a(!1)}})()},[]),c.jsxs(c.Fragment,{children:[c.jsx(ct,{className:"h-full",children:c.jsxs(Nt,{className:"p-4 lg:p-5 flex flex-col h-full",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4 border-b border-white/5 pb-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"p-1 rounded-lg bg-accent/10 border border-accent/25",children:c.jsx(ea,{className:"size-4 text-accent"})}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-mono text-sm lg:text-base font-extrabold tracking-wide uppercase",children:"Today's Agenda"}),c.jsxs("p",{className:"text-[9px] text-muted-foreground uppercase font-mono tracking-wider",children:["Schedule for ",n]})]})]}),c.jsxs("div",{className:"flex items-center gap-1 text-[9px] text-muted-foreground font-mono bg-white/5 border border-white/10 px-2 py-0.5 rounded-full",children:[c.jsx(ZV,{className:"size-2.5 text-accent animate-pulse"}),"LIVE"]})]}),c.jsx("div",{className:"flex-1 flex flex-col justify-center",children:r?c.jsx("div",{className:"space-y-2 py-2",children:[1,2].map(v=>c.jsxs("div",{className:"h-16 rounded-xl bg-white/5 border border-white/10 animate-pulse flex items-center px-3 gap-3",children:[c.jsx("div",{className:"size-7 rounded-lg bg-white/5"}),c.jsxs("div",{className:"flex-1 space-y-1.5",children:[c.jsx("div",{className:"h-3 bg-white/10 rounded w-1/3"}),c.jsx("div",{className:"h-2.5 bg-white/5 rounded w-1/2"})]})]},v))}):s.length===0?c.jsxs(vd.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.5},className:"flex flex-col items-center justify-center text-center py-6 px-4 select-none",children:[c.jsx("div",{className:"size-10 rounded-full border border-white/5 bg-white/[0.02] flex items-center justify-center mb-2",children:c.jsx(ea,{className:"size-4.5 text-muted-foreground/40"})}),c.jsx("p",{className:"text-xs font-medium text-muted-foreground/60 italic font-mono",children:"No agenda for today. Relax!"})]}):c.jsx(vd.div,{variants:ure,initial:"hidden",animate:"show",className:"space-y-2 py-1",children:s.map(v=>c.jsxs(vd.div,{variants:dre,onClick:()=>p(v),className:`group relative flex items-center justify-between p-2.5 rounded-xl border border-white/5 bg-white/[0.02] hover:bg-white/[0.05] hover:border-white/10 transition-all duration-300 shadow-[0_4px_12px_rgba(0,0,0,0.1)] ${v.type==="class"&&v.activityId?"cursor-pointer":""}`,children:[c.jsxs("div",{className:"flex items-center gap-2.5 min-w-0 flex-1",children:[c.jsx("div",{className:`p-1.5 rounded-lg border shrink-0 ${v.type==="exam"?"bg-rose-500/10 border-rose-500/25 text-rose-400":"bg-accent/10 border-accent/25 text-accent"}`,children:v.type==="exam"?c.jsx(Ed,{className:"size-3.5"}):c.jsx(Ps,{className:"size-3.5"})}),c.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[c.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[c.jsx("span",{className:"font-extrabold text-sm font-mono tracking-wide text-foreground",children:v.subjectCode}),c.jsx("span",{className:`text-[8px] uppercase font-mono px-1.5 py-0.25 rounded border shrink-0 ${v.type==="exam"?"bg-rose-500/10 border-rose-500/20 text-rose-400":"bg-accent/10 border-accent/20 text-accent"}`,children:v.type==="exam"?"Exam":"Class"})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-0.5 mt-0.5",children:[c.jsxs("span",{className:"flex items-center gap-1 text-[12px] font-bold text-accent font-mono",children:[c.jsx(Gs,{className:"size-3 shrink-0"}),v.time]}),c.jsxs("span",{className:"flex items-center gap-1 text-[12px] font-bold text-emerald-400 font-mono",children:[c.jsx(Bp,{className:"size-3 shrink-0"}),v.room]})]}),v.meetURL&&c.jsxs("a",{href:v.meetURL,target:"_blank",rel:"noopener noreferrer",onClick:y=>y.stopPropagation(),className:"mt-1 inline-flex items-center gap-1 text-[9px] font-bold font-mono text-green-400 bg-green-500/10 border border-green-500/20 px-1.5 py-0.5 rounded-full hover:bg-green-500/20 transition-colors w-fit",children:[c.jsx(VE,{className:"size-2.5"}),"Google Meet",c.jsx(Ds,{className:"size-2"})]}),v.type==="class"&&c.jsx(Kne,{subjectCode:v.subjectCode})]})]}),c.jsxs("div",{className:"flex flex-col items-end gap-1 shrink-0 ml-2",children:[v.type==="class"?v.status===1?c.jsxs("span",{className:"flex items-center gap-1 text-[9px] font-mono text-emerald-400 bg-emerald-500/10 border border-emerald-500/20 px-2 py-0.5 rounded-full",children:[c.jsx(Kd,{className:"size-3"}),"Attended"]}):v.status===2?c.jsxs("span",{className:"flex items-center gap-1 text-[9px] font-mono text-rose-400 bg-rose-500/10 border border-rose-500/20 px-2 py-0.5 rounded-full",children:[c.jsx(Mx,{className:"size-3 fill-rose-500/20"}),"Absent"]}):c.jsxs("span",{className:"flex items-center gap-1 text-[9px] font-mono text-accent/80 bg-accent/5 border border-accent/10 px-2 py-0.5 rounded-full",children:[c.jsx(Mx,{className:"size-3"}),"Not yet"]}):c.jsx("span",{className:"flex items-center gap-1 text-[9px] font-mono text-rose-400/80 bg-rose-500/5 border border-rose-500/10 px-2 py-0.5 rounded-full animate-pulse",children:"Upcoming"}),v.type==="class"&&v.activityId&&c.jsx("span",{className:"text-[8px] font-mono text-white/20 group-hover:text-white/50 transition-colors",children:"tap to view →"})]})]},v.id))})})]})}),u&&c.jsx(g5,{activityId:u.activityId,activityStatus:u.status,shiftTime:u.time,isOpen:f,onClose:()=>{m(!1),d(null)}})]})},pre=()=>{const[e,t]=S.useState(!0),[n,r]=S.useState({event:null,days:0,hours:0,minutes:0,seconds:0,totalMs:0,isUrgent:!1});S.useEffect(()=>{(async()=>{var m,p,v,y;try{const x=[],T=(()=>{var C,A,R,_,O,D;try{const L=new Intl.DateTimeFormat("en-US",{timeZone:"Asia/Ho_Chi_Minh",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(new Date),U=Number((C=L.find(j=>j.type==="year"))==null?void 0:C.value),B=Number((A=L.find(j=>j.type==="month"))==null?void 0:A.value)-1,H=Number((R=L.find(j=>j.type==="day"))==null?void 0:R.value),Z=Number((_=L.find(j=>j.type==="hour"))==null?void 0:_.value),ee=Number((O=L.find(j=>j.type==="minute"))==null?void 0:O.value),Q=Number((D=L.find(j=>j.type==="second"))==null?void 0:D.value);return new Date(U,B,H,Z,ee,Q)}catch{return new Date}})(),N=await fetch("/Exam/ScheduleExams.aspx");if(N.ok){const C=await N.text(),R=new DOMParser().parseFromString(C,"text/html").querySelector("#ctl00_mainContent_divContent table");if(R){const _=R.querySelectorAll("tr");for(let O=1;O<_.length;O++){const D=_[O].querySelectorAll("td");if(D.length>=9){const P=((m=D[3].textContent)==null?void 0:m.trim())||"",L=((p=D[5].textContent)==null?void 0:p.trim())||"",U=((v=D[1].textContent)==null?void 0:v.trim())||"",B=((y=D[2].textContent)==null?void 0:y.trim())||"";try{const[H]=L.split("-"),[Z,ee]=H.split("h").map(Number),[Q,j,Y]=P.split("/").map(Number),V=new Date(Y,j-1,Q,Z,ee,0);V>T&&x.push({title:`${U} Exam`,description:B,date:V,type:"exam"})}catch{}}}}}x.sort((C,A)=>C.date.getTime()-A.date.getTime()),x.length>0&&r(C=>({...C,event:x[0]}))}catch(x){console.error("Failed to parse deadlines:",x)}finally{t(!1)}})()},[]),S.useEffect(()=>{const f=()=>{const p=new Date().getTime();if(n.event){const v=n.event.date.getTime()-p;if(v<=0)r(y=>({...y,totalMs:0,days:0,hours:0,minutes:0,seconds:0}));else{const y=Math.floor(v/864e5),x=Math.floor(v%(1e3*60*60*24)/(1e3*60*60)),b=Math.floor(v%(1e3*60*60)/(1e3*60)),T=Math.floor(v%(1e3*60)/1e3);r(N=>({...N,days:y,hours:x,minutes:b,seconds:T,totalMs:v,isUrgent:v<864e5}))}}};f();const m=setInterval(f,1e3);return()=>clearInterval(m)},[n.event]);const a=f=>String(f).padStart(2,"0"),s=22,i=4.5,u=2*Math.PI*s,d=f=>{const{event:m,days:p,hours:v,minutes:y,seconds:x,totalMs:b,isUrgent:T}=f;if(!m)return null;const N=48*60*60*1e3,C=Math.max(0,Math.min(100,b/N*100)),A=u-C/100*u,R="hsl(350, 80%, 58%)";return c.jsxs("div",{className:"flex items-center gap-4 p-3 rounded-xl border border-white/5 bg-white/[0.01] hover:bg-white/[0.03] transition-all duration-300",children:[c.jsxs("div",{className:"relative size-14 shrink-0 flex items-center justify-center",children:[c.jsxs("svg",{className:"absolute inset-0 size-full -rotate-90",children:[c.jsx("circle",{cx:"28",cy:"28",r:s,fill:"transparent",stroke:"rgba(255,255,255,0.03)",strokeWidth:i}),c.jsx(vd.circle,{cx:"28",cy:"28",r:s,fill:"transparent",stroke:R,strokeWidth:i,strokeDasharray:u,animate:{strokeDashoffset:A},transition:{duration:1,ease:"easeOut"},strokeLinecap:"round",style:{filter:`drop-shadow(0 0 2px ${R}50)`}})]}),c.jsx("div",{className:"z-10 text-[9px] font-bold text-slate-300 font-mono",children:c.jsx(Ed,{className:"size-4 text-rose-500"})})]}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c.jsx("h4",{className:"font-extrabold text-sm font-mono text-foreground truncate",title:m.title,children:m.title}),c.jsx("span",{className:"text-[8px] font-bold font-mono px-1.5 py-0.25 rounded border shrink-0 bg-rose-500/10 border-rose-500/20 text-rose-400",children:"EXAM"})]}),c.jsx("p",{className:"text-[10px] text-muted-foreground truncate",title:m.description,children:m.description}),c.jsxs("div",{className:"flex items-center gap-1.5 mt-1",children:[c.jsx("div",{className:"font-mono text-xs lg:text-[13px] font-bold text-foreground",children:b>0?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-rose-500",children:a(p*24+v)}),c.jsx("span",{className:"text-white/30 mx-0.5 animate-pulse",children:":"}),c.jsx("span",{className:"text-rose-500",children:a(y)}),c.jsx("span",{className:"text-white/30 mx-0.5 animate-pulse",children:":"}),c.jsx("span",{className:"text-rose-500",children:a(x)})]}):c.jsx("span",{className:"text-rose-500 font-extrabold animate-pulse",children:"DUE NOW"})}),T&&b>0&&c.jsxs("span",{className:"flex items-center gap-0.5 text-[8px] font-mono text-rose-400 bg-rose-500/10 border border-rose-500/20 px-1.5 py-0.25 rounded-full animate-bounce ml-auto",children:[c.jsx(u9,{className:"size-2.5"}),"<24h"]})]})]})]})};return c.jsxs(ct,{className:"h-full relative overflow-hidden group",children:[!e&&n.isUrgent&&c.jsx("div",{className:"absolute -bottom-10 -right-10 w-48 h-48 rounded-full blur-[80px] pointer-events-none transition-colors duration-1000 ease-in-out bg-[radial-gradient(circle,_rgba(254,44,85,0.15)_0%,_rgba(0,0,0,0)_70%)]"}),c.jsxs(Nt,{className:"p-4 lg:p-5 flex flex-col h-full z-10 relative",children:[c.jsx("div",{className:"flex items-center justify-between mb-4 border-b border-white/5 pb-3",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"p-1 rounded-lg bg-accent/10 border border-accent/25",children:c.jsx(Gs,{className:"size-4 text-accent"})}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-mono text-sm lg:text-base font-extrabold tracking-wide uppercase",children:"Deadlines"}),c.jsx("p",{className:"text-[9px] text-muted-foreground uppercase font-mono tracking-wider",children:"Real-time session clocks"})]})]})}),c.jsx("div",{className:"flex-1 flex flex-col justify-center space-y-3",children:e?c.jsx("div",{className:"space-y-3 py-2",children:c.jsxs("div",{className:"h-16 rounded-xl bg-white/5 border border-white/10 animate-pulse flex items-center px-3 gap-3",children:[c.jsx("div",{className:"size-10 rounded-full bg-white/5"}),c.jsxs("div",{className:"flex-1 space-y-2",children:[c.jsx("div",{className:"h-3.5 bg-white/10 rounded w-1/3"}),c.jsx("div",{className:"h-2.5 bg-white/5 rounded w-1/2"})]})]})}):c.jsx(c.Fragment,{children:n.event?d(n):c.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-xl border border-white/5 bg-white/[0.01] text-muted-foreground/40",children:[c.jsx(Ed,{className:"size-4 shrink-0"}),c.jsx("span",{className:"text-[10px] font-mono italic",children:"Không có lịch thi sắp tới"})]})})})]})]})},gre=()=>Mn({isRequireFeedback:e=>{const t=e==null?void 0:e.querySelector("#ctl00_mainContent_divFed");return t&&t.innerHTML.trim()!==""},tuitionContent:e=>{var n;const t=e==null?void 0:e.querySelector("#ctl00_mainContent_HocPhi");return t&&((n=t.textContent)==null?void 0:n.trim())},accountBalance:e=>{var n;const t=e==null?void 0:e.querySelector("#ctl00_mainContent_lblAccount");return t&&((n=t.innerHTML)==null?void 0:n.trim())},EOSClientDownloadLink:e=>{const t=e==null?void 0:e.querySelector("#ctl00_mainContent_lblEos a");return t&&t.getAttribute("href")}}),vre=()=>{const{isRequireFeedback:e,tuitionContent:t,accountBalance:n}=gre();return c.jsxs(ht,{children:[c.jsx(ZQ,{isVisible:!!e}),!e&&c.jsxs(c.Fragment,{children:[c.jsx(QQ,{tuitionContent:t||void 0,accountBalance:n||void 0}),c.jsxs("div",{className:"grid gap-5 lg:gap-7.5",children:[c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-5 lg:gap-7.5",children:[c.jsx("div",{className:"lg:col-span-8",children:c.jsx(mre,{})}),c.jsx("div",{className:"lg:col-span-4",children:c.jsx(pre,{})})]}),c.jsxs("div",{className:"grid lg:grid-cols-3 gap-y-5 lg:gap-7.5",children:[c.jsx("div",{className:"lg:col-span-1",children:c.jsx(WQ,{})}),c.jsx("div",{className:"lg:col-span-2",children:c.jsx(KQ,{})})]})]})]})]})};function Le({className:e,...t}){return c.jsx("div",{"data-slot":"skeleton",className:X("animate-pulse rounded-md bg-accent",e),...t})}function v5(e,t){return function(){return e.apply(t,arguments)}}const{toString:yre}=Object.prototype,{getPrototypeOf:CS}=Object,{iterator:xg,toStringTag:y5}=Symbol,bg=(e=>t=>{const n=yre.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Oa=e=>(e=e.toLowerCase(),t=>bg(t)===e),Eg=e=>t=>typeof t===e,{isArray:Kc}=Array,Ld=Eg("undefined");function xre(e){return e!==null&&!Ld(e)&&e.constructor!==null&&!Ld(e.constructor)&&br(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const x5=Oa("ArrayBuffer");function bre(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&x5(e.buffer),t}const Ere=Eg("string"),br=Eg("function"),b5=Eg("number"),Sg=e=>e!==null&&typeof e=="object",Sre=e=>e===!0||e===!1,Gm=e=>{if(bg(e)!=="object")return!1;const t=CS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(y5 in e)&&!(xg in e)},Tre=Oa("Date"),Nre=Oa("File"),wre=Oa("Blob"),Cre=Oa("FileList"),Are=e=>Sg(e)&&br(e.pipe),_re=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||br(e.append)&&((t=bg(e))==="formdata"||t==="object"&&br(e.toString)&&e.toString()==="[object FormData]"))},Rre=Oa("URLSearchParams"),[Mre,Ore,Dre,Ire]=["ReadableStream","Request","Response","Headers"].map(Oa),Pre=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wf(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Kc(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let u;for(r=0;r<i;r++)u=s[r],t.call(null,e[u],u,e)}}function E5(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const Di=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,S5=e=>!Ld(e)&&e!==Di;function Wb(){const{caseless:e}=S5(this)&&this||{},t={},n=(r,a)=>{const s=e&&E5(t,a)||a;Gm(t[s])&&Gm(r)?t[s]=Wb(t[s],r):Gm(r)?t[s]=Wb({},r):Kc(r)?t[s]=r.slice():t[s]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&wf(arguments[r],n);return t}const jre=(e,t,n,{allOwnKeys:r}={})=>(wf(t,(a,s)=>{n&&br(a)?e[s]=v5(a,n):e[s]=a},{allOwnKeys:r}),e),Lre=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kre=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ure=(e,t,n,r)=>{let a,s,i;const u={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)i=a[s],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&CS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Fre=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Bre=e=>{if(!e)return null;if(Kc(e))return e;let t=e.length;if(!b5(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Hre=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&CS(Uint8Array)),Vre=(e,t)=>{const r=(e&&e[xg]).call(e);let a;for(;(a=r.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},Gre=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},zre=Oa("HTMLFormElement"),$re=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),zR=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),qre=Oa("RegExp"),T5=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};wf(n,(a,s)=>{let i;(i=t(a,s,e))!==!1&&(r[s]=i||a)}),Object.defineProperties(e,r)},Yre=e=>{T5(e,(t,n)=>{if(br(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(br(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Wre=(e,t)=>{const n={},r=a=>{a.forEach(s=>{n[s]=!0})};return Kc(e)?r(e):r(String(e).split(t)),n},Kre=()=>{},Xre=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Qre(e){return!!(e&&br(e.append)&&e[y5]==="FormData"&&e[xg])}const Zre=e=>{const t=new Array(10),n=(r,a)=>{if(Sg(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const s=Kc(r)?[]:{};return wf(r,(i,u)=>{const d=n(i,a+1);!Ld(d)&&(s[u]=d)}),t[a]=void 0,s}}return r};return n(e,0)},Jre=Oa("AsyncFunction"),eae=e=>e&&(Sg(e)||br(e))&&br(e.then)&&br(e.catch),N5=((e,t)=>e?setImmediate:t?((n,r)=>(Di.addEventListener("message",({source:a,data:s})=>{a===Di&&s===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Di.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",br(Di.postMessage)),tae=typeof queueMicrotask<"u"?queueMicrotask.bind(Di):typeof process<"u"&&process.nextTick||N5,nae=e=>e!=null&&br(e[xg]),ae={isArray:Kc,isArrayBuffer:x5,isBuffer:xre,isFormData:_re,isArrayBufferView:bre,isString:Ere,isNumber:b5,isBoolean:Sre,isObject:Sg,isPlainObject:Gm,isReadableStream:Mre,isRequest:Ore,isResponse:Dre,isHeaders:Ire,isUndefined:Ld,isDate:Tre,isFile:Nre,isBlob:wre,isRegExp:qre,isFunction:br,isStream:Are,isURLSearchParams:Rre,isTypedArray:Hre,isFileList:Cre,forEach:wf,merge:Wb,extend:jre,trim:Pre,stripBOM:Lre,inherits:kre,toFlatObject:Ure,kindOf:bg,kindOfTest:Oa,endsWith:Fre,toArray:Bre,forEachEntry:Vre,matchAll:Gre,isHTMLForm:zre,hasOwnProperty:zR,hasOwnProp:zR,reduceDescriptors:T5,freezeMethods:Yre,toObjectSet:Wre,toCamelCase:$re,noop:Kre,toFiniteNumber:Xre,findKey:E5,global:Di,isContextDefined:S5,isSpecCompliantForm:Qre,toJSONObject:Zre,isAsyncFn:Jre,isThenable:eae,setImmediate:N5,asap:tae,isIterable:nae};function qe(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}ae.inherits(qe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ae.toJSONObject(this.config),code:this.code,status:this.status}}});const w5=qe.prototype,C5={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{C5[e]={value:e}});Object.defineProperties(qe,C5);Object.defineProperty(w5,"isAxiosError",{value:!0});qe.from=(e,t,n,r,a,s)=>{const i=Object.create(w5);return ae.toFlatObject(e,i,function(d){return d!==Error.prototype},u=>u!=="isAxiosError"),qe.call(i,e.message,t,n,r,a),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const rae=null;function Kb(e){return ae.isPlainObject(e)||ae.isArray(e)}function A5(e){return ae.endsWith(e,"[]")?e.slice(0,-2):e}function $R(e,t,n){return e?e.concat(t).map(function(a,s){return a=A5(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function aae(e){return ae.isArray(e)&&!e.some(Kb)}const sae=ae.toFlatObject(ae,{},null,function(t){return/^is[A-Z]/.test(t)});function Tg(e,t,n){if(!ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ae.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,T){return!ae.isUndefined(T[b])});const r=n.metaTokens,a=n.visitor||m,s=n.dots,i=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&ae.isSpecCompliantForm(t);if(!ae.isFunction(a))throw new TypeError("visitor must be a function");function f(x){if(x===null)return"";if(ae.isDate(x))return x.toISOString();if(!d&&ae.isBlob(x))throw new qe("Blob is not supported. Use a Buffer instead.");return ae.isArrayBuffer(x)||ae.isTypedArray(x)?d&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function m(x,b,T){let N=x;if(x&&!T&&typeof x=="object"){if(ae.endsWith(b,"{}"))b=r?b:b.slice(0,-2),x=JSON.stringify(x);else if(ae.isArray(x)&&aae(x)||(ae.isFileList(x)||ae.endsWith(b,"[]"))&&(N=ae.toArray(x)))return b=A5(b),N.forEach(function(A,R){!(ae.isUndefined(A)||A===null)&&t.append(i===!0?$R([b],R,s):i===null?b:b+"[]",f(A))}),!1}return Kb(x)?!0:(t.append($R(T,b,s),f(x)),!1)}const p=[],v=Object.assign(sae,{defaultVisitor:m,convertValue:f,isVisitable:Kb});function y(x,b){if(!ae.isUndefined(x)){if(p.indexOf(x)!==-1)throw Error("Circular reference detected in "+b.join("."));p.push(x),ae.forEach(x,function(N,C){(!(ae.isUndefined(N)||N===null)&&a.call(t,N,ae.isString(C)?C.trim():C,b,v))===!0&&y(N,b?b.concat(C):[C])}),p.pop()}}if(!ae.isObject(e))throw new TypeError("data must be an object");return y(e),t}function qR(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function AS(e,t){this._pairs=[],e&&Tg(e,this,t)}const _5=AS.prototype;_5.append=function(t,n){this._pairs.push([t,n])};_5.toString=function(t){const n=t?function(r){return t.call(this,r,qR)}:qR;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function oae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function R5(e,t,n){if(!t)return e;const r=n&&n.encode||oae;ae.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(t,n):s=ae.isURLSearchParams(t)?t.toString():new AS(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class YR{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ae.forEach(this.handlers,function(r){r!==null&&t(r)})}}const M5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},iae=typeof URLSearchParams<"u"?URLSearchParams:AS,lae=typeof FormData<"u"?FormData:null,cae=typeof Blob<"u"?Blob:null,uae={isBrowser:!0,classes:{URLSearchParams:iae,FormData:lae,Blob:cae},protocols:["http","https","file","blob","url","data"]},_S=typeof window<"u"&&typeof document<"u",Xb=typeof navigator=="object"&&navigator||void 0,dae=_S&&(!Xb||["ReactNative","NativeScript","NS"].indexOf(Xb.product)<0),fae=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hae=_S&&window.location.href||"http://localhost",mae=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_S,hasStandardBrowserEnv:dae,hasStandardBrowserWebWorkerEnv:fae,navigator:Xb,origin:hae},Symbol.toStringTag,{value:"Module"})),Qn={...mae,...uae};function pae(e,t){return Tg(e,new Qn.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,s){return Qn.isNode&&ae.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function gae(e){return ae.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vae(e){const t={},n=Object.keys(e);let r;const a=n.length;let s;for(r=0;r<a;r++)s=n[r],t[s]=e[s];return t}function O5(e){function t(n,r,a,s){let i=n[s++];if(i==="__proto__")return!0;const u=Number.isFinite(+i),d=s>=n.length;return i=!i&&ae.isArray(a)?a.length:i,d?(ae.hasOwnProp(a,i)?a[i]=[a[i],r]:a[i]=r,!u):((!a[i]||!ae.isObject(a[i]))&&(a[i]=[]),t(n,r,a[i],s)&&ae.isArray(a[i])&&(a[i]=vae(a[i])),!u)}if(ae.isFormData(e)&&ae.isFunction(e.entries)){const n={};return ae.forEachEntry(e,(r,a)=>{t(gae(r),a,n,0)}),n}return null}function yae(e,t,n){if(ae.isString(e))try{return(t||JSON.parse)(e),ae.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Cf={transitional:M5,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,s=ae.isObject(t);if(s&&ae.isHTMLForm(t)&&(t=new FormData(t)),ae.isFormData(t))return a?JSON.stringify(O5(t)):t;if(ae.isArrayBuffer(t)||ae.isBuffer(t)||ae.isStream(t)||ae.isFile(t)||ae.isBlob(t)||ae.isReadableStream(t))return t;if(ae.isArrayBufferView(t))return t.buffer;if(ae.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pae(t,this.formSerializer).toString();if((u=ae.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Tg(u?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),yae(t)):t}],transformResponse:[function(t){const n=this.transitional||Cf.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(ae.isResponse(t)||ae.isReadableStream(t))return t;if(t&&ae.isString(t)&&(r&&!this.responseType||a)){const i=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?qe.from(u,qe.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qn.classes.FormData,Blob:Qn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ae.forEach(["delete","get","head","post","put","patch"],e=>{Cf.headers[e]={}});const xae=ae.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bae=e=>{const t={};let n,r,a;return e&&e.split(`
`).forEach(function(i){a=i.indexOf(":"),n=i.substring(0,a).trim().toLowerCase(),r=i.substring(a+1).trim(),!(!n||t[n]&&xae[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},WR=Symbol("internals");function ad(e){return e&&String(e).trim().toLowerCase()}function zm(e){return e===!1||e==null?e:ae.isArray(e)?e.map(zm):String(e)}function Eae(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Sae=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Jy(e,t,n,r,a){if(ae.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!ae.isString(t)){if(ae.isString(r))return t.indexOf(r)!==-1;if(ae.isRegExp(r))return r.test(t)}}function Tae(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Nae(e,t){const n=ae.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,s,i){return this[r].call(this,t,a,s,i)},configurable:!0})})}let Er=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function s(u,d,f){const m=ad(d);if(!m)throw new Error("header name must be a non-empty string");const p=ae.findKey(a,m);(!p||a[p]===void 0||f===!0||f===void 0&&a[p]!==!1)&&(a[p||d]=zm(u))}const i=(u,d)=>ae.forEach(u,(f,m)=>s(f,m,d));if(ae.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(ae.isString(t)&&(t=t.trim())&&!Sae(t))i(bae(t),n);else if(ae.isObject(t)&&ae.isIterable(t)){let u={},d,f;for(const m of t){if(!ae.isArray(m))throw TypeError("Object iterator must return a key-value pair");u[f=m[0]]=(d=u[f])?ae.isArray(d)?[...d,m[1]]:[d,m[1]]:m[1]}i(u,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=ad(t),t){const r=ae.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return Eae(a);if(ae.isFunction(n))return n.call(this,a,r);if(ae.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ad(t),t){const r=ae.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Jy(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function s(i){if(i=ad(i),i){const u=ae.findKey(r,i);u&&(!n||Jy(r,r[u],u,n))&&(delete r[u],a=!0)}}return ae.isArray(t)?t.forEach(s):s(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const s=n[r];(!t||Jy(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const n=this,r={};return ae.forEach(this,(a,s)=>{const i=ae.findKey(r,s);if(i){n[i]=zm(a),delete n[s];return}const u=t?Tae(s):String(s).trim();u!==s&&delete n[s],n[u]=zm(a),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ae.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&ae.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[WR]=this[WR]={accessors:{}}).accessors,a=this.prototype;function s(i){const u=ad(i);r[u]||(Nae(a,i),r[u]=!0)}return ae.isArray(t)?t.forEach(s):s(t),this}};Er.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ae.reduceDescriptors(Er.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ae.freezeMethods(Er);function ex(e,t){const n=this||Cf,r=t||n,a=Er.from(r.headers);let s=r.data;return ae.forEach(e,function(u){s=u.call(n,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function D5(e){return!!(e&&e.__CANCEL__)}function Xc(e,t,n){qe.call(this,e??"canceled",qe.ERR_CANCELED,t,n),this.name="CanceledError"}ae.inherits(Xc,qe,{__CANCEL__:!0});function I5(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new qe("Request failed with status code "+n.status,[qe.ERR_BAD_REQUEST,qe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function wae(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Cae(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,s=0,i;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),m=r[s];i||(i=f),n[a]=d,r[a]=f;let p=s,v=0;for(;p!==a;)v+=n[p++],p=p%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),f-i<t)return;const y=m&&f-m;return y?Math.round(v*1e3/y):void 0}}function Aae(e,t){let n=0,r=1e3/t,a,s;const i=(f,m=Date.now())=>{n=m,a=null,s&&(clearTimeout(s),s=null),e.apply(null,f)};return[(...f)=>{const m=Date.now(),p=m-n;p>=r?i(f,m):(a=f,s||(s=setTimeout(()=>{s=null,i(a)},r-p)))},()=>a&&i(a)]}const wp=(e,t,n=3)=>{let r=0;const a=Cae(50,250);return Aae(s=>{const i=s.loaded,u=s.lengthComputable?s.total:void 0,d=i-r,f=a(d),m=i<=u;r=i;const p={loaded:i,total:u,progress:u?i/u:void 0,bytes:d,rate:f||void 0,estimated:f&&u&&m?(u-i)/f:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(p)},n)},KR=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},XR=e=>(...t)=>ae.asap(()=>e(...t)),_ae=Qn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Qn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Qn.origin),Qn.navigator&&/(msie|trident)/i.test(Qn.navigator.userAgent)):()=>!0,Rae=Qn.hasStandardBrowserEnv?{write(e,t,n,r,a,s){const i=[e+"="+encodeURIComponent(t)];ae.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),ae.isString(r)&&i.push("path="+r),ae.isString(a)&&i.push("domain="+a),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Mae(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Oae(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function P5(e,t,n){let r=!Mae(t);return e&&(r||n==!1)?Oae(e,t):t}const QR=e=>e instanceof Er?{...e}:e;function Ki(e,t){t=t||{};const n={};function r(f,m,p,v){return ae.isPlainObject(f)&&ae.isPlainObject(m)?ae.merge.call({caseless:v},f,m):ae.isPlainObject(m)?ae.merge({},m):ae.isArray(m)?m.slice():m}function a(f,m,p,v){if(ae.isUndefined(m)){if(!ae.isUndefined(f))return r(void 0,f,p,v)}else return r(f,m,p,v)}function s(f,m){if(!ae.isUndefined(m))return r(void 0,m)}function i(f,m){if(ae.isUndefined(m)){if(!ae.isUndefined(f))return r(void 0,f)}else return r(void 0,m)}function u(f,m,p){if(p in t)return r(f,m);if(p in e)return r(void 0,f)}const d={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u,headers:(f,m,p)=>a(QR(f),QR(m),p,!0)};return ae.forEach(Object.keys(Object.assign({},e,t)),function(m){const p=d[m]||a,v=p(e[m],t[m],m);ae.isUndefined(v)&&p!==u||(n[m]=v)}),n}const j5=e=>{const t=Ki({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:s,headers:i,auth:u}=t;t.headers=i=Er.from(i),t.url=R5(P5(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&i.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let d;if(ae.isFormData(n)){if(Qn.hasStandardBrowserEnv||Qn.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((d=i.getContentType())!==!1){const[f,...m]=d?d.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...m].join("; "))}}if(Qn.hasStandardBrowserEnv&&(r&&ae.isFunction(r)&&(r=r(t)),r||r!==!1&&_ae(t.url))){const f=a&&s&&Rae.read(s);f&&i.set(a,f)}return t},Dae=typeof XMLHttpRequest<"u",Iae=Dae&&function(e){return new Promise(function(n,r){const a=j5(e);let s=a.data;const i=Er.from(a.headers).normalize();let{responseType:u,onUploadProgress:d,onDownloadProgress:f}=a,m,p,v,y,x;function b(){y&&y(),x&&x(),a.cancelToken&&a.cancelToken.unsubscribe(m),a.signal&&a.signal.removeEventListener("abort",m)}let T=new XMLHttpRequest;T.open(a.method.toUpperCase(),a.url,!0),T.timeout=a.timeout;function N(){if(!T)return;const A=Er.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),_={data:!u||u==="text"||u==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:A,config:e,request:T};I5(function(D){n(D),b()},function(D){r(D),b()},_),T=null}"onloadend"in T?T.onloadend=N:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(N)},T.onabort=function(){T&&(r(new qe("Request aborted",qe.ECONNABORTED,e,T)),T=null)},T.onerror=function(){r(new qe("Network Error",qe.ERR_NETWORK,e,T)),T=null},T.ontimeout=function(){let R=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const _=a.transitional||M5;a.timeoutErrorMessage&&(R=a.timeoutErrorMessage),r(new qe(R,_.clarifyTimeoutError?qe.ETIMEDOUT:qe.ECONNABORTED,e,T)),T=null},s===void 0&&i.setContentType(null),"setRequestHeader"in T&&ae.forEach(i.toJSON(),function(R,_){T.setRequestHeader(_,R)}),ae.isUndefined(a.withCredentials)||(T.withCredentials=!!a.withCredentials),u&&u!=="json"&&(T.responseType=a.responseType),f&&([v,x]=wp(f,!0),T.addEventListener("progress",v)),d&&T.upload&&([p,y]=wp(d),T.upload.addEventListener("progress",p),T.upload.addEventListener("loadend",y)),(a.cancelToken||a.signal)&&(m=A=>{T&&(r(!A||A.type?new Xc(null,e,T):A),T.abort(),T=null)},a.cancelToken&&a.cancelToken.subscribe(m),a.signal&&(a.signal.aborted?m():a.signal.addEventListener("abort",m)));const C=wae(a.url);if(C&&Qn.protocols.indexOf(C)===-1){r(new qe("Unsupported protocol "+C+":",qe.ERR_BAD_REQUEST,e));return}T.send(s||null)})},Pae=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const s=function(f){if(!a){a=!0,u();const m=f instanceof Error?f:this.reason;r.abort(m instanceof qe?m:new Xc(m instanceof Error?m.message:m))}};let i=t&&setTimeout(()=>{i=null,s(new qe(`timeout ${t} of ms exceeded`,qe.ETIMEDOUT))},t);const u=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(s):f.removeEventListener("abort",s)}),e=null)};e.forEach(f=>f.addEventListener("abort",s));const{signal:d}=r;return d.unsubscribe=()=>ae.asap(u),d}},jae=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},Lae=async function*(e,t){for await(const n of kae(e))yield*jae(n,t)},kae=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ZR=(e,t,n,r)=>{const a=Lae(e,t);let s=0,i,u=d=>{i||(i=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:m}=await a.next();if(f){u(),d.close();return}let p=m.byteLength;if(n){let v=s+=p;n(v)}d.enqueue(new Uint8Array(m))}catch(f){throw u(f),f}},cancel(d){return u(d),a.return()}},{highWaterMark:2})},Ng=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",L5=Ng&&typeof ReadableStream=="function",Uae=Ng&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),k5=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Fae=L5&&k5(()=>{let e=!1;const t=new Request(Qn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),JR=64*1024,Qb=L5&&k5(()=>ae.isReadableStream(new Response("").body)),Cp={stream:Qb&&(e=>e.body)};Ng&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Cp[t]&&(Cp[t]=ae.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new qe(`Response type '${t}' is not supported`,qe.ERR_NOT_SUPPORT,r)})})})(new Response);const Bae=async e=>{if(e==null)return 0;if(ae.isBlob(e))return e.size;if(ae.isSpecCompliantForm(e))return(await new Request(Qn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ae.isArrayBufferView(e)||ae.isArrayBuffer(e))return e.byteLength;if(ae.isURLSearchParams(e)&&(e=e+""),ae.isString(e))return(await Uae(e)).byteLength},Hae=async(e,t)=>{const n=ae.toFiniteNumber(e.getContentLength());return n??Bae(t)},Vae=Ng&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:s,timeout:i,onDownloadProgress:u,onUploadProgress:d,responseType:f,headers:m,withCredentials:p="same-origin",fetchOptions:v}=j5(e);f=f?(f+"").toLowerCase():"text";let y=Pae([a,s&&s.toAbortSignal()],i),x;const b=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let T;try{if(d&&Fae&&n!=="get"&&n!=="head"&&(T=await Hae(m,r))!==0){let _=new Request(t,{method:"POST",body:r,duplex:"half"}),O;if(ae.isFormData(r)&&(O=_.headers.get("content-type"))&&m.setContentType(O),_.body){const[D,P]=KR(T,wp(XR(d)));r=ZR(_.body,JR,D,P)}}ae.isString(p)||(p=p?"include":"omit");const N="credentials"in Request.prototype;x=new Request(t,{...v,signal:y,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:r,duplex:"half",credentials:N?p:void 0});let C=await fetch(x);const A=Qb&&(f==="stream"||f==="response");if(Qb&&(u||A&&b)){const _={};["status","statusText","headers"].forEach(L=>{_[L]=C[L]});const O=ae.toFiniteNumber(C.headers.get("content-length")),[D,P]=u&&KR(O,wp(XR(u),!0))||[];C=new Response(ZR(C.body,JR,D,()=>{P&&P(),b&&b()}),_)}f=f||"text";let R=await Cp[ae.findKey(Cp,f)||"text"](C,e);return!A&&b&&b(),await new Promise((_,O)=>{I5(_,O,{data:R,headers:Er.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:x})})}catch(N){throw b&&b(),N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new qe("Network Error",qe.ERR_NETWORK,e,x),{cause:N.cause||N}):qe.from(N,N&&N.code,e,x)}}),Zb={http:rae,xhr:Iae,fetch:Vae};ae.forEach(Zb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const eM=e=>`- ${e}`,Gae=e=>ae.isFunction(e)||e===null||e===!1,U5={getAdapter:e=>{e=ae.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let s=0;s<t;s++){n=e[s];let i;if(r=n,!Gae(n)&&(r=Zb[(i=String(n)).toLowerCase()],r===void 0))throw new qe(`Unknown adapter '${i}'`);if(r)break;a[i||"#"+s]=r}if(!r){const s=Object.entries(a).map(([u,d])=>`adapter ${u} `+(d===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
`+s.map(eM).join(`
`):" "+eM(s[0]):"as no adapter specified";throw new qe("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Zb};function tx(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xc(null,e)}function tM(e){return tx(e),e.headers=Er.from(e.headers),e.data=ex.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),U5.getAdapter(e.adapter||Cf.adapter)(e).then(function(r){return tx(e),r.data=ex.call(e,e.transformResponse,r),r.headers=Er.from(r.headers),r},function(r){return D5(r)||(tx(e),r&&r.response&&(r.response.data=ex.call(e,e.transformResponse,r.response),r.response.headers=Er.from(r.response.headers))),Promise.reject(r)})}const F5="1.9.0",wg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const nM={};wg.transitional=function(t,n,r){function a(s,i){return"[Axios v"+F5+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,u)=>{if(t===!1)throw new qe(a(i," has been removed"+(n?" in "+n:"")),qe.ERR_DEPRECATED);return n&&!nM[i]&&(nM[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,u):!0}};wg.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function zae(e,t,n){if(typeof e!="object")throw new qe("options must be an object",qe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const s=r[a],i=t[s];if(i){const u=e[s],d=u===void 0||i(u,s,e);if(d!==!0)throw new qe("option "+s+" must be "+d,qe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new qe("Unknown option "+s,qe.ERR_BAD_OPTION)}}const $m={assertOptions:zae,validators:wg},Va=$m.validators;let zi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new YR,response:new YR}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ki(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:s}=n;r!==void 0&&$m.assertOptions(r,{silentJSONParsing:Va.transitional(Va.boolean),forcedJSONParsing:Va.transitional(Va.boolean),clarifyTimeoutError:Va.transitional(Va.boolean)},!1),a!=null&&(ae.isFunction(a)?n.paramsSerializer={serialize:a}:$m.assertOptions(a,{encode:Va.function,serialize:Va.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),$m.assertOptions(n,{baseUrl:Va.spelling("baseURL"),withXsrfToken:Va.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&ae.merge(s.common,s[n.method]);s&&ae.forEach(["delete","get","head","post","put","patch","common"],x=>{delete s[x]}),n.headers=Er.concat(i,s);const u=[];let d=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(d=d&&b.synchronous,u.unshift(b.fulfilled,b.rejected))});const f=[];this.interceptors.response.forEach(function(b){f.push(b.fulfilled,b.rejected)});let m,p=0,v;if(!d){const x=[tM.bind(this),void 0];for(x.unshift.apply(x,u),x.push.apply(x,f),v=x.length,m=Promise.resolve(n);p<v;)m=m.then(x[p++],x[p++]);return m}v=u.length;let y=n;for(p=0;p<v;){const x=u[p++],b=u[p++];try{y=x(y)}catch(T){b.call(this,T);break}}try{m=tM.call(this,y)}catch(x){return Promise.reject(x)}for(p=0,v=f.length;p<v;)m=m.then(f[p++],f[p++]);return m}getUri(t){t=Ki(this.defaults,t);const n=P5(t.baseURL,t.url,t.allowAbsoluteUrls);return R5(n,t.params,t.paramsSerializer)}};ae.forEach(["delete","get","head","options"],function(t){zi.prototype[t]=function(n,r){return this.request(Ki(r||{},{method:t,url:n,data:(r||{}).data}))}});ae.forEach(["post","put","patch"],function(t){function n(r){return function(s,i,u){return this.request(Ki(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}zi.prototype[t]=n(),zi.prototype[t+"Form"]=n(!0)});let $ae=class B5{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(a=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](a);r._listeners=null}),this.promise.then=a=>{let s;const i=new Promise(u=>{r.subscribe(u),s=u}).then(a);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,u){r.reason||(r.reason=new Xc(s,i,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new B5(function(a){t=a}),cancel:t}}};function qae(e){return function(n){return e.apply(null,n)}}function Yae(e){return ae.isObject(e)&&e.isAxiosError===!0}const Jb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Jb).forEach(([e,t])=>{Jb[t]=e});function H5(e){const t=new zi(e),n=v5(zi.prototype.request,t);return ae.extend(n,zi.prototype,t,{allOwnKeys:!0}),ae.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return H5(Ki(e,a))},n}const tn=H5(Cf);tn.Axios=zi;tn.CanceledError=Xc;tn.CancelToken=$ae;tn.isCancel=D5;tn.VERSION=F5;tn.toFormData=Tg;tn.AxiosError=qe;tn.Cancel=tn.CanceledError;tn.all=function(t){return Promise.all(t)};tn.spread=qae;tn.isAxiosError=Yae;tn.mergeConfig=Ki;tn.AxiosHeaders=Er;tn.formToJSON=e=>O5(ae.isHTMLForm(e)?new FormData(e):e);tn.getAdapter=U5.getAdapter;tn.HttpStatusCode=Jb;tn.default=tn;const{Axios:rpe,AxiosError:ape,CanceledError:spe,isCancel:ope,CancelToken:ipe,VERSION:lpe,all:cpe,Cancel:upe,isAxiosError:dpe,spread:fpe,toFormData:hpe,AxiosHeaders:mpe,HttpStatusCode:ppe,formToJSON:gpe,getAdapter:vpe,mergeConfig:ype}=tn,Wae=()=>{const[e,t]=S.useState(!1),[n,r]=S.useState(new Date().toISOString().split("T")[0]),[a,s]=S.useState(new Date().toISOString().split("T")[0]),[i,u]=S.useState([]),[d,f]=S.useState(!1),[m,p]=S.useState(""),v=Mn({viewStateValue:N=>{const C=N==null?void 0:N.querySelector("#__VIEWSTATE");return C?C.value:""},viewStateGeneratorValue:N=>{const C=N==null?void 0:N.querySelector("#__VIEWSTATEGENERATOR");return C?C.value:""},eventValidationValue:N=>{const C=N==null?void 0:N.querySelector("#__EVENTVALIDATION");return C?C.value:""}}),y=N=>{var P,L,U,B,H,Z,ee,Q,j,Y,V,te,k,$,se,re;const R=new DOMParser().parseFromString(N,"text/html").querySelector("#ctl00_mainContent_gvData");if(!R)return[];const _=R.querySelectorAll("tr"),O=[];for(let ue=1;ue<_.length-1;ue++){const fe=_[ue].querySelectorAll("td");fe.length>=7&&O.push({id:parseInt(((L=(P=fe[0])==null?void 0:P.textContent)==null?void 0:L.trim())||"0"),receiptNo:((B=(U=fe[1])==null?void 0:U.textContent)==null?void 0:B.trim())||"",date:((Z=(H=fe[2])==null?void 0:H.textContent)==null?void 0:Z.trim())||"",feeType:((Q=(ee=fe[3])==null?void 0:ee.textContent)==null?void 0:Q.trim())||"",amount:((Y=(j=fe[4])==null?void 0:j.textContent)==null?void 0:Y.trim())||"",inputBy:((te=(V=fe[5])==null?void 0:V.textContent)==null?void 0:te.trim())||"",description:(($=(k=fe[6])==null?void 0:k.textContent)==null?void 0:$.trim())||""})}const D=_[_.length-1];if(D){const ue=D.querySelectorAll("td");ue.length>=5&&p(((re=(se=ue[4])==null?void 0:se.textContent)==null?void 0:re.trim())||"0")}return O},x=async()=>{t(!0),f(!0);try{const N=await T(!0),C=y(N.data);u(C)}catch(N){console.error("Failed to fetch transaction report:",N)}finally{t(!1)}},b=()=>{T(!1).then(N=>{const C=new Blob([N.data],{type:"application/vnd.ms-excel"}),A=window.URL.createObjectURL(C),R=document.createElement("a");R.href=A,R.download="TransactionReport.xls",R.click()})},T=N=>{const[C,A,R]=n.split("-"),[_,O,D]=a.split("-"),P={__EVENTTARGET:"",__EVENTARGUMENT:"",__VIEWSTATE:v.viewStateValue,__VIEWSTATEGENERATOR:v.viewStateGeneratorValue,__EVENTVALIDATION:v.eventValidationValue,ctl00$mainContent$ucStartDate$ddlDays:Number(R),ctl00$mainContent$ucStartDate$ddlMonths:Number(A),ctl00$mainContent$ucStartDate$ddlYears:Number(C),ctl00$mainContent$ucEndDate$ddlDays:Number(D),ctl00$mainContent$ucEndDate$ddlMonths:Number(O),ctl00$mainContent$ucEndDate$ddlYears:Number(_),ctl00$mainContent$hfError:""};return N?P.ctl00$mainContent$btView="View":P.ctl00$mainContent$btExport="Export",tn.post("",P,{headers:{"Content-Type":"application/x-www-form-urlencoded"}})};return{loading:e,transactions:i,summary:m,fromDate:n,toDate:a,setFromDate:r,setToDate:s,onView:x,onExport:b,hasSearched:d}};function eE(e,[t,n]){return Math.min(n,Math.max(t,e))}function Kae(e,t){return S.useReducer((n,r)=>t[n][r]??n,e)}var RS="ScrollArea",[V5,xpe]=Gn(RS),[Xae,sa]=V5(RS),G5=S.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:a,scrollHideDelay:s=600,...i}=e,[u,d]=S.useState(null),[f,m]=S.useState(null),[p,v]=S.useState(null),[y,x]=S.useState(null),[b,T]=S.useState(null),[N,C]=S.useState(0),[A,R]=S.useState(0),[_,O]=S.useState(!1),[D,P]=S.useState(!1),L=Ue(t,B=>d(B)),U=el(a);return c.jsx(Xae,{scope:n,type:r,dir:U,scrollHideDelay:s,scrollArea:u,viewport:f,onViewportChange:m,content:p,onContentChange:v,scrollbarX:y,onScrollbarXChange:x,scrollbarXEnabled:_,onScrollbarXEnabledChange:O,scrollbarY:b,onScrollbarYChange:T,scrollbarYEnabled:D,onScrollbarYEnabledChange:P,onCornerWidthChange:C,onCornerHeightChange:R,children:c.jsx(ye.div,{dir:U,...i,ref:L,style:{position:"relative","--radix-scroll-area-corner-width":N+"px","--radix-scroll-area-corner-height":A+"px",...e.style}})})});G5.displayName=RS;var z5="ScrollAreaViewport",$5=S.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:a,...s}=e,i=sa(z5,n),u=S.useRef(null),d=Ue(t,u,i.onViewportChange);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),c.jsx(ye.div,{"data-radix-scroll-area-viewport":"",...s,ref:d,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:c.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});$5.displayName=z5;var cs="ScrollAreaScrollbar",q5=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=sa(cs,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=a,u=e.orientation==="horizontal";return S.useEffect(()=>(u?s(!0):i(!0),()=>{u?s(!1):i(!1)}),[u,s,i]),a.type==="hover"?c.jsx(Qae,{...r,ref:t,forceMount:n}):a.type==="scroll"?c.jsx(Zae,{...r,ref:t,forceMount:n}):a.type==="auto"?c.jsx(Y5,{...r,ref:t,forceMount:n}):a.type==="always"?c.jsx(MS,{...r,ref:t}):null});q5.displayName=cs;var Qae=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=sa(cs,e.__scopeScrollArea),[s,i]=S.useState(!1);return S.useEffect(()=>{const u=a.scrollArea;let d=0;if(u){const f=()=>{window.clearTimeout(d),i(!0)},m=()=>{d=window.setTimeout(()=>i(!1),a.scrollHideDelay)};return u.addEventListener("pointerenter",f),u.addEventListener("pointerleave",m),()=>{window.clearTimeout(d),u.removeEventListener("pointerenter",f),u.removeEventListener("pointerleave",m)}}},[a.scrollArea,a.scrollHideDelay]),c.jsx(on,{present:n||s,children:c.jsx(Y5,{"data-state":s?"visible":"hidden",...r,ref:t})})}),Zae=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=sa(cs,e.__scopeScrollArea),s=e.orientation==="horizontal",i=Ag(()=>d("SCROLL_END"),100),[u,d]=Kae("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return S.useEffect(()=>{if(u==="idle"){const f=window.setTimeout(()=>d("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(f)}},[u,a.scrollHideDelay,d]),S.useEffect(()=>{const f=a.viewport,m=s?"scrollLeft":"scrollTop";if(f){let p=f[m];const v=()=>{const y=f[m];p!==y&&(d("SCROLL"),i()),p=y};return f.addEventListener("scroll",v),()=>f.removeEventListener("scroll",v)}},[a.viewport,s,d,i]),c.jsx(on,{present:n||u!=="hidden",children:c.jsx(MS,{"data-state":u==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:me(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:me(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),Y5=S.forwardRef((e,t)=>{const n=sa(cs,e.__scopeScrollArea),{forceMount:r,...a}=e,[s,i]=S.useState(!1),u=e.orientation==="horizontal",d=Ag(()=>{if(n.viewport){const f=n.viewport.offsetWidth<n.viewport.scrollWidth,m=n.viewport.offsetHeight<n.viewport.scrollHeight;i(u?f:m)}},10);return Rc(n.viewport,d),Rc(n.content,d),c.jsx(on,{present:r||s,children:c.jsx(MS,{"data-state":s?"visible":"hidden",...a,ref:t})})}),MS=S.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,a=sa(cs,e.__scopeScrollArea),s=S.useRef(null),i=S.useRef(0),[u,d]=S.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=Z5(u.viewport,u.content),m={...r,sizes:u,onSizesChange:d,hasThumb:f>0&&f<1,onThumbChange:v=>s.current=v,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:v=>i.current=v};function p(v,y){return ase(v,i.current,u,y)}return n==="horizontal"?c.jsx(Jae,{...m,ref:t,onThumbPositionChange:()=>{if(a.viewport&&s.current){const v=a.viewport.scrollLeft,y=rM(v,u,a.dir);s.current.style.transform=`translate3d(${y}px, 0, 0)`}},onWheelScroll:v=>{a.viewport&&(a.viewport.scrollLeft=v)},onDragScroll:v=>{a.viewport&&(a.viewport.scrollLeft=p(v,a.dir))}}):n==="vertical"?c.jsx(ese,{...m,ref:t,onThumbPositionChange:()=>{if(a.viewport&&s.current){const v=a.viewport.scrollTop,y=rM(v,u);s.current.style.transform=`translate3d(0, ${y}px, 0)`}},onWheelScroll:v=>{a.viewport&&(a.viewport.scrollTop=v)},onDragScroll:v=>{a.viewport&&(a.viewport.scrollTop=p(v))}}):null}),Jae=S.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,s=sa(cs,e.__scopeScrollArea),[i,u]=S.useState(),d=S.useRef(null),f=Ue(t,d,s.onScrollbarXChange);return S.useEffect(()=>{d.current&&u(getComputedStyle(d.current))},[d]),c.jsx(K5,{"data-orientation":"horizontal",...a,ref:f,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Cg(n)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,p)=>{if(s.viewport){const v=s.viewport.scrollLeft+m.deltaX;e.onWheelScroll(v),ek(v,p)&&m.preventDefault()}},onResize:()=>{d.current&&s.viewport&&i&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:_p(i.paddingLeft),paddingEnd:_p(i.paddingRight)}})}})}),ese=S.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,s=sa(cs,e.__scopeScrollArea),[i,u]=S.useState(),d=S.useRef(null),f=Ue(t,d,s.onScrollbarYChange);return S.useEffect(()=>{d.current&&u(getComputedStyle(d.current))},[d]),c.jsx(K5,{"data-orientation":"vertical",...a,ref:f,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Cg(n)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,p)=>{if(s.viewport){const v=s.viewport.scrollTop+m.deltaY;e.onWheelScroll(v),ek(v,p)&&m.preventDefault()}},onResize:()=>{d.current&&s.viewport&&i&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:_p(i.paddingTop),paddingEnd:_p(i.paddingBottom)}})}})}),[tse,W5]=V5(cs),K5=S.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:a,onThumbChange:s,onThumbPointerUp:i,onThumbPointerDown:u,onThumbPositionChange:d,onDragScroll:f,onWheelScroll:m,onResize:p,...v}=e,y=sa(cs,n),[x,b]=S.useState(null),T=Ue(t,L=>b(L)),N=S.useRef(null),C=S.useRef(""),A=y.viewport,R=r.content-r.viewport,_=It(m),O=It(d),D=Ag(p,10);function P(L){if(N.current){const U=L.clientX-N.current.left,B=L.clientY-N.current.top;f({x:U,y:B})}}return S.useEffect(()=>{const L=U=>{const B=U.target;(x==null?void 0:x.contains(B))&&_(U,R)};return document.addEventListener("wheel",L,{passive:!1}),()=>document.removeEventListener("wheel",L,{passive:!1})},[A,x,R,_]),S.useEffect(O,[r,O]),Rc(x,D),Rc(y.content,D),c.jsx(tse,{scope:n,scrollbar:x,hasThumb:a,onThumbChange:It(s),onThumbPointerUp:It(i),onThumbPositionChange:O,onThumbPointerDown:It(u),children:c.jsx(ye.div,{...v,ref:T,style:{position:"absolute",...v.style},onPointerDown:me(e.onPointerDown,L=>{L.button===0&&(L.target.setPointerCapture(L.pointerId),N.current=x.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),P(L))}),onPointerMove:me(e.onPointerMove,P),onPointerUp:me(e.onPointerUp,L=>{const U=L.target;U.hasPointerCapture(L.pointerId)&&U.releasePointerCapture(L.pointerId),document.body.style.webkitUserSelect=C.current,y.viewport&&(y.viewport.style.scrollBehavior=""),N.current=null})})})}),Ap="ScrollAreaThumb",X5=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=W5(Ap,e.__scopeScrollArea);return c.jsx(on,{present:n||a.hasThumb,children:c.jsx(nse,{ref:t,...r})})}),nse=S.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...a}=e,s=sa(Ap,n),i=W5(Ap,n),{onThumbPositionChange:u}=i,d=Ue(t,p=>i.onThumbChange(p)),f=S.useRef(void 0),m=Ag(()=>{f.current&&(f.current(),f.current=void 0)},100);return S.useEffect(()=>{const p=s.viewport;if(p){const v=()=>{if(m(),!f.current){const y=sse(p,u);f.current=y,u()}};return u(),p.addEventListener("scroll",v),()=>p.removeEventListener("scroll",v)}},[s.viewport,m,u]),c.jsx(ye.div,{"data-state":i.hasThumb?"visible":"hidden",...a,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:me(e.onPointerDownCapture,p=>{const y=p.target.getBoundingClientRect(),x=p.clientX-y.left,b=p.clientY-y.top;i.onThumbPointerDown({x,y:b})}),onPointerUp:me(e.onPointerUp,i.onThumbPointerUp)})});X5.displayName=Ap;var OS="ScrollAreaCorner",Q5=S.forwardRef((e,t)=>{const n=sa(OS,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?c.jsx(rse,{...e,ref:t}):null});Q5.displayName=OS;var rse=S.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,a=sa(OS,n),[s,i]=S.useState(0),[u,d]=S.useState(0),f=!!(s&&u);return Rc(a.scrollbarX,()=>{var p;const m=((p=a.scrollbarX)==null?void 0:p.offsetHeight)||0;a.onCornerHeightChange(m),d(m)}),Rc(a.scrollbarY,()=>{var p;const m=((p=a.scrollbarY)==null?void 0:p.offsetWidth)||0;a.onCornerWidthChange(m),i(m)}),f?c.jsx(ye.div,{...r,ref:t,style:{width:s,height:u,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function _p(e){return e?parseInt(e,10):0}function Z5(e,t){const n=e/t;return isNaN(n)?0:n}function Cg(e){const t=Z5(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function ase(e,t,n,r="ltr"){const a=Cg(n),s=a/2,i=t||s,u=a-i,d=n.scrollbar.paddingStart+i,f=n.scrollbar.size-n.scrollbar.paddingEnd-u,m=n.content-n.viewport,p=r==="ltr"?[0,m]:[m*-1,0];return J5([d,f],p)(e)}function rM(e,t,n="ltr"){const r=Cg(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-a,i=t.content-t.viewport,u=s-r,d=n==="ltr"?[0,i]:[i*-1,0],f=eE(e,d);return J5([0,i],[0,u])(f)}function J5(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function ek(e,t){return e>0&&e<t}var sse=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function a(){const s={left:e.scrollLeft,top:e.scrollTop},i=n.left!==s.left,u=n.top!==s.top;(i||u)&&t(),n=s,r=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(r)};function Ag(e,t){const n=It(e),r=S.useRef(0);return S.useEffect(()=>()=>window.clearTimeout(r.current),[]),S.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Rc(e,t){const n=It(t);zt(()=>{let r=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(r),a.unobserve(e)}}},[e,n])}var ose=G5,ise=$5,lse=Q5;function Af({className:e,viewportClassName:t,children:n,viewportRef:r,...a}){return c.jsxs(ose,{"data-slot":"scroll-area",className:X("relative overflow-hidden",e),...a,children:[c.jsx(ise,{ref:r,className:X("h-full w-full rounded-[inherit]",t),children:n}),c.jsx(_f,{}),c.jsx(lse,{})]})}function _f({className:e,orientation:t="vertical",...n}){return c.jsx(q5,{"data-slot":"scroll-area-scrollbar",orientation:t,className:X("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2 flex-col border-t border-t-transparent p-[1px]",e),...n,children:c.jsx(X5,{className:"relative flex-1 rounded-full bg-border"})})}/**
   * table-core
   *
   * Copyright (c) TanStack
   *
   * 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
   */function Io(e,t){return typeof e=="function"?e(t):e}function Fr(e,t){return n=>{t.setState(r=>({...r,[e]:Io(n,r[e])}))}}function _g(e){return e instanceof Function}function cse(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function use(e,t){const n=[],r=a=>{a.forEach(s=>{n.push(s);const i=t(s);i!=null&&i.length&&r(i)})};return r(e),n}function Ie(e,t,n){let r=[],a;return s=>{let i;n.key&&n.debug&&(i=Date.now());const u=e(s);if(!(u.length!==r.length||u.some((m,p)=>r[p]!==m)))return a;r=u;let f;if(n.key&&n.debug&&(f=Date.now()),a=t(...u),n==null||n.onChange==null||n.onChange(a),n.key&&n.debug&&n!=null&&n.debug()){const m=Math.round((Date.now()-i)*100)/100,p=Math.round((Date.now()-f)*100)/100,v=p/16,y=(x,b)=>{for(x=String(x);x.length<b;)x=" "+x;return x};console.info(`%c⏱ ${y(p,5)} /${y(m,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,n==null?void 0:n.key)}return a}}function Pe(e,t,n,r){return{debug:()=>{var a;return(a=e==null?void 0:e.debugAll)!=null?a:e[t]},key:!1,onChange:r}}function dse(e,t,n,r){const a=()=>{var i;return(i=s.getValue())!=null?i:e.options.renderFallbackValue},s={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:a,getContext:Ie(()=>[e,n,t,s],(i,u,d,f)=>({table:i,column:u,row:d,cell:f,getValue:f.getValue,renderValue:f.renderValue}),Pe(e.options,"debugCells"))};return e._features.forEach(i=>{i.createCell==null||i.createCell(s,n,t,e)},{}),s}function fse(e,t,n,r){var a,s;const u={...e._getDefaultColumnDef(),...t},d=u.accessorKey;let f=(a=(s=u.id)!=null?s:d?typeof String.prototype.replaceAll=="function"?d.replaceAll(".","_"):d.replace(/\./g,"_"):void 0)!=null?a:typeof u.header=="string"?u.header:void 0,m;if(u.accessorFn?m=u.accessorFn:d&&(d.includes(".")?m=v=>{let y=v;for(const b of d.split(".")){var x;y=(x=y)==null?void 0:x[b]}return y}:m=v=>v[u.accessorKey]),!f)throw new Error;let p={id:`${String(f)}`,accessorFn:m,parent:r,depth:n,columnDef:u,columns:[],getFlatColumns:Ie(()=>[!0],()=>{var v;return[p,...(v=p.columns)==null?void 0:v.flatMap(y=>y.getFlatColumns())]},Pe(e.options,"debugColumns")),getLeafColumns:Ie(()=>[e._getOrderColumnsFn()],v=>{var y;if((y=p.columns)!=null&&y.length){let x=p.columns.flatMap(b=>b.getLeafColumns());return v(x)}return[p]},Pe(e.options,"debugColumns"))};for(const v of e._features)v.createColumn==null||v.createColumn(p,e);return p}const Wn="debugHeaders";function aM(e,t,n){var r;let s={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const i=[],u=d=>{d.subHeaders&&d.subHeaders.length&&d.subHeaders.map(u),i.push(d)};return u(s),i},getContext:()=>({table:e,header:s,column:t})};return e._features.forEach(i=>{i.createHeader==null||i.createHeader(s,e)}),s}const hse={createTable:e=>{e.getHeaderGroups=Ie(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,a)=>{var s,i;const u=(s=r==null?void 0:r.map(p=>n.find(v=>v.id===p)).filter(Boolean))!=null?s:[],d=(i=a==null?void 0:a.map(p=>n.find(v=>v.id===p)).filter(Boolean))!=null?i:[],f=n.filter(p=>!(r!=null&&r.includes(p.id))&&!(a!=null&&a.includes(p.id)));return vm(t,[...u,...f,...d],e)},Pe(e.options,Wn)),e.getCenterHeaderGroups=Ie(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,a)=>(n=n.filter(s=>!(r!=null&&r.includes(s.id))&&!(a!=null&&a.includes(s.id))),vm(t,n,e,"center")),Pe(e.options,Wn)),e.getLeftHeaderGroups=Ie(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var a;const s=(a=r==null?void 0:r.map(i=>n.find(u=>u.id===i)).filter(Boolean))!=null?a:[];return vm(t,s,e,"left")},Pe(e.options,Wn)),e.getRightHeaderGroups=Ie(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var a;const s=(a=r==null?void 0:r.map(i=>n.find(u=>u.id===i)).filter(Boolean))!=null?a:[];return vm(t,s,e,"right")},Pe(e.options,Wn)),e.getFooterGroups=Ie(()=>[e.getHeaderGroups()],t=>[...t].reverse(),Pe(e.options,Wn)),e.getLeftFooterGroups=Ie(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),Pe(e.options,Wn)),e.getCenterFooterGroups=Ie(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),Pe(e.options,Wn)),e.getRightFooterGroups=Ie(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),Pe(e.options,Wn)),e.getFlatHeaders=Ie(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),Pe(e.options,Wn)),e.getLeftFlatHeaders=Ie(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),Pe(e.options,Wn)),e.getCenterFlatHeaders=Ie(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),Pe(e.options,Wn)),e.getRightFlatHeaders=Ie(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),Pe(e.options,Wn)),e.getCenterLeafHeaders=Ie(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Pe(e.options,Wn)),e.getLeftLeafHeaders=Ie(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Pe(e.options,Wn)),e.getRightLeafHeaders=Ie(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Pe(e.options,Wn)),e.getLeafHeaders=Ie(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var a,s,i,u,d,f;return[...(a=(s=t[0])==null?void 0:s.headers)!=null?a:[],...(i=(u=n[0])==null?void 0:u.headers)!=null?i:[],...(d=(f=r[0])==null?void 0:f.headers)!=null?d:[]].map(m=>m.getLeafHeaders()).flat()},Pe(e.options,Wn))}};function vm(e,t,n,r){var a,s;let i=0;const u=function(v,y){y===void 0&&(y=1),i=Math.max(i,y),v.filter(x=>x.getIsVisible()).forEach(x=>{var b;(b=x.columns)!=null&&b.length&&u(x.columns,y+1)},0)};u(e);let d=[];const f=(v,y)=>{const x={depth:y,id:[r,`${y}`].filter(Boolean).join("_"),headers:[]},b=[];v.forEach(T=>{const N=[...b].reverse()[0],C=T.column.depth===x.depth;let A,R=!1;if(C&&T.column.parent?A=T.column.parent:(A=T.column,R=!0),N&&(N==null?void 0:N.column)===A)N.subHeaders.push(T);else{const _=aM(n,A,{id:[r,y,A.id,T==null?void 0:T.id].filter(Boolean).join("_"),isPlaceholder:R,placeholderId:R?`${b.filter(O=>O.column===A).length}`:void 0,depth:y,index:b.length});_.subHeaders.push(T),b.push(_)}x.headers.push(T),T.headerGroup=x}),d.push(x),y>0&&f(b,y-1)},m=t.map((v,y)=>aM(n,v,{depth:i,index:y}));f(m,i-1),d.reverse();const p=v=>v.filter(x=>x.column.getIsVisible()).map(x=>{let b=0,T=0,N=[0];x.subHeaders&&x.subHeaders.length?(N=[],p(x.subHeaders).forEach(A=>{let{colSpan:R,rowSpan:_}=A;b+=R,N.push(_)})):b=1;const C=Math.min(...N);return T=T+C,x.colSpan=b,x.rowSpan=T,{colSpan:b,rowSpan:T}});return p((a=(s=d[0])==null?void 0:s.headers)!=null?a:[]),d}const DS=(e,t,n,r,a,s,i)=>{let u={id:t,index:r,original:n,depth:a,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:d=>{if(u._valuesCache.hasOwnProperty(d))return u._valuesCache[d];const f=e.getColumn(d);if(f!=null&&f.accessorFn)return u._valuesCache[d]=f.accessorFn(u.original,r),u._valuesCache[d]},getUniqueValues:d=>{if(u._uniqueValuesCache.hasOwnProperty(d))return u._uniqueValuesCache[d];const f=e.getColumn(d);if(f!=null&&f.accessorFn)return f.columnDef.getUniqueValues?(u._uniqueValuesCache[d]=f.columnDef.getUniqueValues(u.original,r),u._uniqueValuesCache[d]):(u._uniqueValuesCache[d]=[u.getValue(d)],u._uniqueValuesCache[d])},renderValue:d=>{var f;return(f=u.getValue(d))!=null?f:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>use(u.subRows,d=>d.subRows),getParentRow:()=>u.parentId?e.getRow(u.parentId,!0):void 0,getParentRows:()=>{let d=[],f=u;for(;;){const m=f.getParentRow();if(!m)break;d.push(m),f=m}return d.reverse()},getAllCells:Ie(()=>[e.getAllLeafColumns()],d=>d.map(f=>dse(e,u,f,f.id)),Pe(e.options,"debugRows")),_getAllCellsByColumnId:Ie(()=>[u.getAllCells()],d=>d.reduce((f,m)=>(f[m.column.id]=m,f),{}),Pe(e.options,"debugRows"))};for(let d=0;d<e._features.length;d++){const f=e._features[d];f==null||f.createRow==null||f.createRow(u,e)}return u},mse={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},tk=(e,t,n)=>{var r,a;const s=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((a=e.getValue(t))==null||(a=a.toString())==null||(a=a.toLowerCase())==null)&&a.includes(s))};tk.autoRemove=e=>ba(e);const nk=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};nk.autoRemove=e=>ba(e);const rk=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};rk.autoRemove=e=>ba(e);const ak=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};ak.autoRemove=e=>ba(e);const sk=(e,t,n)=>!n.some(r=>{var a;return!((a=e.getValue(t))!=null&&a.includes(r))});sk.autoRemove=e=>ba(e)||!(e!=null&&e.length);const ok=(e,t,n)=>n.some(r=>{var a;return(a=e.getValue(t))==null?void 0:a.includes(r)});ok.autoRemove=e=>ba(e)||!(e!=null&&e.length);const ik=(e,t,n)=>e.getValue(t)===n;ik.autoRemove=e=>ba(e);const lk=(e,t,n)=>e.getValue(t)==n;lk.autoRemove=e=>ba(e);const IS=(e,t,n)=>{let[r,a]=n;const s=e.getValue(t);return s>=r&&s<=a};IS.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,a=typeof n!="number"?parseFloat(n):n,s=t===null||Number.isNaN(r)?-1/0:r,i=n===null||Number.isNaN(a)?1/0:a;if(s>i){const u=s;s=i,i=u}return[s,i]};IS.autoRemove=e=>ba(e)||ba(e[0])&&ba(e[1]);const Os={includesString:tk,includesStringSensitive:nk,equalsString:rk,arrIncludes:ak,arrIncludesAll:sk,arrIncludesSome:ok,equals:ik,weakEquals:lk,inNumberRange:IS};function ba(e){return e==null||e===""}const pse={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Fr("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Os.includesString:typeof r=="number"?Os.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Os.equals:Array.isArray(r)?Os.arrIncludes:Os.weakEquals},e.getFilterFn=()=>{var n,r;return _g(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Os[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,a;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((a=t.options.enableFilters)!=null?a:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(a=>a.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const a=e.getFilterFn(),s=r==null?void 0:r.find(m=>m.id===e.id),i=Io(n,s?s.value:void 0);if(sM(a,i,e)){var u;return(u=r==null?void 0:r.filter(m=>m.id!==e.id))!=null?u:[]}const d={id:e.id,value:i};if(s){var f;return(f=r==null?void 0:r.map(m=>m.id===e.id?d:m))!=null?f:[]}return r!=null&&r.length?[...r,d]:[d]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=a=>{var s;return(s=Io(t,a))==null?void 0:s.filter(i=>{const u=n.find(d=>d.id===i.id);if(u){const d=u.getFilterFn();if(sM(d,i.value,u))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function sM(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const gse=(e,t,n)=>n.reduce((r,a)=>{const s=a.getValue(e);return r+(typeof s=="number"?s:0)},0),vse=(e,t,n)=>{let r;return n.forEach(a=>{const s=a.getValue(e);s!=null&&(r>s||r===void 0&&s>=s)&&(r=s)}),r},yse=(e,t,n)=>{let r;return n.forEach(a=>{const s=a.getValue(e);s!=null&&(r<s||r===void 0&&s>=s)&&(r=s)}),r},xse=(e,t,n)=>{let r,a;return n.forEach(s=>{const i=s.getValue(e);i!=null&&(r===void 0?i>=i&&(r=a=i):(r>i&&(r=i),a<i&&(a=i)))}),[r,a]},bse=(e,t)=>{let n=0,r=0;if(t.forEach(a=>{let s=a.getValue(e);s!=null&&(s=+s)>=s&&(++n,r+=s)}),n)return r/n},Ese=(e,t)=>{if(!t.length)return;const n=t.map(s=>s.getValue(e));if(!cse(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),a=n.sort((s,i)=>s-i);return n.length%2!==0?a[r]:(a[r-1]+a[r])/2},Sse=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),Tse=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,Nse=(e,t)=>t.length,nx={sum:gse,min:vse,max:yse,extent:xse,mean:bse,median:Ese,unique:Sse,uniqueCount:Tse,count:Nse},wse={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Fr("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return nx.sum;if(Object.prototype.toString.call(r)==="[object Date]")return nx.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return _g(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:nx[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var a;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((a=n.subRows)!=null&&a.length)}}};function Cse(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(s=>!t.includes(s.id));return n==="remove"?r:[...t.map(s=>e.find(i=>i.id===s)).filter(Boolean),...r]}const Ase={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Fr("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Ie(n=>[yd(t,n)],n=>n.findIndex(r=>r.id===e.id),Pe(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=yd(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const a=yd(t,n);return((r=a[a.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=Ie(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>a=>{let s=[];if(!(t!=null&&t.length))s=a;else{const i=[...t],u=[...a];for(;u.length&&i.length;){const d=i.shift(),f=u.findIndex(m=>m.id===d);f>-1&&s.push(u.splice(f,1)[0])}s=[...s,...u]}return Cse(s,n,r)},Pe(e.options,"debugTable"))}},rx=()=>({left:[],right:[]}),_se={getInitialState:e=>({columnPinning:rx(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Fr("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(a=>a.id).filter(Boolean);t.setColumnPinning(a=>{var s,i;if(n==="right"){var u,d;return{left:((u=a==null?void 0:a.left)!=null?u:[]).filter(p=>!(r!=null&&r.includes(p))),right:[...((d=a==null?void 0:a.right)!=null?d:[]).filter(p=>!(r!=null&&r.includes(p))),...r]}}if(n==="left"){var f,m;return{left:[...((f=a==null?void 0:a.left)!=null?f:[]).filter(p=>!(r!=null&&r.includes(p))),...r],right:((m=a==null?void 0:a.right)!=null?m:[]).filter(p=>!(r!=null&&r.includes(p)))}}return{left:((s=a==null?void 0:a.left)!=null?s:[]).filter(p=>!(r!=null&&r.includes(p))),right:((i=a==null?void 0:a.right)!=null?i:[]).filter(p=>!(r!=null&&r.includes(p)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var a,s,i;return((a=r.columnDef.enablePinning)!=null?a:!0)&&((s=(i=t.options.enableColumnPinning)!=null?i:t.options.enablePinning)!=null?s:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(u=>u.id),{left:r,right:a}=t.getState().columnPinning,s=n.some(u=>r==null?void 0:r.includes(u)),i=n.some(u=>a==null?void 0:a.includes(u));return s?"left":i?"right":!1},e.getPinnedIndex=()=>{var n,r;const a=e.getIsPinned();return a?(n=(r=t.getState().columnPinning)==null||(r=r[a])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Ie(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,a)=>{const s=[...r??[],...a??[]];return n.filter(i=>!s.includes(i.column.id))},Pe(t.options,"debugRows")),e.getLeftVisibleCells=Ie(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(s=>n.find(i=>i.column.id===s)).filter(Boolean).map(s=>({...s,position:"left"})),Pe(t.options,"debugRows")),e.getRightVisibleCells=Ie(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(s=>n.find(i=>i.column.id===s)).filter(Boolean).map(s=>({...s,position:"right"})),Pe(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?rx():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:rx())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var a,s;return!!((a=r.left)!=null&&a.length||(s=r.right)!=null&&s.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=Ie(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(a=>a.id===r)).filter(Boolean),Pe(e.options,"debugColumns")),e.getRightLeafColumns=Ie(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(a=>a.id===r)).filter(Boolean),Pe(e.options,"debugColumns")),e.getCenterLeafColumns=Ie(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const a=[...n??[],...r??[]];return t.filter(s=>!a.includes(s.id))},Pe(e.options,"debugColumns"))}};function Rse(e){return e||(typeof document<"u"?document:null)}const ym={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},ax=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Mse={getDefaultColumnDef:()=>ym,getInitialState:e=>({columnSizing:{},columnSizingInfo:ax(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Fr("columnSizing",e),onColumnSizingInfoChange:Fr("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,a;const s=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:ym.minSize,(r=s??e.columnDef.size)!=null?r:ym.size),(a=e.columnDef.maxSize)!=null?a:ym.maxSize)},e.getStart=Ie(n=>[n,yd(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((a,s)=>a+s.getSize(),0),Pe(t.options,"debugColumns")),e.getAfter=Ie(n=>[n,yd(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((a,s)=>a+s.getSize(),0),Pe(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...a}=n;return a})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=a=>{if(a.subHeaders.length)a.subHeaders.forEach(r);else{var s;n+=(s=a.column.getSize())!=null?s:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),a=r==null?void 0:r.getCanResize();return s=>{if(!r||!a||(s.persist==null||s.persist(),sx(s)&&s.touches&&s.touches.length>1))return;const i=e.getSize(),u=e?e.getLeafHeaders().map(N=>[N.column.id,N.column.getSize()]):[[r.id,r.getSize()]],d=sx(s)?Math.round(s.touches[0].clientX):s.clientX,f={},m=(N,C)=>{typeof C=="number"&&(t.setColumnSizingInfo(A=>{var R,_;const O=t.options.columnResizeDirection==="rtl"?-1:1,D=(C-((R=A==null?void 0:A.startOffset)!=null?R:0))*O,P=Math.max(D/((_=A==null?void 0:A.startSize)!=null?_:0),-.999999);return A.columnSizingStart.forEach(L=>{let[U,B]=L;f[U]=Math.round(Math.max(B+B*P,0)*100)/100}),{...A,deltaOffset:D,deltaPercentage:P}}),(t.options.columnResizeMode==="onChange"||N==="end")&&t.setColumnSizing(A=>({...A,...f})))},p=N=>m("move",N),v=N=>{m("end",N),t.setColumnSizingInfo(C=>({...C,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},y=Rse(n),x={moveHandler:N=>p(N.clientX),upHandler:N=>{y==null||y.removeEventListener("mousemove",x.moveHandler),y==null||y.removeEventListener("mouseup",x.upHandler),v(N.clientX)}},b={moveHandler:N=>(N.cancelable&&(N.preventDefault(),N.stopPropagation()),p(N.touches[0].clientX),!1),upHandler:N=>{var C;y==null||y.removeEventListener("touchmove",b.moveHandler),y==null||y.removeEventListener("touchend",b.upHandler),N.cancelable&&(N.preventDefault(),N.stopPropagation()),v((C=N.touches[0])==null?void 0:C.clientX)}},T=Ose()?{passive:!1}:!1;sx(s)?(y==null||y.addEventListener("touchmove",b.moveHandler,T),y==null||y.addEventListener("touchend",b.upHandler,T)):(y==null||y.addEventListener("mousemove",x.moveHandler,T),y==null||y.addEventListener("mouseup",x.upHandler,T)),t.setColumnSizingInfo(N=>({...N,startOffset:d,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:u,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?ax():(n=e.initialState.columnSizingInfo)!=null?n:ax())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?t:0}}};let xm=null;function Ose(){if(typeof xm=="boolean")return xm;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return xm=e,xm}function sx(e){return e.type==="touchstart"}const Dse={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Fr("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const a=e.columns;return(n=a.length?a.some(s=>s.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Ie(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),Pe(t.options,"debugRows")),e.getVisibleCells=Ie(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,a)=>[...n,...r,...a],Pe(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>Ie(()=>[r(),r().filter(a=>a.getIsVisible()).map(a=>a.id).join("_")],a=>a.filter(s=>s.getIsVisible==null?void 0:s.getIsVisible()),Pe(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((a,s)=>({...a,[s.id]:n||!(s.getCanHide!=null&&s.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function yd(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Ise={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},Pse={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Fr("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,a,s;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((a=t.options.enableFilters)!=null?a:!0)&&((s=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?s:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Os.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return _g(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Os[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},jse={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Fr("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,a;if(!t){e._queue(()=>{t=!0});return}if((r=(a=e.options.autoResetAll)!=null?a:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var a,s;e.setExpanded(r?{}:(a=(s=e.initialState)==null?void 0:s.expanded)!=null?a:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(a=>!a.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(s=>{const i=s.split(".");r=Math.max(r,i.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var a;const s=r===!0?!0:!!(r!=null&&r[e.id]);let i={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(u=>{i[u]=!0}):i=r,n=(a=n)!=null?a:!s,!s&&n)return{...i,[e.id]:!0};if(s&&!n){const{[e.id]:u,...d}=i;return d}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,a;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((a=e.subRows)!=null&&a.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},tE=0,nE=10,ox=()=>({pageIndex:tE,pageSize:nE}),Lse={getInitialState:e=>({...e,pagination:{...ox(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Fr("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,a;if(!t){e._queue(()=>{t=!0});return}if((r=(a=e.options.autoResetAll)!=null?a:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const a=s=>Io(r,s);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(a)},e.resetPagination=r=>{var a;e.setPagination(r?ox():(a=e.initialState.pagination)!=null?a:ox())},e.setPageIndex=r=>{e.setPagination(a=>{let s=Io(r,a.pageIndex);const i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return s=Math.max(0,Math.min(s,i)),{...a,pageIndex:s}})},e.resetPageIndex=r=>{var a,s;e.setPageIndex(r?tE:(a=(s=e.initialState)==null||(s=s.pagination)==null?void 0:s.pageIndex)!=null?a:tE)},e.resetPageSize=r=>{var a,s;e.setPageSize(r?nE:(a=(s=e.initialState)==null||(s=s.pagination)==null?void 0:s.pageSize)!=null?a:nE)},e.setPageSize=r=>{e.setPagination(a=>{const s=Math.max(1,Io(r,a.pageSize)),i=a.pageSize*a.pageIndex,u=Math.floor(i/s);return{...a,pageIndex:u,pageSize:s}})},e.setPageCount=r=>e.setPagination(a=>{var s;let i=Io(r,(s=e.options.pageCount)!=null?s:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...a,pageCount:i}}),e.getPageOptions=Ie(()=>[e.getPageCount()],r=>{let a=[];return r&&r>0&&(a=[...new Array(r)].fill(null).map((s,i)=>i)),a},Pe(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,a=e.getPageCount();return a===-1?!0:a===0?!1:r<a-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},ix=()=>({top:[],bottom:[]}),kse={getInitialState:e=>({rowPinning:ix(),...e}),getDefaultOptions:e=>({onRowPinningChange:Fr("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,a)=>{const s=r?e.getLeafRows().map(d=>{let{id:f}=d;return f}):[],i=a?e.getParentRows().map(d=>{let{id:f}=d;return f}):[],u=new Set([...i,e.id,...s]);t.setRowPinning(d=>{var f,m;if(n==="bottom"){var p,v;return{top:((p=d==null?void 0:d.top)!=null?p:[]).filter(b=>!(u!=null&&u.has(b))),bottom:[...((v=d==null?void 0:d.bottom)!=null?v:[]).filter(b=>!(u!=null&&u.has(b))),...Array.from(u)]}}if(n==="top"){var y,x;return{top:[...((y=d==null?void 0:d.top)!=null?y:[]).filter(b=>!(u!=null&&u.has(b))),...Array.from(u)],bottom:((x=d==null?void 0:d.bottom)!=null?x:[]).filter(b=>!(u!=null&&u.has(b)))}}return{top:((f=d==null?void 0:d.top)!=null?f:[]).filter(b=>!(u!=null&&u.has(b))),bottom:((m=d==null?void 0:d.bottom)!=null?m:[]).filter(b=>!(u!=null&&u.has(b)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:a}=t.options;return typeof r=="function"?r(e):(n=r??a)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:a}=t.getState().rowPinning,s=n.some(u=>r==null?void 0:r.includes(u)),i=n.some(u=>a==null?void 0:a.includes(u));return s?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const a=e.getIsPinned();if(!a)return-1;const s=(n=a==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(i=>{let{id:u}=i;return u});return(r=s==null?void 0:s.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?ix():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:ix())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var a,s;return!!((a=r.top)!=null&&a.length||(s=r.bottom)!=null&&s.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var a;return((a=e.options.keepPinnedRows)==null||a?(n??[]).map(i=>{const u=e.getRow(i,!0);return u.getIsAllParentsExpanded()?u:null}):(n??[]).map(i=>t.find(u=>u.id===i))).filter(Boolean).map(i=>({...i,position:r}))},e.getTopRows=Ie(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Pe(e.options,"debugRows")),e.getBottomRows=Ie(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Pe(e.options,"debugRows")),e.getCenterRows=Ie(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const a=new Set([...n??[],...r??[]]);return t.filter(s=>!a.has(s.id))},Pe(e.options,"debugRows"))}},Use={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Fr("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},a=e.getPreGroupedRowModel().flatRows;return t?a.forEach(s=>{s.getCanSelect()&&(r[s.id]=!0)}):a.forEach(s=>{delete r[s.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),a={...n};return e.getRowModel().rows.forEach(s=>{rE(a,s.id,r,!0,e)}),a}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Ie(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?lx(e,n):{rows:[],flatRows:[],rowsById:{}},Pe(e.options,"debugTable")),e.getFilteredSelectedRowModel=Ie(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?lx(e,n):{rows:[],flatRows:[],rowsById:{}},Pe(e.options,"debugTable")),e.getGroupedSelectedRowModel=Ie(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?lx(e,n):{rows:[],flatRows:[],rowsById:{}},Pe(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(a=>a.getCanSelect()&&!n[a.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(a=>a.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(a=>!n[a.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const a=e.getIsSelected();t.setRowSelection(s=>{var i;if(n=typeof n<"u"?n:!a,e.getCanSelect()&&a===n)return s;const u={...s};return rE(u,e.id,n,(i=r==null?void 0:r.selectChildren)!=null?i:!0,t),u})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return PS(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return aE(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return aE(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var a;n&&e.toggleSelected((a=r.target)==null?void 0:a.checked)}}}},rE=(e,t,n,r,a)=>{var s;const i=a.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(u=>delete e[u]),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(s=i.subRows)!=null&&s.length&&i.getCanSelectSubRows()&&i.subRows.forEach(u=>rE(e,u.id,n,r,a))};function lx(e,t){const n=e.getState().rowSelection,r=[],a={},s=function(i,u){return i.map(d=>{var f;const m=PS(d,n);if(m&&(r.push(d),a[d.id]=d),(f=d.subRows)!=null&&f.length&&(d={...d,subRows:s(d.subRows)}),m)return d}).filter(Boolean)};return{rows:s(t.rows),flatRows:r,rowsById:a}}function PS(e,t){var n;return(n=t[e.id])!=null?n:!1}function aE(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let a=!0,s=!1;return e.subRows.forEach(i=>{if(!(s&&!a)&&(i.getCanSelect()&&(PS(i,t)?s=!0:a=!1),i.subRows&&i.subRows.length)){const u=aE(i,t);u==="all"?s=!0:(u==="some"&&(s=!0),a=!1)}}),a?"all":s?"some":!1}const sE=/([0-9]+)/gm,Fse=(e,t,n)=>ck(zo(e.getValue(n)).toLowerCase(),zo(t.getValue(n)).toLowerCase()),Bse=(e,t,n)=>ck(zo(e.getValue(n)),zo(t.getValue(n))),Hse=(e,t,n)=>jS(zo(e.getValue(n)).toLowerCase(),zo(t.getValue(n)).toLowerCase()),Vse=(e,t,n)=>jS(zo(e.getValue(n)),zo(t.getValue(n))),Gse=(e,t,n)=>{const r=e.getValue(n),a=t.getValue(n);return r>a?1:r<a?-1:0},zse=(e,t,n)=>jS(e.getValue(n),t.getValue(n));function jS(e,t){return e===t?0:e>t?1:-1}function zo(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function ck(e,t){const n=e.split(sE).filter(Boolean),r=t.split(sE).filter(Boolean);for(;n.length&&r.length;){const a=n.shift(),s=r.shift(),i=parseInt(a,10),u=parseInt(s,10),d=[i,u].sort();if(isNaN(d[0])){if(a>s)return 1;if(s>a)return-1;continue}if(isNaN(d[1]))return isNaN(i)?-1:1;if(i>u)return 1;if(u>i)return-1}return n.length-r.length}const sd={alphanumeric:Fse,alphanumericCaseSensitive:Bse,text:Hse,textCaseSensitive:Vse,datetime:Gse,basic:zse},$se={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Fr("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const a of n){const s=a==null?void 0:a.getValue(e.id);if(Object.prototype.toString.call(s)==="[object Date]")return sd.datetime;if(typeof s=="string"&&(r=!0,s.split(sE).length>1))return sd.alphanumeric}return r?sd.text:sd.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return _g(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:sd[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const a=e.getNextSortingOrder(),s=typeof n<"u"&&n!==null;t.setSorting(i=>{const u=i==null?void 0:i.find(y=>y.id===e.id),d=i==null?void 0:i.findIndex(y=>y.id===e.id);let f=[],m,p=s?n:a==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&r?u?m="toggle":m="add":i!=null&&i.length&&d!==i.length-1?m="replace":u?m="toggle":m="replace",m==="toggle"&&(s||a||(m="remove")),m==="add"){var v;f=[...i,{id:e.id,desc:p}],f.splice(0,f.length-((v=t.options.maxMultiSortColCount)!=null?v:Number.MAX_SAFE_INTEGER))}else m==="toggle"?f=i.map(y=>y.id===e.id?{...y,desc:p}:y):m==="remove"?f=i.filter(y=>y.id!==e.id):f=[{id:e.id,desc:p}];return f})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,a;const s=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==s&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(a=t.options.enableMultiRemove)!=null)||a)?!1:i==="desc"?"asc":"desc":s},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(a=>a.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(a=>a.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},qse=[hse,Dse,Ase,_se,mse,pse,Ise,Pse,$se,wse,jse,Lse,kse,Use,Mse];function Yse(e){var t,n;const r=[...qse,...(t=e._features)!=null?t:[]];let a={_features:r};const s=a._features.reduce((v,y)=>Object.assign(v,y.getDefaultOptions==null?void 0:y.getDefaultOptions(a)),{}),i=v=>a.options.mergeOptions?a.options.mergeOptions(s,v):{...s,...v};let d={...{},...(n=e.initialState)!=null?n:{}};a._features.forEach(v=>{var y;d=(y=v.getInitialState==null?void 0:v.getInitialState(d))!=null?y:d});const f=[];let m=!1;const p={_features:r,options:{...s,...e},initialState:d,_queue:v=>{f.push(v),m||(m=!0,Promise.resolve().then(()=>{for(;f.length;)f.shift()();m=!1}).catch(y=>setTimeout(()=>{throw y})))},reset:()=>{a.setState(a.initialState)},setOptions:v=>{const y=Io(v,a.options);a.options=i(y)},getState:()=>a.options.state,setState:v=>{a.options.onStateChange==null||a.options.onStateChange(v)},_getRowId:(v,y,x)=>{var b;return(b=a.options.getRowId==null?void 0:a.options.getRowId(v,y,x))!=null?b:`${x?[x.id,y].join("."):y}`},getCoreRowModel:()=>(a._getCoreRowModel||(a._getCoreRowModel=a.options.getCoreRowModel(a)),a._getCoreRowModel()),getRowModel:()=>a.getPaginationRowModel(),getRow:(v,y)=>{let x=(y?a.getPrePaginationRowModel():a.getRowModel()).rowsById[v];if(!x&&(x=a.getCoreRowModel().rowsById[v],!x))throw new Error;return x},_getDefaultColumnDef:Ie(()=>[a.options.defaultColumn],v=>{var y;return v=(y=v)!=null?y:{},{header:x=>{const b=x.header.column.columnDef;return b.accessorKey?b.accessorKey:b.accessorFn?b.id:null},cell:x=>{var b,T;return(b=(T=x.renderValue())==null||T.toString==null?void 0:T.toString())!=null?b:null},...a._features.reduce((x,b)=>Object.assign(x,b.getDefaultColumnDef==null?void 0:b.getDefaultColumnDef()),{}),...v}},Pe(e,"debugColumns")),_getColumnDefs:()=>a.options.columns,getAllColumns:Ie(()=>[a._getColumnDefs()],v=>{const y=function(x,b,T){return T===void 0&&(T=0),x.map(N=>{const C=fse(a,N,T,b),A=N;return C.columns=A.columns?y(A.columns,C,T+1):[],C})};return y(v)},Pe(e,"debugColumns")),getAllFlatColumns:Ie(()=>[a.getAllColumns()],v=>v.flatMap(y=>y.getFlatColumns()),Pe(e,"debugColumns")),_getAllFlatColumnsById:Ie(()=>[a.getAllFlatColumns()],v=>v.reduce((y,x)=>(y[x.id]=x,y),{}),Pe(e,"debugColumns")),getAllLeafColumns:Ie(()=>[a.getAllColumns(),a._getOrderColumnsFn()],(v,y)=>{let x=v.flatMap(b=>b.getLeafColumns());return y(x)},Pe(e,"debugColumns")),getColumn:v=>a._getAllFlatColumnsById()[v]};Object.assign(a,p);for(let v=0;v<a._features.length;v++){const y=a._features[v];y==null||y.createTable==null||y.createTable(a)}return a}function uk(){return e=>Ie(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(a,s,i){s===void 0&&(s=0);const u=[];for(let f=0;f<a.length;f++){const m=DS(e,e._getRowId(a[f],f,i),a[f],f,s,void 0,i==null?void 0:i.id);if(n.flatRows.push(m),n.rowsById[m.id]=m,u.push(m),e.options.getSubRows){var d;m.originalSubRows=e.options.getSubRows(a[f],f),(d=m.originalSubRows)!=null&&d.length&&(m.subRows=r(m.originalSubRows,s+1,m))}}return u};return n.rows=r(t),n},Pe(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Wse(e){const t=[],n=r=>{var a;t.push(r),(a=r.subRows)!=null&&a.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Kse(e,t,n){return n.options.filterFromLeafRows?Xse(e,t,n):Qse(e,t,n)}function Xse(e,t,n){var r;const a=[],s={},i=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,u=function(d,f){f===void 0&&(f=0);const m=[];for(let v=0;v<d.length;v++){var p;let y=d[v];const x=DS(n,y.id,y.original,y.index,y.depth,void 0,y.parentId);if(x.columnFilters=y.columnFilters,(p=y.subRows)!=null&&p.length&&f<i){if(x.subRows=u(y.subRows,f+1),y=x,t(y)&&!x.subRows.length){m.push(y),s[y.id]=y,a.push(y);continue}if(t(y)||x.subRows.length){m.push(y),s[y.id]=y,a.push(y);continue}}else y=x,t(y)&&(m.push(y),s[y.id]=y,a.push(y))}return m};return{rows:u(e),flatRows:a,rowsById:s}}function Qse(e,t,n){var r;const a=[],s={},i=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,u=function(d,f){f===void 0&&(f=0);const m=[];for(let v=0;v<d.length;v++){let y=d[v];if(t(y)){var p;if((p=y.subRows)!=null&&p.length&&f<i){const b=DS(n,y.id,y.original,y.index,y.depth,void 0,y.parentId);b.subRows=u(y.subRows,f+1),y=b}m.push(y),a.push(y),s[y.id]=y}}return m};return{rows:u(e),flatRows:a,rowsById:s}}function Zse(){return e=>Ie(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let v=0;v<t.flatRows.length;v++)t.flatRows[v].columnFilters={},t.flatRows[v].columnFiltersMeta={};return t}const a=[],s=[];(n??[]).forEach(v=>{var y;const x=e.getColumn(v.id);if(!x)return;const b=x.getFilterFn();b&&a.push({id:v.id,filterFn:b,resolvedValue:(y=b.resolveFilterValue==null?void 0:b.resolveFilterValue(v.value))!=null?y:v.value})});const i=(n??[]).map(v=>v.id),u=e.getGlobalFilterFn(),d=e.getAllLeafColumns().filter(v=>v.getCanGlobalFilter());r&&u&&d.length&&(i.push("__global__"),d.forEach(v=>{var y;s.push({id:v.id,filterFn:u,resolvedValue:(y=u.resolveFilterValue==null?void 0:u.resolveFilterValue(r))!=null?y:r})}));let f,m;for(let v=0;v<t.flatRows.length;v++){const y=t.flatRows[v];if(y.columnFilters={},a.length)for(let x=0;x<a.length;x++){f=a[x];const b=f.id;y.columnFilters[b]=f.filterFn(y,b,f.resolvedValue,T=>{y.columnFiltersMeta[b]=T})}if(s.length){for(let x=0;x<s.length;x++){m=s[x];const b=m.id;if(m.filterFn(y,b,m.resolvedValue,T=>{y.columnFiltersMeta[b]=T})){y.columnFilters.__global__=!0;break}}y.columnFilters.__global__!==!0&&(y.columnFilters.__global__=!1)}}const p=v=>{for(let y=0;y<i.length;y++)if(v.columnFilters[i[y]]===!1)return!1;return!0};return Kse(t.rows,p,e)},Pe(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function Jse(e){return t=>Ie(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:a,pageIndex:s}=n;let{rows:i,flatRows:u,rowsById:d}=r;const f=a*s,m=f+a;i=i.slice(f,m);let p;t.options.paginateExpandedRows?p={rows:i,flatRows:u,rowsById:d}:p=Wse({rows:i,flatRows:u,rowsById:d}),p.flatRows=[];const v=y=>{p.flatRows.push(y),y.subRows.length&&y.subRows.forEach(v)};return p.rows.forEach(v),p},Pe(t.options,"debugTable"))}function eoe(){return e=>Ie(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,a=[],s=r.filter(d=>{var f;return(f=e.getColumn(d.id))==null?void 0:f.getCanSort()}),i={};s.forEach(d=>{const f=e.getColumn(d.id);f&&(i[d.id]={sortUndefined:f.columnDef.sortUndefined,invertSorting:f.columnDef.invertSorting,sortingFn:f.getSortingFn()})});const u=d=>{const f=d.map(m=>({...m}));return f.sort((m,p)=>{for(let y=0;y<s.length;y+=1){var v;const x=s[y],b=i[x.id],T=b.sortUndefined,N=(v=x==null?void 0:x.desc)!=null?v:!1;let C=0;if(T){const A=m.getValue(x.id),R=p.getValue(x.id),_=A===void 0,O=R===void 0;if(_||O){if(T==="first")return _?-1:1;if(T==="last")return _?1:-1;C=_&&O?0:_?T:-T}}if(C===0&&(C=b.sortingFn(m,p,x.id)),C!==0)return N&&(C*=-1),b.invertSorting&&(C*=-1),C}return m.index-p.index}),f.forEach(m=>{var p;a.push(m),(p=m.subRows)!=null&&p.length&&(m.subRows=u(m.subRows))}),f};return{rows:u(n.rows),flatRows:a,rowsById:n.rowsById}},Pe(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
   * react-table
   *
   * Copyright (c) TanStack
   *
   * 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
   */function oM(e,t){return e?toe(e)?S.createElement(e,t):e:null}function toe(e){return noe(e)||typeof e=="function"||roe(e)}function noe(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function roe(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function dk(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=S.useState(()=>({current:Yse(t)})),[r,a]=S.useState(()=>n.current.initialState);return n.current.setOptions(s=>({...s,...e,state:{...r,...e.state},onStateChange:i=>{a(i),e.onStateChange==null||e.onStateChange(i)}})),n.current}var Rg="Popover",[fk,bpe]=Gn(Rg,[Zo]),Rf=Zo(),[aoe,sl]=fk(Rg),hk=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:s,modal:i=!1}=e,u=Rf(t),d=S.useRef(null),[f,m]=S.useState(!1),[p,v]=hr({prop:r,defaultProp:a??!1,onChange:s,caller:Rg});return c.jsx(lf,{...u,children:c.jsx(aoe,{scope:t,contentId:_n(),triggerRef:d,open:p,onOpenChange:v,onOpenToggle:S.useCallback(()=>v(y=>!y),[v]),hasCustomAnchor:f,onCustomAnchorAdd:S.useCallback(()=>m(!0),[]),onCustomAnchorRemove:S.useCallback(()=>m(!1),[]),modal:i,children:n})})};hk.displayName=Rg;var mk="PopoverAnchor",soe=S.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=sl(mk,n),s=Rf(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:u}=a;return S.useEffect(()=>(i(),()=>u()),[i,u]),c.jsx(cf,{...s,...r,ref:t})});soe.displayName=mk;var pk="PopoverTrigger",gk=S.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=sl(pk,n),s=Rf(n),i=Ue(t,a.triggerRef),u=c.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":bk(a.open),...r,ref:i,onClick:me(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?u:c.jsx(cf,{asChild:!0,...s,children:u})});gk.displayName=pk;var ooe="PopoverPortal",[Epe,ioe]=fk(ooe,{forceMount:void 0}),Mc="PopoverContent",vk=S.forwardRef((e,t)=>{const n=ioe(Mc,e.__scopePopover),{forceMount:r=n.forceMount,...a}=e,s=sl(Mc,e.__scopePopover);return c.jsx(on,{present:r||s.open,children:s.modal?c.jsx(coe,{...a,ref:t}):c.jsx(uoe,{...a,ref:t})})});vk.displayName=Mc;var loe=ko("PopoverContent.RemoveScroll"),coe=S.forwardRef((e,t)=>{const n=sl(Mc,e.__scopePopover),r=S.useRef(null),a=Ue(t,r),s=S.useRef(!1);return S.useEffect(()=>{const i=r.current;if(i)return qp(i)},[]),c.jsx(tf,{as:loe,allowPinchZoom:!0,children:c.jsx(yk,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,i=>{var u;i.preventDefault(),s.current||(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,i=>{const u=i.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0,f=u.button===2||d;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:me(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),uoe=S.forwardRef((e,t)=>{const n=sl(Mc,e.__scopePopover),r=S.useRef(!1),a=S.useRef(!1);return c.jsx(yk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,u;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(u=n.triggerRef.current)==null||u.focus(),s.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:s=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const i=s.target;((f=n.triggerRef.current)==null?void 0:f.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&a.current&&s.preventDefault()}})}),yk=S.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,...p}=e,v=sl(Mc,n),y=Rf(n);return zp(),c.jsx(ef,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:s,children:c.jsx(Ji,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:m,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onDismiss:()=>v.onOpenChange(!1),children:c.jsx(og,{"data-state":bk(v.open),role:"dialog",id:v.contentId,...y,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),xk="PopoverClose",doe=S.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=sl(xk,n);return c.jsx(ye.button,{type:"button",...r,ref:t,onClick:me(e.onClick,()=>a.onOpenChange(!1))})});doe.displayName=xk;var foe="PopoverArrow",hoe=S.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Rf(n);return c.jsx(ig,{...a,...r,ref:t})});hoe.displayName=foe;function bk(e){return e?"open":"closed"}var moe=hk,poe=gk,goe=vk;function oE({...e}){return c.jsx(moe,{"data-slot":"popover",...e})}function iE({...e}){return c.jsx(poe,{"data-slot":"popover-trigger",...e})}function lE({className:e,align:t="center",sideOffset:n=4,...r}){return c.jsx(goe,{"data-slot":"popover-content",align:t,sideOffset:n,className:X("z-50 w-72 rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-md shadow-black/5 outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}var De;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(De||(De={}));var qt;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(qt||(qt={}));var va;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(va||(va={}));var Pr;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Pr||(Pr={}));const cx={},ud={};function xd(e,t){try{const r=(cx[e]||(cx[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return r in ud?ud[r]:iM(r,r.split(":"))}catch{if(e in ud)return ud[e];const n=e==null?void 0:e.match(voe);return n?iM(e,n.slice(1)):NaN}}const voe=/([+-]\d\d):?(\d\d)?/;function iM(e,t){const n=+t[0],r=+(t[1]||0);return ud[e]=n>0?n*60+r:n*60-r}class Ja extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(xd(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Ek(this),cE(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Ja(...n,t):new Ja(Date.now(),t)}withTimeZone(t){return new Ja(+this,t)}getTimezoneOffset(){return-xd(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),cE(this),+this}[Symbol.for("constructDateFrom")](t){return new Ja(+new Date(t),this.timeZone)}}const lM=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!lM.test(e))return;const t=e.replace(lM,"$1UTC");Ja.prototype[t]&&(e.startsWith("get")?Ja.prototype[e]=function(){return this.internal[t]()}:(Ja.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),yoe(this),+this},Ja.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),cE(this),+this}))});function cE(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function yoe(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Ek(e)}function Ek(e){const t=xd(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),a=-new Date(+n).getTimezoneOffset(),s=r-a,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();s&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+s);const u=r-t;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);const d=xd(e.timeZone,e),m=-new Date(+e).getTimezoneOffset()-d,p=d!==t,v=m-u;if(p&&v){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);const y=xd(e.timeZone,e),x=d-y;x&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+x),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+x))}}class Po extends Ja{static tz(t,...n){return n.length?new Po(...n,t):new Po(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),a=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+a}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,a]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${n} ${a}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,a]=this.tzComponents();return`${t} GMT${n}${r}${a} (${xoe(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),a=String(Math.abs(t)%60).padStart(2,"0");return[n,r,a]}withTimeZone(t){return new Po(+this,t)}[Symbol.for("constructDateFrom")](t){return new Po(+new Date(t),this.timeZone)}}function xoe(e,t){return new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"long"}).format(t).slice(12)}const Sk=6048e5,boe=864e5,cM=Symbol.for("constructDateFrom");function En(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&cM in e?e[cM](t):e instanceof Date?new e.constructor(t):new Date(t)}function wt(e,t){return En(t||e,e)}function Tk(e,t,n){const r=wt(e,n==null?void 0:n.in);return isNaN(t)?En(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Nk(e,t,n){const r=wt(e,n==null?void 0:n.in);if(isNaN(t))return En(e,NaN);if(!t)return r;const a=r.getDate(),s=En(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const i=s.getDate();return a>=i?s:(r.setFullYear(s.getFullYear(),s.getMonth(),a),r)}let Eoe={};function Mf(){return Eoe}function Oc(e,t){var u,d,f,m;const n=Mf(),r=(t==null?void 0:t.weekStartsOn)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??n.weekStartsOn??((m=(f=n.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,a=wt(e,t==null?void 0:t.in),s=a.getDay(),i=(s<r?7:0)+s-r;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function kd(e,t){return Oc(e,{...t,weekStartsOn:1})}function wk(e,t){const n=wt(e,t==null?void 0:t.in),r=n.getFullYear(),a=En(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const s=kd(a),i=En(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const u=kd(i);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function uM(e){const t=wt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Qc(e,...t){const n=En.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Ud(e,t){const n=wt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Ck(e,t,n){const[r,a]=Qc(n==null?void 0:n.in,e,t),s=Ud(r),i=Ud(a),u=+s-uM(s),d=+i-uM(i);return Math.round((u-d)/boe)}function Soe(e,t){const n=wk(e,t),r=En(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),kd(r)}function Toe(e,t,n){return Tk(e,t*7,n)}function Noe(e,t,n){return Nk(e,t*12,n)}function woe(e,t){let n,r=t==null?void 0:t.in;return e.forEach(a=>{!r&&typeof a=="object"&&(r=En.bind(null,a));const s=wt(a,r);(!n||n<s||isNaN(+s))&&(n=s)}),En(r,n||NaN)}function Coe(e,t){let n,r=t==null?void 0:t.in;return e.forEach(a=>{!r&&typeof a=="object"&&(r=En.bind(null,a));const s=wt(a,r);(!n||n>s||isNaN(+s))&&(n=s)}),En(r,n||NaN)}function Aoe(e,t,n){const[r,a]=Qc(n==null?void 0:n.in,e,t);return+Ud(r)==+Ud(a)}function Ak(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function _oe(e){return!(!Ak(e)&&typeof e!="number"||isNaN(+wt(e)))}function Roe(e,t,n){const[r,a]=Qc(n==null?void 0:n.in,e,t),s=r.getFullYear()-a.getFullYear(),i=r.getMonth()-a.getMonth();return s*12+i}function Moe(e,t){const n=wt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Ooe(e,t){const[n,r]=Qc(e,t.start,t.end);return{start:n,end:r}}function Doe(e,t){const{start:n,end:r}=Ooe(t==null?void 0:t.in,e);let a=+n>+r;const s=a?+n:+r,i=a?r:n;i.setHours(0,0,0,0),i.setDate(1);let u=1;const d=[];for(;+i<=s;)d.push(En(n,i)),i.setMonth(i.getMonth()+u);return a?d.reverse():d}function Ioe(e,t){const n=wt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Poe(e,t){const n=wt(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function _k(e,t){const n=wt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Rk(e,t){var u,d,f,m;const n=Mf(),r=(t==null?void 0:t.weekStartsOn)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??n.weekStartsOn??((m=(f=n.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,a=wt(e,t==null?void 0:t.in),s=a.getDay(),i=(s<r?-7:0)+6-(s-r);return a.setDate(a.getDate()+i),a.setHours(23,59,59,999),a}function joe(e,t){return Rk(e,{...t,weekStartsOn:1})}const Loe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},koe=(e,t,n)=>{let r;const a=Loe[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function uc(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Uoe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Foe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Boe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hoe={date:uc({formats:Uoe,defaultWidth:"full"}),time:uc({formats:Foe,defaultWidth:"full"}),dateTime:uc({formats:Boe,defaultWidth:"full"})},Voe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Goe=(e,t,n,r)=>Voe[e];function Xa(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):i;a=e.formattingValues[u]||e.formattingValues[i]}else{const i=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[u]||e.values[i]}const s=e.argumentCallback?e.argumentCallback(t):t;return a[s]}}const zoe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$oe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},qoe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Yoe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Woe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Koe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Xoe=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Qoe={ordinalNumber:Xoe,era:Xa({values:zoe,defaultWidth:"wide"}),quarter:Xa({values:$oe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Xa({values:qoe,defaultWidth:"wide"}),day:Xa({values:Yoe,defaultWidth:"wide"}),dayPeriod:Xa({values:Woe,defaultWidth:"wide",formattingValues:Koe,defaultFormattingWidth:"wide"})};function Qa(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(a);if(!s)return null;const i=s[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(u)?Joe(u,p=>p.test(i)):Zoe(u,p=>p.test(i));let f;f=e.valueCallback?e.valueCallback(d):d,f=n.valueCallback?n.valueCallback(f):f;const m=t.slice(i.length);return{value:f,rest:m}}}function Zoe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Joe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Mk(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],s=t.match(e.parsePattern);if(!s)return null;let i=e.valueCallback?e.valueCallback(s[0]):s[0];i=n.valueCallback?n.valueCallback(i):i;const u=t.slice(a.length);return{value:i,rest:u}}}const eie=/^(\d+)(th|st|nd|rd)?/i,tie=/\d+/i,nie={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},rie={any:[/^b/i,/^(a|c)/i]},aie={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sie={any:[/1/i,/2/i,/3/i,/4/i]},oie={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},iie={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},lie={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},cie={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},uie={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},die={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},fie={ordinalNumber:Mk({matchPattern:eie,parsePattern:tie,valueCallback:e=>parseInt(e,10)}),era:Qa({matchPatterns:nie,defaultMatchWidth:"wide",parsePatterns:rie,defaultParseWidth:"any"}),quarter:Qa({matchPatterns:aie,defaultMatchWidth:"wide",parsePatterns:sie,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Qa({matchPatterns:oie,defaultMatchWidth:"wide",parsePatterns:iie,defaultParseWidth:"any"}),day:Qa({matchPatterns:lie,defaultMatchWidth:"wide",parsePatterns:cie,defaultParseWidth:"any"}),dayPeriod:Qa({matchPatterns:uie,defaultMatchWidth:"any",parsePatterns:die,defaultParseWidth:"any"})},LS={code:"en-US",formatDistance:koe,formatLong:Hoe,formatRelative:Goe,localize:Qoe,match:fie,options:{weekStartsOn:0,firstWeekContainsDate:1}};function hie(e,t){const n=wt(e,t==null?void 0:t.in);return Ck(n,_k(n))+1}function Ok(e,t){const n=wt(e,t==null?void 0:t.in),r=+kd(n)-+Soe(n);return Math.round(r/Sk)+1}function Dk(e,t){var m,p,v,y;const n=wt(e,t==null?void 0:t.in),r=n.getFullYear(),a=Mf(),s=(t==null?void 0:t.firstWeekContainsDate)??((p=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??a.firstWeekContainsDate??((y=(v=a.locale)==null?void 0:v.options)==null?void 0:y.firstWeekContainsDate)??1,i=En((t==null?void 0:t.in)||e,0);i.setFullYear(r+1,0,s),i.setHours(0,0,0,0);const u=Oc(i,t),d=En((t==null?void 0:t.in)||e,0);d.setFullYear(r,0,s),d.setHours(0,0,0,0);const f=Oc(d,t);return+n>=+u?r+1:+n>=+f?r:r-1}function mie(e,t){var u,d,f,m;const n=Mf(),r=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(f=n.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,a=Dk(e,t),s=En((t==null?void 0:t.in)||e,0);return s.setFullYear(a,0,r),s.setHours(0,0,0,0),Oc(s,t)}function Ik(e,t){const n=wt(e,t==null?void 0:t.in),r=+Oc(n,t)-+mie(n,t);return Math.round(r/Sk)+1}function gt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const yo={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return gt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):gt(n+1,2)},d(e,t){return gt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return gt(e.getHours()%12||12,t.length)},H(e,t){return gt(e.getHours(),t.length)},m(e,t){return gt(e.getMinutes(),t.length)},s(e,t){return gt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return gt(a,t.length)}},Ql={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dM={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return yo.y(e,t)},Y:function(e,t,n,r){const a=Dk(e,r),s=a>0?a:1-a;if(t==="YY"){const i=s%100;return gt(i,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):gt(s,t.length)},R:function(e,t){const n=wk(e);return gt(n,t.length)},u:function(e,t){const n=e.getFullYear();return gt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return gt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return gt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return yo.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return gt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=Ik(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):gt(a,t.length)},I:function(e,t,n){const r=Ok(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):gt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):yo.d(e,t)},D:function(e,t,n){const r=hie(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):gt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),s=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return gt(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),s=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return gt(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return gt(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=Ql.noon:r===0?a=Ql.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=Ql.evening:r>=12?a=Ql.afternoon:r>=4?a=Ql.morning:a=Ql.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return yo.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):yo.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):gt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):gt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):yo.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):yo.s(e,t)},S:function(e,t){return yo.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return hM(r);case"XXXX":case"XX":return Ai(r);case"XXXXX":case"XXX":default:return Ai(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return hM(r);case"xxxx":case"xx":return Ai(r);case"xxxxx":case"xxx":default:return Ai(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+fM(r,":");case"OOOO":default:return"GMT"+Ai(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+fM(r,":");case"zzzz":default:return"GMT"+Ai(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return gt(r,t.length)},T:function(e,t,n){return gt(+e,t.length)}};function fM(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),s=r%60;return s===0?n+String(a):n+String(a)+t+gt(s,2)}function hM(e,t){return e%60===0?(e>0?"-":"+")+gt(Math.abs(e)/60,2):Ai(e,t)}function Ai(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=gt(Math.trunc(r/60),2),s=gt(r%60,2);return n+a+t+s}const mM=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Pk=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},pie=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return mM(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",mM(r,t)).replace("{{time}}",Pk(a,t))},gie={p:Pk,P:pie},vie=/^D+$/,yie=/^Y+$/,xie=["D","DD","YY","YYYY"];function bie(e){return vie.test(e)}function Eie(e){return yie.test(e)}function Sie(e,t,n){const r=Tie(e,t,n);if(console.warn(r),xie.includes(e))throw new RangeError(r)}function Tie(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Nie=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wie=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Cie=/^'([^]*?)'?$/,Aie=/''/g,_ie=/[a-zA-Z]/;function Ii(e,t,n){var m,p,v,y,x,b,T,N;const r=Mf(),a=(n==null?void 0:n.locale)??r.locale??LS,s=(n==null?void 0:n.firstWeekContainsDate)??((p=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??r.firstWeekContainsDate??((y=(v=r.locale)==null?void 0:v.options)==null?void 0:y.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((b=(x=n==null?void 0:n.locale)==null?void 0:x.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((N=(T=r.locale)==null?void 0:T.options)==null?void 0:N.weekStartsOn)??0,u=wt(e,n==null?void 0:n.in);if(!_oe(u))throw new RangeError("Invalid time value");let d=t.match(wie).map(C=>{const A=C[0];if(A==="p"||A==="P"){const R=gie[A];return R(C,a.formatLong)}return C}).join("").match(Nie).map(C=>{if(C==="''")return{isToken:!1,value:"'"};const A=C[0];if(A==="'")return{isToken:!1,value:Rie(C)};if(dM[A])return{isToken:!0,value:C};if(A.match(_ie))throw new RangeError("Format string contains an unescaped latin alphabet character `"+A+"`");return{isToken:!1,value:C}});a.localize.preprocessor&&(d=a.localize.preprocessor(u,d));const f={firstWeekContainsDate:s,weekStartsOn:i,locale:a};return d.map(C=>{if(!C.isToken)return C.value;const A=C.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Eie(A)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&bie(A))&&Sie(A,t,String(e));const R=dM[A[0]];return R(u,A,a.localize,f)}).join("")}function Rie(e){const t=e.match(Cie);return t?t[1].replace(Aie,"'"):e}function Mie(e,t){const n=wt(e,t==null?void 0:t.in),r=n.getFullYear(),a=n.getMonth(),s=En(n,0);return s.setFullYear(r,a+1,0),s.setHours(0,0,0,0),s.getDate()}function Oie(e,t){return wt(e,t==null?void 0:t.in).getMonth()}function Die(e,t){return wt(e,t==null?void 0:t.in).getFullYear()}function Iie(e,t){return+wt(e)>+wt(t)}function Pie(e,t){return+wt(e)<+wt(t)}function jie(e,t,n){const[r,a]=Qc(n==null?void 0:n.in,e,t);return r.getFullYear()===a.getFullYear()&&r.getMonth()===a.getMonth()}function Lie(e,t,n){const[r,a]=Qc(n==null?void 0:n.in,e,t);return r.getFullYear()===a.getFullYear()}function kie(e,t,n){const r=wt(e,n==null?void 0:n.in),a=r.getFullYear(),s=r.getDate(),i=En(e,0);i.setFullYear(a,t,15),i.setHours(0,0,0,0);const u=Mie(i);return r.setMonth(t,Math.min(s,u)),r}function Uie(e,t,n){const r=wt(e,n==null?void 0:n.in);return isNaN(+r)?En(e,NaN):(r.setFullYear(t),r)}const pM=5,Fie=4;function Bie(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,a=t.addDays(e,-r+1),s=t.addDays(a,pM*7-1);return t.getMonth(e)===t.getMonth(s)?pM:Fie}function jk(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-1*6):t.addDays(n,-1*(r-1))}function Hie(e,t){const n=jk(e,t),r=Bie(e,t);return t.addDays(n,r*7-1)}class zs{constructor(t,n){this.Date=Date,this.today=()=>{var r;return(r=this.overrides)!=null&&r.today?this.overrides.today():this.options.timeZone?Po.tz(this.options.timeZone):new this.Date},this.newDate=(r,a,s)=>{var i;return(i=this.overrides)!=null&&i.newDate?this.overrides.newDate(r,a,s):this.options.timeZone?new Po(r,a,s,this.options.timeZone):new Date(r,a,s)},this.addDays=(r,a)=>{var s;return(s=this.overrides)!=null&&s.addDays?this.overrides.addDays(r,a):Tk(r,a)},this.addMonths=(r,a)=>{var s;return(s=this.overrides)!=null&&s.addMonths?this.overrides.addMonths(r,a):Nk(r,a)},this.addWeeks=(r,a)=>{var s;return(s=this.overrides)!=null&&s.addWeeks?this.overrides.addWeeks(r,a):Toe(r,a)},this.addYears=(r,a)=>{var s;return(s=this.overrides)!=null&&s.addYears?this.overrides.addYears(r,a):Noe(r,a)},this.differenceInCalendarDays=(r,a)=>{var s;return(s=this.overrides)!=null&&s.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,a):Ck(r,a)},this.differenceInCalendarMonths=(r,a)=>{var s;return(s=this.overrides)!=null&&s.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,a):Roe(r,a)},this.eachMonthOfInterval=r=>{var a;return(a=this.overrides)!=null&&a.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):Doe(r)},this.endOfBroadcastWeek=r=>{var a;return(a=this.overrides)!=null&&a.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r,this):Hie(r,this)},this.endOfISOWeek=r=>{var a;return(a=this.overrides)!=null&&a.endOfISOWeek?this.overrides.endOfISOWeek(r):joe(r)},this.endOfMonth=r=>{var a;return(a=this.overrides)!=null&&a.endOfMonth?this.overrides.endOfMonth(r):Moe(r)},this.endOfWeek=r=>{var a;return(a=this.overrides)!=null&&a.endOfWeek?this.overrides.endOfWeek(r,this.options):Rk(r,this.options)},this.endOfYear=r=>{var a;return(a=this.overrides)!=null&&a.endOfYear?this.overrides.endOfYear(r):Poe(r)},this.format=(r,a)=>{var i;const s=(i=this.overrides)!=null&&i.format?this.overrides.format(r,a,this.options):Ii(r,a,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(s):s},this.getISOWeek=r=>{var a;return(a=this.overrides)!=null&&a.getISOWeek?this.overrides.getISOWeek(r):Ok(r)},this.getMonth=r=>{var a;return(a=this.overrides)!=null&&a.getMonth?this.overrides.getMonth(r,this.options):Oie(r,this.options)},this.getYear=r=>{var a;return(a=this.overrides)!=null&&a.getYear?this.overrides.getYear(r,this.options):Die(r,this.options)},this.getWeek=r=>{var a;return(a=this.overrides)!=null&&a.getWeek?this.overrides.getWeek(r,this.options):Ik(r,this.options)},this.isAfter=(r,a)=>{var s;return(s=this.overrides)!=null&&s.isAfter?this.overrides.isAfter(r,a):Iie(r,a)},this.isBefore=(r,a)=>{var s;return(s=this.overrides)!=null&&s.isBefore?this.overrides.isBefore(r,a):Pie(r,a)},this.isDate=r=>{var a;return(a=this.overrides)!=null&&a.isDate?this.overrides.isDate(r):Ak(r)},this.isSameDay=(r,a)=>{var s;return(s=this.overrides)!=null&&s.isSameDay?this.overrides.isSameDay(r,a):Aoe(r,a)},this.isSameMonth=(r,a)=>{var s;return(s=this.overrides)!=null&&s.isSameMonth?this.overrides.isSameMonth(r,a):jie(r,a)},this.isSameYear=(r,a)=>{var s;return(s=this.overrides)!=null&&s.isSameYear?this.overrides.isSameYear(r,a):Lie(r,a)},this.max=r=>{var a;return(a=this.overrides)!=null&&a.max?this.overrides.max(r):woe(r)},this.min=r=>{var a;return(a=this.overrides)!=null&&a.min?this.overrides.min(r):Coe(r)},this.setMonth=(r,a)=>{var s;return(s=this.overrides)!=null&&s.setMonth?this.overrides.setMonth(r,a):kie(r,a)},this.setYear=(r,a)=>{var s;return(s=this.overrides)!=null&&s.setYear?this.overrides.setYear(r,a):Uie(r,a)},this.startOfBroadcastWeek=r=>{var a;return(a=this.overrides)!=null&&a.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):jk(r,this)},this.startOfDay=r=>{var a;return(a=this.overrides)!=null&&a.startOfDay?this.overrides.startOfDay(r):Ud(r)},this.startOfISOWeek=r=>{var a;return(a=this.overrides)!=null&&a.startOfISOWeek?this.overrides.startOfISOWeek(r):kd(r)},this.startOfMonth=r=>{var a;return(a=this.overrides)!=null&&a.startOfMonth?this.overrides.startOfMonth(r):Ioe(r)},this.startOfWeek=r=>{var a;return(a=this.overrides)!=null&&a.startOfWeek?this.overrides.startOfWeek(r,this.options):Oc(r,this.options)},this.startOfYear=r=>{var a;return(a=this.overrides)!=null&&a.startOfYear?this.overrides.startOfYear(r):_k(r)},this.options={locale:LS,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let a=0;a<10;a++)r[a.toString()]=n.format(a);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}}const $s=new zs;function Vie(e,t,n={}){return Object.entries(e).filter(([,a])=>a===!0).reduce((a,[s])=>(n[s]?a.push(n[s]):t[qt[s]]?a.push(t[qt[s]]):t[va[s]]&&a.push(t[va[s]]),a),[t[De.Day]])}function Gie(e){return z.createElement("button",{...e})}function zie(e){return z.createElement("span",{...e})}function $ie(e){const{size:t=24,orientation:n="left",className:r}=e;return z.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&z.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&z.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&z.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&z.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function qie(e){const{day:t,modifiers:n,...r}=e;return z.createElement("td",{...r})}function Yie(e){const{day:t,modifiers:n,...r}=e,a=z.useRef(null);return z.useEffect(()=>{var s;n.focused&&((s=a.current)==null||s.focus())},[n.focused]),z.createElement("button",{ref:a,...r})}function Wie(e){const{options:t,className:n,components:r,classNames:a,...s}=e,i=[a[De.Dropdown],n].join(" "),u=t==null?void 0:t.find(({value:d})=>d===s.value);return z.createElement("span",{"data-disabled":s.disabled,className:a[De.DropdownRoot]},z.createElement(r.Select,{className:i,...s},t==null?void 0:t.map(({value:d,label:f,disabled:m})=>z.createElement(r.Option,{key:d,value:d,disabled:m},f))),z.createElement("span",{className:a[De.CaptionLabel],"aria-hidden":!0},u==null?void 0:u.label,z.createElement(r.Chevron,{orientation:"down",size:18,className:a[De.Chevron]})))}function Kie(e){return z.createElement("div",{...e})}function Xie(e){return z.createElement("div",{...e})}function Qie(e){const{calendarMonth:t,displayIndex:n,...r}=e;return z.createElement("div",{...r},e.children)}function Zie(e){const{calendarMonth:t,displayIndex:n,...r}=e;return z.createElement("div",{...r})}function Jie(e){return z.createElement("table",{...e})}function ele(e){return z.createElement("div",{...e})}const Lk=S.createContext(void 0);function Of(){const e=S.useContext(Lk);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function tle(e){const{components:t}=Of();return z.createElement(t.Dropdown,{...e})}function nle(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:a,...s}=e,{components:i,classNames:u,labels:{labelPrevious:d,labelNext:f}}=Of(),m=S.useCallback(v=>{a&&(n==null||n(v))},[a,n]),p=S.useCallback(v=>{r&&(t==null||t(v))},[r,t]);return z.createElement("nav",{...s},z.createElement(i.PreviousMonthButton,{type:"button",className:u[De.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":d(r),onClick:p},z.createElement(i.Chevron,{disabled:r?void 0:!0,className:u[De.Chevron],orientation:"left"})),z.createElement(i.NextMonthButton,{type:"button",className:u[De.NextMonthButton],tabIndex:a?void 0:-1,"aria-disabled":a?void 0:!0,"aria-label":f(a),onClick:m},z.createElement(i.Chevron,{disabled:a?void 0:!0,orientation:"right",className:u[De.Chevron]})))}function rle(e){const{components:t}=Of();return z.createElement(t.Button,{...e})}function ale(e){return z.createElement("option",{...e})}function sle(e){const{components:t}=Of();return z.createElement(t.Button,{...e})}function ole(e){const{rootRef:t,...n}=e;return z.createElement("div",{...n,ref:t})}function ile(e){return z.createElement("select",{...e})}function lle(e){const{week:t,...n}=e;return z.createElement("tr",{...n})}function cle(e){return z.createElement("th",{...e})}function ule(e){return z.createElement("thead",{"aria-hidden":!0},z.createElement("tr",{...e}))}function dle(e){const{week:t,...n}=e;return z.createElement("th",{...n})}function fle(e){return z.createElement("th",{...e})}function hle(e){return z.createElement("tbody",{...e})}function mle(e){const{components:t}=Of();return z.createElement(t.Dropdown,{...e})}const ple=Object.freeze(Object.defineProperty({__proto__:null,Button:Gie,CaptionLabel:zie,Chevron:$ie,Day:qie,DayButton:Yie,Dropdown:Wie,DropdownNav:Kie,Footer:Xie,Month:Qie,MonthCaption:Zie,MonthGrid:Jie,Months:ele,MonthsDropdown:tle,Nav:nle,NextMonthButton:rle,Option:ale,PreviousMonthButton:sle,Root:ole,Select:ile,Week:lle,WeekNumber:dle,WeekNumberHeader:fle,Weekday:cle,Weekdays:ule,Weeks:hle,YearsDropdown:mle},Symbol.toStringTag,{value:"Module"}));function gle(e){return{...ple,...e}}function vle(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function yle(){const e={};for(const t in De)e[De[t]]=`rdp-${De[t]}`;for(const t in qt)e[qt[t]]=`rdp-${qt[t]}`;for(const t in va)e[va[t]]=`rdp-${va[t]}`;for(const t in Pr)e[Pr[t]]=`rdp-${Pr[t]}`;return e}function kk(e,t,n){return(n??new zs(t)).format(e,"LLLL y")}const xle=kk;function ble(e,t,n){return(n??new zs(t)).format(e,"d")}function Ele(e,t=$s){return t.format(e,"LLLL")}function Sle(e){return e<10?`0${e.toLocaleString()}`:`${e.toLocaleString()}`}function Tle(){return""}function Nle(e,t,n){return(n??new zs(t)).format(e,"cccccc")}function Uk(e,t=$s){return t.format(e,"yyyy")}const wle=Uk,Cle=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:kk,formatDay:ble,formatMonthCaption:xle,formatMonthDropdown:Ele,formatWeekNumber:Sle,formatWeekNumberHeader:Tle,formatWeekdayName:Nle,formatYearCaption:wle,formatYearDropdown:Uk},Symbol.toStringTag,{value:"Module"}));function Ale(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...Cle,...e}}function _le(e,t,n,r,a){const{startOfMonth:s,startOfYear:i,endOfYear:u,eachMonthOfInterval:d,getMonth:f}=a;return d({start:i(e),end:u(e)}).map(v=>{const y=r.formatMonthDropdown(v,a),x=f(v),b=t&&v<s(t)||n&&v>s(n)||!1;return{value:x,label:y,disabled:b}})}function Rle(e,t={},n={}){let r={...t==null?void 0:t[De.Day]};return Object.entries(e).filter(([,a])=>a===!0).forEach(([a])=>{r={...r,...n==null?void 0:n[a]}}),r}function Mle(e,t,n){const r=e.today(),a=t?e.startOfISOWeek(r):e.startOfWeek(r),s=[];for(let i=0;i<7;i++){const u=e.addDays(a,i);s.push(u)}return s}function Ole(e,t,n,r){if(!e||!t)return;const{startOfYear:a,endOfYear:s,addYears:i,getYear:u,isBefore:d,isSameYear:f}=r,m=a(e),p=s(t),v=[];let y=m;for(;d(y,p)||f(y,p);)v.push(y),y=i(y,1);return v.map(x=>{const b=n.formatYearDropdown(x,r);return{value:u(x),label:b,disabled:!1}})}function Fk(e,t,n){return(n??new zs(t)).format(e,"LLLL y")}const Dle=Fk;function Ile(e,t,n,r){let a=(r??new zs(n)).format(e,"PPPP");return t!=null&&t.today&&(a=`Today, ${a}`),a}function Bk(e,t,n,r){let a=(r??new zs(n)).format(e,"PPPP");return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a}const Ple=Bk;function jle(){return""}function Lle(e){return"Choose the Month"}function kle(e){return"Go to the Next Month"}function Ule(e){return"Go to the Previous Month"}function Fle(e,t,n){return(n??new zs(t)).format(e,"cccc")}function Ble(e,t){return`Week ${e}`}function Hle(e){return"Week Number"}function Vle(e){return"Choose the Year"}const Gle=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:Dle,labelDay:Ple,labelDayButton:Bk,labelGrid:Fk,labelGridcell:Ile,labelMonthDropdown:Lle,labelNav:jle,labelNext:kle,labelPrevious:Ule,labelWeekNumber:Ble,labelWeekNumberHeader:Hle,labelWeekday:Fle,labelYearDropdown:Vle},Symbol.toStringTag,{value:"Module"})),Df=e=>e instanceof HTMLElement?e:null,ux=e=>[...e.querySelectorAll("[data-animated-month]")??[]],zle=e=>Df(e.querySelector("[data-animated-month]")),dx=e=>Df(e.querySelector("[data-animated-caption]")),fx=e=>Df(e.querySelector("[data-animated-weeks]")),$le=e=>Df(e.querySelector("[data-animated-nav]")),qle=e=>Df(e.querySelector("[data-animated-weekdays]"));function Yle(e,t,{classNames:n,months:r,focused:a,dateLib:s}){const i=S.useRef(null),u=S.useRef(r),d=S.useRef(!1);S.useLayoutEffect(()=>{const f=u.current;if(u.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||f.length===0||r.length!==f.length)return;const m=s.isSameMonth(r[0].date,f[0].date),p=s.isAfter(r[0].date,f[0].date),v=p?n[Pr.caption_after_enter]:n[Pr.caption_before_enter],y=p?n[Pr.weeks_after_enter]:n[Pr.weeks_before_enter],x=i.current,b=e.current.cloneNode(!0);if(b instanceof HTMLElement?(ux(b).forEach(A=>{if(!(A instanceof HTMLElement))return;const R=zle(A);R&&A.contains(R)&&A.removeChild(R);const _=dx(A);_&&_.classList.remove(v);const O=fx(A);O&&O.classList.remove(y)}),i.current=b):i.current=null,d.current||m||a)return;const T=x instanceof HTMLElement?ux(x):[],N=ux(e.current);if(N&&N.every(C=>C instanceof HTMLElement)&&T&&T.every(C=>C instanceof HTMLElement)){d.current=!0,e.current.style.isolation="isolate";const C=$le(e.current);C&&(C.style.zIndex="1"),N.forEach((A,R)=>{const _=T[R];if(!_)return;A.style.position="relative",A.style.overflow="hidden";const O=dx(A);O&&O.classList.add(v);const D=fx(A);D&&D.classList.add(y);const P=()=>{d.current=!1,e.current&&(e.current.style.isolation=""),C&&(C.style.zIndex=""),O&&O.classList.remove(v),D&&D.classList.remove(y),A.style.position="",A.style.overflow="",A.contains(_)&&A.removeChild(_)};_.style.pointerEvents="none",_.style.position="absolute",_.style.overflow="hidden",_.setAttribute("aria-hidden","true");const L=qle(_);L&&(L.style.opacity="0");const U=dx(_);U&&(U.classList.add(p?n[Pr.caption_before_exit]:n[Pr.caption_after_exit]),U.addEventListener("animationend",P));const B=fx(_);B&&B.classList.add(p?n[Pr.weeks_before_exit]:n[Pr.weeks_after_exit]),A.insertBefore(_,A.firstChild)})}})}function Wle(e,t,n,r){const a=e[0],s=e[e.length-1],{ISOWeek:i,fixedWeeks:u,broadcastCalendar:d}=n??{},{addDays:f,differenceInCalendarDays:m,differenceInCalendarMonths:p,endOfBroadcastWeek:v,endOfISOWeek:y,endOfMonth:x,endOfWeek:b,isAfter:T,startOfBroadcastWeek:N,startOfISOWeek:C,startOfWeek:A}=r,R=d?N(a,r):i?C(a):A(a),_=d?v(s,r):i?y(x(s)):b(x(s)),O=m(_,R),D=p(s,a)+1,P=[];for(let B=0;B<=O;B++){const H=f(R,B);if(t&&T(H,t))break;P.push(H)}const U=(d?35:42)*D;if(u&&P.length<U){const B=U-P.length;for(let H=0;H<B;H++){const Z=f(P[P.length-1],1);P.push(Z)}}return P}function Kle(e){const t=[];return e.reduce((n,r)=>{const a=[],s=r.weeks.reduce((i,u)=>[...i,...u.days],a);return[...n,...s]},t)}function Xle(e,t,n,r){const{numberOfMonths:a=1}=n,s=[];for(let i=0;i<a;i++){const u=r.addMonths(e,i);if(t&&u>t)break;s.push(u)}return s}function gM(e,t){const{month:n,defaultMonth:r,today:a=t.today(),numberOfMonths:s=1,endMonth:i,startMonth:u,timeZone:d}=e;let f=n||r||a;const{differenceInCalendarMonths:m,addMonths:p,startOfMonth:v}=t;if(i&&m(i,f)<0){const y=-1*(s-1);f=p(i,y)}return u&&m(f,u)<0&&(f=u),f=d?new Po(f,d):f,v(f)}class Hk{constructor(t,n,r=$s){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class Qle{constructor(t,n){this.date=t,this.weeks=n}}class Zle{constructor(t,n){this.days=n,this.weekNumber=t}}function Jle(e,t,n,r){const{addDays:a,endOfBroadcastWeek:s,endOfISOWeek:i,endOfMonth:u,endOfWeek:d,getISOWeek:f,getWeek:m,startOfBroadcastWeek:p,startOfISOWeek:v,startOfWeek:y}=r,x=e.reduce((b,T)=>{const N=n.broadcastCalendar?p(T,r):n.ISOWeek?v(T):y(T),C=n.broadcastCalendar?s(T,r):n.ISOWeek?i(u(T)):d(u(T)),A=t.filter(D=>D>=N&&D<=C),R=n.broadcastCalendar?35:42;if(n.fixedWeeks&&A.length<R){const D=t.filter(P=>{const L=R-A.length;return P>C&&P<=a(C,L)});A.push(...D)}const _=A.reduce((D,P)=>{const L=n.ISOWeek?f(P):m(P),U=D.find(H=>H.weekNumber===L),B=new Hk(P,T,r);return U?U.days.push(B):D.push(new Zle(L,[B])),D},[]),O=new Qle(T,_);return b.push(O),b},[]);return n.reverseMonths?x.reverse():x}function ece(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:a,startOfDay:s,startOfMonth:i,endOfMonth:u,addYears:d,endOfYear:f,newDate:m,today:p}=t,{fromYear:v,toYear:y,fromMonth:x,toMonth:b}=e;!n&&x&&(n=x),!n&&v&&(n=t.newDate(v,0,1)),!r&&b&&(r=b),!r&&y&&(r=m(y,11,31));const T=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=i(n):v?n=m(v,0,1):!n&&T&&(n=a(d(e.today??p(),-100))),r?r=u(r):y?r=m(y,11,31):!r&&T&&(r=f(e.today??p())),[n&&s(n),r&&s(r)]}function tce(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:a,numberOfMonths:s=1}=n,{startOfMonth:i,addMonths:u,differenceInCalendarMonths:d}=r,f=a?s:1,m=i(e);if(!t)return u(m,f);if(!(d(t,e)<s))return u(m,f)}function nce(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:a,numberOfMonths:s}=n,{startOfMonth:i,addMonths:u,differenceInCalendarMonths:d}=r,f=a?s??1:1,m=i(e);if(!t)return u(m,-f);if(!(d(m,t)<=0))return u(m,-f)}function rce(e){const t=[];return e.reduce((n,r)=>[...n,...r.weeks],t)}function Mg(e,t){const[n,r]=S.useState(e);return[t===void 0?n:t,r]}function ace(e,t){const[n,r]=ece(e,t),{startOfMonth:a,endOfMonth:s}=t,i=gM(e,t),[u,d]=Mg(i,e.month?i:void 0);S.useEffect(()=>{const O=gM(e,t);d(O)},[e.timeZone]);const f=Xle(u,r,e,t),m=Wle(f,e.endMonth?s(e.endMonth):void 0,e,t),p=Jle(f,m,e,t),v=rce(p),y=Kle(p),x=nce(u,n,e,t),b=tce(u,r,e,t),{disableNavigation:T,onMonthChange:N}=e,C=O=>v.some(D=>D.days.some(P=>P.isEqualTo(O))),A=O=>{if(T)return;let D=a(O);n&&D<a(n)&&(D=a(n)),r&&D>a(r)&&(D=a(r)),d(D),N==null||N(D)};return{months:p,weeks:v,days:y,navStart:n,navEnd:r,previousMonth:x,nextMonth:b,goToMonth:A,goToDay:O=>{C(O)||A(O.date)}}}var za;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(za||(za={}));function vM(e){return!e[qt.disabled]&&!e[qt.hidden]&&!e[qt.outside]}function sce(e,t,n,r){let a,s=-1;for(const i of e){const u=t(i);vM(u)&&(u[qt.focused]&&s<za.FocusedModifier?(a=i,s=za.FocusedModifier):r!=null&&r.isEqualTo(i)&&s<za.LastFocused?(a=i,s=za.LastFocused):n(i.date)&&s<za.Selected?(a=i,s=za.Selected):u[qt.today]&&s<za.Today&&(a=i,s=za.Today))}return a||(a=e.find(i=>vM(t(i)))),a}function ks(e,t,n=!1,r=$s){let{from:a,to:s}=e;const{differenceInCalendarDays:i,isSameDay:u}=r;return a&&s?(i(s,a)<0&&([a,s]=[s,a]),i(t,a)>=(n?1:0)&&i(s,t)>=(n?1:0)):!n&&s?u(s,t):!n&&a?u(a,t):!1}function Vk(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function kS(e){return!!(e&&typeof e=="object"&&"from"in e)}function Gk(e){return!!(e&&typeof e=="object"&&"after"in e)}function zk(e){return!!(e&&typeof e=="object"&&"before"in e)}function $k(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function qk(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Us(e,t,n=$s){const r=Array.isArray(t)?t:[t],{isSameDay:a,differenceInCalendarDays:s,isAfter:i}=n;return r.some(u=>{if(typeof u=="boolean")return u;if(n.isDate(u))return a(e,u);if(qk(u,n))return u.includes(e);if(kS(u))return ks(u,e,!1,n);if($k(u))return Array.isArray(u.dayOfWeek)?u.dayOfWeek.includes(e.getDay()):u.dayOfWeek===e.getDay();if(Vk(u)){const d=s(u.before,e),f=s(u.after,e),m=d>0,p=f<0;return i(u.before,u.after)?p&&m:m||p}return Gk(u)?s(e,u.after)>0:zk(u)?s(u.before,e)>0:typeof u=="function"?u(e):!1})}function oce(e,t,n,r,a,s,i){const{ISOWeek:u,broadcastCalendar:d}=s,{addDays:f,addMonths:m,addWeeks:p,addYears:v,endOfBroadcastWeek:y,endOfISOWeek:x,endOfWeek:b,max:T,min:N,startOfBroadcastWeek:C,startOfISOWeek:A,startOfWeek:R}=i;let O={day:f,week:p,month:m,year:v,startOfWeek:D=>d?C(D,i):u?A(D):R(D),endOfWeek:D=>d?y(D,i):u?x(D):b(D)}[e](n,t==="after"?1:-1);return t==="before"&&r?O=T([r,O]):t==="after"&&a&&(O=N([a,O])),O}function Yk(e,t,n,r,a,s,i,u=0){if(u>365)return;const d=oce(e,t,n.date,r,a,s,i),f=!!(s.disabled&&Us(d,s.disabled,i)),m=!!(s.hidden&&Us(d,s.hidden,i)),p=d,v=new Hk(d,p,i);return!f&&!m?v:Yk(e,t,v,r,a,s,i,u+1)}function ice(e,t,n,r,a){const{autoFocus:s}=e,[i,u]=S.useState(),d=sce(t.days,n,r||(()=>!1),i),[f,m]=S.useState(s?d:void 0);return{isFocusTarget:b=>!!(d!=null&&d.isEqualTo(b)),setFocused:m,focused:f,blur:()=>{u(f),m(void 0)},moveFocus:(b,T)=>{if(!f)return;const N=Yk(b,T,f,t.navStart,t.navEnd,e,a);N&&(t.goToDay(N),m(N))}}}function lce(e,t,n){const{disabled:r,hidden:a,modifiers:s,showOutsideDays:i,broadcastCalendar:u,today:d}=t,{isSameDay:f,isSameMonth:m,startOfMonth:p,isBefore:v,endOfMonth:y,isAfter:x}=n,b=t.startMonth&&p(t.startMonth),T=t.endMonth&&y(t.endMonth),N={[qt.focused]:[],[qt.outside]:[],[qt.disabled]:[],[qt.hidden]:[],[qt.today]:[]},C={};for(const A of e){const{date:R,displayMonth:_}=A,O=!!(_&&!m(R,_)),D=!!(b&&v(R,b)),P=!!(T&&x(R,T)),L=!!(r&&Us(R,r,n)),U=!!(a&&Us(R,a,n))||D||P||!u&&!i&&O||u&&i===!1&&O,B=f(R,d??n.today());O&&N.outside.push(A),L&&N.disabled.push(A),U&&N.hidden.push(A),B&&N.today.push(A),s&&Object.keys(s).forEach(H=>{const Z=s==null?void 0:s[H];Z&&Us(R,Z,n)&&(C[H]?C[H].push(A):C[H]=[A])})}return A=>{const R={[qt.focused]:!1,[qt.disabled]:!1,[qt.hidden]:!1,[qt.outside]:!1,[qt.today]:!1},_={};for(const O in N){const D=N[O];R[O]=D.some(P=>P===A)}for(const O in C)_[O]=C[O].some(D=>D===A);return{...R,..._}}}function cce(e,t){const{selected:n,required:r,onSelect:a}=e,[s,i]=Mg(n,a?n:void 0),u=a?n:s,{isSameDay:d}=t,f=y=>(u==null?void 0:u.some(x=>d(x,y)))??!1,{min:m,max:p}=e;return{selected:u,select:(y,x,b)=>{let T=[...u??[]];if(f(y)){if((u==null?void 0:u.length)===m||r&&(u==null?void 0:u.length)===1)return;T=u==null?void 0:u.filter(N=>!d(N,y))}else(u==null?void 0:u.length)===p?T=[y]:T=[...T,y];return a||i(T),a==null||a(T,y,x,b),T},isSelected:f}}function uce(e,t,n=0,r=0,a=!1,s=$s){const{from:i,to:u}=t||{},{isSameDay:d,isAfter:f,isBefore:m}=s;let p;if(!i&&!u)p={from:e,to:n>0?void 0:e};else if(i&&!u)d(i,e)?a?p={from:i,to:void 0}:p=void 0:m(e,i)?p={from:e,to:i}:p={from:i,to:e};else if(i&&u)if(d(i,e)&&d(u,e))a?p={from:i,to:u}:p=void 0;else if(d(i,e))p={from:i,to:n>0?void 0:e};else if(d(u,e))p={from:e,to:n>0?void 0:e};else if(m(e,i))p={from:e,to:u};else if(f(e,i))p={from:i,to:e};else if(f(e,u))p={from:i,to:e};else throw new Error("Invalid range");if(p!=null&&p.from&&(p!=null&&p.to)){const v=s.differenceInCalendarDays(p.to,p.from);r>0&&v>r?p={from:e,to:void 0}:n>1&&v<n&&(p={from:e,to:void 0})}return p}function dce(e,t,n=$s){const r=Array.isArray(t)?t:[t];let a=e.from;const s=n.differenceInCalendarDays(e.to,e.from),i=Math.min(s,6);for(let u=0;u<=i;u++){if(r.includes(a.getDay()))return!0;a=n.addDays(a,1)}return!1}function yM(e,t,n=$s){return ks(e,t.from,!1,n)||ks(e,t.to,!1,n)||ks(t,e.from,!1,n)||ks(t,e.to,!1,n)}function fce(e,t,n=$s){const r=Array.isArray(t)?t:[t];if(r.filter(u=>typeof u!="function").some(u=>typeof u=="boolean"?u:n.isDate(u)?ks(e,u,!1,n):qk(u,n)?u.some(d=>ks(e,d,!1,n)):kS(u)?u.from&&u.to?yM(e,{from:u.from,to:u.to},n):!1:$k(u)?dce(e,u.dayOfWeek,n):Vk(u)?n.isAfter(u.before,u.after)?yM(e,{from:n.addDays(u.after,1),to:n.addDays(u.before,-1)},n):Us(e.from,u,n)||Us(e.to,u,n):Gk(u)||zk(u)?Us(e.from,u,n)||Us(e.to,u,n):!1))return!0;const i=r.filter(u=>typeof u=="function");if(i.length){let u=e.from;const d=n.differenceInCalendarDays(e.to,e.from);for(let f=0;f<=d;f++){if(i.some(m=>m(u)))return!0;u=n.addDays(u,1)}}return!1}function hce(e,t){const{disabled:n,excludeDisabled:r,selected:a,required:s,onSelect:i}=e,[u,d]=Mg(a,i?a:void 0),f=i?a:u;return{selected:f,select:(v,y,x)=>{const{min:b,max:T}=e,N=v?uce(v,f,b,T,s,t):void 0;return r&&n&&(N!=null&&N.from)&&N.to&&fce({from:N.from,to:N.to},n,t)&&(N.from=v,N.to=void 0),i||d(N),i==null||i(N,v,y,x),N},isSelected:v=>f&&ks(f,v,!1,t)}}function mce(e,t){const{selected:n,required:r,onSelect:a}=e,[s,i]=Mg(n,a?n:void 0),u=a?n:s,{isSameDay:d}=t;return{selected:u,select:(p,v,y)=>{let x=p;return!r&&u&&u&&d(p,u)&&(x=void 0),a||i(x),a==null||a(x,p,v,y),x},isSelected:p=>u?d(u,p):!1}}function pce(e,t){const n=mce(e,t),r=cce(e,t),a=hce(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return a;default:return}}function gce(e){const{components:t,formatters:n,labels:r,dateLib:a,locale:s,classNames:i}=S.useMemo(()=>{const ze={...LS,...e.locale};return{dateLib:new zs({locale:ze,weekStartsOn:e.broadcastCalendar?1:e.weekStartsOn,firstWeekContainsDate:e.firstWeekContainsDate,useAdditionalWeekYearTokens:e.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:e.useAdditionalDayOfYearTokens,timeZone:e.timeZone,numerals:e.numerals},e.dateLib),components:gle(e.components),formatters:Ale(e.formatters),labels:{...Gle,...e.labels},locale:ze,classNames:{...yle(),...e.classNames}}},[e.locale,e.broadcastCalendar,e.weekStartsOn,e.firstWeekContainsDate,e.useAdditionalWeekYearTokens,e.useAdditionalDayOfYearTokens,e.timeZone,e.numerals,e.dateLib,e.components,e.formatters,e.labels,e.classNames]),{captionLayout:u,mode:d,onDayBlur:f,onDayClick:m,onDayFocus:p,onDayKeyDown:v,onDayMouseEnter:y,onDayMouseLeave:x,onNextClick:b,onPrevClick:T,showWeekNumber:N,styles:C}=e,{formatCaption:A,formatDay:R,formatMonthDropdown:_,formatWeekNumber:O,formatWeekNumberHeader:D,formatWeekdayName:P,formatYearDropdown:L}=n,U=ace(e,a),{days:B,months:H,navStart:Z,navEnd:ee,previousMonth:Q,nextMonth:j,goToMonth:Y}=U,V=lce(B,e,a),{isSelected:te,select:k,selected:$}=pce(e,a)??{},{blur:se,focused:re,isFocusTarget:ue,moveFocus:xe,setFocused:fe}=ice(e,U,V,te??(()=>!1),a),{labelDayButton:he,labelGridcell:ge,labelGrid:Ne,labelMonthDropdown:Ae,labelNav:Me,labelWeekday:He,labelWeekNumber:Ft,labelWeekNumberHeader:dt,labelYearDropdown:On}=r,tr=S.useMemo(()=>Mle(a,e.ISOWeek),[a,e.ISOWeek]),yt=d!==void 0||m!==void 0,oa=S.useCallback(()=>{Q&&(Y(Q),T==null||T(Q))},[Q,Y,T]),Wt=S.useCallback(()=>{j&&(Y(j),b==null||b(j))},[Y,j,b]),Bt=S.useCallback((ze,xt)=>Je=>{Je.preventDefault(),Je.stopPropagation(),fe(ze),k==null||k(ze.date,xt,Je),m==null||m(ze.date,xt,Je)},[k,m,fe]),Dn=S.useCallback((ze,xt)=>Je=>{fe(ze),p==null||p(ze.date,xt,Je)},[p,fe]),ln=S.useCallback((ze,xt)=>Je=>{se(),f==null||f(ze.date,xt,Je)},[se,f]),Sn=S.useCallback((ze,xt)=>Je=>{const zn={ArrowLeft:["day",e.dir==="rtl"?"after":"before"],ArrowRight:["day",e.dir==="rtl"?"before":"after"],ArrowDown:["week","after"],ArrowUp:["week","before"],PageUp:[Je.shiftKey?"year":"month","before"],PageDown:[Je.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(zn[Je.key]){Je.preventDefault(),Je.stopPropagation();const[mn,Pa]=zn[Je.key];xe(mn,Pa)}v==null||v(ze.date,xt,Je)},[xe,v,e.dir]),Ys=S.useCallback((ze,xt)=>Je=>{y==null||y(ze.date,xt,Je)},[y]),us=S.useCallback((ze,xt)=>Je=>{x==null||x(ze.date,xt,Je)},[x]),Br=S.useCallback(ze=>xt=>{const Je=Number(xt.target.value),zn=a.setMonth(a.startOfMonth(ze),Je);Y(zn)},[a,Y]),In=S.useCallback(ze=>xt=>{const Je=Number(xt.target.value),zn=a.setYear(a.startOfMonth(ze),Je);Y(zn)},[a,Y]),{className:wr,style:hn}=S.useMemo(()=>({className:[i[De.Root],e.className].filter(Boolean).join(" "),style:{...C==null?void 0:C[De.Root],...e.style}}),[i,e.className,e.style,C]),Da=vle(e),ri=S.useRef(null);Yle(ri,!!e.animate,{classNames:i,months:H,focused:re,dateLib:a});const Ia={dayPickerProps:e,selected:$,select:k,isSelected:te,months:H,nextMonth:j,previousMonth:Q,goToMonth:Y,getModifiers:V,components:t,classNames:i,styles:C,labels:r,formatters:n};return z.createElement(Lk.Provider,{value:Ia},z.createElement(t.Root,{rootRef:e.animate?ri:void 0,className:wr,style:hn,dir:e.dir,id:e.id,lang:e.lang,nonce:e.nonce,title:e.title,role:e.role,"aria-label":e["aria-label"],...Da},z.createElement(t.Months,{className:i[De.Months],style:C==null?void 0:C[De.Months]},!e.hideNavigation&&z.createElement(t.Nav,{"data-animated-nav":e.animate?"true":void 0,className:i[De.Nav],style:C==null?void 0:C[De.Nav],"aria-label":Me(),onPreviousClick:oa,onNextClick:Wt,previousMonth:Q,nextMonth:j}),H.map((ze,xt)=>{const Je=_le(ze.date,Z,ee,n,a),zn=Ole(Z,ee,n,a);return z.createElement(t.Month,{"data-animated-month":e.animate?"true":void 0,className:i[De.Month],style:C==null?void 0:C[De.Month],key:xt,displayIndex:xt,calendarMonth:ze},z.createElement(t.MonthCaption,{"data-animated-caption":e.animate?"true":void 0,className:i[De.MonthCaption],style:C==null?void 0:C[De.MonthCaption],calendarMonth:ze,displayIndex:xt},u!=null&&u.startsWith("dropdown")?z.createElement(t.DropdownNav,{className:i[De.Dropdowns],style:C==null?void 0:C[De.Dropdowns]},u==="dropdown"||u==="dropdown-months"?z.createElement(t.MonthsDropdown,{className:i[De.MonthsDropdown],"aria-label":Ae(),classNames:i,components:t,disabled:!!e.disableNavigation,onChange:Br(ze.date),options:Je,style:C==null?void 0:C[De.Dropdown],value:a.getMonth(ze.date)}):z.createElement("span",null,_(ze.date,a)),u==="dropdown"||u==="dropdown-years"?z.createElement(t.YearsDropdown,{className:i[De.YearsDropdown],"aria-label":On(a.options),classNames:i,components:t,disabled:!!e.disableNavigation,onChange:In(ze.date),options:zn,style:C==null?void 0:C[De.Dropdown],value:a.getYear(ze.date)}):z.createElement("span",null,L(ze.date,a)),z.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},A(ze.date,a.options,a))):z.createElement(t.CaptionLabel,{className:i[De.CaptionLabel],role:"status","aria-live":"polite"},A(ze.date,a.options,a))),z.createElement(t.MonthGrid,{role:"grid","aria-multiselectable":d==="multiple"||d==="range","aria-label":Ne(ze.date,a.options,a)||void 0,className:i[De.MonthGrid],style:C==null?void 0:C[De.MonthGrid]},!e.hideWeekdays&&z.createElement(t.Weekdays,{"data-animated-weekdays":e.animate?"true":void 0,className:i[De.Weekdays],style:C==null?void 0:C[De.Weekdays]},N&&z.createElement(t.WeekNumberHeader,{"aria-label":dt(a.options),className:i[De.WeekNumberHeader],style:C==null?void 0:C[De.WeekNumberHeader],scope:"col"},D()),tr.map((mn,Pa)=>z.createElement(t.Weekday,{"aria-label":He(mn,a.options,a),className:i[De.Weekday],key:Pa,style:C==null?void 0:C[De.Weekday],scope:"col"},P(mn,a.options,a)))),z.createElement(t.Weeks,{"data-animated-weeks":e.animate?"true":void 0,className:i[De.Weeks],style:C==null?void 0:C[De.Weeks]},ze.weeks.map((mn,Pa)=>z.createElement(t.Week,{className:i[De.Week],key:mn.weekNumber,style:C==null?void 0:C[De.Week],week:mn},N&&z.createElement(t.WeekNumber,{week:mn,style:C==null?void 0:C[De.WeekNumber],"aria-label":Ft(mn.weekNumber,{locale:s}),className:i[De.WeekNumber],scope:"row",role:"rowheader"},O(mn.weekNumber)),mn.days.map(bt=>{const{date:nr}=bt,nt=V(bt);if(nt[qt.focused]=!nt.hidden&&!!(re!=null&&re.isEqualTo(bt)),nt[va.selected]=(te==null?void 0:te(nr))||nt.selected,kS($)){const{from:jt,to:Ht}=$;nt[va.range_start]=!!(jt&&Ht&&a.isSameDay(nr,jt)),nt[va.range_end]=!!(jt&&Ht&&a.isSameDay(nr,Ht)),nt[va.range_middle]=ks($,nr,!0,a)}const ja=Rle(nt,C,e.modifiersStyles),ol=Vie(nt,i,e.modifiersClassNames),Ve=!yt&&!nt.hidden?ge(nr,nt,a.options,a):void 0;return z.createElement(t.Day,{key:`${a.format(nr,"yyyy-MM-dd")}_${a.format(bt.displayMonth,"yyyy-MM")}`,day:bt,modifiers:nt,className:ol.join(" "),style:ja,role:"gridcell","aria-selected":nt.selected||void 0,"aria-label":Ve,"data-day":a.format(nr,"yyyy-MM-dd"),"data-month":bt.outside?a.format(nr,"yyyy-MM"):void 0,"data-selected":nt.selected||void 0,"data-disabled":nt.disabled||void 0,"data-hidden":nt.hidden||void 0,"data-outside":bt.outside||void 0,"data-focused":nt.focused||void 0,"data-today":nt.today||void 0},!nt.hidden&&yt?z.createElement(t.DayButton,{className:i[De.DayButton],style:C==null?void 0:C[De.DayButton],type:"button",day:bt,modifiers:nt,disabled:nt.disabled||void 0,tabIndex:ue(bt)?0:-1,"aria-label":he(nr,nt,a.options,a),onClick:Bt(bt,nt),onBlur:ln(bt,nt),onFocus:Dn(bt,nt),onKeyDown:Sn(bt,nt),onMouseEnter:Ys(bt,nt),onMouseLeave:us(bt,nt)},R(nr,a.options,a)):!nt.hidden&&R(bt.date,a.options,a))}))))))})),e.footer&&z.createElement(t.Footer,{className:i[De.Footer],style:C==null?void 0:C[De.Footer],role:"status","aria-live":"polite"},e.footer)))}function uE({className:e,classNames:t,showOutsideDays:n=!0,...r}){return c.jsx(gce,{showOutsideDays:n,className:X("p-3",e),classNames:{months:"relative flex flex-col sm:flex-row gap-4",month:"w-full",month_caption:"relative mx-10 mb-1 flex h-8 items-center justify-center z-20",caption_label:"text-sm font-medium",nav:"absolute top-0 flex w-full justify-between z-10",button_previous:X(Td({variant:"ghost"}),"size-8 text-muted-foreground/80 hover:text-foreground p-0"),button_next:X(Td({variant:"ghost"}),"size-8 text-muted-foreground/80 hover:text-foreground p-0"),weekday:"size-8 p-0 text-xs font-medium text-muted-foreground/80",day_button:"cursor-pointer relative flex size-8 items-center justify-center whitespace-nowrap rounded-md p-0 text-foreground transition-200 group-[[data-selected]:not(.range-middle)]:[transition-property:color,background-color,border-radius,box-shadow] group-[[data-selected]:not(.range-middle)]:duration-150 group-data-disabled:pointer-events-none focus-visible:z-10 hover:not-in-data-selected:bg-accent group-data-selected:bg-primary hover:not-in-data-selected:text-foreground group-data-selected:text-primary-foreground group-data-disabled:text-foreground/30 group-data-disabled:line-through group-data-outside:text-foreground/30 group-data-selected:group-data-outside:text-primary-foreground outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] group-[.range-start:not(.range-end)]:rounded-e-none group-[.range-end:not(.range-start)]:rounded-s-none group-[.range-middle]:rounded-none group-[.range-middle]:group-data-selected:bg-accent group-[.range-middle]:group-data-selected:text-foreground",day:"group size-8 px-0 py-px text-sm",range_start:"range-start",range_end:"range-end",range_middle:"range-middle",today:"*:after:pointer-events-none *:after:absolute *:after:bottom-1 *:after:start-1/2 *:after:z-10 *:after:size-[3px] *:after:-translate-x-1/2 rtl:*:after:translate-x-1/2 *:after:rounded-full *:after:bg-primary [&[data-selected]:not(.range-middle)>*]:after:bg-background [&[data-disabled]>*]:after:bg-foreground/30 *:after:transition-colors",outside:"text-muted-foreground data-selected:bg-accent/50 data-selected:text-muted-foreground",hidden:"invisible",week_number:"size-8 p-0 text-xs font-medium text-muted-foreground/80",...t},components:{Chevron:a=>a.orientation==="left"?c.jsx(M2,{className:"h-4 w-4 rtl:rotate-180"}):c.jsx(Ec,{className:"h-4 w-4 rtl:rotate-180"})},...r})}const vce={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},yce=(e,t,n)=>{let r;const a=vce[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+" nữa":r+" trước":r},xce={full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},bce={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Ece={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Sce={date:uc({formats:xce,defaultWidth:"full"}),time:uc({formats:bce,defaultWidth:"full"}),dateTime:uc({formats:Ece,defaultWidth:"full"})},Tce={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},Nce=(e,t,n,r)=>Tce[e],wce={narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},Cce={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},Ace={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},_ce={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},Rce={narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},Mce={narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},Oce={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},Dce={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},Ice=(e,t)=>{const n=Number(e),r=t==null?void 0:t.unit;if(r==="quarter")switch(n){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if(r==="day")switch(n){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if(r==="week")return n===1?"thứ nhất":"thứ "+n;if(r==="dayOfYear")return n===1?"đầu tiên":"thứ "+n}return String(n)},Pce={ordinalNumber:Ice,era:Xa({values:wce,defaultWidth:"wide"}),quarter:Xa({values:Cce,defaultWidth:"wide",formattingValues:Ace,defaultFormattingWidth:"wide",argumentCallback:e=>e-1}),month:Xa({values:_ce,defaultWidth:"wide",formattingValues:Rce,defaultFormattingWidth:"wide"}),day:Xa({values:Mce,defaultWidth:"wide"}),dayPeriod:Xa({values:Oce,defaultWidth:"wide",formattingValues:Dce,defaultFormattingWidth:"wide"})},jce=/^(\d+)/i,Lce=/\d+/i,kce={narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},Uce={any:[/^t/i,/^s/i]},Fce={narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},Bce={any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},Hce={narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},Vce={narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},Gce={narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},zce={narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},$ce={narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},qce={any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},Yce={ordinalNumber:Mk({matchPattern:jce,parsePattern:Lce,valueCallback:e=>parseInt(e,10)}),era:Qa({matchPatterns:kce,defaultMatchWidth:"wide",parsePatterns:Uce,defaultParseWidth:"any"}),quarter:Qa({matchPatterns:Fce,defaultMatchWidth:"wide",parsePatterns:Bce,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Qa({matchPatterns:Hce,defaultMatchWidth:"wide",parsePatterns:Vce,defaultParseWidth:"wide"}),day:Qa({matchPatterns:Gce,defaultMatchWidth:"wide",parsePatterns:zce,defaultParseWidth:"wide"}),dayPeriod:Qa({matchPatterns:$ce,defaultMatchWidth:"wide",parsePatterns:qce,defaultParseWidth:"any"})},Wce={code:"vi",formatDistance:yce,formatLong:Sce,formatRelative:Nce,localize:Pce,match:Yce,options:{weekStartsOn:1,firstWeekContainsDate:1}},Kce=e=>e.replace(/[^\d.-]/g,"").startsWith("-")?"text-destructive":"text-success-600",Xce=()=>{const e=Ge(),{loading:t,transactions:n,summary:r,fromDate:a,toDate:s,setFromDate:i,setToDate:u,onView:d,onExport:f,hasSearched:m}=Wae(),p=T=>{const N=T.replace(/[^\d.-]/g,""),C=N.startsWith("-"),A=C?N.substring(1):N;try{const R=parseFloat(A),_=new Intl.NumberFormat("vi-VN",{style:"currency",currency:"VND",maximumFractionDigits:0}).format(R);return C?"-"+_:_}catch{return T}},v=a?new Date(a):null,y=s?new Date(s):null,x=T=>{if(!T)return"";const N=new Date(T);return Ii(N,"dd/MM/yyyy",{locale:Wce})},b=T=>T?Ii(T,"yyyy-MM-dd"):"";return dk({data:n,columns:[],getCoreRowModel:uk()}),c.jsxs(S.Fragment,{children:[c.jsx(ht,{className:"mb-8",children:c.jsxs(ct,{children:[c.jsxs(Yt,{children:[c.jsx(Zn,{children:e.formatMessage({id:"TRANSACTION.REPORT.TITLE"})}),c.jsx(mp,{children:e.formatMessage({id:"TRANSACTION.REPORT.DESCRIPTION"})})]}),c.jsx(Nt,{children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-sm font-medium leading-none",children:e.formatMessage({id:"TRANSACTION.FILTER.FROM_DATE"})}),c.jsxs(oE,{children:[c.jsx(iE,{asChild:!0,children:c.jsxs(ke,{variant:"outline",className:X("w-full data-[state=open]:border-primary",!v&&"text-muted-foreground"),children:[c.jsx($i,{className:"-ms-0.5"}),v?Ii(v,"dd/MM/yyyy"):c.jsx("span",{className:"text-muted-foreground",children:e.formatMessage({id:"TRANSACTION.FILTER.SELECT_DATE"})})]})}),c.jsx(lE,{className:"w-auto p-0",align:"start",children:c.jsx(uE,{mode:"single",selected:v||void 0,onSelect:T=>T&&i(b(T)),initialFocus:!0})})]})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-sm font-medium leading-none",children:e.formatMessage({id:"TRANSACTION.FILTER.TO_DATE"})}),c.jsxs(oE,{children:[c.jsx(iE,{asChild:!0,children:c.jsxs(ke,{variant:"outline",className:X("w-full data-[state=open]:border-primary",!y&&"text-muted-foreground"),children:[c.jsx($i,{className:"-ms-0.5"}),y?Ii(y,"dd/MM/yyyy"):c.jsx("span",{className:"text-muted-foreground",children:e.formatMessage({id:"TRANSACTION.FILTER.SELECT_DATE"})})]})}),c.jsx(lE,{className:"w-auto p-0",align:"start",children:c.jsx(uE,{mode:"single",selected:y||void 0,onSelect:T=>T&&u(b(T)),initialFocus:!0})})]})]}),c.jsxs("div",{className:"flex items-end space-x-3",children:[c.jsxs(ke,{className:"flex-1",onClick:d,disabled:t,children:[c.jsx(j2,{className:"h-4 w-4 mr-2"}),e.formatMessage({id:"TRANSACTION.ACTIONS.VIEW"})]}),c.jsxs(ke,{variant:"outline",onClick:f,disabled:t||!m||n.length===0,children:[c.jsx(BE,{className:"h-4 w-4 mr-2"}),e.formatMessage({id:"TRANSACTION.ACTIONS.EXPORT"})]})]})]})})]})}),c.jsx(ht,{children:c.jsx("div",{className:"w-full",children:c.jsxs(ct,{className:"relative",children:[c.jsx(Yt,{children:c.jsxs(xj,{children:[c.jsx(Zn,{children:e.formatMessage({id:"TRANSACTION.HISTORY.TITLE"})}),n.length>0&&c.jsx(mp,{children:e.formatMessage({id:"TRANSACTION.HISTORY.SHOWING"},{count:n.length,fromDate:x(a),toDate:x(s)})})]})}),c.jsxs(Nt,{className:"p-0 relative",children:[t&&c.jsx("div",{className:"absolute inset-0 bg-background/70 flex items-center justify-center z-10 rounded-xl",children:c.jsx(Sr,{className:"h-6 w-6 text-primary animate-spin"})}),m?n.length===0?c.jsxs("div",{className:"flex flex-col items-center justify-center py-10 text-center",children:[c.jsx(Xm,{className:"h-12 w-12 text-muted-foreground mb-3"}),c.jsx("h3",{className:"text-lg font-semibold",children:e.formatMessage({id:"TRANSACTION.EMPTY.NOT_FOUND_TITLE"})}),c.jsx("p",{className:"text-sm text-muted-foreground max-w-md mt-1",children:e.formatMessage({id:"TRANSACTION.EMPTY.NOT_FOUND_MESSAGE"})})]}):c.jsx(mf,{children:c.jsxs(Af,{children:[c.jsxs(Na,{children:[c.jsx(wa,{children:c.jsxs(en,{className:"bg-accent/60",children:[c.jsx(Fe,{className:"w-12 h-10",children:e.formatMessage({id:"TRANSACTION.TABLE.NO"})}),c.jsx(Fe,{className:"min-w-40 h-10",children:e.formatMessage({id:"TRANSACTION.TABLE.RECEIPT_NO"})}),c.jsx(Fe,{className:"min-w-28 h-10",children:e.formatMessage({id:"TRANSACTION.TABLE.DATE"})}),c.jsx(Fe,{className:"min-w-40 h-10",children:e.formatMessage({id:"TRANSACTION.TABLE.FEE_TYPE"})}),c.jsx(Fe,{className:"min-w-32 h-10",children:e.formatMessage({id:"TRANSACTION.TABLE.AMOUNT"})}),c.jsx(Fe,{className:"min-w-28 h-10",children:e.formatMessage({id:"TRANSACTION.TABLE.INPUT_BY"})}),c.jsx(Fe,{className:"min-w-72 h-10",children:e.formatMessage({id:"TRANSACTION.TABLE.DESCRIPTION"})})]})}),c.jsx(Ca,{children:n.map(T=>c.jsxs(en,{className:"hover:bg-accent/50",children:[c.jsx(Qe,{className:"text-sm text-foreground font-normal",children:T.id}),c.jsx(Qe,{className:"text-sm text-primary font-medium",children:T.receiptNo||"-"}),c.jsx(Qe,{className:"text-sm text-foreground font-normal",children:T.date}),c.jsx(Qe,{children:c.jsx(kt,{className:"font-normal bg-accent/80 text-accent-foreground border text-nowrap",children:T.feeType})}),c.jsx(Qe,{className:X("text-sm font-semibold",Kce(T.amount)),children:p(T.amount)}),c.jsx(Qe,{className:"text-sm text-muted-foreground",children:T.inputBy||"-"}),c.jsx(Qe,{className:"text-sm text-foreground font-normal",children:T.description})]},T.id))})]}),c.jsx(_f,{orientation:"horizontal"})]})}):c.jsxs("div",{className:"flex flex-col items-center justify-center py-10 text-center",children:[c.jsx(Xm,{className:"h-12 w-12 text-muted-foreground mb-3"}),c.jsx("h3",{className:"text-lg font-semibold",children:e.formatMessage({id:"TRANSACTION.EMPTY.NO_DISPLAY_TITLE"})}),c.jsx("p",{className:"text-sm text-muted-foreground max-w-md mt-1",children:e.formatMessage({id:"TRANSACTION.EMPTY.NO_DISPLAY_MESSAGE"})})]})]}),n.length>0&&c.jsx($c,{className:"flex justify-end border-t bg-accent/20 py-4",children:c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:e.formatMessage({id:"TRANSACTION.SUMMARY.TOTAL_BALANCE"})}),c.jsx("span",{className:"text-lg font-bold text-primary",children:p(r)})]})})]})})})]})},Qce=()=>{const[e,t]=S.useState(""),n=Mn({studentInfo:a=>{var f;if(!a)return{name:"",rollNumber:"",curriculum:""};const s=a.querySelector("#ctl00_mainContent_lblRollnumber"),i=a.querySelector("#ctl00_mainContent_lblCurriculum");let u="",d="";if(s){const p=(s.textContent||"").match(/Student\s+(.+?)\((.+?)\)/);p&&(u=p[1].trim(),d=p[2].trim())}return{name:u,rollNumber:d,curriculum:((f=i==null?void 0:i.textContent)==null?void 0:f.trim())||""}},subjects:a=>{if(!a)return[];const s=a==null?void 0:a.querySelectorAll("table")[2];if(!s)return[];const i=[];return s.querySelectorAll("tbody tr").forEach(d=>{var m,p,v,y;const f=d.querySelectorAll("td");console.log(f.length),f.length>=4&&i.push({id:parseInt(((m=f[0].textContent)==null?void 0:m.trim())||"0"),code:((p=f[1].textContent)==null?void 0:p.trim())||"",name:((v=f[2].textContent)==null?void 0:v.trim())||"",termNo:((y=f[3].textContent)==null?void 0:y.trim())||""})}),console.log(i),i},prerequisites:a=>{if(!a)return[];const s=a==null?void 0:a.querySelectorAll("table")[3];if(!s)return[];const i=[];return s.querySelectorAll("tbody tr").forEach(d=>{var m,p,v,y,x;const f=d.querySelectorAll("td");f.length>=5&&i.push({id:parseInt(((m=f[0].textContent)==null?void 0:m.trim())||"0"),subjectCode:((p=f[1].textContent)==null?void 0:p.trim())||"",prerequisiteCode:((v=f[2].textContent)==null?void 0:v.trim())||"",alternativeCode:((y=f[3].textContent)==null?void 0:y.trim())||"",condition:((x=f[4].textContent)==null?void 0:x.trim())||""})}),i},terms:a=>{if(!a)return[];const s=a==null?void 0:a.querySelector("#ctl00_mainContent_ddlTerms");if(!s)return[];const i=[];return Array.from(s.options).forEach(u=>{i.push(u.value)}),i},selectedTerm:a=>{if(!a)return"";const s=a==null?void 0:a.querySelector("#ctl00_mainContent_ddlTerms");return s?s.value:""}});e===""&&n.selectedTerm&&t(n.selectedTerm);const r=a=>{t(a)};return{...n,selectedTerm:e||n.selectedTerm,setSelectedTerm:r}},Zce=()=>c.jsxs(ht,{children:[c.jsx("div",{className:"h-14 flex items-center mb-6",children:c.jsx(Le,{className:"h-9 w-[120px]"})}),c.jsx("div",{className:"mb-8",children:c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx(Le,{className:"h-7 w-[300px] mb-2"}),c.jsx(Le,{className:"h-5 w-[200px]"})]})}),c.jsxs("div",{className:"mb-8",children:[c.jsx("div",{className:"mb-5",children:c.jsx(Le,{className:"h-7 w-[180px]"})}),c.jsx(Le,{className:"h-64 w-full"})]}),c.jsxs("div",{className:"mb-8",children:[c.jsx("div",{className:"mb-5",children:c.jsx(Le,{className:"h-7 w-[180px]"})}),c.jsx(Le,{className:"h-48 w-full"})]})]}),_s=({className:e,...t})=>c.jsx(Qe,{className:X("py-1.5",e),...t}),Jce=()=>{const e=Ge(),{loading:t}=fn(),{studentInfo:n,subjects:r,prerequisites:a}=Qce();return t||!r?c.jsx(Zce,{}):c.jsx(S.Fragment,{children:c.jsxs(ht,{children:[c.jsxs("div",{className:"flex flex-col gap-1 mb-5",children:[c.jsxs("h2",{className:"text-xl font-bold",children:[n.name," ",c.jsxs("span",{className:"text-primary",children:["(",n.rollNumber,")"]})]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:e.formatMessage({id:"CURRICULUM.INFO.LABEL"})}),c.jsx("span",{className:"ml-2 text-sm font-semibold text-primary",children:n.curriculum})]})]}),c.jsxs("div",{className:"mb-8",children:[c.jsxs("div",{className:"flex items-center mb-2",children:[c.jsx(Ps,{className:"h-5 w-5 mr-2 text-primary"}),c.jsx("h2",{className:"text-lg font-semibold",children:e.formatMessage({id:"CURRICULUM.SUBJECTS.TITLE"})})]}),c.jsx("div",{className:"bg-card rounded-lg border shadow-sm",children:c.jsx("div",{className:"kt-scrollable-x-auto",children:c.jsxs(Na,{children:[c.jsx(wa,{children:c.jsxs(en,{className:"bg-accent/60",children:[c.jsx(Fe,{className:"min-w-16 h-8",children:c.jsxs("div",{className:"flex items-center",children:[c.jsx(Ox,{className:"h-3.5 w-3.5 mr-1.5"}),e.formatMessage({id:"CURRICULUM.TABLE.NO"})]})}),c.jsx(Fe,{className:"min-w-28 h-8",children:e.formatMessage({id:"CURRICULUM.TABLE.SUBJECT_CODE"})}),c.jsx(Fe,{className:"min-w-72 h-8",children:e.formatMessage({id:"CURRICULUM.TABLE.SUBJECT_NAME"})}),c.jsx(Fe,{className:"min-w-20 h-8",children:c.jsxs("div",{className:"flex items-center",children:[c.jsx(ea,{className:"h-3.5 w-3.5 mr-1.5"}),e.formatMessage({id:"CURRICULUM.TABLE.TERM"})]})})]})}),c.jsx(Ca,{children:r.map(s=>c.jsxs(en,{className:"hover:bg-accent/50",children:[c.jsx(_s,{className:"text-sm text-foreground font-normal",children:s.id}),c.jsx(_s,{className:"text-sm text-primary font-semibold",children:s.code}),c.jsx(_s,{className:"text-sm text-foreground font-normal",children:s.name}),c.jsx(_s,{children:c.jsx(kt,{className:"bg-primary/10 text-primary border-primary/30",children:s.termNo})})]},s.id))})]})})})]}),c.jsxs("div",{className:"mb-8",children:[c.jsxs("div",{className:"flex items-center mb-2",children:[c.jsx(l8,{className:"h-5 w-5 mr-2 text-primary"}),c.jsx("h2",{className:"text-lg font-semibold",children:e.formatMessage({id:"CURRICULUM.PREREQUISITES.TITLE"})})]}),c.jsx("div",{className:"bg-card rounded-lg border shadow-sm",children:c.jsx("div",{className:"kt-scrollable-x-auto",children:c.jsxs(Na,{children:[c.jsx(wa,{children:c.jsxs(en,{className:"bg-accent/60",children:[c.jsx(Fe,{className:"min-w-16 h-8",children:c.jsxs("div",{className:"flex items-center",children:[c.jsx(Ox,{className:"h-3.5 w-3.5 mr-1.5"}),e.formatMessage({id:"CURRICULUM.TABLE.NO"})]})}),c.jsx(Fe,{className:"min-w-28 h-8",children:e.formatMessage({id:"CURRICULUM.TABLE.SUBJECT_CODE"})}),c.jsx(Fe,{className:"min-w-28 h-8",children:e.formatMessage({id:"CURRICULUM.TABLE.PREREQUISITE"})}),c.jsx(Fe,{className:"min-w-28 h-8",children:e.formatMessage({id:"CURRICULUM.TABLE.ALTERNATIVE"})}),c.jsx(Fe,{className:"min-w-40 h-8",children:e.formatMessage({id:"CURRICULUM.TABLE.CONDITION"})})]})}),c.jsx(Ca,{children:a.map(s=>c.jsxs(en,{className:"hover:bg-accent/50",children:[c.jsx(_s,{className:"text-sm text-foreground font-normal",children:s.id}),c.jsx(_s,{className:"text-sm text-primary font-semibold",children:s.subjectCode}),c.jsx(_s,{children:s.prerequisiteCode&&c.jsx(kt,{variant:"warning",children:s.prerequisiteCode})}),c.jsx(_s,{children:s.alternativeCode&&c.jsx(kt,{variant:"destructive",children:s.alternativeCode})}),c.jsx(_s,{className:"text-sm text-destructive font-medium",children:s.condition})]},s.id))})]})})})]})]})})},Wk=S.createContext(void 0);function Nr(){const e=S.useContext(Wk);if(!e)throw new Error("useDataGrid must be used within a DataGridProvider");return e}function eue({children:e,table:t,...n}){return c.jsx(Wk.Provider,{value:{props:n,table:t,recordCount:n.recordCount,isLoading:n.isLoading||!1},children:e})}function tue({children:e,table:t,...n}){const r={loadingMode:"skeleton",tableLayout:{dense:!1,cellBorder:!1,rowBorder:!0,rowRounded:!1,stripped:!1,headerSticky:!1,headerBackground:!0,headerBorder:!0,width:"fixed",columnsVisibility:!1,columnsResizable:!1,columnsPinnable:!1,columnsMovable:!1,columnsDraggable:!1,rowsDraggable:!1},tableClassNames:{base:"",header:"",headerRow:"",headerSticky:"sticky top-0 z-10 bg-background/90 backdrop-blur-xs",body:"",bodyRow:"",footer:"",edgeCell:""}},a={...r,...n,tableLayout:{...r.tableLayout,...n.tableLayout||{}},tableClassNames:{...r.tableClassNames,...n.tableClassNames||{}}};if(!t)throw new Error('DataGrid requires a "table" prop');return c.jsx(eue,{table:t,...a,children:e})}function od({column:e,title:t="",icon:n,className:r,filter:a,visibility:s=!1}){var T,N,C,A;const{isLoading:i,table:u,props:d,recordCount:f}=Nr(),m=R=>{const _=[...u.getState().columnOrder],O=_.indexOf(e.id);if(R==="left"&&O>0){const D=[..._],[P]=D.splice(O,1);D.splice(O-1,0,P),u.setColumnOrder(D)}if(R==="right"&&O<_.length-1){const D=[..._],[P]=D.splice(O,1);D.splice(O+1,0,P),u.setColumnOrder(D)}},p=R=>{const _=u.getState().columnOrder,O=_.indexOf(e.id);return R==="left"?O>0:O<_.length-1},v=()=>c.jsxs("div",{className:X("text-accent-foreground font-normal inline-flex h-full items-center gap-1.5 text-[0.8125rem] leading-[calc(1.125/0.8125)] [&_svg]:size-3.5 [&_svg]:opacity-60",r),children:[n&&n,t]}),y=()=>c.jsxs(ke,{variant:"ghost",className:X("text-secondary-foreground rounded-md font-normal -ms-2 px-2 h-7 hover:bg-secondary data-[state=open]:bg-secondary hover:text-foreground data-[state=open]:text-foreground",r),disabled:i||f===0,onClick:()=>{const R=e.getIsSorted();R==="asc"?e.toggleSorting(!0):R==="desc"?e.clearSorting():e.toggleSorting(!1)},children:[n&&n,t,e.getCanSort()&&(e.getIsSorted()==="desc"?c.jsx(aA,{className:"size-[0.7rem]! mt-px"}):e.getIsSorted()==="asc"?c.jsx(sA,{className:"size-[0.7rem]! mt-px"}):c.jsx(_8,{className:"size-[0.7rem]! mt-px"}))]}),x=()=>c.jsx(ke,{mode:"icon",size:"sm",variant:"ghost",className:"-me-1 size-7 rounded-md",onClick:()=>e.pin(!1),"aria-label":`Unpin ${t} column`,title:`Unpin ${t} column`,children:c.jsx(IV,{className:"size-3.5! opacity-50!","aria-hidden":"true"})}),b=()=>{var R,_,O,D,P;return c.jsxs("div",{className:"flex items-center h-full gap-1.5 justify-between",children:[c.jsxs(fj,{children:[c.jsx(hj,{asChild:!0,children:y()}),c.jsxs(gj,{className:"w-40",align:"start",children:[a&&c.jsx(OQ,{children:a}),a&&(e.getCanSort()||e.getCanPin()||s)&&c.jsx(ec,{}),e.getCanSort()&&c.jsxs(c.Fragment,{children:[c.jsxs(Wa,{onClick:()=>{e.getIsSorted()==="asc"?e.clearSorting():e.toggleSorting(!1)},disabled:!e.getCanSort(),children:[c.jsx(sA,{className:"size-3.5!"}),c.jsx("span",{className:"grow",children:"Asc"}),e.getIsSorted()==="asc"&&c.jsx(Mo,{className:"size-4 opacity-100! text-primary"})]}),c.jsxs(Wa,{onClick:()=>{e.getIsSorted()==="desc"?e.clearSorting():e.toggleSorting(!0)},disabled:!e.getCanSort(),children:[c.jsx(aA,{className:"size-3.5!"}),c.jsx("span",{className:"grow",children:"Desc"}),e.getIsSorted()==="desc"&&c.jsx(Mo,{className:"size-4 opacity-100! text-primary"})]})]}),(a||e.getCanSort())&&(e.getCanSort()||e.getCanPin()||s)&&c.jsx(ec,{}),((R=d.tableLayout)==null?void 0:R.columnsPinnable)&&e.getCanPin()&&c.jsxs(c.Fragment,{children:[c.jsxs(Wa,{onClick:()=>e.pin(e.getIsPinned()==="left"?!1:"left"),children:[c.jsx(YH,{className:"size-3.5!","aria-hidden":"true"}),c.jsx("span",{className:"grow",children:"Pin to left"}),e.getIsPinned()==="left"&&c.jsx(Mo,{className:"size-4 opacity-100! text-primary"})]}),c.jsxs(Wa,{onClick:()=>e.pin(e.getIsPinned()==="right"?!1:"right"),children:[c.jsx(XH,{className:"size-3.5!","aria-hidden":"true"}),c.jsx("span",{className:"grow",children:"Pin to right"}),e.getIsPinned()==="right"&&c.jsx(Mo,{className:"size-4 opacity-100! text-primary"})]})]}),((_=d.tableLayout)==null?void 0:_.columnsMovable)&&c.jsxs(c.Fragment,{children:[c.jsx(ec,{}),c.jsxs(Wa,{onClick:()=>m("left"),disabled:!p("left")||e.getIsPinned()!==!1,children:[c.jsx(Up,{className:"size-3.5!","aria-hidden":"true"}),c.jsx("span",{children:"Move to Left"})]}),c.jsxs(Wa,{onClick:()=>m("right"),disabled:!p("right")||e.getIsPinned()!==!1,children:[c.jsx(UE,{className:"size-3.5!","aria-hidden":"true"}),c.jsx("span",{children:"Move to Right"})]})]}),((O=d.tableLayout)==null?void 0:O.columnsVisibility)&&s&&(e.getCanSort()||e.getCanPin()||a)&&c.jsx(ec,{}),((D=d.tableLayout)==null?void 0:D.columnsVisibility)&&s&&c.jsxs(vj,{children:[c.jsxs(mj,{children:[c.jsx(L2,{className:"size-3.5!"}),c.jsx("span",{children:"Columns"})]}),c.jsx(_Q,{children:c.jsx(pj,{children:u.getAllColumns().filter(L=>typeof L.accessorFn<"u"&&L.getCanHide()).map(L=>{var U;return c.jsx(RQ,{checked:L.getIsVisible(),onSelect:B=>B.preventDefault(),onCheckedChange:B=>L.toggleVisibility(!!B),className:"capitalize",children:((U=L.columnDef.meta)==null?void 0:U.headerTitle)||L.id},L.id)})})})]})]})]}),((P=d.tableLayout)==null?void 0:P.columnsPinnable)&&e.getCanPin()&&e.getIsPinned()&&x()]})};return(T=d.tableLayout)!=null&&T.columnsMovable||(N=d.tableLayout)!=null&&N.columnsVisibility&&s||(C=d.tableLayout)!=null&&C.columnsPinnable&&e.getCanPin()||a?b():e.getCanSort()||(A=d.tableLayout)!=null&&A.columnsResizable&&e.getCanResize()?c.jsx("div",{className:"flex items-center h-full",children:y()}):v()}var nue=[" ","Enter","ArrowUp","ArrowDown"],rue=[" ","Enter"],Xi="Select",[Og,Dg,aue]=Vc(Xi),[Zc,Spe]=Gn(Xi,[aue,Zo]),Ig=Zo(),[sue,ti]=Zc(Xi),[oue,iue]=Zc(Xi),Kk=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:s,value:i,defaultValue:u,onValueChange:d,dir:f,name:m,autoComplete:p,disabled:v,required:y,form:x}=e,b=Ig(t),[T,N]=S.useState(null),[C,A]=S.useState(null),[R,_]=S.useState(!1),O=el(f),[D,P]=hr({prop:r,defaultProp:a??!1,onChange:s,caller:Xi}),[L,U]=hr({prop:i,defaultProp:u,onChange:d,caller:Xi}),B=S.useRef(null),H=T?x||!!T.closest("form"):!0,[Z,ee]=S.useState(new Set),Q=Array.from(Z).map(j=>j.props.value).join(";");return c.jsx(lf,{...b,children:c.jsxs(sue,{required:y,scope:t,trigger:T,onTriggerChange:N,valueNode:C,onValueNodeChange:A,valueNodeHasChildren:R,onValueNodeHasChildrenChange:_,contentId:_n(),value:L,onValueChange:U,open:D,onOpenChange:P,dir:O,triggerPointerDownPosRef:B,disabled:v,children:[c.jsx(Og.Provider,{scope:t,children:c.jsx(oue,{scope:e.__scopeSelect,onNativeOptionAdd:S.useCallback(j=>{ee(Y=>new Set(Y).add(j))},[]),onNativeOptionRemove:S.useCallback(j=>{ee(Y=>{const V=new Set(Y);return V.delete(j),V})},[]),children:n})}),H?c.jsxs(v3,{"aria-hidden":!0,required:y,tabIndex:-1,name:m,autoComplete:p,value:L,onChange:j=>U(j.target.value),disabled:v,form:x,children:[L===void 0?c.jsx("option",{value:""}):null,Array.from(Z)]},Q):null]})})};Kk.displayName=Xi;var Xk="SelectTrigger",Qk=S.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,s=Ig(n),i=ti(Xk,n),u=i.disabled||r,d=Ue(t,i.onTriggerChange),f=Dg(n),m=S.useRef("touch"),[p,v,y]=x3(b=>{const T=f().filter(A=>!A.disabled),N=T.find(A=>A.value===i.value),C=b3(T,b,N);C!==void 0&&i.onValueChange(C.value)}),x=b=>{u||(i.onOpenChange(!0),y()),b&&(i.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return c.jsx(cf,{asChild:!0,...s,children:c.jsx(ye.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":y3(i.value)?"":void 0,...a,ref:d,onClick:me(a.onClick,b=>{b.currentTarget.focus(),m.current!=="mouse"&&x(b)}),onPointerDown:me(a.onPointerDown,b=>{m.current=b.pointerType;const T=b.target;T.hasPointerCapture(b.pointerId)&&T.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(x(b),b.preventDefault())}),onKeyDown:me(a.onKeyDown,b=>{const T=p.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&v(b.key),!(T&&b.key===" ")&&nue.includes(b.key)&&(x(),b.preventDefault())})})})});Qk.displayName=Xk;var Zk="SelectValue",Jk=S.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:s,placeholder:i="",...u}=e,d=ti(Zk,n),{onValueNodeHasChildrenChange:f}=d,m=s!==void 0,p=Ue(t,d.onValueNodeChange);return zt(()=>{f(m)},[f,m]),c.jsx(ye.span,{...u,ref:p,style:{pointerEvents:"none"},children:y3(d.value)?c.jsx(c.Fragment,{children:i}):s})});Jk.displayName=Zk;var lue="SelectIcon",e3=S.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return c.jsx(ye.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});e3.displayName=lue;var cue="SelectPortal",t3=e=>c.jsx(Gp,{asChild:!0,...e});t3.displayName=cue;var Qi="SelectContent",n3=S.forwardRef((e,t)=>{const n=ti(Qi,e.__scopeSelect),[r,a]=S.useState();if(zt(()=>{a(new DocumentFragment)},[]),!n.open){const s=r;return s?$d.createPortal(c.jsx(r3,{scope:e.__scopeSelect,children:c.jsx(Og.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),s):null}return c.jsx(a3,{...e,ref:t})});n3.displayName=Qi;var fa=10,[r3,ni]=Zc(Qi),uue="SelectContentImpl",due=ko("SelectContent.RemoveScroll"),a3=S.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:s,onPointerDownOutside:i,side:u,sideOffset:d,align:f,alignOffset:m,arrowPadding:p,collisionBoundary:v,collisionPadding:y,sticky:x,hideWhenDetached:b,avoidCollisions:T,...N}=e,C=ti(Qi,n),[A,R]=S.useState(null),[_,O]=S.useState(null),D=Ue(t,he=>R(he)),[P,L]=S.useState(null),[U,B]=S.useState(null),H=Dg(n),[Z,ee]=S.useState(!1),Q=S.useRef(!1);S.useEffect(()=>{if(A)return qp(A)},[A]),zp();const j=S.useCallback(he=>{const[ge,...Ne]=H().map(He=>He.ref.current),[Ae]=Ne.slice(-1),Me=document.activeElement;for(const He of he)if(He===Me||(He==null||He.scrollIntoView({block:"nearest"}),He===ge&&_&&(_.scrollTop=0),He===Ae&&_&&(_.scrollTop=_.scrollHeight),He==null||He.focus(),document.activeElement!==Me))return},[H,_]),Y=S.useCallback(()=>j([P,A]),[j,P,A]);S.useEffect(()=>{Z&&Y()},[Z,Y]);const{onOpenChange:V,triggerPointerDownPosRef:te}=C;S.useEffect(()=>{if(A){let he={x:0,y:0};const ge=Ae=>{var Me,He;he={x:Math.abs(Math.round(Ae.pageX)-(((Me=te.current)==null?void 0:Me.x)??0)),y:Math.abs(Math.round(Ae.pageY)-(((He=te.current)==null?void 0:He.y)??0))}},Ne=Ae=>{he.x<=10&&he.y<=10?Ae.preventDefault():A.contains(Ae.target)||V(!1),document.removeEventListener("pointermove",ge),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",ge),document.addEventListener("pointerup",Ne,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ge),document.removeEventListener("pointerup",Ne,{capture:!0})}}},[A,V,te]),S.useEffect(()=>{const he=()=>V(!1);return window.addEventListener("blur",he),window.addEventListener("resize",he),()=>{window.removeEventListener("blur",he),window.removeEventListener("resize",he)}},[V]);const[k,$]=x3(he=>{const ge=H().filter(Me=>!Me.disabled),Ne=ge.find(Me=>Me.ref.current===document.activeElement),Ae=b3(ge,he,Ne);Ae&&setTimeout(()=>Ae.ref.current.focus())}),se=S.useCallback((he,ge,Ne)=>{const Ae=!Q.current&&!Ne;(C.value!==void 0&&C.value===ge||Ae)&&(L(he),Ae&&(Q.current=!0))},[C.value]),re=S.useCallback(()=>A==null?void 0:A.focus(),[A]),ue=S.useCallback((he,ge,Ne)=>{const Ae=!Q.current&&!Ne;(C.value!==void 0&&C.value===ge||Ae)&&B(he)},[C.value]),xe=r==="popper"?dE:s3,fe=xe===dE?{side:u,sideOffset:d,align:f,alignOffset:m,arrowPadding:p,collisionBoundary:v,collisionPadding:y,sticky:x,hideWhenDetached:b,avoidCollisions:T}:{};return c.jsx(r3,{scope:n,content:A,viewport:_,onViewportChange:O,itemRefCallback:se,selectedItem:P,onItemLeave:re,itemTextRefCallback:ue,focusSelectedItem:Y,selectedItemText:U,position:r,isPositioned:Z,searchRef:k,children:c.jsx(tf,{as:due,allowPinchZoom:!0,children:c.jsx(ef,{asChild:!0,trapped:C.open,onMountAutoFocus:he=>{he.preventDefault()},onUnmountAutoFocus:me(a,he=>{var ge;(ge=C.trigger)==null||ge.focus({preventScroll:!0}),he.preventDefault()}),children:c.jsx(Ji,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:he=>he.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:c.jsx(xe,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:he=>he.preventDefault(),...N,...fe,onPlaced:()=>ee(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:me(N.onKeyDown,he=>{const ge=he.ctrlKey||he.altKey||he.metaKey;if(he.key==="Tab"&&he.preventDefault(),!ge&&he.key.length===1&&$(he.key),["ArrowUp","ArrowDown","Home","End"].includes(he.key)){let Ae=H().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);if(["ArrowUp","End"].includes(he.key)&&(Ae=Ae.slice().reverse()),["ArrowUp","ArrowDown"].includes(he.key)){const Me=he.target,He=Ae.indexOf(Me);Ae=Ae.slice(He+1)}setTimeout(()=>j(Ae)),he.preventDefault()}})})})})})})});a3.displayName=uue;var fue="SelectItemAlignedPosition",s3=S.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,s=ti(Qi,n),i=ni(Qi,n),[u,d]=S.useState(null),[f,m]=S.useState(null),p=Ue(t,D=>m(D)),v=Dg(n),y=S.useRef(!1),x=S.useRef(!0),{viewport:b,selectedItem:T,selectedItemText:N,focusSelectedItem:C}=i,A=S.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&f&&b&&T&&N){const D=s.trigger.getBoundingClientRect(),P=f.getBoundingClientRect(),L=s.valueNode.getBoundingClientRect(),U=N.getBoundingClientRect();if(s.dir!=="rtl"){const Me=U.left-P.left,He=L.left-Me,Ft=D.left-He,dt=D.width+Ft,On=Math.max(dt,P.width),tr=window.innerWidth-fa,yt=eE(He,[fa,Math.max(fa,tr-On)]);u.style.minWidth=dt+"px",u.style.left=yt+"px"}else{const Me=P.right-U.right,He=window.innerWidth-L.right-Me,Ft=window.innerWidth-D.right-He,dt=D.width+Ft,On=Math.max(dt,P.width),tr=window.innerWidth-fa,yt=eE(He,[fa,Math.max(fa,tr-On)]);u.style.minWidth=dt+"px",u.style.right=yt+"px"}const B=v(),H=window.innerHeight-fa*2,Z=b.scrollHeight,ee=window.getComputedStyle(f),Q=parseInt(ee.borderTopWidth,10),j=parseInt(ee.paddingTop,10),Y=parseInt(ee.borderBottomWidth,10),V=parseInt(ee.paddingBottom,10),te=Q+j+Z+V+Y,k=Math.min(T.offsetHeight*5,te),$=window.getComputedStyle(b),se=parseInt($.paddingTop,10),re=parseInt($.paddingBottom,10),ue=D.top+D.height/2-fa,xe=H-ue,fe=T.offsetHeight/2,he=T.offsetTop+fe,ge=Q+j+he,Ne=te-ge;if(ge<=ue){const Me=B.length>0&&T===B[B.length-1].ref.current;u.style.bottom="0px";const He=f.clientHeight-b.offsetTop-b.offsetHeight,Ft=Math.max(xe,fe+(Me?re:0)+He+Y),dt=ge+Ft;u.style.height=dt+"px"}else{const Me=B.length>0&&T===B[0].ref.current;u.style.top="0px";const Ft=Math.max(ue,Q+b.offsetTop+(Me?se:0)+fe)+Ne;u.style.height=Ft+"px",b.scrollTop=ge-ue+b.offsetTop}u.style.margin=`${fa}px 0`,u.style.minHeight=k+"px",u.style.maxHeight=H+"px",r==null||r(),requestAnimationFrame(()=>y.current=!0)}},[v,s.trigger,s.valueNode,u,f,b,T,N,s.dir,r]);zt(()=>A(),[A]);const[R,_]=S.useState();zt(()=>{f&&_(window.getComputedStyle(f).zIndex)},[f]);const O=S.useCallback(D=>{D&&x.current===!0&&(A(),C==null||C(),x.current=!1)},[A,C]);return c.jsx(mue,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:y,onScrollButtonChange:O,children:c.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:c.jsx(ye.div,{...a,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});s3.displayName=fue;var hue="SelectPopperPosition",dE=S.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=fa,...s}=e,i=Ig(n);return c.jsx(og,{...i,...s,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});dE.displayName=hue;var[mue,US]=Zc(Qi,{}),fE="SelectViewport",o3=S.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,s=ni(fE,n),i=US(fE,n),u=Ue(t,s.onViewportChange),d=S.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),c.jsx(Og.Slot,{scope:n,children:c.jsx(ye.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:me(a.onScroll,f=>{const m=f.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:v}=i;if(v!=null&&v.current&&p){const y=Math.abs(d.current-m.scrollTop);if(y>0){const x=window.innerHeight-fa*2,b=parseFloat(p.style.minHeight),T=parseFloat(p.style.height),N=Math.max(b,T);if(N<x){const C=N+y,A=Math.min(x,C),R=C-A;p.style.height=A+"px",p.style.bottom==="0px"&&(m.scrollTop=R>0?R:0,p.style.justifyContent="flex-end")}}}d.current=m.scrollTop})})})]})});o3.displayName=fE;var i3="SelectGroup",[pue,gue]=Zc(i3),vue=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=_n();return c.jsx(pue,{scope:n,id:a,children:c.jsx(ye.div,{role:"group","aria-labelledby":a,...r,ref:t})})});vue.displayName=i3;var l3="SelectLabel",yue=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=gue(l3,n);return c.jsx(ye.div,{id:a.id,...r,ref:t})});yue.displayName=l3;var Rp="SelectItem",[xue,c3]=Zc(Rp),u3=S.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:s,...i}=e,u=ti(Rp,n),d=ni(Rp,n),f=u.value===r,[m,p]=S.useState(s??""),[v,y]=S.useState(!1),x=Ue(t,C=>{var A;return(A=d.itemRefCallback)==null?void 0:A.call(d,C,r,a)}),b=_n(),T=S.useRef("touch"),N=()=>{a||(u.onValueChange(r),u.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(xue,{scope:n,value:r,disabled:a,textId:b,isSelected:f,onItemTextChange:S.useCallback(C=>{p(A=>A||((C==null?void 0:C.textContent)??"").trim())},[]),children:c.jsx(Og.ItemSlot,{scope:n,value:r,disabled:a,textValue:m,children:c.jsx(ye.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:x,onFocus:me(i.onFocus,()=>y(!0)),onBlur:me(i.onBlur,()=>y(!1)),onClick:me(i.onClick,()=>{T.current!=="mouse"&&N()}),onPointerUp:me(i.onPointerUp,()=>{T.current==="mouse"&&N()}),onPointerDown:me(i.onPointerDown,C=>{T.current=C.pointerType}),onPointerMove:me(i.onPointerMove,C=>{var A;T.current=C.pointerType,a?(A=d.onItemLeave)==null||A.call(d):T.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:me(i.onPointerLeave,C=>{var A;C.currentTarget===document.activeElement&&((A=d.onItemLeave)==null||A.call(d))}),onKeyDown:me(i.onKeyDown,C=>{var R;((R=d.searchRef)==null?void 0:R.current)!==""&&C.key===" "||(rue.includes(C.key)&&N(),C.key===" "&&C.preventDefault())})})})})});u3.displayName=Rp;var dd="SelectItemText",d3=S.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...s}=e,i=ti(dd,n),u=ni(dd,n),d=c3(dd,n),f=iue(dd,n),[m,p]=S.useState(null),v=Ue(t,N=>p(N),d.onItemTextChange,N=>{var C;return(C=u.itemTextRefCallback)==null?void 0:C.call(u,N,d.value,d.disabled)}),y=m==null?void 0:m.textContent,x=S.useMemo(()=>c.jsx("option",{value:d.value,disabled:d.disabled,children:y},d.value),[d.disabled,d.value,y]),{onNativeOptionAdd:b,onNativeOptionRemove:T}=f;return zt(()=>(b(x),()=>T(x)),[b,T,x]),c.jsxs(c.Fragment,{children:[c.jsx(ye.span,{id:d.textId,...s,ref:v}),d.isSelected&&i.valueNode&&!i.valueNodeHasChildren?$d.createPortal(s.children,i.valueNode):null]})});d3.displayName=dd;var f3="SelectItemIndicator",h3=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c3(f3,n).isSelected?c.jsx(ye.span,{"aria-hidden":!0,...r,ref:t}):null});h3.displayName=f3;var hE="SelectScrollUpButton",m3=S.forwardRef((e,t)=>{const n=ni(hE,e.__scopeSelect),r=US(hE,e.__scopeSelect),[a,s]=S.useState(!1),i=Ue(t,r.onScrollButtonChange);return zt(()=>{if(n.viewport&&n.isPositioned){let u=function(){const f=d.scrollTop>0;s(f)};const d=n.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),a?c.jsx(g3,{...e,ref:i,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop-d.offsetHeight)}}):null});m3.displayName=hE;var mE="SelectScrollDownButton",p3=S.forwardRef((e,t)=>{const n=ni(mE,e.__scopeSelect),r=US(mE,e.__scopeSelect),[a,s]=S.useState(!1),i=Ue(t,r.onScrollButtonChange);return zt(()=>{if(n.viewport&&n.isPositioned){let u=function(){const f=d.scrollHeight-d.clientHeight,m=Math.ceil(d.scrollTop)<f;s(m)};const d=n.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),a?c.jsx(g3,{...e,ref:i,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop+d.offsetHeight)}}):null});p3.displayName=mE;var g3=S.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,s=ni("SelectScrollButton",n),i=S.useRef(null),u=Dg(n),d=S.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return S.useEffect(()=>()=>d(),[d]),zt(()=>{var m;const f=u().find(p=>p.ref.current===document.activeElement);(m=f==null?void 0:f.ref.current)==null||m.scrollIntoView({block:"nearest"})},[u]),c.jsx(ye.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:me(a.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:me(a.onPointerMove,()=>{var f;(f=s.onItemLeave)==null||f.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:me(a.onPointerLeave,()=>{d()})})}),bue="SelectSeparator",Eue=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.jsx(ye.div,{"aria-hidden":!0,...r,ref:t})});Eue.displayName=bue;var pE="SelectArrow",Sue=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Ig(n),s=ti(pE,n),i=ni(pE,n);return s.open&&i.position==="popper"?c.jsx(ig,{...a,...r,ref:t}):null});Sue.displayName=pE;var Tue="SelectBubbleInput",v3=S.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const a=S.useRef(null),s=Ue(r,a),i=r1(t);return S.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(d,"value").set;if(i!==t&&m){const p=new Event("change",{bubbles:!0});m.call(u,t),u.dispatchEvent(p)}},[i,t]),c.jsx(ye.select,{...n,style:{...xD,...n.style},ref:s,defaultValue:t})});v3.displayName=Tue;function y3(e){return e===""||e===void 0}function x3(e){const t=It(e),n=S.useRef(""),r=S.useRef(0),a=S.useCallback(i=>{const u=n.current+i;t(u),function d(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>d(""),1e3))}(u)},[t]),s=S.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return S.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,s]}function b3(e,t,n){const a=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Nue(e,Math.max(s,0));a.length===1&&(i=i.filter(f=>f!==n));const d=i.find(f=>f.textValue.toLowerCase().startsWith(a.toLowerCase()));return d!==n?d:void 0}function Nue(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var wue=Kk,Cue=Qk,Aue=Jk,_ue=e3,Rue=t3,Mue=n3,Oue=o3,Due=u3,Iue=d3,Pue=h3,jue=m3,Lue=p3;const E3=S.createContext({indicatorPosition:"left",indicator:null,indicatorVisibility:!0}),$o=({indicatorPosition:e="left",indicatorVisibility:t=!0,indicator:n,...r})=>c.jsx(E3.Provider,{value:{indicatorPosition:e,indicatorVisibility:t,indicator:n},children:c.jsx(wue,{...r})});function qo({...e}){return c.jsx(Aue,{"data-slot":"select-value",...e})}const kue=Mt(`
    flex bg-background w-full items-center justify-between text-start outline-none border border-input shadow-xs shadow-black/5 transition-shadow 
    text-foreground data-placeholder:text-muted-foreground focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px] 
    focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 
    aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive dark:aria-invalid:ring-destructive/20
    [[data-invalid=true]_&]:border-destructive/60 [[data-invalid=true]_&]:ring-destructive/10  dark:[[data-invalid=true]_&]:border-destructive dark:[[data-invalid=true]_&]:ring-destructive/20
  `,{variants:{size:{sm:"h-7 px-2.5 text-xs gap-1 rounded-md",md:"h-8.5 px-3 text-[0.8125rem] leading-(--text-sm--line-height) gap-1 rounded-md",lg:"h-10 px-4 text-sm gap-1.5 rounded-md"}},defaultVariants:{size:"md"}});function Yo({className:e,children:t,size:n,...r}){return c.jsxs(Cue,{"data-slot":"select-trigger",className:X(kue({size:n}),e),...r,children:[t,c.jsx(_ue,{asChild:!0,children:c.jsx(Fc,{className:"h-4 w-4 opacity-60 -me-0.5"})})]})}function Uue({className:e,...t}){return c.jsx(jue,{"data-slot":"select-scroll-up-button",className:X("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(C8,{className:"h-4 w-4"})})}function Fue({className:e,...t}){return c.jsx(Lue,{"data-slot":"select-scroll-down-button",className:X("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(Fc,{className:"h-4 w-4"})})}function Wo({className:e,children:t,position:n="popper",...r}){return c.jsx(Rue,{children:c.jsxs(Mue,{"data-slot":"select-content",className:X("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-border bg-popover shadow-md shadow-black/5 text-secondary-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1.5 data-[side=left]:-translate-x-1.5 data-[side=right]:translate-x-1.5 data-[side=top]:-translate-y-1.5",e),position:n,...r,children:[c.jsx(Uue,{}),c.jsx(Oue,{className:X("p-1.5",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),c.jsx(Fue,{})]})})}function ur({className:e,children:t,...n}){const{indicatorPosition:r,indicatorVisibility:a,indicator:s}=S.useContext(E3);return c.jsxs(Due,{"data-slot":"select-item",className:X("relative flex w-full cursor-default select-none items-center justify-start text-start rounded-sm py-1.5 text-sm outline-hidden text-foreground hover:bg-accent focus:bg-accent data-disabled:pointer-events-none data-disabled:opacity-50",r==="left"?"ps-8 pe-2":"pe-8 ps-2",e),...n,children:[a&&(s&&S.isValidElement(s)?s:c.jsx("span",{className:X("absolute flex h-3.5 w-3.5 items-center justify-center",r==="left"?"start-2":"end-2"),children:c.jsx(Pue,{children:c.jsx(Mo,{className:"h-4 w-4 text-primary"})})})),c.jsx(Iue,{children:t})]})}function Bue(e){var R;const{table:t,recordCount:n,isLoading:r}=Nr(),s={...{sizes:[5,10,25,50,100],sizesLabel:"Show",sizesDescription:"per page",sizesSkeleton:c.jsx(Le,{className:"h-8 w-44"}),moreLimit:5,more:!1,info:"{from} - {to} of {count}",infoSkeleton:c.jsx(Le,{className:"h-8 w-60"})},...e},i="size-7 p-0 text-sm",u=i+" rtl:transform rtl:rotate-180",d=t.getState().pagination.pageIndex,f=t.getState().pagination.pageSize,m=d*f+1,p=Math.min((d+1)*f,n),v=t.getPageCount(),y=s!=null&&s.info?s.info.replace("{from}",m.toString()).replace("{to}",p.toString()).replace("{count}",n.toString()):`${m} - ${p} of ${n}`,x=(s==null?void 0:s.moreLimit)||5,b=Math.floor(d/x)*x,T=Math.min(b+x,v),N=()=>{const _=[];for(let O=b;O<T;O++)_.push(c.jsx(ke,{size:"sm",mode:"icon",variant:"ghost",className:X(i,"text-muted-foreground",{"bg-accent text-accent-foreground":d===O}),onClick:()=>{d!==O&&t.setPageIndex(O)},children:O+1},O));return _},C=()=>b>0?c.jsx(ke,{size:"sm",mode:"icon",className:i,variant:"ghost",onClick:()=>t.setPageIndex(b-1),children:"..."}):null,A=()=>T<v?c.jsx(ke,{className:i,variant:"ghost",size:"sm",mode:"icon",onClick:()=>t.setPageIndex(T),children:"..."}):null;return c.jsxs("div",{"data-slot":"data-grid-pagination",className:"flex flex-wrap flex-col sm:flex-row justify-between items-center gap-2.5 py-2.5 sm:py-0 grow",children:[c.jsx("div",{className:"flex flex-wrap items-center space-x-2.5 pb-2.5 sm:pb-0 order-2 sm:order-1",children:r?s==null?void 0:s.sizesSkeleton:c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"text-sm text-muted-foreground",children:"Rows per page"}),c.jsxs($o,{value:`${f}`,indicatorPosition:"right",onValueChange:_=>{const O=Number(_);t.setPageSize(O)},children:[c.jsx(Yo,{className:"w-fit h-8",size:"sm",children:c.jsx(qo,{placeholder:`${f}`})}),c.jsx(Wo,{side:"top",className:"min-w-[50px]",children:(R=s==null?void 0:s.sizes)==null?void 0:R.map(_=>c.jsx(ur,{value:`${_}`,children:_},_))})]})]})}),c.jsx("div",{className:"flex flex-col sm:flex-row justify-center sm:justify-end items-center gap-2.5 pt-2.5 sm:pt-0 order-1 sm:order-2",children:r?s==null?void 0:s.infoSkeleton:c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"text-sm text-muted-foreground text-nowrap order-2 sm:order-1",children:y}),v>1&&c.jsxs("div",{className:"flex items-center space-x-1 order-1 sm:order-2",children:[c.jsxs(ke,{size:"sm",mode:"icon",variant:"ghost",className:u,onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:[c.jsx("span",{className:"sr-only",children:"Go to previous page"}),c.jsx(M2,{className:"size-4"})]}),C(),N(),A(),c.jsxs(ke,{size:"sm",mode:"icon",variant:"ghost",className:u,onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:[c.jsx("span",{className:"sr-only",children:"Go to next page"}),c.jsx(Ec,{className:"size-4"})]})]})]})})]})}var Pg="Checkbox",[Hue,Tpe]=Gn(Pg),[Vue,Gue]=Hue(Pg),S3=S.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:s,required:i,disabled:u,value:d="on",onCheckedChange:f,form:m,...p}=e,[v,y]=S.useState(null),x=Ue(t,R=>y(R)),b=S.useRef(!1),T=v?m||!!v.closest("form"):!0,[N,C]=hr({prop:a,defaultProp:s??!1,onChange:f,caller:Pg}),A=S.useRef(N);return S.useEffect(()=>{const R=v==null?void 0:v.form;if(R){const _=()=>C(A.current);return R.addEventListener("reset",_),()=>R.removeEventListener("reset",_)}},[v,C]),c.jsxs(Vue,{scope:n,state:N,disabled:u,children:[c.jsx(ye.button,{type:"button",role:"checkbox","aria-checked":Lo(N)?"mixed":N,"aria-required":i,"data-state":C3(N),"data-disabled":u?"":void 0,disabled:u,value:d,...p,ref:x,onKeyDown:me(e.onKeyDown,R=>{R.key==="Enter"&&R.preventDefault()}),onClick:me(e.onClick,R=>{C(_=>Lo(_)?!0:!_),T&&(b.current=R.isPropagationStopped(),b.current||R.stopPropagation())})}),T&&c.jsx(w3,{control:v,bubbles:!b.current,name:r,value:d,checked:N,required:i,disabled:u,form:m,style:{transform:"translateX(-100%)"},defaultChecked:Lo(s)?!1:s})]})});S3.displayName=Pg;var T3="CheckboxIndicator",N3=S.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,s=Gue(T3,n);return c.jsx(on,{present:r||Lo(s.state)||s.state===!0,children:c.jsx(ye.span,{"data-state":C3(s.state),"data-disabled":s.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});N3.displayName=T3;var zue="CheckboxBubbleInput",w3=S.forwardRef(({__scopeCheckbox:e,control:t,checked:n,bubbles:r=!0,defaultChecked:a,...s},i)=>{const u=S.useRef(null),d=Ue(u,i),f=r1(n),m=oP(t);S.useEffect(()=>{const v=u.current;if(!v)return;const y=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(y,"checked").set;if(f!==n&&b){const T=new Event("click",{bubbles:r});v.indeterminate=Lo(n),b.call(v,Lo(n)?!1:n),v.dispatchEvent(T)}},[f,n,r]);const p=S.useRef(Lo(n)?!1:n);return c.jsx(ye.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??p.current,...s,tabIndex:-1,ref:d,style:{...s.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});w3.displayName=zue;function Lo(e){return e==="indeterminate"}function C3(e){return Lo(e)?"indeterminate":e?"checked":"unchecked"}var $ue=S3,que=N3;const Yue=Mt(`
    group peer bg-background shrink-0 rounded-md border border-input ring-offset-background focus-visible:outline-none 
    focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 
    aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive dark:aria-invalid:ring-destructive/20
    [[data-invalid=true]_&]:border-destructive/60 [[data-invalid=true]_&]:ring-destructive/10  dark:[[data-invalid=true]_&]:border-destructive dark:[[data-invalid=true]_&]:ring-destructive/20
    `,{variants:{variant:{primary:"data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:text-primary-foreground",mono:"data-[state=checked]:bg-mono data-[state=checked]:border-mono data-[state=checked]:text-mono-foreground data-[state=indeterminate]:bg-mono data-[state=indeterminate]:border-mono data-[state=indeterminate]:text-mono-foreground"},size:{sm:"size-4.5 [&_svg]:size-3",md:"size-5 [&_svg]:size-3.5",lg:"size-5.5 [&_svg]:size-4"}},defaultVariants:{variant:"primary",size:"md"}});function gE({className:e,variant:t,size:n,...r}){return c.jsx($ue,{"data-slot":"checkbox",className:X(Yue({variant:t,size:n}),e),...r,children:c.jsxs(que,{className:X("flex items-center justify-center text-current"),children:[c.jsx(Mo,{className:"group-data-[state=indeterminate]:hidden"}),c.jsx(AV,{className:"hidden group-data-[state=indeterminate]:block"})]})})}const Wue=Mt("",{variants:{size:{dense:"px-2.5 h-8",default:"px-4"}},defaultVariants:{size:"default"}}),A3=Mt("",{variants:{size:{dense:"px-2.5 py-2",default:"px-4 py-3"}},defaultVariants:{size:"default"}});function _3(e){const t=e.getIsPinned();return{left:t==="left"?`${e.getStart("left")}px`:void 0,right:t==="right"?`${e.getAfter("right")}px`:void 0,position:t?"sticky":"relative",width:e.getSize(),zIndex:t?1:0}}function Kue({children:e}){var n,r,a;const{props:t}=Nr();return c.jsx("table",{"data-slot":"data-grid-table",className:X("w-full align-middle caption-bottom text-left rtl:text-right text-foreground font-normal text-sm",!((n=t.tableLayout)!=null&&n.columnsDraggable)&&"border-separate border-spacing-0",((r=t.tableLayout)==null?void 0:r.width)==="fixed"?"table-fixed":"table-auto",(a=t.tableClassNames)==null?void 0:a.base),children:e})}function Xue({children:e}){var n,r,a;const{props:t}=Nr();return c.jsx("thead",{className:X((n=t.tableClassNames)==null?void 0:n.header,((r=t.tableLayout)==null?void 0:r.headerSticky)&&((a=t.tableClassNames)==null?void 0:a.headerSticky)),children:e})}function Que({children:e,headerGroup:t}){var r,a,s,i,u;const{props:n}=Nr();return c.jsx("tr",{className:X("bg-muted/40",((r=n.tableLayout)==null?void 0:r.headerBorder)&&"[&>th]:border-b",((a=n.tableLayout)==null?void 0:a.cellBorder)&&"[&_>:last-child]:border-e-0",((s=n.tableLayout)==null?void 0:s.stripped)&&"bg-transparent",((i=n.tableLayout)==null?void 0:i.headerBackground)===!1&&"bg-transparent",(u=n.tableClassNames)==null?void 0:u.headerRow),children:e},t.id)}function Zue({children:e,header:t,dndRef:n,dndStyle:r}){var m,p,v,y,x,b,T,N;const{props:a}=Nr(),{column:s}=t,i=s.getIsPinned(),u=i==="left"&&s.getIsLastColumn("left"),d=i==="right"&&s.getIsFirstColumn("right"),f=Wue({size:(m=a.tableLayout)!=null&&m.dense?"dense":"default"});return c.jsx("th",{ref:n,style:{...((p=a.tableLayout)==null?void 0:p.width)==="fixed"&&{width:`${t.getSize()}px`},...((v=a.tableLayout)==null?void 0:v.columnsPinnable)&&s.getCanPin()&&_3(s),...r||null},"data-pinned":i||void 0,"data-last-col":u?"left":d?"right":void 0,className:X("relative h-10 text-left rtl:text-right align-middle font-normal text-accent-foreground [&:has([role=checkbox])]:pe-0",f,((y=a.tableLayout)==null?void 0:y.cellBorder)&&"border-e",((x=a.tableLayout)==null?void 0:x.columnsResizable)&&s.getCanResize()&&"truncate",((b=a.tableLayout)==null?void 0:b.columnsPinnable)&&s.getCanPin()&&"[&:not([data-pinned]):has(+[data-pinned])_div.cursor-col-resize:last-child]:opacity-0 [&[data-last-col=left]_div.cursor-col-resize:last-child]:opacity-0 [&[data-pinned=left][data-last-col=left]]:border-e! [&[data-pinned=right]:last-child_div.cursor-col-resize:last-child]:opacity-0 [&[data-pinned=right][data-last-col=right]]:border-s! [&[data-pinned][data-last-col]]:border-border data-pinned:bg-muted/90 data-pinned:backdrop-blur-xs",(T=t.column.columnDef.meta)==null?void 0:T.headerClassName,s.getIndex()===0||s.getIndex()===t.headerGroup.headers.length-1?(N=a.tableClassNames)==null?void 0:N.edgeCell:""),children:e},t.id)}function Jue({header:e}){const{column:t}=e;return c.jsx("div",{onDoubleClick:()=>t.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:"absolute top-0 h-full w-4 cursor-col-resize user-select-none touch-none -end-2 z-10 flex justify-center before:absolute before:w-px before:inset-y-0 before:bg-border before:-translate-x-px"})}function ede(){return c.jsx("tbody",{"aria-hidden":"true",className:"h-2"})}function tde({children:e}){var n,r;const{props:t}=Nr();return c.jsx("tbody",{className:X("[&_tr:last-child]:border-0",((n=t.tableLayout)==null?void 0:n.rowRounded)&&"[&_td:first-child]:rounded-s-lg [&_td:last-child]:rounded-e-lg",(r=t.tableClassNames)==null?void 0:r.body),children:e})}function nde({children:e}){var r,a,s,i,u;const{table:t,props:n}=Nr();return c.jsx("tr",{className:X("hover:bg-muted/40 data-[state=selected]:bg-muted/50",n.onRowClick&&"cursor-pointer",!((r=n.tableLayout)!=null&&r.stripped)&&((a=n.tableLayout)==null?void 0:a.rowBorder)&&"border-b border-border [&:not(:last-child)>td]:border-b",((s=n.tableLayout)==null?void 0:s.cellBorder)&&"[&_>:last-child]:border-e-0",((i=n.tableLayout)==null?void 0:i.stripped)&&"odd:bg-muted/90 hover:bg-transparent odd:hover:bg-muted",t.options.enableRowSelection&&"[&_>:first-child]:relative",(u=n.tableClassNames)==null?void 0:u.bodyRow),children:e})}function rde({children:e,column:t}){var s,i,u,d,f,m;const{props:n,table:r}=Nr(),a=A3({size:(s=n.tableLayout)!=null&&s.dense?"dense":"default"});return c.jsx("td",{className:X("align-middle",a,((i=n.tableLayout)==null?void 0:i.cellBorder)&&"border-e",((u=n.tableLayout)==null?void 0:u.columnsResizable)&&t.getCanResize()&&"truncate",(d=t.columnDef.meta)==null?void 0:d.cellClassName,((f=n.tableLayout)==null?void 0:f.columnsPinnable)&&t.getCanPin()&&'[&[data-pinned=left][data-last-col=left]]:border-e! [&[data-pinned=right][data-last-col=right]]:border-s! [&[data-pinned][data-last-col]]:border-border data-pinned:bg-background/90 data-pinned:backdrop-blur-xs"',t.getIndex()===0||t.getIndex()===r.getVisibleFlatColumns().length-1?(m=n.tableClassNames)==null?void 0:m.edgeCell:""),children:e})}function ade({children:e,row:t,dndRef:n,dndStyle:r}){var i,u,d,f,m;const{props:a,table:s}=Nr();return c.jsx("tr",{ref:n,style:{...r||null},"data-state":s.options.enableRowSelection&&t.getIsSelected()?"selected":void 0,onClick:()=>a.onRowClick&&a.onRowClick(t.original),className:X("hover:bg-muted/40 data-[state=selected]:bg-muted/50",a.onRowClick&&"cursor-pointer",!((i=a.tableLayout)!=null&&i.stripped)&&((u=a.tableLayout)==null?void 0:u.rowBorder)&&"border-b border-border [&:not(:last-child)>td]:border-b",((d=a.tableLayout)==null?void 0:d.cellBorder)&&"[&_>:last-child]:border-e-0",((f=a.tableLayout)==null?void 0:f.stripped)&&"odd:bg-muted/90 hover:bg-transparent odd:hover:bg-muted",s.options.enableRowSelection&&"[&_>:first-child]:relative",(m=a.tableClassNames)==null?void 0:m.bodyRow),children:e})}function sde({row:e}){var r,a,s,i;const{props:t,table:n}=Nr();return c.jsx("tr",{className:X(((r=t.tableLayout)==null?void 0:r.rowBorder)&&"[&:not(:last-child)>td]:border-b"),children:c.jsx("td",{colSpan:e.getVisibleCells().length,children:(i=(s=(a=n.getAllColumns().find(u=>{var d;return(d=u.columnDef.meta)==null?void 0:d.expandedContent}))==null?void 0:a.columnDef.meta)==null?void 0:s.expandedContent)==null?void 0:i.call(s,e.original)})})}function ode({children:e,cell:t,dndRef:n,dndStyle:r}){var p,v,y,x,b,T,N,C;const{props:a}=Nr(),{column:s,row:i}=t,u=s.getIsPinned(),d=u==="left"&&s.getIsLastColumn("left"),f=u==="right"&&s.getIsFirstColumn("right"),m=A3({size:(p=a.tableLayout)!=null&&p.dense?"dense":"default"});return c.jsx("td",{ref:n,...(v=a.tableLayout)!=null&&v.columnsDraggable&&!u?{cell:t}:{},style:{...((y=a.tableLayout)==null?void 0:y.columnsPinnable)&&s.getCanPin()&&_3(s),...r||null},"data-pinned":u||void 0,"data-last-col":d?"left":f?"right":void 0,className:X("align-middle",m,((x=a.tableLayout)==null?void 0:x.cellBorder)&&"border-e",((b=a.tableLayout)==null?void 0:b.columnsResizable)&&s.getCanResize()&&"truncate",(T=t.column.columnDef.meta)==null?void 0:T.cellClassName,((N=a.tableLayout)==null?void 0:N.columnsPinnable)&&s.getCanPin()&&'[&[data-pinned=left][data-last-col=left]]:border-e! [&[data-pinned=right][data-last-col=right]]:border-s! [&[data-pinned][data-last-col]]:border-border data-pinned:bg-background/90 data-pinned:backdrop-blur-xs"',s.getIndex()===0||s.getIndex()===i.getVisibleCells().length-1?(C=a.tableClassNames)==null?void 0:C.edgeCell:""),children:e},t.id)}function ide(){const{table:e,props:t}=Nr(),n=e.getAllColumns().length;return c.jsx("tr",{children:c.jsx("td",{colSpan:n,className:"text-center text-muted-foreground py-6",children:t.emptyMessage||"No data available"})})}function lde(){var a,s;const{table:e,isLoading:t,props:n}=Nr(),r=e.getState().pagination;return c.jsxs(Kue,{children:[c.jsx(Xue,{children:e.getHeaderGroups().map((i,u)=>c.jsx(Que,{headerGroup:i,children:i.headers.map((d,f)=>{var p;const{column:m}=d;return c.jsxs(Zue,{header:d,children:[d.isPlaceholder?null:oM(d.column.columnDef.header,d.getContext()),((p=n.tableLayout)==null?void 0:p.columnsResizable)&&m.getCanResize()&&c.jsx(Jue,{header:d})]},f)})},u))}),(((a=n.tableLayout)==null?void 0:a.stripped)||!((s=n.tableLayout)!=null&&s.rowBorder))&&c.jsx(ede,{}),c.jsx(tde,{children:n.loadingMode==="skeleton"&&t&&(r!=null&&r.pageSize)?Array.from({length:r.pageSize}).map((i,u)=>c.jsx(nde,{children:e.getVisibleFlatColumns().map((d,f)=>{var m;return c.jsx(rde,{column:d,children:(m=d.columnDef.meta)==null?void 0:m.skeleton},f)})},u)):e.getRowModel().rows.length?e.getRowModel().rows.map((i,u)=>c.jsxs(S.Fragment,{children:[c.jsx(ade,{row:i,children:i.getVisibleCells().map((d,f)=>c.jsx(ode,{cell:d,children:oM(d.column.columnDef.cell,d.getContext())},f))},u),i.getIsExpanded()&&c.jsx(sde,{row:i})]},i.id)):c.jsx(ide,{})})]})}const cde=Mt(`
    flex w-full bg-background border border-input shadow-xs shadow-black/5 transition-[color,box-shadow] text-foreground placeholder:text-muted-foreground/80 
    focus-visible:ring-ring/30  focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px] 
    disabled:cursor-not-allowed disabled:opacity-50 [&[readonly]]:opacity-70 
    file:h-full [&[type=file]]:py-0 file:border-solid file:border-input file:bg-transparent 
    file:font-medium file:not-italic file:text-foreground file:p-0 file:border-0 file:border-e
    aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive dark:aria-invalid:ring-destructive/20
  `,{variants:{size:{lg:"h-10 px-4 text-sm rounded-md file:pe-4 file:me-4",md:"h-8.5 px-3 text-[0.8125rem] leading-(--text-sm--line-height) rounded-md file:pe-3 file:me-3",sm:"h-7 px-2.5 text-xs rounded-md file:pe-2.5 file:me-2.5"}},defaultVariants:{size:"md"}});function ac({className:e,type:t,size:n,...r}){return c.jsx("input",{"data-slot":"input",type:t,className:X(cde({size:n}),e),...r})}var[jg,Npe]=Gn("Tooltip",[Zo]),Lg=Zo(),R3="TooltipProvider",ude=700,vE="tooltip.open",[dde,FS]=jg(R3),M3=e=>{const{__scopeTooltip:t,delayDuration:n=ude,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:s}=e,i=S.useRef(!0),u=S.useRef(!1),d=S.useRef(0);return S.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),c.jsx(dde,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:S.useCallback(()=>{window.clearTimeout(d.current),i.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:u,onPointerInTransitChange:S.useCallback(f=>{u.current=f},[]),disableHoverableContent:a,children:s})};M3.displayName=R3;var Fd="Tooltip",[fde,kg]=jg(Fd),O3=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a,onOpenChange:s,disableHoverableContent:i,delayDuration:u}=e,d=FS(Fd,e.__scopeTooltip),f=Lg(t),[m,p]=S.useState(null),v=_n(),y=S.useRef(0),x=i??d.disableHoverableContent,b=u??d.delayDuration,T=S.useRef(!1),[N,C]=hr({prop:r,defaultProp:a??!1,onChange:D=>{D?(d.onOpen(),document.dispatchEvent(new CustomEvent(vE))):d.onClose(),s==null||s(D)},caller:Fd}),A=S.useMemo(()=>N?T.current?"delayed-open":"instant-open":"closed",[N]),R=S.useCallback(()=>{window.clearTimeout(y.current),y.current=0,T.current=!1,C(!0)},[C]),_=S.useCallback(()=>{window.clearTimeout(y.current),y.current=0,C(!1)},[C]),O=S.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{T.current=!0,C(!0),y.current=0},b)},[b,C]);return S.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),c.jsx(lf,{...f,children:c.jsx(fde,{scope:t,contentId:v,open:N,stateAttribute:A,trigger:m,onTriggerChange:p,onTriggerEnter:S.useCallback(()=>{d.isOpenDelayedRef.current?O():R()},[d.isOpenDelayedRef,O,R]),onTriggerLeave:S.useCallback(()=>{x?_():(window.clearTimeout(y.current),y.current=0)},[_,x]),onOpen:R,onClose:_,disableHoverableContent:x,children:n})})};O3.displayName=Fd;var yE="TooltipTrigger",D3=S.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=kg(yE,n),s=FS(yE,n),i=Lg(n),u=S.useRef(null),d=Ue(t,u,a.onTriggerChange),f=S.useRef(!1),m=S.useRef(!1),p=S.useCallback(()=>f.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(cf,{asChild:!0,...i,children:c.jsx(ye.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:d,onPointerMove:me(e.onPointerMove,v=>{v.pointerType!=="touch"&&!m.current&&!s.isPointerInTransitRef.current&&(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:me(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:me(e.onPointerDown,()=>{a.open&&a.onClose(),f.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:me(e.onFocus,()=>{f.current||a.onOpen()}),onBlur:me(e.onBlur,a.onClose),onClick:me(e.onClick,a.onClose)})})});D3.displayName=yE;var hde="TooltipPortal",[wpe,mde]=jg(hde,{forceMount:void 0}),Dc="TooltipContent",I3=S.forwardRef((e,t)=>{const n=mde(Dc,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...s}=e,i=kg(Dc,e.__scopeTooltip);return c.jsx(on,{present:r||i.open,children:i.disableHoverableContent?c.jsx(P3,{side:a,...s,ref:t}):c.jsx(pde,{side:a,...s,ref:t})})}),pde=S.forwardRef((e,t)=>{const n=kg(Dc,e.__scopeTooltip),r=FS(Dc,e.__scopeTooltip),a=S.useRef(null),s=Ue(t,a),[i,u]=S.useState(null),{trigger:d,onClose:f}=n,m=a.current,{onPointerInTransitChange:p}=r,v=S.useCallback(()=>{u(null),p(!1)},[p]),y=S.useCallback((x,b)=>{const T=x.currentTarget,N={x:x.clientX,y:x.clientY},C=bde(N,T.getBoundingClientRect()),A=Ede(N,C),R=Sde(b.getBoundingClientRect()),_=Nde([...A,...R]);u(_),p(!0)},[p]);return S.useEffect(()=>()=>v(),[v]),S.useEffect(()=>{if(d&&m){const x=T=>y(T,m),b=T=>y(T,d);return d.addEventListener("pointerleave",x),m.addEventListener("pointerleave",b),()=>{d.removeEventListener("pointerleave",x),m.removeEventListener("pointerleave",b)}}},[d,m,y,v]),S.useEffect(()=>{if(i){const x=b=>{const T=b.target,N={x:b.clientX,y:b.clientY},C=(d==null?void 0:d.contains(T))||(m==null?void 0:m.contains(T)),A=!Tde(N,i);C?v():A&&(v(),f())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[d,m,i,f,v]),c.jsx(P3,{...e,ref:s})}),[gde,vde]=jg(Fd,{isInside:!1}),yde=g2("TooltipContent"),P3=S.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:s,onPointerDownOutside:i,...u}=e,d=kg(Dc,n),f=Lg(n),{onClose:m}=d;return S.useEffect(()=>(document.addEventListener(vE,m),()=>document.removeEventListener(vE,m)),[m]),S.useEffect(()=>{if(d.trigger){const p=v=>{const y=v.target;y!=null&&y.contains(d.trigger)&&m()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[d.trigger,m]),c.jsx(Ji,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:m,children:c.jsxs(og,{"data-state":d.stateAttribute,...f,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(yde,{children:r}),c.jsx(gde,{scope:n,isInside:!0,children:c.jsx(ED,{id:d.contentId,role:"tooltip",children:a||r})})]})})});I3.displayName=Dc;var j3="TooltipArrow",xde=S.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=Lg(n);return vde(j3,n).isInside?null:c.jsx(ig,{...a,...r,ref:t})});xde.displayName=j3;function bde(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,a,s)){case s:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ede(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Sde(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function Tde(e,t){const{x:n,y:r}=e;let a=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const u=t[s],d=t[i],f=u.x,m=u.y,p=d.x,v=d.y;m>r!=v>r&&n<(p-f)*(r-m)/(v-m)+f&&(a=!a)}return a}function Nde(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),wde(t)}function wde(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(a.y-i.y)>=(s.y-i.y)*(a.x-i.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(a.y-i.y)>=(s.y-i.y)*(a.x-i.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Cde=M3,Ade=O3,_de=D3,Rde=I3;function Ic({delayDuration:e=0,...t}){return c.jsx(Cde,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function xE({...e}){return c.jsx(Ic,{children:c.jsx(Ade,{"data-slot":"tooltip",...e})})}function bE({...e}){return c.jsx(_de,{"data-slot":"tooltip-trigger",...e})}const Mde=Mt("z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{variant:{light:"border border-border bg-background text-foreground shadow-md shadow-black/5",dark:"dark:border dark:border-border bg-mono text-mono-foreground shadow-md shadow-black/5"}},defaultVariants:{variant:"dark"}});function EE({className:e,sideOffset:t=4,variant:n,...r}){return c.jsx(Rde,{"data-slot":"tooltip-content",sideOffset:t,className:X(Mde({variant:n}),e),...r})}const Ode=({fees:e,filterText:t,setFilterText:n,loading:r})=>{const a=Ge(),[s,i]=S.useState({pageIndex:0,pageSize:10}),[u,d]=S.useState([{id:"subjectCode",desc:!1}]),f=y=>{const x=parseFloat(y.replace(/[^0-9.]/g,""));return isNaN(x)?y:new Intl.NumberFormat("vi-VN",{style:"currency",currency:"VND"}).format(x)},m=S.useMemo(()=>e.filter(y=>!t||y.subjectCode.toLowerCase().includes(t.toLowerCase())||y.subjectName.toLowerCase().includes(t.toLowerCase())),[e,t]),p=S.useMemo(()=>[{id:"subjectCode",accessorFn:y=>y.subjectCode,header:({column:y})=>c.jsx(od,{title:a.formatMessage({id:"SUBJECT_FEES.TABLE.SUBJECT_CODE"}),column:y}),cell:({row:y})=>c.jsx("span",{className:"font-medium text-primary",children:y.original.subjectCode}),enableSorting:!0,size:120},{id:"subjectName",accessorFn:y=>y.subjectName,header:({column:y})=>c.jsx(od,{title:a.formatMessage({id:"SUBJECT_FEES.TABLE.SUBJECT_NAME"}),column:y}),cell:({row:y})=>c.jsx("span",{className:"text-secondary-foreground font-normal",children:y.original.subjectName}),enableSorting:!0},{id:"numberCredits",accessorFn:y=>y.numberCredits,header:({column:y})=>c.jsx(Ic,{children:c.jsxs(xE,{children:[c.jsx(bE,{asChild:!0,children:c.jsxs("div",{className:"flex items-center gap-2 justify-end",children:[c.jsx(od,{title:a.formatMessage({id:"SUBJECT_FEES.TABLE.CREDITS"}),column:y}),c.jsx(Zi,{className:"h-4 w-4"})]})}),c.jsx(EE,{children:c.jsx("p",{children:a.formatMessage({id:"SUBJECT_FEES.TABLE.CREDITS_TOOLTIP"})})})]})}),cell:({row:y})=>c.jsx("div",{className:"text-right font-normal",children:y.original.numberCredits}),enableSorting:!0,size:100},{id:"fee",accessorFn:y=>y.fee,header:({column:y})=>c.jsx(od,{title:a.formatMessage({id:"SUBJECT_FEES.TABLE.FEE"}),column:y}),cell:({row:y})=>c.jsx("div",{className:"text-right font-normal",children:f(y.original.fee)}),enableSorting:!0,size:150},{id:"feeInternational",accessorFn:y=>y.feeInternational,header:({column:y})=>c.jsx(od,{title:a.formatMessage({id:"SUBJECT_FEES.TABLE.INTERNATIONAL_FEE"}),column:y}),cell:({row:y})=>c.jsx("div",{className:"text-right font-normal",children:f(y.original.feeInternational)}),enableSorting:!0,size:180}],[a]),v=dk({columns:p,data:m,pageCount:Math.ceil(((m==null?void 0:m.length)||0)/s.pageSize),state:{pagination:s,sorting:u},onPaginationChange:i,onSortingChange:d,getCoreRowModel:uk(),getFilteredRowModel:Zse(),getPaginationRowModel:Jse(),getSortedRowModel:eoe()});return S.useEffect(()=>{i(y=>({...y,pageIndex:0}))},[t]),c.jsx(tue,{table:v,recordCount:(m==null?void 0:m.length)||0,tableLayout:{columnsPinnable:!0,columnsMovable:!0,columnsVisibility:!0,cellBorder:!0},children:c.jsxs(ct,{className:"relative",children:[r&&c.jsx("div",{className:"absolute inset-0 bg-background/70 flex items-center justify-center z-10 rounded-xl",children:c.jsx(Sr,{className:"h-6 w-6 text-primary animate-spin"})}),c.jsx(Yt,{className:"py-4",children:c.jsx(xj,{children:c.jsxs("div",{className:"relative",children:[c.jsx(Hp,{className:"size-4 text-muted-foreground absolute start-3 top-1/2 -translate-y-1/2"}),c.jsx(ac,{placeholder:a.formatMessage({id:"SUBJECT_FEES.SEARCH.PLACEHOLDER"}),value:t,onChange:y=>n(y.target.value),className:"ps-9 w-64"}),t.length>0&&c.jsx("button",{className:"absolute end-1.5 top-1/2 -translate-y-1/2 h-6 w-6 rounded-sm hover:bg-muted flex items-center justify-center",onClick:()=>n(""),children:c.jsx(Bc,{className:"h-4 w-4"})})]})})}),c.jsx(mf,{children:c.jsxs(Af,{children:[c.jsx(lde,{}),c.jsx(_f,{orientation:"horizontal"})]})}),c.jsx($c,{children:c.jsx(Bue,{})})]})})},Dde=()=>{const[e,t]=S.useState(""),{fees:n}=Mn({fees:a=>{var d,f,m,p,v;if(!a)return[];const s=a==null?void 0:a.querySelector("#ctl00_mainContent_gvSubjects");if(!s)return[];const i=s==null?void 0:s.querySelectorAll("tr"),u=[];for(let y=1;y<i.length;y++){const b=i[y].querySelectorAll("td");b.length>=5&&u.push({subjectCode:((d=b[0].textContent)==null?void 0:d.trim())||"",subjectName:((f=b[1].textContent)==null?void 0:f.trim())||"",numberCredits:((m=b[2].textContent)==null?void 0:m.trim())||"",fee:((p=b[3].textContent)==null?void 0:p.trim())||"",feeInternational:((v=b[4].textContent)==null?void 0:v.trim())||""})}return u}}),r=S.useMemo(()=>(n||[]).filter(a=>a.subjectCode&&a.subjectCode.toLowerCase().includes(e.toLowerCase())||a.subjectName&&a.subjectName.toLowerCase().includes(e.toLowerCase())),[n,e]);return{fees:n||[],filteredItems:r,filterText:e,setFilterText:t}},Ide=()=>{const{fees:e,filterText:t,setFilterText:n}=Dde(),{loading:r}=fn();return c.jsx(ht,{children:c.jsx(Ode,{fees:e,filterText:t,setFilterText:n,loading:r})})};function Pde(e){var i,u,d,f,m,p,v,y,x,b,T;const t=e==null?void 0:e.querySelectorAll("table")[2];if(!t)return[];const n=Array.from({length:t.rows.length-2},()=>Array.from({length:t.rows[0].cells.length-1},()=>{})),r=Array.from(t.rows[1].cells).map(N=>{var C;return((C=N.textContent)==null?void 0:C.trim())||""}),a=e==null?void 0:e.querySelector("#ctl00_mainContent_drpYear"),s=(i=Array.from(a.options).find(N=>N.selected))==null?void 0:i.value;for(let N=2;N<t.rows.length;N++)for(let C=1;C<t.rows[N].cells.length;C++){const A=t.rows[N].cells[C];if(!(!A||((u=A.textContent)==null?void 0:u.trim())==="-"))try{const R=A.querySelector('a[href*="ActivityDetail.aspx?id"]'),_=(d=R==null?void 0:R.getAttribute("href"))==null?void 0:d.split("id=")[1],O=(f=R==null?void 0:R.textContent)==null?void 0:f.trim().replace("-",""),D=A.textContent,P=((p=((m=A==null?void 0:A.textContent)==null?void 0:m.match(/\(/g))||[])==null?void 0:p.length)>2?(v=D==null?void 0:D.split(" at ")[1])==null?void 0:v.split("(")[0]:(y=D==null?void 0:D.split(" at ")[1])==null?void 0:y.split(" ")[0],L=A.textContent||"";let U=0;/attended|đã điểm danh|có mặt|đã học/i.test(L)?U=1:/absent|vắng mặt/i.test(L)&&(U=2);const B=(T=(b=(x=A.querySelector("span.label.label-success"))==null?void 0:x.textContent)==null?void 0:b.trim())==null?void 0:T.replace(/[()]/g,""),H=A.querySelector("a.label.label-warning"),Z=H==null?void 0:H.getAttribute("href"),ee=A.querySelector("a.label.label-default"),Q=ee==null?void 0:ee.getAttribute("href"),j=A.querySelector(".online-text"),Y=r[C-1],[V,te]=Y.split("/"),[k,$,se,re]=(B==null?void 0:B.replace(/[()]/g,"").split(/[-:]/))||[],ue=new Date(parseInt(s||"0"),parseInt(te)-1,parseInt(V),parseInt(k),parseInt($)),xe=new Date(parseInt(s||"0"),parseInt(te)-1,parseInt(V),parseInt(se),parseInt(re));n[N-2][C-1]={activityId:parseInt(_||"0"),courseName:O||"",room:P||"",time:B||"",dateTime:{start:ue.toISOString(),end:xe.toISOString()},materialURL:Z||"",meetingURL:Q||"",status:U,online:!!j}}catch(R){console.error("Error processing cell:",R)}}return n}const jde=()=>{const[e,t]=S.useState(!1),{setData:n}=fn(),{shifts:r,days:a,yearOptions:s,weekOptions:i,viewStateValue:u,viewStateGeneratorValue:d,eventValidationValue:f,currentWeekValue:m}=Mn({shifts:y=>y?Pde(y):[],days:y=>{if(!y)return[];const x=y==null?void 0:y.querySelectorAll("table")[2];return Array.from(x.rows[1].cells).slice(0).map(b=>{var T;return((T=b.textContent)==null?void 0:T.trim())||""})},yearOptions:y=>{if(!y)return[];const x=y==null?void 0:y.querySelector("#ctl00_mainContent_drpYear");return x?Array.from(x.options).map(b=>{var T;return{value:b.value,label:(T=b.text)==null?void 0:T.trim(),selected:b.selected}}):[]},weekOptions:y=>{if(!y)return[];const x=y==null?void 0:y.querySelector("#ctl00_mainContent_drpSelectWeek");return x?Array.from(x.options).map(b=>{var T,N;return{value:b.value,label:(N=(T=b.text)==null?void 0:T.trim())==null?void 0:N.replace("To","-"),selected:b.selected}}):[]},currentWeekValue:y=>{var T;if(!y)return"0";const x=y==null?void 0:y.querySelector("#ctl00_mainContent_drpSelectWeek");if(!x)return"0";const b=(T=Array.from(x.options).find(N=>N.selected))==null?void 0:T.value;return b||"1"},viewStateValue:y=>{const x=y==null?void 0:y.querySelector("#__VIEWSTATE");return x?x.value:""},viewStateGeneratorValue:y=>{const x=y==null?void 0:y.querySelector("#__VIEWSTATEGENERATOR");return x?x.value:""},eventValidationValue:y=>{const x=y==null?void 0:y.querySelector("#__EVENTVALIDATION");return x?x.value:""}}),p=async(y,x)=>{if(!(!y||!x)){t(!0);try{const T=await(await fetch("/Report/ScheduleOfWeek.aspx",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({__EVENTTARGET:"ctl00$mainContent$drpSelectWeek",__EVENTARGUMENT:"",__LASTFOCUS:"",__VIEWSTATE:u,__VIEWSTATEGENERATOR:d,__EVENTVALIDATION:f,ctl00$mainContent$drpYear:y,ctl00$mainContent$drpSelectWeek:x}).toString()})).text(),A=new DOMParser().parseFromString(T,"text/html").querySelector(".container");A&&n(A)}catch(b){console.error("Error fetching schedule:",b)}finally{t(!1)}}},v=r==null?void 0:r.flat().filter(y=>y&&new Date(y.dateTime.start)>new Date).map(y=>y);return{shifts:r,futureShifts:v,days:a,yearOptions:s,weekOptions:i,isLoading:e,fetchScheduleData:p,currentWeekValue:m}};var Lde="Label",L3=S.forwardRef((e,t)=>c.jsx(ye.label,{...e,ref:t,onMouseDown:n=>{var a;n.target.closest("button, input, select, textarea")||((a=e.onMouseDown)==null||a.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));L3.displayName=Lde;var kde=L3;const Ude=Mt("text-sm leading-none text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-50",{variants:{variant:{primary:"font-medium",secondary:"font-normal"}},defaultVariants:{variant:"primary"}});function To({className:e,variant:t,...n}){return c.jsx(kde,{"data-slot":"label",className:X(Ude({variant:t}),e),...n})}const Fde=({shifts:e,selectedShifts:t,onSelectAll:n,onShiftToggle:r})=>{const a=Ge(),s=t.length===e.length&&e.length>0;return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[c.jsx(gE,{id:"select-all",checked:s,onCheckedChange:n}),c.jsxs(To,{htmlFor:"select-all",className:"text-sm font-medium",children:[a.formatMessage({id:"SCHEDULE.IMPORT.SELECT_ALL_CLASSES"})," (",e.length,")"]})]}),c.jsx("div",{className:"max-h-[300px] overflow-y-auto space-y-2",children:e.map(i=>c.jsxs("div",{className:"flex items-start space-x-2 p-2 hover:bg-accent/20 rounded-md",children:[c.jsx(gE,{id:`shift-${i.activityId}`,checked:t.includes(i.activityId),onCheckedChange:()=>r(i.activityId),className:"mt-1"}),c.jsxs("div",{className:"flex-1",children:[c.jsx(To,{htmlFor:`shift-${i.activityId}`,className:"font-medium text-sm cursor-pointer",children:i.courseName}),c.jsxs("div",{className:"text-xs text-muted-foreground",children:[new Date(i.dateTime.start).toLocaleDateString(),", ",i.time]}),c.jsxs("div",{className:"text-xs text-muted-foreground",children:["Room: ",i.room]})]})]},i.activityId))})]})},Bde=({isGenerating:e,selectedShifts:t,calendarUrls:n,onGenerateLinks:r,onDownloadICS:a})=>c.jsx(c.Fragment,{children:n.all?c.jsxs("div",{className:"mt-4 space-y-4",children:[c.jsxs(al,{children:[c.jsx(Zi,{className:"h-4 w-4"}),c.jsx(pf,{children:"Multiple event import"}),c.jsx(hg,{className:"text-xs",children:"Google Calendar doesn't support importing multiple events in one click. You can download an .ics file to import all selected events at once."})]}),c.jsxs("div",{className:"flex flex-col gap-4",children:[c.jsxs(ke,{onClick:a,variant:"primary",className:"w-full gap-2",children:["Download .ics File (",t.length," events)"]}),c.jsx("div",{className:"text-xs text-center text-muted-foreground",children:"After downloading, import the .ics file to Google Calendar"}),c.jsx(ke,{asChild:!0,variant:"outline",className:"w-full gap-2",children:c.jsxs("a",{href:"https://calendar.google.com/calendar/u/0/r/settings/export",target:"_blank",rel:"noopener noreferrer",children:["Open Google Calendar Import",c.jsx(Ds,{className:"h-4 w-4 ml-1"})]})})]}),t.length===1&&n.individual.length===1&&c.jsx("div",{className:"mt-4 pt-4 border-t",children:c.jsx(ke,{asChild:!0,variant:"outline",className:"w-full gap-2",children:c.jsxs("a",{href:n.individual[0],target:"_blank",rel:"noopener noreferrer",children:["Add Single Event to Google Calendar",c.jsx(Ds,{className:"h-4 w-4 ml-1"})]})})})]}):c.jsx(ke,{onClick:r,disabled:t.length===0||e,className:"w-full mt-4",children:e?c.jsxs(c.Fragment,{children:[c.jsx(Sr,{className:"mr-2 h-4 w-4 animate-spin"}),"Generating..."]}):"Generate Calendar Links"})}),Hde=({shifts:e,isOpen:t,onClose:n})=>{const r=Ge(),[a,s]=S.useState([]),[i,u]=S.useState(!1),[d,f]=S.useState({all:"",individual:[]}),[m,p]=S.useState(!1),v=()=>{a.length===e.length?s([]):s(e.map(N=>N.activityId))},y=N=>{a.includes(N)?s(a.filter(C=>C!==N)):s([...a,N])},x=()=>{u(!0);const N=a.map(R=>{const _=e.find(L=>L.activityId===R);if(!_)return null;const O=new Date(_.dateTime.start),D=new Date(_.dateTime.end);return`https://calendar.google.com/calendar/render?action=TEMPLATE&${`dates=${O.toISOString().replace(/[-:]/g,"").replace(/\.\d+/g,"")}/${D.toISOString().replace(/[-:]/g,"").replace(/\.\d+/g,"")}&text=${encodeURIComponent(_.courseName)}&location=${encodeURIComponent(_.room)}&details=${encodeURIComponent(`Class at room ${_.room}${_.online?" (Online)":""}`)}`}`}).filter(Boolean),A=(()=>{let R=`BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//FPT University//Schedule Export//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
`;a.forEach(O=>{const D=e.find(H=>H.activityId===O);if(!D)return;const P=new Date(D.dateTime.start),L=new Date(D.dateTime.end),U=P.toISOString().replace(/[-:]/g,"").replace(/\.\d+/g,""),B=L.toISOString().replace(/[-:]/g,"").replace(/\.\d+/g,"");R+=`BEGIN:VEVENT
DTSTART:${U}
DTEND:${B}
SUMMARY:${D.courseName}
LOCATION:${D.room}
DESCRIPTION:Class at room ${D.room}${D.online?" (Online)":""}
END:VEVENT
`}),R+="END:VCALENDAR";const _=new Blob([R],{type:"text/calendar;charset=utf-8"});return URL.createObjectURL(_)})();f({all:A,individual:N}),u(!1)},b=()=>{if(d.all){const N=document.createElement("a");N.href=d.all,N.setAttribute("download","fpt_schedule.ics"),document.body.appendChild(N),N.click(),document.body.removeChild(N)}},T=()=>{s([]),f({all:"",individual:[]}),u(!1),p(!1),n()};return c.jsx(bf,{open:t,onOpenChange:N=>!N&&T(),children:c.jsxs(Ef,{className:"sm:max-w-md",children:[c.jsx(Sf,{children:c.jsx(Nf,{children:r.formatMessage({id:"SCHEDULE.IMPORT.TITLE"})})}),c.jsx("div",{className:"py-4",children:e.length===0?c.jsx("div",{className:"text-center text-muted-foreground py-8",children:r.formatMessage({id:"SCHEDULE.IMPORT.NO_CLASSES"})}):c.jsxs(c.Fragment,{children:[c.jsx(Fde,{shifts:e,selectedShifts:a,onSelectAll:v,onShiftToggle:y}),c.jsx(Bde,{isGenerating:i,selectedShifts:a,calendarUrls:d,onGenerateLinks:x,onDownloadICS:b})]})}),c.jsx(Tf,{children:c.jsx(ke,{variant:"outline",onClick:T,children:r.formatMessage({id:"COMMON.CLOSE"})})})]})})},Vde=Mt("",{variants:{variant:{default:"",outline:"space-y-2",solid:"space-y-2"}},defaultVariants:{variant:"default"}}),Gde=Mt("",{variants:{variant:{default:"border-b border-border",outline:"border border-border rounded-lg px-4",solid:"rounded-lg bg-accent/70 px-4"}},defaultVariants:{variant:"default"}}),zde=Mt("flex flex-1 items-center justify-between py-4 gap-2.5 text-foreground font-medium transition-all [&[data-state=open]>svg]:rotate-180 cursor-pointer",{variants:{variant:{default:"",outline:"",solid:""},indicator:{arrow:"",plus:"[&>svg>path:last-child]:origin-center [&>svg>path:last-child]:transition-all [&>svg>path:last-child]:duration-200 [&[data-state=open]>svg>path:last-child]:rotate-90 [&[data-state=open]>svg>path:last-child]:opacity-0 [&[data-state=open]>svg]:rotate-180",none:""}},defaultVariants:{variant:"default",indicator:"arrow"}}),$de=Mt("overflow-hidden text-sm text-accent-foreground transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",{variants:{variant:{default:"",outline:"",solid:""}},defaultVariants:{variant:"default"}}),Ug=S.createContext({variant:"default",indicator:"arrow"});function qde(e){const{className:t,variant:n="default",indicator:r="arrow",children:a,...s}=e;return c.jsx(Ug.Provider,{value:{variant:n||"default",indicator:r},children:c.jsx(Nd,{"data-slot":"accordion",className:X(Vde({variant:n}),t),...s,children:a})})}function Yde(e){const{className:t,children:n,...r}=e,{variant:a}=S.useContext(Ug);return c.jsx(g1,{"data-slot":"accordion-item",className:X(Gde({variant:a}),t),...r,children:n})}function Wde(e){const{className:t,children:n,...r}=e,{variant:a,indicator:s}=S.useContext(Ug);return c.jsx(v1,{className:"flex",children:c.jsxs(y1,{"data-slot":"accordion-trigger",className:X(zde({variant:a,indicator:s}),t),...r,children:[n,s==="plus"&&c.jsx(P2,{className:"size-4 shrink-0 transition-transform duration-200",strokeWidth:1}),s==="arrow"&&c.jsx(Fc,{className:"size-4 shrink-0 transition-transform duration-200",strokeWidth:1})]})})}function Kde(e){const{className:t,children:n,...r}=e,{variant:a}=S.useContext(Ug);return c.jsx(tI,{"data-slot":"accordion-content",className:X($de({variant:a}),t),...r,children:c.jsx("div",{className:X("pb-5 pt-0",t),children:n})})}const Xde=()=>{const e=Ge();return c.jsx("div",{className:"mt-4 mb-6",children:c.jsx(qde,{type:"single",collapsible:!0,defaultValue:"room-info",children:c.jsxs(Yde,{value:"room-info",className:"border-none",children:[c.jsx(Wde,{className:"py-0",children:c.jsxs("h3",{className:"text-sm font-medium flex items-center",children:[c.jsx(f8,{className:"h-4 w-4 mr-1.5"}),e.formatMessage({id:"SCHEDULE.BUILDING_GUIDE.TITLE"})]})}),c.jsx(Kde,{className:"text-xs pt-1 text-muted-foreground",children:c.jsx("div",{dangerouslySetInnerHTML:{__html:e.formatMessage({id:"SCHEDULE.BUILDING_GUIDE.CONTENT"})}})})]})})})},Qde=({yearOptions:e,weekOptions:t,selectedYear:n,selectedWeek:r,isLoading:a,onYearChange:s,onWeekChange:i,onPrevWeek:u,onNextWeek:d,onOpenImportDialog:f,hasFutureShifts:m})=>{const p=Ge();return c.jsxs("div",{className:"flex justify-between items-center gap-4",children:[c.jsxs($o,{onValueChange:s,value:n,disabled:a,children:[c.jsx(Yo,{className:"w-[120px]",children:c.jsx(qo,{placeholder:p.formatMessage({id:"SCHEDULE.CONTROLS.SELECT_YEAR"})})}),c.jsx(Wo,{children:e==null?void 0:e.map(v=>c.jsx(ur,{value:v.value,children:v.label},v.value))})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(ke,{variant:"outline",size:"sm",className:"p-0 h-9 w-9",disabled:a||!(t!=null&&t.length)||t.findIndex(v=>v.value===r)<=0,onClick:u,children:c.jsx(Up,{className:"h-4 w-4"})}),c.jsxs($o,{onValueChange:i,value:r,disabled:a,children:[c.jsx(Yo,{className:"w-[200px] md:w-[250px]",children:c.jsx(qo,{placeholder:p.formatMessage({id:"SCHEDULE.CONTROLS.SELECT_WEEK"})})}),c.jsx(Wo,{children:t==null?void 0:t.map(v=>c.jsx(ur,{value:v.value,children:v.label},v.value))})]}),c.jsx(ke,{variant:"outline",size:"sm",className:"p-0 h-9 w-9",disabled:a||!(t!=null&&t.length)||t.findIndex(v=>v.value===r)>=t.length-1,onClick:d,children:c.jsx(UE,{className:"h-4 w-4"})})]}),c.jsxs(ke,{variant:"outline",className:"gap-2",onClick:f,disabled:!m||a,children:[c.jsx(ea,{className:"h-4 w-4"}),p.formatMessage({id:"SCHEDULE.CONTROLS.IMPORT_TO_CALENDAR"})]})]})},Zde=({shifts:e})=>{const t=Ge();e!=null&&e.flat().filter(Boolean).length;const n=(e==null?void 0:e.flat().filter(s=>s&&s.status===1).length)||0,r=(e==null?void 0:e.flat().filter(s=>s&&s.status===0).length)||0,a=(e==null?void 0:e.flat().filter(s=>s&&s.status===2).length)||0;return c.jsxs("div",{className:"flex justify-between",children:[c.jsxs("div",{className:"flex flex-wrap gap-3 text-xs text-muted-foreground",children:[c.jsxs("div",{className:"flex items-center",children:[c.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-400 mr-1.5"}),r," ",t.formatMessage({id:"SCHEDULE.STATS.PENDING_SLOT"})]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx("span",{className:"w-2 h-2 rounded-full bg-green-400 mr-1.5"}),n," ",t.formatMessage({id:"SCHEDULE.STATS.ATTENDED_SLOT"})]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx("span",{className:"w-2 h-2 rounded-full bg-red-400 mr-1.5"}),a," ",t.formatMessage({id:"SCHEDULE.STATS.ABSENT_SLOT"})]})]}),c.jsxs("div",{className:"flex flex-wrap gap-3 text-xs text-muted-foreground",children:[c.jsxs("div",{className:"flex items-center",children:[c.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-400 mr-1.5"}),t.formatMessage({id:"SCHEDULE.STATS.NOT_YET"})]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx("span",{className:"w-2 h-2 rounded-full bg-green-400 mr-1.5"}),t.formatMessage({id:"SCHEDULE.STATS.ATTENDED"})]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx("span",{className:"w-2 h-2 rounded-full bg-red-400 mr-1.5"}),t.formatMessage({id:"SCHEDULE.STATS.ABSENT"})]})]})]})},Jde=({isLoading:e,shifts:t,days:n,onShiftClick:r})=>{const a=["MON","TUE","WED","THU","FRI","SAT","SUN"],s=new Date().getDay()-1;return c.jsxs("div",{className:"relative border border-border rounded-3xl liquid-glass-panel overflow-hidden shadow-lg",children:[e&&c.jsx("div",{className:"absolute inset-0 bg-background/80 flex items-center justify-center z-10",children:c.jsx(Sr,{className:"h-8 w-8 animate-spin text-primary"})}),c.jsx("div",{className:"w-full overflow-x-auto",children:c.jsxs(Na,{className:"w-full border-collapse",children:[c.jsx(wa,{className:"sticky top-0 z-10 bg-card/90 backdrop-blur-md border-b border-border",children:c.jsxs(en,{className:"border-b border-border",children:[c.jsx(Fe,{className:"font-bold text-foreground text-center w-20 border-r border-border text-xs py-3.5",children:"SLOT"}),a.map((i,u)=>c.jsxs(Fe,{className:X("font-bold text-foreground text-center border-r border-border last:border-r-0 text-xs py-3.5",u===s&&"bg-accent/10 text-accent font-black border border-accent/20"),children:[i,c.jsx("div",{className:"text-[10px] font-bold text-muted-foreground mt-0.5",children:n&&n[u]?n[u]:""})]},u))]})}),c.jsx(Ca,{children:Array.from({length:13}).map((i,u)=>c.jsxs(en,{className:"border-b border-border/50 last:border-b-0",children:[c.jsxs(Qe,{className:"font-bold text-foreground/80 text-center w-20 bg-foreground/[0.03] border-r border-border p-2 text-xs",children:["S",u+1]}),Array.from({length:7}).map((d,f)=>{var p;const m=(p=t==null?void 0:t[u])==null?void 0:p[f];return c.jsx(Qe,{className:"p-2.5 border-r border-border/50 last:border-r-0 align-top min-w-[135px] bg-transparent",children:m&&c.jsx(efe,{shift:m,onClick:()=>r(m.activityId,m.status,m.time)})},f)})]},u))})]})})]})},efe=({shift:e,onClick:t})=>{const n={0:{border:"border-border hover:border-accent/40",bg:"bg-foreground/[0.03] hover:bg-foreground/[0.08]",shadow:"shadow-sm",text:"text-foreground"},1:{border:"border-emerald-500/20 dark:border-emerald-500/30 hover:border-emerald-500/40",bg:"bg-emerald-500/10 dark:bg-emerald-500/5 hover:bg-emerald-500/20 dark:hover:bg-emerald-500/10",shadow:"shadow-sm",text:"text-emerald-600 dark:text-emerald-400"},2:{border:"border-destructive/20 dark:border-destructive/30 hover:border-destructive/40",bg:"bg-destructive/10 dark:bg-destructive/5 hover:bg-destructive/20 dark:hover:bg-destructive/10",shadow:"shadow-sm",text:"text-destructive"}},r=n[e.status]||n[0];return c.jsx("div",{className:X("cursor-pointer p-0.5 border transition-all duration-300 rounded-xl hover:translate-y-[-2px]",r.border,r.bg,r.shadow),onClick:t,children:c.jsxs("div",{className:"flex flex-col gap-1.5 p-2.5 min-h-[75px] select-none",children:[c.jsxs("div",{className:"flex items-start justify-between gap-1",children:[c.jsx("div",{className:X("font-bold tracking-tight text-[11px] leading-snug w-[80%] uppercase break-all",r.text),children:e.courseName}),c.jsxs("div",{className:"flex items-center flex-shrink-0",children:[e.online&&c.jsx(VE,{className:"h-3.5 w-3.5 text-foreground mr-1"}),c.jsx(vd.div,{animate:{y:[0,-2,0]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:e.status===0?c.jsx(wm,{className:"h-3.5 w-3.5 text-blue-400"}):e.status===1?c.jsx(Kd,{className:"h-3.5 w-3.5 text-emerald-400"}):c.jsx(Fp,{className:"h-3.5 w-3.5 text-destructive"})})]})]}),c.jsxs("div",{className:"flex flex-col gap-1 text-[10px] font-medium text-muted-foreground",children:[c.jsxs("div",{className:"flex items-center",children:[c.jsx(Gs,{className:"h-3 w-3 mr-1 flex-shrink-0 text-muted-foreground/80"}),c.jsx("span",{className:"truncate",children:e.time})]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx(K8,{className:"h-3 w-3 mr-1 flex-shrink-0 text-muted-foreground/80"}),c.jsx("span",{className:"truncate bg-foreground/[0.08] text-foreground px-1.5 py-0.5 rounded-md font-semibold",children:e.room})]})]}),e.materialURL&&c.jsx("div",{className:"absolute bottom-1 right-1",children:c.jsx(Ps,{className:"h-3 w-3 text-slate-400"})})]})})},tfe=({isLoading:e})=>{const{shifts:t,futureShifts:n,days:r,yearOptions:a,weekOptions:s,fetchScheduleData:i}=jde(),[u,d]=S.useState(""),[f,m]=S.useState(""),[p,v]=S.useState(!1);S.useEffect(()=>{var B,H;if((a==null?void 0:a.length)>0){const Z=((B=a.find(ee=>ee.selected))==null?void 0:B.value)||a[0].value;d(Z)}if((s==null?void 0:s.length)>0){const Z=((H=s.find(ee=>ee.selected))==null?void 0:H.value)||s[0].value;m(Z)}},[a,s]);const[y,x]=S.useState(),[b,T]=S.useState(0),[N,C]=S.useState(""),[A,R]=S.useState(!1),_=(B,H,Z)=>{x(B),T(H),C(Z)},O=B=>{d(B),L(B,f)},D=B=>{m(B),L(u,B)},P=B=>{if(v(!0),!(s!=null&&s.length)){v(!1);return}const H=s.findIndex(ee=>ee.value===f);if(H===-1){v(!1);return}let Z=H;if(B==="prev"&&H>0?Z=H-1:B==="next"&&H<s.length-1&&(Z=H+1),Z!==H){const ee=s[Z].value;m(ee),L(u,ee)}else v(!1)},L=async(B,H)=>{if(!(!B||!H)){v(!0);try{await i(B,H)}finally{v(!1)}}},U=e||p;return c.jsxs("div",{className:"space-y-2",children:[c.jsx(Qde,{yearOptions:a,weekOptions:s,selectedYear:u,selectedWeek:f,isLoading:U,onYearChange:O,onWeekChange:D,onPrevWeek:()=>P("prev"),onNextWeek:()=>P("next"),onOpenImportDialog:()=>R(!0),hasFutureShifts:!!(n!=null&&n.length)}),c.jsx(Jde,{isLoading:U,shifts:t,days:r,onShiftClick:_}),c.jsx(Zde,{shifts:t}),c.jsx(Xde,{}),c.jsx(g5,{activityId:y,activityStatus:b,shiftTime:N,isOpen:y!==void 0,onClose:()=>x(void 0)}),c.jsx(Hde,{shifts:n||[],isOpen:A,onClose:()=>R(!1)})]})},nfe=()=>{const{loading:e}=fn();return c.jsx(ht,{children:c.jsx("div",{className:"grid gap-5 lg:gap-7.5",children:c.jsx("div",{className:"grid lg:grid-cols-1 gap-y-5 lg:gap-7.5",children:c.jsx(tfe,{isLoading:e})})})})},k3=({terms:e})=>c.jsx("div",{className:"flex overflow-x-auto pb-2 mb-5 -mx-1",children:e.map((t,n)=>c.jsx("div",{className:"px-1",children:c.jsxs(Pt,{to:t.link??"#",onClick:r=>{t.link||r.preventDefault()},className:X("flex flex-col items-center justify-center w-20 h-[85px] py-3 rounded-md relative overflow-hidden border border-dashed",t.active?"bg-primary/10 text-primary hover:bg-primary/15 border-primary/30":"bg-card hover:bg-muted/50 border-border"),children:[c.jsx("span",{className:"text-base font-semibold",children:t.year}),c.jsx("span",{className:"text-sm text-muted-foreground mt-1",children:t.season}),t.active&&c.jsx("span",{className:"absolute bottom-0 left-0 w-full h-1 bg-primary"})]})},n))});var rfe="Separator",xM="horizontal",afe=["horizontal","vertical"],U3=S.forwardRef((e,t)=>{const{decorative:n,orientation:r=xM,...a}=e,s=sfe(r)?r:xM,u=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return c.jsx(ye.div,{"data-orientation":s,...u,...a,ref:t})});U3.displayName=rfe;function sfe(e){return afe.includes(e)}var ofe=U3;function F3({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return c.jsx(ofe,{"data-slot":"separator",decorative:n,orientation:t,className:X("shrink-0 bg-border",t==="horizontal"?"h-px w-full":"h-full w-px",e),...r})}const ife=({courses:e,activeTerm:t})=>{const n=Ge(),{loading:r}=fn(),a=s=>{const i=["primary"],d=s.charAt(0).toLowerCase().charCodeAt(0)%i.length;return i[d]||"primary"};return c.jsxs(ct,{className:"h-full",children:[c.jsx(Yt,{className:"py-2",children:c.jsx(Zn,{children:c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(rs,{className:"h-5 w-5 text-primary"}),c.jsx("span",{className:"text-base font-semibold",children:n.formatMessage({id:"ATTENDANCE.COURSE_SELECTOR.TITLE"})})]}),c.jsx("span",{className:"text-muted-foreground text-sm font-normal",children:t})]})})}),c.jsxs(Nt,{className:"p-5 pt-0",children:[r&&c.jsx("div",{className:"absolute inset-0 bg-background/70 flex items-center justify-center z-10 rounded-xl",children:c.jsx(Sr,{className:"h-6 w-6 text-primary animate-spin"})}),c.jsxs("div",{className:"space-y-2",children:[!r&&e.length===0&&c.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center",children:[c.jsx(rs,{className:"h-10 w-10 text-muted-foreground mb-4 opacity-50"}),c.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:n.formatMessage({id:"ATTENDANCE.COURSE_SELECTOR.EMPTY_TITLE"})}),c.jsx("p",{className:"text-sm text-muted-foreground",children:n.formatMessage({id:"ATTENDANCE.COURSE_SELECTOR.EMPTY_MESSAGE"})})]}),e.map((s,i)=>c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center py-2",children:[c.jsx("div",{className:"mr-4",children:c.jsx("div",{className:X("w-10 h-10 flex items-center justify-center rounded-md text-white text-lg font-medium",`bg-${a(s.code)}`),children:s.code.charAt(0)})}),c.jsx("div",{className:"flex flex-col flex-grow",children:c.jsxs(Pt,{to:s.link,onClick:u=>{s.link||u.preventDefault()},className:"group",children:[c.jsxs("span",{className:X("text-sm font-semibold block",s.active?"text-primary":"text-foreground group-hover:text-primary"),children:[s.name," (",s.code,")"]}),c.jsx("span",{className:"text-xs text-muted-foreground",children:s.endDate?c.jsxs(c.Fragment,{children:[s.group," (",s.date," - ",s.endDate,")"]}):c.jsxs(c.Fragment,{children:[s.group," - ",s.date]})})]})})]}),i!==e.length-1&&c.jsx(F3,{className:"my-2"})]},i))]})]})]})},lfe=({shift:e})=>{const t=Ge(),n=f=>{switch(f){case"Present":return{variant:"success",icon:c.jsx(Mo,{className:"h-3.5 w-3.5"}),borderColor:"border-success/40",bgColor:"bg-success/5",textColor:"text-success-600",appearance:"outline"};case"Absent":return{variant:"destructive",icon:c.jsx(Bc,{className:"h-3.5 w-3.5"}),borderColor:"border-destructive/40",bgColor:"bg-destructive/5",textColor:"text-destructive",appearance:"outline"};case"Future":default:return{variant:"secondary",icon:c.jsx(Ec,{className:"h-3.5 w-3.5"}),borderColor:"border-border",bgColor:"bg-muted/30",textColor:"text-muted-foreground",appearance:"stroke"}}},{icon:r,variant:a,borderColor:s,bgColor:i,textColor:u,appearance:d}=n(e.status);return c.jsx("div",{className:X("border border-dashed rounded-lg p-3 h-full",s,i),children:c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"text-sm font-medium text-foreground truncate",children:[e.day," - ",e.date]}),c.jsxs("div",{className:"space-y-1 text-xs my-1.5 flex-grow",children:[c.jsxs("div",{className:"flex items-start",children:[c.jsx(Gs,{className:"h-3 w-3 text-muted-foreground shrink-0 mt-0.5 mr-1"}),c.jsxs("span",{className:"truncate",children:[t.formatMessage({id:"COMMON.SLOT"},{number:e.slot}),": ",e.time]})]}),c.jsxs("div",{className:"flex items-start",children:[c.jsx(Bp,{className:"h-3 w-3 text-muted-foreground shrink-0 mt-0.5 mr-1"}),c.jsx("span",{className:"truncate",children:e.room})]}),c.jsxs("div",{className:"flex items-start",children:[c.jsx(jo,{className:"h-3 w-3 text-muted-foreground shrink-0 mt-0.5 mr-1"}),c.jsx("span",{className:"truncate",children:e.lecturer})]})]}),c.jsx("div",{className:"mt-auto pt-1",children:c.jsxs(kt,{variant:a,appearance:d,size:"sm",className:"w-full justify-center gap-0.5",children:[r,c.jsx("span",{className:"ml-0.5",children:e.status})]})})]})})},cfe=()=>{const e=Ge(),{terms:t,courses:n,markTable:r,resultText:a}=Mn({terms:d=>{if(!d)return[];const f=[],m=d.querySelector("#ctl00_mainContent_divTerm table");if(m){const p=m.rows;Array.from(p).forEach(v=>{const y=v.cells[0].querySelector("a"),x=v?v.innerText:"",b=x.slice(-4),T=x.slice(0,-4),N=y?y.href.replace("https://fap.fpt.edu.vn",""):"",C={year:b,season:T,link:N,active:!y};f.push(C)})}return f.reverse()},courses:d=>{if(!d)return[];const f=[],m=d.querySelector("#ctl00_mainContent_divCourse table");if(m){const p=m.rows;Array.from(p).forEach(v=>{const y=v.cells[0].querySelector("a"),x=v?v.innerText:"",b=/^(.*?) \((.*?)\) \((.*?), from (.*?) - (.*?)\)$/,T=x.match(b);if(T){const N=T[1].trim(),C=T[2].trim(),A=T[3].trim(),R=T[4].trim(),_=T[5]?T[5].trim():void 0,O=y?y.href.replace("https://fap.fpt.edu.vn",""):"",D={name:N,code:C,group:A,date:R,endDate:_,link:O,active:!y};f.push(D)}else{const N=/^(.*?) \((.*?)\) \((.*?), from (.*?)\)$/,C=x.match(N);if(C){const A=C[1].trim(),R=C[2].trim(),_=C[3].trim(),O=C[4].trim(),D=y?y.href.replace("https://fap.fpt.edu.vn",""):"",P={name:A,code:R,group:_,date:O,link:D,active:!y};f.push(P)}}})}return f},markTable:d=>{var p;const f=d==null?void 0:d.querySelector("#ctl00_mainContent_divGrade");return f?(f.querySelectorAll("table").forEach(v=>{v.classList.add("w-full"),v.setAttribute("style",""),v.querySelectorAll("tr").forEach((x,b)=>{b===0?(x.classList.add("bg-muted/50"),x.querySelectorAll("th").forEach(N=>{N.classList.add("px-4","py-2","text-left","text-xs","font-medium","text-muted-foreground")})):(x.classList.add(b%2===0?"bg-card":"bg-muted/20","hover:bg-muted/40"),x.querySelectorAll("td").forEach(N=>{N.classList.add("px-4","py-2","text-sm")}))})}),(p=f.querySelector("caption"))==null||p.remove(),f.innerHTML):""},resultText:d=>{const f=d==null?void 0:d.querySelector("#ctl00_mainContent_divGrade");if(!f)return"";const m=f.textContent||"";return m.includes("Attendance Fail")?"Attendance Fail":m.includes("Not Passed")?"Not Passed":m.includes("Suspended")?"Is Suspended":m.includes("Passed")?"Passed":""}}),s={terms:t||[],courses:n||[],markTable:r||""},i=S.useMemo(()=>{const d=s.terms.find(f=>f.active);return d?`${d.season} ${d.year}`:e.formatMessage({id:"COMMON.LOADING"})},[s.terms,e]),u=S.useMemo(()=>{const d=s.courses.find(f=>f.active);return d?`${d.name} (${d.code})`:e.formatMessage({id:"GRADE.REPORT.SELECT_COURSE_MESSAGE"})},[s.courses,e]);return{gradeData:s,activeTerm:i,activeCourse:u,result:a}},ufe=()=>{const e=Ge(),{gradeData:t,activeTerm:n,activeCourse:r,result:a}=cfe();S.useEffect(()=>{console.log(t)},[t]);const{loading:s}=fn();return c.jsxs(ht,{children:[c.jsx("div",{className:"mb-5",children:c.jsx(k3,{terms:t.terms})}),c.jsxs("div",{className:"grid gap-7 lg:grid-cols-3",children:[c.jsx("div",{className:"space-y-7",children:c.jsxs(ct,{className:"relative",children:[c.jsx(Yt,{className:"py-2",children:c.jsx(Zn,{children:c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(rs,{className:"h-5 w-5 text-primary"}),c.jsx("span",{className:"text-base font-semibold",children:e.formatMessage({id:"GRADE.COURSE_SELECTOR.TITLE"})})]}),c.jsx("span",{className:"text-muted-foreground text-sm font-normal",children:n})]})})}),c.jsxs(Nt,{className:"p-4 pt-2 relative",children:[s&&c.jsx("div",{className:"absolute inset-0 bg-background/70 flex items-center justify-center z-10 rounded-b-xl",children:c.jsx(Sr,{className:"h-6 w-6 text-primary animate-spin"})}),c.jsxs("div",{children:[!s&&t.courses.length===0&&c.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[c.jsx(rs,{className:"h-10 w-10 text-muted-foreground mb-4 opacity-50"}),c.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:e.formatMessage({id:"GRADE.COURSE_SELECTOR.EMPTY_TITLE"})}),c.jsx("p",{className:"text-sm text-muted-foreground",children:e.formatMessage({id:"GRADE.COURSE_SELECTOR.EMPTY_MESSAGE"})})]}),c.jsx("div",{className:"grid gap-3",children:t.courses.map((i,u)=>c.jsx(Pt,{to:i.link||"#",onClick:d=>{i.link||d.preventDefault()},className:"block",children:c.jsxs("div",{className:X("relative rounded-lg overflow-hidden border transition-all duration-200",i.active?"border-primary bg-primary/5":"border-border hover:border-primary/30 hover:bg-muted/40"),children:[c.jsx("div",{className:X("absolute left-0 top-0 h-full w-1",i.active?"bg-primary":"bg-border")}),c.jsxs("div",{className:"pl-4 pr-3 py-2.5",children:[c.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx($8,{className:"h-3.5 w-3.5 text-primary"}),c.jsx("span",{className:"text-xs font-semibold text-primary",children:i.code})]}),i.active&&c.jsxs("span",{className:"inline-flex items-center text-xs font-medium text-green-600",children:[c.jsx(O8,{className:"h-3 w-3 mr-0.5"}),e.formatMessage({id:"GRADE.COURSE_SELECTOR.ACTIVE_STATUS"})]})]}),c.jsx("h4",{className:"text-sm font-medium leading-tight mb-2 line-clamp-1",children:i.name}),c.jsxs("div",{className:"flex items-center text-xs text-muted-foreground gap-3",children:[c.jsxs("span",{className:"inline-flex items-center",children:[c.jsx(Ri,{className:"h-3 w-3 mr-1 flex-shrink-0"}),c.jsx("span",{className:"truncate",children:i.group})]}),c.jsxs("span",{className:"inline-flex items-center",children:[c.jsx(Gs,{className:"h-3 w-3 mr-1 flex-shrink-0"}),c.jsxs("span",{className:"truncate",children:[i.date,i.endDate&&` - ${i.endDate}`]})]})]})]})]})},u))})]})]})]})}),c.jsx("div",{className:"lg:col-span-2",children:c.jsxs(ct,{className:"relative",children:[c.jsxs(Yt,{className:"py-2",children:[c.jsx(Zn,{children:c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(s8,{className:"h-4 w-4 text-primary"}),c.jsx("span",{className:"text-base font-semibold",children:e.formatMessage({id:"GRADE.REPORT.TITLE"})})]}),c.jsx("span",{className:"text-muted-foreground text-sm font-normal",children:r})]})}),c.jsx(fg,{children:a&&c.jsx("div",{className:X("text-2sm font-medium px-2 py-1 rounded-full",a==="Passed"?"bg-green-100 text-green-700":a==="Not Passed"||a==="Attendance Fail"?"bg-red-100 text-red-700":a==="Is Suspended"?"bg-amber-100 text-amber-700":"bg-gray-100 text-gray-700"),children:a})})]}),c.jsxs(mf,{className:"relative",children:[s&&c.jsx("div",{className:"absolute inset-0 bg-background/70 flex items-center justify-center z-10 rounded-b-xl",children:c.jsx(Sr,{className:"h-6 w-6 text-primary animate-spin"})}),c.jsxs(Af,{children:[c.jsx("div",{dangerouslySetInnerHTML:{__html:t.markTable}}),c.jsx(_f,{orientation:"horizontal"})]})]})]})})]})]})},dfe=()=>{const{terms:e,courses:t,shifts:n}=Mn({terms:u=>{if(!u)return[];const d=[],f=u.querySelector("#ctl00_mainContent_divTerm table");if(f){const m=f.rows;Array.from(m).forEach(p=>{const v=p.cells[0].querySelector("a"),y=p?p.innerText:"",x=y.slice(-4),b=y.slice(0,-4),T=v?v.href.replace("https://fap.fpt.edu.vn",""):"",N={year:x,season:b,link:T,active:!v};d.push(N)})}return d.reverse()},courses:u=>{if(!u)return[];const d=[],f=u.querySelector("#ctl00_mainContent_divCourse table");if(f){const m=f.rows;Array.from(m).forEach(p=>{const v=p.cells[0].querySelector("a"),y=p?p.innerText:"",x=/(.+)\((.+)\)\((.+),start (.+)(?:,end (.+))?\)/,b=y.match(x),T=b?b[1].trim():"",N=b?b[2].trim():"",C=b?b[3].trim():"",A=b?b[4].trim():"",R=b&&b[5]?b[5].trim():void 0,_=v?v.href.replace("https://fap.fpt.edu.vn",""):"",O={name:T,code:N,group:C,date:A,endDate:R,link:_,active:!v};d.push(O)})}return d},shifts:u=>{if(!u)return[];const d=[],f=u.querySelector(".table1");if(f){const m=f==null?void 0:f.rows;Array.from(m).forEach((p,v)=>{var O,D,P,L,U,B,H,Z,ee,Q,j,Y;if(v<=1||v===m.length-1)return;const y=p.querySelectorAll("td"),[x,b]=((D=(O=y[1])==null?void 0:O.textContent)==null?void 0:D.split(" "))??["",""],[T,N]=((L=(P=y[2])==null?void 0:P.textContent)==null?void 0:L.split("_"))??["",""],C=((B=(U=y[3])==null?void 0:U.textContent)==null?void 0:B.trim())??"",A=((Z=(H=y[4])==null?void 0:H.textContent)==null?void 0:Z.trim())??"",R=((Q=(ee=y[5])==null?void 0:ee.textContent)==null?void 0:Q.trim())??"",_=((Y=(j=y[6])==null?void 0:j.textContent)==null?void 0:Y.trim())??"";d.push({day:x,date:b,slot:T,time:N.replace(/[()]/g,""),room:C,lecturer:A,group:R,status:_})})}return d}}),r={terms:e||[],courses:t||[],shifts:n||[]},a=S.useMemo(()=>{const u=r.terms.find(d=>d.active);return u?`${u.season} ${u.year}`:"Loading..."},[r.terms]),s=S.useMemo(()=>{const u=r.courses.find(d=>d.active);return u?`${u.name} (${u.code})`:"Select a course to see the report"},[r.courses]),i=S.useMemo(()=>r.shifts.length?r.shifts.reduce((u,d)=>u+(d.status==="Present"?1:0),0):0,[r.shifts]);return{attendanceData:r,activeTerm:a,activeCourse:s,presentedCount:i}},ffe=()=>{const e=Ge(),{attendanceData:t,activeTerm:n,activeCourse:r,presentedCount:a}=dfe(),{loading:s}=fn(),[i,u]=S.useState("grid"),[d,f]=S.useState("all"),m=t.shifts.filter(b=>b.status==="Absent").length,p=t.shifts.filter(b=>b.status==="Future").length,v=t.shifts.length,y=t.shifts.filter(b=>d==="all"?!0:b.status.toLowerCase()===d),x=b=>({present:e.formatMessage({id:"ATTENDANCE.FILTER.PRESENT_ONLY"}).toLowerCase(),absent:e.formatMessage({id:"ATTENDANCE.FILTER.ABSENT_ONLY"}).toLowerCase(),future:e.formatMessage({id:"ATTENDANCE.FILTER.UPCOMING_ONLY"}).toLowerCase()})[b]||b;return c.jsxs(ht,{children:[c.jsx("div",{className:"mb-5",children:c.jsx(k3,{terms:t.terms})}),c.jsxs("div",{className:"grid gap-7 lg:grid-cols-3",children:[c.jsx("div",{className:"space-y-7",children:c.jsx("div",{className:"relative",children:c.jsx(ife,{courses:t.courses,activeTerm:n})})}),c.jsx("div",{className:"lg:col-span-2 relative",children:c.jsxs(ct,{className:"h-full",children:[c.jsxs(Yt,{className:"py-2",children:[c.jsx(Zn,{children:c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(ea,{className:"h-4 w-4 text-primary"}),c.jsx("span",{className:"text-base font-semibold",children:e.formatMessage({id:"ATTENDANCE.REPORT.TITLE"})})]}),c.jsx("span",{className:"text-muted-foreground text-sm font-normal",children:r})]})}),c.jsx(fg,{children:c.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[c.jsxs($o,{value:d,onValueChange:b=>f(b),children:[c.jsxs(Yo,{className:"h-8 text-xs w-full sm:w-[150px]",children:[c.jsx(rV,{className:"h-3.5 w-3.5 mr-1"}),c.jsx(qo,{placeholder:e.formatMessage({id:"ATTENDANCE.FILTER.PLACEHOLDER"})})]}),c.jsxs(Wo,{children:[c.jsx(ur,{value:"all",children:e.formatMessage({id:"ATTENDANCE.FILTER.ALL_CLASSES"})}),c.jsx(ur,{value:"present",children:e.formatMessage({id:"ATTENDANCE.FILTER.PRESENT_ONLY"})}),c.jsx(ur,{value:"absent",children:e.formatMessage({id:"ATTENDANCE.FILTER.ABSENT_ONLY"})}),c.jsx(ur,{value:"future",children:e.formatMessage({id:"ATTENDANCE.FILTER.UPCOMING_ONLY"})})]})]}),c.jsx("div",{className:"hidden sm:block",children:c.jsx(cc,{value:i,onValueChange:b=>u(b),className:"w-auto",children:c.jsxs(jd,{className:"h-8",children:[c.jsx(Lr,{value:"grid",className:"h-7 px-2",children:c.jsxs("div",{className:"grid grid-cols-2 gap-0.5 h-3 w-3",children:[c.jsx("div",{className:"bg-current rounded-sm"}),c.jsx("div",{className:"bg-current rounded-sm"}),c.jsx("div",{className:"bg-current rounded-sm"}),c.jsx("div",{className:"bg-current rounded-sm"})]})}),c.jsx(Lr,{value:"list",className:"h-7 px-2",children:c.jsxs("div",{className:"flex flex-col gap-0.5 h-3 w-3",children:[c.jsx("div",{className:"bg-current rounded-sm h-0.5 w-full"}),c.jsx("div",{className:"bg-current rounded-sm h-0.5 w-full"}),c.jsx("div",{className:"bg-current rounded-sm h-0.5 w-full"})]})})]})})})]})})]}),c.jsxs(Nt,{className:"p-5 relative",children:[s&&c.jsx("div",{className:"absolute inset-0 bg-background/70 flex items-center justify-center z-10 rounded-xl",children:c.jsx(Sr,{className:"h-6 w-6 text-primary animate-spin"})}),y.length===0?c.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center",children:[c.jsx(ea,{className:"h-10 w-10 text-muted-foreground mb-4 opacity-50"}),c.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:e.formatMessage({id:"ATTENDANCE.EMPTY.TITLE"})}),c.jsx("p",{className:"text-sm text-muted-foreground",children:d!=="all"?e.formatMessage({id:"ATTENDANCE.EMPTY.NO_FILTER_CLASSES"},{filter:x(d)}):e.formatMessage({id:"ATTENDANCE.EMPTY.NO_COURSE_CLASSES"})})]}):c.jsx("div",{className:"sm:hidden mb-4",children:c.jsx(cc,{value:i,onValueChange:b=>u(b),children:c.jsxs(jd,{className:"w-full",children:[c.jsx(Lr,{value:"grid",className:"flex-1",children:e.formatMessage({id:"ATTENDANCE.VIEW.GRID"})}),c.jsx(Lr,{value:"list",className:"flex-1",children:e.formatMessage({id:"ATTENDANCE.VIEW.LIST"})})]})})}),c.jsxs(cc,{value:i,onValueChange:b=>u(b),children:[c.jsx(Gi,{value:"grid",children:c.jsx("div",{className:"grid grid-cols-1 xs:grid-cols-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-4 gap-3",children:y.map((b,T)=>c.jsx(lfe,{shift:b},T))})}),c.jsx(Gi,{value:"list",children:y.length>0&&c.jsx("div",{className:"rounded-md border",children:c.jsxs("table",{className:"min-w-full divide-y divide-border",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"bg-muted/50",children:[c.jsx("th",{className:"px-4 py-2 text-left text-xs font-medium text-muted-foreground",children:e.formatMessage({id:"ATTENDANCE.TABLE.DATE"})}),c.jsx("th",{className:"px-4 py-2 text-left text-xs font-medium text-muted-foreground",children:e.formatMessage({id:"ATTENDANCE.TABLE.TIME"})}),c.jsx("th",{className:"px-4 py-2 text-left text-xs font-medium text-muted-foreground",children:e.formatMessage({id:"ATTENDANCE.TABLE.ROOM"})}),c.jsx("th",{className:"px-4 py-2 text-left text-xs font-medium text-muted-foreground",children:e.formatMessage({id:"ATTENDANCE.TABLE.LECTURER"})}),c.jsx("th",{className:"px-4 py-2 text-left text-xs font-medium text-muted-foreground",children:e.formatMessage({id:"ATTENDANCE.TABLE.STATUS"})})]})}),c.jsx("tbody",{children:y.map((b,T)=>{const N=R=>{switch(R){case"Present":return{variant:"success",appearance:"outline"};case"Absent":return{variant:"destructive",appearance:"outline"};default:return{variant:"secondary",appearance:"stroke"}}},{variant:C,appearance:A}=N(b.status);return c.jsxs("tr",{className:X(T%2===0?"bg-card":"bg-muted/20","hover:bg-muted/40 transition-colors"),children:[c.jsxs("td",{className:"px-4 py-2 text-sm",children:[b.day," - ",b.date]}),c.jsxs("td",{className:"px-4 py-2 text-sm",children:[e.formatMessage({id:"COMMON.SLOT"},{number:b.slot}),": ",b.time]}),c.jsx("td",{className:"px-4 py-2 text-sm",children:b.room}),c.jsx("td",{className:"px-4 py-2 text-sm",children:b.lecturer}),c.jsx("td",{className:"px-4 py-2 text-sm",children:c.jsx(kt,{variant:C,appearance:A,size:"sm",children:b.status})})]},T)})})]})})})]}),c.jsxs("div",{className:"mt-7 border-t pt-6",children:[c.jsx("div",{className:"flex items-center justify-between mb-5",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(b8,{className:"h-4 w-4 text-primary"}),c.jsx("h3",{className:"text-base font-semibold",children:e.formatMessage({id:"ATTENDANCE.STATS.TITLE"})})]})}),c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsx(hx,{title:e.formatMessage({id:"ATTENDANCE.STATS.PRESENT"}),count:a,total:v,icon:c.jsx(Kd,{className:"h-3 w-3 text-green-400"}),variant:"success"}),c.jsx(hx,{title:e.formatMessage({id:"ATTENDANCE.STATS.ABSENT"}),count:m,total:v,icon:c.jsx(Fp,{className:"h-3 w-3 text-red-400"}),variant:"destructive"}),c.jsx(hx,{title:e.formatMessage({id:"ATTENDANCE.STATS.UPCOMING"}),count:p,total:v,icon:c.jsx(Gs,{className:"h-3 w-3 text-muted-foreground"}),variant:"secondary"})]})]})]})]})})]})]})},hx=({title:e,count:t,total:n,icon:r,variant:a})=>{const s=n>0?Math.round(t/n*100):0,i=()=>{switch(a){case"success":return{card:"border-green-500/20 bg-green-500/5",icon:"bg-green-500/10 text-green-400",badge:"bg-green-500/10 text-green-400"};case"destructive":return{card:"border-red-500/20 bg-red-500/5",icon:"bg-red-500/10 text-red-400",badge:"bg-red-500/10 text-red-400"};case"secondary":return{card:"border-white/10 bg-white/[0.02]",icon:"bg-white/5 text-muted-foreground",badge:"bg-white/5 text-muted-foreground"};case"primary":default:return{card:"border-accent/20 bg-accent/5",icon:"bg-accent/10 text-accent",badge:"bg-accent/10 text-accent"}}},{card:u,icon:d,badge:f}=i();return c.jsxs("div",{className:X("rounded-md border px-2.5 py-2 flex items-center justify-between",u),children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:X("rounded-full p-1.5 flex-shrink-0",d),children:r}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-0.5",children:e}),c.jsxs("div",{className:"flex items-baseline",children:[c.jsx("span",{className:"text-base font-semibold leading-none",children:t}),c.jsxs("span",{className:"text-xs text-muted-foreground ml-1",children:["/",n]})]})]})]}),c.jsxs("div",{className:X("text-xs font-medium rounded-full px-1.5 py-0.5",f),children:[s,"%"]})]})},hfe=()=>{const[e,t]=S.useState(!1),{setData:n}=fn(),{newsItems:r,pagination:a,viewStateValue:s,viewStateGeneratorValue:i,eventValidationValue:u}=Mn({newsItems:f=>{if(!f)return[];const m=f==null?void 0:f.querySelector("#ctl00_mainContent_divContent ul"),p=[];if(m)for(let v=0;v<m.children.length;v++){const y=m.children[v],x=y==null?void 0:y.querySelector("a");if(x){const b=x==null?void 0:x.href.split("=")[1],T=x==null?void 0:x.innerText,[N,C,...A]=T==null?void 0:T.split(" "),R=A.slice(1).join(" "),_=`${N} ${C}`;p.push({id:b,title:R,dateTime:_})}}return p},pagination:f=>{var v,y,x,b;const m=[];if(!f)return m;const p=f==null?void 0:f.querySelector("#ctl00_mainContent_pg");if(p)for(let T=0;T<p.children.length;T++){const N=p.children[T],C=N==null?void 0:N.innerText,A=N==null?void 0:N.querySelector("a"),R=A==null?void 0:A.href,_=R==null?void 0:R.match(/'(\d+)'/),O=_?parseInt(_[1]):0,D=(y=(v=N==null?void 0:N.children[0])==null?void 0:v.classList)==null?void 0:y.contains("active"),P=((b=(x=N==null?void 0:N.children[0])==null?void 0:x.attributes)==null?void 0:b.getNamedItem("disabled"))!==null;m.push({text:C,page:O,active:D,disabled:P})}return m},viewStateValue:f=>{const m=f==null?void 0:f.querySelector("#__VIEWSTATE");return m?m.value:""},viewStateGeneratorValue:f=>{const m=f==null?void 0:f.querySelector("#__VIEWSTATEGENERATOR");return m?m.value:""},eventValidationValue:f=>{const m=f==null?void 0:f.querySelector("#__EVENTVALIDATION");return m?m.value:""}});return{newsItems:r,pagination:a,loading:e,onChangePage:async f=>{var m;t(!0);try{const p=((m=a.find(N=>N.active))==null?void 0:m.page)??f-1,v={__EVENTTARGET:"ctl00$mainContent$pg",__VIEWSTATE:s,__VIEWSTATEGENERATOR:i,__EVENTVALIDATION:u,__EVENTARGUMENT:f,ctl00$mainContent$pg_input:p},y=await tn.post("",v,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),T=new DOMParser().parseFromString(y.data,"text/html").querySelector(".container");n(T),window.scrollTo({top:0,behavior:"smooth"})}catch(p){console.error("Error changing page:",p)}finally{t(!1)}}}},mfe=()=>c.jsxs(ht,{children:[c.jsx("div",{className:"h-14 flex items-center mb-6",children:c.jsx(Le,{className:"h-9 w-[120px]"})}),c.jsxs(ct,{children:[c.jsx(Yt,{className:"pb-4",children:c.jsx(Le,{className:"h-7 w-[120px]"})}),c.jsx(Nt,{children:[...Array(5)].map((e,t)=>c.jsxs("div",{className:"mb-6",children:[c.jsx(Le,{className:"h-6 w-[350px] mb-2"}),c.jsx(Le,{className:"h-4 w-[200px]"})]},t))}),c.jsx($c,{className:"flex justify-center pt-2 pb-6",children:c.jsx("div",{className:"flex gap-1",children:[...Array(5)].map((e,t)=>c.jsx(Le,{className:"h-9 w-9"},t))})})]})]}),bM=()=>{const{loading:e}=fn(),{newsItems:t,pagination:n,loading:r,onChangePage:a}=hfe(),s=Ge(),i=Rn().pathname.includes("/PlusNews.aspx");return e?c.jsx(mfe,{}):c.jsx(S.Fragment,{children:c.jsx(ht,{children:c.jsxs(ct,{className:r?"opacity-60 pointer-events-none":"",children:[c.jsxs(Yt,{children:[c.jsx(Zn,{children:i?s.formatMessage({id:"NEWS.TITLE"}):s.formatMessage({id:"NEWS.LATEST"})}),c.jsx(fg,{children:!i&&c.jsx(ke,{variant:"outline",size:"sm",asChild:!0,children:c.jsx(Pt,{to:"/CmsFAP/PlusNews.aspx",children:s.formatMessage({id:"NEWS.VIEW_ALL"})})})})]}),c.jsx(Nt,{children:t.length>0?t.map((u,d)=>c.jsxs("div",{className:"mb-6 pb-4 border-b border-border last:border-b-0 last:mb-0 last:pb-0",children:[c.jsx(Pt,{to:`/CmsFAP/NewsDetail.aspx?id=${u.id}`,className:"text-md font-medium text-primary hover:text-primary/80 mb-1 block",children:u.title}),c.jsxs("div",{className:"flex items-center text-sm text-muted-foreground",children:[c.jsx(m8,{className:"h-4 w-4 mr-1.5"}),c.jsx("span",{children:s.formatMessage({id:"NEWS.POSTED_AT"},{date:u.dateTime})})]})]},d)):c.jsx("div",{className:"text-center py-8 text-muted-foreground",children:s.formatMessage({id:"NEWS.EMPTY"})})}),n.length>0&&c.jsx($c,{className:"flex justify-center pt-2 pb-6",children:c.jsx("div",{className:"flex gap-1",children:n.map((u,d)=>c.jsx(ke,{variant:u.active?"primary":"outline",size:"sm",disabled:u.disabled||r,onClick:()=>a(u.page),className:X("h-9 w-9 p-0",u.text==="..."&&"cursor-default"),children:u.text},d))})})]})})})},pfe=()=>Mn({title:e=>{var t,n;return((n=(t=e==null?void 0:e.querySelector(".fon31"))==null?void 0:t.textContent)==null?void 0:n.trim())??""},authorInfo:e=>{var n,r;const t=(n=e==null?void 0:e.querySelector("#ctl00_mainContent_divContent"))==null?void 0:n.childNodes[2];return((r=t==null?void 0:t.textContent)==null?void 0:r.trim())??""},author:e=>{var r,a;const n=(((a=(r=e==null?void 0:e.querySelector("#ctl00_mainContent_divContent"))==null?void 0:r.childNodes[2])==null?void 0:a.textContent)??"").match(/Post by (\w+) on/);return n?n[1]:""},publishDate:e=>{var r,a;const n=(((a=(r=e==null?void 0:e.querySelector("#ctl00_mainContent_divContent"))==null?void 0:r.childNodes[2])==null?void 0:a.textContent)??"").match(/on (\d{2}\/\d{2}\/\d{2} \d{2}:\d{2})/);return n?n[1]:""},content:e=>{var s;const t=e==null?void 0:e.querySelector("#ctl00_mainContent_divContent");if(!t)return"";const n=t.cloneNode(!0),r=n.querySelector(".fon31");return r&&r.remove(),n.childNodes.length>1&&(n.removeChild(n.childNodes[0]),n.childNodes.length>0&&n.removeChild(n.childNodes[0]),n.childNodes.length>0&&n.removeChild(n.childNodes[0]),n.childNodes.length>0&&n.removeChild(n.childNodes[0])),n.querySelectorAll("a").forEach(i=>{i.setAttribute("target","_blank"),i.setAttribute("rel","noopener noreferrer")}),((s=n.innerHTML)==null?void 0:s.trim())??""}}),gfe=()=>c.jsxs(ht,{children:[c.jsx("div",{className:"h-14 flex items-center mb-6",children:c.jsx(Le,{className:"h-9 w-[250px]"})}),c.jsx("div",{className:"flex items-center mb-6",children:c.jsx(Le,{className:"h-5 w-[400px]"})}),c.jsxs(ct,{children:[c.jsxs(Yt,{className:"pb-4 space-y-2",children:[c.jsx(Le,{className:"h-8 w-[80%]"}),c.jsxs("div",{className:"flex space-x-4",children:[c.jsx(Le,{className:"h-5 w-[150px]"}),c.jsx(Le,{className:"h-5 w-[120px]"})]})]}),c.jsxs(Nt,{children:[c.jsx(Le,{className:"h-4 w-full mb-3"}),c.jsx(Le,{className:"h-4 w-[90%] mb-3"}),c.jsx(Le,{className:"h-4 w-[95%] mb-3"}),c.jsx(Le,{className:"h-4 w-full mb-6"}),c.jsx(Le,{className:"h-4 w-[60%] mb-3"}),c.jsx(Le,{className:"h-4 w-[80%] mb-3"}),c.jsx(Le,{className:"h-4 w-[75%]"})]}),c.jsx($c,{children:c.jsx(Le,{className:"h-10 w-28"})})]})]}),vfe=()=>{const e=OE(),{loading:t}=fn(),{title:n,author:r,publishDate:a,content:s,authorInfo:i}=pfe(),u=Ge();return t?c.jsx(gfe,{}):c.jsxs(S.Fragment,{children:[c.jsx(ht,{className:"mb-6",children:c.jsxs("div",{className:"flex items-center text-sm text-muted-foreground",children:[c.jsx(ke,{variant:"ghost",size:"sm",className:"p-0 h-auto",onClick:()=>e("/"),children:c.jsx(Km,{className:"h-3.5 w-3.5"})}),c.jsx(Ec,{className:"h-4 w-4 mx-2"}),c.jsx(ke,{variant:"ghost",size:"sm",className:"p-0 h-auto",onClick:()=>e("/CmsFAP/News.aspx"),children:u.formatMessage({id:"NEWS.BREADCRUMB.NEWS"})}),c.jsx(Ec,{className:"h-4 w-4 mx-2"}),c.jsx("span",{className:"truncate max-w-xs",children:n})]})}),c.jsx(ht,{children:c.jsxs(ct,{className:"overflow-hidden border-none shadow-lg",children:[c.jsx("div",{className:"w-full h-1 bg-gradient-to-r from-primary/80 to-primary"}),c.jsx(Yt,{className:"pb-4 pt-6",children:c.jsxs("div",{className:"flex flex-col",children:[c.jsx("h1",{className:"text-xl font-bold text-foreground leading-tight",children:n}),c.jsxs("div",{className:"flex flex-wrap items-center gap-4 mt-3 text-sm text-muted-foreground",children:[r&&c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(jo,{className:"h-4 w-4 text-primary/70"}),c.jsx("span",{children:r})]}),a&&c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(ea,{className:"h-4 w-4 text-primary/70"}),c.jsx("span",{children:a})]})]})]})}),c.jsx(Nt,{className:"pt-6",children:c.jsx("div",{className:"prose max-w-none prose-headings:font-semibold prose-headings:text-foreground prose-p:text-muted-foreground prose-p:leading-relaxed prose-a:text-primary prose-a:no-underline hover:prose-a:underline prose-strong:text-foreground prose-strong:font-semibold prose-ul:text-muted-foreground prose-ol:text-muted-foreground prose-li:marker:text-primary/40",dangerouslySetInnerHTML:{__html:s??""}})}),c.jsx($c,{className:"flex justify-between py-4",children:c.jsxs(ke,{variant:"outline",onClick:()=>e("/CmsFAP/News.aspx"),className:"flex items-center",size:"sm",children:[c.jsx(Up,{className:"h-4 w-4 mr-2"}),u.formatMessage({id:"NEWS.DETAIL.BACK_TO_NEWS"})]})})]})})]})},yfe=()=>Mn({groupName:e=>{var t,n,r;return((r=(n=(t=e==null?void 0:e.querySelector("#ctl00_mainContent_divGroup"))==null?void 0:t.querySelector("b"))==null?void 0:n.textContent)==null?void 0:r.trim())??""},courseName:e=>{var t,n,r;return((r=(n=(t=e==null?void 0:e.querySelector("#ctl00_mainContent_divCourse"))==null?void 0:t.querySelector("b"))==null?void 0:n.textContent)==null?void 0:r.trim())??""},members:e=>{var r,a,s,i;const t=e==null?void 0:e.querySelector("#ctl00_mainContent_divStudents table"),n=[];if(t)for(let u=1;u<t.rows.length;u++){const d=t.rows[u];if(d.cells.length>=6){const f=((r=d.cells[3].textContent)==null?void 0:r.trim())??"",m=((a=d.cells[4].textContent)==null?void 0:a.trim())??"",p=((s=d.cells[5].textContent)==null?void 0:s.trim())??"",v=`${f} ${m} ${p}`.trim();n.push({id:u,rollNumber:((i=d.cells[2].textContent)==null?void 0:i.trim())??"",surname:f,middleName:m,givenName:p,fullName:v})}}return n},currentRollNumber:e=>{var r;const n=(((r=e==null?void 0:e.querySelector("#ctl00_lblLogIn"))==null?void 0:r.textContent)??"").match(/\(([^)]+)\)/);return n?n[1].toLowerCase():""}}),xfe=()=>c.jsxs(ht,{children:[c.jsx("div",{className:"h-14 flex items-center mb-6",children:c.jsx(Le,{className:"h-9 w-[200px]"})}),c.jsx("div",{className:"mb-6",children:c.jsx(Le,{className:"h-10 w-[300px] mb-3"})}),c.jsxs(ct,{children:[c.jsx(Yt,{className:"pb-4",children:c.jsx(Le,{className:"h-7 w-[200px]"})}),c.jsx(Nt,{className:"p-0",children:c.jsx(Le,{className:"h-[400px] w-full"})})]})]}),bfe=()=>{const{loading:e}=fn(),{courseName:t,groupName:n,members:r,currentRollNumber:a}=yfe(),s=Ge();return e?c.jsx(xfe,{}):c.jsxs(S.Fragment,{children:[c.jsx(ht,{className:"mb-6",children:c.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-3",children:[c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center mr-3",children:c.jsx(rs,{className:"text-primary h-5 w-5"})}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-lg font-semibold mb-0.5",children:t}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:[s.formatMessage({id:"GROUPS.COURSE.GROUP_LABEL"})," ",c.jsx("span",{className:"font-semibold text-primary",children:n})]})]})]}),c.jsx("div",{className:"md:ml-auto",children:c.jsxs("div",{className:"text-sm text-muted-foreground flex items-center",children:[c.jsxs("span",{children:[s.formatMessage({id:"GROUPS.STATS.TOTAL"})," "]}),c.jsxs("span",{className:"font-medium ml-1",children:[r.length," ",s.formatMessage({id:"GROUPS.STATS.STUDENTS"})]})]})})]})}),c.jsx(ht,{children:c.jsxs(ct,{children:[c.jsxs(Yt,{children:[c.jsx(Zn,{children:s.formatMessage({id:"GROUPS.TABLE.TITLE"})}),c.jsx(mp,{children:s.formatMessage({id:"GROUPS.TABLE.DESCRIPTION"},{groupName:n,courseName:t})})]}),c.jsx(mf,{children:c.jsxs(Af,{children:[c.jsxs(Na,{children:[c.jsx(wa,{children:c.jsxs(en,{className:"bg-accent/60",children:[c.jsx(Fe,{className:"w-14 h-10",children:s.formatMessage({id:"GROUPS.TABLE.NO"})}),c.jsx(Fe,{className:"min-w-28 h-10",children:s.formatMessage({id:"GROUPS.TABLE.ROLL_NUMBER"})}),c.jsx(Fe,{className:"min-w-28 h-10",children:s.formatMessage({id:"GROUPS.TABLE.SURNAME"})}),c.jsx(Fe,{className:"min-w-28 h-10",children:s.formatMessage({id:"GROUPS.TABLE.MIDDLE_NAME"})}),c.jsx(Fe,{className:"min-w-28 h-10",children:s.formatMessage({id:"GROUPS.TABLE.GIVEN_NAME"})}),c.jsx(Fe,{className:"min-w-60 h-10",children:s.formatMessage({id:"GROUPS.TABLE.FULL_NAME"})})]})}),c.jsx(Ca,{children:r.map(i=>c.jsxs(en,{className:X("hover:bg-accent/50",a===i.rollNumber.toLowerCase()&&"bg-primary/10"),children:[c.jsx(Qe,{className:"text-sm text-foreground font-normal",children:i.id}),c.jsx(Qe,{className:"text-sm text-primary font-semibold",children:i.rollNumber}),c.jsx(Qe,{className:"text-sm text-foreground font-medium",children:i.surname}),c.jsx(Qe,{className:"text-sm text-foreground font-medium",children:i.middleName}),c.jsx(Qe,{className:"text-sm text-foreground font-medium",children:i.givenName}),c.jsx(Qe,{className:"text-sm text-foreground",children:c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:"size-6 rounded-full bg-secondary/30 flex items-center justify-center mr-2",children:c.jsx(jo,{className:"h-3.5 w-3.5 text-secondary-foreground"})}),i.fullName,a===i.rollNumber.toLowerCase()&&c.jsx("span",{className:"ml-2 text-xs bg-primary/10 text-primary px-2 py-0.5 rounded-full",children:s.formatMessage({id:"GROUPS.TABLE.YOU"})})]})})]},i.id))})]}),c.jsx(_f,{orientation:"horizontal"})]})})]})})]})};var Fn=(e=>(e.UPCOMING="upcoming",e.ONGOING="ongoing",e.COMPLETED="completed",e))(Fn||{});const mx=({exam:e})=>{const t=Ge(),n=i=>{switch(i){case Fn.UPCOMING:return"bg-accent/10 text-accent border-accent/20";case Fn.ONGOING:return"bg-emerald-500/10 text-emerald-400 border-emerald-500/20";case Fn.COMPLETED:return"bg-muted-foreground/10 text-muted-foreground border-muted-foreground/20";default:return"bg-muted-foreground/10 text-muted-foreground border-muted-foreground/20"}},r=i=>{switch(i){case Fn.UPCOMING:return t.formatMessage({id:"EXAM.STATUS.UPCOMING"});case Fn.ONGOING:return t.formatMessage({id:"EXAM.STATUS.ONGOING"});case Fn.COMPLETED:return t.formatMessage({id:"EXAM.STATUS.COMPLETED"});default:return t.formatMessage({id:"EXAM.STATUS.UNKNOWN"})}},a=i=>{const u=i.toLowerCase();return u==="fe"||u.includes("final")?"bg-purple-500/10 text-purple-400 border-purple-500/20":u.includes("2nd")||u.includes("resit")?"bg-amber-500/10 text-amber-400 border-amber-500/20":u==="pe"||u.includes("practice")?"bg-emerald-500/10 text-emerald-400 border-emerald-500/20":u==="te"||u.includes("theory")?"bg-accent/10 text-accent border-accent/20":u.includes("midterm")||u.includes("quiz")?"bg-pink-500/10 text-pink-400 border-pink-500/20":u.includes("prog")?"bg-cyan-500/10 text-cyan-400 border-cyan-500/20":u.includes("assignment")?"bg-teal-500/10 text-teal-400 border-teal-500/20":"bg-muted-foreground/10 text-muted-foreground border-muted-foreground/20"},s=i=>i.replace("-"," - ").replace("h",":");return c.jsxs(ct,{className:"h-full transition-all duration-200 overflow-hidden",children:[c.jsxs(Yt,{className:"p-4 pt-2 pb-2 flex flex-row justify-between items-center",children:[c.jsxs("div",{className:"flex flex-wrap gap-1",children:[c.jsxs(kt,{className:X("px-2.5 py-0.5 text-xs font-medium border",n(e.status)),children:[r(e.status),e.timeRemaining&&e.status===Fn.UPCOMING&&c.jsxs("span",{className:"ml-1",children:["• ",e.timeRemaining]})]}),c.jsx(kt,{className:X("px-2 py-0.5 text-xs border",a(e.type)),children:e.type})]}),c.jsxs("div",{className:"flex-shrink-0 text-right",children:[c.jsx("p",{className:"text-xl font-bold text-primary",children:e.subjectCode}),c.jsx("p",{className:"text-2sm text-muted-foreground text-right",children:e.form.replace(/_/g," ")})]})]}),c.jsxs(Nt,{className:"p-4 pt-2",children:[c.jsx("h3",{className:"text-base font-medium text-foreground/80 mb-3 line-clamp-2",children:e.subjectName}),c.jsxs("div",{className:"grid grid-cols-2 gap-y-2",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(ea,{className:"h-4 w-4 text-accent"}),c.jsx("span",{className:"text-sm text-muted-foreground font-medium",children:t.formatMessage({id:"EXAM.CARD.EXAM_DATE"})})]}),c.jsx("div",{className:"text-sm text-foreground/80 text-right",children:e.date}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Gs,{className:"h-4 w-4 text-accent"}),c.jsx("span",{className:"text-sm text-muted-foreground font-medium",children:t.formatMessage({id:"EXAM.CARD.EXAM_TIME"})})]}),c.jsx("div",{className:"text-sm text-foreground/80 text-right",children:s(e.time)}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Bp,{className:"h-4 w-4 text-accent"}),c.jsx("span",{className:"text-sm text-muted-foreground font-medium",children:t.formatMessage({id:"EXAM.CARD.ROOM_NO"})})]}),c.jsx("div",{className:"text-sm text-foreground/80 text-right",children:e.room?e.room:c.jsx("span",{className:"italic text-muted-foreground",children:t.formatMessage({id:"EXAM.CARD.NOT_ASSIGNED"})})}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(EV,{className:"h-4 w-4 text-accent"}),c.jsx("span",{className:"text-sm text-muted-foreground font-medium",children:t.formatMessage({id:"EXAM.CARD.PUBLIC_DATE"})})]}),c.jsx("div",{className:"text-sm text-foreground/80 text-right",children:s(e.publicDate)})]}),e.status===Fn.UPCOMING&&e.timeRemaining&&c.jsxs("div",{className:X("mt-3 p-2 rounded-lg text-xs font-medium flex items-center gap-1.5","bg-accent/5 text-accent border border-accent/20"),children:[c.jsx(Zi,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:t.formatMessage({id:"EXAM.CARD.COMING_UP"},{timeRemaining:e.timeRemaining})})]})]})]})},Efe=()=>{const e=Ge(),{getData:t,loading:n}=fn(),[r,a]=S.useState([]),[s,i]=S.useState(!0),u=(f,m)=>{if(!(!f||!m))try{const[p]=m.split("-"),[v,y]=p.split("h").map(Number),[x,b,T]=f.split("/").map(Number),C=new Date(T,b-1,x,v,y).getTime()-new Date().getTime();if(C<0)return;if(C>864e5){const A=Math.floor(C/864e5);return`${A} ${e.formatMessage({id:"EXAM.TIME.DAYS"},{count:A})}`}else{const A=Math.floor(C/36e5);return`${A} ${e.formatMessage({id:"EXAM.TIME.HOURS"},{count:A})}`}}catch(p){console.error("Error calculating time remaining:",p);return}};S.useEffect(()=>{const f=()=>{var y,x,b,T,N,C,A,R;const v=t();if(!v)return[];try{const _=v.querySelector("#ctl00_mainContent_divContent table");if(!_)return[];const O=_.querySelectorAll("tr"),D=[];for(let P=1;P<O.length;P++){const U=O[P].querySelectorAll("td");if(U.length>=9){const B=((y=U[1].textContent)==null?void 0:y.trim())||"",H=((x=U[2].textContent)==null?void 0:x.trim())||"",Z=((b=U[3].textContent)==null?void 0:b.trim())||"",ee=((T=U[4].textContent)==null?void 0:T.trim())||"",Q=((N=U[5].textContent)==null?void 0:N.trim())||"",j=((C=U[6].textContent)==null?void 0:C.trim())||"",Y=((A=U[7].textContent)==null?void 0:A.trim())||"",V=((R=U[8].textContent)==null?void 0:R.trim())||"",te=m(Z,Q);D.push({id:`${B}-${Z.replace(/\//g,"")}-${Q.replace(/[h:-]/g,"")}`,subjectCode:B,subjectName:H,date:Z,room:ee,time:Q,form:j,type:Y,publicDate:V,status:te,timeRemaining:u(Z,Q)})}}return D.sort((P,L)=>{const[U,B,H]=P.date.split("/").map(Number),[Z,ee,Q]=L.date.split("/").map(Number),j=new Date(H,B-1,U),Y=new Date(Q,ee-1,Z);return j.getTime()-Y.getTime()})}catch(_){return console.error("Error extracting exam schedule:",_),[]}},m=(v,y)=>{if(!v||!y)return Fn.UPCOMING;try{const[x,b,T]=v.split("/").map(Number),[N]=y.split("-"),[C,A]=N.split("h").map(Number),R=new Date(T,b-1,x,C,A),_=new Date,O=new Date(R);return O.setHours(O.getHours()+2),_<R?Fn.UPCOMING:_>=R&&_<=O?Fn.ONGOING:Fn.COMPLETED}catch(x){return console.error("Error calculating exam status:",x),Fn.UPCOMING}};i(!0);const p=setTimeout(()=>{a(f()),i(!1)},300);return()=>clearTimeout(p)},[t,e]);const d=S.useMemo(()=>({upcoming:r.filter(f=>f.status===Fn.UPCOMING||f.status===Fn.ONGOING),completed:r.filter(f=>f.status===Fn.COMPLETED)}),[r]);return{exams:r,groupedExams:d,loading:s||n}},px=()=>c.jsxs(ct,{className:"h-full animate-pulse overflow-hidden",children:[c.jsxs("div",{className:"p-4 pb-0 flex flex-row justify-between items-start",children:[c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx("div",{className:"bg-muted/60 h-5 w-24 rounded"}),c.jsxs("div",{className:"flex gap-1.5 mt-1",children:[c.jsx("div",{className:"bg-muted/60 h-5 w-16 rounded"}),c.jsx("div",{className:"bg-muted/60 h-5 w-16 rounded"})]})]}),c.jsxs("div",{className:"flex-shrink-0 text-right",children:[c.jsx("div",{className:"bg-muted/60 h-6 w-20 rounded mb-1"}),c.jsx("div",{className:"bg-muted/60 h-4 w-16 rounded float-right"})]})]}),c.jsxs("div",{className:"p-4 pt-3",children:[c.jsx("div",{className:"bg-muted/60 h-5 w-full rounded mb-4"}),c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"bg-muted/60 h-4 w-4 rounded-full"}),c.jsx("div",{className:"bg-muted/60 h-4 w-32 rounded"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"bg-muted/60 h-4 w-4 rounded-full"}),c.jsx("div",{className:"bg-muted/60 h-4 w-24 rounded"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"bg-muted/60 h-4 w-4 rounded-full"}),c.jsx("div",{className:"bg-muted/60 h-4 w-28 rounded"})]})]})]})]}),Sfe=()=>{const e=Ge(),{exams:t,groupedExams:n,loading:r}=Efe(),[a,s]=S.useState("all"),[i,u]=S.useState(t);S.useEffect(()=>{u(a==="all"?t:a==="upcoming"?n.upcoming:n.completed)},[a,t,n]);const d=f=>{s(f)};return c.jsxs(ht,{children:[c.jsxs("div",{className:"flex flex-wrap gap-4 mb-6",children:[c.jsx(ct,{className:"bg-white/[0.03] border-white/10",children:c.jsxs(Nt,{className:"p-3 flex items-center gap-2",children:[c.jsx($i,{className:"h-5 w-5 text-accent"}),c.jsxs("span",{className:"text-sm font-medium text-foreground",children:[e.formatMessage({id:"EXAM.STATS.TOTAL"})," ",c.jsx("strong",{children:t.length})]})]})}),c.jsx(ct,{className:"bg-accent/5 border-accent/15",children:c.jsxs(Nt,{className:"p-3 flex items-center gap-2",children:[c.jsx(kt,{className:"bg-accent/15 text-accent border-none h-5 w-5 p-0 flex items-center justify-center",children:n.upcoming.length}),c.jsx("span",{className:"text-sm font-medium text-accent",children:e.formatMessage({id:"EXAM.STATS.UPCOMING"})}),n.upcoming.length>0&&c.jsxs("span",{className:"text-xs text-accent/70 font-medium",children:["· ",e.formatMessage({id:"EXAM.STATS.NEXT"})," ",n.upcoming[0].date]})]})}),c.jsx(ct,{className:"bg-white/[0.02] border-white/10",children:c.jsxs(Nt,{className:"p-3 flex items-center gap-2",children:[c.jsx(kt,{className:"bg-muted-foreground/15 text-muted-foreground border-none h-5 w-5 p-0 flex items-center justify-center",children:n.completed.length}),c.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:e.formatMessage({id:"EXAM.STATS.COMPLETED"})}),t.length>0&&n.completed.length>0&&c.jsxs("span",{className:"text-xs text-muted-foreground/70 font-medium",children:["· ",(n.completed.length/t.length*100).toFixed(0),e.formatMessage({id:"EXAM.STATS.COMPLETE_PERCENTAGE"})]})]})})]}),c.jsxs(cc,{value:a,onValueChange:d,className:"mb-8",children:[c.jsxs(jd,{variant:"line",className:"mb-6",children:[c.jsxs(Lr,{value:"all",children:[e.formatMessage({id:"EXAM.TABS.ALL_EXAMS"}),c.jsx(kt,{className:"ml-2 bg-accent/10 text-accent border-none",children:t.length})]}),c.jsxs(Lr,{value:"upcoming",children:[e.formatMessage({id:"EXAM.STATS.UPCOMING"}),c.jsx(kt,{className:"ml-2 bg-accent/10 text-accent border-none",children:n.upcoming.length})]}),c.jsxs(Lr,{value:"completed",children:[e.formatMessage({id:"EXAM.STATS.COMPLETED"}),c.jsx(kt,{className:"ml-2 bg-muted-foreground/15 text-muted-foreground border-none",children:n.completed.length})]})]}),c.jsx(Gi,{value:"all",className:"m-0",children:r?c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(3)].map((f,m)=>c.jsx(px,{},m))}):c.jsx(c.Fragment,{children:t.length===0?c.jsxs("div",{className:"text-center py-12",children:[c.jsx(FE,{className:"mx-auto h-12 w-12 text-muted-foreground/50 mb-4"}),c.jsx("p",{className:"text-lg font-medium mb-1 text-foreground",children:e.formatMessage({id:"EXAM.EMPTY.NO_EXAMS_TITLE"})}),c.jsx("p",{className:"text-muted-foreground",children:e.formatMessage({id:"EXAM.EMPTY.NO_EXAMS_MESSAGE"})})]}):c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:t.map(f=>c.jsx(mx,{exam:f},f.id))})})}),c.jsx(Gi,{value:"upcoming",className:"m-0",children:r?c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(2)].map((f,m)=>c.jsx(px,{},m))}):c.jsx(c.Fragment,{children:n.upcoming.length===0?c.jsxs("div",{className:"text-center py-12",children:[c.jsx($i,{className:"mx-auto h-12 w-12 text-muted-foreground/50 mb-4"}),c.jsx("p",{className:"text-lg font-medium mb-1 text-foreground",children:e.formatMessage({id:"EXAM.EMPTY.NO_UPCOMING_TITLE"})}),c.jsx("p",{className:"text-muted-foreground",children:e.formatMessage({id:"EXAM.EMPTY.NO_UPCOMING_MESSAGE"})})]}):c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:n.upcoming.map(f=>c.jsx(mx,{exam:f},f.id))})})}),c.jsx(Gi,{value:"completed",className:"m-0",children:r?c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(2)].map((f,m)=>c.jsx(px,{},m))}):c.jsx(c.Fragment,{children:n.completed.length===0?c.jsxs("div",{className:"text-center py-12",children:[c.jsx(Kd,{className:"mx-auto h-12 w-12 text-muted-foreground/50 mb-4"}),c.jsx("p",{className:"text-lg font-medium mb-1 text-foreground",children:e.formatMessage({id:"EXAM.EMPTY.NO_COMPLETED_TITLE"})}),c.jsx("p",{className:"text-muted-foreground",children:e.formatMessage({id:"EXAM.EMPTY.NO_COMPLETED_MESSAGE"})})]}):c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:n.completed.map(f=>c.jsx(mx,{exam:f},f.id))})})})]})]})};function Tfe(){return c.jsx(c.Fragment,{children:c.jsxs("div",{className:"flex justify-center items-center grow bg-[#e5e5e5] dark:bg-[#121212] relative overflow-hidden min-h-screen",children:[c.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(0,0,0,0.06)_2px,transparent_2px),linear-gradient(90deg,rgba(0,0,0,0.06)_2px,transparent_2px)] [background-size:24px_24px] dark:bg-[linear-gradient(rgba(255,255,255,0.02)_2px,transparent_2px),linear-gradient(90deg,rgba(255,255,255,0.02)_2px,transparent_2px)] pointer-events-none"}),c.jsx("div",{className:"w-full max-w-[420px] neo-card bg-white dark:bg-[#1e1e1e] z-10 p-8 shadow-[12px_12px_0px_0px_rgba(0,0,0,1)] dark:shadow-[12px_12px_0px_0px_rgba(255,255,255,1)]",children:c.jsx(PE,{})})]})})}const Nfe={googleColorful:e=>c.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",role:"img",...e,children:[c.jsx("path",{d:"M16.2449 13.8184V18.4657H22.8349C22.5455 19.9602 21.6771 21.2257 20.3747 22.0766L24.3487 25.0985C26.6642 23.004 28 19.9276 28 16.273C28 15.4221 27.9221 14.6039 27.7773 13.8185L16.2449 13.8184Z",fill:"#4285F4"}),c.jsx("path",{d:"M5.3137 10.6221C4.47886 12.2366 4.00024 14.0584 4.00024 16.0002C4.00024 17.942 4.47886 19.7639 5.3137 21.3784C5.3137 21.3892 9.388 18.2802 9.388 18.2802C9.14311 17.5602 8.99835 16.7966 8.99835 16.0001C8.99835 15.2036 9.14311 14.44 9.388 13.72L5.3137 10.6221Z",fill:"#FBBC05"}),c.jsx("path",{d:"M16.2448 8.77821C18.0482 8.77821 19.6511 9.3891 20.9313 10.5673L24.4378 7.13097C22.3116 5.18917 19.551 4 16.2448 4C11.4582 4 7.32833 6.69456 5.31348 10.6219L9.38766 13.7201C10.3561 10.8837 13.0611 8.77821 16.2448 8.77821Z",fill:"#EA4335"}),c.jsx("path",{d:"M9.38238 18.2842L8.48609 18.9566L5.31348 21.3784C7.32833 25.2947 11.4579 28.0002 16.2445 28.0002C19.5506 28.0002 22.3224 26.9311 24.3484 25.0984L20.3744 22.0766C19.2835 22.7966 17.892 23.233 16.2445 23.233C13.0609 23.233 10.3559 21.1275 9.38739 18.2911L9.38238 18.2842Z",fill:"#34A853"})]})},wfe=()=>{const{message:e}=WE({message:"#ctl00_mainContent_lblMessage"}),{viewStateValue:t,viewStateGeneratorValue:n,eventValidationValue:r,alertContent:a}=Mn({viewStateValue:s=>{const i=s==null?void 0:s.querySelector("#__VIEWSTATE");return i?i.value:""},viewStateGeneratorValue:s=>{const i=s==null?void 0:s.querySelector("#__VIEWSTATEGENERATOR");return i?i.value:""},eventValidationValue:s=>{const i=s==null?void 0:s.querySelector("#__EVENTVALIDATION");return i?i.value:""},alertContent:s=>{const i=s==null?void 0:s.querySelector("#ctl00_mainContent_alert"),u=i==null?void 0:i.querySelector("div");return u?(u.querySelectorAll("a").forEach(f=>{f.classList.add("text-primary")}),u.innerHTML):""}});return{message:e,viewStateValue:t,viewStateGeneratorValue:n,eventValidationValue:r,alertContent:a}},EM=()=>{const[e,t]=S.useState("3"),{message:n,viewStateValue:r,viewStateGeneratorValue:a,eventValidationValue:s,alertContent:i}=wfe(),u=Ge();S.useEffect(()=>{const p=localStorage.getItem("lastCampus");p&&t(p)},[]);const d=p=>{const v=document.getElementById("__EVENTTARGET");v&&(v.value=p)},f=()=>{localStorage.setItem("lastCampus",e),d("ctl00$mainContent$btnLogin")},m=()=>{d("ctl00$mainContent$btnloginFeId")};return c.jsxs("form",{className:"block w-full space-y-2",action:"./Default.aspx",method:"POST",children:[c.jsx("input",{type:"hidden",name:"__EVENTTARGET",id:"__EVENTTARGET",value:"ctl00$mainContent$btnLogin"}),c.jsx("input",{type:"hidden",name:"__EVENTARGUMENT",id:"__EVENTARGUMENT",value:""}),c.jsx("input",{type:"hidden",name:"__LASTFOCUS",id:"__LASTFOCUS",value:""}),c.jsx("input",{type:"hidden",name:"__VIEWSTATE",id:"__VIEWSTATE",value:r}),c.jsx("input",{type:"hidden",name:"__VIEWSTATEGENERATOR",id:"__VIEWSTATEGENERATOR",value:a}),c.jsx("input",{type:"hidden",name:"__EVENTVALIDATION",id:"__EVENTVALIDATION",value:s}),c.jsx("input",{type:"hidden",name:"ctl00$mainContent$ddlCampus",id:"ctl00_mainContent_ddlCampus",value:e}),c.jsx("input",{type:"hidden",name:"ctl00$mainContent$message",id:"ctl00_mainContent_message"}),c.jsxs("div",{className:"text-center space-y-2 pb-4",children:[c.jsx("h1",{className:"text-xl font-extrabold uppercase tracking-wider text-white border-b border-white/10 pb-2",children:u.formatMessage({id:"LOGIN.TITLE"})}),c.jsx("p",{className:"text-xs uppercase text-muted-foreground tracking-wider",children:u.formatMessage({id:"LOGIN.SUBTITLE"})})]}),n&&c.jsx("div",{className:"bg-destructive/15 text-destructive border border-destructive/25 p-3 rounded-xl text-xs font-bold",children:n}),i&&c.jsx("div",{className:"bg-destructive/15 text-destructive border border-destructive/25 p-3 rounded-xl text-xs font-bold",dangerouslySetInnerHTML:{__html:i}}),c.jsx("div",{className:"grow pb-2",children:c.jsxs($o,{value:e,onValueChange:p=>{p&&t(p)},children:[c.jsx(Yo,{className:"w-full h-12 border border-white/10 font-sans font-bold text-sm bg-white/5 text-white rounded-xl",children:c.jsx(qo,{placeholder:"Select Campus"})}),c.jsxs(Wo,{className:"border border-white/10 rounded-xl bg-[#131520] text-white",children:[c.jsx(ur,{className:"font-sans text-xs font-bold uppercase rounded-lg hover:bg-white/5 hover:text-accent",value:"3",children:"FU - Hòa Lạc"}),c.jsx(ur,{className:"font-sans text-xs font-bold uppercase rounded-lg hover:bg-white/5 hover:text-accent",value:"4",children:"FU - Hồ Chí Minh"}),c.jsx(ur,{className:"font-sans text-xs font-bold uppercase rounded-lg hover:bg-white/5 hover:text-accent",value:"5",children:"FU - Đà Nẵng"}),c.jsx(ur,{className:"font-sans text-xs font-bold uppercase rounded-lg hover:bg-white/5 hover:text-accent",value:"6",children:"FU - Cần Thơ"}),c.jsx(ur,{className:"font-sans text-xs font-bold uppercase rounded-lg hover:bg-white/5 hover:text-accent",value:"7",children:"FU - Quy Nhơn"})]})]})}),c.jsx("div",{className:"flex flex-col gap-3.5",children:c.jsxs(ke,{className:"neo-btn h-12 w-full text-xs font-bold rounded-xl",onClick:f,children:[c.jsx(Nfe.googleColorful,{className:"size-5!"})," ",u.formatMessage({id:"LOGIN.GOOGLE"})]})}),c.jsxs("div",{className:"relative py-3",children:[c.jsx("div",{className:"absolute inset-0 flex items-center",children:c.jsx("span",{className:"w-full border-t border-dashed border-white/10"})}),c.jsx("div",{className:"relative flex justify-center text-[10px] font-bold uppercase",children:c.jsx("span",{className:"bg-[#131520] px-3 border border-white/10 text-slate-400 rounded-full",children:u.formatMessage({id:"LOGIN.FEID_SEPARATOR"})})})]}),c.jsxs(ke,{type:"submit",className:"w-full h-12 neo-btn rounded-xl text-xs font-bold",onClick:m,children:[c.jsx(HE,{className:"size-4"}),u.formatMessage({id:"LOGIN.FEID"})]})]})},Cfe=()=>{const e=Ge(),[t,n]=S.useState([]),[r,a]=S.useState({}),{getData:s,loading:i}=fn();S.useEffect(()=>{n((()=>{var y,x;const v=s();if(!v)return[];try{const b=v.querySelectorAll("table")[2];if(!b)return[];const T=b.querySelectorAll("tr"),N=[];for(let C=2;C<T.length;C++){const R=T[C].querySelectorAll("td");if(R.length>=3){const _=((y=R[0].textContent)==null?void 0:y.trim())||"",D=(((x=R[2].querySelector("a"))==null?void 0:x.getAttribute("href"))||"").split("=")[1];_&&D&&N.push({question:_,id:D})}}return N}catch(b){return console.error("Error extracting help questions:",b),[]}})())},[s]);const u=async p=>{if(!r[p])try{const y=await(await fetch(`?Id=${p}`)).text(),T=new DOMParser().parseFromString(y,"text/html").querySelector("#ctl00_mainContent_lblContent");if(!T){a(A=>({...A,[p]:""}));return}let N=T.innerHTML||"";N=N.replace(/&nbsp;/g," "),N=N.replace(/style="[^"]*"/g,"");const C=d(N);a(A=>({...A,[p]:C}))}catch(v){console.error(`Error fetching answer for question ${p}:`,v),a(y=>({...y,[p]:e.formatMessage({id:"HELP.ERROR.LOADING_CONTENT"})}))}},d=p=>{if(!p||typeof p!="string")return"";try{const y=new DOMParser().parseFromString(p,"text/html");return y.querySelectorAll("script, iframe, object, embed, form, style").forEach(T=>T.remove()),y.querySelectorAll("*").forEach(T=>{const N=T.attributes;for(let C=N.length-1;C>=0;C--){const A=N[C].name;(A.startsWith("on")||A==="href"&&N[C].value.startsWith("javascript:"))&&T.removeAttribute(A)}}),y.body.innerHTML}catch(v){return console.error("Error sanitizing HTML:",v),""}};return{questions:t,answers:r,fetchAnswer:u,getAnswer:p=>{const v=r[p];return v!==void 0?v:""},isAnswerLoading:p=>!r[p],loading:i}},Afe=()=>{const e=Ge(),{questions:t,fetchAnswer:n,getAnswer:r,isAnswerLoading:a,loading:s}=Cfe(),[i,u]=S.useState({}),[d,f]=S.useState(""),[m,p]=S.useState([]);S.useEffect(()=>{if(!t.length){p([]);return}if(d.trim()==="")p(t);else{const x=d.toLowerCase();p(t.filter(b=>b.question.toLowerCase().includes(x)))}},[d,t]);const v=x=>{a(x)&&n(x),u(b=>({...b,[x]:!b[x]}))},y=()=>{f("")};return c.jsx(ht,{children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-6 mb-6",children:[c.jsx("div",{className:"md:col-span-8",children:c.jsxs(ct,{className:"relative overflow-hidden",children:[s&&c.jsx("div",{className:"absolute inset-0 bg-background/70 flex items-center justify-center z-10 rounded-xl backdrop-blur-sm",children:c.jsxs("div",{className:"flex flex-col items-center gap-2",children:[c.jsx(Sr,{className:"h-8 w-8 text-primary animate-spin"}),c.jsx("p",{className:"text-sm text-muted-foreground animate-pulse",children:e.formatMessage({id:"HELP.LOADING.QUESTIONS"})})]})}),c.jsx(Yt,{className:"border-b bg-muted/30",children:c.jsx("div",{className:"flex justify-between items-center",children:c.jsxs("div",{children:[c.jsx(Zn,{children:e.formatMessage({id:"HELP.TITLE"})}),c.jsx(mp,{children:e.formatMessage({id:"HELP.QUESTIONS_COUNT"},{count:m.length})})]})})}),c.jsx(Nt,{className:"p-5",children:c.jsxs("div",{className:"relative",children:[c.jsx(Hp,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground h-4 w-4"}),c.jsx(ac,{placeholder:e.formatMessage({id:"HELP.SEARCH.PLACEHOLDER"}),value:d,onChange:x=>f(x.target.value),className:"pl-9 pr-9"}),d&&c.jsx(ke,{variant:"ghost",className:"absolute right-1 top-1/2 transform -translate-y-1/2 h-7 w-7 p-0",onClick:y,children:c.jsx(Bc,{className:"h-4 w-4"})})]})}),c.jsx(Nt,{className:"p-0",children:c.jsx(Af,{className:"h-[calc(100vh-350px)]",children:c.jsx("div",{className:"flex flex-col p-1",children:m.length===0?c.jsx("div",{className:"text-muted-foreground text-center py-12 px-4",children:d?c.jsxs("div",{className:"flex flex-col items-center gap-2",children:[c.jsx(Dx,{className:"h-8 w-8 text-muted-foreground/50"}),c.jsxs("div",{children:[c.jsx("p",{className:"font-medium",children:e.formatMessage({id:"HELP.SEARCH.NO_MATCH_TITLE"})}),c.jsx("p",{className:"text-sm text-muted-foreground",children:e.formatMessage({id:"HELP.SEARCH.NO_MATCH_MESSAGE"},{clearLink:c.jsx(ke,{variant:"ghost",size:"sm",onClick:y,className:"p-0 h-auto",children:e.formatMessage({id:"HELP.SEARCH.CLEAR"})})})})]})]}):c.jsxs("div",{className:"flex flex-col items-center gap-2",children:[c.jsx(Dx,{className:"h-8 w-8 text-muted-foreground/50"}),c.jsx("p",{children:e.formatMessage({id:"HELP.EMPTY.NO_QUESTIONS"})})]})}):m.map((x,b)=>c.jsxs("div",{className:"mb-1",children:[c.jsxs("div",{className:X("flex items-center p-4 cursor-pointer hover:bg-muted/40 rounded-md transition-colors",i[x.id]&&"bg-muted/30"),onClick:()=>v(x.id),children:[c.jsx("div",{className:X("h-6 w-6 rounded-full flex items-center justify-center mr-3 border transition-colors",i[x.id]?"bg-primary border-primary text-white":"border-muted-foreground/30 text-muted-foreground"),children:c.jsx(Fc,{className:X("h-4 w-4 transition-transform duration-200",i[x.id]&&"transform rotate-180")})}),c.jsx("h3",{className:X("text-base transition-colors",i[x.id]?"font-medium":"font-normal text-muted-foreground"),children:x.question})]}),i[x.id]&&c.jsx("div",{className:"px-4 pb-5 pt-1",children:c.jsx("div",{className:"ml-9 pl-4 border-l border-muted",children:a(x.id)?c.jsxs("div",{className:"flex items-center py-6",children:[c.jsx(Sr,{className:"h-4 w-4 text-primary animate-spin mr-2"}),c.jsx("span",{className:"text-muted-foreground animate-pulse",children:e.formatMessage({id:"HELP.LOADING.ANSWER"})})]}):c.jsx(c.Fragment,{children:r(x.id)?c.jsx("div",{className:"prose prose-sm max-w-none text-muted-foreground py-2",dangerouslySetInnerHTML:{__html:r(x.id)}}):c.jsx("div",{className:"py-4 text-muted-foreground",children:c.jsx("p",{children:e.formatMessage({id:"HELP.ANSWER.NOT_AVAILABLE"})})})})})}),b<m.length-1&&c.jsx(F3,{className:"my-1"})]},x.id))})})})]})}),c.jsxs("div",{className:"md:col-span-4 space-y-6",children:[c.jsxs(ct,{children:[c.jsx(Yt,{className:"border-b bg-muted/30",children:c.jsx(Zn,{className:"text-base",children:e.formatMessage({id:"HELP.TIPS.TITLE"})})}),c.jsx(Nt,{className:"p-4",children:c.jsxs("ul",{className:"space-y-3 text-sm",children:[c.jsxs("li",{className:"flex gap-2",children:[c.jsx("div",{className:"bg-primary/10 rounded-full h-5 w-5 flex items-center justify-center flex-shrink-0 mt-0.5",children:c.jsx("span",{className:"text-primary text-xs font-medium",children:"1"})}),c.jsx("p",{className:"text-muted-foreground",children:e.formatMessage({id:"HELP.TIPS.TIP_1"})})]}),c.jsxs("li",{className:"flex gap-2",children:[c.jsx("div",{className:"bg-primary/10 rounded-full h-5 w-5 flex items-center justify-center flex-shrink-0 mt-0.5",children:c.jsx("span",{className:"text-primary text-xs font-medium",children:"2"})}),c.jsx("p",{className:"text-muted-foreground",children:e.formatMessage({id:"HELP.TIPS.TIP_2"})})]}),c.jsxs("li",{className:"flex gap-2",children:[c.jsx("div",{className:"bg-primary/10 rounded-full h-5 w-5 flex items-center justify-center flex-shrink-0 mt-0.5",children:c.jsx("span",{className:"text-primary text-xs font-medium",children:"3"})}),c.jsx("p",{className:"text-muted-foreground",children:e.formatMessage({id:"HELP.TIPS.TIP_3"})})]})]})})]}),c.jsxs(ct,{children:[c.jsx(Yt,{className:"border-b bg-muted/30",children:c.jsx(Zn,{className:"text-base",children:e.formatMessage({id:"HELP.CONTACT.TITLE"})})}),c.jsxs(Nt,{className:"p-4",children:[c.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:e.formatMessage({id:"HELP.CONTACT.MESSAGE"})}),c.jsxs("div",{className:"bg-muted/70 rounded-xl p-3 px-5 mb-4",children:[c.jsx("p",{className:"font-medium text-sm mb-2",children:e.formatMessage({id:"HELP.CONTACT.STUDENT_SERVICE_OFFICE"})}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex items-center text-sm text-muted-foreground",children:[c.jsx(HE,{className:"h-4 w-4 mr-2 text-primary"}),c.jsx("a",{href:"mailto:dichvusinhvien@fe.edu.vn",className:"hover:underline",children:"dichvusinhvien@fe.edu.vn"})]}),c.jsxs("div",{className:"flex items-center text-sm text-muted-foreground",children:[c.jsx(I2,{className:"h-4 w-4 mr-2 text-primary"}),c.jsx("a",{href:"tel:02473081313",className:"hover:underline",children:"(024)7308.13.13"})]})]})]})]})]})]})]})})},_fe=()=>{const[e,t]=S.useState("profile"),{image:n,fullName:r,rollNumber:a,email:s,phone:i,balance:u,profileData:d,academicData:f,parentData:m,otherData:p,loading:v}=Mn({image:x=>{const b=x==null?void 0:x.querySelector("#ctl00_mainContent_studentImage");return(b==null?void 0:b.src)||""},fullName:x=>{var b,T;return((T=(b=x==null?void 0:x.querySelector("#ctl00_mainContent_lblFullname"))==null?void 0:b.textContent)==null?void 0:T.trim())||""},rollNumber:x=>{var b,T;return((T=(b=x==null?void 0:x.querySelector("#ctl00_mainContent_lblRollNumber"))==null?void 0:b.textContent)==null?void 0:T.trim())||""},email:x=>{var C;const b=x==null?void 0:x.querySelector("#ctl00_mainContent_lblEmail"),T=b==null?void 0:b.querySelector('a[href^="mailto:"]');if(T){const A=T.getAttribute("href");if(A&&A.startsWith("mailto:"))return A.substring(7)}let N=((C=b==null?void 0:b.textContent)==null?void 0:C.trim())||"";if(N.includes("[email protected]")){const A=x==null?void 0:x.querySelectorAll("script");for(const R of Array.from(A||[])){const _=R.textContent||"";if(_.includes("mailto:")){const O=_.match(/mailto:([^\'"]+)/);if(O&&O[1])return O[1]}}return"Email address is protected"}return N},phone:x=>{var N;const b=x==null?void 0:x.querySelector("#ctl00_mainContent_lblPhoneNumber");let T=((N=b==null?void 0:b.textContent)==null?void 0:N.trim())||"";return T.includes(",")&&(T=T.split(",")[0].trim()),T},balance:x=>{var T;const b=x==null?void 0:x.querySelector("#ctl00_mainContent_lblAccBlance b");return((T=b==null?void 0:b.textContent)==null?void 0:T.trim())||""},profileData:x=>{const b=x==null?void 0:x.querySelectorAll("table"),T=b==null?void 0:b[3];return bm(T)},academicData:x=>{const b=x==null?void 0:x.querySelectorAll("table"),T=b==null?void 0:b[5];return bm(T)},parentData:x=>{const b=x==null?void 0:x.querySelectorAll("table"),T=b==null?void 0:b[4];return bm(T)},otherData:x=>{const b=x==null?void 0:x.querySelectorAll("table"),T=b==null?void 0:b[7];return bm(T)},loading:()=>!1});return{profileData:v?null:{image:n,fullName:r,rollNumber:a,email:s,phone:i,balance:u,profileData:d,academicData:f,parentData:m,otherData:p},loading:v,activeTab:e,setActiveTab:t}},bm=e=>{if(!e)return{};const t={};return e.querySelectorAll("tr").forEach(r=>{var s,i,u,d;const a=r.querySelectorAll("td");if(a.length>=2){const f=((i=(s=a[0])==null?void 0:s.textContent)==null?void 0:i.trim())||"",m=((d=(u=a[1])==null?void 0:u.textContent)==null?void 0:d.trim())||"";f&&(t[f]=m)}}),t},Em=({title:e,data:t,show:n})=>{const r=Ge();return n?c.jsxs(ct,{className:"shadow-sm overflow-hidden",children:[c.jsx(Yt,{className:"bg-muted/30 px-6 py-3",children:c.jsx(Zn,{children:c.jsx("span",{className:"text-base font-semibold",children:e})})}),c.jsx(Nt,{className:"p-0",children:Object.entries(t).length>0?c.jsx("div",{className:"divide-y divide-gray-100",children:Object.entries(t).map(([a,s],i)=>c.jsxs("div",{className:`flex flex-col sm:flex-row py-4 px-6 ${i%2===0?"bg-muted/10":""}`,children:[c.jsx("div",{className:"font-medium text-muted-foreground sm:w-1/3 mb-1 sm:mb-0 text-sm",children:a}),c.jsx("div",{className:"text-foreground sm:w-2/3 text-sm",children:s||c.jsx("span",{className:"text-muted-foreground italic",children:r.formatMessage({id:"PROFILE.CARD.NOT_PROVIDED"})})})]},a))}):c.jsxs("div",{className:"py-8 px-6 text-center",children:[c.jsx("div",{className:"flex justify-center mb-3",children:c.jsx("div",{className:"rounded-full bg-muted/30 p-3",children:c.jsx(Zi,{className:"h-6 w-6 text-muted-foreground"})})}),c.jsx("h3",{className:"text-base font-medium mb-1 text-foreground",children:r.formatMessage({id:"PROFILE.CARD.NO_INFORMATION_TITLE"})}),c.jsx("p",{className:"text-sm text-muted-foreground",children:r.formatMessage({id:"PROFILE.CARD.NO_INFORMATION_MESSAGE"},{title:e.toLowerCase()})})]})})]}):null},Rfe=()=>c.jsxs(S.Fragment,{children:[c.jsx("div",{className:"bg-muted/30 animate-pulse",children:c.jsxs("div",{className:"container mx-auto py-8 flex flex-col items-center gap-4",children:[c.jsx(Le,{className:"h-24 w-24 rounded-full"}),c.jsx(Le,{className:"h-6 w-44"}),c.jsxs("div",{className:"flex gap-4",children:[c.jsx(Le,{className:"h-4 w-28"}),c.jsx(Le,{className:"h-4 w-28"}),c.jsx(Le,{className:"h-4 w-28"})]})]})}),c.jsx("div",{className:"container mx-auto my-4",children:c.jsxs("div",{className:"flex justify-between border-b pb-4 mb-6",children:[c.jsxs("div",{className:"flex gap-4",children:[c.jsx(Le,{className:"h-8 w-16"}),c.jsx(Le,{className:"h-8 w-16"}),c.jsx(Le,{className:"h-8 w-16"}),c.jsx(Le,{className:"h-8 w-16"})]}),c.jsx("div",{className:"flex gap-3",children:c.jsx(Le,{className:"h-8 w-24"})})]})}),c.jsx("div",{className:"container mx-auto",children:c.jsxs(ct,{className:"shadow-sm overflow-hidden mb-6",children:[c.jsx(Yt,{className:"bg-muted/30 px-6 py-3 flex justify-between",children:c.jsx(Le,{className:"h-5 w-36"})}),c.jsx(Nt,{className:"p-0",children:Array(6).fill(0).map((e,t)=>c.jsxs("div",{className:`flex flex-col sm:flex-row py-4 px-6 ${t%2===0?"bg-muted/10":""}`,children:[c.jsx("div",{className:"sm:w-1/3 mb-2 sm:mb-0",children:c.jsx(Le,{className:"h-4 w-28"})}),c.jsx("div",{className:"sm:w-2/3",children:c.jsx(Le,{className:"h-4 w-full max-w-md"})})]},t))})]})})]});function Mfe({image:e,name:t,info:n}){const{theme:r}=AE(),a=s=>s.map((i,u)=>c.jsxs("div",{className:"flex gap-1.25 items-center",children:[i.icon&&c.jsx(i.icon,{size:16,className:"text-muted-foreground text-sm"}),i.email?c.jsx(Pt,{to:i.email,target:"_blank",className:"text-secondary-foreground font-medium hover:text-primary",rel:"noreferrer",children:i.email}):c.jsx("span",{className:"text-secondary-foreground font-medium",children:i.label})]},`info-${u}`));return c.jsx("div",{className:"bg-center bg-cover bg-no-repeat hero-bg",style:{backgroundImage:r==="dark"?`url('${ns("/media/images/2600x1200/bg-1-dark.png")}')`:`url('${ns("/media/images/2600x1200/bg-1.png")}')`},children:c.jsx(ht,{children:c.jsxs("div",{className:"flex flex-col items-center gap-2 lg:gap-3.5 py-4 lg:pt-5 lg:pb-10",children:[e,c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("div",{className:"text-lg leading-5 font-semibold text-mono",children:t}),c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",className:"text-primary",children:c.jsx("path",{d:"M14.5425 6.89749L13.5 5.83999C13.4273 5.76877 13.3699 5.6835 13.3312 5.58937C13.2925 5.49525 13.2734 5.39424 13.275 5.29249V3.79249C13.274 3.58699 13.2324 3.38371 13.1527 3.19432C13.0729 3.00494 12.9565 2.83318 12.8101 2.68892C12.6638 2.54466 12.4904 2.43073 12.2998 2.35369C12.1093 2.27665 11.9055 2.23801 11.7 2.23999H10.2C10.0982 2.24159 9.99722 2.22247 9.9031 2.18378C9.80898 2.1451 9.72371 2.08767 9.65249 2.01499L8.60249 0.957487C8.30998 0.665289 7.91344 0.50116 7.49999 0.50116C7.08654 0.50116 6.68999 0.665289 6.39749 0.957487L5.33999 1.99999C5.26876 2.07267 5.1835 2.1301 5.08937 2.16879C4.99525 2.20747 4.89424 2.22659 4.79249 2.22499H3.29249C3.08699 2.22597 2.88371 2.26754 2.69432 2.34731C2.50494 2.42709 2.33318 2.54349 2.18892 2.68985C2.04466 2.8362 1.93073 3.00961 1.85369 3.20013C1.77665 3.39064 1.73801 3.5945 1.73999 3.79999V5.29999C1.74159 5.40174 1.72247 5.50275 1.68378 5.59687C1.6451 5.691 1.58767 5.77627 1.51499 5.84749L0.457487 6.89749C0.165289 7.19 0.00115967 7.58654 0.00115967 7.99999C0.00115967 8.41344 0.165289 8.80998 0.457487 9.10249L1.49999 10.16C1.57267 10.2312 1.6301 10.3165 1.66878 10.4106C1.70747 10.5047 1.72659 10.6057 1.72499 10.7075V12.2075C1.72597 12.413 1.76754 12.6163 1.84731 12.8056C1.92709 12.995 2.04349 13.1668 2.18985 13.3111C2.3362 13.4553 2.50961 13.5692 2.70013 13.6463C2.89064 13.7233 3.0945 13.762 3.29999 13.76H4.79999C4.90174 13.7584 5.00275 13.7775 5.09687 13.8162C5.191 13.8549 5.27627 13.9123 5.34749 13.985L6.40499 15.0425C6.69749 15.3347 7.09404 15.4988 7.50749 15.4988C7.92094 15.4988 8.31748 15.3347 8.60999 15.0425L9.65999 14C9.73121 13.9273 9.81647 13.8699 9.9106 13.8312C10.0047 13.7925 10.1057 13.7734 10.2075 13.775H11.7075C12.1212 13.775 12.518 13.6106 12.8106 13.3181C13.1031 13.0255 13.2675 12.6287 13.2675 12.215V10.715C13.2659 10.6132 13.285 10.5122 13.3237 10.4181C13.3624 10.324 13.4198 10.2387 13.4925 10.1675L14.55 9.10999C14.6953 8.96452 14.8104 8.79176 14.8887 8.60164C14.9671 8.41152 15.007 8.20779 15.0063 8.00218C15.0056 7.79656 14.9643 7.59311 14.8847 7.40353C14.8051 7.21394 14.6888 7.04197 14.5425 6.89749ZM10.635 6.64999L6.95249 10.25C6.90055 10.3026 6.83864 10.3443 6.77038 10.3726C6.70212 10.4009 6.62889 10.4153 6.55499 10.415C6.48062 10.4139 6.40719 10.3982 6.33896 10.3685C6.27073 10.3389 6.20905 10.2961 6.15749 10.2425L4.37999 8.44249C4.32532 8.39044 4.28169 8.32793 4.25169 8.25867C4.22169 8.18941 4.20593 8.11482 4.20536 8.03934C4.20479 7.96387 4.21941 7.88905 4.24836 7.81934C4.27731 7.74964 4.31999 7.68647 4.37387 7.63361C4.42774 7.58074 4.4917 7.53926 4.56194 7.51163C4.63218 7.484 4.70726 7.47079 4.78271 7.47278C4.85816 7.47478 4.93244 7.49194 5.00112 7.52324C5.0698 7.55454 5.13148 7.59935 5.18249 7.65499L6.56249 9.05749L9.84749 5.84749C9.95296 5.74215 10.0959 5.68298 10.245 5.68298C10.394 5.68298 10.537 5.74215 10.6425 5.84749C10.6953 5.90034 10.737 5.96318 10.7653 6.03234C10.7935 6.1015 10.8077 6.1756 10.807 6.25031C10.8063 6.32502 10.7908 6.39884 10.7612 6.46746C10.7317 6.53608 10.6888 6.59813 10.635 6.64999Z",fill:"currentColor"})})]}),c.jsx("div",{className:"flex flex-wrap justify-center gap-1 lg:gap-4.5 text-sm",children:a(n)})]})})})}function B3({children:e}){return c.jsx("div",{className:"flex items-center flex-wrap md:flex-nowrap lg:items-end justify-between border-b border-border gap-3 lg:gap-6 mb-5 lg:mb-10",children:e})}function Ofe({children:e}){return c.jsx("div",{className:"flex items-center justify-end grow lg:grow-0 lg:pb-4 gap-2.5 mb-1.5 lg:mb-0",children:e})}var gx={exports:{}},vx={};/**
 * @license React
 * use-sync-external-store-shim.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 SM;function Dfe(){if(SM)return vx;SM=1;var e=Pp();function t(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function u(p,v){var y=v(),x=r({inst:{value:y,getSnapshot:v}}),b=x[0].inst,T=x[1];return s(function(){b.value=y,b.getSnapshot=v,d(b)&&T({inst:b})},[p,y,v]),a(function(){return d(b)&&T({inst:b}),p(function(){d(b)&&T({inst:b})})},[p]),i(y),y}function d(p){var v=p.getSnapshot;p=p.value;try{var y=v();return!n(p,y)}catch{return!0}}function f(p,v){return v()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return vx.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,vx}var TM;function Ife(){return TM||(TM=1,gx.exports=Dfe()),gx.exports}var Pfe=Ife();function jfe(){return Pfe.useSyncExternalStore(Lfe,()=>!0,()=>!1)}function Lfe(){return()=>{}}var BS="Avatar",[kfe,Cpe]=Gn(BS),[Ufe,H3]=kfe(BS),V3=S.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[a,s]=S.useState("idle");return c.jsx(Ufe,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:s,children:c.jsx(ye.span,{...r,ref:t})})});V3.displayName=BS;var G3="AvatarImage",Ffe=S.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:a=()=>{},...s}=e,i=H3(G3,n),u=Hfe(r,s),d=It(f=>{a(f),i.onImageLoadingStatusChange(f)});return zt(()=>{u!=="idle"&&d(u)},[u,d]),u==="loaded"?c.jsx(ye.img,{...s,ref:t,src:r}):null});Ffe.displayName=G3;var z3="AvatarFallback",Bfe=S.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...a}=e,s=H3(z3,n),[i,u]=S.useState(r===void 0);return S.useEffect(()=>{if(r!==void 0){const d=window.setTimeout(()=>u(!0),r);return()=>window.clearTimeout(d)}},[r]),i&&s.imageLoadingStatus!=="loaded"?c.jsx(ye.span,{...a,ref:t}):null});Bfe.displayName=z3;function NM(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Hfe(e,{referrerPolicy:t,crossOrigin:n}){const r=jfe(),a=S.useRef(null),s=r?(a.current||(a.current=new window.Image),a.current):null,[i,u]=S.useState(()=>NM(s,e));return zt(()=>{u(NM(s,e))},[s,e]),zt(()=>{const d=p=>()=>{u(p)};if(!s)return;const f=d("loaded"),m=d("error");return s.addEventListener("load",f),s.addEventListener("error",m),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",f),s.removeEventListener("error",m)}},[s,n,t]),i}var Vfe=V3;function Gfe({className:e,...t}){return c.jsx(Vfe,{"data-slot":"avatar",className:X("relative flex shrink-0 size-10",e),...t})}const zfe=()=>{const{profileData:e,loading:t,activeTab:n,setActiveTab:r}=_fe(),a=Ge();if(t||!e)return c.jsx(ht,{children:c.jsx(Rfe,{})});const s=d=>{r(d)},i=[{label:e.rollNumber,icon:jo},...e.phone?[{label:e.phone,icon:I2}]:[],...e.email?[{label:e.email,icon:HE}]:[]],u=e.image?c.jsx("img",{src:e.image,alt:e.fullName||a.formatMessage({id:"PROFILE.IMAGE.ALT"}),className:"rounded-full border-3 border-primary size-[100px] shrink-0 object-cover"}):c.jsx(Gfe,{className:"h-[100px] w-[100px] border-3 border-primary",children:c.jsx(jo,{className:"h-10 w-10 text-muted-foreground"})});return c.jsxs(S.Fragment,{children:[c.jsx(Mfe,{name:e.fullName,image:u,info:i}),c.jsx(ht,{children:c.jsxs(B3,{children:[c.jsx(cc,{value:n,onValueChange:d=>s(d),children:c.jsxs(jd,{variant:"line",className:"w-full justify-start border-none",children:[c.jsx(Lr,{value:"profile",children:a.formatMessage({id:"PROFILE.TABS.PROFILE"})}),c.jsx(Lr,{value:"academic",children:a.formatMessage({id:"PROFILE.TABS.ACADEMIC"})}),c.jsx(Lr,{value:"parent",children:a.formatMessage({id:"PROFILE.TABS.PARENT"})}),c.jsx(Lr,{value:"other",children:a.formatMessage({id:"PROFILE.TABS.OTHER"})})]})}),c.jsx(Ofe,{children:c.jsx(ke,{asChild:!0,className:"w-full",variant:"outline",children:c.jsxs(Pt,{to:"/User/verProfile.aspx",children:[c.jsx(n9,{className:"h-4 w-4 mr-2"})," ",a.formatMessage({id:"PROFILE.ACTIONS.EDIT_PROFILE"})]})})})]})}),c.jsx(ht,{children:c.jsxs("div",{className:"mb-8",children:[n==="profile"&&c.jsx(Em,{title:a.formatMessage({id:"PROFILE.INFO.PROFILE"}),data:e.profileData,show:!0}),n==="academic"&&c.jsx(Em,{title:a.formatMessage({id:"PROFILE.INFO.ACADEMIC"}),data:e.academicData,show:!0}),n==="parent"&&c.jsx(Em,{title:a.formatMessage({id:"PROFILE.INFO.PARENT"}),data:e.parentData,show:!0}),n==="other"&&c.jsx(Em,{title:a.formatMessage({id:"PROFILE.INFO.OTHER"}),data:e.otherData,show:!0})]})})]})},$fe=()=>Mn({formHtml:e=>{const t=e==null?void 0:e.querySelector(".panel-body");return t?qfe(t):""},viewStateValue:e=>{const t=e==null?void 0:e.querySelector("#__VIEWSTATE");return t?t.value:""},viewStateGeneratorValue:e=>{const t=e==null?void 0:e.querySelector("#__VIEWSTATEGENERATOR");return t?t.value:""},eventValidationValue:e=>{const t=e==null?void 0:e.querySelector("#__EVENTVALIDATION");return t?t.value:""}}),qfe=e=>{const t=e.cloneNode(!0),n=t.querySelector(".row");if(!n)return t.innerHTML;n.classList.add("space-y-4");const r=n.querySelector(".col-md-9");r&&(r.classList.remove("col-md-9"),r.classList.add("w-full"));const a=n.querySelectorAll(".form-group");a.forEach(d=>{d.className="form-group mb-3",d.classList.add("grid","grid-cols-1","md:grid-cols-12","gap-4","items-center");const f=d.querySelector(".control-label");if(f&&(f.classList.remove("col-md-2","col-md-3"),f.classList.add("md:col-span-3","font-medium","text-foreground")),d.querySelector('input[type="radio"]')){const m=d.querySelector(".col-md-9");m&&(m.classList.remove("col-md-9"),m.classList.add("md:col-span-9","flex","flex-wrap","gap-4"),m.querySelectorAll('input[type="radio"]').forEach(v=>{var x;const y=v.nextElementSibling;if(y&&y.tagName==="LABEL"){const b=document.createElement("div");b.classList.add("flex","items-center","gap-2");const T=v.cloneNode(!0);T.classList.add("h-4","w-4","text-primary","rounded-full","border-gray-300","focus:ring-primary");const N=y.cloneNode(!0);N.classList.add("text-sm","text-foreground"),b.appendChild(T),b.appendChild(N),(x=v.parentNode)==null||x.insertBefore(b,v),v.remove(),y.remove()}}))}d.querySelectorAll(".col-md-9, .col-md-3, .col-md-4, .col-md-12").forEach(m=>{const p=m;let v=9;p.classList.contains("col-md-3")&&(v=3),p.classList.contains("col-md-4")&&(v=4),p.classList.contains("col-md-12")&&(v=9),p.className="",p.classList.add(`md:col-span-${v}`),p.querySelectorAll("input, select").forEach(b=>{b.getAttribute("type")!=="radio"&&b.getAttribute("type")!=="checkbox"&&b.classList.add("w-full","px-3","py-2","border","border-gray-300","rounded-md","shadow-sm","text-sm","focus:outline-none","focus:ring-2","focus:ring-primary","focus:border-primary","transition-colors")}),p.querySelectorAll("span[id]").forEach(b=>{b.classList.add("block","w-full","px-3","py-2","bg-muted/20","border","border-gray-200","rounded-md","text-sm","text-muted-foreground")})})});const s=n.querySelector(".form-group:nth-of-type(11)");s&&s.querySelectorAll("select").forEach(f=>{f.classList.add("w-full","px-3","py-2","border","border-gray-300","rounded-md","shadow-sm","text-sm","focus:outline-none","focus:ring-2","focus:ring-primary","focus:border-primary","transition-colors")}),n.querySelectorAll(".form-group:has(.col-md-2 + .col-md-4)").forEach(d=>{d.classList.add("grid-cols-12")});const u=Array.from(a).pop();if(u&&u.querySelector('input[type="submit"]')){u.className="form-group",u.classList.add("flex","justify-end","mt-8","items-center");const d=u.querySelector(".col-md-9");d&&(d.className="",d.classList.add("flex","items-center","gap-3"));const f=u.querySelector('input[type="submit"]');f&&(f.className="",f.classList.add("px-4","py-2","bg-primary","text-white","rounded-md","font-medium","shadow-sm","hover:bg-primary-active","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-primary","transition-colors"),f.textContent="Save changes");const m=u.querySelector('span[id*="Error"]');m&&(m.removeAttribute("style"),m.className="",m.classList.add("ml-3","text-sm","text-red-500"),m.textContent&&m.textContent.trim()!==""&&Nx.custom(p=>c.jsxs(al,{variant:"mono",icon:"success",close:!1,onClose:()=>Nx.dismiss(p),children:[c.jsx(Z1,{children:c.jsx(VG,{})}),c.jsx(pf,{children:m.textContent})]}),{position:"top-center"}))}return t.innerHTML},Yfe=()=>{const{loading:e}=fn(),{formHtml:t,viewStateValue:n,viewStateGeneratorValue:r,eventValidationValue:a}=$fe(),s=Ge();return c.jsx(S.Fragment,{children:c.jsxs(ht,{children:[c.jsx(B3,{children:c.jsx(ke,{asChild:!0,variant:"ghost",className:"p-0 mr-auto",children:c.jsxs(Pt,{to:"/User/Profile.aspx",children:[c.jsx(Up,{className:"h-4 w-4 mr-2"})," ",s.formatMessage({id:"PROFILE.UPDATE.BACK_TO_PROFILE"})]})})}),c.jsxs(al,{variant:"warning",appearance:"light",className:"mb-4",children:[c.jsx(Z1,{children:c.jsx(Sd,{className:"h-4 w-4"})}),c.jsx(pf,{children:s.formatMessage({id:"PROFILE.UPDATE.WARNING"})})]}),c.jsxs(ct,{className:"shadow-sm overflow-hidden mb-8",children:[c.jsx(Yt,{children:c.jsx(Zn,{children:s.formatMessage({id:"PROFILE.UPDATE.TITLE"})})}),c.jsx(Nt,{className:"p-6",children:c.jsxs("form",{method:"post",action:"./verProfile.aspx",children:[c.jsx("input",{type:"hidden",name:"__EVENTTARGET",id:"__EVENTTARGET",value:"ctl00$mainContent$btnLogin"}),c.jsx("input",{type:"hidden",name:"__EVENTARGUMENT",id:"__EVENTARGUMENT",value:""}),c.jsx("input",{type:"hidden",name:"__LASTFOCUS",id:"__LASTFOCUS",value:""}),c.jsx("input",{type:"hidden",name:"__VIEWSTATE",id:"__VIEWSTATE",value:n}),c.jsx("input",{type:"hidden",name:"__VIEWSTATEGENERATOR",id:"__VIEWSTATEGENERATOR",value:r}),c.jsx("input",{type:"hidden",name:"__EVENTVALIDATION",id:"__EVENTVALIDATION",value:a}),c.jsx("input",{type:"hidden",name:"ctl00$mainContent$message",id:"ctl00_mainContent_message",value:""}),c.jsx("div",{dangerouslySetInnerHTML:{__html:t}})]})})]})]})})},Wfe=()=>(S.useLayoutEffect(()=>{window.location.reload()},[]),c.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:c.jsxs("div",{className:"flex flex-col items-center justify-center",children:[c.jsx(Sr,{className:"h-10 w-10 animate-spin"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."})]})}));function Kfe({date:e,rooms:t,slots:n,isLoading:r,onBookRoom:a}){const s=i=>{switch(i){case"theatre":return"text-[#0000ee]";case"meeting":return"text-[#ef923c]";case"classroom":return"text-green-600";case"computer":return"text-black";case"guest":return"text-[#737350]";default:return"text-green-600"}};return r?c.jsx("div",{className:"rounded-md border",children:c.jsxs(Na,{children:[c.jsx(wa,{children:c.jsxs(en,{children:[c.jsx(Fe,{className:"w-[180px]",children:c.jsx(Le,{className:"h-4 w-[160px]"})}),Array.from({length:8}).map((i,u)=>c.jsx(Fe,{children:c.jsx(Le,{className:"h-4 w-full"})},u))]})}),c.jsx(Ca,{children:Array.from({length:6}).map((i,u)=>c.jsxs(en,{children:[c.jsx(Qe,{children:c.jsx(Le,{className:"h-4 w-[160px]"})}),Array.from({length:8}).map((d,f)=>c.jsx(Qe,{className:"text-center",children:c.jsx(Le,{className:"h-8 w-8 rounded-md mx-auto"})},f))]},u))})]})}):c.jsx("div",{className:"rounded-md border overflow-x-auto",children:c.jsxs(Na,{children:[c.jsx(wa,{children:c.jsxs(en,{children:[c.jsxs(Fe,{className:"w-[180px] font-medium",children:["Room ",c.jsx("span",{className:"text-xs",children:"(capacity)"})]}),n.map(i=>c.jsxs(Fe,{className:"text-center font-medium",children:["Slot ",i.id,c.jsx("br",{}),c.jsxs("span",{className:"text-xs",children:["(",i.time,")"]})]},i.id))]})}),c.jsx(Ca,{children:t.map(i=>c.jsxs(en,{children:[c.jsx(Qe,{className:"font-medium",children:c.jsx(Ic,{children:c.jsxs(xE,{children:[c.jsx(bE,{asChild:!0,children:c.jsxs("span",{className:X("font-semibold",s(i.type)),children:[i.name,"(",i.capacity,")"]})}),c.jsx(EE,{children:c.jsxs("div",{className:"p-1",children:[c.jsx("p",{className:"font-semibold",children:i.name}),c.jsx("p",{className:"text-sm",children:i.note})]})})]})})}),n.map(u=>{const d=i.availability[u.id]??!1;return c.jsx(Qe,{className:"text-center p-2",children:d?c.jsx(ke,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 rounded-md hover:bg-primary/10",onClick:()=>a({day:e,slot:u.id,room:i.name,roomNote:i.note,area:"12"}),children:c.jsx(P2,{className:"h-5 w-5"})}):c.jsx(Ic,{children:c.jsxs(xE,{children:[c.jsx(bE,{asChild:!0,children:c.jsx("div",{className:"h-8 w-8 mx-auto flex items-center justify-center",children:c.jsx(Zi,{className:"h-5 w-5 text-muted-foreground/50"})})}),c.jsx(EE,{children:c.jsx("p",{className:"text-sm",children:"Not available for booking at this time"})})]})})},u.id)})]},i.id))})]})})}const Xfe=(e,t)=>{e.toLowerCase();const n=t.toLowerCase();return n.includes("theoretical")||n.includes("theatre")?"theatre":n.includes("meeting")?"meeting":n.includes("computer")||n.includes("lab")?"computer":n.includes("guest")?"guest":"classroom"},Qfe=()=>{const[e,t]=S.useState(!1),{setData:n}=fn(),{campusData:r,areaData:a,roomsData:s,slotsData:i,viewStateValue:u,viewStateGeneratorValue:d,eventValidationValue:f}=Mn({campusData:p=>{const v=p==null?void 0:p.querySelector("#ctl00_mainContent_ddlCampus");if(!v)return[];const y=[];return v.querySelectorAll("option").forEach(b=>{y.push({value:b.getAttribute("value")||"",label:b.textContent||""})}),y},areaData:p=>{const v=p==null?void 0:p.querySelector("#ctl00_mainContent_ddlArea");if(!v)return[];const y=[];return v.querySelectorAll("option").forEach(b=>{y.push({value:b.getAttribute("value")||"",label:b.textContent||""})}),y},roomsData:p=>{if(!p)return[];const v=[];let y=p.querySelectorAll(".first_column a");return(!y||y.length===0)&&(y=p.querySelectorAll("tr td:first-child a")),(!y||y.length===0)&&(y=p.querySelectorAll("table tr td:first-child a")),console.log("Found room cells:",y.length),y.forEach((x,b)=>{var T;console.log(`Room cell ${b+1} HTML:`,x.outerHTML);try{let C=(x.querySelector("font b")||x.querySelector("font")||x).textContent||"";console.log(`Room text for cell ${b+1}:`,C);let A=C.match(/([^(]+)\((\d+)\)/);if(A||(A=[C,C.replace(/\(\d*\)$/,"").trim(),"0"]),A){const R=A[1].trim(),_=parseInt(A[2],10)||0,O=x.querySelector("span.custom");let D=`${R} - Class`;if(O){const H=O.querySelector("em"),Z=Array.from(O.childNodes).filter(ee=>ee.nodeType===3).map(ee=>{var Q;return(Q=ee.textContent)==null?void 0:Q.trim()}).filter(Boolean);H&&H.textContent&&(D=`${H.textContent.trim()} - ${Z.pop()||"Class"}`)}let P="classroom";const L=x.querySelector("font");if(L){const H=((T=L.getAttribute("color"))==null?void 0:T.toLowerCase())||"";H.includes("00ee")||H==="blue"?P="theatre":H.includes("ef92")||H==="orange"?P="meeting":H==="green"?P="classroom":H==="black"?P="computer":H.includes("7373")?P="guest":P=Xfe(R,D)}const U=x.closest("tr"),B={};U&&U.querySelectorAll("td.timetable_column").forEach((Z,ee)=>{const Q=(ee+1).toString(),j=Z.querySelector("a.book_room");B[Q]=!!j}),v.push({id:`${b+1}`,name:R,capacity:_,type:P,note:D,availability:B})}}catch(N){console.error(`Error processing room cell ${b+1}:`,N)}}),console.log("Extracted room data:",v),v},slotsData:p=>{if(!p)return[];const v=[];let y=null;return y=p.querySelectorAll("thead tr:nth-child(2) th:not(:first-child)"),(!y||y.length===0)&&(y=p.querySelectorAll("table tr:nth-child(2) th:not(:first-child)")),(!y||y.length===0)&&(y=p.querySelectorAll("th")),console.log("Found slot headers:",y.length),y.forEach((x,b)=>{const T=x.innerHTML||"";if(console.log(`Header ${b+1} text:`,T),T.includes("Slot")){const N=T.match(/Slot (\d+)<br[^>]*>\(([^)]+)\)/i);N?(console.log(`Matched slot ${N[1]} with time ${N[2]}`),v.push({id:N[1],time:N[2]})):console.log("Failed to match header:",T)}}),console.log("Extracted slot data:",v),v},viewStateValue:p=>{const v=p==null?void 0:p.querySelector("#__VIEWSTATE");return v?v.value:""},viewStateGeneratorValue:p=>{const v=p==null?void 0:p.querySelector("#__VIEWSTATEGENERATOR");return v?v.value:""},eventValidationValue:p=>{const v=p==null?void 0:p.querySelector("#__EVENTVALIDATION");return v?v.value:""}});return{fetchRoomData:async(p,v,y)=>{if(!(!p||!v)){t(!0);try{const x=y.toLocaleDateString("en-GB",{day:"2-digit",month:"2-digit",year:"numeric"}).replace(/\//g,"/"),T=await(await fetch("/Schedule/ActivityStudent.aspx",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({__EVENTTARGET:"",__EVENTARGUMENT:"",__LASTFOCUS:"",__VIEWSTATE:u,__VIEWSTATEGENERATOR:d,__EVENTVALIDATION:f,ctl00$mainContent$ddlCampus:p,ctl00$mainContent$ddlArea:v,ctl00$mainContent$txtDateTime:x,ctl00$mainContent$btnView:"View"}).toString()})).text(),A=new DOMParser().parseFromString(T,"text/html").querySelector(".container");A instanceof Element?n(A):console.error("Failed to find container element in response")}catch(x){console.error("Error fetching room data:",x)}finally{t(!1)}}},isLoading:e,extractedData:{campusData:r,areaData:a,roomsData:s,slotsData:i}}};function Zfe({date:e,setDate:t}){return c.jsxs(oE,{children:[c.jsx(iE,{asChild:!0,children:c.jsxs(ke,{variant:"outline",className:X("w-full justify-start text-left font-normal",!e&&"text-muted-foreground"),children:[c.jsx(ea,{className:"mr-2 h-4 w-4"}),e?Ii(e,"PPP"):c.jsx("span",{children:"Pick a date"})]})}),c.jsx(lE,{className:"w-auto p-0",children:c.jsx(uE,{mode:"single",selected:e,onSelect:n=>n&&t(n),initialFocus:!0})})]})}function Jfe({isOpen:e,onClose:t,booking:n}){const[r,a]=S.useState(""),[s,i]=S.useState([]),[u,d]=S.useState(!1),[f,m]=S.useState(!1),p=r!==""&&u,v=[{value:"1",label:"Học nhóm"},{value:"2",label:"Quay video dự án môn học"},{value:"3",label:"Tổ chức workshop"},{value:"4",label:"Tự học"}],y=()=>{p&&(m(!0),setTimeout(()=>{m(!1),t()},1e3))};return c.jsx(bf,{open:e,onOpenChange:t,children:c.jsxs(Ef,{className:"sm:max-w-[550px]",children:[c.jsx(Sf,{children:c.jsx(Nf,{children:"Book Room Information"})}),c.jsxs("div",{className:"grid gap-4 py-4",children:[c.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[c.jsxs("div",{children:[c.jsx(To,{htmlFor:"day",children:"Day / Ngày"}),c.jsx(ac,{id:"day",value:n.day,readOnly:!0,className:"mt-1"})]}),c.jsxs("div",{children:[c.jsx(To,{htmlFor:"slot",children:"Slot"}),c.jsx(ac,{id:"slot",value:n.slot,readOnly:!0,className:"mt-1"})]}),c.jsxs("div",{children:[c.jsx(To,{htmlFor:"room",children:"Room / Phòng"}),c.jsx(ac,{id:"room",value:n.room,readOnly:!0,className:"mt-1"})]})]}),c.jsxs("div",{children:[c.jsx(To,{htmlFor:"purpose",children:"Purpose / Mục đích"}),c.jsx("p",{className:"text-sm text-muted-foreground mt-1 mb-2",children:"Nếu sinh viên sử dụng phòng cho mục đích khác, vui lòng liên hệ trực tiếp với phòng Dịch vụ sinh viên để được xem xét."}),c.jsxs($o,{value:r,onValueChange:a,children:[c.jsx(Yo,{id:"purpose",className:"w-full",children:c.jsx(qo,{placeholder:"Select purpose"})}),c.jsx(Wo,{children:v.map(x=>c.jsx(ur,{value:x.value,children:x.label},x.value))})]})]}),c.jsxs("div",{children:[c.jsx(To,{htmlFor:"students",children:"Students / Các sinh viên tham gia"}),c.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[c.jsx(ac,{id:"studentSearch",placeholder:"Search by student ID (min. 3 characters)",className:"flex-1"}),c.jsx(ke,{variant:"outline",type:"button",children:"Add"})]}),c.jsx("div",{className:"mt-2 max-h-32 overflow-y-auto border rounded-md p-2",children:s.length===0?c.jsx("p",{className:"text-sm text-muted-foreground italic",children:"No students added yet"}):c.jsx("ul",{className:"space-y-1",children:s.map((x,b)=>c.jsxs("li",{className:"text-sm flex justify-between",children:[c.jsx("span",{children:x}),c.jsx(ke,{variant:"ghost",size:"sm",className:"h-6 px-2",children:"Remove"})]},b))})})]}),c.jsx(al,{children:c.jsx(hg,{children:c.jsxs("ul",{className:"list-disc pl-4 space-y-1 text-sm",children:[c.jsx("li",{children:"Sau khi book phòng nếu thay đổi kế hoạch và không có nhu cầu sử dụng cần thao tác hủy phòng trước thời gian đăng ký sử dụng."}),c.jsx("li",{children:"Chỉ được book phòng cho mục đích học tập, nếu sử dụng sai mục đích hoặc book nhưng không sử dụng sẽ bị cấm book phòng trong 1 kỳ."}),c.jsx("li",{children:"Đảm bảo CSVC trong phòng, nếu hư phỏng sẽ phải đền bù theo quy định."}),c.jsx("li",{children:"Trả lại nguyên hiện trạng ban đầu của phòng sau khi sử dụng."}),c.jsx("li",{children:"Trong quá trình sử dụng không tự ý mang CSVC ra khỏi phòng học."})]})})}),c.jsxs("div",{className:"flex items-start space-x-2",children:[c.jsx(gE,{id:"agree",checked:u,onCheckedChange:x=>d(x),className:"mt-1"}),c.jsx(To,{htmlFor:"agree",className:"text-sm font-normal",children:"Tôi đồng ý tuân thủ các quy định đặt phòng / I agree to comply with the room booking rules."})]})]}),c.jsxs(Tf,{children:[c.jsx(ke,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),c.jsx(ke,{type:"button",onClick:y,disabled:!p||f,children:f?"Booking...":"Book Room"})]})]})})}var $3="AlertDialog",[ehe,Ape]=Gn($3,[tD]),qs=tD(),q3=e=>{const{__scopeAlertDialog:t,...n}=e,r=qs(t);return c.jsx(JE,{...r,...n,modal:!0})};q3.displayName=$3;var the="AlertDialogTrigger",nhe=S.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=qs(n);return c.jsx(vD,{...a,...r,ref:t})});nhe.displayName=the;var rhe="AlertDialogPortal",Y3=e=>{const{__scopeAlertDialog:t,...n}=e,r=qs(t);return c.jsx(e1,{...r,...n})};Y3.displayName=rhe;var ahe="AlertDialogOverlay",W3=S.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=qs(n);return c.jsx(t1,{...a,...r,ref:t})});W3.displayName=ahe;var dc="AlertDialogContent",[she,ohe]=ehe(dc),ihe=g2("AlertDialogContent"),K3=S.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...a}=e,s=qs(n),i=S.useRef(null),u=Ue(t,i),d=S.useRef(null);return c.jsx(p$,{contentName:dc,titleName:X3,docsSlug:"alert-dialog",children:c.jsx(she,{scope:n,cancelRef:d,children:c.jsxs(n1,{role:"alertdialog",...s,...a,ref:u,onOpenAutoFocus:me(a.onOpenAutoFocus,f=>{var m;f.preventDefault(),(m=d.current)==null||m.focus({preventScroll:!0})}),onPointerDownOutside:f=>f.preventDefault(),onInteractOutside:f=>f.preventDefault(),children:[c.jsx(ihe,{children:r}),c.jsx(che,{contentRef:i})]})})})});K3.displayName=dc;var X3="AlertDialogTitle",Q3=S.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=qs(n);return c.jsx(Wp,{...a,...r,ref:t})});Q3.displayName=X3;var Z3="AlertDialogDescription",J3=S.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=qs(n);return c.jsx(Kp,{...a,...r,ref:t})});J3.displayName=Z3;var lhe="AlertDialogAction",e4=S.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=qs(n);return c.jsx(Xp,{...a,...r,ref:t})});e4.displayName=lhe;var t4="AlertDialogCancel",n4=S.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:a}=ohe(t4,n),s=qs(n),i=Ue(t,a);return c.jsx(Xp,{...s,...r,ref:i})});n4.displayName=t4;var che=({contentRef:e})=>{const t=`\`${dc}\` requires a description for the component to be accessible for screen reader users.

You can add a description to the \`${dc}\` by passing a \`${Z3}\` component as a child, which also benefits sighted users by adding visible context to the dialog.

Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${dc}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.

For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return S.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},uhe=q3,dhe=Y3,fhe=W3,hhe=K3,mhe=e4,phe=n4,ghe=Q3,vhe=J3;function yhe({...e}){return c.jsx(uhe,{"data-slot":"alert-dialog",...e})}function xhe({...e}){return c.jsx(dhe,{"data-slot":"alert-dialog-portal",...e})}function bhe({className:e,...t}){return c.jsx(fhe,{"data-slot":"alert-dialog-overlay",className:X("fixed inset-0 z-50 bg-black/30 [backdrop-filter:blur(4px)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t})}function Ehe({className:e,...t}){return c.jsxs(xhe,{children:[c.jsx(bhe,{}),c.jsx(hhe,{"data-slot":"alert-dialog-content",className:X("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg shadow-black/5 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",e),...t})]})}const She=({className:e,...t})=>c.jsx("div",{"data-slot":"alert-dialog-header",className:X("flex flex-col space-y-2 text-center sm:text-left",e),...t}),The=({className:e,...t})=>c.jsx("div",{"data-slot":"alert-dialog-footer",className:X("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2.5",e),...t});function Nhe({className:e,...t}){return c.jsx(ghe,{"data-slot":"alert-dialog-title",className:X("text-lg font-semibold",e),...t})}function whe({className:e,...t}){return c.jsx(vhe,{"data-slot":"alert-dialog-description",className:X("text-sm text-muted-foreground",e),...t})}function Che({className:e,variant:t,...n}){return c.jsx(mhe,{"data-slot":"alert-dialog-action",className:X(Td({variant:t}),e),...n})}function Ahe({className:e,...t}){return c.jsx(phe,{"data-slot":"alert-dialog-cancel",className:X(Td({variant:"outline"}),"mt-2 sm:mt-0",e),...t})}function _he(){const[e,t]=S.useState(!1),[n,r]=S.useState(null),[a,s]=S.useState([{id:"1",day:"18/05/2025",slot:{id:"3",time:"10:50-12:20"},room:"EP-105",purpose:"Học nhóm",students:["PhongNT","HungNQ","HaiTT"],status:"approved"},{id:"2",day:"20/05/2025",slot:{id:"7",time:"18:00-19:30"},room:"Sân bóng-01",purpose:"Tổ chức workshop",students:["PhongNT","HungNQ","HaiTT","DungLH"],status:"pending"}]),i=f=>{r(f),t(!0)},u=()=>{n&&(s(a.filter(f=>f.id!==n)),t(!1),r(null))},d=f=>{switch(f){case"approved":return c.jsx(kt,{variant:"success",children:"Approved"});case"pending":return c.jsx(kt,{variant:"warning",children:"Pending"});case"cancelled":return c.jsx(kt,{variant:"destructive",children:"Cancelled"});default:return null}};return a.length===0?c.jsx("div",{className:"text-center py-8",children:c.jsx("p",{className:"text-muted-foreground",children:"You have no active bookings."})}):c.jsxs("div",{children:[c.jsx("div",{className:"rounded-md border overflow-hidden",children:c.jsxs(Na,{children:[c.jsx(wa,{children:c.jsxs(en,{children:[c.jsx(Fe,{children:"Date"}),c.jsx(Fe,{children:"Slot"}),c.jsx(Fe,{children:"Room"}),c.jsx(Fe,{children:"Purpose"}),c.jsx(Fe,{children:"Status"}),c.jsx(Fe,{className:"w-[80px]",children:"Actions"})]})}),c.jsx(Ca,{children:a.map(f=>c.jsxs(en,{children:[c.jsx(Qe,{children:c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx($i,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsx("span",{children:f.day})]})}),c.jsx(Qe,{children:c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx(Gs,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsxs("span",{children:["Slot ",f.slot.id," (",f.slot.time,")"]})]})}),c.jsx(Qe,{children:c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx(Bp,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsx("span",{children:f.room})]})}),c.jsx(Qe,{children:c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx(Ri,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{children:f.purpose}),c.jsxs("span",{className:"text-xs text-muted-foreground",children:[f.students.length," students"]})]})]})}),c.jsx(Qe,{children:d(f.status)}),c.jsx(Qe,{children:c.jsx(ke,{variant:"destructive",size:"sm",className:"h-8 w-8 p-0",onClick:()=>i(f.id),children:c.jsx(o9,{className:"h-4 w-4"})})})]},f.id))})]})}),c.jsx(yhe,{open:e,onOpenChange:t,children:c.jsxs(Ehe,{children:[c.jsxs(She,{children:[c.jsx(Nhe,{children:"Are you sure?"}),c.jsx(whe,{children:"This will cancel your room booking. This action cannot be undone."})]}),c.jsxs(The,{children:[c.jsx(Ahe,{children:"Cancel"}),c.jsx(Che,{onClick:u,children:"Delete"})]})]})})]})}const Rhe=[{id:"1",time:"07:30-09:00"},{id:"2",time:"09:10-10:40"},{id:"3",time:"10:50-12:20"},{id:"4",time:"12:50-14:20"},{id:"5",time:"14:30-16:00"},{id:"6",time:"16:10-17:40"},{id:"7",time:"18:00-19:30"},{id:"8",time:"19:45-21:15"}],wM=[{value:"3",label:"FU-HL"}],yx=[{value:"9",label:"AL&BE"},{value:"10",label:"GA"},{value:"8",label:"Little UK"},{value:"5",label:"Physical training"},{value:"12",label:"Sân bóng"},{value:"13",label:"Đường"},{value:"14",label:"NewSlot"}];function Mhe(){const{loading:e}=fn(),t=Ge(),[n,r]=S.useState(new Date),[a,s]=S.useState([]),[i,u]=S.useState([]),[d,f]=S.useState(""),[m,p]=S.useState(""),[v,y]=S.useState([]),[x,b]=S.useState([]),[T,N]=S.useState(!1),[C,A]=S.useState(null),{fetchRoomData:R,isLoading:_,extractedData:O}=Qfe(),D=H=>{f(H)},P=H=>{p(H)},L=()=>{R(d,m,n)},U=H=>{A(H),N(!0)},B=e||_;return S.useEffect(()=>{var j;const{campusData:H,areaData:Z,roomsData:ee,slotsData:Q}=O;if(H&&H.length>0){if(s(H),!d){const Y=H.find(V=>V.label.includes("FU-HL"));f((Y==null?void 0:Y.value)||H[0].value)}}else a.length===0&&(s(wM),f(wM[0].value));if(Z&&Z.length>0){if(u(Z),!m){const Y=Z.find(V=>V.label.includes("Sân bóng"));p((Y==null?void 0:Y.value)||Z[0].value)}}else i.length===0&&(u(yx),p(((j=yx.find(Y=>Y.label==="Sân bóng"))==null?void 0:j.value)||yx[0].value));ee&&ee.length>0&&y(ee),Q&&Q.length>0?b(Q):x.length===0&&b(Rhe)},[O,d,m,a.length,i.length,x.length]),c.jsxs(S.Fragment,{children:[c.jsxs(ht,{className:"space-y-6",children:[c.jsxs(al,{variant:"warning",appearance:"light",children:[c.jsx(Zi,{className:"h-4 w-4"}),c.jsx(pf,{children:t.formatMessage({id:"ACTIVITY.INFO.TITLE"})}),c.jsx(hg,{className:"mt-2",children:c.jsxs("ul",{className:"list-disc space-y-1",children:[c.jsx("li",{children:t.formatMessage({id:"ACTIVITY.INFO.RULE_1"})}),c.jsx("li",{children:t.formatMessage({id:"ACTIVITY.INFO.RULE_2"})}),c.jsx("li",{children:t.formatMessage({id:"ACTIVITY.INFO.RULE_3"})})]})})]}),c.jsxs(ct,{children:[c.jsx(Yt,{className:"pb-3",children:c.jsx(Zn,{className:"text-base",children:t.formatMessage({id:"ACTIVITY.BOOKING.TITLE"})})}),c.jsx(Nt,{children:c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 items-end",children:[c.jsxs("div",{className:"w-full sm:w-1/4 space-y-1",children:[c.jsx("label",{className:"text-sm font-medium",children:t.formatMessage({id:"ACTIVITY.FORM.CAMPUS"})}),c.jsxs($o,{disabled:B||a.length<=1,value:d,onValueChange:D,children:[c.jsx(Yo,{children:c.jsx(qo,{placeholder:t.formatMessage({id:"ACTIVITY.FORM.SELECT_CAMPUS"})})}),c.jsx(Wo,{children:a.map(H=>c.jsx(ur,{value:H.value,children:H.label},H.value))})]})]}),c.jsxs("div",{className:"w-full sm:w-1/4 space-y-1",children:[c.jsx("label",{className:"text-sm font-medium",children:t.formatMessage({id:"ACTIVITY.FORM.AREA"})}),c.jsxs($o,{value:m,onValueChange:P,disabled:B||i.length===0,children:[c.jsx(Yo,{children:c.jsx(qo,{placeholder:t.formatMessage({id:"ACTIVITY.FORM.SELECT_AREA"})})}),c.jsx(Wo,{children:i.map(H=>c.jsx(ur,{value:H.value,children:H.label},H.value))})]})]}),c.jsxs("div",{className:"w-full sm:w-1/4 space-y-1",children:[c.jsx("label",{className:"text-sm font-medium",children:t.formatMessage({id:"ACTIVITY.FORM.DATE"})}),c.jsx(Zfe,{date:n,setDate:r})]}),c.jsx("div",{className:"w-full sm:w-1/4 flex",children:c.jsx(ke,{className:"w-full",onClick:L,disabled:B||!d||!m,children:_?t.formatMessage({id:"ACTIVITY.ACTIONS.LOADING"}):t.formatMessage({id:"ACTIVITY.ACTIONS.VIEW"})})})]})})]}),c.jsx("div",{className:"bg-card rounded-md p-3 border shadow-sm",children:c.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-5 gap-2",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-3 h-3 rounded-full bg-[#0000ee]"}),c.jsx("span",{className:"text-sm",children:t.formatMessage({id:"ACTIVITY.LEGEND.THEORETICAL_THEATRE"})})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-3 h-3 rounded-full bg-[#ef923c]"}),c.jsx("span",{className:"text-sm",children:t.formatMessage({id:"ACTIVITY.LEGEND.MEETING_ROOM"})})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-3 h-3 rounded-full bg-green-600"}),c.jsx("span",{className:"text-sm",children:t.formatMessage({id:"ACTIVITY.LEGEND.CLASS_ROOM"})})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-3 h-3 rounded-full bg-black"}),c.jsx("span",{className:"text-sm",children:t.formatMessage({id:"ACTIVITY.LEGEND.COMPUTER_LAB"})})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-3 h-3 rounded-full bg-[#737350]"}),c.jsx("span",{className:"text-sm",children:t.formatMessage({id:"ACTIVITY.LEGEND.GUEST_ROOM"})})]})]})}),c.jsx(Kfe,{date:Ii(n,"dd/MM/yyyy"),rooms:v,slots:x,isLoading:B,onBookRoom:U}),c.jsxs(ct,{className:"mt-8",children:[c.jsx(Yt,{children:c.jsx(Zn,{children:t.formatMessage({id:"ACTIVITY.MY_BOOKINGS.TITLE"})})}),c.jsx(Nt,{children:c.jsx(_he,{})})]})]}),C&&c.jsx(Jfe,{isOpen:T,onClose:()=>N(!1),booking:C})]})}function Ohe(e){return/approve/i.test(e)?"Approved":/process/i.test(e)?"Processing":/reject/i.test(e)?"Rejected":"Other"}function Dhe(e){if(!e)return[];const t=e.querySelector("#ctl00_mainContent_content table");return t?Array.from(t.querySelectorAll("tbody tr")).slice(1).map((r,a)=>{var b,T,N,C,A,R,_,O,D,P,L,U;const s=r.querySelectorAll("td"),i=((T=(b=s[0])==null?void 0:b.textContent)==null?void 0:T.trim())||"",u=((C=(N=s[1])==null?void 0:N.textContent)==null?void 0:C.trim())||"",d=((R=(A=s[2])==null?void 0:A.textContent)==null?void 0:R.trim())||"",f=((O=(_=s[3])==null?void 0:_.textContent)==null?void 0:O.trim())||"";let m;if(s[4]){const B=s[4].querySelector("a");B&&(m=B.getAttribute("href")||void 0)}let p=((P=(D=s[5])==null?void 0:D.textContent)==null?void 0:P.trim())||"",v=Ohe(p),y=((U=(L=s[6])==null?void 0:L.textContent)==null?void 0:U.trim())||void 0;return{id:`${i}-${u}-${d}-${a}`,type:i,purpose:u,createDate:d,processNote:f,fileUrl:m,status:v,statusRaw:p,processedAt:y}}):[]}function Ihe(){const{applications:e}=Mn({applications:Dhe});return{applications:e,isLoading:!1}}function r4({status:e,statusRaw:t}){let n="bg-gray-300 text-gray-800",r=t;return e==="Approved"?(n="bg-green-100 text-green-700",r="Đã duyệt"):e==="Processing"?(n="bg-yellow-100 text-yellow-800",r="Đang xử lý"):e==="Rejected"&&(n="bg-red-100 text-red-700",r="Từ chối"),c.jsx("span",{className:`inline-block px-2 py-1 rounded text-xs font-semibold ${n}`,children:r})}function Phe({applications:e,isLoading:t,onSelect:n}){const r=Ge();return t?c.jsx("div",{className:"p-8 text-center text-muted",children:r.formatMessage({id:"APPLICATION.LOADING"})}):e.length?c.jsx(ct,{className:"overflow-x-auto",children:c.jsx(mf,{children:c.jsxs(Na,{children:[c.jsx(wa,{children:c.jsxs(en,{children:[c.jsx(Fe,{className:"px-3 py-2 text-left",children:r.formatMessage({id:"APPLICATION.TABLE.TYPE"})}),c.jsx(Fe,{className:"px-3 py-2 text-left",children:r.formatMessage({id:"APPLICATION.TABLE.PURPOSE"})}),c.jsx(Fe,{className:"px-3 py-2",children:r.formatMessage({id:"APPLICATION.TABLE.CREATE_DATE"})}),c.jsx(Fe,{className:"px-3 py-2",children:r.formatMessage({id:"APPLICATION.TABLE.STATUS"})}),c.jsx(Fe,{className:"px-3 py-2",children:r.formatMessage({id:"APPLICATION.TABLE.PROCESSED_AT"})})]})}),c.jsx(Ca,{children:e.map(a=>c.jsxs(en,{className:"hover:bg-accent/50 cursor-pointer",onClick:()=>n(a.id),children:[c.jsx(Qe,{className:"px-3 py-2 whitespace-pre-line",children:a.type}),c.jsx(Qe,{className:"px-3 py-2 max-w-xs truncate",title:a.purpose,children:a.purpose}),c.jsx(Qe,{className:"px-3 py-2 text-center",children:a.createDate}),c.jsx(Qe,{className:"px-3 py-2 text-center",children:c.jsx(r4,{status:a.status,statusRaw:a.statusRaw})}),c.jsx(Qe,{className:"px-3 py-2 text-center",children:a.processedAt||"-"})]},a.id))})]})})}):c.jsx("div",{className:"p-8 text-center text-muted",children:r.formatMessage({id:"APPLICATION.EMPTY"})})}function CM(e){if(!e)return"";const t=/(https?:\/\/[\w\-._~:/?#[\]@!$&'()*+,;=%]+)|(www\.[\w\-._~:/?#[\]@!$&'()*+,;=%]+)/gi;return e.replace(t,n=>{let r=n;return r.startsWith("http")||(r="https://"+r),`<a href="${r}" target="_blank" rel="noopener noreferrer" class="text-accent hover:underline break-all">${n}</a>`})}function jhe({application:e,isOpen:t,onClose:n}){const r=Ge();return!t||!e?null:c.jsx(bf,{open:t,onOpenChange:a=>!a&&n(),children:c.jsxs(Ef,{className:"sm:max-w-lg",children:[c.jsx(Sf,{className:"border-b pb-3 mb-2 border-white/10",children:c.jsxs(Nf,{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-accent font-bold",children:r.formatMessage({id:"APPLICATION.DETAIL.TITLE"})}),c.jsx(r4,{status:e.status,statusRaw:e.statusRaw})]})}),c.jsxs("div",{className:"space-y-3 text-sm",children:[c.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:gap-4",children:[c.jsx("div",{className:"font-semibold text-muted-foreground min-w-[120px]",children:r.formatMessage({id:"APPLICATION.DETAIL.TYPE"})}),c.jsx("div",{className:"text-foreground",children:e.type})]}),c.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:gap-4",children:[c.jsx("div",{className:"font-semibold text-muted-foreground min-w-[120px]",children:r.formatMessage({id:"APPLICATION.DETAIL.CREATE_DATE"})}),c.jsx("div",{className:"text-foreground",children:e.createDate})]}),e.processedAt&&c.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:gap-4",children:[c.jsx("div",{className:"font-semibold text-muted-foreground min-w-[120px]",children:r.formatMessage({id:"APPLICATION.DETAIL.PROCESSED_AT"})}),c.jsx("div",{className:"text-foreground",children:e.processedAt})]}),c.jsxs("div",{children:[c.jsx("div",{className:"font-semibold text-muted-foreground mb-1.5",children:r.formatMessage({id:"APPLICATION.DETAIL.PURPOSE"})}),c.jsx("div",{className:"bg-white/[0.03] border border-white/5 rounded-lg p-3 whitespace-pre-line text-foreground/90 break-words",dangerouslySetInnerHTML:{__html:CM(e.purpose)}})]}),c.jsxs("div",{children:[c.jsx("div",{className:"font-semibold text-muted-foreground mb-1.5",children:r.formatMessage({id:"APPLICATION.DETAIL.PROCESS_NOTE"})}),c.jsx("div",{className:"bg-white/[0.03] border border-white/5 rounded-lg p-3 whitespace-pre-line text-foreground/90 min-h-[40px] break-words",dangerouslySetInnerHTML:{__html:CM(e.processNote||`<i>${r.formatMessage({id:"APPLICATION.DETAIL.NO_RESPONSE"})}</i>`)}})]}),e.fileUrl&&c.jsxs("div",{children:[c.jsx("div",{className:"font-semibold text-muted-foreground mb-1.5",children:r.formatMessage({id:"APPLICATION.DETAIL.ATTACHMENT"})}),c.jsx("a",{href:e.fileUrl,target:"_blank",rel:"noopener noreferrer",className:"text-accent hover:underline break-all",children:e.fileUrl})]})]}),c.jsx(Tf,{className:"border-t pt-3 mt-4 border-white/10",children:c.jsx(ke,{variant:"outline",onClick:n,className:"w-full md:w-auto",children:r.formatMessage({id:"APPLICATION.ACTIONS.CLOSE"})})})]})})}const Lhe=()=>{const{applications:e,isLoading:t}=Ihe(),[n,r]=S.useState(),a=e.find(s=>s.id===n);return c.jsxs(ht,{children:[c.jsx(Phe,{applications:e,isLoading:t,onSelect:r}),c.jsx(jhe,{application:a,isOpen:!!a,onClose:()=>r(void 0)})]})},khe=["OJS","VOV","GDQP","LAB","ENT","SSS","ĐNH","TMI","OJT"],a4="transcript_non_gpa_codes";function Uhe(e){return/not passed/i.test(e)?"Not passed":/passed/i.test(e)?"Passed":/studying/i.test(e)?"Studying":/not started/i.test(e)?"Not started":/attendance fail/i.test(e)?"Attendance Fail":/suspended/i.test(e)?"Suspended":/not included/i.test(e)?"Not included in GPA":"Other"}function Fhe(e){if(!e)return[];const t=e.querySelector("#ctl00_mainContent_divGrade"),n=t==null?void 0:t.querySelector("table"),r=(n==null?void 0:n.rows)??[],a=[];return Array.from(r).forEach((s,i)=>{if(i===0)return;const u=s.cells;if(!u||u.length<10)return;const d=u[1].innerText.trim(),f=u[2].innerText.trim(),m=f.slice(-4),v={session:f.slice(0,-4),year:m},y=u[3].innerText.trim(),x=u[4].innerText.trim(),b=u[5].innerText.trim(),T=u[6].innerText.trim(),N=Number(u[7].innerText.trim()),C=Number(u[8].innerText.trim()),A=Uhe(u[9].innerText.trim());a.push({term:d,semester:v,subjectCode:y,prerequisite:x,replacedSubject:b,subjectName:T,credit:N,grade:C,status:A})}),a}function Bhe(){try{const e=localStorage.getItem(a4);if(e)return JSON.parse(e)}catch{}return khe}function Hhe(){const{transcripts:e}=Mn({transcripts:Fhe}),[t,n]=S.useState(Bhe());S.useEffect(()=>{localStorage.setItem(a4,JSON.stringify(t))},[t]);const r=u=>{n(u)},a=S.useMemo(()=>{const u={};return e.forEach(d=>{const f=d.term,p=t.some(v=>d.subjectCode.includes(v))||d.credit===0||d.status==="Not included in GPA"?0:d.credit;u[f]||(u[f]={term:d.term,semester:d.semester,gpa:0,totalCredit:0,courses:[]}),u[f].courses.push({...d,credit:p})}),Object.values(u).forEach(d=>{d.totalCredit=d.courses.reduce((f,m)=>f+m.credit,0),d.gpa=d.totalCredit>0?d.courses.reduce((f,m)=>f+m.credit*m.grade,0)/d.totalCredit:0}),Object.values(u)},[e,t]),s=S.useMemo(()=>a.reduce((u,d)=>u+d.totalCredit,0),[a]),i=S.useMemo(()=>{const u=a.reduce((d,f)=>d+f.gpa*f.totalCredit,0);return s>0?u/s:0},[a,s]);return{transcripts:e,gpaList:a,averageGPA:i,totalCredit:s,nonGpaCodes:t,setNonGpaCodes:r}}function Vhe({averageGPA:e,totalCredit:t,nonGpaCodes:n,setNonGpaCodes:r}){const[a,s]=S.useState(!1),[i,u]=S.useState(n),[d,f]=S.useState(""),m=Ge();S.useEffect(()=>{u(n)},[n]);const p=()=>{const x=d.trim().toUpperCase();x&&!i.includes(x)&&(u([...i,x]),f(""))},v=x=>{u(i.filter(b=>b!==x))},y=()=>{r(i),s(!1)};return c.jsxs("div",{className:"mb-6 flex items-center justify-center relative",children:[c.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-6",children:[c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"text-muted-foreground text-sm font-semibold",children:m.formatMessage({id:"TRANSCRIPT.SUMMARY.AVERAGE_GPA"})}),c.jsx("div",{className:"text-3xl font-bold text-primary",children:e.toFixed(2)})]}),c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"text-muted-foreground text-sm font-semibold",children:m.formatMessage({id:"TRANSCRIPT.SUMMARY.TOTAL_CREDITS"})}),c.jsx("div",{className:"text-3xl font-bold text-primary",children:t})]})]}),c.jsxs(ke,{type:"button",variant:"secondary",size:"sm",className:"absolute right-0 top-1/2 -translate-y-1/2",onClick:()=>s(!0),title:m.formatMessage({id:"TRANSCRIPT.SETTINGS.BUTTON"}),children:[c.jsx(L2,{className:"w-5 h-5 mr-1"}),c.jsx("span",{children:m.formatMessage({id:"TRANSCRIPT.SETTINGS.BUTTON"})})]}),c.jsx(bf,{open:a,onOpenChange:s,children:c.jsxs(Ef,{className:"max-w-sm",children:[c.jsx(Sf,{children:c.jsx(Nf,{children:m.formatMessage({id:"TRANSCRIPT.SETTINGS.TITLE"})})}),c.jsx("div",{className:"mb-2 text-sm text-muted-foreground",children:m.formatMessage({id:"TRANSCRIPT.SETTINGS.DESCRIPTION"})}),c.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:i.map(x=>c.jsxs("span",{className:"bg-gray-100 px-2 py-1 rounded text-xs font-mono flex items-center gap-1",children:[x,c.jsx("button",{className:"ml-1 text-red-500 hover:text-red-700 cursor-pointer",onClick:()=>v(x),title:m.formatMessage({id:"TRANSCRIPT.SETTINGS.REMOVE"}),children:"×"})]},x))}),c.jsxs("div",{className:"flex gap-2 mb-4",children:[c.jsx("input",{className:"border rounded px-2 py-1 text-sm font-mono flex-1",placeholder:m.formatMessage({id:"TRANSCRIPT.SETTINGS.ADD_PLACEHOLDER"}),value:d,onChange:x=>f(x.target.value),onKeyDown:x=>{x.key==="Enter"&&p()}}),c.jsx("button",{className:"bg-primary text-white px-3 py-1 rounded text-sm font-semibold cursor-pointer",onClick:p,children:m.formatMessage({id:"TRANSCRIPT.SETTINGS.ADD"})})]}),c.jsxs(Tf,{children:[c.jsx("button",{className:"px-3 py-1 rounded text-sm cursor-pointer",onClick:()=>s(!1),children:m.formatMessage({id:"TRANSCRIPT.SETTINGS.CANCEL"})}),c.jsx("button",{className:"bg-primary text-white px-3 py-1 rounded text-sm font-semibold cursor-pointer",onClick:y,children:m.formatMessage({id:"TRANSCRIPT.SETTINGS.SAVE"})})]})]})})]})}function Ghe({status:e}){let t="bg-gray-300 text-gray-800",n=e;return e==="Passed"?(t="bg-green-100 text-green-700",n="Passed"):e==="Not passed"?(t="bg-red-100 text-red-700",n="Not passed"):e==="Studying"?(t="bg-yellow-100 text-yellow-800",n="Studying"):e==="Not started"?(t="bg-gray-100 text-gray-700",n="Not started"):e==="Not included in GPA"?(t="bg-gray-800 text-white",n="Not in GPA"):(e==="Attendance Fail"||e==="Suspended")&&(t="bg-orange-200 text-orange-800",n=e),c.jsx("span",{className:`inline-block px-1.5 py-0.5 rounded text-xs font-semibold ${t}`,children:n})}function zhe({gpaList:e}){const t=Ge();return e.length?c.jsx("div",{className:"space-y-8",children:e.map((n,r)=>c.jsxs(ct,{children:[c.jsxs(Yt,{children:[c.jsxs(Zn,{className:"font-semibold text-base text-primary",children:[t.formatMessage({id:"TRANSCRIPT.TERM"})," ",n.term," - ",t.formatMessage({id:"TRANSCRIPT.SESSION"},{session:n.semester.session,year:n.semester.year})]}),c.jsx(fg,{children:c.jsxs("div",{className:"flex gap-6 text-xs md:text-sm",children:[c.jsxs("span",{children:[t.formatMessage({id:"TRANSCRIPT.STATS.AVG"})," ",c.jsx("span",{className:"font-bold text-green-700",children:n.gpa.toFixed(2)})]}),c.jsxs("span",{children:[t.formatMessage({id:"TRANSCRIPT.STATS.TOTAL_CREDITS"})," ",c.jsx("span",{className:"font-bold text-primary",children:n.totalCredit})]}),c.jsxs("span",{children:[t.formatMessage({id:"TRANSCRIPT.STATS.COURSES"})," ",c.jsx("span",{className:"font-bold",children:n.courses.length})]})]})})]}),c.jsx(Nt,{className:"p-0",children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs(Na,{children:[c.jsx(wa,{children:c.jsxs(en,{className:"bg-accent/60",children:[c.jsx(Fe,{className:"w-14 h-10",children:t.formatMessage({id:"TRANSCRIPT.TABLE.NO"})}),c.jsx(Fe,{className:"min-w-28 h-10",children:t.formatMessage({id:"TRANSCRIPT.TABLE.CODE"})}),c.jsx(Fe,{className:"min-w-40 h-10",children:t.formatMessage({id:"TRANSCRIPT.TABLE.NAME"})}),c.jsx(Fe,{className:"min-w-16 h-10 text-center",children:t.formatMessage({id:"TRANSCRIPT.TABLE.CREDIT"})}),c.jsx(Fe,{className:"min-w-16 h-10 text-center",children:t.formatMessage({id:"TRANSCRIPT.TABLE.GRADE"})}),c.jsx(Fe,{className:"min-w-28 h-10 text-center",children:t.formatMessage({id:"TRANSCRIPT.TABLE.STATUS"})})]})}),c.jsx(Ca,{children:n.courses.map((a,s)=>c.jsxs(en,{children:[c.jsx(Qe,{className:"py-2 text-sm text-foreground font-normal",children:s+1}),c.jsx(Qe,{className:"py-2 text-sm font-mono text-primary font-semibold",children:a.subjectCode}),c.jsxs(Qe,{className:"py-2 text-sm text-foreground",children:[a.subjectName,(a.prerequisite||a.replacedSubject)&&c.jsxs("div",{className:"text-xs text-muted-foreground italic",children:[a.prerequisite&&c.jsxs("span",{children:[t.formatMessage({id:"TRANSCRIPT.DETAILS.PREREQ"})," ",a.prerequisite," "]}),a.replacedSubject&&c.jsxs("span",{children:[t.formatMessage({id:"TRANSCRIPT.DETAILS.REPLACED"})," ",a.replacedSubject]})]})]}),c.jsx(Qe,{className:"py-2 text-sm text-center",children:a.credit}),c.jsx(Qe,{className:"py-2 text-sm text-center",children:a.grade>0?a.grade.toFixed(1):"-"}),c.jsx(Qe,{className:"py-2 text-sm text-center",children:c.jsx(Ghe,{status:a.status})})]},s))})]})})})]},r))}):c.jsx("div",{className:"p-8 text-center text-muted",children:t.formatMessage({id:"TRANSCRIPT.EMPTY"})})}const $he=()=>{const{gpaList:e,averageGPA:t,totalCredit:n,nonGpaCodes:r,setNonGpaCodes:a}=Hhe();return c.jsxs(ht,{children:[c.jsx(Vhe,{averageGPA:t,totalCredit:n,nonGpaCodes:r,setNonGpaCodes:a}),c.jsx(zhe,{gpaList:e})]})};function qhe(){return c.jsxs(o2,{children:[c.jsxs(lt,{element:c.jsx(A_,{}),children:[c.jsx(lt,{path:"/Student.aspx",element:c.jsx(vre,{})}),c.jsx(lt,{path:"/Report/ScheduleOfWeek.aspx",element:c.jsx(nfe,{})}),c.jsx(lt,{path:"/Report/ViewAttendstudent.aspx",element:c.jsx(ffe,{})}),c.jsx(lt,{path:"/Report/Help.aspx",element:c.jsx(Afe,{})}),c.jsx(lt,{path:"/Grade/StudentGrade.aspx",element:c.jsx(ufe,{})}),c.jsx(lt,{path:"/Thongbao.aspx",element:c.jsx(YQ,{})}),c.jsx(lt,{path:"/FrontOffice/SubjectFees.aspx",element:c.jsx(Ide,{})}),c.jsx(lt,{path:"/FrontOffice/StudentCurriculum.aspx",element:c.jsx(Jce,{})}),c.jsx(lt,{path:"/Finance/TransReport.aspx",element:c.jsx(Xce,{})}),c.jsx(lt,{path:"/Exam/ScheduleExams.aspx",element:c.jsx(Sfe,{})}),c.jsx(lt,{path:"/User/Profile.aspx",element:c.jsx(zfe,{})}),c.jsx(lt,{path:"/User/verProfile.aspx",element:c.jsx(Yfe,{})}),c.jsx(lt,{path:"/Course/Groups.aspx",element:c.jsx(bfe,{})}),c.jsx(lt,{path:"/Schedule/ActivityStudent.aspx",element:c.jsx(Mhe,{})}),c.jsx(lt,{path:"/CmsFAP/News.aspx",element:c.jsx(bM,{})}),c.jsx(lt,{path:"/CmsFAP/PlusNews.aspx",element:c.jsx(bM,{})}),c.jsx(lt,{path:"/CmsFAP/NewsDetail.aspx",element:c.jsx(vfe,{})}),c.jsx(lt,{path:"/App/AcadAppView.aspx",element:c.jsx(Lhe,{})}),c.jsx(lt,{path:"/Grade/StudentTranscript.aspx",element:c.jsx($he,{})})]}),c.jsxs(lt,{element:c.jsx(Tfe,{}),children:[c.jsx(lt,{path:"/",element:c.jsx(EM,{})}),c.jsx(lt,{path:"/Default.aspx",element:c.jsx(EM,{})})]}),c.jsx(lt,{path:"error/*",element:c.jsx(N9,{})}),c.jsx(lt,{element:c.jsx(A_,{}),children:c.jsx(lt,{path:"*",element:c.jsx(Wfe,{})})})]})}function Yhe(){const{start:e,complete:t}=J6({color:"var(--color-primary)",shadow:!1,waitingTime:400,transitionTime:200,height:2}),[n,r]=S.useState(""),[a,s]=S.useState(!0),i=Rn(),u=i.pathname.trim();return S.useEffect(()=>{a&&s(!1)}),S.useEffect(()=>{a||(e("static"),s(!1),r(u),t(),u===n&&r(""))},[i]),S.useEffect(()=>{CSS.escape(window.location.hash)||window.scrollTo({top:0,behavior:"smooth"})},[n]),c.jsx(qhe,{})}function SE(e,t){return SE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},SE(e,t)}function Fg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,SE(e,t)}var Bg=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var a=this,s=r||function(){};return this.listeners.push(s),this.onSubscribe(),function(){a.listeners=a.listeners.filter(function(i){return i!==s}),a.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function vt(){return vt=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},vt.apply(null,arguments)}var s4=typeof window>"u";function or(){}function Whe(e,t){return typeof e=="function"?e(t):e}function Khe(e){return typeof e=="number"&&e>=0&&e!==1/0}function Mp(e){return Array.isArray(e)?e:[e]}function Xhe(e,t){return Math.max(e+(t||0)-Date.now(),0)}function xx(e,t,n){return Hg(e)?typeof t=="function"?vt({},n,{queryKey:e,queryFn:t}):vt({},t,{queryKey:e}):e}function No(e,t,n){return Hg(e)?[vt({},t,{queryKey:e}),n]:[e||{},t]}function Qhe(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function AM(e,t){var n=e.active,r=e.exact,a=e.fetching,s=e.inactive,i=e.predicate,u=e.queryKey,d=e.stale;if(Hg(u)){if(r){if(t.queryHash!==HS(u,t.options))return!1}else if(!Op(t.queryKey,u))return!1}var f=Qhe(n,s);if(f==="none")return!1;if(f!=="all"){var m=t.isActive();if(f==="active"&&!m||f==="inactive"&&m)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||typeof a=="boolean"&&t.isFetching()!==a||i&&!i(t))}function _M(e,t){var n=e.exact,r=e.fetching,a=e.predicate,s=e.mutationKey;if(Hg(s)){if(!t.options.mutationKey)return!1;if(n){if(Pi(t.options.mutationKey)!==Pi(s))return!1}else if(!Op(t.options.mutationKey,s))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||a&&!a(t))}function HS(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||Pi;return n(e)}function Pi(e){var t=Mp(e);return Zhe(t)}function Zhe(e){return JSON.stringify(e,function(t,n){return TE(n)?Object.keys(n).sort().reduce(function(r,a){return r[a]=n[a],r},{}):n})}function Op(e,t){return o4(Mp(e),Mp(t))}function o4(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!o4(e[n],t[n])}):!1}function i4(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||TE(e)&&TE(t)){for(var r=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),s=a.length,i=n?[]:{},u=0,d=0;d<s;d++){var f=n?d:a[d];i[f]=i4(e[f],t[f]),i[f]===e[f]&&u++}return r===s&&u===r?e:i}return t}function TE(e){if(!RM(e))return!1;var t=e.constructor;if(typeof t>"u")return!0;var n=t.prototype;return!(!RM(n)||!n.hasOwnProperty("isPrototypeOf"))}function RM(e){return Object.prototype.toString.call(e)==="[object Object]"}function Hg(e){return typeof e=="string"||Array.isArray(e)}function Jhe(e){return new Promise(function(t){setTimeout(t,e)})}function MM(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function l4(){if(typeof AbortController=="function")return new AbortController}var eme=function(e){Fg(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var s;if(!s4&&((s=window)!=null&&s.addEventListener)){var i=function(){return a()};return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),function(){window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var s,i=this;this.setup=a,(s=this.cleanup)==null||s.call(this),this.cleanup=a(function(u){typeof u=="boolean"?i.setFocused(u):i.onFocus()})},n.setFocused=function(a){this.focused=a,a&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(a){a()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(Bg),qm=new eme,tme=function(e){Fg(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var s;if(!s4&&((s=window)!=null&&s.addEventListener)){var i=function(){return a()};return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),function(){window.removeEventListener("online",i),window.removeEventListener("offline",i)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var s,i=this;this.setup=a,(s=this.cleanup)==null||s.call(this),this.cleanup=a(function(u){typeof u=="boolean"?i.setOnline(u):i.onOnline()})},n.setOnline=function(a){this.online=a,a&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(a){a()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(Bg),Ym=new tme;function nme(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Dp(e){return typeof(e==null?void 0:e.cancel)=="function"}var c4=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function bx(e){return e instanceof c4}var u4=function(t){var n=this,r=!1,a,s,i,u;this.abort=t.abort,this.cancel=function(v){return a==null?void 0:a(v)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return s==null?void 0:s()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(v,y){i=v,u=y});var d=function(y){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(y),s==null||s(),i(y))},f=function(y){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(y),s==null||s(),u(y))},m=function(){return new Promise(function(y){s=y,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){s=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},p=function v(){if(!n.isResolved){var y;try{y=t.fn()}catch(x){y=Promise.reject(x)}a=function(b){if(!n.isResolved&&(f(new c4(b)),n.abort==null||n.abort(),Dp(y)))try{y.cancel()}catch{}},n.isTransportCancelable=Dp(y),Promise.resolve(y).then(d).catch(function(x){var b,T;if(!n.isResolved){var N=(b=t.retry)!=null?b:3,C=(T=t.retryDelay)!=null?T:nme,A=typeof C=="function"?C(n.failureCount,x):C,R=N===!0||typeof N=="number"&&n.failureCount<N||typeof N=="function"&&N(n.failureCount,x);if(r||!R){f(x);return}n.failureCount++,t.onFail==null||t.onFail(n.failureCount,x),Jhe(A).then(function(){if(!qm.isFocused()||!Ym.isOnline())return m()}).then(function(){r?f(x):v()})}})}};p()},rme=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(n){n()},this.batchNotifyFn=function(n){n()}}var t=e.prototype;return t.batch=function(r){var a;this.transactions++;try{a=r()}finally{this.transactions--,this.transactions||this.flush()}return a},t.schedule=function(r){var a=this;this.transactions?this.queue.push(r):MM(function(){a.notifyFn(r)})},t.batchCalls=function(r){var a=this;return function(){for(var s=arguments.length,i=new Array(s),u=0;u<s;u++)i[u]=arguments[u];a.schedule(function(){r.apply(void 0,i)})}},t.flush=function(){var r=this,a=this.queue;this.queue=[],a.length&&MM(function(){r.batchNotifyFn(function(){a.forEach(function(s){r.notifyFn(s)})})})},t.setNotifyFunction=function(r){this.notifyFn=r},t.setBatchNotifyFunction=function(r){this.batchNotifyFn=r},e}(),Bn=new rme,d4=console;function f4(){return d4}function ame(e){d4=e}var sme=function(){function e(n){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.cache=n.cache,this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.initialState=n.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=n.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(r){var a;this.options=vt({},this.defaultOptions,r),this.meta=r==null?void 0:r.meta,this.cacheTime=Math.max(this.cacheTime||0,(a=this.options.cacheTime)!=null?a:5*60*1e3)},t.setDefaultOptions=function(r){this.defaultOptions=r},t.scheduleGc=function(){var r=this;this.clearGcTimeout(),Khe(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){r.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(r,a){var s,i,u=this.state.data,d=Whe(r,u);return(s=(i=this.options).isDataEqual)!=null&&s.call(i,u,d)?d=u:this.options.structuralSharing!==!1&&(d=i4(u,d)),this.dispatch({data:d,type:"success",dataUpdatedAt:a==null?void 0:a.updatedAt}),d},t.setState=function(r,a){this.dispatch({type:"setState",state:r,setStateOptions:a})},t.cancel=function(r){var a,s=this.promise;return(a=this.retryer)==null||a.cancel(r),s?s.then(or).catch(or):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(r){return r.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(r){return r.getCurrentResult().isStale})},t.isStaleByTime=function(r){return r===void 0&&(r=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!Xhe(this.state.dataUpdatedAt,r)},t.onFocus=function(){var r,a=this.observers.find(function(s){return s.shouldFetchOnWindowFocus()});a&&a.refetch(),(r=this.retryer)==null||r.continue()},t.onOnline=function(){var r,a=this.observers.find(function(s){return s.shouldFetchOnReconnect()});a&&a.refetch(),(r=this.retryer)==null||r.continue()},t.addObserver=function(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:r}))},t.removeObserver=function(r){this.observers.indexOf(r)!==-1&&(this.observers=this.observers.filter(function(a){return a!==r}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:r}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(r,a){var s=this,i,u,d;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(a!=null&&a.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var f;return(f=this.retryer)==null||f.continueRetry(),this.promise}}if(r&&this.setOptions(r),!this.options.queryFn){var m=this.observers.find(function(C){return C.options.queryFn});m&&this.setOptions(m.options)}var p=Mp(this.queryKey),v=l4(),y={queryKey:p,pageParam:void 0,meta:this.meta};Object.defineProperty(y,"signal",{enumerable:!0,get:function(){if(v)return s.abortSignalConsumed=!0,v.signal}});var x=function(){return s.options.queryFn?(s.abortSignalConsumed=!1,s.options.queryFn(y)):Promise.reject("Missing queryFn")},b={fetchOptions:a,options:this.options,queryKey:p,state:this.state,fetchFn:x,meta:this.meta};if((i=this.options.behavior)!=null&&i.onFetch){var T;(T=this.options.behavior)==null||T.onFetch(b)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((u=b.fetchOptions)==null?void 0:u.meta)){var N;this.dispatch({type:"fetch",meta:(N=b.fetchOptions)==null?void 0:N.meta})}return this.retryer=new u4({fn:b.fetchFn,abort:v==null||(d=v.abort)==null?void 0:d.bind(v),onSuccess:function(A){s.setData(A),s.cache.config.onSuccess==null||s.cache.config.onSuccess(A,s),s.cacheTime===0&&s.optionalRemove()},onError:function(A){bx(A)&&A.silent||s.dispatch({type:"error",error:A}),bx(A)||(s.cache.config.onError==null||s.cache.config.onError(A,s),f4().error(A)),s.cacheTime===0&&s.optionalRemove()},onFail:function(){s.dispatch({type:"failed"})},onPause:function(){s.dispatch({type:"pause"})},onContinue:function(){s.dispatch({type:"continue"})},retry:b.options.retry,retryDelay:b.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(r){var a=this;this.state=this.reducer(this.state,r),Bn.batch(function(){a.observers.forEach(function(s){s.onQueryUpdate(r)}),a.cache.notify({query:a,type:"queryUpdated",action:r})})},t.getDefaultState=function(r){var a=typeof r.initialData=="function"?r.initialData():r.initialData,s=typeof r.initialData<"u",i=s?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0,u=typeof a<"u";return{data:a,dataUpdateCount:0,dataUpdatedAt:u?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:u?"success":"idle"}},t.reducer=function(r,a){var s,i;switch(a.type){case"failed":return vt({},r,{fetchFailureCount:r.fetchFailureCount+1});case"pause":return vt({},r,{isPaused:!0});case"continue":return vt({},r,{isPaused:!1});case"fetch":return vt({},r,{fetchFailureCount:0,fetchMeta:(s=a.meta)!=null?s:null,isFetching:!0,isPaused:!1},!r.dataUpdatedAt&&{error:null,status:"loading"});case"success":return vt({},r,{data:a.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=a.dataUpdatedAt)!=null?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var u=a.error;return bx(u)&&u.revert&&this.revertState?vt({},this.revertState):vt({},r,{error:u,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return vt({},r,{isInvalidated:!0});case"setState":return vt({},r,a.state);default:return r}},e}(),ome=function(e){Fg(t,e);function t(r){var a;return a=e.call(this)||this,a.config=r||{},a.queries=[],a.queriesMap={},a}var n=t.prototype;return n.build=function(a,s,i){var u,d=s.queryKey,f=(u=s.queryHash)!=null?u:HS(d,s),m=this.get(f);return m||(m=new sme({cache:this,queryKey:d,queryHash:f,options:a.defaultQueryOptions(s),state:i,defaultOptions:a.getQueryDefaults(d),meta:s.meta}),this.add(m)),m},n.add=function(a){this.queriesMap[a.queryHash]||(this.queriesMap[a.queryHash]=a,this.queries.push(a),this.notify({type:"queryAdded",query:a}))},n.remove=function(a){var s=this.queriesMap[a.queryHash];s&&(a.destroy(),this.queries=this.queries.filter(function(i){return i!==a}),s===a&&delete this.queriesMap[a.queryHash],this.notify({type:"queryRemoved",query:a}))},n.clear=function(){var a=this;Bn.batch(function(){a.queries.forEach(function(s){a.remove(s)})})},n.get=function(a){return this.queriesMap[a]},n.getAll=function(){return this.queries},n.find=function(a,s){var i=No(a,s),u=i[0];return typeof u.exact>"u"&&(u.exact=!0),this.queries.find(function(d){return AM(u,d)})},n.findAll=function(a,s){var i=No(a,s),u=i[0];return Object.keys(u).length>0?this.queries.filter(function(d){return AM(u,d)}):this.queries},n.notify=function(a){var s=this;Bn.batch(function(){s.listeners.forEach(function(i){i(a)})})},n.onFocus=function(){var a=this;Bn.batch(function(){a.queries.forEach(function(s){s.onFocus()})})},n.onOnline=function(){var a=this;Bn.batch(function(){a.queries.forEach(function(s){s.onOnline()})})},t}(Bg),ime=function(){function e(n){this.options=vt({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||lme(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(a){return a!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(or).catch(or)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,a,s=this.state.status==="loading",i=Promise.resolve();return s||(this.dispatch({type:"loading",variables:this.options.variables}),i=i.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(u){u!==r.state.context&&r.dispatch({type:"loading",context:u,variables:r.state.variables})})),i.then(function(){return r.executeMutation()}).then(function(u){a=u,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(a,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(a,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(a,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:a}),a}).catch(function(u){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(u,r.state.variables,r.state.context,r),f4().error(u),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(u,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,u,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:u}),u})})},t.executeMutation=function(){var r=this,a;return this.retryer=new u4({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var a=this;this.state=cme(this.state,r),Bn.batch(function(){a.observers.forEach(function(s){s.onMutationUpdate(r)}),a.mutationCache.notify(a)})},e}();function lme(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function cme(e,t){switch(t.type){case"failed":return vt({},e,{failureCount:e.failureCount+1});case"pause":return vt({},e,{isPaused:!0});case"continue":return vt({},e,{isPaused:!1});case"loading":return vt({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return vt({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return vt({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return vt({},e,t.state);default:return e}}var ume=function(e){Fg(t,e);function t(r){var a;return a=e.call(this)||this,a.config=r||{},a.mutations=[],a.mutationId=0,a}var n=t.prototype;return n.build=function(a,s,i){var u=new ime({mutationCache:this,mutationId:++this.mutationId,options:a.defaultMutationOptions(s),state:i,defaultOptions:s.mutationKey?a.getMutationDefaults(s.mutationKey):void 0,meta:s.meta});return this.add(u),u},n.add=function(a){this.mutations.push(a),this.notify(a)},n.remove=function(a){this.mutations=this.mutations.filter(function(s){return s!==a}),a.cancel(),this.notify(a)},n.clear=function(){var a=this;Bn.batch(function(){a.mutations.forEach(function(s){a.remove(s)})})},n.getAll=function(){return this.mutations},n.find=function(a){return typeof a.exact>"u"&&(a.exact=!0),this.mutations.find(function(s){return _M(a,s)})},n.findAll=function(a){return this.mutations.filter(function(s){return _M(a,s)})},n.notify=function(a){var s=this;Bn.batch(function(){s.listeners.forEach(function(i){i(a)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var a=this.mutations.filter(function(s){return s.state.isPaused});return Bn.batch(function(){return a.reduce(function(s,i){return s.then(function(){return i.continue().catch(or)})},Promise.resolve())})},t}(Bg);function dme(){return{onFetch:function(t){t.fetchFn=function(){var n,r,a,s,i,u,d=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,f=(a=t.fetchOptions)==null||(s=a.meta)==null?void 0:s.fetchMore,m=f==null?void 0:f.pageParam,p=(f==null?void 0:f.direction)==="forward",v=(f==null?void 0:f.direction)==="backward",y=((i=t.state.data)==null?void 0:i.pages)||[],x=((u=t.state.data)==null?void 0:u.pageParams)||[],b=l4(),T=b==null?void 0:b.signal,N=x,C=!1,A=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},R=function(ee,Q,j,Y){return N=Y?[Q].concat(N):[].concat(N,[Q]),Y?[j].concat(ee):[].concat(ee,[j])},_=function(ee,Q,j,Y){if(C)return Promise.reject("Cancelled");if(typeof j>"u"&&!Q&&ee.length)return Promise.resolve(ee);var V={queryKey:t.queryKey,signal:T,pageParam:j,meta:t.meta},te=A(V),k=Promise.resolve(te).then(function(se){return R(ee,j,se,Y)});if(Dp(te)){var $=k;$.cancel=te.cancel}return k},O;if(!y.length)O=_([]);else if(p){var D=typeof m<"u",P=D?m:OM(t.options,y);O=_(y,D,P)}else if(v){var L=typeof m<"u",U=L?m:fme(t.options,y);O=_(y,L,U,!0)}else(function(){N=[];var Z=typeof t.options.getNextPageParam>"u",ee=d&&y[0]?d(y[0],0,y):!0;O=ee?_([],Z,x[0]):Promise.resolve(R([],x[0],y[0]));for(var Q=function(V){O=O.then(function(te){var k=d&&y[V]?d(y[V],V,y):!0;if(k){var $=Z?x[V]:OM(t.options,te);return _(te,Z,$)}return Promise.resolve(R(te,x[V],y[V]))})},j=1;j<y.length;j++)Q(j)})();var B=O.then(function(Z){return{pages:Z,pageParams:N}}),H=B;return H.cancel=function(){C=!0,b==null||b.abort(),Dp(O)&&O.cancel()},B}}}}function OM(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function fme(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}var hme=function(){function e(n){n===void 0&&(n={}),this.queryCache=n.queryCache||new ome,this.mutationCache=n.mutationCache||new ume,this.defaultOptions=n.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var r=this;this.unsubscribeFocus=qm.subscribe(function(){qm.isFocused()&&Ym.isOnline()&&(r.mutationCache.onFocus(),r.queryCache.onFocus())}),this.unsubscribeOnline=Ym.subscribe(function(){qm.isFocused()&&Ym.isOnline()&&(r.mutationCache.onOnline(),r.queryCache.onOnline())})},t.unmount=function(){var r,a;(r=this.unsubscribeFocus)==null||r.call(this),(a=this.unsubscribeOnline)==null||a.call(this)},t.isFetching=function(r,a){var s=No(r,a),i=s[0];return i.fetching=!0,this.queryCache.findAll(i).length},t.isMutating=function(r){return this.mutationCache.findAll(vt({},r,{fetching:!0})).length},t.getQueryData=function(r,a){var s;return(s=this.queryCache.find(r,a))==null?void 0:s.state.data},t.getQueriesData=function(r){return this.getQueryCache().findAll(r).map(function(a){var s=a.queryKey,i=a.state,u=i.data;return[s,u]})},t.setQueryData=function(r,a,s){var i=xx(r),u=this.defaultQueryOptions(i);return this.queryCache.build(this,u).setData(a,s)},t.setQueriesData=function(r,a,s){var i=this;return Bn.batch(function(){return i.getQueryCache().findAll(r).map(function(u){var d=u.queryKey;return[d,i.setQueryData(d,a,s)]})})},t.getQueryState=function(r,a){var s;return(s=this.queryCache.find(r,a))==null?void 0:s.state},t.removeQueries=function(r,a){var s=No(r,a),i=s[0],u=this.queryCache;Bn.batch(function(){u.findAll(i).forEach(function(d){u.remove(d)})})},t.resetQueries=function(r,a,s){var i=this,u=No(r,a,s),d=u[0],f=u[1],m=this.queryCache,p=vt({},d,{active:!0});return Bn.batch(function(){return m.findAll(d).forEach(function(v){v.reset()}),i.refetchQueries(p,f)})},t.cancelQueries=function(r,a,s){var i=this,u=No(r,a,s),d=u[0],f=u[1],m=f===void 0?{}:f;typeof m.revert>"u"&&(m.revert=!0);var p=Bn.batch(function(){return i.queryCache.findAll(d).map(function(v){return v.cancel(m)})});return Promise.all(p).then(or).catch(or)},t.invalidateQueries=function(r,a,s){var i,u,d,f=this,m=No(r,a,s),p=m[0],v=m[1],y=vt({},p,{active:(i=(u=p.refetchActive)!=null?u:p.active)!=null?i:!0,inactive:(d=p.refetchInactive)!=null?d:!1});return Bn.batch(function(){return f.queryCache.findAll(p).forEach(function(x){x.invalidate()}),f.refetchQueries(y,v)})},t.refetchQueries=function(r,a,s){var i=this,u=No(r,a,s),d=u[0],f=u[1],m=Bn.batch(function(){return i.queryCache.findAll(d).map(function(v){return v.fetch(void 0,vt({},f,{meta:{refetchPage:d==null?void 0:d.refetchPage}}))})}),p=Promise.all(m).then(or);return f!=null&&f.throwOnError||(p=p.catch(or)),p},t.fetchQuery=function(r,a,s){var i=xx(r,a,s),u=this.defaultQueryOptions(i);typeof u.retry>"u"&&(u.retry=!1);var d=this.queryCache.build(this,u);return d.isStaleByTime(u.staleTime)?d.fetch(u):Promise.resolve(d.state.data)},t.prefetchQuery=function(r,a,s){return this.fetchQuery(r,a,s).then(or).catch(or)},t.fetchInfiniteQuery=function(r,a,s){var i=xx(r,a,s);return i.behavior=dme(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(r,a,s){return this.fetchInfiniteQuery(r,a,s).then(or).catch(or)},t.cancelMutations=function(){var r=this,a=Bn.batch(function(){return r.mutationCache.getAll().map(function(s){return s.cancel()})});return Promise.all(a).then(or).catch(or)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,a){var s=this.queryDefaults.find(function(i){return Pi(r)===Pi(i.queryKey)});s?s.defaultOptions=a:this.queryDefaults.push({queryKey:r,defaultOptions:a})},t.getQueryDefaults=function(r){var a;return r?(a=this.queryDefaults.find(function(s){return Op(r,s.queryKey)}))==null?void 0:a.defaultOptions:void 0},t.setMutationDefaults=function(r,a){var s=this.mutationDefaults.find(function(i){return Pi(r)===Pi(i.mutationKey)});s?s.defaultOptions=a:this.mutationDefaults.push({mutationKey:r,defaultOptions:a})},t.getMutationDefaults=function(r){var a;return r?(a=this.mutationDefaults.find(function(s){return Op(r,s.mutationKey)}))==null?void 0:a.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var a=vt({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!a.queryHash&&a.queryKey&&(a.queryHash=HS(a.queryKey,a)),a},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:vt({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),mme=jp.unstable_batchedUpdates;Bn.setBatchNotifyFunction(mme);var pme=console;ame(pme);var DM=z.createContext(void 0),gme=z.createContext(!1);function vme(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=DM),window.ReactQueryClientContext):DM}var yme=function(t){var n=t.client,r=t.contextSharing,a=r===void 0?!1:r,s=t.children;z.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var i=vme(a);return z.createElement(gme.Provider,{value:a},z.createElement(i.Provider,{value:n},s))},Vg=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Gg=typeof window>"u"||"Deno"in globalThis;function ha(){}function xme(e,t){return typeof e=="function"?e(t):e}function bme(e){return typeof e=="number"&&e>=0&&e!==1/0}function Eme(e,t){return Math.max(e+(t||0)-Date.now(),0)}function IM(e,t){return typeof e=="function"?e(t):e}function Sme(e,t){return typeof e=="function"?e(t):e}function PM(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:s,queryKey:i,stale:u}=e;if(i){if(r){if(t.queryHash!==VS(i,t.options))return!1}else if(!Hd(t.queryKey,i))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||s&&!s(t))}function jM(e,t){const{exact:n,status:r,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Bd(t.options.mutationKey)!==Bd(s))return!1}else if(!Hd(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function VS(e,t){return((t==null?void 0:t.queryKeyHashFn)||Bd)(e)}function Bd(e){return JSON.stringify(e,(t,n)=>NE(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Hd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Hd(e[n],t[n])):!1}function h4(e,t){if(e===t)return e;const n=LM(e)&&LM(t);if(n||NE(e)&&NE(t)){const r=n?e:Object.keys(e),a=r.length,s=n?t:Object.keys(t),i=s.length,u=n?[]:{};let d=0;for(let f=0;f<i;f++){const m=n?f:s[f];(!n&&r.includes(m)||n)&&e[m]===void 0&&t[m]===void 0?(u[m]=void 0,d++):(u[m]=h4(e[m],t[m]),u[m]===e[m]&&e[m]!==void 0&&d++)}return a===i&&d===a?e:u}return t}function LM(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function NE(e){if(!kM(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!kM(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function kM(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tme(e){return new Promise(t=>{setTimeout(t,e)})}function Nme(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?h4(e,t):t}function wme(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Cme(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var GS=Symbol();function m4(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===GS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Li,wo,fc,BM,Ame=(BM=class extends Vg{constructor(){super();it(this,Li);it(this,wo);it(this,fc);$e(this,fc,t=>{if(!Gg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){le(this,wo)||this.setEventListener(le(this,fc))}onUnsubscribe(){var t;this.hasListeners()||((t=le(this,wo))==null||t.call(this),$e(this,wo,void 0))}setEventListener(t){var n;$e(this,fc,t),(n=le(this,wo))==null||n.call(this),$e(this,wo,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){le(this,Li)!==t&&($e(this,Li,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof le(this,Li)=="boolean"?le(this,Li):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Li=new WeakMap,wo=new WeakMap,fc=new WeakMap,BM),p4=new Ame,hc,Co,mc,HM,_me=(HM=class extends Vg{constructor(){super();it(this,hc,!0);it(this,Co);it(this,mc);$e(this,mc,t=>{if(!Gg&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){le(this,Co)||this.setEventListener(le(this,mc))}onUnsubscribe(){var t;this.hasListeners()||((t=le(this,Co))==null||t.call(this),$e(this,Co,void 0))}setEventListener(t){var n;$e(this,mc,t),(n=le(this,Co))==null||n.call(this),$e(this,Co,t(this.setOnline.bind(this)))}setOnline(t){le(this,hc)!==t&&($e(this,hc,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return le(this,hc)}},hc=new WeakMap,Co=new WeakMap,mc=new WeakMap,HM),Ip=new _me;function Rme(){let e,t;const n=new Promise((a,s)=>{e=a,t=s});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function Mme(e){return Math.min(1e3*2**e,3e4)}function g4(e){return(e??"online")==="online"?Ip.isOnline():!0}var v4=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ex(e){return e instanceof v4}function y4(e){let t=!1,n=0,r=!1,a;const s=Rme(),i=b=>{var T;r||(v(new v4(b)),(T=e.abort)==null||T.call(e))},u=()=>{t=!0},d=()=>{t=!1},f=()=>p4.isFocused()&&(e.networkMode==="always"||Ip.isOnline())&&e.canRun(),m=()=>g4(e.networkMode)&&e.canRun(),p=b=>{var T;r||(r=!0,(T=e.onSuccess)==null||T.call(e,b),a==null||a(),s.resolve(b))},v=b=>{var T;r||(r=!0,(T=e.onError)==null||T.call(e,b),a==null||a(),s.reject(b))},y=()=>new Promise(b=>{var T;a=N=>{(r||f())&&b(N)},(T=e.onPause)==null||T.call(e)}).then(()=>{var b;a=void 0,r||(b=e.onContinue)==null||b.call(e)}),x=()=>{if(r)return;let b;const T=n===0?e.initialPromise:void 0;try{b=T??e.fn()}catch(N){b=Promise.reject(N)}Promise.resolve(b).then(p).catch(N=>{var O;if(r)return;const C=e.retry??(Gg?0:3),A=e.retryDelay??Mme,R=typeof A=="function"?A(n,N):A,_=C===!0||typeof C=="number"&&n<C||typeof C=="function"&&C(n,N);if(t||!_){v(N);return}n++,(O=e.onFail)==null||O.call(e,n,N),Tme(R).then(()=>f()?void 0:y()).then(()=>{t?v(N):x()})})};return{promise:s,cancel:i,continue:()=>(a==null||a(),s),cancelRetry:u,continueRetry:d,canStart:m,start:()=>(m()?x():y().then(x),s)}}var Ome=e=>setTimeout(e,0);function Dme(){let e=[],t=0,n=u=>{u()},r=u=>{u()},a=Ome;const s=u=>{t?e.push(u):a(()=>{n(u)})},i=()=>{const u=e;e=[],u.length&&a(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||i()}return d},batchCalls:u=>(...d)=>{s(()=>{u(...d)})},schedule:s,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{a=u}}}var cr=Dme(),ki,VM,x4=(VM=class{constructor(){it(this,ki)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bme(this.gcTime)&&$e(this,ki,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Gg?1/0:5*60*1e3))}clearGcTimeout(){le(this,ki)&&(clearTimeout(le(this,ki)),$e(this,ki,void 0))}},ki=new WeakMap,VM),pc,gc,Zr,Ui,Kn,Vd,Fi,ma,Ms,GM,Ime=(GM=class extends x4{constructor(t){super();it(this,ma);it(this,pc);it(this,gc);it(this,Zr);it(this,Ui);it(this,Kn);it(this,Vd);it(this,Fi);$e(this,Fi,!1),$e(this,Vd,t.defaultOptions),this.setOptions(t.options),this.observers=[],$e(this,Ui,t.client),$e(this,Zr,le(this,Ui).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,$e(this,pc,jme(this.options)),this.state=t.state??le(this,pc),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=le(this,Kn))==null?void 0:t.promise}setOptions(t){this.options={...le(this,Vd),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&le(this,Zr).remove(this)}setData(t,n){const r=Nme(this.state.data,t,this.options);return qn(this,ma,Ms).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){qn(this,ma,Ms).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,a;const n=(r=le(this,Kn))==null?void 0:r.promise;return(a=le(this,Kn))==null||a.cancel(t),n?n.then(ha).catch(ha):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(le(this,pc))}isActive(){return this.observers.some(t=>Sme(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===GS||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Eme(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=le(this,Kn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=le(this,Kn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),le(this,Zr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(le(this,Kn)&&(le(this,Fi)?le(this,Kn).cancel({revert:!0}):le(this,Kn).cancelRetry()),this.scheduleGc()),le(this,Zr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||qn(this,ma,Ms).call(this,{type:"invalidate"})}fetch(t,n){var d,f,m;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(le(this,Kn))return le(this,Kn).continueRetry(),le(this,Kn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(v=>v.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,a=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>($e(this,Fi,!0),r.signal)})},s=()=>{const p=m4(this.options,n),v={client:le(this,Ui),queryKey:this.queryKey,meta:this.meta};return a(v),$e(this,Fi,!1),this.options.persister?this.options.persister(p,v,this):p(v)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:le(this,Ui),state:this.state,fetchFn:s};a(i),(d=this.options.behavior)==null||d.onFetch(i,this),$e(this,gc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=i.fetchOptions)==null?void 0:f.meta))&&qn(this,ma,Ms).call(this,{type:"fetch",meta:(m=i.fetchOptions)==null?void 0:m.meta});const u=p=>{var v,y,x,b;Ex(p)&&p.silent||qn(this,ma,Ms).call(this,{type:"error",error:p}),Ex(p)||((y=(v=le(this,Zr).config).onError)==null||y.call(v,p,this),(b=(x=le(this,Zr).config).onSettled)==null||b.call(x,this.state.data,p,this)),this.scheduleGc()};return $e(this,Kn,y4({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var v,y,x,b;if(p===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(T){u(T);return}(y=(v=le(this,Zr).config).onSuccess)==null||y.call(v,p,this),(b=(x=le(this,Zr).config).onSettled)==null||b.call(x,p,this.state.error,this),this.scheduleGc()},onError:u,onFail:(p,v)=>{qn(this,ma,Ms).call(this,{type:"failed",failureCount:p,error:v})},onPause:()=>{qn(this,ma,Ms).call(this,{type:"pause"})},onContinue:()=>{qn(this,ma,Ms).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),le(this,Kn).start()}},pc=new WeakMap,gc=new WeakMap,Zr=new WeakMap,Ui=new WeakMap,Kn=new WeakMap,Vd=new WeakMap,Fi=new WeakMap,ma=new WeakSet,Ms=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Pme(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Ex(a)&&a.revert&&le(this,gc)?{...le(this,gc),fetchStatus:"idle"}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),cr.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),le(this,Zr).notify({query:this,type:"updated",action:t})})},GM);function Pme(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:g4(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function jme(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var $a,zM,b4=(zM=class extends Vg{constructor(t={}){super();it(this,$a);this.config=t,$e(this,$a,new Map)}build(t,n,r){const a=n.queryKey,s=n.queryHash??VS(a,n);let i=this.get(s);return i||(i=new Ime({client:t,queryKey:a,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){le(this,$a).has(t.queryHash)||(le(this,$a).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=le(this,$a).get(t.queryHash);n&&(t.destroy(),n===t&&le(this,$a).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){cr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return le(this,$a).get(t)}getAll(){return[...le(this,$a).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>PM(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>PM(t,r)):n}notify(t){cr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){cr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){cr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},$a=new WeakMap,zM),qa,ar,Bi,Ya,Eo,$M,Lme=($M=class extends x4{constructor(t){super();it(this,Ya);it(this,qa);it(this,ar);it(this,Bi);this.mutationId=t.mutationId,$e(this,ar,t.mutationCache),$e(this,qa,[]),this.state=t.state||kme(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){le(this,qa).includes(t)||(le(this,qa).push(t),this.clearGcTimeout(),le(this,ar).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){$e(this,qa,le(this,qa).filter(n=>n!==t)),this.scheduleGc(),le(this,ar).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){le(this,qa).length||(this.state.status==="pending"?this.scheduleGc():le(this,ar).remove(this))}continue(){var t;return((t=le(this,Bi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,u,d,f,m,p,v,y,x,b,T,N,C,A,R,_,O,D,P;const n=()=>{qn(this,Ya,Eo).call(this,{type:"continue"})};$e(this,Bi,y4({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,U)=>{qn(this,Ya,Eo).call(this,{type:"failed",failureCount:L,error:U})},onPause:()=>{qn(this,Ya,Eo).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>le(this,ar).canRun(this)}));const r=this.state.status==="pending",a=!le(this,Bi).canStart();try{if(r)n();else{qn(this,Ya,Eo).call(this,{type:"pending",variables:t,isPaused:a}),await((i=(s=le(this,ar).config).onMutate)==null?void 0:i.call(s,t,this));const U=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,t));U!==this.state.context&&qn(this,Ya,Eo).call(this,{type:"pending",context:U,variables:t,isPaused:a})}const L=await le(this,Bi).start();return await((m=(f=le(this,ar).config).onSuccess)==null?void 0:m.call(f,L,t,this.state.context,this)),await((v=(p=this.options).onSuccess)==null?void 0:v.call(p,L,t,this.state.context)),await((x=(y=le(this,ar).config).onSettled)==null?void 0:x.call(y,L,null,this.state.variables,this.state.context,this)),await((T=(b=this.options).onSettled)==null?void 0:T.call(b,L,null,t,this.state.context)),qn(this,Ya,Eo).call(this,{type:"success",data:L}),L}catch(L){try{throw await((C=(N=le(this,ar).config).onError)==null?void 0:C.call(N,L,t,this.state.context,this)),await((R=(A=this.options).onError)==null?void 0:R.call(A,L,t,this.state.context)),await((O=(_=le(this,ar).config).onSettled)==null?void 0:O.call(_,void 0,L,this.state.variables,this.state.context,this)),await((P=(D=this.options).onSettled)==null?void 0:P.call(D,void 0,L,t,this.state.context)),L}finally{qn(this,Ya,Eo).call(this,{type:"error",error:L})}}finally{le(this,ar).runNext(this)}}},qa=new WeakMap,ar=new WeakMap,Bi=new WeakMap,Ya=new WeakSet,Eo=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),cr.batch(()=>{le(this,qa).forEach(r=>{r.onMutationUpdate(t)}),le(this,ar).notify({mutation:this,type:"updated",action:t})})},$M);function kme(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Is,pa,Gd,qM,Ume=(qM=class extends Vg{constructor(t={}){super();it(this,Is);it(this,pa);it(this,Gd);this.config=t,$e(this,Is,new Set),$e(this,pa,new Map),$e(this,Gd,0)}build(t,n,r){const a=new Lme({mutationCache:this,mutationId:++Gh(this,Gd)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){le(this,Is).add(t);const n=Sm(t);if(typeof n=="string"){const r=le(this,pa).get(n);r?r.push(t):le(this,pa).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(le(this,Is).delete(t)){const n=Sm(t);if(typeof n=="string"){const r=le(this,pa).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&le(this,pa).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Sm(t);if(typeof n=="string"){const r=le(this,pa).get(n),a=r==null?void 0:r.find(s=>s.state.status==="pending");return!a||a===t}else return!0}runNext(t){var r;const n=Sm(t);if(typeof n=="string"){const a=(r=le(this,pa).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){cr.batch(()=>{le(this,Is).forEach(t=>{this.notify({type:"removed",mutation:t})}),le(this,Is).clear(),le(this,pa).clear()})}getAll(){return Array.from(le(this,Is))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>jM(n,r))}findAll(t={}){return this.getAll().filter(n=>jM(t,n))}notify(t){cr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return cr.batch(()=>Promise.all(t.map(n=>n.continue().catch(ha))))}},Is=new WeakMap,pa=new WeakMap,Gd=new WeakMap,qM);function Sm(e){var t;return(t=e.options.scope)==null?void 0:t.id}function UM(e){return{onFetch:(t,n)=>{var m,p,v,y,x;const r=t.options,a=(v=(p=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:p.fetchMore)==null?void 0:v.direction,s=((y=t.state.data)==null?void 0:y.pages)||[],i=((x=t.state.data)==null?void 0:x.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const f=async()=>{let b=!1;const T=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},N=m4(t.options,t.fetchOptions),C=async(A,R,_)=>{if(b)return Promise.reject();if(R==null&&A.pages.length)return Promise.resolve(A);const O={client:t.client,queryKey:t.queryKey,pageParam:R,direction:_?"backward":"forward",meta:t.options.meta};T(O);const D=await N(O),{maxPages:P}=t.options,L=_?Cme:wme;return{pages:L(A.pages,D,P),pageParams:L(A.pageParams,R,P)}};if(a&&s.length){const A=a==="backward",R=A?Fme:FM,_={pages:s,pageParams:i},O=R(r,_);u=await C(_,O,A)}else{const A=e??s.length;do{const R=d===0?i[0]??r.initialPageParam:FM(r,u);if(d>0&&R==null)break;u=await C(u,R),d++}while(d<A)}return u};t.options.persister?t.fetchFn=()=>{var b,T;return(T=(b=t.options).persister)==null?void 0:T.call(b,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function FM(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Fme(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Qt,Ao,_o,vc,yc,Ro,xc,bc,YM,Bme=(YM=class{constructor(e={}){it(this,Qt);it(this,Ao);it(this,_o);it(this,vc);it(this,yc);it(this,Ro);it(this,xc);it(this,bc);$e(this,Qt,e.queryCache||new b4),$e(this,Ao,e.mutationCache||new Ume),$e(this,_o,e.defaultOptions||{}),$e(this,vc,new Map),$e(this,yc,new Map),$e(this,Ro,0)}mount(){Gh(this,Ro)._++,le(this,Ro)===1&&($e(this,xc,p4.subscribe(async e=>{e&&(await this.resumePausedMutations(),le(this,Qt).onFocus())})),$e(this,bc,Ip.subscribe(async e=>{e&&(await this.resumePausedMutations(),le(this,Qt).onOnline())})))}unmount(){var e,t;Gh(this,Ro)._--,le(this,Ro)===0&&((e=le(this,xc))==null||e.call(this),$e(this,xc,void 0),(t=le(this,bc))==null||t.call(this),$e(this,bc,void 0))}isFetching(e){return le(this,Qt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return le(this,Ao).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=le(this,Qt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=le(this,Qt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(IM(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return le(this,Qt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=le(this,Qt).get(r.queryHash),s=a==null?void 0:a.state.data,i=xme(t,s);if(i!==void 0)return le(this,Qt).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return cr.batch(()=>le(this,Qt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=le(this,Qt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=le(this,Qt);cr.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=le(this,Qt);return cr.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=cr.batch(()=>le(this,Qt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(ha).catch(ha)}invalidateQueries(e,t={}){return cr.batch(()=>(le(this,Qt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=cr.batch(()=>le(this,Qt).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let s=a.fetch(void 0,n);return n.throwOnError||(s=s.catch(ha)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(ha)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=le(this,Qt).build(this,t);return n.isStaleByTime(IM(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ha).catch(ha)}fetchInfiniteQuery(e){return e.behavior=UM(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ha).catch(ha)}ensureInfiniteQueryData(e){return e.behavior=UM(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ip.isOnline()?le(this,Ao).resumePausedMutations():Promise.resolve()}getQueryCache(){return le(this,Qt)}getMutationCache(){return le(this,Ao)}getDefaultOptions(){return le(this,_o)}setDefaultOptions(e){$e(this,_o,e)}setQueryDefaults(e,t){le(this,vc).set(Bd(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...le(this,vc).values()],n={};return t.forEach(r=>{Hd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){le(this,yc).set(Bd(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...le(this,yc).values()],n={};return t.forEach(r=>{Hd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...le(this,_o).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=VS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===GS&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...le(this,_o).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){le(this,Qt).clear(),le(this,Ao).clear()}},Qt=new WeakMap,Ao=new WeakMap,_o=new WeakMap,vc=new WeakMap,yc=new WeakMap,Ro=new WeakMap,xc=new WeakMap,bc=new WeakMap,YM),Hme=S.createContext(void 0),Vme=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(Hme.Provider,{value:e,children:t}));const Gme=({children:e})=>{const[t]=S.useState(()=>new Bme({queryCache:new b4({onError:n=>{const r=n.message||"Something went wrong. Please try again.";Nx.custom(()=>c.jsxs(al,{variant:"mono",icon:"destructive",close:!1,children:[c.jsx(Z1,{children:c.jsx(GG,{})}),c.jsx(pf,{children:r})]}),{position:"top-center"})}})}));return c.jsx(Vme,{client:t,children:e})};function zme({children:e}){return c.jsx(zF,{attribute:"class",defaultTheme:"dark",forcedTheme:"dark",disableTransitionOnChange:!0,children:c.jsx(Ic,{delayDuration:0,children:e})})}function $me({children:e}){return c.jsx(Ic,{delayDuration:0,children:e})}const qme={BASE_URL:"/FAP-TiktokVibe/"},{BASE_URL:Yme}=qme;function Wme(){const e=new hme,t=window.location.pathname.startsWith("/FAP-TiktokVibe")?Yme:"/";return c.jsx(GO,{children:c.jsx(yme,{client:e,children:c.jsx(BG,{children:c.jsx(zme,{children:c.jsx(WW,{children:c.jsx(G2,{children:c.jsx($me,{children:c.jsx(Gme,{children:c.jsx(Z6,{children:c.jsxs(F6,{basename:t,children:[c.jsx(TB,{}),c.jsx(LG,{children:c.jsx(Yhe,{})})]})})})})})})})})})})}BF.createRoot(document.getElementById("root")).render(c.jsx(S.StrictMode,{children:c.jsx(Wme,{})}));
