function uS(a,r){for(var i=0;i<r.length;i++){const o=r[i];if(typeof o!="string"&&!Array.isArray(o)){for(const c in o)if(c!=="default"&&!(c in a)){const f=Object.getOwnPropertyDescriptor(o,c);f&&Object.defineProperty(a,c,f.get?f:{enumerable:!0,get:()=>o[c]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function i(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(c){if(c.ep)return;c.ep=!0;const f=i(c);fetch(c.href,f)}})();function tp(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Bc={exports:{}},ii={};/**
 * @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 Hg;function cS(){if(Hg)return ii;Hg=1;var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(o,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var h in c)h!=="key"&&(f[h]=c[h])}else f=c;return c=f.ref,{$$typeof:a,type:o,key:d,ref:c!==void 0?c:null,props:f}}return ii.Fragment=r,ii.jsx=i,ii.jsxs=i,ii}var kg;function fS(){return kg||(kg=1,Bc.exports=cS()),Bc.exports}var P=fS(),Lc={exports:{}},Rt={};/**
 * @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 qg;function dS(){if(qg)return Rt;qg=1;var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function w(R){return R===null||typeof R!="object"?null:(R=v&&R[v]||R["@@iterator"],typeof R=="function"?R:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,x={};function T(R,L,G){this.props=R,this.context=L,this.refs=x,this.updater=G||A}T.prototype.isReactComponent={},T.prototype.setState=function(R,L){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,L,"setState")},T.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function M(){}M.prototype=T.prototype;function F(R,L,G){this.props=R,this.context=L,this.refs=x,this.updater=G||A}var Q=F.prototype=new M;Q.constructor=F,D(Q,T.prototype),Q.isPureReactComponent=!0;var W=Array.isArray,j={H:null,A:null,T:null,S:null,V:null},tt=Object.prototype.hasOwnProperty;function $(R,L,G,Y,et,ht){return G=ht.ref,{$$typeof:a,type:R,key:L,ref:G!==void 0?G:null,props:ht}}function H(R,L){return $(R.type,L,void 0,void 0,void 0,R.props)}function I(R){return typeof R=="object"&&R!==null&&R.$$typeof===a}function at(R){var L={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(G){return L[G]})}var lt=/\/+/g;function st(R,L){return typeof R=="object"&&R!==null&&R.key!=null?at(""+R.key):L.toString(36)}function ct(){}function mt(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(ct,ct):(R.status="pending",R.then(function(L){R.status==="pending"&&(R.status="fulfilled",R.value=L)},function(L){R.status==="pending"&&(R.status="rejected",R.reason=L)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function gt(R,L,G,Y,et){var ht=typeof R;(ht==="undefined"||ht==="boolean")&&(R=null);var nt=!1;if(R===null)nt=!0;else switch(ht){case"bigint":case"string":case"number":nt=!0;break;case"object":switch(R.$$typeof){case a:case r:nt=!0;break;case y:return nt=R._init,gt(nt(R._payload),L,G,Y,et)}}if(nt)return et=et(R),nt=Y===""?"."+st(R,0):Y,W(et)?(G="",nt!=null&&(G=nt.replace(lt,"$&/")+"/"),gt(et,L,G,"",function(kt){return kt})):et!=null&&(I(et)&&(et=H(et,G+(et.key==null||R&&R.key===et.key?"":(""+et.key).replace(lt,"$&/")+"/")+nt)),L.push(et)),1;nt=0;var St=Y===""?".":Y+":";if(W(R))for(var Et=0;Et<R.length;Et++)Y=R[Et],ht=St+st(Y,Et),nt+=gt(Y,L,G,ht,et);else if(Et=w(R),typeof Et=="function")for(R=Et.call(R),Et=0;!(Y=R.next()).done;)Y=Y.value,ht=St+st(Y,Et++),nt+=gt(Y,L,G,ht,et);else if(ht==="object"){if(typeof R.then=="function")return gt(mt(R),L,G,Y,et);throw L=String(R),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return nt}function C(R,L,G){if(R==null)return R;var Y=[],et=0;return gt(R,Y,"","",function(ht){return L.call(G,ht,et++)}),Y}function Z(R){if(R._status===-1){var L=R._result;L=L(),L.then(function(G){(R._status===0||R._status===-1)&&(R._status=1,R._result=G)},function(G){(R._status===0||R._status===-1)&&(R._status=2,R._result=G)}),R._status===-1&&(R._status=0,R._result=L)}if(R._status===1)return R._result.default;throw R._result}var q=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function ut(){}return Rt.Children={map:C,forEach:function(R,L,G){C(R,function(){L.apply(this,arguments)},G)},count:function(R){var L=0;return C(R,function(){L++}),L},toArray:function(R){return C(R,function(L){return L})||[]},only:function(R){if(!I(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},Rt.Component=T,Rt.Fragment=i,Rt.Profiler=c,Rt.PureComponent=F,Rt.StrictMode=o,Rt.Suspense=p,Rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,Rt.__COMPILER_RUNTIME={__proto__:null,c:function(R){return j.H.useMemoCache(R)}},Rt.cache=function(R){return function(){return R.apply(null,arguments)}},Rt.cloneElement=function(R,L,G){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var Y=D({},R.props),et=R.key,ht=void 0;if(L!=null)for(nt in L.ref!==void 0&&(ht=void 0),L.key!==void 0&&(et=""+L.key),L)!tt.call(L,nt)||nt==="key"||nt==="__self"||nt==="__source"||nt==="ref"&&L.ref===void 0||(Y[nt]=L[nt]);var nt=arguments.length-2;if(nt===1)Y.children=G;else if(1<nt){for(var St=Array(nt),Et=0;Et<nt;Et++)St[Et]=arguments[Et+2];Y.children=St}return $(R.type,et,void 0,void 0,ht,Y)},Rt.createContext=function(R){return R={$$typeof:d,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},Rt.createElement=function(R,L,G){var Y,et={},ht=null;if(L!=null)for(Y in L.key!==void 0&&(ht=""+L.key),L)tt.call(L,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(et[Y]=L[Y]);var nt=arguments.length-2;if(nt===1)et.children=G;else if(1<nt){for(var St=Array(nt),Et=0;Et<nt;Et++)St[Et]=arguments[Et+2];et.children=St}if(R&&R.defaultProps)for(Y in nt=R.defaultProps,nt)et[Y]===void 0&&(et[Y]=nt[Y]);return $(R,ht,void 0,void 0,null,et)},Rt.createRef=function(){return{current:null}},Rt.forwardRef=function(R){return{$$typeof:h,render:R}},Rt.isValidElement=I,Rt.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:Z}},Rt.memo=function(R,L){return{$$typeof:m,type:R,compare:L===void 0?null:L}},Rt.startTransition=function(R){var L=j.T,G={};j.T=G;try{var Y=R(),et=j.S;et!==null&&et(G,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(ut,q)}catch(ht){q(ht)}finally{j.T=L}},Rt.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},Rt.use=function(R){return j.H.use(R)},Rt.useActionState=function(R,L,G){return j.H.useActionState(R,L,G)},Rt.useCallback=function(R,L){return j.H.useCallback(R,L)},Rt.useContext=function(R){return j.H.useContext(R)},Rt.useDebugValue=function(){},Rt.useDeferredValue=function(R,L){return j.H.useDeferredValue(R,L)},Rt.useEffect=function(R,L,G){var Y=j.H;if(typeof G=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(R,L)},Rt.useId=function(){return j.H.useId()},Rt.useImperativeHandle=function(R,L,G){return j.H.useImperativeHandle(R,L,G)},Rt.useInsertionEffect=function(R,L){return j.H.useInsertionEffect(R,L)},Rt.useLayoutEffect=function(R,L){return j.H.useLayoutEffect(R,L)},Rt.useMemo=function(R,L){return j.H.useMemo(R,L)},Rt.useOptimistic=function(R,L){return j.H.useOptimistic(R,L)},Rt.useReducer=function(R,L,G){return j.H.useReducer(R,L,G)},Rt.useRef=function(R){return j.H.useRef(R)},Rt.useState=function(R){return j.H.useState(R)},Rt.useSyncExternalStore=function(R,L,G){return j.H.useSyncExternalStore(R,L,G)},Rt.useTransition=function(){return j.H.useTransition()},Rt.version="19.1.0",Rt}var Yg;function ds(){return Yg||(Yg=1,Lc.exports=dS()),Lc.exports}var S=ds();const J=tp(S),ep=uS({__proto__:null,default:J},[S]);var jc={exports:{}},oi={},Hc={exports:{}},kc={};/**
 * @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 Vg;function hS(){return Vg||(Vg=1,function(a){function r(C,Z){var q=C.length;C.push(Z);t:for(;0<q;){var ut=q-1>>>1,R=C[ut];if(0<c(R,Z))C[ut]=Z,C[q]=R,q=ut;else break t}}function i(C){return C.length===0?null:C[0]}function o(C){if(C.length===0)return null;var Z=C[0],q=C.pop();if(q!==Z){C[0]=q;t:for(var ut=0,R=C.length,L=R>>>1;ut<L;){var G=2*(ut+1)-1,Y=C[G],et=G+1,ht=C[et];if(0>c(Y,q))et<R&&0>c(ht,Y)?(C[ut]=ht,C[et]=q,ut=et):(C[ut]=Y,C[G]=q,ut=G);else if(et<R&&0>c(ht,q))C[ut]=ht,C[et]=q,ut=et;else break t}}return Z}function c(C,Z){var q=C.sortIndex-Z.sortIndex;return q!==0?q:C.id-Z.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();a.unstable_now=function(){return d.now()-h}}var p=[],m=[],y=1,v=null,w=3,A=!1,D=!1,x=!1,T=!1,M=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function W(C){for(var Z=i(m);Z!==null;){if(Z.callback===null)o(m);else if(Z.startTime<=C)o(m),Z.sortIndex=Z.expirationTime,r(p,Z);else break;Z=i(m)}}function j(C){if(x=!1,W(C),!D)if(i(p)!==null)D=!0,tt||(tt=!0,st());else{var Z=i(m);Z!==null&&gt(j,Z.startTime-C)}}var tt=!1,$=-1,H=5,I=-1;function at(){return T?!0:!(a.unstable_now()-I<H)}function lt(){if(T=!1,tt){var C=a.unstable_now();I=C;var Z=!0;try{t:{D=!1,x&&(x=!1,F($),$=-1),A=!0;var q=w;try{e:{for(W(C),v=i(p);v!==null&&!(v.expirationTime>C&&at());){var ut=v.callback;if(typeof ut=="function"){v.callback=null,w=v.priorityLevel;var R=ut(v.expirationTime<=C);if(C=a.unstable_now(),typeof R=="function"){v.callback=R,W(C),Z=!0;break e}v===i(p)&&o(p),W(C)}else o(p);v=i(p)}if(v!==null)Z=!0;else{var L=i(m);L!==null&&gt(j,L.startTime-C),Z=!1}}break t}finally{v=null,w=q,A=!1}Z=void 0}}finally{Z?st():tt=!1}}}var st;if(typeof Q=="function")st=function(){Q(lt)};else if(typeof MessageChannel<"u"){var ct=new MessageChannel,mt=ct.port2;ct.port1.onmessage=lt,st=function(){mt.postMessage(null)}}else st=function(){M(lt,0)};function gt(C,Z){$=M(function(){C(a.unstable_now())},Z)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(C){C.callback=null},a.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<C?Math.floor(1e3/C):5},a.unstable_getCurrentPriorityLevel=function(){return w},a.unstable_next=function(C){switch(w){case 1:case 2:case 3:var Z=3;break;default:Z=w}var q=w;w=Z;try{return C()}finally{w=q}},a.unstable_requestPaint=function(){T=!0},a.unstable_runWithPriority=function(C,Z){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var q=w;w=C;try{return Z()}finally{w=q}},a.unstable_scheduleCallback=function(C,Z,q){var ut=a.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?ut+q:ut):q=ut,C){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=q+R,C={id:y++,callback:Z,priorityLevel:C,startTime:q,expirationTime:R,sortIndex:-1},q>ut?(C.sortIndex=q,r(m,C),i(p)===null&&C===i(m)&&(x?(F($),$=-1):x=!0,gt(j,q-ut))):(C.sortIndex=R,r(p,C),D||A||(D=!0,tt||(tt=!0,st()))),C},a.unstable_shouldYield=at,a.unstable_wrapCallback=function(C){var Z=w;return function(){var q=w;w=Z;try{return C.apply(this,arguments)}finally{w=q}}}}(kc)),kc}var Gg;function mS(){return Gg||(Gg=1,Hc.exports=hS()),Hc.exports}var qc={exports:{}},je={};/**
 * @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 Xg;function gS(){if(Xg)return je;Xg=1;var a=ds();function r(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var o={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(p,m,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:p,containerInfo:m,implementation:y}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return je.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,je.createPortal=function(p,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(r(299));return f(p,m,null,y)},je.flushSync=function(p){var m=d.T,y=o.p;try{if(d.T=null,o.p=2,p)return p()}finally{d.T=m,o.p=y,o.d.f()}},je.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(p,m))},je.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},je.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,v=h(y,m.crossOrigin),w=typeof m.integrity=="string"?m.integrity:void 0,A=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?o.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:w,fetchPriority:A}):y==="script"&&o.d.X(p,{crossOrigin:v,integrity:w,fetchPriority:A,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},je.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=h(m.as,m.crossOrigin);o.d.M(p,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(p)},je.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,v=h(y,m.crossOrigin);o.d.L(p,y,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},je.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=h(m.as,m.crossOrigin);o.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(p)},je.requestFormReset=function(p){o.d.r(p)},je.unstable_batchedUpdates=function(p,m){return p(m)},je.useFormState=function(p,m,y){return d.H.useFormState(p,m,y)},je.useFormStatus=function(){return d.H.useHostTransitionStatus()},je.version="19.1.0",je}var Qg;function np(){if(Qg)return qc.exports;Qg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),qc.exports=gS(),qc.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 Zg;function vS(){if(Zg)return oi;Zg=1;var a=mS(),r=ds(),i=np();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function d(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function h(t){if(f(t)!==t)throw Error(o(188))}function p(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,l=e;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return h(s),t;if(u===l)return h(s),e;u=u.sibling}throw Error(o(188))}if(n.return!==l.return)n=s,l=u;else{for(var g=!1,b=s.child;b;){if(b===n){g=!0,n=s,l=u;break}if(b===l){g=!0,l=s,n=u;break}b=b.sibling}if(!g){for(b=u.child;b;){if(b===n){g=!0,n=u,l=s;break}if(b===l){g=!0,l=u,n=s;break}b=b.sibling}if(!g)throw Error(o(189))}}if(n.alternate!==l)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function m(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=m(t),e!==null)return e;t=t.sibling}return null}var y=Object.assign,v=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),F=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),at=Symbol.for("react.memo_cache_sentinel"),lt=Symbol.iterator;function st(t){return t===null||typeof t!="object"?null:(t=lt&&t[lt]||t["@@iterator"],typeof t=="function"?t:null)}var ct=Symbol.for("react.client.reference");function mt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ct?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case D:return"Fragment";case T:return"Profiler";case x:return"StrictMode";case j:return"Suspense";case tt:return"SuspenseList";case I:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case A:return"Portal";case Q:return(t.displayName||"Context")+".Provider";case F:return(t._context.displayName||"Context")+".Consumer";case W:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case $:return e=t.displayName||null,e!==null?e:mt(t.type)||"Memo";case H:e=t._payload,t=t._init;try{return mt(t(e))}catch{}}return null}var gt=Array.isArray,C=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},ut=[],R=-1;function L(t){return{current:t}}function G(t){0>R||(t.current=ut[R],ut[R]=null,R--)}function Y(t,e){R++,ut[R]=t.current,t.current=e}var et=L(null),ht=L(null),nt=L(null),St=L(null);function Et(t,e){switch(Y(nt,e),Y(ht,t),Y(et,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?dg(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=dg(e),t=hg(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}G(et),Y(et,t)}function kt(){G(et),G(ht),G(nt)}function yt(t){t.memoizedState!==null&&Y(St,t);var e=et.current,n=hg(e,t.type);e!==n&&(Y(ht,t),Y(et,n))}function Se(t){ht.current===t&&(G(et),G(ht)),St.current===t&&(G(St),ei._currentValue=q)}var oe=Object.prototype.hasOwnProperty,Dt=a.unstable_scheduleCallback,xt=a.unstable_cancelCallback,Pt=a.unstable_shouldYield,Bt=a.unstable_requestPaint,qt=a.unstable_now,Xe=a.unstable_getCurrentPriorityLevel,zt=a.unstable_ImmediatePriority,Zt=a.unstable_UserBlockingPriority,me=a.unstable_NormalPriority,se=a.unstable_LowPriority,ke=a.unstable_IdlePriority,Yn=a.log,Te=a.unstable_setDisableYieldValue,ce=null,ne=null;function pe(t){if(typeof Yn=="function"&&Te(t),ne&&typeof ne.setStrictMode=="function")try{ne.setStrictMode(ce,t)}catch{}}var te=Math.clz32?Math.clz32:En,Sn=Math.log,Pe=Math.LN2;function En(t){return t>>>=0,t===0?32:31-(Sn(t)/Pe|0)|0}var oa=256,sa=4194304;function Qe(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Nn(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var s=0,u=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var b=l&134217727;return b!==0?(l=b&~u,l!==0?s=Qe(l):(g&=b,g!==0?s=Qe(g):n||(n=b&~t,n!==0&&(s=Qe(n))))):(b=l&~u,b!==0?s=Qe(b):g!==0?s=Qe(g):n||(n=l&~t,n!==0&&(s=Qe(n)))),s===0?0:e!==0&&e!==s&&(e&u)===0&&(u=s&-s,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:s}function Vn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function ua(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 tn(){var t=oa;return oa<<=1,(oa&4194048)===0&&(oa=256),t}function dl(){var t=sa;return sa<<=1,(sa&62914560)===0&&(sa=4194304),t}function qa(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function re(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ae(t,e,n,l,s,u){var g=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var b=t.entanglements,E=t.expirationTimes,z=t.hiddenUpdates;for(n=g&~n;0<n;){var V=31-te(n),K=1<<V;b[V]=0,E[V]=-1;var U=z[V];if(U!==null)for(z[V]=null,V=0;V<U.length;V++){var B=U[V];B!==null&&(B.lane&=-536870913)}n&=~K}l!==0&&ft(t,l,0),u!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=u&~(g&~e))}function ft(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-te(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&4194090}function Xt(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-te(n),s=1<<l;s&e|t[l]&e&&(t[l]|=e),n&=~s}}function Lt(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Yt(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Oe(){var t=Z.p;return t!==0?t:(t=window.event,t===void 0?32:_g(t.type))}function ae(t,e){var n=Z.p;try{return Z.p=t,e()}finally{Z.p=n}}var Tt=Math.random().toString(36).slice(2),Qt="__reactFiber$"+Tt,Nt="__reactProps$"+Tt,Ft="__reactContainer$"+Tt,un="__reactEvents$"+Tt,qe="__reactListeners$"+Tt,xn="__reactHandles$"+Tt,ca="__reactResources$"+Tt,Gn="__reactMarker$"+Tt;function Ds(t){delete t[Qt],delete t[Nt],delete t[un],delete t[qe],delete t[xn]}function hl(t){var e=t[Qt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ft]||n[Qt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=pg(t);t!==null;){if(n=t[Qt])return n;t=pg(t)}return e}t=n,n=t.parentNode}return null}function ml(t){if(t=t[Qt]||t[Ft]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function hr(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function gl(t){var e=t[ca];return e||(e=t[ca]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function De(t){t[Gn]=!0}var ed=new Set,nd={};function Ya(t,e){vl(t,e),vl(t+"Capture",e)}function vl(t,e){for(nd[t]=e,t=0;t<e.length;t++)ed.add(e[t])}var e0=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]*$"),ad={},ld={};function n0(t){return oe.call(ld,t)?!0:oe.call(ad,t)?!1:e0.test(t)?ld[t]=!0:(ad[t]=!0,!1)}function Oi(t,e,n){if(n0(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Di(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function Xn(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}var Cs,rd;function pl(t){if(Cs===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Cs=e&&e[1]||"",rd=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Cs+t+rd}var Ns=!1;function Ms(t,e){if(!t||Ns)return"";Ns=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(B){var U=B}Reflect.construct(t,[],K)}else{try{K.call()}catch(B){U=B}t.call(K.prototype)}}else{try{throw Error()}catch(B){U=B}(K=t())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(B){if(B&&U&&typeof B.stack=="string")return[B.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),g=u[0],b=u[1];if(g&&b){var E=g.split(`
`),z=b.split(`
`);for(s=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;s<z.length&&!z[s].includes("DetermineComponentFrameRoot");)s++;if(l===E.length||s===z.length)for(l=E.length-1,s=z.length-1;1<=l&&0<=s&&E[l]!==z[s];)s--;for(;1<=l&&0<=s;l--,s--)if(E[l]!==z[s]){if(l!==1||s!==1)do if(l--,s--,0>s||E[l]!==z[s]){var V=`
`+E[l].replace(" at new "," at ");return t.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",t.displayName)),V}while(1<=l&&0<=s);break}}}finally{Ns=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?pl(n):""}function a0(t){switch(t.tag){case 26:case 27:case 5:return pl(t.type);case 16:return pl("Lazy");case 13:return pl("Suspense");case 19:return pl("SuspenseList");case 0:case 15:return Ms(t.type,!1);case 11:return Ms(t.type.render,!1);case 1:return Ms(t.type,!0);case 31:return pl("Activity");default:return""}}function id(t){try{var e="";do e+=a0(t),t=t.return;while(t);return e}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function cn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function od(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function l0(t){var e=od(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),l=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,u=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(g){l=""+g,u.call(this,g)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ci(t){t._valueTracker||(t._valueTracker=l0(t))}function sd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=od(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Ni(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var r0=/[\n"\\]/g;function fn(t){return t.replace(r0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function _s(t,e,n,l,s,u,g,b){t.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.type=g:t.removeAttribute("type"),e!=null?g==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+cn(e)):t.value!==""+cn(e)&&(t.value=""+cn(e)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),e!=null?zs(t,g,cn(e)):n!=null?zs(t,g,cn(n)):l!=null&&t.removeAttribute("value"),s==null&&u!=null&&(t.defaultChecked=!!u),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+cn(b):t.removeAttribute("name")}function ud(t,e,n,l,s,u,g,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null))return;n=n!=null?""+cn(n):"",e=e!=null?""+cn(e):n,b||e===t.value||(t.value=e),t.defaultValue=e}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=b?t.checked:!!l,t.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.name=g)}function zs(t,e,n){e==="number"&&Ni(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function yl(t,e,n,l){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&l&&(t[n].defaultSelected=!0)}else{for(n=""+cn(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,l&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function cd(t,e,n){if(e!=null&&(e=""+cn(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+cn(n):""}function fd(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(o(92));if(gt(l)){if(1<l.length)throw Error(o(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=cn(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l)}function bl(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var i0=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 dd(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||i0.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function hd(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var s in e)l=e[s],e.hasOwnProperty(s)&&n[s]!==l&&dd(t,s,l)}else for(var u in e)e.hasOwnProperty(u)&&dd(t,u,e[u])}function Us(t){if(t.indexOf("-")===-1)return!1;switch(t){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 o0=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"]]),s0=/^[\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 Mi(t){return s0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Bs=null;function Ls(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Sl=null,El=null;function md(t){var e=ml(t);if(e&&(t=e.stateNode)){var n=t[Nt]||null;t:switch(t=e.stateNode,e.type){case"input":if(_s(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+fn(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var s=l[Nt]||null;if(!s)throw Error(o(90));_s(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&sd(l)}break t;case"textarea":cd(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&yl(t,!!n.multiple,e,!1)}}}var js=!1;function gd(t,e,n){if(js)return t(e,n);js=!0;try{var l=t(e);return l}finally{if(js=!1,(Sl!==null||El!==null)&&(po(),Sl&&(e=Sl,t=El,El=Sl=null,md(e),t)))for(e=0;e<t.length;e++)md(t[e])}}function mr(t,e){var n=t.stateNode;if(n===null)return null;var l=n[Nt]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var Qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hs=!1;if(Qn)try{var gr={};Object.defineProperty(gr,"passive",{get:function(){Hs=!0}}),window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch{Hs=!1}var fa=null,ks=null,_i=null;function vd(){if(_i)return _i;var t,e=ks,n=e.length,l,s="value"in fa?fa.value:fa.textContent,u=s.length;for(t=0;t<n&&e[t]===s[t];t++);var g=n-t;for(l=1;l<=g&&e[n-l]===s[u-l];l++);return _i=s.slice(t,1<l?1-l:void 0)}function zi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ui(){return!0}function pd(){return!1}function Ze(t){function e(n,l,s,u,g){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=u,this.target=g,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(n=t[b],this[b]=n?n(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ui:pd,this.isPropagationStopped=pd,this}return y(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ui)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ui)},persist:function(){},isPersistent:Ui}),e}var Va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bi=Ze(Va),vr=y({},Va,{view:0,detail:0}),u0=Ze(vr),qs,Ys,pr,Li=y({},vr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gs,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==pr&&(pr&&t.type==="mousemove"?(qs=t.screenX-pr.screenX,Ys=t.screenY-pr.screenY):Ys=qs=0,pr=t),qs)},movementY:function(t){return"movementY"in t?t.movementY:Ys}}),yd=Ze(Li),c0=y({},Li,{dataTransfer:0}),f0=Ze(c0),d0=y({},vr,{relatedTarget:0}),Vs=Ze(d0),h0=y({},Va,{animationName:0,elapsedTime:0,pseudoElement:0}),m0=Ze(h0),g0=y({},Va,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),v0=Ze(g0),p0=y({},Va,{data:0}),bd=Ze(p0),y0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},b0={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"},S0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function E0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=S0[t])?!!e[t]:!1}function Gs(){return E0}var x0=y({},vr,{key:function(t){if(t.key){var e=y0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=zi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?b0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gs,charCode:function(t){return t.type==="keypress"?zi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?zi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),w0=Ze(x0),R0=y({},Li,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sd=Ze(R0),T0=y({},vr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gs}),A0=Ze(T0),O0=y({},Va,{propertyName:0,elapsedTime:0,pseudoElement:0}),D0=Ze(O0),C0=y({},Li,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),N0=Ze(C0),M0=y({},Va,{newState:0,oldState:0}),_0=Ze(M0),z0=[9,13,27,32],Xs=Qn&&"CompositionEvent"in window,yr=null;Qn&&"documentMode"in document&&(yr=document.documentMode);var U0=Qn&&"TextEvent"in window&&!yr,Ed=Qn&&(!Xs||yr&&8<yr&&11>=yr),xd=" ",wd=!1;function Rd(t,e){switch(t){case"keyup":return z0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Td(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var xl=!1;function B0(t,e){switch(t){case"compositionend":return Td(e);case"keypress":return e.which!==32?null:(wd=!0,xd);case"textInput":return t=e.data,t===xd&&wd?null:t;default:return null}}function L0(t,e){if(xl)return t==="compositionend"||!Xs&&Rd(t,e)?(t=vd(),_i=ks=fa=null,xl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Ed&&e.locale!=="ko"?null:e.data;default:return null}}var j0={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 Ad(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!j0[t.type]:e==="textarea"}function Od(t,e,n,l){Sl?El?El.push(l):El=[l]:Sl=l,e=wo(e,"onChange"),0<e.length&&(n=new Bi("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var br=null,Sr=null;function H0(t){og(t,0)}function ji(t){var e=hr(t);if(sd(e))return t}function Dd(t,e){if(t==="change")return e}var Cd=!1;if(Qn){var Qs;if(Qn){var Zs="oninput"in document;if(!Zs){var Nd=document.createElement("div");Nd.setAttribute("oninput","return;"),Zs=typeof Nd.oninput=="function"}Qs=Zs}else Qs=!1;Cd=Qs&&(!document.documentMode||9<document.documentMode)}function Md(){br&&(br.detachEvent("onpropertychange",_d),Sr=br=null)}function _d(t){if(t.propertyName==="value"&&ji(Sr)){var e=[];Od(e,Sr,t,Ls(t)),gd(H0,e)}}function k0(t,e,n){t==="focusin"?(Md(),br=e,Sr=n,br.attachEvent("onpropertychange",_d)):t==="focusout"&&Md()}function q0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ji(Sr)}function Y0(t,e){if(t==="click")return ji(e)}function V0(t,e){if(t==="input"||t==="change")return ji(e)}function G0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var en=typeof Object.is=="function"?Object.is:G0;function Er(t,e){if(en(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var s=n[l];if(!oe.call(e,s)||!en(t[s],e[s]))return!1}return!0}function zd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ud(t,e){var n=zd(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=zd(n)}}function Bd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Bd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ld(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ni(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ni(t.document)}return e}function Ks(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var X0=Qn&&"documentMode"in document&&11>=document.documentMode,wl=null,Js=null,xr=null,Fs=!1;function jd(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fs||wl==null||wl!==Ni(l)||(l=wl,"selectionStart"in l&&Ks(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),xr&&Er(xr,l)||(xr=l,l=wo(Js,"onSelect"),0<l.length&&(e=new Bi("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=wl)))}function Ga(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Rl={animationend:Ga("Animation","AnimationEnd"),animationiteration:Ga("Animation","AnimationIteration"),animationstart:Ga("Animation","AnimationStart"),transitionrun:Ga("Transition","TransitionRun"),transitionstart:Ga("Transition","TransitionStart"),transitioncancel:Ga("Transition","TransitionCancel"),transitionend:Ga("Transition","TransitionEnd")},$s={},Hd={};Qn&&(Hd=document.createElement("div").style,"AnimationEvent"in window||(delete Rl.animationend.animation,delete Rl.animationiteration.animation,delete Rl.animationstart.animation),"TransitionEvent"in window||delete Rl.transitionend.transition);function Xa(t){if($s[t])return $s[t];if(!Rl[t])return t;var e=Rl[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Hd)return $s[t]=e[n];return t}var kd=Xa("animationend"),qd=Xa("animationiteration"),Yd=Xa("animationstart"),Q0=Xa("transitionrun"),Z0=Xa("transitionstart"),K0=Xa("transitioncancel"),Vd=Xa("transitionend"),Gd=new Map,Ws="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(" ");Ws.push("scrollEnd");function wn(t,e){Gd.set(t,e),Ya(e,[t])}var Xd=new WeakMap;function dn(t,e){if(typeof t=="object"&&t!==null){var n=Xd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:id(e)},Xd.set(t,e),e)}return{value:t,source:e,stack:id(e)}}var hn=[],Tl=0,Is=0;function Hi(){for(var t=Tl,e=Is=Tl=0;e<t;){var n=hn[e];hn[e++]=null;var l=hn[e];hn[e++]=null;var s=hn[e];hn[e++]=null;var u=hn[e];if(hn[e++]=null,l!==null&&s!==null){var g=l.pending;g===null?s.next=s:(s.next=g.next,g.next=s),l.pending=s}u!==0&&Qd(n,s,u)}}function ki(t,e,n,l){hn[Tl++]=t,hn[Tl++]=e,hn[Tl++]=n,hn[Tl++]=l,Is|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Ps(t,e,n,l){return ki(t,e,n,l),qi(t)}function Al(t,e){return ki(t,null,null,e),qi(t)}function Qd(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var s=!1,u=t.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(s=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,s&&e!==null&&(s=31-te(n),t=u.hiddenUpdates,l=t[s],l===null?t[s]=[e]:l.push(e),e.lane=n|536870912),u):null}function qi(t){if(50<Kr)throw Kr=0,rc=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ol={};function J0(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(t,e,n,l){return new J0(t,e,n,l)}function tu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Zn(t,e){var n=t.alternate;return n===null?(n=nn(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Zd(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Yi(t,e,n,l,s,u){var g=0;if(l=t,typeof t=="function")tu(t)&&(g=1);else if(typeof t=="string")g=$b(t,n,et.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case I:return t=nn(31,n,e,s),t.elementType=I,t.lanes=u,t;case D:return Qa(n.children,s,u,e);case x:g=8,s|=24;break;case T:return t=nn(12,n,e,s|2),t.elementType=T,t.lanes=u,t;case j:return t=nn(13,n,e,s),t.elementType=j,t.lanes=u,t;case tt:return t=nn(19,n,e,s),t.elementType=tt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case M:case Q:g=10;break t;case F:g=9;break t;case W:g=11;break t;case $:g=14;break t;case H:g=16,l=null;break t}g=29,n=Error(o(130,t===null?"null":typeof t,"")),l=null}return e=nn(g,n,e,s),e.elementType=t,e.type=l,e.lanes=u,e}function Qa(t,e,n,l){return t=nn(7,t,l,e),t.lanes=n,t}function eu(t,e,n){return t=nn(6,t,null,e),t.lanes=n,t}function nu(t,e,n){return e=nn(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Dl=[],Cl=0,Vi=null,Gi=0,mn=[],gn=0,Za=null,Kn=1,Jn="";function Ka(t,e){Dl[Cl++]=Gi,Dl[Cl++]=Vi,Vi=t,Gi=e}function Kd(t,e,n){mn[gn++]=Kn,mn[gn++]=Jn,mn[gn++]=Za,Za=t;var l=Kn;t=Jn;var s=32-te(l)-1;l&=~(1<<s),n+=1;var u=32-te(e)+s;if(30<u){var g=s-s%5;u=(l&(1<<g)-1).toString(32),l>>=g,s-=g,Kn=1<<32-te(e)+s|n<<s|l,Jn=u+t}else Kn=1<<u|n<<s|l,Jn=t}function au(t){t.return!==null&&(Ka(t,1),Kd(t,1,0))}function lu(t){for(;t===Vi;)Vi=Dl[--Cl],Dl[Cl]=null,Gi=Dl[--Cl],Dl[Cl]=null;for(;t===Za;)Za=mn[--gn],mn[gn]=null,Jn=mn[--gn],mn[gn]=null,Kn=mn[--gn],mn[gn]=null}var Ye=null,fe=null,Vt=!1,Ja=null,Mn=!1,ru=Error(o(519));function Fa(t){var e=Error(o(418,""));throw Tr(dn(e,t)),ru}function Jd(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[Qt]=t,e[Nt]=l,n){case"dialog":_t("cancel",e),_t("close",e);break;case"iframe":case"object":case"embed":_t("load",e);break;case"video":case"audio":for(n=0;n<Fr.length;n++)_t(Fr[n],e);break;case"source":_t("error",e);break;case"img":case"image":case"link":_t("error",e),_t("load",e);break;case"details":_t("toggle",e);break;case"input":_t("invalid",e),ud(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Ci(e);break;case"select":_t("invalid",e);break;case"textarea":_t("invalid",e),fd(e,l.value,l.defaultValue,l.children),Ci(e)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||fg(e.textContent,n)?(l.popover!=null&&(_t("beforetoggle",e),_t("toggle",e)),l.onScroll!=null&&_t("scroll",e),l.onScrollEnd!=null&&_t("scrollend",e),l.onClick!=null&&(e.onclick=Ro),e=!0):e=!1,e||Fa(t)}function Fd(t){for(Ye=t.return;Ye;)switch(Ye.tag){case 5:case 13:Mn=!1;return;case 27:case 3:Mn=!0;return;default:Ye=Ye.return}}function wr(t){if(t!==Ye)return!1;if(!Vt)return Fd(t),Vt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Ec(t.type,t.memoizedProps)),n=!n),n&&fe&&Fa(t),Fd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(n=t.data,n==="/$"){if(e===0){fe=Tn(t.nextSibling);break t}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++;t=t.nextSibling}fe=null}}else e===27?(e=fe,Oa(t.type)?(t=Tc,Tc=null,fe=t):fe=e):fe=Ye?Tn(t.stateNode.nextSibling):null;return!0}function Rr(){fe=Ye=null,Vt=!1}function $d(){var t=Ja;return t!==null&&(Fe===null?Fe=t:Fe.push.apply(Fe,t),Ja=null),t}function Tr(t){Ja===null?Ja=[t]:Ja.push(t)}var iu=L(null),$a=null,Fn=null;function da(t,e,n){Y(iu,e._currentValue),e._currentValue=n}function $n(t){t._currentValue=iu.current,G(iu)}function ou(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function su(t,e,n,l){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var u=s.dependencies;if(u!==null){var g=s.child;u=u.firstContext;t:for(;u!==null;){var b=u;u=s;for(var E=0;E<e.length;E++)if(b.context===e[E]){u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),ou(u.return,n,t),l||(g=null);break t}u=b.next}}else if(s.tag===18){if(g=s.return,g===null)throw Error(o(341));g.lanes|=n,u=g.alternate,u!==null&&(u.lanes|=n),ou(g,n,t),g=null}else g=s.child;if(g!==null)g.return=s;else for(g=s;g!==null;){if(g===t){g=null;break}if(s=g.sibling,s!==null){s.return=g.return,g=s;break}g=g.return}s=g}}function Ar(t,e,n,l){t=null;for(var s=e,u=!1;s!==null;){if(!u){if((s.flags&524288)!==0)u=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var g=s.alternate;if(g===null)throw Error(o(387));if(g=g.memoizedProps,g!==null){var b=s.type;en(s.pendingProps.value,g.value)||(t!==null?t.push(b):t=[b])}}else if(s===St.current){if(g=s.alternate,g===null)throw Error(o(387));g.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(ei):t=[ei])}s=s.return}t!==null&&su(e,t,n,l),e.flags|=262144}function Xi(t){for(t=t.firstContext;t!==null;){if(!en(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Wa(t){$a=t,Fn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Le(t){return Wd($a,t)}function Qi(t,e){return $a===null&&Wa(t),Wd(t,e)}function Wd(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Fn===null){if(t===null)throw Error(o(308));Fn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Fn=Fn.next=e;return n}var F0=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},$0=a.unstable_scheduleCallback,W0=a.unstable_NormalPriority,Ee={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uu(){return{controller:new F0,data:new Map,refCount:0}}function Or(t){t.refCount--,t.refCount===0&&$0(W0,function(){t.controller.abort()})}var Dr=null,cu=0,Nl=0,Ml=null;function I0(t,e){if(Dr===null){var n=Dr=[];cu=0,Nl=dc(),Ml={status:"pending",value:void 0,then:function(l){n.push(l)}}}return cu++,e.then(Id,Id),e}function Id(){if(--cu===0&&Dr!==null){Ml!==null&&(Ml.status="fulfilled");var t=Dr;Dr=null,Nl=0,Ml=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function P0(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var Pd=C.S;C.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&I0(t,e),Pd!==null&&Pd(t,e)};var Ia=L(null);function fu(){var t=Ia.current;return t!==null?t:le.pooledCache}function Zi(t,e){e===null?Y(Ia,Ia.current):Y(Ia,e.pool)}function th(){var t=fu();return t===null?null:{parent:Ee._currentValue,pool:t}}var Cr=Error(o(460)),eh=Error(o(474)),Ki=Error(o(542)),du={then:function(){}};function nh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Ji(){}function ah(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Ji,Ji),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,rh(t),t;default:if(typeof e.status=="string")e.then(Ji,Ji);else{if(t=le,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=l}},function(l){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,rh(t),t}throw Nr=e,Cr}}var Nr=null;function lh(){if(Nr===null)throw Error(o(459));var t=Nr;return Nr=null,t}function rh(t){if(t===Cr||t===Ki)throw Error(o(483))}var ha=!1;function hu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mu(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ma(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ga(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Kt&2)!==0){var s=l.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),l.pending=e,e=qi(t),Qd(t,null,n),e}return ki(t,l,e,n),qi(t)}function Mr(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Xt(t,n)}}function gu(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?s=u=g:u=u.next=g,n=n.next}while(n!==null);u===null?s=u=e:u=u.next=e}else s=u=e;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var vu=!1;function _r(){if(vu){var t=Ml;if(t!==null)throw t}}function zr(t,e,n,l){vu=!1;var s=t.updateQueue;ha=!1;var u=s.firstBaseUpdate,g=s.lastBaseUpdate,b=s.shared.pending;if(b!==null){s.shared.pending=null;var E=b,z=E.next;E.next=null,g===null?u=z:g.next=z,g=E;var V=t.alternate;V!==null&&(V=V.updateQueue,b=V.lastBaseUpdate,b!==g&&(b===null?V.firstBaseUpdate=z:b.next=z,V.lastBaseUpdate=E))}if(u!==null){var K=s.baseState;g=0,V=z=E=null,b=u;do{var U=b.lane&-536870913,B=U!==b.lane;if(B?(Ut&U)===U:(l&U)===U){U!==0&&U===Nl&&(vu=!0),V!==null&&(V=V.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var bt=t,vt=b;U=e;var It=n;switch(vt.tag){case 1:if(bt=vt.payload,typeof bt=="function"){K=bt.call(It,K,U);break t}K=bt;break t;case 3:bt.flags=bt.flags&-65537|128;case 0:if(bt=vt.payload,U=typeof bt=="function"?bt.call(It,K,U):bt,U==null)break t;K=y({},K,U);break t;case 2:ha=!0}}U=b.callback,U!==null&&(t.flags|=64,B&&(t.flags|=8192),B=s.callbacks,B===null?s.callbacks=[U]:B.push(U))}else B={lane:U,tag:b.tag,payload:b.payload,callback:b.callback,next:null},V===null?(z=V=B,E=K):V=V.next=B,g|=U;if(b=b.next,b===null){if(b=s.shared.pending,b===null)break;B=b,b=B.next,B.next=null,s.lastBaseUpdate=B,s.shared.pending=null}}while(!0);V===null&&(E=K),s.baseState=E,s.firstBaseUpdate=z,s.lastBaseUpdate=V,u===null&&(s.shared.lanes=0),wa|=g,t.lanes=g,t.memoizedState=K}}function ih(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function oh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)ih(n[t],e)}var _l=L(null),Fi=L(0);function sh(t,e){t=aa,Y(Fi,t),Y(_l,e),aa=t|e.baseLanes}function pu(){Y(Fi,aa),Y(_l,_l.current)}function yu(){aa=Fi.current,G(_l),G(Fi)}var va=0,At=null,$t=null,ye=null,$i=!1,zl=!1,Pa=!1,Wi=0,Ur=0,Ul=null,tb=0;function ge(){throw Error(o(321))}function bu(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!en(t[n],e[n]))return!1;return!0}function Su(t,e,n,l,s,u){return va=u,At=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,C.H=t===null||t.memoizedState===null?Qh:Zh,Pa=!1,u=n(l,s),Pa=!1,zl&&(u=ch(e,n,l,s)),uh(t),u}function uh(t){C.H=ao;var e=$t!==null&&$t.next!==null;if(va=0,ye=$t=At=null,$i=!1,Ur=0,Ul=null,e)throw Error(o(300));t===null||Ce||(t=t.dependencies,t!==null&&Xi(t)&&(Ce=!0))}function ch(t,e,n,l){At=t;var s=0;do{if(zl&&(Ul=null),Ur=0,zl=!1,25<=s)throw Error(o(301));if(s+=1,ye=$t=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}C.H=ob,u=e(n,l)}while(zl);return u}function eb(){var t=C.H,e=t.useState()[0];return e=typeof e.then=="function"?Br(e):e,t=t.useState()[0],($t!==null?$t.memoizedState:null)!==t&&(At.flags|=1024),e}function Eu(){var t=Wi!==0;return Wi=0,t}function xu(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function wu(t){if($i){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}$i=!1}va=0,ye=$t=At=null,zl=!1,Ur=Wi=0,Ul=null}function Ke(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ye===null?At.memoizedState=ye=t:ye=ye.next=t,ye}function be(){if($t===null){var t=At.alternate;t=t!==null?t.memoizedState:null}else t=$t.next;var e=ye===null?At.memoizedState:ye.next;if(e!==null)ye=e,$t=t;else{if(t===null)throw At.alternate===null?Error(o(467)):Error(o(310));$t=t,t={memoizedState:$t.memoizedState,baseState:$t.baseState,baseQueue:$t.baseQueue,queue:$t.queue,next:null},ye===null?At.memoizedState=ye=t:ye=ye.next=t}return ye}function Ru(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Br(t){var e=Ur;return Ur+=1,Ul===null&&(Ul=[]),t=ah(Ul,t,e),e=At,(ye===null?e.memoizedState:ye.next)===null&&(e=e.alternate,C.H=e===null||e.memoizedState===null?Qh:Zh),t}function Ii(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Br(t);if(t.$$typeof===Q)return Le(t)}throw Error(o(438,String(t)))}function Tu(t){var e=null,n=At.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=At.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Ru(),At.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=at;return e.index++,n}function Wn(t,e){return typeof e=="function"?e(t):e}function Pi(t){var e=be();return Au(e,$t,t)}function Au(t,e,n){var l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var s=t.baseQueue,u=l.pending;if(u!==null){if(s!==null){var g=s.next;s.next=u.next,u.next=g}e.baseQueue=s=u,l.pending=null}if(u=t.baseState,s===null)t.memoizedState=u;else{e=s.next;var b=g=null,E=null,z=e,V=!1;do{var K=z.lane&-536870913;if(K!==z.lane?(Ut&K)===K:(va&K)===K){var U=z.revertLane;if(U===0)E!==null&&(E=E.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),K===Nl&&(V=!0);else if((va&U)===U){z=z.next,U===Nl&&(V=!0);continue}else K={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},E===null?(b=E=K,g=u):E=E.next=K,At.lanes|=U,wa|=U;K=z.action,Pa&&n(u,K),u=z.hasEagerState?z.eagerState:n(u,K)}else U={lane:K,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},E===null?(b=E=U,g=u):E=E.next=U,At.lanes|=K,wa|=K;z=z.next}while(z!==null&&z!==e);if(E===null?g=u:E.next=b,!en(u,t.memoizedState)&&(Ce=!0,V&&(n=Ml,n!==null)))throw n;t.memoizedState=u,t.baseState=g,t.baseQueue=E,l.lastRenderedState=u}return s===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Ou(t){var e=be(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var l=n.dispatch,s=n.pending,u=e.memoizedState;if(s!==null){n.pending=null;var g=s=s.next;do u=t(u,g.action),g=g.next;while(g!==s);en(u,e.memoizedState)||(Ce=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,l]}function fh(t,e,n){var l=At,s=be(),u=Vt;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=e();var g=!en(($t||s).memoizedState,n);g&&(s.memoizedState=n,Ce=!0),s=s.queue;var b=mh.bind(null,l,s,t);if(Lr(2048,8,b,[t]),s.getSnapshot!==e||g||ye!==null&&ye.memoizedState.tag&1){if(l.flags|=2048,Bl(9,to(),hh.bind(null,l,s,n,e),null),le===null)throw Error(o(349));u||(va&124)!==0||dh(l,e,n)}return n}function dh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=At.updateQueue,e===null?(e=Ru(),At.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function hh(t,e,n,l){e.value=n,e.getSnapshot=l,gh(e)&&vh(t)}function mh(t,e,n){return n(function(){gh(e)&&vh(t)})}function gh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!en(t,n)}catch{return!0}}function vh(t){var e=Al(t,2);e!==null&&sn(e,t,2)}function Du(t){var e=Ke();if(typeof t=="function"){var n=t;if(t=n(),Pa){pe(!0);try{n()}finally{pe(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:t},e}function ph(t,e,n,l){return t.baseState=n,Au(t,$t,typeof l=="function"?l:Wn)}function nb(t,e,n,l,s){if(no(t))throw Error(o(485));if(t=e.action,t!==null){var u={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){u.listeners.push(g)}};C.T!==null?n(!0):u.isTransition=!1,l(u),n=e.pending,n===null?(u.next=e.pending=u,yh(e,u)):(u.next=n.next,e.pending=n.next=u)}}function yh(t,e){var n=e.action,l=e.payload,s=t.state;if(e.isTransition){var u=C.T,g={};C.T=g;try{var b=n(s,l),E=C.S;E!==null&&E(g,b),bh(t,e,b)}catch(z){Cu(t,e,z)}finally{C.T=u}}else try{u=n(s,l),bh(t,e,u)}catch(z){Cu(t,e,z)}}function bh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Sh(t,e,l)},function(l){return Cu(t,e,l)}):Sh(t,e,n)}function Sh(t,e,n){e.status="fulfilled",e.value=n,Eh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,yh(t,n)))}function Cu(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,Eh(e),e=e.next;while(e!==l)}t.action=null}function Eh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function xh(t,e){return e}function wh(t,e){if(Vt){var n=le.formState;if(n!==null){t:{var l=At;if(Vt){if(fe){e:{for(var s=fe,u=Mn;s.nodeType!==8;){if(!u){s=null;break e}if(s=Tn(s.nextSibling),s===null){s=null;break e}}u=s.data,s=u==="F!"||u==="F"?s:null}if(s){fe=Tn(s.nextSibling),l=s.data==="F!";break t}}Fa(l)}l=!1}l&&(e=n[0])}}return n=Ke(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xh,lastRenderedState:e},n.queue=l,n=Vh.bind(null,At,l),l.dispatch=n,l=Du(!1),u=Uu.bind(null,At,!1,l.queue),l=Ke(),s={state:e,dispatch:null,action:t,pending:null},l.queue=s,n=nb.bind(null,At,s,u,n),s.dispatch=n,l.memoizedState=t,[e,n,!1]}function Rh(t){var e=be();return Th(e,$t,t)}function Th(t,e,n){if(e=Au(t,e,xh)[0],t=Pi(Wn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Br(e)}catch(g){throw g===Cr?Ki:g}else l=e;e=be();var s=e.queue,u=s.dispatch;return n!==e.memoizedState&&(At.flags|=2048,Bl(9,to(),ab.bind(null,s,n),null)),[l,u,t]}function ab(t,e){t.action=e}function Ah(t){var e=be(),n=$t;if(n!==null)return Th(e,n,t);be(),e=e.memoizedState,n=be();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Bl(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=At.updateQueue,e===null&&(e=Ru(),At.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function to(){return{destroy:void 0,resource:void 0}}function Oh(){return be().memoizedState}function eo(t,e,n,l){var s=Ke();l=l===void 0?null:l,At.flags|=t,s.memoizedState=Bl(1|e,to(),n,l)}function Lr(t,e,n,l){var s=be();l=l===void 0?null:l;var u=s.memoizedState.inst;$t!==null&&l!==null&&bu(l,$t.memoizedState.deps)?s.memoizedState=Bl(e,u,n,l):(At.flags|=t,s.memoizedState=Bl(1|e,u,n,l))}function Dh(t,e){eo(8390656,8,t,e)}function Ch(t,e){Lr(2048,8,t,e)}function Nh(t,e){return Lr(4,2,t,e)}function Mh(t,e){return Lr(4,4,t,e)}function _h(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function zh(t,e,n){n=n!=null?n.concat([t]):null,Lr(4,4,_h.bind(null,e,t),n)}function Nu(){}function Uh(t,e){var n=be();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&bu(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function Bh(t,e){var n=be();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&bu(e,l[1]))return l[0];if(l=t(),Pa){pe(!0);try{t()}finally{pe(!1)}}return n.memoizedState=[l,e],l}function Mu(t,e,n){return n===void 0||(va&1073741824)!==0?t.memoizedState=e:(t.memoizedState=n,t=Hm(),At.lanes|=t,wa|=t,n)}function Lh(t,e,n,l){return en(n,e)?n:_l.current!==null?(t=Mu(t,n,l),en(t,e)||(Ce=!0),t):(va&42)===0?(Ce=!0,t.memoizedState=n):(t=Hm(),At.lanes|=t,wa|=t,e)}function jh(t,e,n,l,s){var u=Z.p;Z.p=u!==0&&8>u?u:8;var g=C.T,b={};C.T=b,Uu(t,!1,e,n);try{var E=s(),z=C.S;if(z!==null&&z(b,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var V=P0(E,l);jr(t,e,V,on(t))}else jr(t,e,l,on(t))}catch(K){jr(t,e,{then:function(){},status:"rejected",reason:K},on())}finally{Z.p=u,C.T=g}}function lb(){}function _u(t,e,n,l){if(t.tag!==5)throw Error(o(476));var s=Hh(t).queue;jh(t,s,e,q,n===null?lb:function(){return kh(t),n(l)})}function Hh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:q},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function kh(t){var e=Hh(t).next.queue;jr(t,e,{},on())}function zu(){return Le(ei)}function qh(){return be().memoizedState}function Yh(){return be().memoizedState}function rb(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=on();t=ma(n);var l=ga(e,t,n);l!==null&&(sn(l,e,n),Mr(l,e,n)),e={cache:uu()},t.payload=e;return}e=e.return}}function ib(t,e,n){var l=on();n={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},no(t)?Gh(e,n):(n=Ps(t,e,n,l),n!==null&&(sn(n,t,l),Xh(n,e,l)))}function Vh(t,e,n){var l=on();jr(t,e,n,l)}function jr(t,e,n,l){var s={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(no(t))Gh(e,s);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var g=e.lastRenderedState,b=u(g,n);if(s.hasEagerState=!0,s.eagerState=b,en(b,g))return ki(t,e,s,0),le===null&&Hi(),!1}catch{}finally{}if(n=Ps(t,e,s,l),n!==null)return sn(n,t,l),Xh(n,e,l),!0}return!1}function Uu(t,e,n,l){if(l={lane:2,revertLane:dc(),action:l,hasEagerState:!1,eagerState:null,next:null},no(t)){if(e)throw Error(o(479))}else e=Ps(t,n,l,2),e!==null&&sn(e,t,2)}function no(t){var e=t.alternate;return t===At||e!==null&&e===At}function Gh(t,e){zl=$i=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Xh(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Xt(t,n)}}var ao={readContext:Le,use:Ii,useCallback:ge,useContext:ge,useEffect:ge,useImperativeHandle:ge,useLayoutEffect:ge,useInsertionEffect:ge,useMemo:ge,useReducer:ge,useRef:ge,useState:ge,useDebugValue:ge,useDeferredValue:ge,useTransition:ge,useSyncExternalStore:ge,useId:ge,useHostTransitionStatus:ge,useFormState:ge,useActionState:ge,useOptimistic:ge,useMemoCache:ge,useCacheRefresh:ge},Qh={readContext:Le,use:Ii,useCallback:function(t,e){return Ke().memoizedState=[t,e===void 0?null:e],t},useContext:Le,useEffect:Dh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,eo(4194308,4,_h.bind(null,e,t),n)},useLayoutEffect:function(t,e){return eo(4194308,4,t,e)},useInsertionEffect:function(t,e){eo(4,2,t,e)},useMemo:function(t,e){var n=Ke();e=e===void 0?null:e;var l=t();if(Pa){pe(!0);try{t()}finally{pe(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=Ke();if(n!==void 0){var s=n(e);if(Pa){pe(!0);try{n(e)}finally{pe(!1)}}}else s=e;return l.memoizedState=l.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},l.queue=t,t=t.dispatch=ib.bind(null,At,t),[l.memoizedState,t]},useRef:function(t){var e=Ke();return t={current:t},e.memoizedState=t},useState:function(t){t=Du(t);var e=t.queue,n=Vh.bind(null,At,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Nu,useDeferredValue:function(t,e){var n=Ke();return Mu(n,t,e)},useTransition:function(){var t=Du(!1);return t=jh.bind(null,At,t.queue,!0,!1),Ke().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=At,s=Ke();if(Vt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),le===null)throw Error(o(349));(Ut&124)!==0||dh(l,e,n)}s.memoizedState=n;var u={value:n,getSnapshot:e};return s.queue=u,Dh(mh.bind(null,l,u,t),[t]),l.flags|=2048,Bl(9,to(),hh.bind(null,l,u,n,e),null),n},useId:function(){var t=Ke(),e=le.identifierPrefix;if(Vt){var n=Jn,l=Kn;n=(l&~(1<<32-te(l)-1)).toString(32)+n,e="«"+e+"R"+n,n=Wi++,0<n&&(e+="H"+n.toString(32)),e+="»"}else n=tb++,e="«"+e+"r"+n.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:zu,useFormState:wh,useActionState:wh,useOptimistic:function(t){var e=Ke();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Uu.bind(null,At,!0,n),n.dispatch=e,[t,e]},useMemoCache:Tu,useCacheRefresh:function(){return Ke().memoizedState=rb.bind(null,At)}},Zh={readContext:Le,use:Ii,useCallback:Uh,useContext:Le,useEffect:Ch,useImperativeHandle:zh,useInsertionEffect:Nh,useLayoutEffect:Mh,useMemo:Bh,useReducer:Pi,useRef:Oh,useState:function(){return Pi(Wn)},useDebugValue:Nu,useDeferredValue:function(t,e){var n=be();return Lh(n,$t.memoizedState,t,e)},useTransition:function(){var t=Pi(Wn)[0],e=be().memoizedState;return[typeof t=="boolean"?t:Br(t),e]},useSyncExternalStore:fh,useId:qh,useHostTransitionStatus:zu,useFormState:Rh,useActionState:Rh,useOptimistic:function(t,e){var n=be();return ph(n,$t,t,e)},useMemoCache:Tu,useCacheRefresh:Yh},ob={readContext:Le,use:Ii,useCallback:Uh,useContext:Le,useEffect:Ch,useImperativeHandle:zh,useInsertionEffect:Nh,useLayoutEffect:Mh,useMemo:Bh,useReducer:Ou,useRef:Oh,useState:function(){return Ou(Wn)},useDebugValue:Nu,useDeferredValue:function(t,e){var n=be();return $t===null?Mu(n,t,e):Lh(n,$t.memoizedState,t,e)},useTransition:function(){var t=Ou(Wn)[0],e=be().memoizedState;return[typeof t=="boolean"?t:Br(t),e]},useSyncExternalStore:fh,useId:qh,useHostTransitionStatus:zu,useFormState:Ah,useActionState:Ah,useOptimistic:function(t,e){var n=be();return $t!==null?ph(n,$t,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Tu,useCacheRefresh:Yh},Ll=null,Hr=0;function lo(t){var e=Hr;return Hr+=1,Ll===null&&(Ll=[]),ah(Ll,t,e)}function kr(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ro(t,e){throw e.$$typeof===v?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Kh(t){var e=t._init;return e(t._payload)}function Jh(t){function e(N,O){if(t){var _=N.deletions;_===null?(N.deletions=[O],N.flags|=16):_.push(O)}}function n(N,O){if(!t)return null;for(;O!==null;)e(N,O),O=O.sibling;return null}function l(N){for(var O=new Map;N!==null;)N.key!==null?O.set(N.key,N):O.set(N.index,N),N=N.sibling;return O}function s(N,O){return N=Zn(N,O),N.index=0,N.sibling=null,N}function u(N,O,_){return N.index=_,t?(_=N.alternate,_!==null?(_=_.index,_<O?(N.flags|=67108866,O):_):(N.flags|=67108866,O)):(N.flags|=1048576,O)}function g(N){return t&&N.alternate===null&&(N.flags|=67108866),N}function b(N,O,_,X){return O===null||O.tag!==6?(O=eu(_,N.mode,X),O.return=N,O):(O=s(O,_),O.return=N,O)}function E(N,O,_,X){var rt=_.type;return rt===D?V(N,O,_.props.children,X,_.key):O!==null&&(O.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===H&&Kh(rt)===O.type)?(O=s(O,_.props),kr(O,_),O.return=N,O):(O=Yi(_.type,_.key,_.props,null,N.mode,X),kr(O,_),O.return=N,O)}function z(N,O,_,X){return O===null||O.tag!==4||O.stateNode.containerInfo!==_.containerInfo||O.stateNode.implementation!==_.implementation?(O=nu(_,N.mode,X),O.return=N,O):(O=s(O,_.children||[]),O.return=N,O)}function V(N,O,_,X,rt){return O===null||O.tag!==7?(O=Qa(_,N.mode,X,rt),O.return=N,O):(O=s(O,_),O.return=N,O)}function K(N,O,_){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=eu(""+O,N.mode,_),O.return=N,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case w:return _=Yi(O.type,O.key,O.props,null,N.mode,_),kr(_,O),_.return=N,_;case A:return O=nu(O,N.mode,_),O.return=N,O;case H:var X=O._init;return O=X(O._payload),K(N,O,_)}if(gt(O)||st(O))return O=Qa(O,N.mode,_,null),O.return=N,O;if(typeof O.then=="function")return K(N,lo(O),_);if(O.$$typeof===Q)return K(N,Qi(N,O),_);ro(N,O)}return null}function U(N,O,_,X){var rt=O!==null?O.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return rt!==null?null:b(N,O,""+_,X);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case w:return _.key===rt?E(N,O,_,X):null;case A:return _.key===rt?z(N,O,_,X):null;case H:return rt=_._init,_=rt(_._payload),U(N,O,_,X)}if(gt(_)||st(_))return rt!==null?null:V(N,O,_,X,null);if(typeof _.then=="function")return U(N,O,lo(_),X);if(_.$$typeof===Q)return U(N,O,Qi(N,_),X);ro(N,_)}return null}function B(N,O,_,X,rt){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return N=N.get(_)||null,b(O,N,""+X,rt);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case w:return N=N.get(X.key===null?_:X.key)||null,E(O,N,X,rt);case A:return N=N.get(X.key===null?_:X.key)||null,z(O,N,X,rt);case H:var Ct=X._init;return X=Ct(X._payload),B(N,O,_,X,rt)}if(gt(X)||st(X))return N=N.get(_)||null,V(O,N,X,rt,null);if(typeof X.then=="function")return B(N,O,_,lo(X),rt);if(X.$$typeof===Q)return B(N,O,_,Qi(O,X),rt);ro(O,X)}return null}function bt(N,O,_,X){for(var rt=null,Ct=null,dt=O,pt=O=0,Me=null;dt!==null&&pt<_.length;pt++){dt.index>pt?(Me=dt,dt=null):Me=dt.sibling;var Ht=U(N,dt,_[pt],X);if(Ht===null){dt===null&&(dt=Me);break}t&&dt&&Ht.alternate===null&&e(N,dt),O=u(Ht,O,pt),Ct===null?rt=Ht:Ct.sibling=Ht,Ct=Ht,dt=Me}if(pt===_.length)return n(N,dt),Vt&&Ka(N,pt),rt;if(dt===null){for(;pt<_.length;pt++)dt=K(N,_[pt],X),dt!==null&&(O=u(dt,O,pt),Ct===null?rt=dt:Ct.sibling=dt,Ct=dt);return Vt&&Ka(N,pt),rt}for(dt=l(dt);pt<_.length;pt++)Me=B(dt,N,pt,_[pt],X),Me!==null&&(t&&Me.alternate!==null&&dt.delete(Me.key===null?pt:Me.key),O=u(Me,O,pt),Ct===null?rt=Me:Ct.sibling=Me,Ct=Me);return t&&dt.forEach(function(_a){return e(N,_a)}),Vt&&Ka(N,pt),rt}function vt(N,O,_,X){if(_==null)throw Error(o(151));for(var rt=null,Ct=null,dt=O,pt=O=0,Me=null,Ht=_.next();dt!==null&&!Ht.done;pt++,Ht=_.next()){dt.index>pt?(Me=dt,dt=null):Me=dt.sibling;var _a=U(N,dt,Ht.value,X);if(_a===null){dt===null&&(dt=Me);break}t&&dt&&_a.alternate===null&&e(N,dt),O=u(_a,O,pt),Ct===null?rt=_a:Ct.sibling=_a,Ct=_a,dt=Me}if(Ht.done)return n(N,dt),Vt&&Ka(N,pt),rt;if(dt===null){for(;!Ht.done;pt++,Ht=_.next())Ht=K(N,Ht.value,X),Ht!==null&&(O=u(Ht,O,pt),Ct===null?rt=Ht:Ct.sibling=Ht,Ct=Ht);return Vt&&Ka(N,pt),rt}for(dt=l(dt);!Ht.done;pt++,Ht=_.next())Ht=B(dt,N,pt,Ht.value,X),Ht!==null&&(t&&Ht.alternate!==null&&dt.delete(Ht.key===null?pt:Ht.key),O=u(Ht,O,pt),Ct===null?rt=Ht:Ct.sibling=Ht,Ct=Ht);return t&&dt.forEach(function(sS){return e(N,sS)}),Vt&&Ka(N,pt),rt}function It(N,O,_,X){if(typeof _=="object"&&_!==null&&_.type===D&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:t:{for(var rt=_.key;O!==null;){if(O.key===rt){if(rt=_.type,rt===D){if(O.tag===7){n(N,O.sibling),X=s(O,_.props.children),X.return=N,N=X;break t}}else if(O.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===H&&Kh(rt)===O.type){n(N,O.sibling),X=s(O,_.props),kr(X,_),X.return=N,N=X;break t}n(N,O);break}else e(N,O);O=O.sibling}_.type===D?(X=Qa(_.props.children,N.mode,X,_.key),X.return=N,N=X):(X=Yi(_.type,_.key,_.props,null,N.mode,X),kr(X,_),X.return=N,N=X)}return g(N);case A:t:{for(rt=_.key;O!==null;){if(O.key===rt)if(O.tag===4&&O.stateNode.containerInfo===_.containerInfo&&O.stateNode.implementation===_.implementation){n(N,O.sibling),X=s(O,_.children||[]),X.return=N,N=X;break t}else{n(N,O);break}else e(N,O);O=O.sibling}X=nu(_,N.mode,X),X.return=N,N=X}return g(N);case H:return rt=_._init,_=rt(_._payload),It(N,O,_,X)}if(gt(_))return bt(N,O,_,X);if(st(_)){if(rt=st(_),typeof rt!="function")throw Error(o(150));return _=rt.call(_),vt(N,O,_,X)}if(typeof _.then=="function")return It(N,O,lo(_),X);if(_.$$typeof===Q)return It(N,O,Qi(N,_),X);ro(N,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,O!==null&&O.tag===6?(n(N,O.sibling),X=s(O,_),X.return=N,N=X):(n(N,O),X=eu(_,N.mode,X),X.return=N,N=X),g(N)):n(N,O)}return function(N,O,_,X){try{Hr=0;var rt=It(N,O,_,X);return Ll=null,rt}catch(dt){if(dt===Cr||dt===Ki)throw dt;var Ct=nn(29,dt,null,N.mode);return Ct.lanes=X,Ct.return=N,Ct}finally{}}}var jl=Jh(!0),Fh=Jh(!1),vn=L(null),_n=null;function pa(t){var e=t.alternate;Y(xe,xe.current&1),Y(vn,t),_n===null&&(e===null||_l.current!==null||e.memoizedState!==null)&&(_n=t)}function $h(t){if(t.tag===22){if(Y(xe,xe.current),Y(vn,t),_n===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(_n=t)}}else ya()}function ya(){Y(xe,xe.current),Y(vn,vn.current)}function In(t){G(vn),_n===t&&(_n=null),G(xe)}var xe=L(0);function io(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||Rc(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Bu(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:y({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Lu={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=on(),s=ma(l);s.payload=e,n!=null&&(s.callback=n),e=ga(t,s,l),e!==null&&(sn(e,t,l),Mr(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=on(),s=ma(l);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=ga(t,s,l),e!==null&&(sn(e,t,l),Mr(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=on(),l=ma(n);l.tag=2,e!=null&&(l.callback=e),e=ga(t,l,n),e!==null&&(sn(e,t,n),Mr(e,t,n))}};function Wh(t,e,n,l,s,u,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,u,g):e.prototype&&e.prototype.isPureReactComponent?!Er(n,l)||!Er(s,u):!0}function Ih(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&Lu.enqueueReplaceState(e,e.state,null)}function tl(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=y({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}var oo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Ph(t){oo(t)}function tm(t){console.error(t)}function em(t){oo(t)}function so(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function nm(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function ju(t,e,n){return n=ma(n),n.tag=3,n.payload={element:null},n.callback=function(){so(t,e)},n}function am(t){return t=ma(t),t.tag=3,t}function lm(t,e,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var u=l.value;t.payload=function(){return s(u)},t.callback=function(){nm(e,n,l)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(t.callback=function(){nm(e,n,l),typeof s!="function"&&(Ra===null?Ra=new Set([this]):Ra.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function sb(t,e,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Ar(e,n,s,!0),n=vn.current,n!==null){switch(n.tag){case 13:return _n===null?oc():n.alternate===null&&de===0&&(de=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===du?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),uc(t,l,s)),!1;case 22:return n.flags|=65536,l===du?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),uc(t,l,s)),!1}throw Error(o(435,n.tag))}return uc(t,l,s),oc(),!1}if(Vt)return e=vn.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,l!==ru&&(t=Error(o(422),{cause:l}),Tr(dn(t,n)))):(l!==ru&&(e=Error(o(423),{cause:l}),Tr(dn(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,l=dn(l,n),s=ju(t.stateNode,l,s),gu(t,s),de!==4&&(de=2)),!1;var u=Error(o(520),{cause:l});if(u=dn(u,n),Zr===null?Zr=[u]:Zr.push(u),de!==4&&(de=2),e===null)return!0;l=dn(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=ju(n.stateNode,l,t),gu(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ra===null||!Ra.has(u))))return n.flags|=65536,s&=-s,n.lanes|=s,s=am(s),lm(s,t,n,l),gu(n,s),!1}n=n.return}while(n!==null);return!1}var rm=Error(o(461)),Ce=!1;function ze(t,e,n,l){e.child=t===null?Fh(e,null,n,l):jl(e,t.child,n,l)}function im(t,e,n,l,s){n=n.render;var u=e.ref;if("ref"in l){var g={};for(var b in l)b!=="ref"&&(g[b]=l[b])}else g=l;return Wa(e),l=Su(t,e,n,g,u,s),b=Eu(),t!==null&&!Ce?(xu(t,e,s),Pn(t,e,s)):(Vt&&b&&au(e),e.flags|=1,ze(t,e,l,s),e.child)}function om(t,e,n,l,s){if(t===null){var u=n.type;return typeof u=="function"&&!tu(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,sm(t,e,u,l,s)):(t=Yi(n.type,null,l,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Qu(t,s)){var g=u.memoizedProps;if(n=n.compare,n=n!==null?n:Er,n(g,l)&&t.ref===e.ref)return Pn(t,e,s)}return e.flags|=1,t=Zn(u,l),t.ref=e.ref,t.return=e,e.child=t}function sm(t,e,n,l,s){if(t!==null){var u=t.memoizedProps;if(Er(u,l)&&t.ref===e.ref)if(Ce=!1,e.pendingProps=l=u,Qu(t,s))(t.flags&131072)!==0&&(Ce=!0);else return e.lanes=t.lanes,Pn(t,e,s)}return Hu(t,e,n,l,s)}function um(t,e,n){var l=e.pendingProps,s=l.children,u=t!==null?t.memoizedState:null;if(l.mode==="hidden"){if((e.flags&128)!==0){if(l=u!==null?u.baseLanes|n:n,t!==null){for(s=e.child=t.child,u=0;s!==null;)u=u|s.lanes|s.childLanes,s=s.sibling;e.childLanes=u&~l}else e.childLanes=0,e.child=null;return cm(t,e,l,n)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Zi(e,u!==null?u.cachePool:null),u!==null?sh(e,u):pu(),$h(e);else return e.lanes=e.childLanes=536870912,cm(t,e,u!==null?u.baseLanes|n:n,n)}else u!==null?(Zi(e,u.cachePool),sh(e,u),ya(),e.memoizedState=null):(t!==null&&Zi(e,null),pu(),ya());return ze(t,e,s,n),e.child}function cm(t,e,n,l){var s=fu();return s=s===null?null:{parent:Ee._currentValue,pool:s},e.memoizedState={baseLanes:n,cachePool:s},t!==null&&Zi(e,null),pu(),$h(e),t!==null&&Ar(t,e,l,!0),null}function uo(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Hu(t,e,n,l,s){return Wa(e),n=Su(t,e,n,l,void 0,s),l=Eu(),t!==null&&!Ce?(xu(t,e,s),Pn(t,e,s)):(Vt&&l&&au(e),e.flags|=1,ze(t,e,n,s),e.child)}function fm(t,e,n,l,s,u){return Wa(e),e.updateQueue=null,n=ch(e,l,n,s),uh(t),l=Eu(),t!==null&&!Ce?(xu(t,e,u),Pn(t,e,u)):(Vt&&l&&au(e),e.flags|=1,ze(t,e,n,u),e.child)}function dm(t,e,n,l,s){if(Wa(e),e.stateNode===null){var u=Ol,g=n.contextType;typeof g=="object"&&g!==null&&(u=Le(g)),u=new n(l,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Lu,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=l,u.state=e.memoizedState,u.refs={},hu(e),g=n.contextType,u.context=typeof g=="object"&&g!==null?Le(g):Ol,u.state=e.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(Bu(e,n,g,l),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(g=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),g!==u.state&&Lu.enqueueReplaceState(u,u.state,null),zr(e,l,u,s),_r(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){u=e.stateNode;var b=e.memoizedProps,E=tl(n,b);u.props=E;var z=u.context,V=n.contextType;g=Ol,typeof V=="object"&&V!==null&&(g=Le(V));var K=n.getDerivedStateFromProps;V=typeof K=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,V||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||z!==g)&&Ih(e,u,l,g),ha=!1;var U=e.memoizedState;u.state=U,zr(e,l,u,s),_r(),z=e.memoizedState,b||U!==z||ha?(typeof K=="function"&&(Bu(e,n,K,l),z=e.memoizedState),(E=ha||Wh(e,n,E,l,U,z,g))?(V||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=z),u.props=l,u.state=z,u.context=g,l=E):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{u=e.stateNode,mu(t,e),g=e.memoizedProps,V=tl(n,g),u.props=V,K=e.pendingProps,U=u.context,z=n.contextType,E=Ol,typeof z=="object"&&z!==null&&(E=Le(z)),b=n.getDerivedStateFromProps,(z=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g!==K||U!==E)&&Ih(e,u,l,E),ha=!1,U=e.memoizedState,u.state=U,zr(e,l,u,s),_r();var B=e.memoizedState;g!==K||U!==B||ha||t!==null&&t.dependencies!==null&&Xi(t.dependencies)?(typeof b=="function"&&(Bu(e,n,b,l),B=e.memoizedState),(V=ha||Wh(e,n,V,l,U,B,E)||t!==null&&t.dependencies!==null&&Xi(t.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,B,E),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,B,E)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||g===t.memoizedProps&&U===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&U===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=B),u.props=l,u.state=B,u.context=E,l=V):(typeof u.componentDidUpdate!="function"||g===t.memoizedProps&&U===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&U===t.memoizedState||(e.flags|=1024),l=!1)}return u=l,uo(t,e),l=(e.flags&128)!==0,u||l?(u=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&l?(e.child=jl(e,t.child,null,s),e.child=jl(e,null,n,s)):ze(t,e,n,s),e.memoizedState=u.state,t=e.child):t=Pn(t,e,s),t}function hm(t,e,n,l){return Rr(),e.flags|=256,ze(t,e,n,l),e.child}var ku={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qu(t){return{baseLanes:t,cachePool:th()}}function Yu(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=pn),t}function mm(t,e,n){var l=e.pendingProps,s=!1,u=(e.flags&128)!==0,g;if((g=u)||(g=t!==null&&t.memoizedState===null?!1:(xe.current&2)!==0),g&&(s=!0,e.flags&=-129),g=(e.flags&32)!==0,e.flags&=-33,t===null){if(Vt){if(s?pa(e):ya(),Vt){var b=fe,E;if(E=b){t:{for(E=b,b=Mn;E.nodeType!==8;){if(!b){b=null;break t}if(E=Tn(E.nextSibling),E===null){b=null;break t}}b=E}b!==null?(e.memoizedState={dehydrated:b,treeContext:Za!==null?{id:Kn,overflow:Jn}:null,retryLane:536870912,hydrationErrors:null},E=nn(18,null,null,0),E.stateNode=b,E.return=e,e.child=E,Ye=e,fe=null,E=!0):E=!1}E||Fa(e)}if(b=e.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return Rc(b)?e.lanes=32:e.lanes=536870912,null;In(e)}return b=l.children,l=l.fallback,s?(ya(),s=e.mode,b=co({mode:"hidden",children:b},s),l=Qa(l,s,n,null),b.return=e,l.return=e,b.sibling=l,e.child=b,s=e.child,s.memoizedState=qu(n),s.childLanes=Yu(t,g,n),e.memoizedState=ku,l):(pa(e),Vu(e,b))}if(E=t.memoizedState,E!==null&&(b=E.dehydrated,b!==null)){if(u)e.flags&256?(pa(e),e.flags&=-257,e=Gu(t,e,n)):e.memoizedState!==null?(ya(),e.child=t.child,e.flags|=128,e=null):(ya(),s=l.fallback,b=e.mode,l=co({mode:"visible",children:l.children},b),s=Qa(s,b,n,null),s.flags|=2,l.return=e,s.return=e,l.sibling=s,e.child=l,jl(e,t.child,null,n),l=e.child,l.memoizedState=qu(n),l.childLanes=Yu(t,g,n),e.memoizedState=ku,e=s);else if(pa(e),Rc(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var z=g.dgst;g=z,l=Error(o(419)),l.stack="",l.digest=g,Tr({value:l,source:null,stack:null}),e=Gu(t,e,n)}else if(Ce||Ar(t,e,n,!1),g=(n&t.childLanes)!==0,Ce||g){if(g=le,g!==null&&(l=n&-n,l=(l&42)!==0?1:Lt(l),l=(l&(g.suspendedLanes|n))!==0?0:l,l!==0&&l!==E.retryLane))throw E.retryLane=l,Al(t,l),sn(g,t,l),rm;b.data==="$?"||oc(),e=Gu(t,e,n)}else b.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=E.treeContext,fe=Tn(b.nextSibling),Ye=e,Vt=!0,Ja=null,Mn=!1,t!==null&&(mn[gn++]=Kn,mn[gn++]=Jn,mn[gn++]=Za,Kn=t.id,Jn=t.overflow,Za=e),e=Vu(e,l.children),e.flags|=4096);return e}return s?(ya(),s=l.fallback,b=e.mode,E=t.child,z=E.sibling,l=Zn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,z!==null?s=Zn(z,s):(s=Qa(s,b,n,null),s.flags|=2),s.return=e,l.return=e,l.sibling=s,e.child=l,l=s,s=e.child,b=t.child.memoizedState,b===null?b=qu(n):(E=b.cachePool,E!==null?(z=Ee._currentValue,E=E.parent!==z?{parent:z,pool:z}:E):E=th(),b={baseLanes:b.baseLanes|n,cachePool:E}),s.memoizedState=b,s.childLanes=Yu(t,g,n),e.memoizedState=ku,l):(pa(e),n=t.child,t=n.sibling,n=Zn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(g=e.deletions,g===null?(e.deletions=[t],e.flags|=16):g.push(t)),e.child=n,e.memoizedState=null,n)}function Vu(t,e){return e=co({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function co(t,e){return t=nn(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Gu(t,e,n){return jl(e,t.child,null,n),t=Vu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function gm(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),ou(t.return,e,n)}function Xu(t,e,n,l,s){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=l,u.tail=n,u.tailMode=s)}function vm(t,e,n){var l=e.pendingProps,s=l.revealOrder,u=l.tail;if(ze(t,e,l.children,n),l=xe.current,(l&2)!==0)l=l&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&gm(t,n,e);else if(t.tag===19)gm(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}switch(Y(xe,l),s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&io(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Xu(e,!1,s,n,u);break;case"backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&io(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Xu(e,!0,n,null,u);break;case"together":Xu(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Pn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),wa|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ar(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=Zn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Zn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Qu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Xi(t)))}function ub(t,e,n){switch(e.tag){case 3:Et(e,e.stateNode.containerInfo),da(e,Ee,t.memoizedState.cache),Rr();break;case 27:case 5:yt(e);break;case 4:Et(e,e.stateNode.containerInfo);break;case 10:da(e,e.type,e.memoizedProps.value);break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(pa(e),e.flags|=128,null):(n&e.child.childLanes)!==0?mm(t,e,n):(pa(e),t=Pn(t,e,n),t!==null?t.sibling:null);pa(e);break;case 19:var s=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Ar(t,e,n,!1),l=(n&e.childLanes)!==0),s){if(l)return vm(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Y(xe,xe.current),l)break;return null;case 22:case 23:return e.lanes=0,um(t,e,n);case 24:da(e,Ee,t.memoizedState.cache)}return Pn(t,e,n)}function pm(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ce=!0;else{if(!Qu(t,n)&&(e.flags&128)===0)return Ce=!1,ub(t,e,n);Ce=(t.flags&131072)!==0}else Ce=!1,Vt&&(e.flags&1048576)!==0&&Kd(e,Gi,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var l=e.elementType,s=l._init;if(l=s(l._payload),e.type=l,typeof l=="function")tu(l)?(t=tl(l,t),e.tag=1,e=dm(null,e,l,t,n)):(e.tag=0,e=Hu(null,e,l,t,n));else{if(l!=null){if(s=l.$$typeof,s===W){e.tag=11,e=im(null,e,l,t,n);break t}else if(s===$){e.tag=14,e=om(null,e,l,t,n);break t}}throw e=mt(l)||l,Error(o(306,e,""))}}return e;case 0:return Hu(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,s=tl(l,e.pendingProps),dm(t,e,l,s,n);case 3:t:{if(Et(e,e.stateNode.containerInfo),t===null)throw Error(o(387));l=e.pendingProps;var u=e.memoizedState;s=u.element,mu(t,e),zr(e,l,null,n);var g=e.memoizedState;if(l=g.cache,da(e,Ee,l),l!==u.cache&&su(e,[Ee],n,!0),_r(),l=g.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:g.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=hm(t,e,l,n);break t}else if(l!==s){s=dn(Error(o(424)),e),Tr(s),e=hm(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(fe=Tn(t.firstChild),Ye=e,Vt=!0,Ja=null,Mn=!0,n=Fh(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Rr(),l===s){e=Pn(t,e,n);break t}ze(t,e,l,n)}e=e.child}return e;case 26:return uo(t,e),t===null?(n=Eg(e.type,null,e.pendingProps,null))?e.memoizedState=n:Vt||(n=e.type,t=e.pendingProps,l=To(nt.current).createElement(n),l[Qt]=e,l[Nt]=t,Be(l,n,t),De(l),e.stateNode=l):e.memoizedState=Eg(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return yt(e),t===null&&Vt&&(l=e.stateNode=yg(e.type,e.pendingProps,nt.current),Ye=e,Mn=!0,s=fe,Oa(e.type)?(Tc=s,fe=Tn(l.firstChild)):fe=s),ze(t,e,e.pendingProps.children,n),uo(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Vt&&((s=l=fe)&&(l=jb(l,e.type,e.pendingProps,Mn),l!==null?(e.stateNode=l,Ye=e,fe=Tn(l.firstChild),Mn=!1,s=!0):s=!1),s||Fa(e)),yt(e),s=e.type,u=e.pendingProps,g=t!==null?t.memoizedProps:null,l=u.children,Ec(s,u)?l=null:g!==null&&Ec(s,g)&&(e.flags|=32),e.memoizedState!==null&&(s=Su(t,e,eb,null,null,n),ei._currentValue=s),uo(t,e),ze(t,e,l,n),e.child;case 6:return t===null&&Vt&&((t=n=fe)&&(n=Hb(n,e.pendingProps,Mn),n!==null?(e.stateNode=n,Ye=e,fe=null,t=!0):t=!1),t||Fa(e)),null;case 13:return mm(t,e,n);case 4:return Et(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=jl(e,null,l,n):ze(t,e,l,n),e.child;case 11:return im(t,e,e.type,e.pendingProps,n);case 7:return ze(t,e,e.pendingProps,n),e.child;case 8:return ze(t,e,e.pendingProps.children,n),e.child;case 12:return ze(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,da(e,e.type,l.value),ze(t,e,l.children,n),e.child;case 9:return s=e.type._context,l=e.pendingProps.children,Wa(e),s=Le(s),l=l(s),e.flags|=1,ze(t,e,l,n),e.child;case 14:return om(t,e,e.type,e.pendingProps,n);case 15:return sm(t,e,e.type,e.pendingProps,n);case 19:return vm(t,e,n);case 31:return l=e.pendingProps,n=e.mode,l={mode:l.mode,children:l.children},t===null?(n=co(l,n),n.ref=e.ref,e.child=n,n.return=e,e=n):(n=Zn(t.child,l),n.ref=e.ref,e.child=n,n.return=e,e=n),e;case 22:return um(t,e,n);case 24:return Wa(e),l=Le(Ee),t===null?(s=fu(),s===null&&(s=le,u=uu(),s.pooledCache=u,u.refCount++,u!==null&&(s.pooledCacheLanes|=n),s=u),e.memoizedState={parent:l,cache:s},hu(e),da(e,Ee,s)):((t.lanes&n)!==0&&(mu(t,e),zr(e,null,null,n),_r()),s=t.memoizedState,u=e.memoizedState,s.parent!==l?(s={parent:l,cache:l},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),da(e,Ee,l)):(l=u.cache,da(e,Ee,l),l!==s.cache&&su(e,[Ee],n,!0))),ze(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function ta(t){t.flags|=4}function ym(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Ag(e)){if(e=vn.current,e!==null&&((Ut&4194048)===Ut?_n!==null:(Ut&62914560)!==Ut&&(Ut&536870912)===0||e!==_n))throw Nr=du,eh;t.flags|=8192}}function fo(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?dl():536870912,t.lanes|=e,Yl|=e)}function qr(t,e){if(!Vt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function ue(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function cb(t,e,n){var l=e.pendingProps;switch(lu(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ue(e),null;case 1:return ue(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),$n(Ee),kt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(wr(e)?ta(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,$d())),ue(e),null;case 26:return n=e.memoizedState,t===null?(ta(e),n!==null?(ue(e),ym(e,n)):(ue(e),e.flags&=-16777217)):n?n!==t.memoizedState?(ta(e),ue(e),ym(e,n)):(ue(e),e.flags&=-16777217):(t.memoizedProps!==l&&ta(e),ue(e),e.flags&=-16777217),null;case 27:Se(e),n=nt.current;var s=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==l&&ta(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return ue(e),null}t=et.current,wr(e)?Jd(e):(t=yg(s,l,n),e.stateNode=t,ta(e))}return ue(e),null;case 5:if(Se(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&ta(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return ue(e),null}if(t=et.current,wr(e))Jd(e);else{switch(s=To(nt.current),t){case 1:t=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:t=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":t=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":t=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?s.createElement("select",{is:l.is}):s.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?s.createElement(n,{is:l.is}):s.createElement(n)}}t[Qt]=e,t[Nt]=l;t:for(s=e.child;s!==null;){if(s.tag===5||s.tag===6)t.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break t;for(;s.sibling===null;){if(s.return===null||s.return===e)break t;s=s.return}s.sibling.return=s.return,s=s.sibling}e.stateNode=t;t:switch(Be(t,n,l),n){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&ta(e)}}return ue(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&ta(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(o(166));if(t=nt.current,wr(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,s=Ye,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}t[Qt]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||fg(t.nodeValue,n)),t||Fa(e)}else t=To(t).createTextNode(l),t[Qt]=e,e.stateNode=t}return ue(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=wr(e),l!==null&&l.dehydrated!==null){if(t===null){if(!s)throw Error(o(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[Qt]=e}else Rr(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;ue(e),s=!1}else s=$d(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(In(e),e):(In(e),null)}if(In(e),(e.flags&128)!==0)return e.lanes=n,e;if(n=l!==null,t=t!==null&&t.memoizedState!==null,n){l=e.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool);var u=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==s&&(l.flags|=2048)}return n!==t&&n&&(e.child.flags|=8192),fo(e,e.updateQueue),ue(e),null;case 4:return kt(),t===null&&vc(e.stateNode.containerInfo),ue(e),null;case 10:return $n(e.type),ue(e),null;case 19:if(G(xe),s=e.memoizedState,s===null)return ue(e),null;if(l=(e.flags&128)!==0,u=s.rendering,u===null)if(l)qr(s,!1);else{if(de!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=io(t),u!==null){for(e.flags|=128,qr(s,!1),t=u.updateQueue,e.updateQueue=t,fo(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Zd(n,t),n=n.sibling;return Y(xe,xe.current&1|2),e.child}t=t.sibling}s.tail!==null&&qt()>go&&(e.flags|=128,l=!0,qr(s,!1),e.lanes=4194304)}else{if(!l)if(t=io(u),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,fo(e,t),qr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!Vt)return ue(e),null}else 2*qt()-s.renderingStartTime>go&&n!==536870912&&(e.flags|=128,l=!0,qr(s,!1),e.lanes=4194304);s.isBackwards?(u.sibling=e.child,e.child=u):(t=s.last,t!==null?t.sibling=u:e.child=u,s.last=u)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=qt(),e.sibling=null,t=xe.current,Y(xe,l?t&1|2:t&1),e):(ue(e),null);case 22:case 23:return In(e),yu(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(ue(e),e.subtreeFlags&6&&(e.flags|=8192)):ue(e),n=e.updateQueue,n!==null&&fo(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&G(Ia),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),$n(Ee),ue(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function fb(t,e){switch(lu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return $n(Ee),kt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Se(e),null;case 13:if(In(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Rr()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return G(xe),null;case 4:return kt(),null;case 10:return $n(e.type),null;case 22:case 23:return In(e),yu(),t!==null&&G(Ia),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return $n(Ee),null;case 25:return null;default:return null}}function bm(t,e){switch(lu(e),e.tag){case 3:$n(Ee),kt();break;case 26:case 27:case 5:Se(e);break;case 4:kt();break;case 13:In(e);break;case 19:G(xe);break;case 10:$n(e.type);break;case 22:case 23:In(e),yu(),t!==null&&G(Ia);break;case 24:$n(Ee)}}function Yr(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&t)===t){l=void 0;var u=n.create,g=n.inst;l=u(),g.destroy=l}n=n.next}while(n!==s)}}catch(b){ee(e,e.return,b)}}function ba(t,e,n){try{var l=e.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var u=s.next;l=u;do{if((l.tag&t)===t){var g=l.inst,b=g.destroy;if(b!==void 0){g.destroy=void 0,s=e;var E=n,z=b;try{z()}catch(V){ee(s,E,V)}}}l=l.next}while(l!==u)}}catch(V){ee(e,e.return,V)}}function Sm(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{oh(e,n)}catch(l){ee(t,t.return,l)}}}function Em(t,e,n){n.props=tl(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){ee(t,e,l)}}function Vr(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(s){ee(t,e,s)}}function zn(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(s){ee(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){ee(t,e,s)}else n.current=null}function xm(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(s){ee(t,t.return,s)}}function Zu(t,e,n){try{var l=t.stateNode;_b(l,t.type,n,e),l[Nt]=e}catch(s){ee(t,t.return,s)}}function wm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Oa(t.type)||t.tag===4}function Ku(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||wm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Oa(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ju(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Ro));else if(l!==4&&(l===27&&Oa(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Ju(t,e,n),t=t.sibling;t!==null;)Ju(t,e,n),t=t.sibling}function ho(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Oa(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(ho(t,e,n),t=t.sibling;t!==null;)ho(t,e,n),t=t.sibling}function Rm(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);Be(e,l,n),e[Qt]=t,e[Nt]=n}catch(u){ee(t,t.return,u)}}var ea=!1,ve=!1,Fu=!1,Tm=typeof WeakSet=="function"?WeakSet:Set,Ne=null;function db(t,e){if(t=t.containerInfo,bc=Mo,t=Ld(t),Ks(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var s=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var g=0,b=-1,E=-1,z=0,V=0,K=t,U=null;e:for(;;){for(var B;K!==n||s!==0&&K.nodeType!==3||(b=g+s),K!==u||l!==0&&K.nodeType!==3||(E=g+l),K.nodeType===3&&(g+=K.nodeValue.length),(B=K.firstChild)!==null;)U=K,K=B;for(;;){if(K===t)break e;if(U===n&&++z===s&&(b=g),U===u&&++V===l&&(E=g),(B=K.nextSibling)!==null)break;K=U,U=K.parentNode}K=B}n=b===-1||E===-1?null:{start:b,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sc={focusedElem:t,selectionRange:n},Mo=!1,Ne=e;Ne!==null;)if(e=Ne,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,Ne=t;else for(;Ne!==null;){switch(e=Ne,u=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,s=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var bt=tl(n.type,s,n.elementType===n.type);t=l.getSnapshotBeforeUpdate(bt,u),l.__reactInternalSnapshotBeforeUpdate=t}catch(vt){ee(n,n.return,vt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)wc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":wc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Ne=t;break}Ne=e.return}}function Am(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Sa(t,n),l&4&&Yr(5,n);break;case 1:if(Sa(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(g){ee(n,n.return,g)}else{var s=tl(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(g){ee(n,n.return,g)}}l&64&&Sm(n),l&512&&Vr(n,n.return);break;case 3:if(Sa(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{oh(t,e)}catch(g){ee(n,n.return,g)}}break;case 27:e===null&&l&4&&Rm(n);case 26:case 5:Sa(t,n),e===null&&l&4&&xm(n),l&512&&Vr(n,n.return);break;case 12:Sa(t,n);break;case 13:Sa(t,n),l&4&&Cm(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Eb.bind(null,n),kb(t,n))));break;case 22:if(l=n.memoizedState!==null||ea,!l){e=e!==null&&e.memoizedState!==null||ve,s=ea;var u=ve;ea=l,(ve=e)&&!u?Ea(t,n,(n.subtreeFlags&8772)!==0):Sa(t,n),ea=s,ve=u}break;case 30:break;default:Sa(t,n)}}function Om(t){var e=t.alternate;e!==null&&(t.alternate=null,Om(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ds(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ie=null,Je=!1;function na(t,e,n){for(n=n.child;n!==null;)Dm(t,e,n),n=n.sibling}function Dm(t,e,n){if(ne&&typeof ne.onCommitFiberUnmount=="function")try{ne.onCommitFiberUnmount(ce,n)}catch{}switch(n.tag){case 26:ve||zn(n,e),na(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ve||zn(n,e);var l=ie,s=Je;Oa(n.type)&&(ie=n.stateNode,Je=!1),na(t,e,n),Wr(n.stateNode),ie=l,Je=s;break;case 5:ve||zn(n,e);case 6:if(l=ie,s=Je,ie=null,na(t,e,n),ie=l,Je=s,ie!==null)if(Je)try{(ie.nodeType===9?ie.body:ie.nodeName==="HTML"?ie.ownerDocument.body:ie).removeChild(n.stateNode)}catch(u){ee(n,e,u)}else try{ie.removeChild(n.stateNode)}catch(u){ee(n,e,u)}break;case 18:ie!==null&&(Je?(t=ie,vg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ri(t)):vg(ie,n.stateNode));break;case 4:l=ie,s=Je,ie=n.stateNode.containerInfo,Je=!0,na(t,e,n),ie=l,Je=s;break;case 0:case 11:case 14:case 15:ve||ba(2,n,e),ve||ba(4,n,e),na(t,e,n);break;case 1:ve||(zn(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Em(n,e,l)),na(t,e,n);break;case 21:na(t,e,n);break;case 22:ve=(l=ve)||n.memoizedState!==null,na(t,e,n),ve=l;break;default:na(t,e,n)}}function Cm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ri(t)}catch(n){ee(e,e.return,n)}}function hb(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Tm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Tm),e;default:throw Error(o(435,t.tag))}}function $u(t,e){var n=hb(t);e.forEach(function(l){var s=xb.bind(null,t,l);n.has(l)||(n.add(l),l.then(s,s))})}function an(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],u=t,g=e,b=g;t:for(;b!==null;){switch(b.tag){case 27:if(Oa(b.type)){ie=b.stateNode,Je=!1;break t}break;case 5:ie=b.stateNode,Je=!1;break t;case 3:case 4:ie=b.stateNode.containerInfo,Je=!0;break t}b=b.return}if(ie===null)throw Error(o(160));Dm(u,g,s),ie=null,Je=!1,u=s.alternate,u!==null&&(u.return=null),s.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)Nm(e,t),e=e.sibling}var Rn=null;function Nm(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:an(e,t),ln(t),l&4&&(ba(3,t,t.return),Yr(3,t),ba(5,t,t.return));break;case 1:an(e,t),ln(t),l&512&&(ve||n===null||zn(n,n.return)),l&64&&ea&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var s=Rn;if(an(e,t),ln(t),l&512&&(ve||n===null||zn(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,s=s.ownerDocument||s;e:switch(l){case"title":u=s.getElementsByTagName("title")[0],(!u||u[Gn]||u[Qt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=s.createElement(l),s.head.insertBefore(u,s.querySelector("head > title"))),Be(u,l,n),u[Qt]=t,De(u),l=u;break t;case"link":var g=Rg("link","href",s).get(l+(n.href||""));if(g){for(var b=0;b<g.length;b++)if(u=g[b],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(b,1);break e}}u=s.createElement(l),Be(u,l,n),s.head.appendChild(u);break;case"meta":if(g=Rg("meta","content",s).get(l+(n.content||""))){for(b=0;b<g.length;b++)if(u=g[b],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(b,1);break e}}u=s.createElement(l),Be(u,l,n),s.head.appendChild(u);break;default:throw Error(o(468,l))}u[Qt]=t,De(u),l=u}t.stateNode=l}else Tg(s,t.type,t.stateNode);else t.stateNode=wg(s,l,t.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?Tg(s,t.type,t.stateNode):wg(s,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Zu(t,t.memoizedProps,n.memoizedProps)}break;case 27:an(e,t),ln(t),l&512&&(ve||n===null||zn(n,n.return)),n!==null&&l&4&&Zu(t,t.memoizedProps,n.memoizedProps);break;case 5:if(an(e,t),ln(t),l&512&&(ve||n===null||zn(n,n.return)),t.flags&32){s=t.stateNode;try{bl(s,"")}catch(B){ee(t,t.return,B)}}l&4&&t.stateNode!=null&&(s=t.memoizedProps,Zu(t,s,n!==null?n.memoizedProps:s)),l&1024&&(Fu=!0);break;case 6:if(an(e,t),ln(t),l&4){if(t.stateNode===null)throw Error(o(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(B){ee(t,t.return,B)}}break;case 3:if(Do=null,s=Rn,Rn=Ao(e.containerInfo),an(e,t),Rn=s,ln(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ri(e.containerInfo)}catch(B){ee(t,t.return,B)}Fu&&(Fu=!1,Mm(t));break;case 4:l=Rn,Rn=Ao(t.stateNode.containerInfo),an(e,t),ln(t),Rn=l;break;case 12:an(e,t),ln(t);break;case 13:an(e,t),ln(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(nc=qt()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,$u(t,l)));break;case 22:s=t.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,z=ea,V=ve;if(ea=z||s,ve=V||E,an(e,t),ve=V,ea=z,ln(t),l&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||E||ea||ve||el(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){E=n=e;try{if(u=E.stateNode,s)g=u.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{b=E.stateNode;var K=E.memoizedProps.style,U=K!=null&&K.hasOwnProperty("display")?K.display:null;b.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(B){ee(E,E.return,B)}}}else if(e.tag===6){if(n===null){E=e;try{E.stateNode.nodeValue=s?"":E.memoizedProps}catch(B){ee(E,E.return,B)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,$u(t,n))));break;case 19:an(e,t),ln(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,$u(t,l)));break;case 30:break;case 21:break;default:an(e,t),ln(t)}}function ln(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(wm(l)){n=l;break}l=l.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var s=n.stateNode,u=Ku(t);ho(t,u,s);break;case 5:var g=n.stateNode;n.flags&32&&(bl(g,""),n.flags&=-33);var b=Ku(t);ho(t,b,g);break;case 3:case 4:var E=n.stateNode.containerInfo,z=Ku(t);Ju(t,z,E);break;default:throw Error(o(161))}}catch(V){ee(t,t.return,V)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Mm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Mm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Sa(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Am(t,e.alternate,e),e=e.sibling}function el(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ba(4,e,e.return),el(e);break;case 1:zn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Em(e,e.return,n),el(e);break;case 27:Wr(e.stateNode);case 26:case 5:zn(e,e.return),el(e);break;case 22:e.memoizedState===null&&el(e);break;case 30:el(e);break;default:el(e)}t=t.sibling}}function Ea(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,s=t,u=e,g=u.flags;switch(u.tag){case 0:case 11:case 15:Ea(s,u,n),Yr(4,u);break;case 1:if(Ea(s,u,n),l=u,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(z){ee(l,l.return,z)}if(l=u,s=l.updateQueue,s!==null){var b=l.stateNode;try{var E=s.shared.hiddenCallbacks;if(E!==null)for(s.shared.hiddenCallbacks=null,s=0;s<E.length;s++)ih(E[s],b)}catch(z){ee(l,l.return,z)}}n&&g&64&&Sm(u),Vr(u,u.return);break;case 27:Rm(u);case 26:case 5:Ea(s,u,n),n&&l===null&&g&4&&xm(u),Vr(u,u.return);break;case 12:Ea(s,u,n);break;case 13:Ea(s,u,n),n&&g&4&&Cm(s,u);break;case 22:u.memoizedState===null&&Ea(s,u,n),Vr(u,u.return);break;case 30:break;default:Ea(s,u,n)}e=e.sibling}}function Wu(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Or(n))}function Iu(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Or(t))}function Un(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_m(t,e,n,l),e=e.sibling}function _m(t,e,n,l){var s=e.flags;switch(e.tag){case 0:case 11:case 15:Un(t,e,n,l),s&2048&&Yr(9,e);break;case 1:Un(t,e,n,l);break;case 3:Un(t,e,n,l),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Or(t)));break;case 12:if(s&2048){Un(t,e,n,l),t=e.stateNode;try{var u=e.memoizedProps,g=u.id,b=u.onPostCommit;typeof b=="function"&&b(g,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(E){ee(e,e.return,E)}}else Un(t,e,n,l);break;case 13:Un(t,e,n,l);break;case 23:break;case 22:u=e.stateNode,g=e.alternate,e.memoizedState!==null?u._visibility&2?Un(t,e,n,l):Gr(t,e):u._visibility&2?Un(t,e,n,l):(u._visibility|=2,Hl(t,e,n,l,(e.subtreeFlags&10256)!==0)),s&2048&&Wu(g,e);break;case 24:Un(t,e,n,l),s&2048&&Iu(e.alternate,e);break;default:Un(t,e,n,l)}}function Hl(t,e,n,l,s){for(s=s&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var u=t,g=e,b=n,E=l,z=g.flags;switch(g.tag){case 0:case 11:case 15:Hl(u,g,b,E,s),Yr(8,g);break;case 23:break;case 22:var V=g.stateNode;g.memoizedState!==null?V._visibility&2?Hl(u,g,b,E,s):Gr(u,g):(V._visibility|=2,Hl(u,g,b,E,s)),s&&z&2048&&Wu(g.alternate,g);break;case 24:Hl(u,g,b,E,s),s&&z&2048&&Iu(g.alternate,g);break;default:Hl(u,g,b,E,s)}e=e.sibling}}function Gr(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,s=l.flags;switch(l.tag){case 22:Gr(n,l),s&2048&&Wu(l.alternate,l);break;case 24:Gr(n,l),s&2048&&Iu(l.alternate,l);break;default:Gr(n,l)}e=e.sibling}}var Xr=8192;function kl(t){if(t.subtreeFlags&Xr)for(t=t.child;t!==null;)zm(t),t=t.sibling}function zm(t){switch(t.tag){case 26:kl(t),t.flags&Xr&&t.memoizedState!==null&&Ib(Rn,t.memoizedState,t.memoizedProps);break;case 5:kl(t);break;case 3:case 4:var e=Rn;Rn=Ao(t.stateNode.containerInfo),kl(t),Rn=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=Xr,Xr=16777216,kl(t),Xr=e):kl(t));break;default:kl(t)}}function Um(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Qr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Ne=l,Lm(l,t)}Um(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bm(t),t=t.sibling}function Bm(t){switch(t.tag){case 0:case 11:case 15:Qr(t),t.flags&2048&&ba(9,t,t.return);break;case 3:Qr(t);break;case 12:Qr(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,mo(t)):Qr(t);break;default:Qr(t)}}function mo(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Ne=l,Lm(l,t)}Um(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ba(8,e,e.return),mo(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,mo(e));break;default:mo(e)}t=t.sibling}}function Lm(t,e){for(;Ne!==null;){var n=Ne;switch(n.tag){case 0:case 11:case 15:ba(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Or(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Ne=l;else t:for(n=t;Ne!==null;){l=Ne;var s=l.sibling,u=l.return;if(Om(l),l===n){Ne=null;break t}if(s!==null){s.return=u,Ne=s;break t}Ne=u}}}var mb={getCacheForType:function(t){var e=Le(Ee),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n}},gb=typeof WeakMap=="function"?WeakMap:Map,Kt=0,le=null,Mt=null,Ut=0,Jt=0,rn=null,xa=!1,ql=!1,Pu=!1,aa=0,de=0,wa=0,nl=0,tc=0,pn=0,Yl=0,Zr=null,Fe=null,ec=!1,nc=0,go=1/0,vo=null,Ra=null,Ue=0,Ta=null,Vl=null,Gl=0,ac=0,lc=null,jm=null,Kr=0,rc=null;function on(){if((Kt&2)!==0&&Ut!==0)return Ut&-Ut;if(C.T!==null){var t=Nl;return t!==0?t:dc()}return Oe()}function Hm(){pn===0&&(pn=(Ut&536870912)===0||Vt?tn():536870912);var t=vn.current;return t!==null&&(t.flags|=32),pn}function sn(t,e,n){(t===le&&(Jt===2||Jt===9)||t.cancelPendingCommit!==null)&&(Xl(t,0),Aa(t,Ut,pn,!1)),re(t,n),((Kt&2)===0||t!==le)&&(t===le&&((Kt&2)===0&&(nl|=n),de===4&&Aa(t,Ut,pn,!1)),Bn(t))}function km(t,e,n){if((Kt&6)!==0)throw Error(o(327));var l=!n&&(e&124)===0&&(e&t.expiredLanes)===0||Vn(t,e),s=l?yb(t,e):sc(t,e,!0),u=l;do{if(s===0){ql&&!l&&Aa(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!vb(n)){s=sc(t,e,!1),u=!1;continue}if(s===2){if(u=e,t.errorRecoveryDisabledLanes&u)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){e=g;t:{var b=t;s=Zr;var E=b.current.memoizedState.isDehydrated;if(E&&(Xl(b,g).flags|=256),g=sc(b,g,!1),g!==2){if(Pu&&!E){b.errorRecoveryDisabledLanes|=u,nl|=u,s=4;break t}u=Fe,Fe=s,u!==null&&(Fe===null?Fe=u:Fe.push.apply(Fe,u))}s=g}if(u=!1,s!==2)continue}}if(s===1){Xl(t,0),Aa(t,e,0,!0);break}t:{switch(l=t,u=s,u){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Aa(l,e,pn,!xa);break t;case 2:Fe=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(s=nc+300-qt(),10<s)){if(Aa(l,e,pn,!xa),Nn(l,0,!0)!==0)break t;l.timeoutHandle=mg(qm.bind(null,l,n,Fe,vo,ec,e,pn,nl,Yl,xa,u,2,-0,0),s);break t}qm(l,n,Fe,vo,ec,e,pn,nl,Yl,xa,u,0,-0,0)}}break}while(!0);Bn(t)}function qm(t,e,n,l,s,u,g,b,E,z,V,K,U,B){if(t.timeoutHandle=-1,K=e.subtreeFlags,(K&8192||(K&16785408)===16785408)&&(ti={stylesheets:null,count:0,unsuspend:Wb},zm(e),K=Pb(),K!==null)){t.cancelPendingCommit=K(Km.bind(null,t,e,u,n,l,s,g,b,E,V,1,U,B)),Aa(t,u,g,!z);return}Km(t,e,u,n,l,s,g,b,E)}function vb(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var s=n[l],u=s.getSnapshot;s=s.value;try{if(!en(u(),s))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Aa(t,e,n,l){e&=~tc,e&=~nl,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var s=e;0<s;){var u=31-te(s),g=1<<u;l[u]=-1,s&=~g}n!==0&&ft(t,n,e)}function po(){return(Kt&6)===0?(Jr(0),!1):!0}function ic(){if(Mt!==null){if(Jt===0)var t=Mt.return;else t=Mt,Fn=$a=null,wu(t),Ll=null,Hr=0,t=Mt;for(;t!==null;)bm(t.alternate,t),t=t.return;Mt=null}}function Xl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Ub(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),ic(),le=t,Mt=n=Zn(t.current,null),Ut=e,Jt=0,rn=null,xa=!1,ql=Vn(t,e),Pu=!1,Yl=pn=tc=nl=wa=de=0,Fe=Zr=null,ec=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var s=31-te(l),u=1<<s;e|=t[s],l&=~u}return aa=e,Hi(),n}function Ym(t,e){At=null,C.H=ao,e===Cr||e===Ki?(e=lh(),Jt=3):e===eh?(e=lh(),Jt=4):Jt=e===rm?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,rn=e,Mt===null&&(de=1,so(t,dn(e,t.current)))}function Vm(){var t=C.H;return C.H=ao,t===null?ao:t}function Gm(){var t=C.A;return C.A=mb,t}function oc(){de=4,xa||(Ut&4194048)!==Ut&&vn.current!==null||(ql=!0),(wa&134217727)===0&&(nl&134217727)===0||le===null||Aa(le,Ut,pn,!1)}function sc(t,e,n){var l=Kt;Kt|=2;var s=Vm(),u=Gm();(le!==t||Ut!==e)&&(vo=null,Xl(t,e)),e=!1;var g=de;t:do try{if(Jt!==0&&Mt!==null){var b=Mt,E=rn;switch(Jt){case 8:ic(),g=6;break t;case 3:case 2:case 9:case 6:vn.current===null&&(e=!0);var z=Jt;if(Jt=0,rn=null,Ql(t,b,E,z),n&&ql){g=0;break t}break;default:z=Jt,Jt=0,rn=null,Ql(t,b,E,z)}}pb(),g=de;break}catch(V){Ym(t,V)}while(!0);return e&&t.shellSuspendCounter++,Fn=$a=null,Kt=l,C.H=s,C.A=u,Mt===null&&(le=null,Ut=0,Hi()),g}function pb(){for(;Mt!==null;)Xm(Mt)}function yb(t,e){var n=Kt;Kt|=2;var l=Vm(),s=Gm();le!==t||Ut!==e?(vo=null,go=qt()+500,Xl(t,e)):ql=Vn(t,e);t:do try{if(Jt!==0&&Mt!==null){e=Mt;var u=rn;e:switch(Jt){case 1:Jt=0,rn=null,Ql(t,e,u,1);break;case 2:case 9:if(nh(u)){Jt=0,rn=null,Qm(e);break}e=function(){Jt!==2&&Jt!==9||le!==t||(Jt=7),Bn(t)},u.then(e,e);break t;case 3:Jt=7;break t;case 4:Jt=5;break t;case 7:nh(u)?(Jt=0,rn=null,Qm(e)):(Jt=0,rn=null,Ql(t,e,u,7));break;case 5:var g=null;switch(Mt.tag){case 26:g=Mt.memoizedState;case 5:case 27:var b=Mt;if(!g||Ag(g)){Jt=0,rn=null;var E=b.sibling;if(E!==null)Mt=E;else{var z=b.return;z!==null?(Mt=z,yo(z)):Mt=null}break e}}Jt=0,rn=null,Ql(t,e,u,5);break;case 6:Jt=0,rn=null,Ql(t,e,u,6);break;case 8:ic(),de=6;break t;default:throw Error(o(462))}}bb();break}catch(V){Ym(t,V)}while(!0);return Fn=$a=null,C.H=l,C.A=s,Kt=n,Mt!==null?0:(le=null,Ut=0,Hi(),de)}function bb(){for(;Mt!==null&&!Pt();)Xm(Mt)}function Xm(t){var e=pm(t.alternate,t,aa);t.memoizedProps=t.pendingProps,e===null?yo(t):Mt=e}function Qm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=fm(n,e,e.pendingProps,e.type,void 0,Ut);break;case 11:e=fm(n,e,e.pendingProps,e.type.render,e.ref,Ut);break;case 5:wu(e);default:bm(n,e),e=Mt=Zd(e,aa),e=pm(n,e,aa)}t.memoizedProps=t.pendingProps,e===null?yo(t):Mt=e}function Ql(t,e,n,l){Fn=$a=null,wu(e),Ll=null,Hr=0;var s=e.return;try{if(sb(t,s,e,n,Ut)){de=1,so(t,dn(n,t.current)),Mt=null;return}}catch(u){if(s!==null)throw Mt=s,u;de=1,so(t,dn(n,t.current)),Mt=null;return}e.flags&32768?(Vt||l===1?t=!0:ql||(Ut&536870912)!==0?t=!1:(xa=t=!0,(l===2||l===9||l===3||l===6)&&(l=vn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Zm(e,t)):yo(e)}function yo(t){var e=t;do{if((e.flags&32768)!==0){Zm(e,xa);return}t=e.return;var n=cb(e.alternate,e,aa);if(n!==null){Mt=n;return}if(e=e.sibling,e!==null){Mt=e;return}Mt=e=t}while(e!==null);de===0&&(de=5)}function Zm(t,e){do{var n=fb(t.alternate,t);if(n!==null){n.flags&=32767,Mt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){Mt=t;return}Mt=t=n}while(t!==null);de=6,Mt=null}function Km(t,e,n,l,s,u,g,b,E){t.cancelPendingCommit=null;do bo();while(Ue!==0);if((Kt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(u=e.lanes|e.childLanes,u|=Is,Ae(t,n,u,g,b,E),t===le&&(Mt=le=null,Ut=0),Vl=e,Ta=t,Gl=n,ac=u,lc=s,jm=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,wb(me,function(){return Im(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=C.T,C.T=null,s=Z.p,Z.p=2,g=Kt,Kt|=4;try{db(t,e,n)}finally{Kt=g,Z.p=s,C.T=l}}Ue=1,Jm(),Fm(),$m()}}function Jm(){if(Ue===1){Ue=0;var t=Ta,e=Vl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=C.T,C.T=null;var l=Z.p;Z.p=2;var s=Kt;Kt|=4;try{Nm(e,t);var u=Sc,g=Ld(t.containerInfo),b=u.focusedElem,E=u.selectionRange;if(g!==b&&b&&b.ownerDocument&&Bd(b.ownerDocument.documentElement,b)){if(E!==null&&Ks(b)){var z=E.start,V=E.end;if(V===void 0&&(V=z),"selectionStart"in b)b.selectionStart=z,b.selectionEnd=Math.min(V,b.value.length);else{var K=b.ownerDocument||document,U=K&&K.defaultView||window;if(U.getSelection){var B=U.getSelection(),bt=b.textContent.length,vt=Math.min(E.start,bt),It=E.end===void 0?vt:Math.min(E.end,bt);!B.extend&&vt>It&&(g=It,It=vt,vt=g);var N=Ud(b,vt),O=Ud(b,It);if(N&&O&&(B.rangeCount!==1||B.anchorNode!==N.node||B.anchorOffset!==N.offset||B.focusNode!==O.node||B.focusOffset!==O.offset)){var _=K.createRange();_.setStart(N.node,N.offset),B.removeAllRanges(),vt>It?(B.addRange(_),B.extend(O.node,O.offset)):(_.setEnd(O.node,O.offset),B.addRange(_))}}}}for(K=[],B=b;B=B.parentNode;)B.nodeType===1&&K.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<K.length;b++){var X=K[b];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Mo=!!bc,Sc=bc=null}finally{Kt=s,Z.p=l,C.T=n}}t.current=e,Ue=2}}function Fm(){if(Ue===2){Ue=0;var t=Ta,e=Vl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=C.T,C.T=null;var l=Z.p;Z.p=2;var s=Kt;Kt|=4;try{Am(t,e.alternate,e)}finally{Kt=s,Z.p=l,C.T=n}}Ue=3}}function $m(){if(Ue===4||Ue===3){Ue=0,Bt();var t=Ta,e=Vl,n=Gl,l=jm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Ue=5:(Ue=0,Vl=Ta=null,Wm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Ra=null),Yt(n),e=e.stateNode,ne&&typeof ne.onCommitFiberRoot=="function")try{ne.onCommitFiberRoot(ce,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=C.T,s=Z.p,Z.p=2,C.T=null;try{for(var u=t.onRecoverableError,g=0;g<l.length;g++){var b=l[g];u(b.value,{componentStack:b.stack})}}finally{C.T=e,Z.p=s}}(Gl&3)!==0&&bo(),Bn(t),s=t.pendingLanes,(n&4194090)!==0&&(s&42)!==0?t===rc?Kr++:(Kr=0,rc=t):Kr=0,Jr(0)}}function Wm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Or(e)))}function bo(t){return Jm(),Fm(),$m(),Im()}function Im(){if(Ue!==5)return!1;var t=Ta,e=ac;ac=0;var n=Yt(Gl),l=C.T,s=Z.p;try{Z.p=32>n?32:n,C.T=null,n=lc,lc=null;var u=Ta,g=Gl;if(Ue=0,Vl=Ta=null,Gl=0,(Kt&6)!==0)throw Error(o(331));var b=Kt;if(Kt|=4,Bm(u.current),_m(u,u.current,g,n),Kt=b,Jr(0,!1),ne&&typeof ne.onPostCommitFiberRoot=="function")try{ne.onPostCommitFiberRoot(ce,u)}catch{}return!0}finally{Z.p=s,C.T=l,Wm(t,e)}}function Pm(t,e,n){e=dn(n,e),e=ju(t.stateNode,e,2),t=ga(t,e,2),t!==null&&(re(t,2),Bn(t))}function ee(t,e,n){if(t.tag===3)Pm(t,t,n);else for(;e!==null;){if(e.tag===3){Pm(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ra===null||!Ra.has(l))){t=dn(n,t),n=am(2),l=ga(e,n,2),l!==null&&(lm(n,l,e,t),re(l,2),Bn(l));break}}e=e.return}}function uc(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new gb;var s=new Set;l.set(e,s)}else s=l.get(e),s===void 0&&(s=new Set,l.set(e,s));s.has(n)||(Pu=!0,s.add(n),t=Sb.bind(null,t,e,n),e.then(t,t))}function Sb(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,le===t&&(Ut&n)===n&&(de===4||de===3&&(Ut&62914560)===Ut&&300>qt()-nc?(Kt&2)===0&&Xl(t,0):tc|=n,Yl===Ut&&(Yl=0)),Bn(t)}function tg(t,e){e===0&&(e=dl()),t=Al(t,e),t!==null&&(re(t,e),Bn(t))}function Eb(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),tg(t,n)}function xb(t,e){var n=0;switch(t.tag){case 13:var l=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(e),tg(t,n)}function wb(t,e){return Dt(t,e)}var So=null,Zl=null,cc=!1,Eo=!1,fc=!1,al=0;function Bn(t){t!==Zl&&t.next===null&&(Zl===null?So=Zl=t:Zl=Zl.next=t),Eo=!0,cc||(cc=!0,Tb())}function Jr(t,e){if(!fc&&Eo){fc=!0;do for(var n=!1,l=So;l!==null;){if(t!==0){var s=l.pendingLanes;if(s===0)var u=0;else{var g=l.suspendedLanes,b=l.pingedLanes;u=(1<<31-te(42|t)+1)-1,u&=s&~(g&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,lg(l,u))}else u=Ut,u=Nn(l,l===le?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Vn(l,u)||(n=!0,lg(l,u));l=l.next}while(n);fc=!1}}function Rb(){eg()}function eg(){Eo=cc=!1;var t=0;al!==0&&(zb()&&(t=al),al=0);for(var e=qt(),n=null,l=So;l!==null;){var s=l.next,u=ng(l,e);u===0?(l.next=null,n===null?So=s:n.next=s,s===null&&(Zl=n)):(n=l,(t!==0||(u&3)!==0)&&(Eo=!0)),l=s}Jr(t)}function ng(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,s=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var g=31-te(u),b=1<<g,E=s[g];E===-1?((b&n)===0||(b&l)!==0)&&(s[g]=ua(b,e)):E<=e&&(t.expiredLanes|=b),u&=~b}if(e=le,n=Ut,n=Nn(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(Jt===2||Jt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&xt(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Vn(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&xt(l),Yt(n)){case 2:case 8:n=Zt;break;case 32:n=me;break;case 268435456:n=ke;break;default:n=me}return l=ag.bind(null,t),n=Dt(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&xt(l),t.callbackPriority=2,t.callbackNode=null,2}function ag(t,e){if(Ue!==0&&Ue!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(bo()&&t.callbackNode!==n)return null;var l=Ut;return l=Nn(t,t===le?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(km(t,l,e),ng(t,qt()),t.callbackNode!=null&&t.callbackNode===n?ag.bind(null,t):null)}function lg(t,e){if(bo())return null;km(t,e,!0)}function Tb(){Bb(function(){(Kt&6)!==0?Dt(zt,Rb):eg()})}function dc(){return al===0&&(al=tn()),al}function rg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Mi(""+t)}function ig(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Ab(t,e,n,l,s){if(e==="submit"&&n&&n.stateNode===s){var u=rg((s[Nt]||null).action),g=l.submitter;g&&(e=(e=g[Nt]||null)?rg(e.formAction):g.getAttribute("formAction"),e!==null&&(u=e,g=null));var b=new Bi("action","action",null,l,s);t.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(al!==0){var E=g?ig(s,g):new FormData(s);_u(n,{pending:!0,data:E,method:s.method,action:u},null,E)}}else typeof u=="function"&&(b.preventDefault(),E=g?ig(s,g):new FormData(s),_u(n,{pending:!0,data:E,method:s.method,action:u},u,E))},currentTarget:s}]})}}for(var hc=0;hc<Ws.length;hc++){var mc=Ws[hc],Ob=mc.toLowerCase(),Db=mc[0].toUpperCase()+mc.slice(1);wn(Ob,"on"+Db)}wn(kd,"onAnimationEnd"),wn(qd,"onAnimationIteration"),wn(Yd,"onAnimationStart"),wn("dblclick","onDoubleClick"),wn("focusin","onFocus"),wn("focusout","onBlur"),wn(Q0,"onTransitionRun"),wn(Z0,"onTransitionStart"),wn(K0,"onTransitionCancel"),wn(Vd,"onTransitionEnd"),vl("onMouseEnter",["mouseout","mouseover"]),vl("onMouseLeave",["mouseout","mouseover"]),vl("onPointerEnter",["pointerout","pointerover"]),vl("onPointerLeave",["pointerout","pointerover"]),Ya("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ya("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ya("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ya("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ya("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ya("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fr="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(" "),Cb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fr));function og(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],s=l.event;l=l.listeners;t:{var u=void 0;if(e)for(var g=l.length-1;0<=g;g--){var b=l[g],E=b.instance,z=b.currentTarget;if(b=b.listener,E!==u&&s.isPropagationStopped())break t;u=b,s.currentTarget=z;try{u(s)}catch(V){oo(V)}s.currentTarget=null,u=E}else for(g=0;g<l.length;g++){if(b=l[g],E=b.instance,z=b.currentTarget,b=b.listener,E!==u&&s.isPropagationStopped())break t;u=b,s.currentTarget=z;try{u(s)}catch(V){oo(V)}s.currentTarget=null,u=E}}}}function _t(t,e){var n=e[un];n===void 0&&(n=e[un]=new Set);var l=t+"__bubble";n.has(l)||(sg(e,t,2,!1),n.add(l))}function gc(t,e,n){var l=0;e&&(l|=4),sg(n,t,l,e)}var xo="_reactListening"+Math.random().toString(36).slice(2);function vc(t){if(!t[xo]){t[xo]=!0,ed.forEach(function(n){n!=="selectionchange"&&(Cb.has(n)||gc(n,!1,t),gc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[xo]||(e[xo]=!0,gc("selectionchange",!1,e))}}function sg(t,e,n,l){switch(_g(e)){case 2:var s=nS;break;case 8:s=aS;break;default:s=Nc}n=s.bind(null,e,n,t),s=void 0,!Hs||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),l?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function pc(t,e,n,l,s){var u=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var b=l.stateNode.containerInfo;if(b===s)break;if(g===4)for(g=l.return;g!==null;){var E=g.tag;if((E===3||E===4)&&g.stateNode.containerInfo===s)return;g=g.return}for(;b!==null;){if(g=hl(b),g===null)return;if(E=g.tag,E===5||E===6||E===26||E===27){l=u=g;continue t}b=b.parentNode}}l=l.return}gd(function(){var z=u,V=Ls(n),K=[];t:{var U=Gd.get(t);if(U!==void 0){var B=Bi,bt=t;switch(t){case"keypress":if(zi(n)===0)break t;case"keydown":case"keyup":B=w0;break;case"focusin":bt="focus",B=Vs;break;case"focusout":bt="blur",B=Vs;break;case"beforeblur":case"afterblur":B=Vs;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=yd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=f0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=A0;break;case kd:case qd:case Yd:B=m0;break;case Vd:B=D0;break;case"scroll":case"scrollend":B=u0;break;case"wheel":B=N0;break;case"copy":case"cut":case"paste":B=v0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Sd;break;case"toggle":case"beforetoggle":B=_0}var vt=(e&4)!==0,It=!vt&&(t==="scroll"||t==="scrollend"),N=vt?U!==null?U+"Capture":null:U;vt=[];for(var O=z,_;O!==null;){var X=O;if(_=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||_===null||N===null||(X=mr(O,N),X!=null&&vt.push($r(O,X,_))),It)break;O=O.return}0<vt.length&&(U=new B(U,bt,null,n,V),K.push({event:U,listeners:vt}))}}if((e&7)===0){t:{if(U=t==="mouseover"||t==="pointerover",B=t==="mouseout"||t==="pointerout",U&&n!==Bs&&(bt=n.relatedTarget||n.fromElement)&&(hl(bt)||bt[Ft]))break t;if((B||U)&&(U=V.window===V?V:(U=V.ownerDocument)?U.defaultView||U.parentWindow:window,B?(bt=n.relatedTarget||n.toElement,B=z,bt=bt?hl(bt):null,bt!==null&&(It=f(bt),vt=bt.tag,bt!==It||vt!==5&&vt!==27&&vt!==6)&&(bt=null)):(B=null,bt=z),B!==bt)){if(vt=yd,X="onMouseLeave",N="onMouseEnter",O="mouse",(t==="pointerout"||t==="pointerover")&&(vt=Sd,X="onPointerLeave",N="onPointerEnter",O="pointer"),It=B==null?U:hr(B),_=bt==null?U:hr(bt),U=new vt(X,O+"leave",B,n,V),U.target=It,U.relatedTarget=_,X=null,hl(V)===z&&(vt=new vt(N,O+"enter",bt,n,V),vt.target=_,vt.relatedTarget=It,X=vt),It=X,B&&bt)e:{for(vt=B,N=bt,O=0,_=vt;_;_=Kl(_))O++;for(_=0,X=N;X;X=Kl(X))_++;for(;0<O-_;)vt=Kl(vt),O--;for(;0<_-O;)N=Kl(N),_--;for(;O--;){if(vt===N||N!==null&&vt===N.alternate)break e;vt=Kl(vt),N=Kl(N)}vt=null}else vt=null;B!==null&&ug(K,U,B,vt,!1),bt!==null&&It!==null&&ug(K,It,bt,vt,!0)}}t:{if(U=z?hr(z):window,B=U.nodeName&&U.nodeName.toLowerCase(),B==="select"||B==="input"&&U.type==="file")var rt=Dd;else if(Ad(U))if(Cd)rt=V0;else{rt=q0;var Ct=k0}else B=U.nodeName,!B||B.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?z&&Us(z.elementType)&&(rt=Dd):rt=Y0;if(rt&&(rt=rt(t,z))){Od(K,rt,n,V);break t}Ct&&Ct(t,U,z),t==="focusout"&&z&&U.type==="number"&&z.memoizedProps.value!=null&&zs(U,"number",U.value)}switch(Ct=z?hr(z):window,t){case"focusin":(Ad(Ct)||Ct.contentEditable==="true")&&(wl=Ct,Js=z,xr=null);break;case"focusout":xr=Js=wl=null;break;case"mousedown":Fs=!0;break;case"contextmenu":case"mouseup":case"dragend":Fs=!1,jd(K,n,V);break;case"selectionchange":if(X0)break;case"keydown":case"keyup":jd(K,n,V)}var dt;if(Xs)t:{switch(t){case"compositionstart":var pt="onCompositionStart";break t;case"compositionend":pt="onCompositionEnd";break t;case"compositionupdate":pt="onCompositionUpdate";break t}pt=void 0}else xl?Rd(t,n)&&(pt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(pt="onCompositionStart");pt&&(Ed&&n.locale!=="ko"&&(xl||pt!=="onCompositionStart"?pt==="onCompositionEnd"&&xl&&(dt=vd()):(fa=V,ks="value"in fa?fa.value:fa.textContent,xl=!0)),Ct=wo(z,pt),0<Ct.length&&(pt=new bd(pt,t,null,n,V),K.push({event:pt,listeners:Ct}),dt?pt.data=dt:(dt=Td(n),dt!==null&&(pt.data=dt)))),(dt=U0?B0(t,n):L0(t,n))&&(pt=wo(z,"onBeforeInput"),0<pt.length&&(Ct=new bd("onBeforeInput","beforeinput",null,n,V),K.push({event:Ct,listeners:pt}),Ct.data=dt)),Ab(K,t,z,n,V)}og(K,e)})}function $r(t,e,n){return{instance:t,listener:e,currentTarget:n}}function wo(t,e){for(var n=e+"Capture",l=[];t!==null;){var s=t,u=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||u===null||(s=mr(t,n),s!=null&&l.unshift($r(t,s,u)),s=mr(t,e),s!=null&&l.push($r(t,s,u))),t.tag===3)return l;t=t.return}return[]}function Kl(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ug(t,e,n,l,s){for(var u=e._reactName,g=[];n!==null&&n!==l;){var b=n,E=b.alternate,z=b.stateNode;if(b=b.tag,E!==null&&E===l)break;b!==5&&b!==26&&b!==27||z===null||(E=z,s?(z=mr(n,u),z!=null&&g.unshift($r(n,z,E))):s||(z=mr(n,u),z!=null&&g.push($r(n,z,E)))),n=n.return}g.length!==0&&t.push({event:e,listeners:g})}var Nb=/\r\n?/g,Mb=/\u0000|\uFFFD/g;function cg(t){return(typeof t=="string"?t:""+t).replace(Nb,`
`).replace(Mb,"")}function fg(t,e){return e=cg(e),cg(t)===e}function Ro(){}function Wt(t,e,n,l,s,u){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||bl(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&bl(t,""+l);break;case"className":Di(t,"class",l);break;case"tabIndex":Di(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Di(t,n,l);break;case"style":hd(t,l,u);break;case"data":if(e!=="object"){Di(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Mi(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"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 u=="function"&&(n==="formAction"?(e!=="input"&&Wt(t,e,"name",s.name,s,null),Wt(t,e,"formEncType",s.formEncType,s,null),Wt(t,e,"formMethod",s.formMethod,s,null),Wt(t,e,"formTarget",s.formTarget,s,null)):(Wt(t,e,"encType",s.encType,s,null),Wt(t,e,"method",s.method,s,null),Wt(t,e,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Mi(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=Ro);break;case"onScroll":l!=null&&_t("scroll",t);break;case"onScrollEnd":l!=null&&_t("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=Mi(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":_t("beforetoggle",t),_t("toggle",t),Oi(t,"popover",l);break;case"xlinkActuate":Xn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Xn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Xn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Xn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Xn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Xn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Xn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Xn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Xn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Oi(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=o0.get(n)||n,Oi(t,n,l))}}function yc(t,e,n,l,s,u){switch(n){case"style":hd(t,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof l=="string"?bl(t,l):(typeof l=="number"||typeof l=="bigint")&&bl(t,""+l);break;case"onScroll":l!=null&&_t("scroll",t);break;case"onScrollEnd":l!=null&&_t("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Ro);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nd.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),u=t[Nt]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,s),typeof l=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,s);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Oi(t,n,l)}}}function Be(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_t("error",t),_t("load",t);var l=!1,s=!1,u;for(u in n)if(n.hasOwnProperty(u)){var g=n[u];if(g!=null)switch(u){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Wt(t,e,u,g,n,null)}}s&&Wt(t,e,"srcSet",n.srcSet,n,null),l&&Wt(t,e,"src",n.src,n,null);return;case"input":_t("invalid",t);var b=u=g=s=null,E=null,z=null;for(l in n)if(n.hasOwnProperty(l)){var V=n[l];if(V!=null)switch(l){case"name":s=V;break;case"type":g=V;break;case"checked":E=V;break;case"defaultChecked":z=V;break;case"value":u=V;break;case"defaultValue":b=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,e));break;default:Wt(t,e,l,V,n,null)}}ud(t,u,b,E,z,g,s,!1),Ci(t);return;case"select":_t("invalid",t),l=g=u=null;for(s in n)if(n.hasOwnProperty(s)&&(b=n[s],b!=null))switch(s){case"value":u=b;break;case"defaultValue":g=b;break;case"multiple":l=b;default:Wt(t,e,s,b,n,null)}e=u,n=g,t.multiple=!!l,e!=null?yl(t,!!l,e,!1):n!=null&&yl(t,!!l,n,!0);return;case"textarea":_t("invalid",t),u=s=l=null;for(g in n)if(n.hasOwnProperty(g)&&(b=n[g],b!=null))switch(g){case"value":l=b;break;case"defaultValue":s=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:Wt(t,e,g,b,n,null)}fd(t,l,s,u),Ci(t);return;case"option":for(E in n)if(n.hasOwnProperty(E)&&(l=n[E],l!=null))switch(E){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Wt(t,e,E,l,n,null)}return;case"dialog":_t("beforetoggle",t),_t("toggle",t),_t("cancel",t),_t("close",t);break;case"iframe":case"object":_t("load",t);break;case"video":case"audio":for(l=0;l<Fr.length;l++)_t(Fr[l],t);break;case"image":_t("error",t),_t("load",t);break;case"details":_t("toggle",t);break;case"embed":case"source":case"link":_t("error",t),_t("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in n)if(n.hasOwnProperty(z)&&(l=n[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Wt(t,e,z,l,n,null)}return;default:if(Us(e)){for(V in n)n.hasOwnProperty(V)&&(l=n[V],l!==void 0&&yc(t,e,V,l,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(l=n[b],l!=null&&Wt(t,e,b,l,n,null))}function _b(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,u=null,g=null,b=null,E=null,z=null,V=null;for(B in n){var K=n[B];if(n.hasOwnProperty(B)&&K!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":E=K;default:l.hasOwnProperty(B)||Wt(t,e,B,null,l,K)}}for(var U in l){var B=l[U];if(K=n[U],l.hasOwnProperty(U)&&(B!=null||K!=null))switch(U){case"type":u=B;break;case"name":s=B;break;case"checked":z=B;break;case"defaultChecked":V=B;break;case"value":g=B;break;case"defaultValue":b=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,e));break;default:B!==K&&Wt(t,e,U,B,l,K)}}_s(t,g,b,E,z,V,u,s);return;case"select":B=g=b=U=null;for(u in n)if(E=n[u],n.hasOwnProperty(u)&&E!=null)switch(u){case"value":break;case"multiple":B=E;default:l.hasOwnProperty(u)||Wt(t,e,u,null,l,E)}for(s in l)if(u=l[s],E=n[s],l.hasOwnProperty(s)&&(u!=null||E!=null))switch(s){case"value":U=u;break;case"defaultValue":b=u;break;case"multiple":g=u;default:u!==E&&Wt(t,e,s,u,l,E)}e=b,n=g,l=B,U!=null?yl(t,!!n,U,!1):!!l!=!!n&&(e!=null?yl(t,!!n,e,!0):yl(t,!!n,n?[]:"",!1));return;case"textarea":B=U=null;for(b in n)if(s=n[b],n.hasOwnProperty(b)&&s!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Wt(t,e,b,null,l,s)}for(g in l)if(s=l[g],u=n[g],l.hasOwnProperty(g)&&(s!=null||u!=null))switch(g){case"value":U=s;break;case"defaultValue":B=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:s!==u&&Wt(t,e,g,s,l,u)}cd(t,U,B);return;case"option":for(var bt in n)if(U=n[bt],n.hasOwnProperty(bt)&&U!=null&&!l.hasOwnProperty(bt))switch(bt){case"selected":t.selected=!1;break;default:Wt(t,e,bt,null,l,U)}for(E in l)if(U=l[E],B=n[E],l.hasOwnProperty(E)&&U!==B&&(U!=null||B!=null))switch(E){case"selected":t.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Wt(t,e,E,U,l,B)}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 vt in n)U=n[vt],n.hasOwnProperty(vt)&&U!=null&&!l.hasOwnProperty(vt)&&Wt(t,e,vt,null,l,U);for(z in l)if(U=l[z],B=n[z],l.hasOwnProperty(z)&&U!==B&&(U!=null||B!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,e));break;default:Wt(t,e,z,U,l,B)}return;default:if(Us(e)){for(var It in n)U=n[It],n.hasOwnProperty(It)&&U!==void 0&&!l.hasOwnProperty(It)&&yc(t,e,It,void 0,l,U);for(V in l)U=l[V],B=n[V],!l.hasOwnProperty(V)||U===B||U===void 0&&B===void 0||yc(t,e,V,U,l,B);return}}for(var N in n)U=n[N],n.hasOwnProperty(N)&&U!=null&&!l.hasOwnProperty(N)&&Wt(t,e,N,null,l,U);for(K in l)U=l[K],B=n[K],!l.hasOwnProperty(K)||U===B||U==null&&B==null||Wt(t,e,K,U,l,B)}var bc=null,Sc=null;function To(t){return t.nodeType===9?t:t.ownerDocument}function dg(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function hg(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Ec(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var xc=null;function zb(){var t=window.event;return t&&t.type==="popstate"?t===xc?!1:(xc=t,!0):(xc=null,!1)}var mg=typeof setTimeout=="function"?setTimeout:void 0,Ub=typeof clearTimeout=="function"?clearTimeout:void 0,gg=typeof Promise=="function"?Promise:void 0,Bb=typeof queueMicrotask=="function"?queueMicrotask:typeof gg<"u"?function(t){return gg.resolve(null).then(t).catch(Lb)}:mg;function Lb(t){setTimeout(function(){throw t})}function Oa(t){return t==="head"}function vg(t,e){var n=e,l=0,s=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"){if(0<l&&8>l){n=l;var g=t.ownerDocument;if(n&1&&Wr(g.documentElement),n&2&&Wr(g.body),n&4)for(n=g.head,Wr(n),g=n.firstChild;g;){var b=g.nextSibling,E=g.nodeName;g[Gn]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&g.rel.toLowerCase()==="stylesheet"||n.removeChild(g),g=b}}if(s===0){t.removeChild(u),ri(e);return}s--}else n==="$"||n==="$?"||n==="$!"?s++:l=n.charCodeAt(0)-48;else l=0;n=u}while(n);ri(e)}function wc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":wc(n),Ds(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function jb(t,e,n,l){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Gn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==s.rel||t.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||t.getAttribute("title")!==(s.title==null?null:s.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Tn(t.nextSibling),t===null)break}return null}function Hb(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Tn(t.nextSibling),t===null))return null;return t}function Rc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function kb(t,e){var n=t.ownerDocument;if(t.data!=="$?"||n.readyState==="complete")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Tn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="F!"||e==="F")break;if(e==="/$")return null}}return t}var Tc=null;function pg(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}function yg(t,e,n){switch(e=To(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Wr(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ds(t)}var yn=new Map,bg=new Set;function Ao(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var la=Z.d;Z.d={f:qb,r:Yb,D:Vb,C:Gb,L:Xb,m:Qb,X:Kb,S:Zb,M:Jb};function qb(){var t=la.f(),e=po();return t||e}function Yb(t){var e=ml(t);e!==null&&e.tag===5&&e.type==="form"?kh(e):la.r(t)}var Jl=typeof document>"u"?null:document;function Sg(t,e,n){var l=Jl;if(l&&typeof e=="string"&&e){var s=fn(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),bg.has(s)||(bg.add(s),t={rel:t,crossOrigin:n,href:e},l.querySelector(s)===null&&(e=l.createElement("link"),Be(e,"link",t),De(e),l.head.appendChild(e)))}}function Vb(t){la.D(t),Sg("dns-prefetch",t,null)}function Gb(t,e){la.C(t,e),Sg("preconnect",t,e)}function Xb(t,e,n){la.L(t,e,n);var l=Jl;if(l&&t&&e){var s='link[rel="preload"][as="'+fn(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+fn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+fn(n.imageSizes)+'"]')):s+='[href="'+fn(t)+'"]';var u=s;switch(e){case"style":u=Fl(t);break;case"script":u=$l(t)}yn.has(u)||(t=y({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),yn.set(u,t),l.querySelector(s)!==null||e==="style"&&l.querySelector(Ir(u))||e==="script"&&l.querySelector(Pr(u))||(e=l.createElement("link"),Be(e,"link",t),De(e),l.head.appendChild(e)))}}function Qb(t,e){la.m(t,e);var n=Jl;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+fn(l)+'"][href="'+fn(t)+'"]',u=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=$l(t)}if(!yn.has(u)&&(t=y({rel:"modulepreload",href:t},e),yn.set(u,t),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Pr(u)))return}l=n.createElement("link"),Be(l,"link",t),De(l),n.head.appendChild(l)}}}function Zb(t,e,n){la.S(t,e,n);var l=Jl;if(l&&t){var s=gl(l).hoistableStyles,u=Fl(t);e=e||"default";var g=s.get(u);if(!g){var b={loading:0,preload:null};if(g=l.querySelector(Ir(u)))b.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":e},n),(n=yn.get(u))&&Ac(t,n);var E=g=l.createElement("link");De(E),Be(E,"link",t),E._p=new Promise(function(z,V){E.onload=z,E.onerror=V}),E.addEventListener("load",function(){b.loading|=1}),E.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Oo(g,e,l)}g={type:"stylesheet",instance:g,count:1,state:b},s.set(u,g)}}}function Kb(t,e){la.X(t,e);var n=Jl;if(n&&t){var l=gl(n).hoistableScripts,s=$l(t),u=l.get(s);u||(u=n.querySelector(Pr(s)),u||(t=y({src:t,async:!0},e),(e=yn.get(s))&&Oc(t,e),u=n.createElement("script"),De(u),Be(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(s,u))}}function Jb(t,e){la.M(t,e);var n=Jl;if(n&&t){var l=gl(n).hoistableScripts,s=$l(t),u=l.get(s);u||(u=n.querySelector(Pr(s)),u||(t=y({src:t,async:!0,type:"module"},e),(e=yn.get(s))&&Oc(t,e),u=n.createElement("script"),De(u),Be(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(s,u))}}function Eg(t,e,n,l){var s=(s=nt.current)?Ao(s):null;if(!s)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Fl(n.href),n=gl(s).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Fl(n.href);var u=gl(s).hoistableStyles,g=u.get(t);if(g||(s=s.ownerDocument||s,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,g),(u=s.querySelector(Ir(t)))&&!u._p&&(g.instance=u,g.state.loading=5),yn.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},yn.set(t,n),u||Fb(s,t,n,g.state))),e&&l===null)throw Error(o(528,""));return g}if(e&&l!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=$l(n),n=gl(s).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Fl(t){return'href="'+fn(t)+'"'}function Ir(t){return'link[rel="stylesheet"]['+t+"]"}function xg(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function Fb(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),Be(e,"link",n),De(e),t.head.appendChild(e))}function $l(t){return'[src="'+fn(t)+'"]'}function Pr(t){return"script[async]"+t}function wg(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+fn(n.href)+'"]');if(l)return e.instance=l,De(l),l;var s=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),De(l),Be(l,"style",s),Oo(l,n.precedence,t),e.instance=l;case"stylesheet":s=Fl(n.href);var u=t.querySelector(Ir(s));if(u)return e.state.loading|=4,e.instance=u,De(u),u;l=xg(n),(s=yn.get(s))&&Ac(l,s),u=(t.ownerDocument||t).createElement("link"),De(u);var g=u;return g._p=new Promise(function(b,E){g.onload=b,g.onerror=E}),Be(u,"link",l),e.state.loading|=4,Oo(u,n.precedence,t),e.instance=u;case"script":return u=$l(n.src),(s=t.querySelector(Pr(u)))?(e.instance=s,De(s),s):(l=n,(s=yn.get(u))&&(l=y({},n),Oc(l,s)),t=t.ownerDocument||t,s=t.createElement("script"),De(s),Be(s,"link",l),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Oo(l,n.precedence,t));return e.instance}function Oo(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,u=s,g=0;g<l.length;g++){var b=l[g];if(b.dataset.precedence===e)u=b;else if(u!==s)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Ac(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Oc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Do=null;function Rg(t,e,n){if(Do===null){var l=new Map,s=Do=new Map;s.set(n,l)}else s=Do,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var u=n[s];if(!(u[Gn]||u[Qt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var g=u.getAttribute(e)||"";g=t+g;var b=l.get(g);b?b.push(u):l.set(g,[u])}}return l}function Tg(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function $b(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Ag(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var ti=null;function Wb(){}function Ib(t,e,n){if(ti===null)throw Error(o(475));var l=ti;if(e.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var s=Fl(n.href),u=t.querySelector(Ir(s));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Co.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=u,De(u);return}u=t.ownerDocument||t,n=xg(n),(s=yn.get(s))&&Ac(n,s),u=u.createElement("link"),De(u);var g=u;g._p=new Promise(function(b,E){g.onload=b,g.onerror=E}),Be(u,"link",n),e.instance=u}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=Co.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}function Pb(){if(ti===null)throw Error(o(475));var t=ti;return t.stylesheets&&t.count===0&&Dc(t,t.stylesheets),0<t.count?function(e){var n=setTimeout(function(){if(t.stylesheets&&Dc(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(n)}}:null}function Co(){if(this.count--,this.count===0){if(this.stylesheets)Dc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var No=null;function Dc(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,No=new Map,e.forEach(tS,t),No=null,Co.call(t))}function tS(t,e){if(!(e.state.loading&4)){var n=No.get(t);if(n)var l=n.get(null);else{n=new Map,No.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<s.length;u++){var g=s[u];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),l=g)}l&&n.set(null,l)}s=e.instance,g=s.getAttribute("data-precedence"),u=n.get(g)||l,u===l&&n.set(null,s),n.set(g,s),this.count++,l=Co.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),u?u.parentNode.insertBefore(s,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var ei={$$typeof:Q,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function eS(t,e,n,l,s,u,g,b){this.tag=1,this.containerInfo=t,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=qa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qa(0),this.hiddenUpdates=qa(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=u,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Og(t,e,n,l,s,u,g,b,E,z,V,K){return t=new eS(t,e,n,g,b,E,z,K),e=1,u===!0&&(e|=24),u=nn(3,null,null,e),t.current=u,u.stateNode=t,e=uu(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:e},hu(u),t}function Dg(t){return t?(t=Ol,t):Ol}function Cg(t,e,n,l,s,u){s=Dg(s),l.context===null?l.context=s:l.pendingContext=s,l=ma(e),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=ga(t,l,e),n!==null&&(sn(n,t,e),Mr(n,t,e))}function Ng(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Cc(t,e){Ng(t,e),(t=t.alternate)&&Ng(t,e)}function Mg(t){if(t.tag===13){var e=Al(t,67108864);e!==null&&sn(e,t,67108864),Cc(t,67108864)}}var Mo=!0;function nS(t,e,n,l){var s=C.T;C.T=null;var u=Z.p;try{Z.p=2,Nc(t,e,n,l)}finally{Z.p=u,C.T=s}}function aS(t,e,n,l){var s=C.T;C.T=null;var u=Z.p;try{Z.p=8,Nc(t,e,n,l)}finally{Z.p=u,C.T=s}}function Nc(t,e,n,l){if(Mo){var s=Mc(l);if(s===null)pc(t,e,l,_o,n),zg(t,l);else if(rS(s,t,e,n,l))l.stopPropagation();else if(zg(t,l),e&4&&-1<lS.indexOf(t)){for(;s!==null;){var u=ml(s);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var g=Qe(u.pendingLanes);if(g!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;g;){var E=1<<31-te(g);b.entanglements[1]|=E,g&=~E}Bn(u),(Kt&6)===0&&(go=qt()+500,Jr(0))}}break;case 13:b=Al(u,2),b!==null&&sn(b,u,2),po(),Cc(u,2)}if(u=Mc(l),u===null&&pc(t,e,l,_o,n),u===s)break;s=u}s!==null&&l.stopPropagation()}else pc(t,e,l,null,n)}}function Mc(t){return t=Ls(t),_c(t)}var _o=null;function _c(t){if(_o=null,t=hl(t),t!==null){var e=f(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=d(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return _o=t,null}function _g(t){switch(t){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(Xe()){case zt:return 2;case Zt:return 8;case me:case se:return 32;case ke:return 268435456;default:return 32}default:return 32}}var zc=!1,Da=null,Ca=null,Na=null,ni=new Map,ai=new Map,Ma=[],lS="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 zg(t,e){switch(t){case"focusin":case"focusout":Da=null;break;case"dragenter":case"dragleave":Ca=null;break;case"mouseover":case"mouseout":Na=null;break;case"pointerover":case"pointerout":ni.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(e.pointerId)}}function li(t,e,n,l,s,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[s]},e!==null&&(e=ml(e),e!==null&&Mg(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function rS(t,e,n,l,s){switch(e){case"focusin":return Da=li(Da,t,e,n,l,s),!0;case"dragenter":return Ca=li(Ca,t,e,n,l,s),!0;case"mouseover":return Na=li(Na,t,e,n,l,s),!0;case"pointerover":var u=s.pointerId;return ni.set(u,li(ni.get(u)||null,t,e,n,l,s)),!0;case"gotpointercapture":return u=s.pointerId,ai.set(u,li(ai.get(u)||null,t,e,n,l,s)),!0}return!1}function Ug(t){var e=hl(t.target);if(e!==null){var n=f(e);if(n!==null){if(e=n.tag,e===13){if(e=d(n),e!==null){t.blockedOn=e,ae(t.priority,function(){if(n.tag===13){var l=on();l=Lt(l);var s=Al(n,l);s!==null&&sn(s,n,l),Cc(n,l)}});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function zo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Mc(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Bs=l,n.target.dispatchEvent(l),Bs=null}else return e=ml(n),e!==null&&Mg(e),t.blockedOn=n,!1;e.shift()}return!0}function Bg(t,e,n){zo(t)&&n.delete(e)}function iS(){zc=!1,Da!==null&&zo(Da)&&(Da=null),Ca!==null&&zo(Ca)&&(Ca=null),Na!==null&&zo(Na)&&(Na=null),ni.forEach(Bg),ai.forEach(Bg)}function Uo(t,e){t.blockedOn===e&&(t.blockedOn=null,zc||(zc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,iS)))}var Bo=null;function Lg(t){Bo!==t&&(Bo=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Bo===t&&(Bo=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],s=t[e+2];if(typeof l!="function"){if(_c(l||n)===null)continue;break}var u=ml(n);u!==null&&(t.splice(e,3),e-=3,_u(u,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function ri(t){function e(E){return Uo(E,t)}Da!==null&&Uo(Da,t),Ca!==null&&Uo(Ca,t),Na!==null&&Uo(Na,t),ni.forEach(e),ai.forEach(e);for(var n=0;n<Ma.length;n++){var l=Ma[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Ma.length&&(n=Ma[0],n.blockedOn===null);)Ug(n),n.blockedOn===null&&Ma.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],u=n[l+1],g=s[Nt]||null;if(typeof u=="function")g||Lg(n);else if(g){var b=null;if(u&&u.hasAttribute("formAction")){if(s=u,g=u[Nt]||null)b=g.formAction;else if(_c(s)!==null)continue}else b=g.action;typeof b=="function"?n[l+1]=b:(n.splice(l,3),l-=3),Lg(n)}}}function Uc(t){this._internalRoot=t}Lo.prototype.render=Uc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,l=on();Cg(n,l,t,e,null,null)},Lo.prototype.unmount=Uc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Cg(t.current,2,null,t,null,null),po(),e[Ft]=null}};function Lo(t){this._internalRoot=t}Lo.prototype.unstable_scheduleHydration=function(t){if(t){var e=Oe();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ma.length&&e!==0&&e<Ma[n].priority;n++);Ma.splice(n,0,t),n===0&&Ug(t)}};var jg=r.version;if(jg!=="19.1.0")throw Error(o(527,jg,"19.1.0"));Z.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=p(e),t=t!==null?m(t):null,t=t===null?null:t.stateNode,t};var oS={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var jo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jo.isDisabled&&jo.supportsFiber)try{ce=jo.inject(oS),ne=jo}catch{}}return oi.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,l="",s=Ph,u=tm,g=em,b=null;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(g=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(b=e.unstable_transitionCallbacks)),e=Og(t,1,!1,null,null,n,l,s,u,g,b,null),t[Ft]=e.current,vc(t),new Uc(e)},oi.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var l=!1,s="",u=Ph,g=tm,b=em,E=null,z=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(E=n.unstable_transitionCallbacks),n.formState!==void 0&&(z=n.formState)),e=Og(t,1,!0,e,n??null,l,s,u,g,b,E,z),e.context=Dg(null),n=e.current,l=on(),l=Lt(l),s=ma(l),s.callback=null,ga(n,s,l),n=l,e.current.lanes=n,re(e,n),Bn(e),t[Ft]=e.current,vc(t),new Lo(e)},oi.version="19.1.0",oi}var Kg;function pS(){if(Kg)return jc.exports;Kg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),jc.exports=vS(),jc.exports}var yS=pS(),rl=np();const ap=tp(rl);function bS(){for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return S.useMemo(()=>o=>{r.forEach(c=>c(o))},r)}const hs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ir(a){const r=Object.prototype.toString.call(a);return r==="[object Window]"||r==="[object global]"}function jf(a){return"nodeType"in a}function Ge(a){var r,i;return a?ir(a)?a:jf(a)&&(r=(i=a.ownerDocument)==null?void 0:i.defaultView)!=null?r:window:window}function Hf(a){const{Document:r}=Ge(a);return a instanceof r}function Si(a){return ir(a)?!1:a instanceof Ge(a).HTMLElement}function lp(a){return a instanceof Ge(a).SVGElement}function or(a){return a?ir(a)?a.document:jf(a)?Hf(a)?a:Si(a)||lp(a)?a.ownerDocument:document:document:document}const An=hs?S.useLayoutEffect:S.useEffect;function ms(a){const r=S.useRef(a);return An(()=>{r.current=a}),S.useCallback(function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];return r.current==null?void 0:r.current(...o)},[])}function SS(){const a=S.useRef(null),r=S.useCallback((o,c)=>{a.current=setInterval(o,c)},[]),i=S.useCallback(()=>{a.current!==null&&(clearInterval(a.current),a.current=null)},[]);return[r,i]}function mi(a,r){r===void 0&&(r=[a]);const i=S.useRef(a);return An(()=>{i.current!==a&&(i.current=a)},r),i}function Ei(a,r){const i=S.useRef();return S.useMemo(()=>{const o=a(i.current);return i.current=o,o},[...r])}function as(a){const r=ms(a),i=S.useRef(null),o=S.useCallback(c=>{c!==i.current&&(r==null||r(c,i.current)),i.current=c},[]);return[i,o]}function ls(a){const r=S.useRef();return S.useEffect(()=>{r.current=a},[a]),r.current}let Yc={};function xi(a,r){return S.useMemo(()=>{if(r)return r;const i=Yc[a]==null?0:Yc[a]+1;return Yc[a]=i,a+"-"+i},[a,r])}function rp(a){return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),c=1;c<i;c++)o[c-1]=arguments[c];return o.reduce((f,d)=>{const h=Object.entries(d);for(const[p,m]of h){const y=f[p];y!=null&&(f[p]=y+a*m)}return f},{...r})}}const lr=rp(1),rs=rp(-1);function ES(a){return"clientX"in a&&"clientY"in a}function gs(a){if(!a)return!1;const{KeyboardEvent:r}=Ge(a.target);return r&&a instanceof r}function xS(a){if(!a)return!1;const{TouchEvent:r}=Ge(a.target);return r&&a instanceof r}function is(a){if(xS(a)){if(a.touches&&a.touches.length){const{clientX:r,clientY:i}=a.touches[0];return{x:r,y:i}}else if(a.changedTouches&&a.changedTouches.length){const{clientX:r,clientY:i}=a.changedTouches[0];return{x:r,y:i}}}return ES(a)?{x:a.clientX,y:a.clientY}:null}const Ha=Object.freeze({Translate:{toString(a){if(!a)return;const{x:r,y:i}=a;return"translate3d("+(r?Math.round(r):0)+"px, "+(i?Math.round(i):0)+"px, 0)"}},Scale:{toString(a){if(!a)return;const{scaleX:r,scaleY:i}=a;return"scaleX("+r+") scaleY("+i+")"}},Transform:{toString(a){if(a)return[Ha.Translate.toString(a),Ha.Scale.toString(a)].join(" ")}},Transition:{toString(a){let{property:r,duration:i,easing:o}=a;return r+" "+i+"ms "+o}}}),Jg="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function wS(a){return a.matches(Jg)?a:a.querySelector(Jg)}const RS={display:"none"};function TS(a){let{id:r,value:i}=a;return J.createElement("div",{id:r,style:RS},i)}function AS(a){let{id:r,announcement:i,ariaLiveType:o="assertive"}=a;const c={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return J.createElement("div",{id:r,style:c,role:"status","aria-live":o,"aria-atomic":!0},i)}function OS(){const[a,r]=S.useState("");return{announce:S.useCallback(o=>{o!=null&&r(o)},[]),announcement:a}}const ip=S.createContext(null);function DS(a){const r=S.useContext(ip);S.useEffect(()=>{if(!r)throw new Error("useDndMonitor must be used within a children of <DndContext>");return r(a)},[a,r])}function CS(){const[a]=S.useState(()=>new Set),r=S.useCallback(o=>(a.add(o),()=>a.delete(o)),[a]);return[S.useCallback(o=>{let{type:c,event:f}=o;a.forEach(d=>{var h;return(h=d[c])==null?void 0:h.call(d,f)})},[a]),r]}const NS={draggable:`
    To pick up a draggable item, press the space bar.
    While dragging, use the arrow keys to move the item.
    Press space again to drop the item in its new position, or press escape to cancel.
  `},MS={onDragStart(a){let{active:r}=a;return"Picked up draggable item "+r.id+"."},onDragOver(a){let{active:r,over:i}=a;return i?"Draggable item "+r.id+" was moved over droppable area "+i.id+".":"Draggable item "+r.id+" is no longer over a droppable area."},onDragEnd(a){let{active:r,over:i}=a;return i?"Draggable item "+r.id+" was dropped over droppable area "+i.id:"Draggable item "+r.id+" was dropped."},onDragCancel(a){let{active:r}=a;return"Dragging was cancelled. Draggable item "+r.id+" was dropped."}};function _S(a){let{announcements:r=MS,container:i,hiddenTextDescribedById:o,screenReaderInstructions:c=NS}=a;const{announce:f,announcement:d}=OS(),h=xi("DndLiveRegion"),[p,m]=S.useState(!1);if(S.useEffect(()=>{m(!0)},[]),DS(S.useMemo(()=>({onDragStart(v){let{active:w}=v;f(r.onDragStart({active:w}))},onDragMove(v){let{active:w,over:A}=v;r.onDragMove&&f(r.onDragMove({active:w,over:A}))},onDragOver(v){let{active:w,over:A}=v;f(r.onDragOver({active:w,over:A}))},onDragEnd(v){let{active:w,over:A}=v;f(r.onDragEnd({active:w,over:A}))},onDragCancel(v){let{active:w,over:A}=v;f(r.onDragCancel({active:w,over:A}))}}),[f,r])),!p)return null;const y=J.createElement(J.Fragment,null,J.createElement(TS,{id:o,value:c.draggable}),J.createElement(AS,{id:h,announcement:d}));return i?rl.createPortal(y,i):y}var Re;(function(a){a.DragStart="dragStart",a.DragMove="dragMove",a.DragEnd="dragEnd",a.DragCancel="dragCancel",a.DragOver="dragOver",a.RegisterDroppable="registerDroppable",a.SetDroppableDisabled="setDroppableDisabled",a.UnregisterDroppable="unregisterDroppable"})(Re||(Re={}));function os(){}function Fg(a,r){return S.useMemo(()=>({sensor:a,options:r??{}}),[a,r])}function zS(){for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return S.useMemo(()=>[...r].filter(o=>o!=null),[...r])}const On=Object.freeze({x:0,y:0});function US(a,r){return Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2))}function BS(a,r){const i=is(a);if(!i)return"0 0";const o={x:(i.x-r.left)/r.width*100,y:(i.y-r.top)/r.height*100};return o.x+"% "+o.y+"%"}function LS(a,r){let{data:{value:i}}=a,{data:{value:o}}=r;return i-o}function jS(a,r){let{data:{value:i}}=a,{data:{value:o}}=r;return o-i}function HS(a,r){if(!a||a.length===0)return null;const[i]=a;return i[r]}function $g(a,r,i){return r===void 0&&(r=a.left),i===void 0&&(i=a.top),{x:r+a.width*.5,y:i+a.height*.5}}const kS=a=>{let{collisionRect:r,droppableRects:i,droppableContainers:o}=a;const c=$g(r,r.left,r.top),f=[];for(const d of o){const{id:h}=d,p=i.get(h);if(p){const m=US($g(p),c);f.push({id:h,data:{droppableContainer:d,value:m}})}}return f.sort(LS)};function qS(a,r){const i=Math.max(r.top,a.top),o=Math.max(r.left,a.left),c=Math.min(r.left+r.width,a.left+a.width),f=Math.min(r.top+r.height,a.top+a.height),d=c-o,h=f-i;if(o<c&&i<f){const p=r.width*r.height,m=a.width*a.height,y=d*h,v=y/(p+m-y);return Number(v.toFixed(4))}return 0}const YS=a=>{let{collisionRect:r,droppableRects:i,droppableContainers:o}=a;const c=[];for(const f of o){const{id:d}=f,h=i.get(d);if(h){const p=qS(h,r);p>0&&c.push({id:d,data:{droppableContainer:f,value:p}})}}return c.sort(jS)};function VS(a,r,i){return{...a,scaleX:r&&i?r.width/i.width:1,scaleY:r&&i?r.height/i.height:1}}function op(a,r){return a&&r?{x:a.left-r.left,y:a.top-r.top}:On}function GS(a){return function(i){for(var o=arguments.length,c=new Array(o>1?o-1:0),f=1;f<o;f++)c[f-1]=arguments[f];return c.reduce((d,h)=>({...d,top:d.top+a*h.y,bottom:d.bottom+a*h.y,left:d.left+a*h.x,right:d.right+a*h.x}),{...i})}}const XS=GS(1);function sp(a){if(a.startsWith("matrix3d(")){const r=a.slice(9,-1).split(/, /);return{x:+r[12],y:+r[13],scaleX:+r[0],scaleY:+r[5]}}else if(a.startsWith("matrix(")){const r=a.slice(7,-1).split(/, /);return{x:+r[4],y:+r[5],scaleX:+r[0],scaleY:+r[3]}}return null}function QS(a,r,i){const o=sp(r);if(!o)return a;const{scaleX:c,scaleY:f,x:d,y:h}=o,p=a.left-d-(1-c)*parseFloat(i),m=a.top-h-(1-f)*parseFloat(i.slice(i.indexOf(" ")+1)),y=c?a.width/c:a.width,v=f?a.height/f:a.height;return{width:y,height:v,top:m,right:p+y,bottom:m+v,left:p}}const ZS={ignoreTransform:!1};function sr(a,r){r===void 0&&(r=ZS);let i=a.getBoundingClientRect();if(r.ignoreTransform){const{transform:m,transformOrigin:y}=Ge(a).getComputedStyle(a);m&&(i=QS(i,m,y))}const{top:o,left:c,width:f,height:d,bottom:h,right:p}=i;return{top:o,left:c,width:f,height:d,bottom:h,right:p}}function Wg(a){return sr(a,{ignoreTransform:!0})}function KS(a){const r=a.innerWidth,i=a.innerHeight;return{top:0,left:0,right:r,bottom:i,width:r,height:i}}function JS(a,r){return r===void 0&&(r=Ge(a).getComputedStyle(a)),r.position==="fixed"}function FS(a,r){r===void 0&&(r=Ge(a).getComputedStyle(a));const i=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(c=>{const f=r[c];return typeof f=="string"?i.test(f):!1})}function kf(a,r){const i=[];function o(c){if(r!=null&&i.length>=r||!c)return i;if(Hf(c)&&c.scrollingElement!=null&&!i.includes(c.scrollingElement))return i.push(c.scrollingElement),i;if(!Si(c)||lp(c)||i.includes(c))return i;const f=Ge(a).getComputedStyle(c);return c!==a&&FS(c,f)&&i.push(c),JS(c,f)?i:o(c.parentNode)}return a?o(a):i}function up(a){const[r]=kf(a,1);return r??null}function Vc(a){return!hs||!a?null:ir(a)?a:jf(a)?Hf(a)||a===or(a).scrollingElement?window:Si(a)?a:null:null}function cp(a){return ir(a)?a.scrollX:a.scrollLeft}function fp(a){return ir(a)?a.scrollY:a.scrollTop}function mf(a){return{x:cp(a),y:fp(a)}}var _e;(function(a){a[a.Forward=1]="Forward",a[a.Backward=-1]="Backward"})(_e||(_e={}));function dp(a){return!hs||!a?!1:a===document.scrollingElement}function hp(a){const r={x:0,y:0},i=dp(a)?{height:window.innerHeight,width:window.innerWidth}:{height:a.clientHeight,width:a.clientWidth},o={x:a.scrollWidth-i.width,y:a.scrollHeight-i.height},c=a.scrollTop<=r.y,f=a.scrollLeft<=r.x,d=a.scrollTop>=o.y,h=a.scrollLeft>=o.x;return{isTop:c,isLeft:f,isBottom:d,isRight:h,maxScroll:o,minScroll:r}}const $S={x:.2,y:.2};function WS(a,r,i,o,c){let{top:f,left:d,right:h,bottom:p}=i;o===void 0&&(o=10),c===void 0&&(c=$S);const{isTop:m,isBottom:y,isLeft:v,isRight:w}=hp(a),A={x:0,y:0},D={x:0,y:0},x={height:r.height*c.y,width:r.width*c.x};return!m&&f<=r.top+x.height?(A.y=_e.Backward,D.y=o*Math.abs((r.top+x.height-f)/x.height)):!y&&p>=r.bottom-x.height&&(A.y=_e.Forward,D.y=o*Math.abs((r.bottom-x.height-p)/x.height)),!w&&h>=r.right-x.width?(A.x=_e.Forward,D.x=o*Math.abs((r.right-x.width-h)/x.width)):!v&&d<=r.left+x.width&&(A.x=_e.Backward,D.x=o*Math.abs((r.left+x.width-d)/x.width)),{direction:A,speed:D}}function IS(a){if(a===document.scrollingElement){const{innerWidth:f,innerHeight:d}=window;return{top:0,left:0,right:f,bottom:d,width:f,height:d}}const{top:r,left:i,right:o,bottom:c}=a.getBoundingClientRect();return{top:r,left:i,right:o,bottom:c,width:a.clientWidth,height:a.clientHeight}}function mp(a){return a.reduce((r,i)=>lr(r,mf(i)),On)}function PS(a){return a.reduce((r,i)=>r+cp(i),0)}function t1(a){return a.reduce((r,i)=>r+fp(i),0)}function gp(a,r){if(r===void 0&&(r=sr),!a)return;const{top:i,left:o,bottom:c,right:f}=r(a);up(a)&&(c<=0||f<=0||i>=window.innerHeight||o>=window.innerWidth)&&a.scrollIntoView({block:"center",inline:"center"})}const e1=[["x",["left","right"],PS],["y",["top","bottom"],t1]];class qf{constructor(r,i){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=kf(i),c=mp(o);this.rect={...r},this.width=r.width,this.height=r.height;for(const[f,d,h]of e1)for(const p of d)Object.defineProperty(this,p,{get:()=>{const m=h(o),y=c[f]-m;return this.rect[p]+y},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class fi{constructor(r){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(i=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...i)})},this.target=r}add(r,i,o){var c;(c=this.target)==null||c.addEventListener(r,i,o),this.listeners.push([r,i,o])}}function n1(a){const{EventTarget:r}=Ge(a);return a instanceof r?a:or(a)}function Gc(a,r){const i=Math.abs(a.x),o=Math.abs(a.y);return typeof r=="number"?Math.sqrt(i**2+o**2)>r:"x"in r&&"y"in r?i>r.x&&o>r.y:"x"in r?i>r.x:"y"in r?o>r.y:!1}var bn;(function(a){a.Click="click",a.DragStart="dragstart",a.Keydown="keydown",a.ContextMenu="contextmenu",a.Resize="resize",a.SelectionChange="selectionchange",a.VisibilityChange="visibilitychange"})(bn||(bn={}));function Ig(a){a.preventDefault()}function a1(a){a.stopPropagation()}var Gt;(function(a){a.Space="Space",a.Down="ArrowDown",a.Right="ArrowRight",a.Left="ArrowLeft",a.Up="ArrowUp",a.Esc="Escape",a.Enter="Enter",a.Tab="Tab"})(Gt||(Gt={}));const vp={start:[Gt.Space,Gt.Enter],cancel:[Gt.Esc],end:[Gt.Space,Gt.Enter,Gt.Tab]},l1=(a,r)=>{let{currentCoordinates:i}=r;switch(a.code){case Gt.Right:return{...i,x:i.x+25};case Gt.Left:return{...i,x:i.x-25};case Gt.Down:return{...i,y:i.y+25};case Gt.Up:return{...i,y:i.y-25}}};class pp{constructor(r){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=r;const{event:{target:i}}=r;this.props=r,this.listeners=new fi(or(i)),this.windowListeners=new fi(Ge(i)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(bn.Resize,this.handleCancel),this.windowListeners.add(bn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(bn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:r,onStart:i}=this.props,o=r.node.current;o&&gp(o),i(On)}handleKeyDown(r){if(gs(r)){const{active:i,context:o,options:c}=this.props,{keyboardCodes:f=vp,coordinateGetter:d=l1,scrollBehavior:h="smooth"}=c,{code:p}=r;if(f.end.includes(p)){this.handleEnd(r);return}if(f.cancel.includes(p)){this.handleCancel(r);return}const{collisionRect:m}=o.current,y=m?{x:m.left,y:m.top}:On;this.referenceCoordinates||(this.referenceCoordinates=y);const v=d(r,{active:i,context:o.current,currentCoordinates:y});if(v){const w=rs(v,y),A={x:0,y:0},{scrollableAncestors:D}=o.current;for(const x of D){const T=r.code,{isTop:M,isRight:F,isLeft:Q,isBottom:W,maxScroll:j,minScroll:tt}=hp(x),$=IS(x),H={x:Math.min(T===Gt.Right?$.right-$.width/2:$.right,Math.max(T===Gt.Right?$.left:$.left+$.width/2,v.x)),y:Math.min(T===Gt.Down?$.bottom-$.height/2:$.bottom,Math.max(T===Gt.Down?$.top:$.top+$.height/2,v.y))},I=T===Gt.Right&&!F||T===Gt.Left&&!Q,at=T===Gt.Down&&!W||T===Gt.Up&&!M;if(I&&H.x!==v.x){const lt=x.scrollLeft+w.x,st=T===Gt.Right&&lt<=j.x||T===Gt.Left&&lt>=tt.x;if(st&&!w.y){x.scrollTo({left:lt,behavior:h});return}st?A.x=x.scrollLeft-lt:A.x=T===Gt.Right?x.scrollLeft-j.x:x.scrollLeft-tt.x,A.x&&x.scrollBy({left:-A.x,behavior:h});break}else if(at&&H.y!==v.y){const lt=x.scrollTop+w.y,st=T===Gt.Down&&lt<=j.y||T===Gt.Up&&lt>=tt.y;if(st&&!w.x){x.scrollTo({top:lt,behavior:h});return}st?A.y=x.scrollTop-lt:A.y=T===Gt.Down?x.scrollTop-j.y:x.scrollTop-tt.y,A.y&&x.scrollBy({top:-A.y,behavior:h});break}}this.handleMove(r,lr(rs(v,this.referenceCoordinates),A))}}}handleMove(r,i){const{onMove:o}=this.props;r.preventDefault(),o(i)}handleEnd(r){const{onEnd:i}=this.props;r.preventDefault(),this.detach(),i()}handleCancel(r){const{onCancel:i}=this.props;r.preventDefault(),this.detach(),i()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}pp.activators=[{eventName:"onKeyDown",handler:(a,r,i)=>{let{keyboardCodes:o=vp,onActivation:c}=r,{active:f}=i;const{code:d}=a.nativeEvent;if(o.start.includes(d)){const h=f.activatorNode.current;return h&&a.target!==h?!1:(a.preventDefault(),c==null||c({event:a.nativeEvent}),!0)}return!1}}];function Pg(a){return!!(a&&"distance"in a)}function tv(a){return!!(a&&"delay"in a)}class Yf{constructor(r,i,o){var c;o===void 0&&(o=n1(r.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=r,this.events=i;const{event:f}=r,{target:d}=f;this.props=r,this.events=i,this.document=or(d),this.documentListeners=new fi(this.document),this.listeners=new fi(o),this.windowListeners=new fi(Ge(d)),this.initialCoordinates=(c=is(f))!=null?c:On,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:r,props:{options:{activationConstraint:i,bypassActivationConstraint:o}}}=this;if(this.listeners.add(r.move.name,this.handleMove,{passive:!1}),this.listeners.add(r.end.name,this.handleEnd),r.cancel&&this.listeners.add(r.cancel.name,this.handleCancel),this.windowListeners.add(bn.Resize,this.handleCancel),this.windowListeners.add(bn.DragStart,Ig),this.windowListeners.add(bn.VisibilityChange,this.handleCancel),this.windowListeners.add(bn.ContextMenu,Ig),this.documentListeners.add(bn.Keydown,this.handleKeydown),i){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(tv(i)){this.timeoutId=setTimeout(this.handleStart,i.delay),this.handlePending(i);return}if(Pg(i)){this.handlePending(i);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(r,i){const{active:o,onPending:c}=this.props;c(o,r,this.initialCoordinates,i)}handleStart(){const{initialCoordinates:r}=this,{onStart:i}=this.props;r&&(this.activated=!0,this.documentListeners.add(bn.Click,a1,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(bn.SelectionChange,this.removeTextSelection),i(r))}handleMove(r){var i;const{activated:o,initialCoordinates:c,props:f}=this,{onMove:d,options:{activationConstraint:h}}=f;if(!c)return;const p=(i=is(r))!=null?i:On,m=rs(c,p);if(!o&&h){if(Pg(h)){if(h.tolerance!=null&&Gc(m,h.tolerance))return this.handleCancel();if(Gc(m,h.distance))return this.handleStart()}if(tv(h)&&Gc(m,h.tolerance))return this.handleCancel();this.handlePending(h,m);return}r.cancelable&&r.preventDefault(),d(p)}handleEnd(){const{onAbort:r,onEnd:i}=this.props;this.detach(),this.activated||r(this.props.active),i()}handleCancel(){const{onAbort:r,onCancel:i}=this.props;this.detach(),this.activated||r(this.props.active),i()}handleKeydown(r){r.code===Gt.Esc&&this.handleCancel()}removeTextSelection(){var r;(r=this.document.getSelection())==null||r.removeAllRanges()}}const r1={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Vf extends Yf{constructor(r){const{event:i}=r,o=or(i.target);super(r,r1,o)}}Vf.activators=[{eventName:"onPointerDown",handler:(a,r)=>{let{nativeEvent:i}=a,{onActivation:o}=r;return!i.isPrimary||i.button!==0?!1:(o==null||o({event:i}),!0)}}];const i1={move:{name:"mousemove"},end:{name:"mouseup"}};var gf;(function(a){a[a.RightClick=2]="RightClick"})(gf||(gf={}));class o1 extends Yf{constructor(r){super(r,i1,or(r.event.target))}}o1.activators=[{eventName:"onMouseDown",handler:(a,r)=>{let{nativeEvent:i}=a,{onActivation:o}=r;return i.button===gf.RightClick?!1:(o==null||o({event:i}),!0)}}];const Xc={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class yp extends Yf{constructor(r){super(r,Xc)}static setup(){return window.addEventListener(Xc.move.name,r,{capture:!1,passive:!1}),function(){window.removeEventListener(Xc.move.name,r)};function r(){}}}yp.activators=[{eventName:"onTouchStart",handler:(a,r)=>{let{nativeEvent:i}=a,{onActivation:o}=r;const{touches:c}=i;return c.length>1?!1:(o==null||o({event:i}),!0)}}];var di;(function(a){a[a.Pointer=0]="Pointer",a[a.DraggableRect=1]="DraggableRect"})(di||(di={}));var ss;(function(a){a[a.TreeOrder=0]="TreeOrder",a[a.ReversedTreeOrder=1]="ReversedTreeOrder"})(ss||(ss={}));function s1(a){let{acceleration:r,activator:i=di.Pointer,canScroll:o,draggingRect:c,enabled:f,interval:d=5,order:h=ss.TreeOrder,pointerCoordinates:p,scrollableAncestors:m,scrollableAncestorRects:y,delta:v,threshold:w}=a;const A=c1({delta:v,disabled:!f}),[D,x]=SS(),T=S.useRef({x:0,y:0}),M=S.useRef({x:0,y:0}),F=S.useMemo(()=>{switch(i){case di.Pointer:return p?{top:p.y,bottom:p.y,left:p.x,right:p.x}:null;case di.DraggableRect:return c}},[i,c,p]),Q=S.useRef(null),W=S.useCallback(()=>{const tt=Q.current;if(!tt)return;const $=T.current.x*M.current.x,H=T.current.y*M.current.y;tt.scrollBy($,H)},[]),j=S.useMemo(()=>h===ss.TreeOrder?[...m].reverse():m,[h,m]);S.useEffect(()=>{if(!f||!m.length||!F){x();return}for(const tt of j){if((o==null?void 0:o(tt))===!1)continue;const $=m.indexOf(tt),H=y[$];if(!H)continue;const{direction:I,speed:at}=WS(tt,H,F,r,w);for(const lt of["x","y"])A[lt][I[lt]]||(at[lt]=0,I[lt]=0);if(at.x>0||at.y>0){x(),Q.current=tt,D(W,d),T.current=at,M.current=I;return}}T.current={x:0,y:0},M.current={x:0,y:0},x()},[r,W,o,x,f,d,JSON.stringify(F),JSON.stringify(A),D,m,j,y,JSON.stringify(w)])}const u1={x:{[_e.Backward]:!1,[_e.Forward]:!1},y:{[_e.Backward]:!1,[_e.Forward]:!1}};function c1(a){let{delta:r,disabled:i}=a;const o=ls(r);return Ei(c=>{if(i||!o||!c)return u1;const f={x:Math.sign(r.x-o.x),y:Math.sign(r.y-o.y)};return{x:{[_e.Backward]:c.x[_e.Backward]||f.x===-1,[_e.Forward]:c.x[_e.Forward]||f.x===1},y:{[_e.Backward]:c.y[_e.Backward]||f.y===-1,[_e.Forward]:c.y[_e.Forward]||f.y===1}}},[i,r,o])}function f1(a,r){const i=r!=null?a.get(r):void 0,o=i?i.node.current:null;return Ei(c=>{var f;return r==null?null:(f=o??c)!=null?f:null},[o,r])}function d1(a,r){return S.useMemo(()=>a.reduce((i,o)=>{const{sensor:c}=o,f=c.activators.map(d=>({eventName:d.eventName,handler:r(d.handler,o)}));return[...i,...f]},[]),[a,r])}var gi;(function(a){a[a.Always=0]="Always",a[a.BeforeDragging=1]="BeforeDragging",a[a.WhileDragging=2]="WhileDragging"})(gi||(gi={}));var vf;(function(a){a.Optimized="optimized"})(vf||(vf={}));const ev=new Map;function h1(a,r){let{dragging:i,dependencies:o,config:c}=r;const[f,d]=S.useState(null),{frequency:h,measure:p,strategy:m}=c,y=S.useRef(a),v=T(),w=mi(v),A=S.useCallback(function(M){M===void 0&&(M=[]),!w.current&&d(F=>F===null?M:F.concat(M.filter(Q=>!F.includes(Q))))},[w]),D=S.useRef(null),x=Ei(M=>{if(v&&!i)return ev;if(!M||M===ev||y.current!==a||f!=null){const F=new Map;for(let Q of a){if(!Q)continue;if(f&&f.length>0&&!f.includes(Q.id)&&Q.rect.current){F.set(Q.id,Q.rect.current);continue}const W=Q.node.current,j=W?new qf(p(W),W):null;Q.rect.current=j,j&&F.set(Q.id,j)}return F}return M},[a,f,i,v,p]);return S.useEffect(()=>{y.current=a},[a]),S.useEffect(()=>{v||A()},[i,v]),S.useEffect(()=>{f&&f.length>0&&d(null)},[JSON.stringify(f)]),S.useEffect(()=>{v||typeof h!="number"||D.current!==null||(D.current=setTimeout(()=>{A(),D.current=null},h))},[h,v,A,...o]),{droppableRects:x,measureDroppableContainers:A,measuringScheduled:f!=null};function T(){switch(m){case gi.Always:return!1;case gi.BeforeDragging:return i;default:return!i}}}function Gf(a,r){return Ei(i=>a?i||(typeof r=="function"?r(a):a):null,[r,a])}function m1(a,r){return Gf(a,r)}function g1(a){let{callback:r,disabled:i}=a;const o=ms(r),c=S.useMemo(()=>{if(i||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:f}=window;return new f(o)},[o,i]);return S.useEffect(()=>()=>c==null?void 0:c.disconnect(),[c]),c}function vs(a){let{callback:r,disabled:i}=a;const o=ms(r),c=S.useMemo(()=>{if(i||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:f}=window;return new f(o)},[i]);return S.useEffect(()=>()=>c==null?void 0:c.disconnect(),[c]),c}function v1(a){return new qf(sr(a),a)}function nv(a,r,i){r===void 0&&(r=v1);const[o,c]=S.useState(null);function f(){c(p=>{if(!a)return null;if(a.isConnected===!1){var m;return(m=p??i)!=null?m:null}const y=r(a);return JSON.stringify(p)===JSON.stringify(y)?p:y})}const d=g1({callback(p){if(a)for(const m of p){const{type:y,target:v}=m;if(y==="childList"&&v instanceof HTMLElement&&v.contains(a)){f();break}}}}),h=vs({callback:f});return An(()=>{f(),a?(h==null||h.observe(a),d==null||d.observe(document.body,{childList:!0,subtree:!0})):(h==null||h.disconnect(),d==null||d.disconnect())},[a]),o}function p1(a){const r=Gf(a);return op(a,r)}const av=[];function y1(a){const r=S.useRef(a),i=Ei(o=>a?o&&o!==av&&a&&r.current&&a.parentNode===r.current.parentNode?o:kf(a):av,[a]);return S.useEffect(()=>{r.current=a},[a]),i}function b1(a){const[r,i]=S.useState(null),o=S.useRef(a),c=S.useCallback(f=>{const d=Vc(f.target);d&&i(h=>h?(h.set(d,mf(d)),new Map(h)):null)},[]);return S.useEffect(()=>{const f=o.current;if(a!==f){d(f);const h=a.map(p=>{const m=Vc(p);return m?(m.addEventListener("scroll",c,{passive:!0}),[m,mf(m)]):null}).filter(p=>p!=null);i(h.length?new Map(h):null),o.current=a}return()=>{d(a),d(f)};function d(h){h.forEach(p=>{const m=Vc(p);m==null||m.removeEventListener("scroll",c)})}},[c,a]),S.useMemo(()=>a.length?r?Array.from(r.values()).reduce((f,d)=>lr(f,d),On):mp(a):On,[a,r])}function lv(a,r){r===void 0&&(r=[]);const i=S.useRef(null);return S.useEffect(()=>{i.current=null},r),S.useEffect(()=>{const o=a!==On;o&&!i.current&&(i.current=a),!o&&i.current&&(i.current=null)},[a]),i.current?rs(a,i.current):On}function S1(a){S.useEffect(()=>{if(!hs)return;const r=a.map(i=>{let{sensor:o}=i;return o.setup==null?void 0:o.setup()});return()=>{for(const i of r)i==null||i()}},a.map(r=>{let{sensor:i}=r;return i}))}function E1(a,r){return S.useMemo(()=>a.reduce((i,o)=>{let{eventName:c,handler:f}=o;return i[c]=d=>{f(d,r)},i},{}),[a,r])}function bp(a){return S.useMemo(()=>a?KS(a):null,[a])}const rv=[];function x1(a,r){r===void 0&&(r=sr);const[i]=a,o=bp(i?Ge(i):null),[c,f]=S.useState(rv);function d(){f(()=>a.length?a.map(p=>dp(p)?o:new qf(r(p),p)):rv)}const h=vs({callback:d});return An(()=>{h==null||h.disconnect(),d(),a.forEach(p=>h==null?void 0:h.observe(p))},[a]),c}function Sp(a){if(!a)return null;if(a.children.length>1)return a;const r=a.children[0];return Si(r)?r:a}function w1(a){let{measure:r}=a;const[i,o]=S.useState(null),c=S.useCallback(m=>{for(const{target:y}of m)if(Si(y)){o(v=>{const w=r(y);return v?{...v,width:w.width,height:w.height}:w});break}},[r]),f=vs({callback:c}),d=S.useCallback(m=>{const y=Sp(m);f==null||f.disconnect(),y&&(f==null||f.observe(y)),o(y?r(y):null)},[r,f]),[h,p]=as(d);return S.useMemo(()=>({nodeRef:h,rect:i,setRef:p}),[i,h,p])}const R1=[{sensor:Vf,options:{}},{sensor:pp,options:{}}],T1={current:{}},Wo={draggable:{measure:Wg},droppable:{measure:Wg,strategy:gi.WhileDragging,frequency:vf.Optimized},dragOverlay:{measure:sr}};class hi extends Map{get(r){var i;return r!=null&&(i=super.get(r))!=null?i:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(r=>{let{disabled:i}=r;return!i})}getNodeFor(r){var i,o;return(i=(o=this.get(r))==null?void 0:o.node.current)!=null?i:void 0}}const A1={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new hi,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:os},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Wo,measureDroppableContainers:os,windowRect:null,measuringScheduled:!1},Ep={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:os,draggableNodes:new Map,over:null,measureDroppableContainers:os},wi=S.createContext(Ep),xp=S.createContext(A1);function O1(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new hi}}}function D1(a,r){switch(r.type){case Re.DragStart:return{...a,draggable:{...a.draggable,initialCoordinates:r.initialCoordinates,active:r.active}};case Re.DragMove:return a.draggable.active==null?a:{...a,draggable:{...a.draggable,translate:{x:r.coordinates.x-a.draggable.initialCoordinates.x,y:r.coordinates.y-a.draggable.initialCoordinates.y}}};case Re.DragEnd:case Re.DragCancel:return{...a,draggable:{...a.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Re.RegisterDroppable:{const{element:i}=r,{id:o}=i,c=new hi(a.droppable.containers);return c.set(o,i),{...a,droppable:{...a.droppable,containers:c}}}case Re.SetDroppableDisabled:{const{id:i,key:o,disabled:c}=r,f=a.droppable.containers.get(i);if(!f||o!==f.key)return a;const d=new hi(a.droppable.containers);return d.set(i,{...f,disabled:c}),{...a,droppable:{...a.droppable,containers:d}}}case Re.UnregisterDroppable:{const{id:i,key:o}=r,c=a.droppable.containers.get(i);if(!c||o!==c.key)return a;const f=new hi(a.droppable.containers);return f.delete(i),{...a,droppable:{...a.droppable,containers:f}}}default:return a}}function C1(a){let{disabled:r}=a;const{active:i,activatorEvent:o,draggableNodes:c}=S.useContext(wi),f=ls(o),d=ls(i==null?void 0:i.id);return S.useEffect(()=>{if(!r&&!o&&f&&d!=null){if(!gs(f)||document.activeElement===f.target)return;const h=c.get(d);if(!h)return;const{activatorNode:p,node:m}=h;if(!p.current&&!m.current)return;requestAnimationFrame(()=>{for(const y of[p.current,m.current]){if(!y)continue;const v=wS(y);if(v){v.focus();break}}})}},[o,r,c,d,f]),null}function wp(a,r){let{transform:i,...o}=r;return a!=null&&a.length?a.reduce((c,f)=>f({transform:c,...o}),i):i}function N1(a){return S.useMemo(()=>({draggable:{...Wo.draggable,...a==null?void 0:a.draggable},droppable:{...Wo.droppable,...a==null?void 0:a.droppable},dragOverlay:{...Wo.dragOverlay,...a==null?void 0:a.dragOverlay}}),[a==null?void 0:a.draggable,a==null?void 0:a.droppable,a==null?void 0:a.dragOverlay])}function M1(a){let{activeNode:r,measure:i,initialRect:o,config:c=!0}=a;const f=S.useRef(!1),{x:d,y:h}=typeof c=="boolean"?{x:c,y:c}:c;An(()=>{if(!d&&!h||!r){f.current=!1;return}if(f.current||!o)return;const m=r==null?void 0:r.node.current;if(!m||m.isConnected===!1)return;const y=i(m),v=op(y,o);if(d||(v.x=0),h||(v.y=0),f.current=!0,Math.abs(v.x)>0||Math.abs(v.y)>0){const w=up(m);w&&w.scrollBy({top:v.y,left:v.x})}},[r,d,h,o,i])}const ps=S.createContext({...On,scaleX:1,scaleY:1});var Ba;(function(a){a[a.Uninitialized=0]="Uninitialized",a[a.Initializing=1]="Initializing",a[a.Initialized=2]="Initialized"})(Ba||(Ba={}));const _1=S.memo(function(r){var i,o,c,f;let{id:d,accessibility:h,autoScroll:p=!0,children:m,sensors:y=R1,collisionDetection:v=YS,measuring:w,modifiers:A,...D}=r;const x=S.useReducer(D1,void 0,O1),[T,M]=x,[F,Q]=CS(),[W,j]=S.useState(Ba.Uninitialized),tt=W===Ba.Initialized,{draggable:{active:$,nodes:H,translate:I},droppable:{containers:at}}=T,lt=$!=null?H.get($):null,st=S.useRef({initial:null,translated:null}),ct=S.useMemo(()=>{var re;return $!=null?{id:$,data:(re=lt==null?void 0:lt.data)!=null?re:T1,rect:st}:null},[$,lt]),mt=S.useRef(null),[gt,C]=S.useState(null),[Z,q]=S.useState(null),ut=mi(D,Object.values(D)),R=xi("DndDescribedBy",d),L=S.useMemo(()=>at.getEnabled(),[at]),G=N1(w),{droppableRects:Y,measureDroppableContainers:et,measuringScheduled:ht}=h1(L,{dragging:tt,dependencies:[I.x,I.y],config:G.droppable}),nt=f1(H,$),St=S.useMemo(()=>Z?is(Z):null,[Z]),Et=qa(),kt=m1(nt,G.draggable.measure);M1({activeNode:$!=null?H.get($):null,config:Et.layoutShiftCompensation,initialRect:kt,measure:G.draggable.measure});const yt=nv(nt,G.draggable.measure,kt),Se=nv(nt?nt.parentElement:null),oe=S.useRef({activatorEvent:null,active:null,activeNode:nt,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:H,draggingNode:null,draggingNodeRect:null,droppableContainers:at,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Dt=at.getNodeFor((i=oe.current.over)==null?void 0:i.id),xt=w1({measure:G.dragOverlay.measure}),Pt=(o=xt.nodeRef.current)!=null?o:nt,Bt=tt?(c=xt.rect)!=null?c:yt:null,qt=!!(xt.nodeRef.current&&xt.rect),Xe=p1(qt?null:yt),zt=bp(Pt?Ge(Pt):null),Zt=y1(tt?Dt??nt:null),me=x1(Zt),se=wp(A,{transform:{x:I.x-Xe.x,y:I.y-Xe.y,scaleX:1,scaleY:1},activatorEvent:Z,active:ct,activeNodeRect:yt,containerNodeRect:Se,draggingNodeRect:Bt,over:oe.current.over,overlayNodeRect:xt.rect,scrollableAncestors:Zt,scrollableAncestorRects:me,windowRect:zt}),ke=St?lr(St,I):null,Yn=b1(Zt),Te=lv(Yn),ce=lv(Yn,[yt]),ne=lr(se,Te),pe=Bt?XS(Bt,se):null,te=ct&&pe?v({active:ct,collisionRect:pe,droppableRects:Y,droppableContainers:L,pointerCoordinates:ke}):null,Sn=HS(te,"id"),[Pe,En]=S.useState(null),oa=qt?se:lr(se,ce),sa=VS(oa,(f=Pe==null?void 0:Pe.rect)!=null?f:null,yt),Qe=S.useRef(null),Nn=S.useCallback((re,Ae)=>{let{sensor:ft,options:Xt}=Ae;if(mt.current==null)return;const Lt=H.get(mt.current);if(!Lt)return;const Yt=re.nativeEvent,Oe=new ft({active:mt.current,activeNode:Lt,event:Yt,options:Xt,context:oe,onAbort(Tt){if(!H.get(Tt))return;const{onDragAbort:Nt}=ut.current,Ft={id:Tt};Nt==null||Nt(Ft),F({type:"onDragAbort",event:Ft})},onPending(Tt,Qt,Nt,Ft){if(!H.get(Tt))return;const{onDragPending:qe}=ut.current,xn={id:Tt,constraint:Qt,initialCoordinates:Nt,offset:Ft};qe==null||qe(xn),F({type:"onDragPending",event:xn})},onStart(Tt){const Qt=mt.current;if(Qt==null)return;const Nt=H.get(Qt);if(!Nt)return;const{onDragStart:Ft}=ut.current,un={activatorEvent:Yt,active:{id:Qt,data:Nt.data,rect:st}};rl.unstable_batchedUpdates(()=>{Ft==null||Ft(un),j(Ba.Initializing),M({type:Re.DragStart,initialCoordinates:Tt,active:Qt}),F({type:"onDragStart",event:un}),C(Qe.current),q(Yt)})},onMove(Tt){M({type:Re.DragMove,coordinates:Tt})},onEnd:ae(Re.DragEnd),onCancel:ae(Re.DragCancel)});Qe.current=Oe;function ae(Tt){return async function(){const{active:Nt,collisions:Ft,over:un,scrollAdjustedTranslate:qe}=oe.current;let xn=null;if(Nt&&qe){const{cancelDrop:ca}=ut.current;xn={activatorEvent:Yt,active:Nt,collisions:Ft,delta:qe,over:un},Tt===Re.DragEnd&&typeof ca=="function"&&await Promise.resolve(ca(xn))&&(Tt=Re.DragCancel)}mt.current=null,rl.unstable_batchedUpdates(()=>{M({type:Tt}),j(Ba.Uninitialized),En(null),C(null),q(null),Qe.current=null;const ca=Tt===Re.DragEnd?"onDragEnd":"onDragCancel";if(xn){const Gn=ut.current[ca];Gn==null||Gn(xn),F({type:ca,event:xn})}})}}},[H]),Vn=S.useCallback((re,Ae)=>(ft,Xt)=>{const Lt=ft.nativeEvent,Yt=H.get(Xt);if(mt.current!==null||!Yt||Lt.dndKit||Lt.defaultPrevented)return;const Oe={active:Yt};re(ft,Ae.options,Oe)===!0&&(Lt.dndKit={capturedBy:Ae.sensor},mt.current=Xt,Nn(ft,Ae))},[H,Nn]),ua=d1(y,Vn);S1(y),An(()=>{yt&&W===Ba.Initializing&&j(Ba.Initialized)},[yt,W]),S.useEffect(()=>{const{onDragMove:re}=ut.current,{active:Ae,activatorEvent:ft,collisions:Xt,over:Lt}=oe.current;if(!Ae||!ft)return;const Yt={active:Ae,activatorEvent:ft,collisions:Xt,delta:{x:ne.x,y:ne.y},over:Lt};rl.unstable_batchedUpdates(()=>{re==null||re(Yt),F({type:"onDragMove",event:Yt})})},[ne.x,ne.y]),S.useEffect(()=>{const{active:re,activatorEvent:Ae,collisions:ft,droppableContainers:Xt,scrollAdjustedTranslate:Lt}=oe.current;if(!re||mt.current==null||!Ae||!Lt)return;const{onDragOver:Yt}=ut.current,Oe=Xt.get(Sn),ae=Oe&&Oe.rect.current?{id:Oe.id,rect:Oe.rect.current,data:Oe.data,disabled:Oe.disabled}:null,Tt={active:re,activatorEvent:Ae,collisions:ft,delta:{x:Lt.x,y:Lt.y},over:ae};rl.unstable_batchedUpdates(()=>{En(ae),Yt==null||Yt(Tt),F({type:"onDragOver",event:Tt})})},[Sn]),An(()=>{oe.current={activatorEvent:Z,active:ct,activeNode:nt,collisionRect:pe,collisions:te,droppableRects:Y,draggableNodes:H,draggingNode:Pt,draggingNodeRect:Bt,droppableContainers:at,over:Pe,scrollableAncestors:Zt,scrollAdjustedTranslate:ne},st.current={initial:Bt,translated:pe}},[ct,nt,te,pe,H,Pt,Bt,Y,at,Pe,Zt,ne]),s1({...Et,delta:I,draggingRect:pe,pointerCoordinates:ke,scrollableAncestors:Zt,scrollableAncestorRects:me});const tn=S.useMemo(()=>({active:ct,activeNode:nt,activeNodeRect:yt,activatorEvent:Z,collisions:te,containerNodeRect:Se,dragOverlay:xt,draggableNodes:H,droppableContainers:at,droppableRects:Y,over:Pe,measureDroppableContainers:et,scrollableAncestors:Zt,scrollableAncestorRects:me,measuringConfiguration:G,measuringScheduled:ht,windowRect:zt}),[ct,nt,yt,Z,te,Se,xt,H,at,Y,Pe,et,Zt,me,G,ht,zt]),dl=S.useMemo(()=>({activatorEvent:Z,activators:ua,active:ct,activeNodeRect:yt,ariaDescribedById:{draggable:R},dispatch:M,draggableNodes:H,over:Pe,measureDroppableContainers:et}),[Z,ua,ct,yt,M,R,H,Pe,et]);return J.createElement(ip.Provider,{value:Q},J.createElement(wi.Provider,{value:dl},J.createElement(xp.Provider,{value:tn},J.createElement(ps.Provider,{value:sa},m)),J.createElement(C1,{disabled:(h==null?void 0:h.restoreFocus)===!1})),J.createElement(_S,{...h,hiddenTextDescribedById:R}));function qa(){const re=(gt==null?void 0:gt.autoScrollEnabled)===!1,Ae=typeof p=="object"?p.enabled===!1:p===!1,ft=tt&&!re&&!Ae;return typeof p=="object"?{...p,enabled:ft}:{enabled:ft}}}),z1=S.createContext(null),iv="button",U1="Draggable";function B1(a){let{id:r,data:i,disabled:o=!1,attributes:c}=a;const f=xi(U1),{activators:d,activatorEvent:h,active:p,activeNodeRect:m,ariaDescribedById:y,draggableNodes:v,over:w}=S.useContext(wi),{role:A=iv,roleDescription:D="draggable",tabIndex:x=0}=c??{},T=(p==null?void 0:p.id)===r,M=S.useContext(T?ps:z1),[F,Q]=as(),[W,j]=as(),tt=E1(d,r),$=mi(i);An(()=>(v.set(r,{id:r,key:f,node:F,activatorNode:W,data:$}),()=>{const I=v.get(r);I&&I.key===f&&v.delete(r)}),[v,r]);const H=S.useMemo(()=>({role:A,tabIndex:x,"aria-disabled":o,"aria-pressed":T&&A===iv?!0:void 0,"aria-roledescription":D,"aria-describedby":y.draggable}),[o,A,x,T,D,y.draggable]);return{active:p,activatorEvent:h,activeNodeRect:m,attributes:H,isDragging:T,listeners:o?void 0:tt,node:F,over:w,setNodeRef:Q,setActivatorNodeRef:j,transform:M}}function Rp(){return S.useContext(xp)}const L1="Droppable",j1={timeout:25};function H1(a){let{data:r,disabled:i=!1,id:o,resizeObserverConfig:c}=a;const f=xi(L1),{active:d,dispatch:h,over:p,measureDroppableContainers:m}=S.useContext(wi),y=S.useRef({disabled:i}),v=S.useRef(!1),w=S.useRef(null),A=S.useRef(null),{disabled:D,updateMeasurementsFor:x,timeout:T}={...j1,...c},M=mi(x??o),F=S.useCallback(()=>{if(!v.current){v.current=!0;return}A.current!=null&&clearTimeout(A.current),A.current=setTimeout(()=>{m(Array.isArray(M.current)?M.current:[M.current]),A.current=null},T)},[T]),Q=vs({callback:F,disabled:D||!d}),W=S.useCallback((H,I)=>{Q&&(I&&(Q.unobserve(I),v.current=!1),H&&Q.observe(H))},[Q]),[j,tt]=as(W),$=mi(r);return S.useEffect(()=>{!Q||!j.current||(Q.disconnect(),v.current=!1,Q.observe(j.current))},[j,Q]),S.useEffect(()=>(h({type:Re.RegisterDroppable,element:{id:o,key:f,disabled:i,node:j,rect:w,data:$}}),()=>h({type:Re.UnregisterDroppable,key:f,id:o})),[o]),S.useEffect(()=>{i!==y.current.disabled&&(h({type:Re.SetDroppableDisabled,id:o,key:f,disabled:i}),y.current.disabled=i)},[o,f,i,h]),{active:d,rect:w,isOver:(p==null?void 0:p.id)===o,node:j,over:p,setNodeRef:tt}}function k1(a){let{animation:r,children:i}=a;const[o,c]=S.useState(null),[f,d]=S.useState(null),h=ls(i);return!i&&!o&&h&&c(h),An(()=>{if(!f)return;const p=o==null?void 0:o.key,m=o==null?void 0:o.props.id;if(p==null||m==null){c(null);return}Promise.resolve(r(m,f)).then(()=>{c(null)})},[r,o,f]),J.createElement(J.Fragment,null,i,o?S.cloneElement(o,{ref:d}):null)}const q1={x:0,y:0,scaleX:1,scaleY:1};function Y1(a){let{children:r}=a;return J.createElement(wi.Provider,{value:Ep},J.createElement(ps.Provider,{value:q1},r))}const V1={position:"fixed",touchAction:"none"},G1=a=>gs(a)?"transform 250ms ease":void 0,X1=S.forwardRef((a,r)=>{let{as:i,activatorEvent:o,adjustScale:c,children:f,className:d,rect:h,style:p,transform:m,transition:y=G1}=a;if(!h)return null;const v=c?m:{...m,scaleX:1,scaleY:1},w={...V1,width:h.width,height:h.height,top:h.top,left:h.left,transform:Ha.Transform.toString(v),transformOrigin:c&&o?BS(o,h):void 0,transition:typeof y=="function"?y(o):y,...p};return J.createElement(i,{className:d,style:w,ref:r},f)}),Q1=a=>r=>{let{active:i,dragOverlay:o}=r;const c={},{styles:f,className:d}=a;if(f!=null&&f.active)for(const[h,p]of Object.entries(f.active))p!==void 0&&(c[h]=i.node.style.getPropertyValue(h),i.node.style.setProperty(h,p));if(f!=null&&f.dragOverlay)for(const[h,p]of Object.entries(f.dragOverlay))p!==void 0&&o.node.style.setProperty(h,p);return d!=null&&d.active&&i.node.classList.add(d.active),d!=null&&d.dragOverlay&&o.node.classList.add(d.dragOverlay),function(){for(const[p,m]of Object.entries(c))i.node.style.setProperty(p,m);d!=null&&d.active&&i.node.classList.remove(d.active)}},Z1=a=>{let{transform:{initial:r,final:i}}=a;return[{transform:Ha.Transform.toString(r)},{transform:Ha.Transform.toString(i)}]},K1={duration:250,easing:"ease",keyframes:Z1,sideEffects:Q1({styles:{active:{opacity:"0"}}})};function J1(a){let{config:r,draggableNodes:i,droppableContainers:o,measuringConfiguration:c}=a;return ms((f,d)=>{if(r===null)return;const h=i.get(f);if(!h)return;const p=h.node.current;if(!p)return;const m=Sp(d);if(!m)return;const{transform:y}=Ge(d).getComputedStyle(d),v=sp(y);if(!v)return;const w=typeof r=="function"?r:F1(r);return gp(p,c.draggable.measure),w({active:{id:f,data:h.data,node:p,rect:c.draggable.measure(p)},draggableNodes:i,dragOverlay:{node:d,rect:c.dragOverlay.measure(m)},droppableContainers:o,measuringConfiguration:c,transform:v})})}function F1(a){const{duration:r,easing:i,sideEffects:o,keyframes:c}={...K1,...a};return f=>{let{active:d,dragOverlay:h,transform:p,...m}=f;if(!r)return;const y={x:h.rect.left-d.rect.left,y:h.rect.top-d.rect.top},v={scaleX:p.scaleX!==1?d.rect.width*p.scaleX/h.rect.width:1,scaleY:p.scaleY!==1?d.rect.height*p.scaleY/h.rect.height:1},w={x:p.x-y.x,y:p.y-y.y,...v},A=c({...m,active:d,dragOverlay:h,transform:{initial:p,final:w}}),[D]=A,x=A[A.length-1];if(JSON.stringify(D)===JSON.stringify(x))return;const T=o==null?void 0:o({active:d,dragOverlay:h,...m}),M=h.node.animate(A,{duration:r,easing:i,fill:"forwards"});return new Promise(F=>{M.onfinish=()=>{T==null||T(),F()}})}}let ov=0;function $1(a){return S.useMemo(()=>{if(a!=null)return ov++,ov},[a])}const W1=J.memo(a=>{let{adjustScale:r=!1,children:i,dropAnimation:o,style:c,transition:f,modifiers:d,wrapperElement:h="div",className:p,zIndex:m=999}=a;const{activatorEvent:y,active:v,activeNodeRect:w,containerNodeRect:A,draggableNodes:D,droppableContainers:x,dragOverlay:T,over:M,measuringConfiguration:F,scrollableAncestors:Q,scrollableAncestorRects:W,windowRect:j}=Rp(),tt=S.useContext(ps),$=$1(v==null?void 0:v.id),H=wp(d,{activatorEvent:y,active:v,activeNodeRect:w,containerNodeRect:A,draggingNodeRect:T.rect,over:M,overlayNodeRect:T.rect,scrollableAncestors:Q,scrollableAncestorRects:W,transform:tt,windowRect:j}),I=Gf(w),at=J1({config:o,draggableNodes:D,droppableContainers:x,measuringConfiguration:F}),lt=I?T.setRef:void 0;return J.createElement(Y1,null,J.createElement(k1,{animation:at},v&&$?J.createElement(X1,{key:$,id:v.id,ref:lt,as:h,activatorEvent:y,adjustScale:r,className:p,transition:f,rect:I,style:{zIndex:m,...c},transform:H},i):null))});function Xf(a,r,i){const o=a.slice();return o.splice(i<0?o.length+i:i,0,o.splice(r,1)[0]),o}function I1(a,r){return a.reduce((i,o,c)=>{const f=r.get(o);return f&&(i[c]=f),i},Array(a.length))}function Ho(a){return a!==null&&a>=0}function P1(a,r){if(a===r)return!0;if(a.length!==r.length)return!1;for(let i=0;i<a.length;i++)if(a[i]!==r[i])return!1;return!0}function tE(a){return typeof a=="boolean"?{draggable:a,droppable:a}:a}const Tp=a=>{let{rects:r,activeIndex:i,overIndex:o,index:c}=a;const f=Xf(r,o,i),d=r[c],h=f[c];return!h||!d?null:{x:h.left-d.left,y:h.top-d.top,scaleX:h.width/d.width,scaleY:h.height/d.height}},ko={scaleX:1,scaleY:1},sv=a=>{var r;let{activeIndex:i,activeNodeRect:o,index:c,rects:f,overIndex:d}=a;const h=(r=f[i])!=null?r:o;if(!h)return null;if(c===i){const m=f[d];return m?{x:0,y:i<d?m.top+m.height-(h.top+h.height):m.top-h.top,...ko}:null}const p=eE(f,c,i);return c>i&&c<=d?{x:0,y:-h.height-p,...ko}:c<i&&c>=d?{x:0,y:h.height+p,...ko}:{x:0,y:0,...ko}};function eE(a,r,i){const o=a[r],c=a[r-1],f=a[r+1];return o?i<r?c?o.top-(c.top+c.height):f?f.top-(o.top+o.height):0:f?f.top-(o.top+o.height):c?o.top-(c.top+c.height):0:0}const Ap="Sortable",Op=J.createContext({activeIndex:-1,containerId:Ap,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Tp,disabled:{draggable:!1,droppable:!1}});function uv(a){let{children:r,id:i,items:o,strategy:c=Tp,disabled:f=!1}=a;const{active:d,dragOverlay:h,droppableRects:p,over:m,measureDroppableContainers:y}=Rp(),v=xi(Ap,i),w=h.rect!==null,A=S.useMemo(()=>o.map(tt=>typeof tt=="object"&&"id"in tt?tt.id:tt),[o]),D=d!=null,x=d?A.indexOf(d.id):-1,T=m?A.indexOf(m.id):-1,M=S.useRef(A),F=!P1(A,M.current),Q=T!==-1&&x===-1||F,W=tE(f);An(()=>{F&&D&&y(A)},[F,A,D,y]),S.useEffect(()=>{M.current=A},[A]);const j=S.useMemo(()=>({activeIndex:x,containerId:v,disabled:W,disableTransforms:Q,items:A,overIndex:T,useDragOverlay:w,sortedRects:I1(A,p),strategy:c}),[x,v,W.draggable,W.droppable,Q,A,T,p,w,c]);return J.createElement(Op.Provider,{value:j},r)}const nE=a=>{let{id:r,items:i,activeIndex:o,overIndex:c}=a;return Xf(i,o,c).indexOf(r)},Dp=a=>{let{containerId:r,isSorting:i,wasDragging:o,index:c,items:f,newIndex:d,previousItems:h,previousContainerId:p,transition:m}=a;return!m||!o||h!==f&&c===d?!1:i?!0:d!==c&&r===p},aE={duration:200,easing:"ease"},Cp="transform",lE=Ha.Transition.toString({property:Cp,duration:0,easing:"linear"}),rE={roleDescription:"sortable"};function iE(a){let{disabled:r,index:i,node:o,rect:c}=a;const[f,d]=S.useState(null),h=S.useRef(i);return An(()=>{if(!r&&i!==h.current&&o.current){const p=c.current;if(p){const m=sr(o.current,{ignoreTransform:!0}),y={x:p.left-m.left,y:p.top-m.top,scaleX:p.width/m.width,scaleY:p.height/m.height};(y.x||y.y)&&d(y)}}i!==h.current&&(h.current=i)},[r,i,o,c]),S.useEffect(()=>{f&&d(null)},[f]),f}function oE(a){let{animateLayoutChanges:r=Dp,attributes:i,disabled:o,data:c,getNewIndex:f=nE,id:d,strategy:h,resizeObserverConfig:p,transition:m=aE}=a;const{items:y,containerId:v,activeIndex:w,disabled:A,disableTransforms:D,sortedRects:x,overIndex:T,useDragOverlay:M,strategy:F}=S.useContext(Op),Q=sE(o,A),W=y.indexOf(d),j=S.useMemo(()=>({sortable:{containerId:v,index:W,items:y},...c}),[v,c,W,y]),tt=S.useMemo(()=>y.slice(y.indexOf(d)),[y,d]),{rect:$,node:H,isOver:I,setNodeRef:at}=H1({id:d,data:j,disabled:Q.droppable,resizeObserverConfig:{updateMeasurementsFor:tt,...p}}),{active:lt,activatorEvent:st,activeNodeRect:ct,attributes:mt,setNodeRef:gt,listeners:C,isDragging:Z,over:q,setActivatorNodeRef:ut,transform:R}=B1({id:d,data:j,attributes:{...rE,...i},disabled:Q.draggable}),L=bS(at,gt),G=!!lt,Y=G&&!D&&Ho(w)&&Ho(T),et=!M&&Z,ht=et&&Y?R:null,St=Y?ht??(h??F)({rects:x,activeNodeRect:ct,activeIndex:w,overIndex:T,index:W}):null,Et=Ho(w)&&Ho(T)?f({id:d,items:y,activeIndex:w,overIndex:T}):W,kt=lt==null?void 0:lt.id,yt=S.useRef({activeId:kt,items:y,newIndex:Et,containerId:v}),Se=y!==yt.current.items,oe=r({active:lt,containerId:v,isDragging:Z,isSorting:G,id:d,index:W,items:y,newIndex:yt.current.newIndex,previousItems:yt.current.items,previousContainerId:yt.current.containerId,transition:m,wasDragging:yt.current.activeId!=null}),Dt=iE({disabled:!oe,index:W,node:H,rect:$});return S.useEffect(()=>{G&&yt.current.newIndex!==Et&&(yt.current.newIndex=Et),v!==yt.current.containerId&&(yt.current.containerId=v),y!==yt.current.items&&(yt.current.items=y)},[G,Et,v,y]),S.useEffect(()=>{if(kt===yt.current.activeId)return;if(kt!=null&&yt.current.activeId==null){yt.current.activeId=kt;return}const Pt=setTimeout(()=>{yt.current.activeId=kt},50);return()=>clearTimeout(Pt)},[kt]),{active:lt,activeIndex:w,attributes:mt,data:j,rect:$,index:W,newIndex:Et,items:y,isOver:I,isSorting:G,isDragging:Z,listeners:C,node:H,overIndex:T,over:q,setNodeRef:L,setActivatorNodeRef:ut,setDroppableNodeRef:at,setDraggableNodeRef:gt,transform:Dt??St,transition:xt()};function xt(){if(Dt||Se&&yt.current.newIndex===W)return lE;if(!(et&&!gs(st)||!m)&&(G||oe))return Ha.Transition.toString({...m,property:Cp})}}function sE(a,r){var i,o;return typeof a=="boolean"?{draggable:a,droppable:!1}:{draggable:(i=a==null?void 0:a.draggable)!=null?i:r.draggable,droppable:(o=a==null?void 0:a.droppable)!=null?o:r.droppable}}Gt.Down,Gt.Right,Gt.Up,Gt.Left;function cv(a,r){if(typeof a=="function")return a(r);a!=null&&(a.current=r)}function Np(...a){return r=>{let i=!1;const o=a.map(c=>{const f=cv(c,r);return!i&&typeof f=="function"&&(i=!0),f});if(i)return()=>{for(let c=0;c<o.length;c++){const f=o[c];typeof f=="function"?f():cv(a[c],null)}}}}function cl(...a){return S.useCallback(Np(...a),a)}function Qf(a){const r=cE(a),i=S.forwardRef((o,c)=>{const{children:f,...d}=o,h=S.Children.toArray(f),p=h.find(dE);if(p){const m=p.props.children,y=h.map(v=>v===p?S.Children.count(m)>1?S.Children.only(null):S.isValidElement(m)?m.props.children:null:v);return P.jsx(r,{...d,ref:c,children:S.isValidElement(m)?S.cloneElement(m,void 0,y):null})}return P.jsx(r,{...d,ref:c,children:f})});return i.displayName=`${a}.Slot`,i}var uE=Qf("Slot");function cE(a){const r=S.forwardRef((i,o)=>{const{children:c,...f}=i;if(S.isValidElement(c)){const d=mE(c),h=hE(f,c.props);return c.type!==S.Fragment&&(h.ref=o?Np(o,d):d),S.cloneElement(c,h)}return S.Children.count(c)>1?S.Children.only(null):null});return r.displayName=`${a}.SlotClone`,r}var fE=Symbol("radix.slottable");function dE(a){return S.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===fE}function hE(a,r){const i={...r};for(const o in r){const c=a[o],f=r[o];/^on[A-Z]/.test(o)?c&&f?i[o]=(...h)=>{f(...h),c(...h)}:c&&(i[o]=c):o==="style"?i[o]={...c,...f}:o==="className"&&(i[o]=[c,f].filter(Boolean).join(" "))}return{...a,...i}}function mE(a){var o,c;let r=(o=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:o.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?a.ref:(r=(c=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:c.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?a.props.ref:a.props.ref||a.ref)}var gE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qn=gE.reduce((a,r)=>{const i=Qf(`Primitive.${r}`),o=S.forwardRef((c,f)=>{const{asChild:d,...h}=c,p=d?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(p,{...h,ref:f})});return o.displayName=`Primitive.${r}`,{...a,[r]:o}},{});function vE(a,r){a&&rl.flushSync(()=>a.dispatchEvent(r))}var pE="Separator",fv="horizontal",yE=["horizontal","vertical"],Mp=S.forwardRef((a,r)=>{const{decorative:i,orientation:o=fv,...c}=a,f=bE(o)?o:fv,h=i?{role:"none"}:{"aria-orientation":f==="vertical"?f:void 0,role:"separator"};return P.jsx(qn.div,{"data-orientation":f,...h,...c,ref:r})});Mp.displayName=pE;function bE(a){return yE.includes(a)}var SE=Mp;function _p(a){var r,i,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(r=0;r<c;r++)a[r]&&(i=_p(a[r]))&&(o&&(o+=" "),o+=i)}else for(i in a)a[i]&&(o&&(o+=" "),o+=i);return o}function zp(){for(var a,r,i=0,o="",c=arguments.length;i<c;i++)(a=arguments[i])&&(r=_p(a))&&(o&&(o+=" "),o+=r);return o}const Zf="-",EE=a=>{const r=wE(a),{conflictingClassGroups:i,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:d=>{const h=d.split(Zf);return h[0]===""&&h.length!==1&&h.shift(),Up(h,r)||xE(d)},getConflictingClassGroupIds:(d,h)=>{const p=i[d]||[];return h&&o[d]?[...p,...o[d]]:p}}},Up=(a,r)=>{var d;if(a.length===0)return r.classGroupId;const i=a[0],o=r.nextPart.get(i),c=o?Up(a.slice(1),o):void 0;if(c)return c;if(r.validators.length===0)return;const f=a.join(Zf);return(d=r.validators.find(({validator:h})=>h(f)))==null?void 0:d.classGroupId},dv=/^\[(.+)\]$/,xE=a=>{if(dv.test(a)){const r=dv.exec(a)[1],i=r==null?void 0:r.substring(0,r.indexOf(":"));if(i)return"arbitrary.."+i}},wE=a=>{const{theme:r,classGroups:i}=a,o={nextPart:new Map,validators:[]};for(const c in i)pf(i[c],o,c,r);return o},pf=(a,r,i,o)=>{a.forEach(c=>{if(typeof c=="string"){const f=c===""?r:hv(r,c);f.classGroupId=i;return}if(typeof c=="function"){if(RE(c)){pf(c(o),r,i,o);return}r.validators.push({validator:c,classGroupId:i});return}Object.entries(c).forEach(([f,d])=>{pf(d,hv(r,f),i,o)})})},hv=(a,r)=>{let i=a;return r.split(Zf).forEach(o=>{i.nextPart.has(o)||i.nextPart.set(o,{nextPart:new Map,validators:[]}),i=i.nextPart.get(o)}),i},RE=a=>a.isThemeGetter,TE=a=>{if(a<1)return{get:()=>{},set:()=>{}};let r=0,i=new Map,o=new Map;const c=(f,d)=>{i.set(f,d),r++,r>a&&(r=0,o=i,i=new Map)};return{get(f){let d=i.get(f);if(d!==void 0)return d;if((d=o.get(f))!==void 0)return c(f,d),d},set(f,d){i.has(f)?i.set(f,d):c(f,d)}}},yf="!",bf=":",AE=bf.length,OE=a=>{const{prefix:r,experimentalParseClassName:i}=a;let o=c=>{const f=[];let d=0,h=0,p=0,m;for(let D=0;D<c.length;D++){let x=c[D];if(d===0&&h===0){if(x===bf){f.push(c.slice(p,D)),p=D+AE;continue}if(x==="/"){m=D;continue}}x==="["?d++:x==="]"?d--:x==="("?h++:x===")"&&h--}const y=f.length===0?c:c.substring(p),v=DE(y),w=v!==y,A=m&&m>p?m-p:void 0;return{modifiers:f,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:A}};if(r){const c=r+bf,f=o;o=d=>d.startsWith(c)?f(d.substring(c.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(i){const c=o;o=f=>i({className:f,parseClassName:c})}return o},DE=a=>a.endsWith(yf)?a.substring(0,a.length-1):a.startsWith(yf)?a.substring(1):a,CE=a=>{const r=Object.fromEntries(a.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const c=[];let f=[];return o.forEach(d=>{d[0]==="["||r[d]?(c.push(...f.sort(),d),f=[]):f.push(d)}),c.push(...f.sort()),c}},NE=a=>({cache:TE(a.cacheSize),parseClassName:OE(a),sortModifiers:CE(a),...EE(a)}),ME=/\s+/,_E=(a,r)=>{const{parseClassName:i,getClassGroupId:o,getConflictingClassGroupIds:c,sortModifiers:f}=r,d=[],h=a.trim().split(ME);let p="";for(let m=h.length-1;m>=0;m-=1){const y=h[m],{isExternal:v,modifiers:w,hasImportantModifier:A,baseClassName:D,maybePostfixModifierPosition:x}=i(y);if(v){p=y+(p.length>0?" "+p:p);continue}let T=!!x,M=o(T?D.substring(0,x):D);if(!M){if(!T){p=y+(p.length>0?" "+p:p);continue}if(M=o(D),!M){p=y+(p.length>0?" "+p:p);continue}T=!1}const F=f(w).join(":"),Q=A?F+yf:F,W=Q+M;if(d.includes(W))continue;d.push(W);const j=c(M,T);for(let tt=0;tt<j.length;++tt){const $=j[tt];d.push(Q+$)}p=y+(p.length>0?" "+p:p)}return p};function zE(){let a=0,r,i,o="";for(;a<arguments.length;)(r=arguments[a++])&&(i=Bp(r))&&(o&&(o+=" "),o+=i);return o}const Bp=a=>{if(typeof a=="string")return a;let r,i="";for(let o=0;o<a.length;o++)a[o]&&(r=Bp(a[o]))&&(i&&(i+=" "),i+=r);return i};function UE(a,...r){let i,o,c,f=d;function d(p){const m=r.reduce((y,v)=>v(y),a());return i=NE(m),o=i.cache.get,c=i.cache.set,f=h,h(p)}function h(p){const m=o(p);if(m)return m;const y=_E(p,i);return c(p,y),y}return function(){return f(zE.apply(null,arguments))}}const we=a=>{const r=i=>i[a]||[];return r.isThemeGetter=!0,r},Lp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,BE=/^\d+\/\d+$/,LE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jE=/\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$/,HE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,kE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wl=a=>BE.test(a),Ot=a=>!!a&&!Number.isNaN(Number(a)),za=a=>!!a&&Number.isInteger(Number(a)),Qc=a=>a.endsWith("%")&&Ot(a.slice(0,-1)),ra=a=>LE.test(a),YE=()=>!0,VE=a=>jE.test(a)&&!HE.test(a),Hp=()=>!1,GE=a=>kE.test(a),XE=a=>qE.test(a),QE=a=>!it(a)&&!ot(a),ZE=a=>ur(a,Yp,Hp),it=a=>Lp.test(a),ll=a=>ur(a,Vp,VE),Zc=a=>ur(a,WE,Ot),mv=a=>ur(a,kp,Hp),KE=a=>ur(a,qp,XE),qo=a=>ur(a,Gp,GE),ot=a=>jp.test(a),si=a=>cr(a,Vp),JE=a=>cr(a,IE),gv=a=>cr(a,kp),FE=a=>cr(a,Yp),$E=a=>cr(a,qp),Yo=a=>cr(a,Gp,!0),ur=(a,r,i)=>{const o=Lp.exec(a);return o?o[1]?r(o[1]):i(o[2]):!1},cr=(a,r,i=!1)=>{const o=jp.exec(a);return o?o[1]?r(o[1]):i:!1},kp=a=>a==="position"||a==="percentage",qp=a=>a==="image"||a==="url",Yp=a=>a==="length"||a==="size"||a==="bg-size",Vp=a=>a==="length",WE=a=>a==="number",IE=a=>a==="family-name",Gp=a=>a==="shadow",PE=()=>{const a=we("color"),r=we("font"),i=we("text"),o=we("font-weight"),c=we("tracking"),f=we("leading"),d=we("breakpoint"),h=we("container"),p=we("spacing"),m=we("radius"),y=we("shadow"),v=we("inset-shadow"),w=we("text-shadow"),A=we("drop-shadow"),D=we("blur"),x=we("perspective"),T=we("aspect"),M=we("ease"),F=we("animate"),Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...W(),ot,it],tt=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],H=()=>[ot,it,p],I=()=>[Wl,"full","auto",...H()],at=()=>[za,"none","subgrid",ot,it],lt=()=>["auto",{span:["full",za,ot,it]},za,ot,it],st=()=>[za,"auto",ot,it],ct=()=>["auto","min","max","fr",ot,it],mt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],gt=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...H()],Z=()=>[Wl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],q=()=>[a,ot,it],ut=()=>[...W(),gv,mv,{position:[ot,it]}],R=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",FE,ZE,{size:[ot,it]}],G=()=>[Qc,si,ll],Y=()=>["","none","full",m,ot,it],et=()=>["",Ot,si,ll],ht=()=>["solid","dashed","dotted","double"],nt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],St=()=>[Ot,Qc,gv,mv],Et=()=>["","none",D,ot,it],kt=()=>["none",Ot,ot,it],yt=()=>["none",Ot,ot,it],Se=()=>[Ot,ot,it],oe=()=>[Wl,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ra],breakpoint:[ra],color:[YE],container:[ra],"drop-shadow":[ra],ease:["in","out","in-out"],font:[QE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ra],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ra],shadow:[ra],spacing:["px",Ot],text:[ra],"text-shadow":[ra],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Wl,it,ot,T]}],container:["container"],columns:[{columns:[Ot,it,ot,h]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:j()}],overflow:[{overflow:tt()}],"overflow-x":[{"overflow-x":tt()}],"overflow-y":[{"overflow-y":tt()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[za,"auto",ot,it]}],basis:[{basis:[Wl,"full","auto",h,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ot,Wl,"auto","initial","none",it]}],grow:[{grow:["",Ot,ot,it]}],shrink:[{shrink:["",Ot,ot,it]}],order:[{order:[za,"first","last","none",ot,it]}],"grid-cols":[{"grid-cols":at()}],"col-start-end":[{col:lt()}],"col-start":[{"col-start":st()}],"col-end":[{"col-end":st()}],"grid-rows":[{"grid-rows":at()}],"row-start-end":[{row:lt()}],"row-start":[{"row-start":st()}],"row-end":[{"row-end":st()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ct()}],"auto-rows":[{"auto-rows":ct()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...mt(),"normal"]}],"justify-items":[{"justify-items":[...gt(),"normal"]}],"justify-self":[{"justify-self":["auto",...gt()]}],"align-content":[{content:["normal",...mt()]}],"align-items":[{items:[...gt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...gt(),{baseline:["","last"]}]}],"place-content":[{"place-content":mt()}],"place-items":[{"place-items":[...gt(),"baseline"]}],"place-self":[{"place-self":["auto",...gt()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],w:[{w:[h,"screen",...Z()]}],"min-w":[{"min-w":[h,"screen","none",...Z()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[d]},...Z()]}],h:[{h:["screen",...Z()]}],"min-h":[{"min-h":["screen","none",...Z()]}],"max-h":[{"max-h":["screen",...Z()]}],"font-size":[{text:["base",i,si,ll]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ot,Zc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qc,it]}],"font-family":[{font:[JE,it,r]}],"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:[c,ot,it]}],"line-clamp":[{"line-clamp":[Ot,"none",ot,Zc]}],leading:[{leading:[f,...H()]}],"list-image":[{"list-image":["none",ot,it]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ot,it]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ht(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ot,"from-font","auto",ot,ll]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[Ot,"auto",ot,it]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ot,it]}],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",ot,it]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ut()}],"bg-repeat":[{bg:R()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},za,ot,it],radial:["",ot,it],conic:[za,ot,it]},$E,KE]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:et()}],"border-w-x":[{"border-x":et()}],"border-w-y":[{"border-y":et()}],"border-w-s":[{"border-s":et()}],"border-w-e":[{"border-e":et()}],"border-w-t":[{"border-t":et()}],"border-w-r":[{"border-r":et()}],"border-w-b":[{"border-b":et()}],"border-w-l":[{"border-l":et()}],"divide-x":[{"divide-x":et()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":et()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ht(),"hidden","none"]}],"divide-style":[{divide:[...ht(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...ht(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ot,ot,it]}],"outline-w":[{outline:["",Ot,si,ll]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",y,Yo,qo]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",v,Yo,qo]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:et()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[Ot,ll]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":et()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",w,Yo,qo]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[Ot,ot,it]}],"mix-blend":[{"mix-blend":[...nt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":nt()}],"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":[Ot]}],"mask-image-linear-from-pos":[{"mask-linear-from":St()}],"mask-image-linear-to-pos":[{"mask-linear-to":St()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":St()}],"mask-image-t-to-pos":[{"mask-t-to":St()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":St()}],"mask-image-r-to-pos":[{"mask-r-to":St()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":St()}],"mask-image-b-to-pos":[{"mask-b-to":St()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":St()}],"mask-image-l-to-pos":[{"mask-l-to":St()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":St()}],"mask-image-x-to-pos":[{"mask-x-to":St()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":St()}],"mask-image-y-to-pos":[{"mask-y-to":St()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[ot,it]}],"mask-image-radial-from-pos":[{"mask-radial-from":St()}],"mask-image-radial-to-pos":[{"mask-radial-to":St()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"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":W()}],"mask-image-conic-pos":[{"mask-conic":[Ot]}],"mask-image-conic-from-pos":[{"mask-conic-from":St()}],"mask-image-conic-to-pos":[{"mask-conic-to":St()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ut()}],"mask-repeat":[{mask:R()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ot,it]}],filter:[{filter:["","none",ot,it]}],blur:[{blur:Et()}],brightness:[{brightness:[Ot,ot,it]}],contrast:[{contrast:[Ot,ot,it]}],"drop-shadow":[{"drop-shadow":["","none",A,Yo,qo]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",Ot,ot,it]}],"hue-rotate":[{"hue-rotate":[Ot,ot,it]}],invert:[{invert:["",Ot,ot,it]}],saturate:[{saturate:[Ot,ot,it]}],sepia:[{sepia:["",Ot,ot,it]}],"backdrop-filter":[{"backdrop-filter":["","none",ot,it]}],"backdrop-blur":[{"backdrop-blur":Et()}],"backdrop-brightness":[{"backdrop-brightness":[Ot,ot,it]}],"backdrop-contrast":[{"backdrop-contrast":[Ot,ot,it]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ot,ot,it]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ot,ot,it]}],"backdrop-invert":[{"backdrop-invert":["",Ot,ot,it]}],"backdrop-opacity":[{"backdrop-opacity":[Ot,ot,it]}],"backdrop-saturate":[{"backdrop-saturate":[Ot,ot,it]}],"backdrop-sepia":[{"backdrop-sepia":["",Ot,ot,it]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ot,it]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ot,"initial",ot,it]}],ease:[{ease:["linear","initial",M,ot,it]}],delay:[{delay:[Ot,ot,it]}],animate:[{animate:["none",F,ot,it]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,ot,it]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:kt()}],"rotate-x":[{"rotate-x":kt()}],"rotate-y":[{"rotate-y":kt()}],"rotate-z":[{"rotate-z":kt()}],scale:[{scale:yt()}],"scale-x":[{"scale-x":yt()}],"scale-y":[{"scale-y":yt()}],"scale-z":[{"scale-z":yt()}],"scale-3d":["scale-3d"],skew:[{skew:Se()}],"skew-x":[{"skew-x":Se()}],"skew-y":[{"skew-y":Se()}],transform:[{transform:[ot,it,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}],"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",ot,it]}],"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":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",ot,it]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[Ot,si,ll,Zc]}],stroke:[{stroke:["none",...q()]}],"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"]}},tx=UE(PE);function fl(...a){return tx(zp(a))}function ex({className:a,orientation:r="horizontal",decorative:i=!0,...o}){return P.jsx(SE,{"data-slot":"separator-root",decorative:i,orientation:r,className:fl("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",a),...o})}function nx(a){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",r.appendChild(i),i.styleSheet?i.styleSheet.cssText=a:i.appendChild(document.createTextNode(a))}const ax=a=>{switch(a){case"success":return ix;case"info":return sx;case"warning":return ox;case"error":return ux;default:return null}},lx=Array(12).fill(0),rx=({visible:a,className:r})=>J.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":a},J.createElement("div",{className:"sonner-spinner"},lx.map((i,o)=>J.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),ix=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.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"})),ox=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},J.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"})),sx=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.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"})),ux=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.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"})),cx=J.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"},J.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),J.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),fx=()=>{const[a,r]=J.useState(document.hidden);return J.useEffect(()=>{const i=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),a};let Sf=1;class dx{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{const i=this.subscribers.indexOf(r);this.subscribers.splice(i,1)}),this.publish=r=>{this.subscribers.forEach(i=>i(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var i;const{message:o,...c}=r,f=typeof(r==null?void 0:r.id)=="number"||((i=r.id)==null?void 0:i.length)>0?r.id:Sf++,d=this.toasts.find(p=>p.id===f),h=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),d?this.toasts=this.toasts.map(p=>p.id===f?(this.publish({...p,...r,id:f,title:o}),{...p,...r,id:f,dismissible:h,title:o}):p):this.addToast({title:o,...c,dismissible:h,id:f}),f},this.dismiss=r=>(r?(this.dismissedToasts.add(r),requestAnimationFrame(()=>this.subscribers.forEach(i=>i({id:r,dismiss:!0})))):this.toasts.forEach(i=>{this.subscribers.forEach(o=>o({id:i.id,dismiss:!0}))}),r),this.message=(r,i)=>this.create({...i,message:r}),this.error=(r,i)=>this.create({...i,message:r,type:"error"}),this.success=(r,i)=>this.create({...i,type:"success",message:r}),this.info=(r,i)=>this.create({...i,type:"info",message:r}),this.warning=(r,i)=>this.create({...i,type:"warning",message:r}),this.loading=(r,i)=>this.create({...i,type:"loading",message:r}),this.promise=(r,i)=>{if(!i)return;let o;i.loading!==void 0&&(o=this.create({...i,promise:r,type:"loading",message:i.loading,description:typeof i.description!="function"?i.description:void 0}));const c=Promise.resolve(r instanceof Function?r():r);let f=o!==void 0,d;const h=c.then(async m=>{if(d=["resolve",m],J.isValidElement(m))f=!1,this.create({id:o,type:"default",message:m});else if(mx(m)&&!m.ok){f=!1;const v=typeof i.error=="function"?await i.error(`HTTP error! status: ${m.status}`):i.error,w=typeof i.description=="function"?await i.description(`HTTP error! status: ${m.status}`):i.description,D=typeof v=="object"&&!J.isValidElement(v)?v:{message:v};this.create({id:o,type:"error",description:w,...D})}else if(m instanceof Error){f=!1;const v=typeof i.error=="function"?await i.error(m):i.error,w=typeof i.description=="function"?await i.description(m):i.description,D=typeof v=="object"&&!J.isValidElement(v)?v:{message:v};this.create({id:o,type:"error",description:w,...D})}else if(i.success!==void 0){f=!1;const v=typeof i.success=="function"?await i.success(m):i.success,w=typeof i.description=="function"?await i.description(m):i.description,D=typeof v=="object"&&!J.isValidElement(v)?v:{message:v};this.create({id:o,type:"success",description:w,...D})}}).catch(async m=>{if(d=["reject",m],i.error!==void 0){f=!1;const y=typeof i.error=="function"?await i.error(m):i.error,v=typeof i.description=="function"?await i.description(m):i.description,A=typeof y=="object"&&!J.isValidElement(y)?y:{message:y};this.create({id:o,type:"error",description:v,...A})}}).finally(()=>{f&&(this.dismiss(o),o=void 0),i.finally==null||i.finally.call(i)}),p=()=>new Promise((m,y)=>h.then(()=>d[0]==="reject"?y(d[1]):m(d[1])).catch(y));return typeof o!="string"&&typeof o!="number"?{unwrap:p}:Object.assign(o,{unwrap:p})},this.custom=(r,i)=>{const o=(i==null?void 0:i.id)||Sf++;return this.create({jsx:r(o),id:o,...i}),o},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const $e=new dx,hx=(a,r)=>{const i=(r==null?void 0:r.id)||Sf++;return $e.addToast({title:a,...r,id:i}),i},mx=a=>a&&typeof a=="object"&&"ok"in a&&typeof a.ok=="boolean"&&"status"in a&&typeof a.status=="number",gx=hx,vx=()=>$e.toasts,px=()=>$e.getActiveToasts(),ui=Object.assign(gx,{success:$e.success,info:$e.info,warning:$e.warning,error:$e.error,custom:$e.custom,message:$e.message,promise:$e.promise,dismiss:$e.dismiss,loading:$e.loading},{getHistory:vx,getToasts:px});nx("[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 Vo(a){return a.label!==void 0}const yx=3,bx="24px",Sx="16px",vv=4e3,Ex=356,xx=14,wx=45,Rx=200;function Ln(...a){return a.filter(Boolean).join(" ")}function Tx(a){const[r,i]=a.split("-"),o=[];return r&&o.push(r),i&&o.push(i),o}const Ax=a=>{var r,i,o,c,f,d,h,p,m;const{invert:y,toast:v,unstyled:w,interacting:A,setHeights:D,visibleToasts:x,heights:T,index:M,toasts:F,expanded:Q,removeToast:W,defaultRichColors:j,closeButton:tt,style:$,cancelButtonStyle:H,actionButtonStyle:I,className:at="",descriptionClassName:lt="",duration:st,position:ct,gap:mt,expandByDefault:gt,classNames:C,icons:Z,closeButtonAriaLabel:q="Close toast"}=a,[ut,R]=J.useState(null),[L,G]=J.useState(null),[Y,et]=J.useState(!1),[ht,nt]=J.useState(!1),[St,Et]=J.useState(!1),[kt,yt]=J.useState(!1),[Se,oe]=J.useState(!1),[Dt,xt]=J.useState(0),[Pt,Bt]=J.useState(0),qt=J.useRef(v.duration||st||vv),Xe=J.useRef(null),zt=J.useRef(null),Zt=M===0,me=M+1<=x,se=v.type,ke=v.dismissible!==!1,Yn=v.className||"",Te=v.descriptionClassName||"",ce=J.useMemo(()=>T.findIndex(ft=>ft.toastId===v.id)||0,[T,v.id]),ne=J.useMemo(()=>{var ft;return(ft=v.closeButton)!=null?ft:tt},[v.closeButton,tt]),pe=J.useMemo(()=>v.duration||st||vv,[v.duration,st]),te=J.useRef(0),Sn=J.useRef(0),Pe=J.useRef(0),En=J.useRef(null),[oa,sa]=ct.split("-"),Qe=J.useMemo(()=>T.reduce((ft,Xt,Lt)=>Lt>=ce?ft:ft+Xt.height,0),[T,ce]),Nn=fx(),Vn=v.invert||y,ua=se==="loading";Sn.current=J.useMemo(()=>ce*mt+Qe,[ce,Qe]),J.useEffect(()=>{qt.current=pe},[pe]),J.useEffect(()=>{et(!0)},[]),J.useEffect(()=>{const ft=zt.current;if(ft){const Xt=ft.getBoundingClientRect().height;return Bt(Xt),D(Lt=>[{toastId:v.id,height:Xt,position:v.position},...Lt]),()=>D(Lt=>Lt.filter(Yt=>Yt.toastId!==v.id))}},[D,v.id]),J.useLayoutEffect(()=>{if(!Y)return;const ft=zt.current,Xt=ft.style.height;ft.style.height="auto";const Lt=ft.getBoundingClientRect().height;ft.style.height=Xt,Bt(Lt),D(Yt=>Yt.find(ae=>ae.toastId===v.id)?Yt.map(ae=>ae.toastId===v.id?{...ae,height:Lt}:ae):[{toastId:v.id,height:Lt,position:v.position},...Yt])},[Y,v.title,v.description,D,v.id]);const tn=J.useCallback(()=>{nt(!0),xt(Sn.current),D(ft=>ft.filter(Xt=>Xt.toastId!==v.id)),setTimeout(()=>{W(v)},Rx)},[v,W,D,Sn]);J.useEffect(()=>{if(v.promise&&se==="loading"||v.duration===1/0||v.type==="loading")return;let ft;return Q||A||Nn?(()=>{if(Pe.current<te.current){const Yt=new Date().getTime()-te.current;qt.current=qt.current-Yt}Pe.current=new Date().getTime()})():(()=>{qt.current!==1/0&&(te.current=new Date().getTime(),ft=setTimeout(()=>{v.onAutoClose==null||v.onAutoClose.call(v,v),tn()},qt.current))})(),()=>clearTimeout(ft)},[Q,A,v,se,Nn,tn]),J.useEffect(()=>{v.delete&&tn()},[tn,v.delete]);function dl(){var ft;if(Z!=null&&Z.loading){var Xt;return J.createElement("div",{className:Ln(C==null?void 0:C.loader,v==null||(Xt=v.classNames)==null?void 0:Xt.loader,"sonner-loader"),"data-visible":se==="loading"},Z.loading)}return J.createElement(rx,{className:Ln(C==null?void 0:C.loader,v==null||(ft=v.classNames)==null?void 0:ft.loader),visible:se==="loading"})}const qa=v.icon||(Z==null?void 0:Z[se])||ax(se);var re,Ae;return J.createElement("li",{tabIndex:0,ref:zt,className:Ln(at,Yn,C==null?void 0:C.toast,v==null||(r=v.classNames)==null?void 0:r.toast,C==null?void 0:C.default,C==null?void 0:C[se],v==null||(i=v.classNames)==null?void 0:i[se]),"data-sonner-toast":"","data-rich-colors":(re=v.richColors)!=null?re:j,"data-styled":!(v.jsx||v.unstyled||w),"data-mounted":Y,"data-promise":!!v.promise,"data-swiped":Se,"data-removed":ht,"data-visible":me,"data-y-position":oa,"data-x-position":sa,"data-index":M,"data-front":Zt,"data-swiping":St,"data-dismissible":ke,"data-type":se,"data-invert":Vn,"data-swipe-out":kt,"data-swipe-direction":L,"data-expanded":!!(Q||gt&&Y),style:{"--index":M,"--toasts-before":M,"--z-index":F.length-M,"--offset":`${ht?Dt:Sn.current}px`,"--initial-height":gt?"auto":`${Pt}px`,...$,...v.style},onDragEnd:()=>{Et(!1),R(null),En.current=null},onPointerDown:ft=>{ua||!ke||(Xe.current=new Date,xt(Sn.current),ft.target.setPointerCapture(ft.pointerId),ft.target.tagName!=="BUTTON"&&(Et(!0),En.current={x:ft.clientX,y:ft.clientY}))},onPointerUp:()=>{var ft,Xt,Lt;if(kt||!ke)return;En.current=null;const Yt=Number(((ft=zt.current)==null?void 0:ft.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Oe=Number(((Xt=zt.current)==null?void 0:Xt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ae=new Date().getTime()-((Lt=Xe.current)==null?void 0:Lt.getTime()),Tt=ut==="x"?Yt:Oe,Qt=Math.abs(Tt)/ae;if(Math.abs(Tt)>=wx||Qt>.11){xt(Sn.current),v.onDismiss==null||v.onDismiss.call(v,v),G(ut==="x"?Yt>0?"right":"left":Oe>0?"down":"up"),tn(),yt(!0);return}else{var Nt,Ft;(Nt=zt.current)==null||Nt.style.setProperty("--swipe-amount-x","0px"),(Ft=zt.current)==null||Ft.style.setProperty("--swipe-amount-y","0px")}oe(!1),Et(!1),R(null)},onPointerMove:ft=>{var Xt,Lt,Yt;if(!En.current||!ke||((Xt=window.getSelection())==null?void 0:Xt.toString().length)>0)return;const ae=ft.clientY-En.current.y,Tt=ft.clientX-En.current.x;var Qt;const Nt=(Qt=a.swipeDirections)!=null?Qt:Tx(ct);!ut&&(Math.abs(Tt)>1||Math.abs(ae)>1)&&R(Math.abs(Tt)>Math.abs(ae)?"x":"y");let Ft={x:0,y:0};const un=qe=>1/(1.5+Math.abs(qe)/20);if(ut==="y"){if(Nt.includes("top")||Nt.includes("bottom"))if(Nt.includes("top")&&ae<0||Nt.includes("bottom")&&ae>0)Ft.y=ae;else{const qe=ae*un(ae);Ft.y=Math.abs(qe)<Math.abs(ae)?qe:ae}}else if(ut==="x"&&(Nt.includes("left")||Nt.includes("right")))if(Nt.includes("left")&&Tt<0||Nt.includes("right")&&Tt>0)Ft.x=Tt;else{const qe=Tt*un(Tt);Ft.x=Math.abs(qe)<Math.abs(Tt)?qe:Tt}(Math.abs(Ft.x)>0||Math.abs(Ft.y)>0)&&oe(!0),(Lt=zt.current)==null||Lt.style.setProperty("--swipe-amount-x",`${Ft.x}px`),(Yt=zt.current)==null||Yt.style.setProperty("--swipe-amount-y",`${Ft.y}px`)}},ne&&!v.jsx&&se!=="loading"?J.createElement("button",{"aria-label":q,"data-disabled":ua,"data-close-button":!0,onClick:ua||!ke?()=>{}:()=>{tn(),v.onDismiss==null||v.onDismiss.call(v,v)},className:Ln(C==null?void 0:C.closeButton,v==null||(o=v.classNames)==null?void 0:o.closeButton)},(Ae=Z==null?void 0:Z.close)!=null?Ae:cx):null,(se||v.icon||v.promise)&&v.icon!==null&&((Z==null?void 0:Z[se])!==null||v.icon)?J.createElement("div",{"data-icon":"",className:Ln(C==null?void 0:C.icon,v==null||(c=v.classNames)==null?void 0:c.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||dl():null,v.type!=="loading"?qa:null):null,J.createElement("div",{"data-content":"",className:Ln(C==null?void 0:C.content,v==null||(f=v.classNames)==null?void 0:f.content)},J.createElement("div",{"data-title":"",className:Ln(C==null?void 0:C.title,v==null||(d=v.classNames)==null?void 0:d.title)},v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title),v.description?J.createElement("div",{"data-description":"",className:Ln(lt,Te,C==null?void 0:C.description,v==null||(h=v.classNames)==null?void 0:h.description)},typeof v.description=="function"?v.description():v.description):null),J.isValidElement(v.cancel)?v.cancel:v.cancel&&Vo(v.cancel)?J.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||H,onClick:ft=>{Vo(v.cancel)&&ke&&(v.cancel.onClick==null||v.cancel.onClick.call(v.cancel,ft),tn())},className:Ln(C==null?void 0:C.cancelButton,v==null||(p=v.classNames)==null?void 0:p.cancelButton)},v.cancel.label):null,J.isValidElement(v.action)?v.action:v.action&&Vo(v.action)?J.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||I,onClick:ft=>{Vo(v.action)&&(v.action.onClick==null||v.action.onClick.call(v.action,ft),!ft.defaultPrevented&&tn())},className:Ln(C==null?void 0:C.actionButton,v==null||(m=v.classNames)==null?void 0:m.actionButton)},v.action.label):null)};function pv(){if(typeof window>"u"||typeof document>"u")return"ltr";const a=document.documentElement.getAttribute("dir");return a==="auto"||!a?window.getComputedStyle(document.documentElement).direction:a}function Ox(a,r){const i={};return[a,r].forEach((o,c)=>{const f=c===1,d=f?"--mobile-offset":"--offset",h=f?Sx:bx;function p(m){["top","right","bottom","left"].forEach(y=>{i[`${d}-${y}`]=typeof m=="number"?`${m}px`:m})}typeof o=="number"||typeof o=="string"?p(o):typeof o=="object"?["top","right","bottom","left"].forEach(m=>{o[m]===void 0?i[`${d}-${m}`]=h:i[`${d}-${m}`]=typeof o[m]=="number"?`${o[m]}px`:o[m]}):p(h)}),i}const Dx=J.forwardRef(function(r,i){const{invert:o,position:c="bottom-right",hotkey:f=["altKey","KeyT"],expand:d,closeButton:h,className:p,offset:m,mobileOffset:y,theme:v="light",richColors:w,duration:A,style:D,visibleToasts:x=yx,toastOptions:T,dir:M=pv(),gap:F=xx,icons:Q,containerAriaLabel:W="Notifications"}=r,[j,tt]=J.useState([]),$=J.useMemo(()=>Array.from(new Set([c].concat(j.filter(L=>L.position).map(L=>L.position)))),[j,c]),[H,I]=J.useState([]),[at,lt]=J.useState(!1),[st,ct]=J.useState(!1),[mt,gt]=J.useState(v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),C=J.useRef(null),Z=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),q=J.useRef(null),ut=J.useRef(!1),R=J.useCallback(L=>{tt(G=>{var Y;return(Y=G.find(et=>et.id===L.id))!=null&&Y.delete||$e.dismiss(L.id),G.filter(({id:et})=>et!==L.id)})},[]);return J.useEffect(()=>$e.subscribe(L=>{if(L.dismiss){requestAnimationFrame(()=>{tt(G=>G.map(Y=>Y.id===L.id?{...Y,delete:!0}:Y))});return}setTimeout(()=>{ap.flushSync(()=>{tt(G=>{const Y=G.findIndex(et=>et.id===L.id);return Y!==-1?[...G.slice(0,Y),{...G[Y],...L},...G.slice(Y+1)]:[L,...G]})})})}),[j]),J.useEffect(()=>{if(v!=="system"){gt(v);return}if(v==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?gt("dark"):gt("light")),typeof window>"u")return;const L=window.matchMedia("(prefers-color-scheme: dark)");try{L.addEventListener("change",({matches:G})=>{gt(G?"dark":"light")})}catch{L.addListener(({matches:Y})=>{try{gt(Y?"dark":"light")}catch(et){console.error(et)}})}},[v]),J.useEffect(()=>{j.length<=1&&lt(!1)},[j]),J.useEffect(()=>{const L=G=>{var Y;if(f.every(nt=>G[nt]||G.code===nt)){var ht;lt(!0),(ht=C.current)==null||ht.focus()}G.code==="Escape"&&(document.activeElement===C.current||(Y=C.current)!=null&&Y.contains(document.activeElement))&&lt(!1)};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[f]),J.useEffect(()=>{if(C.current)return()=>{q.current&&(q.current.focus({preventScroll:!0}),q.current=null,ut.current=!1)}},[C.current]),J.createElement("section",{ref:i,"aria-label":`${W} ${Z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},$.map((L,G)=>{var Y;const[et,ht]=L.split("-");return j.length?J.createElement("ol",{key:L,dir:M==="auto"?pv():M,tabIndex:-1,ref:C,className:p,"data-sonner-toaster":!0,"data-sonner-theme":mt,"data-y-position":et,"data-lifted":at&&j.length>1&&!d,"data-x-position":ht,style:{"--front-toast-height":`${((Y=H[0])==null?void 0:Y.height)||0}px`,"--width":`${Ex}px`,"--gap":`${F}px`,...D,...Ox(m,y)},onBlur:nt=>{ut.current&&!nt.currentTarget.contains(nt.relatedTarget)&&(ut.current=!1,q.current&&(q.current.focus({preventScroll:!0}),q.current=null))},onFocus:nt=>{nt.target instanceof HTMLElement&&nt.target.dataset.dismissible==="false"||ut.current||(ut.current=!0,q.current=nt.relatedTarget)},onMouseEnter:()=>lt(!0),onMouseMove:()=>lt(!0),onMouseLeave:()=>{st||lt(!1)},onDragEnd:()=>lt(!1),onPointerDown:nt=>{nt.target instanceof HTMLElement&&nt.target.dataset.dismissible==="false"||ct(!0)},onPointerUp:()=>ct(!1)},j.filter(nt=>!nt.position&&G===0||nt.position===L).map((nt,St)=>{var Et,kt;return J.createElement(Ax,{key:nt.id,icons:Q,index:St,toast:nt,defaultRichColors:w,duration:(Et=T==null?void 0:T.duration)!=null?Et:A,className:T==null?void 0:T.className,descriptionClassName:T==null?void 0:T.descriptionClassName,invert:o,visibleToasts:x,closeButton:(kt=T==null?void 0:T.closeButton)!=null?kt:h,interacting:st,position:L,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:R,toasts:j.filter(yt=>yt.position==nt.position),heights:H.filter(yt=>yt.position==nt.position),setHeights:I,expandByDefault:d,gap:F,expanded:at,swipeDirections:r.swipeDirections})})):null}))}),yv=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,bv=zp,Cx=(a,r)=>i=>{var o;if((r==null?void 0:r.variants)==null)return bv(a,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:c,defaultVariants:f}=r,d=Object.keys(c).map(m=>{const y=i==null?void 0:i[m],v=f==null?void 0:f[m];if(y===null)return null;const w=yv(y)||yv(v);return c[m][w]}),h=i&&Object.entries(i).reduce((m,y)=>{let[v,w]=y;return w===void 0||(m[v]=w),m},{}),p=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((m,y)=>{let{class:v,className:w,...A}=y;return Object.entries(A).every(D=>{let[x,T]=D;return Array.isArray(T)?T.includes({...f,...h}[x]):{...f,...h}[x]===T})?[...m,v,w]:m},[]);return bv(a,d,p,i==null?void 0:i.class,i==null?void 0:i.className)},Nx=Cx("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function ar({className:a,variant:r,size:i,asChild:o=!1,...c}){const f=o?uE:"button";return P.jsx(f,{"data-slot":"button",className:fl(Nx({variant:r,size:i,className:a})),...c})}var Kc={exports:{}},Jc={};/**
 * @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 Sv;function Mx(){if(Sv)return Jc;Sv=1;var a=ds();function r(v,w){return v===w&&(v!==0||1/v===1/w)||v!==v&&w!==w}var i=typeof Object.is=="function"?Object.is:r,o=a.useState,c=a.useEffect,f=a.useLayoutEffect,d=a.useDebugValue;function h(v,w){var A=w(),D=o({inst:{value:A,getSnapshot:w}}),x=D[0].inst,T=D[1];return f(function(){x.value=A,x.getSnapshot=w,p(x)&&T({inst:x})},[v,A,w]),c(function(){return p(x)&&T({inst:x}),v(function(){p(x)&&T({inst:x})})},[v]),d(A),A}function p(v){var w=v.getSnapshot;v=v.value;try{var A=w();return!i(v,A)}catch{return!0}}function m(v,w){return w()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:h;return Jc.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:y,Jc}var Ev;function _x(){return Ev||(Ev=1,Kc.exports=Mx()),Kc.exports}var zx=_x();const Xp=0,Qp=1,Zp=2,xv=3;var wv=Object.prototype.hasOwnProperty;function Ef(a,r){var i,o;if(a===r)return!0;if(a&&r&&(i=a.constructor)===r.constructor){if(i===Date)return a.getTime()===r.getTime();if(i===RegExp)return a.toString()===r.toString();if(i===Array){if((o=a.length)===r.length)for(;o--&&Ef(a[o],r[o]););return o===-1}if(!i||typeof a=="object"){o=0;for(i in a)if(wv.call(a,i)&&++o&&!wv.call(r,i)||!(i in r)||!Ef(a[i],r[i]))return!1;return Object.keys(r).length===o}}return a!==a&&r!==r}const ia=new WeakMap,La=()=>{},Ve=La(),xf=Object,jt=a=>a===Ve,Hn=a=>typeof a=="function",ka=(a,r)=>({...a,...r}),Kp=a=>Hn(a.then),Fc={},Go={},Kf="undefined",Ri=typeof window!=Kf,wf=typeof document!=Kf,Ux=Ri&&"Deno"in window,Bx=()=>Ri&&typeof window.requestAnimationFrame!=Kf,Jp=(a,r)=>{const i=ia.get(a);return[()=>!jt(r)&&a.get(r)||Fc,o=>{if(!jt(r)){const c=a.get(r);r in Go||(Go[r]=c),i[5](r,ka(c,o),c||Fc)}},i[6],()=>!jt(r)&&r in Go?Go[r]:!jt(r)&&a.get(r)||Fc]};let Rf=!0;const Lx=()=>Rf,[Tf,Af]=Ri&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[La,La],jx=()=>{const a=wf&&document.visibilityState;return jt(a)||a!=="hidden"},Hx=a=>(wf&&document.addEventListener("visibilitychange",a),Tf("focus",a),()=>{wf&&document.removeEventListener("visibilitychange",a),Af("focus",a)}),kx=a=>{const r=()=>{Rf=!0,a()},i=()=>{Rf=!1};return Tf("online",r),Tf("offline",i),()=>{Af("online",r),Af("offline",i)}},qx={isOnline:Lx,isVisible:jx},Yx={initFocus:Hx,initReconnect:kx},Rv=!J.useId,vi=!Ri||Ux,Vx=a=>Bx()?window.requestAnimationFrame(a):setTimeout(a,1),$c=vi?S.useEffect:S.useLayoutEffect,Wc=typeof navigator<"u"&&navigator.connection,Tv=!vi&&Wc&&(["slow-2g","2g"].includes(Wc.effectiveType)||Wc.saveData),Xo=new WeakMap,Ic=(a,r)=>xf.prototype.toString.call(a)===`[object ${r}]`;let Gx=0;const Of=a=>{const r=typeof a,i=Ic(a,"Date"),o=Ic(a,"RegExp"),c=Ic(a,"Object");let f,d;if(xf(a)===a&&!i&&!o){if(f=Xo.get(a),f)return f;if(f=++Gx+"~",Xo.set(a,f),Array.isArray(a)){for(f="@",d=0;d<a.length;d++)f+=Of(a[d])+",";Xo.set(a,f)}if(c){f="#";const h=xf.keys(a).sort();for(;!jt(d=h.pop());)jt(a[d])||(f+=d+":"+Of(a[d])+",");Xo.set(a,f)}}else f=i?a.toJSON():r=="symbol"?a.toString():r=="string"?JSON.stringify(a):""+a;return f},Jf=a=>{if(Hn(a))try{a=a()}catch{a=""}const r=a;return a=typeof a=="string"?a:(Array.isArray(a)?a.length:a)?Of(a):"",[a,r]};let Xx=0;const Df=()=>++Xx;async function Fp(...a){const[r,i,o,c]=a,f=ka({populateCache:!0,throwOnError:!0},typeof c=="boolean"?{revalidate:c}:c||{});let d=f.populateCache;const h=f.rollbackOnError;let p=f.optimisticData;const m=w=>typeof h=="function"?h(w):h!==!1,y=f.throwOnError;if(Hn(i)){const w=i,A=[],D=r.keys();for(const x of D)!/^\$(inf|sub)\$/.test(x)&&w(r.get(x)._k)&&A.push(x);return Promise.all(A.map(v))}return v(i);async function v(w){const[A]=Jf(w);if(!A)return;const[D,x]=Jp(r,A),[T,M,F,Q]=ia.get(r),W=()=>{const ct=T[A];return(Hn(f.revalidate)?f.revalidate(D().data,w):f.revalidate!==!1)&&(delete F[A],delete Q[A],ct&&ct[0])?ct[0](Zp).then(()=>D().data):D().data};if(a.length<3)return W();let j=o,tt;const $=Df();M[A]=[$,0];const H=!jt(p),I=D(),at=I.data,lt=I._c,st=jt(lt)?at:lt;if(H&&(p=Hn(p)?p(st,at):p,x({data:p,_c:st})),Hn(j))try{j=j(st)}catch(ct){tt=ct}if(j&&Kp(j))if(j=await j.catch(ct=>{tt=ct}),$!==M[A][0]){if(tt)throw tt;return j}else tt&&H&&m(tt)&&(d=!0,x({data:st,_c:Ve}));if(d&&!tt)if(Hn(d)){const ct=d(j,st);x({data:ct,error:Ve,_c:Ve})}else x({data:j,error:Ve,_c:Ve});if(M[A][1]=Df(),Promise.resolve(W()).then(()=>{x({_c:Ve})}),tt){if(y)throw tt;return}return j}}const Av=(a,r)=>{for(const i in a)a[i][0]&&a[i][0](r)},Qx=(a,r)=>{if(!ia.has(a)){const i=ka(Yx,r),o=Object.create(null),c=Fp.bind(Ve,a);let f=La;const d=Object.create(null),h=(y,v)=>{const w=d[y]||[];return d[y]=w,w.push(v),()=>w.splice(w.indexOf(v),1)},p=(y,v,w)=>{a.set(y,v);const A=d[y];if(A)for(const D of A)D(v,w)},m=()=>{if(!ia.has(a)&&(ia.set(a,[o,Object.create(null),Object.create(null),Object.create(null),c,p,h]),!vi)){const y=i.initFocus(setTimeout.bind(Ve,Av.bind(Ve,o,Xp))),v=i.initReconnect(setTimeout.bind(Ve,Av.bind(Ve,o,Qp)));f=()=>{y&&y(),v&&v(),ia.delete(a)}}};return m(),[a,c,m,f]}return[a,ia.get(a)[4]]},Zx=(a,r,i,o,c)=>{const f=i.errorRetryCount,d=c.retryCount,h=~~((Math.random()+.5)*(1<<(d<8?d:8)))*i.errorRetryInterval;!jt(f)&&d>f||setTimeout(o,h,c)},Kx=Ef,[$p,Jx]=Qx(new Map),Fx=ka({onLoadingSlow:La,onSuccess:La,onError:La,onErrorRetry:Zx,onDiscarded:La,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Tv?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Tv?5e3:3e3,compare:Kx,isPaused:()=>!1,cache:$p,mutate:Jx,fallback:{}},qx),$x=(a,r)=>{const i=ka(a,r);if(r){const{use:o,fallback:c}=a,{use:f,fallback:d}=r;o&&f&&(i.use=o.concat(f)),c&&d&&(i.fallback=ka(c,d))}return i},Wx=S.createContext({}),Ix="$inf$",Wp=Ri&&window.__SWR_DEVTOOLS_USE__,Px=Wp?window.__SWR_DEVTOOLS_USE__:[],tw=()=>{Wp&&(window.__SWR_DEVTOOLS_REACT__=J)},ew=a=>Hn(a[1])?[a[0],a[1],a[2]||{}]:[a[0],null,(a[1]===null?a[2]:a[1])||{}],nw=()=>ka(Fx,S.useContext(Wx)),aw=a=>(r,i,o)=>a(r,i&&((...f)=>{const[d]=Jf(r),[,,,h]=ia.get($p);if(d.startsWith(Ix))return i(...f);const p=h[d];return jt(p)?i(...f):(delete h[d],p)}),o),lw=Px.concat(aw),rw=a=>function(...i){const o=nw(),[c,f,d]=ew(i),h=$x(o,d);let p=a;const{use:m}=h,y=(m||[]).concat(lw);for(let v=y.length;v--;)p=y[v](p);return p(c,f||h.fetcher||null,h)},iw=(a,r,i)=>{const o=r[a]||(r[a]=[]);return o.push(i),()=>{const c=o.indexOf(i);c>=0&&(o[c]=o[o.length-1],o.pop())}};tw();const Pc=J.use||(a=>{switch(a.status){case"pending":throw a;case"fulfilled":return a.value;case"rejected":throw a.reason;default:throw a.status="pending",a.then(r=>{a.status="fulfilled",a.value=r},r=>{a.status="rejected",a.reason=r}),a}}),tf={dedupe:!0},ow=(a,r,i)=>{const{cache:o,compare:c,suspense:f,fallbackData:d,revalidateOnMount:h,revalidateIfStale:p,refreshInterval:m,refreshWhenHidden:y,refreshWhenOffline:v,keepPreviousData:w}=i,[A,D,x,T]=ia.get(o),[M,F]=Jf(a),Q=S.useRef(!1),W=S.useRef(!1),j=S.useRef(M),tt=S.useRef(r),$=S.useRef(i),H=()=>$.current,I=()=>H().isVisible()&&H().isOnline(),[at,lt,st,ct]=Jp(o,M),mt=S.useRef({}).current,gt=jt(d)?jt(i.fallback)?Ve:i.fallback[M]:d,C=(Dt,xt)=>{for(const Pt in mt){const Bt=Pt;if(Bt==="data"){if(!c(Dt[Bt],xt[Bt])&&(!jt(Dt[Bt])||!c(ht,xt[Bt])))return!1}else if(xt[Bt]!==Dt[Bt])return!1}return!0},Z=S.useMemo(()=>{const Dt=!M||!r?!1:jt(h)?H().isPaused()||f?!1:p!==!1:h,xt=Zt=>{const me=ka(Zt);return delete me._k,Dt?{isValidating:!0,isLoading:!0,...me}:me},Pt=at(),Bt=ct(),qt=xt(Pt),Xe=Pt===Bt?qt:xt(Bt);let zt=qt;return[()=>{const Zt=xt(at());return C(Zt,zt)?(zt.data=Zt.data,zt.isLoading=Zt.isLoading,zt.isValidating=Zt.isValidating,zt.error=Zt.error,zt):(zt=Zt,Zt)},()=>Xe]},[o,M]),q=zx.useSyncExternalStore(S.useCallback(Dt=>st(M,(xt,Pt)=>{C(Pt,xt)||Dt()}),[o,M]),Z[0],Z[1]),ut=!Q.current,R=A[M]&&A[M].length>0,L=q.data,G=jt(L)?gt&&Kp(gt)?Pc(gt):gt:L,Y=q.error,et=S.useRef(G),ht=w?jt(L)?jt(et.current)?G:et.current:L:G,nt=R&&!jt(Y)?!1:ut&&!jt(h)?h:H().isPaused()?!1:f?jt(G)?!1:p:jt(G)||p,St=!!(M&&r&&ut&&nt),Et=jt(q.isValidating)?St:q.isValidating,kt=jt(q.isLoading)?St:q.isLoading,yt=S.useCallback(async Dt=>{const xt=tt.current;if(!M||!xt||W.current||H().isPaused())return!1;let Pt,Bt,qt=!0;const Xe=Dt||{},zt=!x[M]||!Xe.dedupe,Zt=()=>Rv?!W.current&&M===j.current&&Q.current:M===j.current,me={isValidating:!1,isLoading:!1},se=()=>{lt(me)},ke=()=>{const Te=x[M];Te&&Te[1]===Bt&&delete x[M]},Yn={isValidating:!0};jt(at().data)&&(Yn.isLoading=!0);try{if(zt&&(lt(Yn),i.loadingTimeout&&jt(at().data)&&setTimeout(()=>{qt&&Zt()&&H().onLoadingSlow(M,i)},i.loadingTimeout),x[M]=[xt(F),Df()]),[Pt,Bt]=x[M],Pt=await Pt,zt&&setTimeout(ke,i.dedupingInterval),!x[M]||x[M][1]!==Bt)return zt&&Zt()&&H().onDiscarded(M),!1;me.error=Ve;const Te=D[M];if(!jt(Te)&&(Bt<=Te[0]||Bt<=Te[1]||Te[1]===0))return se(),zt&&Zt()&&H().onDiscarded(M),!1;const ce=at().data;me.data=c(ce,Pt)?ce:Pt,zt&&Zt()&&H().onSuccess(Pt,M,i)}catch(Te){ke();const ce=H(),{shouldRetryOnError:ne}=ce;ce.isPaused()||(me.error=Te,zt&&Zt()&&(ce.onError(Te,M,ce),(ne===!0||Hn(ne)&&ne(Te))&&(!H().revalidateOnFocus||!H().revalidateOnReconnect||I())&&ce.onErrorRetry(Te,M,ce,pe=>{const te=A[M];te&&te[0]&&te[0](xv,pe)},{retryCount:(Xe.retryCount||0)+1,dedupe:!0})))}return qt=!1,se(),!0},[M,o]),Se=S.useCallback((...Dt)=>Fp(o,j.current,...Dt),[]);if($c(()=>{tt.current=r,$.current=i,jt(L)||(et.current=L)}),$c(()=>{if(!M)return;const Dt=yt.bind(Ve,tf);let xt=0;H().revalidateOnFocus&&(xt=Date.now()+H().focusThrottleInterval);const Bt=iw(M,A,(qt,Xe={})=>{if(qt==Xp){const zt=Date.now();H().revalidateOnFocus&&zt>xt&&I()&&(xt=zt+H().focusThrottleInterval,Dt())}else if(qt==Qp)H().revalidateOnReconnect&&I()&&Dt();else{if(qt==Zp)return yt();if(qt==xv)return yt(Xe)}});return W.current=!1,j.current=M,Q.current=!0,lt({_k:F}),nt&&(jt(G)||vi?Dt():Vx(Dt)),()=>{W.current=!0,Bt()}},[M]),$c(()=>{let Dt;function xt(){const Bt=Hn(m)?m(at().data):m;Bt&&Dt!==-1&&(Dt=setTimeout(Pt,Bt))}function Pt(){!at().error&&(y||H().isVisible())&&(v||H().isOnline())?yt(tf).then(xt):xt()}return xt(),()=>{Dt&&(clearTimeout(Dt),Dt=-1)}},[m,y,v,M]),S.useDebugValue(ht),f&&jt(G)&&M){if(!Rv&&vi)throw new Error("Fallback data is required when using Suspense in SSR.");tt.current=r,$.current=i,W.current=!1;const Dt=T[M];if(!jt(Dt)){const xt=Se(Dt);Pc(xt)}if(jt(Y)){const xt=yt(tf);jt(ht)||(xt.status="fulfilled",xt.value=!0),Pc(xt)}else throw Y}return{mutate:Se,get data(){return mt.data=!0,ht},get error(){return mt.error=!0,Y},get isValidating(){return mt.isValidating=!0,Et},get isLoading(){return mt.isLoading=!0,kt}}},sw=rw(ow);function ja(a,r,{checkForDefaultPrevented:i=!0}={}){return function(c){if(a==null||a(c),i===!1||!c.defaultPrevented)return r==null?void 0:r(c)}}function uw(a,r){const i=S.createContext(r),o=f=>{const{children:d,...h}=f,p=S.useMemo(()=>h,Object.values(h));return P.jsx(i.Provider,{value:p,children:d})};o.displayName=a+"Provider";function c(f){const d=S.useContext(i);if(d)return d;if(r!==void 0)return r;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[o,c]}function cw(a,r=[]){let i=[];function o(f,d){const h=S.createContext(d),p=i.length;i=[...i,d];const m=v=>{var M;const{scope:w,children:A,...D}=v,x=((M=w==null?void 0:w[a])==null?void 0:M[p])||h,T=S.useMemo(()=>D,Object.values(D));return P.jsx(x.Provider,{value:T,children:A})};m.displayName=f+"Provider";function y(v,w){var x;const A=((x=w==null?void 0:w[a])==null?void 0:x[p])||h,D=S.useContext(A);if(D)return D;if(d!==void 0)return d;throw new Error(`\`${v}\` must be used within \`${f}\``)}return[m,y]}const c=()=>{const f=i.map(d=>S.createContext(d));return function(h){const p=(h==null?void 0:h[a])||f;return S.useMemo(()=>({[`__scope${a}`]:{...h,[a]:p}}),[h,p])}};return c.scopeName=a,[o,fw(c,...r)]}function fw(...a){const r=a[0];if(a.length===1)return r;const i=()=>{const o=a.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const d=o.reduce((h,{useScope:p,scopeName:m})=>{const v=p(f)[`__scope${m}`];return{...h,...v}},{});return S.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])}};return i.scopeName=r.scopeName,i}var pi=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},dw=ep[" useId ".trim().toString()]||(()=>{}),hw=0;function ef(a){const[r,i]=S.useState(dw());return pi(()=>{i(o=>o??String(hw++))},[a]),a||(r?`radix-${r}`:"")}var mw=ep[" useInsertionEffect ".trim().toString()]||pi;function gw({prop:a,defaultProp:r,onChange:i=()=>{},caller:o}){const[c,f,d]=vw({defaultProp:r,onChange:i}),h=a!==void 0,p=h?a:c;{const y=S.useRef(a!==void 0);S.useEffect(()=>{const v=y.current;v!==h&&console.warn(`${o} is changing from ${v?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=h},[h,o])}const m=S.useCallback(y=>{var v;if(h){const w=pw(y)?y(a):y;w!==a&&((v=d.current)==null||v.call(d,w))}else f(y)},[h,a,f,d]);return[p,m]}function vw({defaultProp:a,onChange:r}){const[i,o]=S.useState(a),c=S.useRef(i),f=S.useRef(r);return mw(()=>{f.current=r},[r]),S.useEffect(()=>{var d;c.current!==i&&((d=f.current)==null||d.call(f,i),c.current=i)},[i,c]),[i,o,f]}function pw(a){return typeof a=="function"}function yi(a){const r=S.useRef(a);return S.useEffect(()=>{r.current=a}),S.useMemo(()=>(...i)=>{var o;return(o=r.current)==null?void 0:o.call(r,...i)},[])}function yw(a,r=globalThis==null?void 0:globalThis.document){const i=yi(a);S.useEffect(()=>{const o=c=>{c.key==="Escape"&&i(c)};return r.addEventListener("keydown",o,{capture:!0}),()=>r.removeEventListener("keydown",o,{capture:!0})},[i,r])}var bw="DismissableLayer",Cf="dismissableLayer.update",Sw="dismissableLayer.pointerDownOutside",Ew="dismissableLayer.focusOutside",Ov,Ip=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pp=S.forwardRef((a,r)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:h,...p}=a,m=S.useContext(Ip),[y,v]=S.useState(null),w=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,A]=S.useState({}),D=cl(r,$=>v($)),x=Array.from(m.layers),[T]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),M=x.indexOf(T),F=y?x.indexOf(y):-1,Q=m.layersWithOutsidePointerEventsDisabled.size>0,W=F>=M,j=Rw($=>{const H=$.target,I=[...m.branches].some(at=>at.contains(H));!W||I||(c==null||c($),d==null||d($),$.defaultPrevented||h==null||h())},w),tt=Tw($=>{const H=$.target;[...m.branches].some(at=>at.contains(H))||(f==null||f($),d==null||d($),$.defaultPrevented||h==null||h())},w);return yw($=>{F===m.layers.size-1&&(o==null||o($),!$.defaultPrevented&&h&&($.preventDefault(),h()))},w),S.useEffect(()=>{if(y)return i&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Ov=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(y)),m.layers.add(y),Dv(),()=>{i&&m.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Ov)}},[y,w,i,m]),S.useEffect(()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),Dv())},[y,m]),S.useEffect(()=>{const $=()=>A({});return document.addEventListener(Cf,$),()=>document.removeEventListener(Cf,$)},[]),P.jsx(qn.div,{...p,ref:D,style:{pointerEvents:Q?W?"auto":"none":void 0,...a.style},onFocusCapture:ja(a.onFocusCapture,tt.onFocusCapture),onBlurCapture:ja(a.onBlurCapture,tt.onBlurCapture),onPointerDownCapture:ja(a.onPointerDownCapture,j.onPointerDownCapture)})});Pp.displayName=bw;var xw="DismissableLayerBranch",ww=S.forwardRef((a,r)=>{const i=S.useContext(Ip),o=S.useRef(null),c=cl(r,o);return S.useEffect(()=>{const f=o.current;if(f)return i.branches.add(f),()=>{i.branches.delete(f)}},[i.branches]),P.jsx(qn.div,{...a,ref:c})});ww.displayName=xw;function Rw(a,r=globalThis==null?void 0:globalThis.document){const i=yi(a),o=S.useRef(!1),c=S.useRef(()=>{});return S.useEffect(()=>{const f=h=>{if(h.target&&!o.current){let p=function(){ty(Sw,i,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(r.removeEventListener("click",c.current),c.current=p,r.addEventListener("click",c.current,{once:!0})):p()}else r.removeEventListener("click",c.current);o.current=!1},d=window.setTimeout(()=>{r.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),r.removeEventListener("pointerdown",f),r.removeEventListener("click",c.current)}},[r,i]),{onPointerDownCapture:()=>o.current=!0}}function Tw(a,r=globalThis==null?void 0:globalThis.document){const i=yi(a),o=S.useRef(!1);return S.useEffect(()=>{const c=f=>{f.target&&!o.current&&ty(Ew,i,{originalEvent:f},{discrete:!1})};return r.addEventListener("focusin",c),()=>r.removeEventListener("focusin",c)},[r,i]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Dv(){const a=new CustomEvent(Cf);document.dispatchEvent(a)}function ty(a,r,i,{discrete:o}){const c=i.originalEvent.target,f=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:i});r&&c.addEventListener(a,r,{once:!0}),o?vE(c,f):c.dispatchEvent(f)}var nf="focusScope.autoFocusOnMount",af="focusScope.autoFocusOnUnmount",Cv={bubbles:!1,cancelable:!0},Aw="FocusScope",ey=S.forwardRef((a,r)=>{const{loop:i=!1,trapped:o=!1,onMountAutoFocus:c,onUnmountAutoFocus:f,...d}=a,[h,p]=S.useState(null),m=yi(c),y=yi(f),v=S.useRef(null),w=cl(r,x=>p(x)),A=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(o){let x=function(Q){if(A.paused||!h)return;const W=Q.target;h.contains(W)?v.current=W:Ua(v.current,{select:!0})},T=function(Q){if(A.paused||!h)return;const W=Q.relatedTarget;W!==null&&(h.contains(W)||Ua(v.current,{select:!0}))},M=function(Q){if(document.activeElement===document.body)for(const j of Q)j.removedNodes.length>0&&Ua(h)};document.addEventListener("focusin",x),document.addEventListener("focusout",T);const F=new MutationObserver(M);return h&&F.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",T),F.disconnect()}}},[o,h,A.paused]),S.useEffect(()=>{if(h){Mv.add(A);const x=document.activeElement;if(!h.contains(x)){const M=new CustomEvent(nf,Cv);h.addEventListener(nf,m),h.dispatchEvent(M),M.defaultPrevented||(Ow(_w(ny(h)),{select:!0}),document.activeElement===x&&Ua(h))}return()=>{h.removeEventListener(nf,m),setTimeout(()=>{const M=new CustomEvent(af,Cv);h.addEventListener(af,y),h.dispatchEvent(M),M.defaultPrevented||Ua(x??document.body,{select:!0}),h.removeEventListener(af,y),Mv.remove(A)},0)}}},[h,m,y,A]);const D=S.useCallback(x=>{if(!i&&!o||A.paused)return;const T=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,M=document.activeElement;if(T&&M){const F=x.currentTarget,[Q,W]=Dw(F);Q&&W?!x.shiftKey&&M===W?(x.preventDefault(),i&&Ua(Q,{select:!0})):x.shiftKey&&M===Q&&(x.preventDefault(),i&&Ua(W,{select:!0})):M===F&&x.preventDefault()}},[i,o,A.paused]);return P.jsx(qn.div,{tabIndex:-1,...d,ref:w,onKeyDown:D})});ey.displayName=Aw;function Ow(a,{select:r=!1}={}){const i=document.activeElement;for(const o of a)if(Ua(o,{select:r}),document.activeElement!==i)return}function Dw(a){const r=ny(a),i=Nv(r,a),o=Nv(r.reverse(),a);return[i,o]}function ny(a){const r=[],i=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const c=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||c?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)r.push(i.currentNode);return r}function Nv(a,r){for(const i of a)if(!Cw(i,{upTo:r}))return i}function Cw(a,{upTo:r}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(r!==void 0&&a===r)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function Nw(a){return a instanceof HTMLInputElement&&"select"in a}function Ua(a,{select:r=!1}={}){if(a&&a.focus){const i=document.activeElement;a.focus({preventScroll:!0}),a!==i&&Nw(a)&&r&&a.select()}}var Mv=Mw();function Mw(){let a=[];return{add(r){const i=a[0];r!==i&&(i==null||i.pause()),a=_v(a,r),a.unshift(r)},remove(r){var i;a=_v(a,r),(i=a[0])==null||i.resume()}}}function _v(a,r){const i=[...a],o=i.indexOf(r);return o!==-1&&i.splice(o,1),i}function _w(a){return a.filter(r=>r.tagName!=="A")}var zw="Portal",ay=S.forwardRef((a,r)=>{var h;const{container:i,...o}=a,[c,f]=S.useState(!1);pi(()=>f(!0),[]);const d=i||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return d?ap.createPortal(P.jsx(qn.div,{...o,ref:r}),d):null});ay.displayName=zw;function Uw(a,r){return S.useReducer((i,o)=>r[i][o]??i,a)}var ys=a=>{const{present:r,children:i}=a,o=Bw(r),c=typeof i=="function"?i({present:o.isPresent}):S.Children.only(i),f=cl(o.ref,Lw(c));return typeof i=="function"||o.isPresent?S.cloneElement(c,{ref:f}):null};ys.displayName="Presence";function Bw(a){const[r,i]=S.useState(),o=S.useRef(null),c=S.useRef(a),f=S.useRef("none"),d=a?"mounted":"unmounted",[h,p]=Uw(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const m=Qo(o.current);f.current=h==="mounted"?m:"none"},[h]),pi(()=>{const m=o.current,y=c.current;if(y!==a){const w=f.current,A=Qo(m);a?p("MOUNT"):A==="none"||(m==null?void 0:m.display)==="none"?p("UNMOUNT"):p(y&&w!==A?"ANIMATION_OUT":"UNMOUNT"),c.current=a}},[a,p]),pi(()=>{if(r){let m;const y=r.ownerDocument.defaultView??window,v=A=>{const x=Qo(o.current).includes(A.animationName);if(A.target===r&&x&&(p("ANIMATION_END"),!c.current)){const T=r.style.animationFillMode;r.style.animationFillMode="forwards",m=y.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=T)})}},w=A=>{A.target===r&&(f.current=Qo(o.current))};return r.addEventListener("animationstart",w),r.addEventListener("animationcancel",v),r.addEventListener("animationend",v),()=>{y.clearTimeout(m),r.removeEventListener("animationstart",w),r.removeEventListener("animationcancel",v),r.removeEventListener("animationend",v)}}else p("ANIMATION_END")},[r,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:S.useCallback(m=>{o.current=m?getComputedStyle(m):null,i(m)},[])}}function Qo(a){return(a==null?void 0:a.animationName)||"none"}function Lw(a){var o,c;let r=(o=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:o.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?a.ref:(r=(c=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:c.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?a.props.ref:a.props.ref||a.ref)}var lf=0;function jw(){S.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??zv()),document.body.insertAdjacentElement("beforeend",a[1]??zv()),lf++,()=>{lf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),lf--}},[])}function zv(){const a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}var kn=function(){return kn=Object.assign||function(r){for(var i,o=1,c=arguments.length;o<c;o++){i=arguments[o];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(r[f]=i[f])}return r},kn.apply(this,arguments)};function ly(a,r){var i={};for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&r.indexOf(o)<0&&(i[o]=a[o]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,o=Object.getOwnPropertySymbols(a);c<o.length;c++)r.indexOf(o[c])<0&&Object.prototype.propertyIsEnumerable.call(a,o[c])&&(i[o[c]]=a[o[c]]);return i}function Hw(a,r,i){if(i||arguments.length===2)for(var o=0,c=r.length,f;o<c;o++)(f||!(o in r))&&(f||(f=Array.prototype.slice.call(r,0,o)),f[o]=r[o]);return a.concat(f||Array.prototype.slice.call(r))}var Io="right-scroll-bar-position",Po="width-before-scroll-bar",kw="with-scroll-bars-hidden",qw="--removed-body-scroll-bar-size";function rf(a,r){return typeof a=="function"?a(r):a&&(a.current=r),a}function Yw(a,r){var i=S.useState(function(){return{value:a,callback:r,facade:{get current(){return i.value},set current(o){var c=i.value;c!==o&&(i.value=o,i.callback(o,c))}}}})[0];return i.callback=r,i.facade}var Vw=typeof window<"u"?S.useLayoutEffect:S.useEffect,Uv=new WeakMap;function Gw(a,r){var i=Yw(null,function(o){return a.forEach(function(c){return rf(c,o)})});return Vw(function(){var o=Uv.get(i);if(o){var c=new Set(o),f=new Set(a),d=i.current;c.forEach(function(h){f.has(h)||rf(h,null)}),f.forEach(function(h){c.has(h)||rf(h,d)})}Uv.set(i,a)},[a]),i}function Xw(a){return a}function Qw(a,r){r===void 0&&(r=Xw);var i=[],o=!1,c={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:a},useMedium:function(f){var d=r(f,o);return i.push(d),function(){i=i.filter(function(h){return h!==d})}},assignSyncMedium:function(f){for(o=!0;i.length;){var d=i;i=[],d.forEach(f)}i={push:function(h){return f(h)},filter:function(){return i}}},assignMedium:function(f){o=!0;var d=[];if(i.length){var h=i;i=[],h.forEach(f),d=i}var p=function(){var y=d;d=[],y.forEach(f)},m=function(){return Promise.resolve().then(p)};m(),i={push:function(y){d.push(y),m()},filter:function(y){return d=d.filter(y),i}}}};return c}function Zw(a){a===void 0&&(a={});var r=Qw(null);return r.options=kn({async:!0,ssr:!1},a),r}var ry=function(a){var r=a.sideCar,i=ly(a,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return S.createElement(o,kn({},i))};ry.isSideCarExport=!0;function Kw(a,r){return a.useMedium(r),ry}var iy=Zw(),of=function(){},bs=S.forwardRef(function(a,r){var i=S.useRef(null),o=S.useState({onScrollCapture:of,onWheelCapture:of,onTouchMoveCapture:of}),c=o[0],f=o[1],d=a.forwardProps,h=a.children,p=a.className,m=a.removeScrollBar,y=a.enabled,v=a.shards,w=a.sideCar,A=a.noIsolation,D=a.inert,x=a.allowPinchZoom,T=a.as,M=T===void 0?"div":T,F=a.gapMode,Q=ly(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),W=w,j=Gw([i,r]),tt=kn(kn({},Q),c);return S.createElement(S.Fragment,null,y&&S.createElement(W,{sideCar:iy,removeScrollBar:m,shards:v,noIsolation:A,inert:D,setCallbacks:f,allowPinchZoom:!!x,lockRef:i,gapMode:F}),d?S.cloneElement(S.Children.only(h),kn(kn({},tt),{ref:j})):S.createElement(M,kn({},tt,{className:p,ref:j}),h))});bs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bs.classNames={fullWidth:Po,zeroRight:Io};var Jw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Fw(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var r=Jw();return r&&a.setAttribute("nonce",r),a}function $w(a,r){a.styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r))}function Ww(a){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(a)}var Iw=function(){var a=0,r=null;return{add:function(i){a==0&&(r=Fw())&&($w(r,i),Ww(r)),a++},remove:function(){a--,!a&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},Pw=function(){var a=Iw();return function(r,i){S.useEffect(function(){return a.add(r),function(){a.remove()}},[r&&i])}},oy=function(){var a=Pw(),r=function(i){var o=i.styles,c=i.dynamic;return a(o,c),null};return r},tR={left:0,top:0,right:0,gap:0},sf=function(a){return parseInt(a||"",10)||0},eR=function(a){var r=window.getComputedStyle(document.body),i=r[a==="padding"?"paddingLeft":"marginLeft"],o=r[a==="padding"?"paddingTop":"marginTop"],c=r[a==="padding"?"paddingRight":"marginRight"];return[sf(i),sf(o),sf(c)]},nR=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return tR;var r=eR(a),i=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-i+r[2]-r[0])}},aR=oy(),rr="data-scroll-locked",lR=function(a,r,i,o){var c=a.left,f=a.top,d=a.right,h=a.gap;return i===void 0&&(i="margin"),`
  .`.concat(kw,` {
   overflow: hidden `).concat(o,`;
   padding-right: `).concat(h,"px ").concat(o,`;
  }
  body[`).concat(rr,`] {
    overflow: hidden `).concat(o,`;
    overscroll-behavior: contain;
    `).concat([r&&"position: relative ".concat(o,";"),i==="margin"&&`
    padding-left: `.concat(c,`px;
    padding-top: `).concat(f,`px;
    padding-right: `).concat(d,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(h,"px ").concat(o,`;
    `),i==="padding"&&"padding-right: ".concat(h,"px ").concat(o,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Io,` {
    right: `).concat(h,"px ").concat(o,`;
  }
  
  .`).concat(Po,` {
    margin-right: `).concat(h,"px ").concat(o,`;
  }
  
  .`).concat(Io," .").concat(Io,` {
    right: 0 `).concat(o,`;
  }
  
  .`).concat(Po," .").concat(Po,` {
    margin-right: 0 `).concat(o,`;
  }
  
  body[`).concat(rr,`] {
    `).concat(qw,": ").concat(h,`px;
  }
`)},Bv=function(){var a=parseInt(document.body.getAttribute(rr)||"0",10);return isFinite(a)?a:0},rR=function(){S.useEffect(function(){return document.body.setAttribute(rr,(Bv()+1).toString()),function(){var a=Bv()-1;a<=0?document.body.removeAttribute(rr):document.body.setAttribute(rr,a.toString())}},[])},iR=function(a){var r=a.noRelative,i=a.noImportant,o=a.gapMode,c=o===void 0?"margin":o;rR();var f=S.useMemo(function(){return nR(c)},[c]);return S.createElement(aR,{styles:lR(f,!r,c,i?"":"!important")})},Nf=!1;if(typeof window<"u")try{var Zo=Object.defineProperty({},"passive",{get:function(){return Nf=!0,!0}});window.addEventListener("test",Zo,Zo),window.removeEventListener("test",Zo,Zo)}catch{Nf=!1}var Il=Nf?{passive:!1}:!1,oR=function(a){return a.tagName==="TEXTAREA"},sy=function(a,r){if(!(a instanceof Element))return!1;var i=window.getComputedStyle(a);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!oR(a)&&i[r]==="visible")},sR=function(a){return sy(a,"overflowY")},uR=function(a){return sy(a,"overflowX")},Lv=function(a,r){var i=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var c=uy(a,o);if(c){var f=cy(a,o),d=f[1],h=f[2];if(d>h)return!0}o=o.parentNode}while(o&&o!==i.body);return!1},cR=function(a){var r=a.scrollTop,i=a.scrollHeight,o=a.clientHeight;return[r,i,o]},fR=function(a){var r=a.scrollLeft,i=a.scrollWidth,o=a.clientWidth;return[r,i,o]},uy=function(a,r){return a==="v"?sR(r):uR(r)},cy=function(a,r){return a==="v"?cR(r):fR(r)},dR=function(a,r){return a==="h"&&r==="rtl"?-1:1},hR=function(a,r,i,o,c){var f=dR(a,window.getComputedStyle(r).direction),d=f*o,h=i.target,p=r.contains(h),m=!1,y=d>0,v=0,w=0;do{var A=cy(a,h),D=A[0],x=A[1],T=A[2],M=x-T-f*D;(D||M)&&uy(a,h)&&(v+=M,w+=D),h instanceof ShadowRoot?h=h.host:h=h.parentNode}while(!p&&h!==document.body||p&&(r.contains(h)||r===h));return(y&&Math.abs(v)<1||!y&&Math.abs(w)<1)&&(m=!0),m},Ko=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},jv=function(a){return[a.deltaX,a.deltaY]},Hv=function(a){return a&&"current"in a?a.current:a},mR=function(a,r){return a[0]===r[0]&&a[1]===r[1]},gR=function(a){return`
  .block-interactivity-`.concat(a,` {pointer-events: none;}
  .allow-interactivity-`).concat(a,` {pointer-events: all;}
`)},vR=0,Pl=[];function pR(a){var r=S.useRef([]),i=S.useRef([0,0]),o=S.useRef(),c=S.useState(vR++)[0],f=S.useState(oy)[0],d=S.useRef(a);S.useEffect(function(){d.current=a},[a]),S.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(c));var x=Hw([a.lockRef.current],(a.shards||[]).map(Hv),!0).filter(Boolean);return x.forEach(function(T){return T.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),x.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(c))})}}},[a.inert,a.lockRef.current,a.shards]);var h=S.useCallback(function(x,T){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!d.current.allowPinchZoom;var M=Ko(x),F=i.current,Q="deltaX"in x?x.deltaX:F[0]-M[0],W="deltaY"in x?x.deltaY:F[1]-M[1],j,tt=x.target,$=Math.abs(Q)>Math.abs(W)?"h":"v";if("touches"in x&&$==="h"&&tt.type==="range")return!1;var H=Lv($,tt);if(!H)return!0;if(H?j=$:(j=$==="v"?"h":"v",H=Lv($,tt)),!H)return!1;if(!o.current&&"changedTouches"in x&&(Q||W)&&(o.current=j),!j)return!0;var I=o.current||j;return hR(I,T,x,I==="h"?Q:W)},[]),p=S.useCallback(function(x){var T=x;if(!(!Pl.length||Pl[Pl.length-1]!==f)){var M="deltaY"in T?jv(T):Ko(T),F=r.current.filter(function(j){return j.name===T.type&&(j.target===T.target||T.target===j.shadowParent)&&mR(j.delta,M)})[0];if(F&&F.should){T.cancelable&&T.preventDefault();return}if(!F){var Q=(d.current.shards||[]).map(Hv).filter(Boolean).filter(function(j){return j.contains(T.target)}),W=Q.length>0?h(T,Q[0]):!d.current.noIsolation;W&&T.cancelable&&T.preventDefault()}}},[]),m=S.useCallback(function(x,T,M,F){var Q={name:x,delta:T,target:M,should:F,shadowParent:yR(M)};r.current.push(Q),setTimeout(function(){r.current=r.current.filter(function(W){return W!==Q})},1)},[]),y=S.useCallback(function(x){i.current=Ko(x),o.current=void 0},[]),v=S.useCallback(function(x){m(x.type,jv(x),x.target,h(x,a.lockRef.current))},[]),w=S.useCallback(function(x){m(x.type,Ko(x),x.target,h(x,a.lockRef.current))},[]);S.useEffect(function(){return Pl.push(f),a.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:w}),document.addEventListener("wheel",p,Il),document.addEventListener("touchmove",p,Il),document.addEventListener("touchstart",y,Il),function(){Pl=Pl.filter(function(x){return x!==f}),document.removeEventListener("wheel",p,Il),document.removeEventListener("touchmove",p,Il),document.removeEventListener("touchstart",y,Il)}},[]);var A=a.removeScrollBar,D=a.inert;return S.createElement(S.Fragment,null,D?S.createElement(f,{styles:gR(c)}):null,A?S.createElement(iR,{gapMode:a.gapMode}):null)}function yR(a){for(var r=null;a!==null;)a instanceof ShadowRoot&&(r=a.host,a=a.host),a=a.parentNode;return r}const bR=Kw(iy,pR);var fy=S.forwardRef(function(a,r){return S.createElement(bs,kn({},a,{ref:r,sideCar:bR}))});fy.classNames=bs.classNames;var SR=function(a){if(typeof document>"u")return null;var r=Array.isArray(a)?a[0]:a;return r.ownerDocument.body},tr=new WeakMap,Jo=new WeakMap,Fo={},uf=0,dy=function(a){return a&&(a.host||dy(a.parentNode))},ER=function(a,r){return r.map(function(i){if(a.contains(i))return i;var o=dy(i);return o&&a.contains(o)?o:(console.error("aria-hidden",i,"in not contained inside",a,". Doing nothing"),null)}).filter(function(i){return!!i})},xR=function(a,r,i,o){var c=ER(r,Array.isArray(a)?a:[a]);Fo[i]||(Fo[i]=new WeakMap);var f=Fo[i],d=[],h=new Set,p=new Set(c),m=function(v){!v||h.has(v)||(h.add(v),m(v.parentNode))};c.forEach(m);var y=function(v){!v||p.has(v)||Array.prototype.forEach.call(v.children,function(w){if(h.has(w))y(w);else try{var A=w.getAttribute(o),D=A!==null&&A!=="false",x=(tr.get(w)||0)+1,T=(f.get(w)||0)+1;tr.set(w,x),f.set(w,T),d.push(w),x===1&&D&&Jo.set(w,!0),T===1&&w.setAttribute(i,"true"),D||w.setAttribute(o,"true")}catch(M){console.error("aria-hidden: cannot operate on ",w,M)}})};return y(r),h.clear(),uf++,function(){d.forEach(function(v){var w=tr.get(v)-1,A=f.get(v)-1;tr.set(v,w),f.set(v,A),w||(Jo.has(v)||v.removeAttribute(o),Jo.delete(v)),A||v.removeAttribute(i)}),uf--,uf||(tr=new WeakMap,tr=new WeakMap,Jo=new WeakMap,Fo={})}},wR=function(a,r,i){i===void 0&&(i="data-aria-hidden");var o=Array.from(Array.isArray(a)?a:[a]),c=SR(a);return c?(o.push.apply(o,Array.from(c.querySelectorAll("[aria-live]"))),xR(o,c,i,"aria-hidden")):function(){return null}},Ss="Dialog",[hy,kA]=cw(Ss),[RR,Dn]=hy(Ss),my=a=>{const{__scopeDialog:r,children:i,open:o,defaultOpen:c,onOpenChange:f,modal:d=!0}=a,h=S.useRef(null),p=S.useRef(null),[m,y]=gw({prop:o,defaultProp:c??!1,onChange:f,caller:Ss});return P.jsx(RR,{scope:r,triggerRef:h,contentRef:p,contentId:ef(),titleId:ef(),descriptionId:ef(),open:m,onOpenChange:y,onOpenToggle:S.useCallback(()=>y(v=>!v),[y]),modal:d,children:i})};my.displayName=Ss;var gy="DialogTrigger",TR=S.forwardRef((a,r)=>{const{__scopeDialog:i,...o}=a,c=Dn(gy,i),f=cl(r,c.triggerRef);return P.jsx(qn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":Wf(c.open),...o,ref:f,onClick:ja(a.onClick,c.onOpenToggle)})});TR.displayName=gy;var Ff="DialogPortal",[AR,vy]=hy(Ff,{forceMount:void 0}),py=a=>{const{__scopeDialog:r,forceMount:i,children:o,container:c}=a,f=Dn(Ff,r);return P.jsx(AR,{scope:r,forceMount:i,children:S.Children.map(o,d=>P.jsx(ys,{present:i||f.open,children:P.jsx(ay,{asChild:!0,container:c,children:d})}))})};py.displayName=Ff;var us="DialogOverlay",yy=S.forwardRef((a,r)=>{const i=vy(us,a.__scopeDialog),{forceMount:o=i.forceMount,...c}=a,f=Dn(us,a.__scopeDialog);return f.modal?P.jsx(ys,{present:o||f.open,children:P.jsx(DR,{...c,ref:r})}):null});yy.displayName=us;var OR=Qf("DialogOverlay.RemoveScroll"),DR=S.forwardRef((a,r)=>{const{__scopeDialog:i,...o}=a,c=Dn(us,i);return P.jsx(fy,{as:OR,allowPinchZoom:!0,shards:[c.contentRef],children:P.jsx(qn.div,{"data-state":Wf(c.open),...o,ref:r,style:{pointerEvents:"auto",...o.style}})})}),sl="DialogContent",by=S.forwardRef((a,r)=>{const i=vy(sl,a.__scopeDialog),{forceMount:o=i.forceMount,...c}=a,f=Dn(sl,a.__scopeDialog);return P.jsx(ys,{present:o||f.open,children:f.modal?P.jsx(CR,{...c,ref:r}):P.jsx(NR,{...c,ref:r})})});by.displayName=sl;var CR=S.forwardRef((a,r)=>{const i=Dn(sl,a.__scopeDialog),o=S.useRef(null),c=cl(r,i.contentRef,o);return S.useEffect(()=>{const f=o.current;if(f)return wR(f)},[]),P.jsx(Sy,{...a,ref:c,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ja(a.onCloseAutoFocus,f=>{var d;f.preventDefault(),(d=i.triggerRef.current)==null||d.focus()}),onPointerDownOutside:ja(a.onPointerDownOutside,f=>{const d=f.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;(d.button===2||h)&&f.preventDefault()}),onFocusOutside:ja(a.onFocusOutside,f=>f.preventDefault())})}),NR=S.forwardRef((a,r)=>{const i=Dn(sl,a.__scopeDialog),o=S.useRef(!1),c=S.useRef(!1);return P.jsx(Sy,{...a,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,h;(d=a.onCloseAutoFocus)==null||d.call(a,f),f.defaultPrevented||(o.current||(h=i.triggerRef.current)==null||h.focus(),f.preventDefault()),o.current=!1,c.current=!1},onInteractOutside:f=>{var p,m;(p=a.onInteractOutside)==null||p.call(a,f),f.defaultPrevented||(o.current=!0,f.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const d=f.target;((m=i.triggerRef.current)==null?void 0:m.contains(d))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&c.current&&f.preventDefault()}})}),Sy=S.forwardRef((a,r)=>{const{__scopeDialog:i,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:f,...d}=a,h=Dn(sl,i),p=S.useRef(null),m=cl(r,p);return jw(),P.jsxs(P.Fragment,{children:[P.jsx(ey,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:c,onUnmountAutoFocus:f,children:P.jsx(Pp,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Wf(h.open),...d,ref:m,onDismiss:()=>h.onOpenChange(!1)})}),P.jsxs(P.Fragment,{children:[P.jsx(_R,{titleId:h.titleId}),P.jsx(UR,{contentRef:p,descriptionId:h.descriptionId})]})]})}),$f="DialogTitle",Ey=S.forwardRef((a,r)=>{const{__scopeDialog:i,...o}=a,c=Dn($f,i);return P.jsx(qn.h2,{id:c.titleId,...o,ref:r})});Ey.displayName=$f;var xy="DialogDescription",MR=S.forwardRef((a,r)=>{const{__scopeDialog:i,...o}=a,c=Dn(xy,i);return P.jsx(qn.p,{id:c.descriptionId,...o,ref:r})});MR.displayName=xy;var wy="DialogClose",Ry=S.forwardRef((a,r)=>{const{__scopeDialog:i,...o}=a,c=Dn(wy,i);return P.jsx(qn.button,{type:"button",...o,ref:r,onClick:ja(a.onClick,()=>c.onOpenChange(!1))})});Ry.displayName=wy;function Wf(a){return a?"open":"closed"}var Ty="DialogTitleWarning",[qA,Ay]=uw(Ty,{contentName:sl,titleName:$f,docsSlug:"dialog"}),_R=({titleId:a})=>{const r=Ay(Ty),i=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.

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

For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return S.useEffect(()=>{a&&(document.getElementById(a)||console.error(i))},[i,a]),null},zR="DialogDescriptionWarning",UR=({contentRef:a,descriptionId:r})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ay(zR).contentName}}.`;return S.useEffect(()=>{var f;const c=(f=a.current)==null?void 0:f.getAttribute("aria-describedby");r&&c&&(document.getElementById(r)||console.warn(o))},[o,a,r]),null},BR=my,LR=py,jR=yy,HR=by,kR=Ey,Oy=Ry;/**
 * @license lucide-react v0.503.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qR=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),YR=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,i,o)=>o?o.toUpperCase():i.toLowerCase()),kv=a=>{const r=YR(a);return r.charAt(0).toUpperCase()+r.slice(1)},Dy=(...a)=>a.filter((r,i,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===i).join(" ").trim(),VR=a=>{for(const r in a)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
 * @license lucide-react v0.503.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var GR={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.503.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const XR=S.forwardRef(({color:a="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:c="",children:f,iconNode:d,...h},p)=>S.createElement("svg",{ref:p,...GR,width:r,height:r,stroke:a,strokeWidth:o?Number(i)*24/Number(r):i,className:Dy("lucide",c),...!f&&!VR(h)&&{"aria-hidden":"true"},...h},[...d.map(([m,y])=>S.createElement(m,y)),...Array.isArray(f)?f:[f]]));/**
 * @license lucide-react v0.503.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cy=(a,r)=>{const i=S.forwardRef(({className:o,...c},f)=>S.createElement(XR,{ref:f,iconNode:r,className:Dy(`lucide-${qR(kv(a))}`,`lucide-${a}`,o),...c}));return i.displayName=kv(a),i};/**
 * @license lucide-react v0.503.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ZR=Cy("plus",QR);/**
 * @license lucide-react v0.503.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],JR=Cy("x",KR);function FR({...a}){return P.jsx(BR,{"data-slot":"dialog",...a})}function $R({...a}){return P.jsx(LR,{"data-slot":"dialog-portal",...a})}function qv({...a}){return P.jsx(Oy,{"data-slot":"dialog-close",...a})}function WR({className:a,...r}){return P.jsx(jR,{"data-slot":"dialog-overlay",className:fl("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",a),...r})}function IR({className:a,children:r,...i}){return P.jsxs($R,{"data-slot":"dialog-portal",children:[P.jsx(WR,{}),P.jsxs(HR,{"data-slot":"dialog-content",className:fl("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",a),...i,children:[r,P.jsxs(Oy,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[P.jsx(JR,{}),P.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function PR({className:a,...r}){return P.jsx("div",{"data-slot":"dialog-header",className:fl("flex flex-col gap-2 text-center sm:text-left",a),...r})}function tT({className:a,...r}){return P.jsx("div",{"data-slot":"dialog-footer",className:fl("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",a),...r})}function eT({className:a,...r}){return P.jsx(kR,{"data-slot":"dialog-title",className:fl("text-lg leading-none font-semibold",a),...r})}const nr=({data:a,variant:r,onItemClick:i,textData:o={}})=>{const c=f=>{switch(f){case"primary":return"border-gray-200 shadow-2xs shadow-gray-300 bg-gray-50 hover:bg-gray-100";case"secondary":return"border-gray-500 hover:bg-gray-300 bg-transparent";case"ghost":return"border-dashed bg-gray-100 shadow-md";default:return"border-gray-200 shadow-2xs shadow-gray-300 bg-gray-50 hover:bg-gray-100"}};return P.jsx(P.Fragment,{children:a==null?void 0:a.map((f,d)=>P.jsx(ar,{onClick:()=>i==null?void 0:i(f,d),className:`text-primary rounded-sm border-1 ${c(r)} flex-1 p-2`,style:{textWrap:"wrap",height:"auto"},children:o[f.text]||f.text},d))})},$o=({id:a,data:r,variant:i,onAddItemClick:o,onItemClick:c,keyListLength:f,textData:d,notDragable:h})=>{const{attributes:p,listeners:m,setNodeRef:y,transform:v,transition:w,isDragging:A}=oE({id:a,animateLayoutChanges:Dp}),D={transform:Ha.Transform.toString(v),transition:w||"transform 300ms cubic-bezier(0.22, 1, 0.36, 1)",opacity:A?.3:1};return P.jsxs("div",{className:"col-span-6 flex gap-2 select-none",children:[f&&r.length<3&&f>0?P.jsx(ar,{onClick:o,className:"text-primary rounded-sm border-1 border-gray-200 bg-gray-50 shadow-2xs shadow-gray-300 hover:bg-gray-100",children:P.jsx(ZR,{})}):null,P.jsx("div",{...h?{}:{...p,...m},ref:y,style:D,className:`flex flex-1 touch-none gap-2 transition-all duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] ${A?"z-10 scale-[0.97]":"scale-100"}`,children:P.jsx(nr,{data:r,variant:i,onItemClick:c,textData:d})})]})};function Ny(a,r){return function(){return a.apply(r,arguments)}}const{toString:nT}=Object.prototype,{getPrototypeOf:If}=Object,{iterator:Es,toStringTag:My}=Symbol,xs=(a=>r=>{const i=nT.call(r);return a[i]||(a[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Cn=a=>(a=a.toLowerCase(),r=>xs(r)===a),ws=a=>r=>typeof r===a,{isArray:fr}=Array,bi=ws("undefined");function aT(a){return a!==null&&!bi(a)&&a.constructor!==null&&!bi(a.constructor)&&We(a.constructor.isBuffer)&&a.constructor.isBuffer(a)}const _y=Cn("ArrayBuffer");function lT(a){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(a):r=a&&a.buffer&&_y(a.buffer),r}const rT=ws("string"),We=ws("function"),zy=ws("number"),Rs=a=>a!==null&&typeof a=="object",iT=a=>a===!0||a===!1,ts=a=>{if(xs(a)!=="object")return!1;const r=If(a);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(My in a)&&!(Es in a)},oT=Cn("Date"),sT=Cn("File"),uT=Cn("Blob"),cT=Cn("FileList"),fT=a=>Rs(a)&&We(a.pipe),dT=a=>{let r;return a&&(typeof FormData=="function"&&a instanceof FormData||We(a.append)&&((r=xs(a))==="formdata"||r==="object"&&We(a.toString)&&a.toString()==="[object FormData]"))},hT=Cn("URLSearchParams"),[mT,gT,vT,pT]=["ReadableStream","Request","Response","Headers"].map(Cn),yT=a=>a.trim?a.trim():a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ti(a,r,{allOwnKeys:i=!1}={}){if(a===null||typeof a>"u")return;let o,c;if(typeof a!="object"&&(a=[a]),fr(a))for(o=0,c=a.length;o<c;o++)r.call(null,a[o],o,a);else{const f=i?Object.getOwnPropertyNames(a):Object.keys(a),d=f.length;let h;for(o=0;o<d;o++)h=f[o],r.call(null,a[h],h,a)}}function Uy(a,r){r=r.toLowerCase();const i=Object.keys(a);let o=i.length,c;for(;o-- >0;)if(c=i[o],r===c.toLowerCase())return c;return null}const il=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,By=a=>!bi(a)&&a!==il;function Mf(){const{caseless:a}=By(this)&&this||{},r={},i=(o,c)=>{const f=a&&Uy(r,c)||c;ts(r[f])&&ts(o)?r[f]=Mf(r[f],o):ts(o)?r[f]=Mf({},o):fr(o)?r[f]=o.slice():r[f]=o};for(let o=0,c=arguments.length;o<c;o++)arguments[o]&&Ti(arguments[o],i);return r}const bT=(a,r,i,{allOwnKeys:o}={})=>(Ti(r,(c,f)=>{i&&We(c)?a[f]=Ny(c,i):a[f]=c},{allOwnKeys:o}),a),ST=a=>(a.charCodeAt(0)===65279&&(a=a.slice(1)),a),ET=(a,r,i,o)=>{a.prototype=Object.create(r.prototype,o),a.prototype.constructor=a,Object.defineProperty(a,"super",{value:r.prototype}),i&&Object.assign(a.prototype,i)},xT=(a,r,i,o)=>{let c,f,d;const h={};if(r=r||{},a==null)return r;do{for(c=Object.getOwnPropertyNames(a),f=c.length;f-- >0;)d=c[f],(!o||o(d,a,r))&&!h[d]&&(r[d]=a[d],h[d]=!0);a=i!==!1&&If(a)}while(a&&(!i||i(a,r))&&a!==Object.prototype);return r},wT=(a,r,i)=>{a=String(a),(i===void 0||i>a.length)&&(i=a.length),i-=r.length;const o=a.indexOf(r,i);return o!==-1&&o===i},RT=a=>{if(!a)return null;if(fr(a))return a;let r=a.length;if(!zy(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=a[r];return i},TT=(a=>r=>a&&r instanceof a)(typeof Uint8Array<"u"&&If(Uint8Array)),AT=(a,r)=>{const o=(a&&a[Es]).call(a);let c;for(;(c=o.next())&&!c.done;){const f=c.value;r.call(a,f[0],f[1])}},OT=(a,r)=>{let i;const o=[];for(;(i=a.exec(r))!==null;)o.push(i);return o},DT=Cn("HTMLFormElement"),CT=a=>a.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,o,c){return o.toUpperCase()+c}),Yv=(({hasOwnProperty:a})=>(r,i)=>a.call(r,i))(Object.prototype),NT=Cn("RegExp"),Ly=(a,r)=>{const i=Object.getOwnPropertyDescriptors(a),o={};Ti(i,(c,f)=>{let d;(d=r(c,f,a))!==!1&&(o[f]=d||c)}),Object.defineProperties(a,o)},MT=a=>{Ly(a,(r,i)=>{if(We(a)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const o=a[i];if(We(o)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},_T=(a,r)=>{const i={},o=c=>{c.forEach(f=>{i[f]=!0})};return fr(a)?o(a):o(String(a).split(r)),i},zT=()=>{},UT=(a,r)=>a!=null&&Number.isFinite(a=+a)?a:r;function BT(a){return!!(a&&We(a.append)&&a[My]==="FormData"&&a[Es])}const LT=a=>{const r=new Array(10),i=(o,c)=>{if(Rs(o)){if(r.indexOf(o)>=0)return;if(!("toJSON"in o)){r[c]=o;const f=fr(o)?[]:{};return Ti(o,(d,h)=>{const p=i(d,c+1);!bi(p)&&(f[h]=p)}),r[c]=void 0,f}}return o};return i(a,0)},jT=Cn("AsyncFunction"),HT=a=>a&&(Rs(a)||We(a))&&We(a.then)&&We(a.catch),jy=((a,r)=>a?setImmediate:r?((i,o)=>(il.addEventListener("message",({source:c,data:f})=>{c===il&&f===i&&o.length&&o.shift()()},!1),c=>{o.push(c),il.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",We(il.postMessage)),kT=typeof queueMicrotask<"u"?queueMicrotask.bind(il):typeof process<"u"&&process.nextTick||jy,qT=a=>a!=null&&We(a[Es]),k={isArray:fr,isArrayBuffer:_y,isBuffer:aT,isFormData:dT,isArrayBufferView:lT,isString:rT,isNumber:zy,isBoolean:iT,isObject:Rs,isPlainObject:ts,isReadableStream:mT,isRequest:gT,isResponse:vT,isHeaders:pT,isUndefined:bi,isDate:oT,isFile:sT,isBlob:uT,isRegExp:NT,isFunction:We,isStream:fT,isURLSearchParams:hT,isTypedArray:TT,isFileList:cT,forEach:Ti,merge:Mf,extend:bT,trim:yT,stripBOM:ST,inherits:ET,toFlatObject:xT,kindOf:xs,kindOfTest:Cn,endsWith:wT,toArray:RT,forEachEntry:AT,matchAll:OT,isHTMLForm:DT,hasOwnProperty:Yv,hasOwnProp:Yv,reduceDescriptors:Ly,freezeMethods:MT,toObjectSet:_T,toCamelCase:CT,noop:zT,toFiniteNumber:UT,findKey:Uy,global:il,isContextDefined:By,isSpecCompliantForm:BT,toJSONObject:LT,isAsyncFn:jT,isThenable:HT,setImmediate:jy,asap:kT,isIterable:qT};function wt(a,r,i,o,c){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=a,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),o&&(this.request=o),c&&(this.response=c,this.status=c.status?c.status:null)}k.inherits(wt,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:k.toJSONObject(this.config),code:this.code,status:this.status}}});const Hy=wt.prototype,ky={};["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(a=>{ky[a]={value:a}});Object.defineProperties(wt,ky);Object.defineProperty(Hy,"isAxiosError",{value:!0});wt.from=(a,r,i,o,c,f)=>{const d=Object.create(Hy);return k.toFlatObject(a,d,function(p){return p!==Error.prototype},h=>h!=="isAxiosError"),wt.call(d,a.message,r,i,o,c),d.cause=a,d.name=a.name,f&&Object.assign(d,f),d};const YT=null;function _f(a){return k.isPlainObject(a)||k.isArray(a)}function qy(a){return k.endsWith(a,"[]")?a.slice(0,-2):a}function Vv(a,r,i){return a?a.concat(r).map(function(c,f){return c=qy(c),!i&&f?"["+c+"]":c}).join(i?".":""):r}function VT(a){return k.isArray(a)&&!a.some(_f)}const GT=k.toFlatObject(k,{},null,function(r){return/^is[A-Z]/.test(r)});function Ts(a,r,i){if(!k.isObject(a))throw new TypeError("target must be an object");r=r||new FormData,i=k.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,T){return!k.isUndefined(T[x])});const o=i.metaTokens,c=i.visitor||y,f=i.dots,d=i.indexes,p=(i.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(r);if(!k.isFunction(c))throw new TypeError("visitor must be a function");function m(D){if(D===null)return"";if(k.isDate(D))return D.toISOString();if(!p&&k.isBlob(D))throw new wt("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(D)||k.isTypedArray(D)?p&&typeof Blob=="function"?new Blob([D]):Buffer.from(D):D}function y(D,x,T){let M=D;if(D&&!T&&typeof D=="object"){if(k.endsWith(x,"{}"))x=o?x:x.slice(0,-2),D=JSON.stringify(D);else if(k.isArray(D)&&VT(D)||(k.isFileList(D)||k.endsWith(x,"[]"))&&(M=k.toArray(D)))return x=qy(x),M.forEach(function(Q,W){!(k.isUndefined(Q)||Q===null)&&r.append(d===!0?Vv([x],W,f):d===null?x:x+"[]",m(Q))}),!1}return _f(D)?!0:(r.append(Vv(T,x,f),m(D)),!1)}const v=[],w=Object.assign(GT,{defaultVisitor:y,convertValue:m,isVisitable:_f});function A(D,x){if(!k.isUndefined(D)){if(v.indexOf(D)!==-1)throw Error("Circular reference detected in "+x.join("."));v.push(D),k.forEach(D,function(M,F){(!(k.isUndefined(M)||M===null)&&c.call(r,M,k.isString(F)?F.trim():F,x,w))===!0&&A(M,x?x.concat(F):[F])}),v.pop()}}if(!k.isObject(a))throw new TypeError("data must be an object");return A(a),r}function Gv(a){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(a).replace(/[!'()~]|%20|%00/g,function(o){return r[o]})}function Pf(a,r){this._pairs=[],a&&Ts(a,this,r)}const Yy=Pf.prototype;Yy.append=function(r,i){this._pairs.push([r,i])};Yy.toString=function(r){const i=r?function(o){return r.call(this,o,Gv)}:Gv;return this._pairs.map(function(c){return i(c[0])+"="+i(c[1])},"").join("&")};function XT(a){return encodeURIComponent(a).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vy(a,r,i){if(!r)return a;const o=i&&i.encode||XT;k.isFunction(i)&&(i={serialize:i});const c=i&&i.serialize;let f;if(c?f=c(r,i):f=k.isURLSearchParams(r)?r.toString():new Pf(r,i).toString(o),f){const d=a.indexOf("#");d!==-1&&(a=a.slice(0,d)),a+=(a.indexOf("?")===-1?"?":"&")+f}return a}class Xv{constructor(){this.handlers=[]}use(r,i,o){return this.handlers.push({fulfilled:r,rejected:i,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){k.forEach(this.handlers,function(o){o!==null&&r(o)})}}const Gy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},QT=typeof URLSearchParams<"u"?URLSearchParams:Pf,ZT=typeof FormData<"u"?FormData:null,KT=typeof Blob<"u"?Blob:null,JT={isBrowser:!0,classes:{URLSearchParams:QT,FormData:ZT,Blob:KT},protocols:["http","https","file","blob","url","data"]},td=typeof window<"u"&&typeof document<"u",zf=typeof navigator=="object"&&navigator||void 0,FT=td&&(!zf||["ReactNative","NativeScript","NS"].indexOf(zf.product)<0),$T=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",WT=td&&window.location.href||"http://localhost",IT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:td,hasStandardBrowserEnv:FT,hasStandardBrowserWebWorkerEnv:$T,navigator:zf,origin:WT},Symbol.toStringTag,{value:"Module"})),He={...IT,...JT};function PT(a,r){return Ts(a,new He.classes.URLSearchParams,Object.assign({visitor:function(i,o,c,f){return He.isNode&&k.isBuffer(i)?(this.append(o,i.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},r))}function tA(a){return k.matchAll(/\w+|\[(\w*)]/g,a).map(r=>r[0]==="[]"?"":r[1]||r[0])}function eA(a){const r={},i=Object.keys(a);let o;const c=i.length;let f;for(o=0;o<c;o++)f=i[o],r[f]=a[f];return r}function Xy(a){function r(i,o,c,f){let d=i[f++];if(d==="__proto__")return!0;const h=Number.isFinite(+d),p=f>=i.length;return d=!d&&k.isArray(c)?c.length:d,p?(k.hasOwnProp(c,d)?c[d]=[c[d],o]:c[d]=o,!h):((!c[d]||!k.isObject(c[d]))&&(c[d]=[]),r(i,o,c[d],f)&&k.isArray(c[d])&&(c[d]=eA(c[d])),!h)}if(k.isFormData(a)&&k.isFunction(a.entries)){const i={};return k.forEachEntry(a,(o,c)=>{r(tA(o),c,i,0)}),i}return null}function nA(a,r,i){if(k.isString(a))try{return(r||JSON.parse)(a),k.trim(a)}catch(o){if(o.name!=="SyntaxError")throw o}return(i||JSON.stringify)(a)}const Ai={transitional:Gy,adapter:["xhr","http","fetch"],transformRequest:[function(r,i){const o=i.getContentType()||"",c=o.indexOf("application/json")>-1,f=k.isObject(r);if(f&&k.isHTMLForm(r)&&(r=new FormData(r)),k.isFormData(r))return c?JSON.stringify(Xy(r)):r;if(k.isArrayBuffer(r)||k.isBuffer(r)||k.isStream(r)||k.isFile(r)||k.isBlob(r)||k.isReadableStream(r))return r;if(k.isArrayBufferView(r))return r.buffer;if(k.isURLSearchParams(r))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let h;if(f){if(o.indexOf("application/x-www-form-urlencoded")>-1)return PT(r,this.formSerializer).toString();if((h=k.isFileList(r))||o.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Ts(h?{"files[]":r}:r,p&&new p,this.formSerializer)}}return f||c?(i.setContentType("application/json",!1),nA(r)):r}],transformResponse:[function(r){const i=this.transitional||Ai.transitional,o=i&&i.forcedJSONParsing,c=this.responseType==="json";if(k.isResponse(r)||k.isReadableStream(r))return r;if(r&&k.isString(r)&&(o&&!this.responseType||c)){const d=!(i&&i.silentJSONParsing)&&c;try{return JSON.parse(r)}catch(h){if(d)throw h.name==="SyntaxError"?wt.from(h,wt.ERR_BAD_RESPONSE,this,null,this.response):h}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:He.classes.FormData,Blob:He.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],a=>{Ai.headers[a]={}});const aA=k.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"]),lA=a=>{const r={};let i,o,c;return a&&a.split(`
`).forEach(function(d){c=d.indexOf(":"),i=d.substring(0,c).trim().toLowerCase(),o=d.substring(c+1).trim(),!(!i||r[i]&&aA[i])&&(i==="set-cookie"?r[i]?r[i].push(o):r[i]=[o]:r[i]=r[i]?r[i]+", "+o:o)}),r},Qv=Symbol("internals");function ci(a){return a&&String(a).trim().toLowerCase()}function es(a){return a===!1||a==null?a:k.isArray(a)?a.map(es):String(a)}function rA(a){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=i.exec(a);)r[o[1]]=o[2];return r}const iA=a=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(a.trim());function cf(a,r,i,o,c){if(k.isFunction(o))return o.call(this,r,i);if(c&&(r=i),!!k.isString(r)){if(k.isString(o))return r.indexOf(o)!==-1;if(k.isRegExp(o))return o.test(r)}}function oA(a){return a.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,o)=>i.toUpperCase()+o)}function sA(a,r){const i=k.toCamelCase(" "+r);["get","set","has"].forEach(o=>{Object.defineProperty(a,o+i,{value:function(c,f,d){return this[o].call(this,r,c,f,d)},configurable:!0})})}let Ie=class{constructor(r){r&&this.set(r)}set(r,i,o){const c=this;function f(h,p,m){const y=ci(p);if(!y)throw new Error("header name must be a non-empty string");const v=k.findKey(c,y);(!v||c[v]===void 0||m===!0||m===void 0&&c[v]!==!1)&&(c[v||p]=es(h))}const d=(h,p)=>k.forEach(h,(m,y)=>f(m,y,p));if(k.isPlainObject(r)||r instanceof this.constructor)d(r,i);else if(k.isString(r)&&(r=r.trim())&&!iA(r))d(lA(r),i);else if(k.isObject(r)&&k.isIterable(r)){let h={},p,m;for(const y of r){if(!k.isArray(y))throw TypeError("Object iterator must return a key-value pair");h[m=y[0]]=(p=h[m])?k.isArray(p)?[...p,y[1]]:[p,y[1]]:y[1]}d(h,i)}else r!=null&&f(i,r,o);return this}get(r,i){if(r=ci(r),r){const o=k.findKey(this,r);if(o){const c=this[o];if(!i)return c;if(i===!0)return rA(c);if(k.isFunction(i))return i.call(this,c,o);if(k.isRegExp(i))return i.exec(c);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,i){if(r=ci(r),r){const o=k.findKey(this,r);return!!(o&&this[o]!==void 0&&(!i||cf(this,this[o],o,i)))}return!1}delete(r,i){const o=this;let c=!1;function f(d){if(d=ci(d),d){const h=k.findKey(o,d);h&&(!i||cf(o,o[h],h,i))&&(delete o[h],c=!0)}}return k.isArray(r)?r.forEach(f):f(r),c}clear(r){const i=Object.keys(this);let o=i.length,c=!1;for(;o--;){const f=i[o];(!r||cf(this,this[f],f,r,!0))&&(delete this[f],c=!0)}return c}normalize(r){const i=this,o={};return k.forEach(this,(c,f)=>{const d=k.findKey(o,f);if(d){i[d]=es(c),delete i[f];return}const h=r?oA(f):String(f).trim();h!==f&&delete i[f],i[h]=es(c),o[h]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const i=Object.create(null);return k.forEach(this,(o,c)=>{o!=null&&o!==!1&&(i[c]=r&&k.isArray(o)?o.join(", "):o)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,i])=>r+": "+i).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const o=new this(r);return i.forEach(c=>o.set(c)),o}static accessor(r){const o=(this[Qv]=this[Qv]={accessors:{}}).accessors,c=this.prototype;function f(d){const h=ci(d);o[h]||(sA(c,d),o[h]=!0)}return k.isArray(r)?r.forEach(f):f(r),this}};Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(Ie.prototype,({value:a},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>a,set(o){this[i]=o}}});k.freezeMethods(Ie);function ff(a,r){const i=this||Ai,o=r||i,c=Ie.from(o.headers);let f=o.data;return k.forEach(a,function(h){f=h.call(i,f,c.normalize(),r?r.status:void 0)}),c.normalize(),f}function Qy(a){return!!(a&&a.__CANCEL__)}function dr(a,r,i){wt.call(this,a??"canceled",wt.ERR_CANCELED,r,i),this.name="CanceledError"}k.inherits(dr,wt,{__CANCEL__:!0});function Zy(a,r,i){const o=i.config.validateStatus;!i.status||!o||o(i.status)?a(i):r(new wt("Request failed with status code "+i.status,[wt.ERR_BAD_REQUEST,wt.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function uA(a){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(a);return r&&r[1]||""}function cA(a,r){a=a||10;const i=new Array(a),o=new Array(a);let c=0,f=0,d;return r=r!==void 0?r:1e3,function(p){const m=Date.now(),y=o[f];d||(d=m),i[c]=p,o[c]=m;let v=f,w=0;for(;v!==c;)w+=i[v++],v=v%a;if(c=(c+1)%a,c===f&&(f=(f+1)%a),m-d<r)return;const A=y&&m-y;return A?Math.round(w*1e3/A):void 0}}function fA(a,r){let i=0,o=1e3/r,c,f;const d=(m,y=Date.now())=>{i=y,c=null,f&&(clearTimeout(f),f=null),a.apply(null,m)};return[(...m)=>{const y=Date.now(),v=y-i;v>=o?d(m,y):(c=m,f||(f=setTimeout(()=>{f=null,d(c)},o-v)))},()=>c&&d(c)]}const cs=(a,r,i=3)=>{let o=0;const c=cA(50,250);return fA(f=>{const d=f.loaded,h=f.lengthComputable?f.total:void 0,p=d-o,m=c(p),y=d<=h;o=d;const v={loaded:d,total:h,progress:h?d/h:void 0,bytes:p,rate:m||void 0,estimated:m&&h&&y?(h-d)/m:void 0,event:f,lengthComputable:h!=null,[r?"download":"upload"]:!0};a(v)},i)},Zv=(a,r)=>{const i=a!=null;return[o=>r[0]({lengthComputable:i,total:a,loaded:o}),r[1]]},Kv=a=>(...r)=>k.asap(()=>a(...r)),dA=He.hasStandardBrowserEnv?((a,r)=>i=>(i=new URL(i,He.origin),a.protocol===i.protocol&&a.host===i.host&&(r||a.port===i.port)))(new URL(He.origin),He.navigator&&/(msie|trident)/i.test(He.navigator.userAgent)):()=>!0,hA=He.hasStandardBrowserEnv?{write(a,r,i,o,c,f){const d=[a+"="+encodeURIComponent(r)];k.isNumber(i)&&d.push("expires="+new Date(i).toGMTString()),k.isString(o)&&d.push("path="+o),k.isString(c)&&d.push("domain="+c),f===!0&&d.push("secure"),document.cookie=d.join("; ")},read(a){const r=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(a){this.write(a,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function mA(a){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a)}function gA(a,r){return r?a.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):a}function Ky(a,r,i){let o=!mA(r);return a&&(o||i==!1)?gA(a,r):r}const Jv=a=>a instanceof Ie?{...a}:a;function ul(a,r){r=r||{};const i={};function o(m,y,v,w){return k.isPlainObject(m)&&k.isPlainObject(y)?k.merge.call({caseless:w},m,y):k.isPlainObject(y)?k.merge({},y):k.isArray(y)?y.slice():y}function c(m,y,v,w){if(k.isUndefined(y)){if(!k.isUndefined(m))return o(void 0,m,v,w)}else return o(m,y,v,w)}function f(m,y){if(!k.isUndefined(y))return o(void 0,y)}function d(m,y){if(k.isUndefined(y)){if(!k.isUndefined(m))return o(void 0,m)}else return o(void 0,y)}function h(m,y,v){if(v in r)return o(m,y);if(v in a)return o(void 0,m)}const p={url:f,method:f,data:f,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:h,headers:(m,y,v)=>c(Jv(m),Jv(y),v,!0)};return k.forEach(Object.keys(Object.assign({},a,r)),function(y){const v=p[y]||c,w=v(a[y],r[y],y);k.isUndefined(w)&&v!==h||(i[y]=w)}),i}const Jy=a=>{const r=ul({},a);let{data:i,withXSRFToken:o,xsrfHeaderName:c,xsrfCookieName:f,headers:d,auth:h}=r;r.headers=d=Ie.from(d),r.url=Vy(Ky(r.baseURL,r.url,r.allowAbsoluteUrls),a.params,a.paramsSerializer),h&&d.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):"")));let p;if(k.isFormData(i)){if(He.hasStandardBrowserEnv||He.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if((p=d.getContentType())!==!1){const[m,...y]=p?p.split(";").map(v=>v.trim()).filter(Boolean):[];d.setContentType([m||"multipart/form-data",...y].join("; "))}}if(He.hasStandardBrowserEnv&&(o&&k.isFunction(o)&&(o=o(r)),o||o!==!1&&dA(r.url))){const m=c&&f&&hA.read(f);m&&d.set(c,m)}return r},vA=typeof XMLHttpRequest<"u",pA=vA&&function(a){return new Promise(function(i,o){const c=Jy(a);let f=c.data;const d=Ie.from(c.headers).normalize();let{responseType:h,onUploadProgress:p,onDownloadProgress:m}=c,y,v,w,A,D;function x(){A&&A(),D&&D(),c.cancelToken&&c.cancelToken.unsubscribe(y),c.signal&&c.signal.removeEventListener("abort",y)}let T=new XMLHttpRequest;T.open(c.method.toUpperCase(),c.url,!0),T.timeout=c.timeout;function M(){if(!T)return;const Q=Ie.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),j={data:!h||h==="text"||h==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:Q,config:a,request:T};Zy(function($){i($),x()},function($){o($),x()},j),T=null}"onloadend"in T?T.onloadend=M:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(M)},T.onabort=function(){T&&(o(new wt("Request aborted",wt.ECONNABORTED,a,T)),T=null)},T.onerror=function(){o(new wt("Network Error",wt.ERR_NETWORK,a,T)),T=null},T.ontimeout=function(){let W=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded";const j=c.transitional||Gy;c.timeoutErrorMessage&&(W=c.timeoutErrorMessage),o(new wt(W,j.clarifyTimeoutError?wt.ETIMEDOUT:wt.ECONNABORTED,a,T)),T=null},f===void 0&&d.setContentType(null),"setRequestHeader"in T&&k.forEach(d.toJSON(),function(W,j){T.setRequestHeader(j,W)}),k.isUndefined(c.withCredentials)||(T.withCredentials=!!c.withCredentials),h&&h!=="json"&&(T.responseType=c.responseType),m&&([w,D]=cs(m,!0),T.addEventListener("progress",w)),p&&T.upload&&([v,A]=cs(p),T.upload.addEventListener("progress",v),T.upload.addEventListener("loadend",A)),(c.cancelToken||c.signal)&&(y=Q=>{T&&(o(!Q||Q.type?new dr(null,a,T):Q),T.abort(),T=null)},c.cancelToken&&c.cancelToken.subscribe(y),c.signal&&(c.signal.aborted?y():c.signal.addEventListener("abort",y)));const F=uA(c.url);if(F&&He.protocols.indexOf(F)===-1){o(new wt("Unsupported protocol "+F+":",wt.ERR_BAD_REQUEST,a));return}T.send(f||null)})},yA=(a,r)=>{const{length:i}=a=a?a.filter(Boolean):[];if(r||i){let o=new AbortController,c;const f=function(m){if(!c){c=!0,h();const y=m instanceof Error?m:this.reason;o.abort(y instanceof wt?y:new dr(y instanceof Error?y.message:y))}};let d=r&&setTimeout(()=>{d=null,f(new wt(`timeout ${r} of ms exceeded`,wt.ETIMEDOUT))},r);const h=()=>{a&&(d&&clearTimeout(d),d=null,a.forEach(m=>{m.unsubscribe?m.unsubscribe(f):m.removeEventListener("abort",f)}),a=null)};a.forEach(m=>m.addEventListener("abort",f));const{signal:p}=o;return p.unsubscribe=()=>k.asap(h),p}},bA=function*(a,r){let i=a.byteLength;if(i<r){yield a;return}let o=0,c;for(;o<i;)c=o+r,yield a.slice(o,c),o=c},SA=async function*(a,r){for await(const i of EA(a))yield*bA(i,r)},EA=async function*(a){if(a[Symbol.asyncIterator]){yield*a;return}const r=a.getReader();try{for(;;){const{done:i,value:o}=await r.read();if(i)break;yield o}}finally{await r.cancel()}},Fv=(a,r,i,o)=>{const c=SA(a,r);let f=0,d,h=p=>{d||(d=!0,o&&o(p))};return new ReadableStream({async pull(p){try{const{done:m,value:y}=await c.next();if(m){h(),p.close();return}let v=y.byteLength;if(i){let w=f+=v;i(w)}p.enqueue(new Uint8Array(y))}catch(m){throw h(m),m}},cancel(p){return h(p),c.return()}},{highWaterMark:2})},As=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Fy=As&&typeof ReadableStream=="function",xA=As&&(typeof TextEncoder=="function"?(a=>r=>a.encode(r))(new TextEncoder):async a=>new Uint8Array(await new Response(a).arrayBuffer())),$y=(a,...r)=>{try{return!!a(...r)}catch{return!1}},wA=Fy&&$y(()=>{let a=!1;const r=new Request(He.origin,{body:new ReadableStream,method:"POST",get duplex(){return a=!0,"half"}}).headers.has("Content-Type");return a&&!r}),$v=64*1024,Uf=Fy&&$y(()=>k.isReadableStream(new Response("").body)),fs={stream:Uf&&(a=>a.body)};As&&(a=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!fs[r]&&(fs[r]=k.isFunction(a[r])?i=>i[r]():(i,o)=>{throw new wt(`Response type '${r}' is not supported`,wt.ERR_NOT_SUPPORT,o)})})})(new Response);const RA=async a=>{if(a==null)return 0;if(k.isBlob(a))return a.size;if(k.isSpecCompliantForm(a))return(await new Request(He.origin,{method:"POST",body:a}).arrayBuffer()).byteLength;if(k.isArrayBufferView(a)||k.isArrayBuffer(a))return a.byteLength;if(k.isURLSearchParams(a)&&(a=a+""),k.isString(a))return(await xA(a)).byteLength},TA=async(a,r)=>{const i=k.toFiniteNumber(a.getContentLength());return i??RA(r)},AA=As&&(async a=>{let{url:r,method:i,data:o,signal:c,cancelToken:f,timeout:d,onDownloadProgress:h,onUploadProgress:p,responseType:m,headers:y,withCredentials:v="same-origin",fetchOptions:w}=Jy(a);m=m?(m+"").toLowerCase():"text";let A=yA([c,f&&f.toAbortSignal()],d),D;const x=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let T;try{if(p&&wA&&i!=="get"&&i!=="head"&&(T=await TA(y,o))!==0){let j=new Request(r,{method:"POST",body:o,duplex:"half"}),tt;if(k.isFormData(o)&&(tt=j.headers.get("content-type"))&&y.setContentType(tt),j.body){const[$,H]=Zv(T,cs(Kv(p)));o=Fv(j.body,$v,$,H)}}k.isString(v)||(v=v?"include":"omit");const M="credentials"in Request.prototype;D=new Request(r,{...w,signal:A,method:i.toUpperCase(),headers:y.normalize().toJSON(),body:o,duplex:"half",credentials:M?v:void 0});let F=await fetch(D);const Q=Uf&&(m==="stream"||m==="response");if(Uf&&(h||Q&&x)){const j={};["status","statusText","headers"].forEach(I=>{j[I]=F[I]});const tt=k.toFiniteNumber(F.headers.get("content-length")),[$,H]=h&&Zv(tt,cs(Kv(h),!0))||[];F=new Response(Fv(F.body,$v,$,()=>{H&&H(),x&&x()}),j)}m=m||"text";let W=await fs[k.findKey(fs,m)||"text"](F,a);return!Q&&x&&x(),await new Promise((j,tt)=>{Zy(j,tt,{data:W,headers:Ie.from(F.headers),status:F.status,statusText:F.statusText,config:a,request:D})})}catch(M){throw x&&x(),M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new wt("Network Error",wt.ERR_NETWORK,a,D),{cause:M.cause||M}):wt.from(M,M&&M.code,a,D)}}),Bf={http:YT,xhr:pA,fetch:AA};k.forEach(Bf,(a,r)=>{if(a){try{Object.defineProperty(a,"name",{value:r})}catch{}Object.defineProperty(a,"adapterName",{value:r})}});const Wv=a=>`- ${a}`,OA=a=>k.isFunction(a)||a===null||a===!1,Wy={getAdapter:a=>{a=k.isArray(a)?a:[a];const{length:r}=a;let i,o;const c={};for(let f=0;f<r;f++){i=a[f];let d;if(o=i,!OA(i)&&(o=Bf[(d=String(i)).toLowerCase()],o===void 0))throw new wt(`Unknown adapter '${d}'`);if(o)break;c[d||"#"+f]=o}if(!o){const f=Object.entries(c).map(([h,p])=>`adapter ${h} `+(p===!1?"is not supported by the environment":"is not available in the build"));let d=r?f.length>1?`since :
`+f.map(Wv).join(`
`):" "+Wv(f[0]):"as no adapter specified";throw new wt("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return o},adapters:Bf};function df(a){if(a.cancelToken&&a.cancelToken.throwIfRequested(),a.signal&&a.signal.aborted)throw new dr(null,a)}function Iv(a){return df(a),a.headers=Ie.from(a.headers),a.data=ff.call(a,a.transformRequest),["post","put","patch"].indexOf(a.method)!==-1&&a.headers.setContentType("application/x-www-form-urlencoded",!1),Wy.getAdapter(a.adapter||Ai.adapter)(a).then(function(o){return df(a),o.data=ff.call(a,a.transformResponse,o),o.headers=Ie.from(o.headers),o},function(o){return Qy(o)||(df(a),o&&o.response&&(o.response.data=ff.call(a,a.transformResponse,o.response),o.response.headers=Ie.from(o.response.headers))),Promise.reject(o)})}const Iy="1.9.0",Os={};["object","boolean","number","function","string","symbol"].forEach((a,r)=>{Os[a]=function(o){return typeof o===a||"a"+(r<1?"n ":" ")+a}});const Pv={};Os.transitional=function(r,i,o){function c(f,d){return"[Axios v"+Iy+"] Transitional option '"+f+"'"+d+(o?". "+o:"")}return(f,d,h)=>{if(r===!1)throw new wt(c(d," has been removed"+(i?" in "+i:"")),wt.ERR_DEPRECATED);return i&&!Pv[d]&&(Pv[d]=!0,console.warn(c(d," has been deprecated since v"+i+" and will be removed in the near future"))),r?r(f,d,h):!0}};Os.spelling=function(r){return(i,o)=>(console.warn(`${o} is likely a misspelling of ${r}`),!0)};function DA(a,r,i){if(typeof a!="object")throw new wt("options must be an object",wt.ERR_BAD_OPTION_VALUE);const o=Object.keys(a);let c=o.length;for(;c-- >0;){const f=o[c],d=r[f];if(d){const h=a[f],p=h===void 0||d(h,f,a);if(p!==!0)throw new wt("option "+f+" must be "+p,wt.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new wt("Unknown option "+f,wt.ERR_BAD_OPTION)}}const ns={assertOptions:DA,validators:Os},jn=ns.validators;let ol=class{constructor(r){this.defaults=r||{},this.interceptors={request:new Xv,response:new Xv}}async request(r,i){try{return await this._request(r,i)}catch(o){if(o instanceof Error){let c={};Error.captureStackTrace?Error.captureStackTrace(c):c=new Error;const f=c.stack?c.stack.replace(/^.+\n/,""):"";try{o.stack?f&&!String(o.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(o.stack+=`
`+f):o.stack=f}catch{}}throw o}}_request(r,i){typeof r=="string"?(i=i||{},i.url=r):i=r||{},i=ul(this.defaults,i);const{transitional:o,paramsSerializer:c,headers:f}=i;o!==void 0&&ns.assertOptions(o,{silentJSONParsing:jn.transitional(jn.boolean),forcedJSONParsing:jn.transitional(jn.boolean),clarifyTimeoutError:jn.transitional(jn.boolean)},!1),c!=null&&(k.isFunction(c)?i.paramsSerializer={serialize:c}:ns.assertOptions(c,{encode:jn.function,serialize:jn.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),ns.assertOptions(i,{baseUrl:jn.spelling("baseURL"),withXsrfToken:jn.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let d=f&&k.merge(f.common,f[i.method]);f&&k.forEach(["delete","get","head","post","put","patch","common"],D=>{delete f[D]}),i.headers=Ie.concat(d,f);const h=[];let p=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(i)===!1||(p=p&&x.synchronous,h.unshift(x.fulfilled,x.rejected))});const m=[];this.interceptors.response.forEach(function(x){m.push(x.fulfilled,x.rejected)});let y,v=0,w;if(!p){const D=[Iv.bind(this),void 0];for(D.unshift.apply(D,h),D.push.apply(D,m),w=D.length,y=Promise.resolve(i);v<w;)y=y.then(D[v++],D[v++]);return y}w=h.length;let A=i;for(v=0;v<w;){const D=h[v++],x=h[v++];try{A=D(A)}catch(T){x.call(this,T);break}}try{y=Iv.call(this,A)}catch(D){return Promise.reject(D)}for(v=0,w=m.length;v<w;)y=y.then(m[v++],m[v++]);return y}getUri(r){r=ul(this.defaults,r);const i=Ky(r.baseURL,r.url,r.allowAbsoluteUrls);return Vy(i,r.params,r.paramsSerializer)}};k.forEach(["delete","get","head","options"],function(r){ol.prototype[r]=function(i,o){return this.request(ul(o||{},{method:r,url:i,data:(o||{}).data}))}});k.forEach(["post","put","patch"],function(r){function i(o){return function(f,d,h){return this.request(ul(h||{},{method:r,headers:o?{"Content-Type":"multipart/form-data"}:{},url:f,data:d}))}}ol.prototype[r]=i(),ol.prototype[r+"Form"]=i(!0)});let CA=class Py{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(f){i=f});const o=this;this.promise.then(c=>{if(!o._listeners)return;let f=o._listeners.length;for(;f-- >0;)o._listeners[f](c);o._listeners=null}),this.promise.then=c=>{let f;const d=new Promise(h=>{o.subscribe(h),f=h}).then(c);return d.cancel=function(){o.unsubscribe(f)},d},r(function(f,d,h){o.reason||(o.reason=new dr(f,d,h),i(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const r=new AbortController,i=o=>{r.abort(o)};return this.subscribe(i),r.signal.unsubscribe=()=>this.unsubscribe(i),r.signal}static source(){let r;return{token:new Py(function(c){r=c}),cancel:r}}};function NA(a){return function(i){return a.apply(null,i)}}function MA(a){return k.isObject(a)&&a.isAxiosError===!0}const Lf={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(Lf).forEach(([a,r])=>{Lf[r]=a});function t0(a){const r=new ol(a),i=Ny(ol.prototype.request,r);return k.extend(i,ol.prototype,r,{allOwnKeys:!0}),k.extend(i,r,null,{allOwnKeys:!0}),i.create=function(c){return t0(ul(a,c))},i}const he=t0(Ai);he.Axios=ol;he.CanceledError=dr;he.CancelToken=CA;he.isCancel=Qy;he.VERSION=Iy;he.toFormData=Ts;he.AxiosError=wt;he.Cancel=he.CanceledError;he.all=function(r){return Promise.all(r)};he.spread=NA;he.isAxiosError=MA;he.mergeConfig=ul;he.AxiosHeaders=Ie;he.formToJSON=a=>Xy(k.isHTMLForm(a)?new FormData(a):a);he.getAdapter=Wy.getAdapter;he.HttpStatusCode=Lf;he.default=he;const{Axios:GA,AxiosError:XA,CanceledError:QA,isCancel:ZA,CancelToken:KA,VERSION:JA,all:FA,Cancel:$A,isAxiosError:WA,spread:IA,toFormData:PA,AxiosHeaders:t2,HttpStatusCode:e2,formToJSON:n2,getAdapter:a2,mergeConfig:l2}=he,er={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},_A=a=>he.get(a).then(r=>r.data);function hf(a){const[r,i]=a.split("-");return{type:r,index:parseInt(i)}}function zA(){const{data:a,isValidating:r,isLoading:i,error:o,mutate:c}=sw(((er==null?void 0:er.VITE_API)||window.__MIRZA_API_ORIGIN||window.location.origin)+"/api/keyboard.php",_A,{revalidateOnFocus:!1,refreshInterval:0,shouldRetryOnError:!1}),f=S.useRef(0),d=S.useRef(!1),[h,p]=S.useState(!1),[m,y]=S.useState([]),[v,w]=S.useState([]),[A,D]=S.useState([]),[x,T]=S.useState(null),[M,F]=S.useState({open:!1,rowIndex:null,editItem:null,editIndex:null}),Q=zS(Fg(Vf,{activationConstraint:{delay:150,tolerance:5}}),Fg(yp,{activationConstraint:{delay:150,tolerance:5}}));S.useEffect(()=>{if(a){const I=a.userlist||[],at=a.keylist||[];y(I),w(at),D(JSON.parse(JSON.stringify(I)))}},[a]),S.useEffect(()=>{if(o&&f.current<2){ui.error(f.current===0?"Error fetching data. Retrying...":"Still having issues. Retrying again...");const I=setTimeout(()=>{c(),f.current+=1},3e3);return()=>clearTimeout(I)}else o&&!d.current&&(ui.error("Error fetching data. Please check your connection."),d.current=!0,p(!0))},[o,c]);const W=S.useCallback(I=>{const{id:at}=I.active,{type:lt,index:st}=hf(at.toString()),ct=lt==="user"?m[st]:v[st];T({id:at.toString(),data:ct})},[m,v]),j=S.useCallback(I=>{const{active:at,over:lt}=I;if(T(null),!lt)return;const{type:st,index:ct}=hf(at.id.toString()),{type:mt,index:gt}=hf(lt.id.toString());if(st===mt)(st==="user"?y:w)(Z=>Xf(Z,ct,gt));else if(st==="user"&&mt==="key"){const C=m[ct];y(q=>q.filter((ut,R)=>R!==ct));const Z=C.length>1?C.map(q=>[q]):[C];w(q=>{const ut=[...q];return ut.splice(gt,0,...Z),ut})}else if(st==="key"&&mt==="user"){const C=v[ct];w(Z=>Z.filter((q,ut)=>ut!==ct)),y(Z=>{const q=[...Z];return q.splice(gt,0,C),q})}},[m,v]),tt=S.useCallback(I=>{const{rowIndex:at,editItem:lt,editIndex:st}=M;at!==null&&(y(ct=>{const mt=[...ct];return st!==null&&lt?mt[at][st]=I:mt[at].length<3&&(mt[at]=[...mt[at],I]),mt}),lt?(w(ct=>ct.map(mt=>mt.filter(gt=>gt.text!==I.text)).filter(mt=>mt.length>0)),w(ct=>[...ct,[lt]])):w(ct=>ct.map(mt=>mt.filter(gt=>gt.text!==I.text)).filter(mt=>mt.length>0)),F({open:!1,rowIndex:null,editItem:null,editIndex:null}))},[M]),$=async()=>{if(m.length>0)try{if((await he.post((er==null?void 0:er.VITE_API)||window.location.href,m.filter(at=>at.length>0))).status!==200)throw new Error("Failed to save.");ui.success("Saved successfully!"),c()}catch(I){ui.error("Save failed. Please try again."),console.log(I)}},H=()=>{a&&(y(a.userlist||[]),w(a.keylist||[]),ui.success("Reset to original state."))};return h&&o?P.jsx("div",{className:"flex min-h-svh items-center justify-center p-5 text-red-500",children:o.message??"Unknown error"}):P.jsxs(_1,{collisionDetection:kS,onDragStart:W,onDragEnd:j,sensors:Q,children:[P.jsxs("div",{className:"flex min-h-svh flex-col items-center justify-center gap-5 bg-slate-200 p-5 lg:flex-row-reverse",children:[P.jsx(uv,{items:m.map((I,at)=>`user-${at}`),strategy:sv,children:P.jsxs("div",{className:"grid w-85 grid-cols-6 gap-2 lg:w-full",children:[!i&&!r&&!o?m.length>0?m.map((I,at)=>P.jsx($o,{id:`user-${at}`,data:I,variant:"primary",onAddItemClick:()=>F({open:!0,rowIndex:at,editItem:null,editIndex:null}),onItemClick:(lt,st)=>F({open:!0,rowIndex:at,editItem:lt,editIndex:st}),keyListLength:m.length,textData:a.text},`user-${at}`)):P.jsx($o,{id:"user-empty",data:[{text:"Drag To here for make your Keyboard"}],variant:"primary",notDragable:!0},"user-empty"):P.jsxs(P.Fragment,{children:[P.jsx(nr,{data:[{text:"Loading..."}],variant:"primary"}),P.jsx(nr,{data:[{text:"Loading..."}],variant:"primary"}),P.jsx(nr,{data:[{text:"Loading..."}],variant:"primary"})]}),JSON.stringify(m)!==JSON.stringify(A)&&m.length>0&&P.jsxs("div",{className:"col-span-6 mt-3 flex justify-center gap-2",children:[P.jsx(ar,{variant:"outline",onClick:H,children:"Reset"}),P.jsx(ar,{onClick:$,children:"Save"})]})]})}),P.jsx("div",{className:"w-85 py-5 lg:hidden",children:P.jsx(ex,{className:"bg-gray-900"})}),P.jsx(uv,{items:v.map((I,at)=>`key-${at}`),strategy:sv,children:P.jsx("div",{className:"grid w-85 grid-cols-6 gap-2 lg:w-full",children:!i&&!r&&!o?v.length>0?v.map((I,at)=>P.jsx($o,{id:`key-${at}`,data:I,variant:"secondary",textData:a.text},`key-${at}`)):P.jsx($o,{id:"key-empty",data:[{text:"Drag To here to Delete an item from your Keyboard"}],variant:"secondary",notDragable:!0},"key-empty"):P.jsx(nr,{data:[{text:"Loading..."}],variant:"secondary"})})})]}),P.jsx(W1,{dropAnimation:null,children:x?P.jsx("div",{className:"col-span-6 flex gap-2 opacity-80 select-none",children:P.jsx(nr,{data:x.data,textData:a==null?void 0:a.text,variant:"ghost"})}):null}),P.jsx(FR,{open:M.open,onOpenChange:I=>F(at=>({...at,open:I})),children:P.jsxs(IR,{"aria-describedby":void 0,children:[P.jsxs(PR,{children:[P.jsx(eT,{children:M.editItem?"Edit or Replace":"Select a Key"}),P.jsx("div",{className:"flex flex-col gap-3 py-3",children:v.flat().map((I,at)=>P.jsx(qv,{asChild:!0,children:P.jsx(ar,{onClick:()=>tt(I),className:"text-primary rounded-sm border border-gray-500 bg-white shadow hover:bg-gray-100",children:a.text[I.text]||I.text})},at))})]}),P.jsx("div",{className:"flex flex-wrap gap-2",children:M.editItem&&P.jsx(tT,{children:P.jsx(qv,{asChild:!0,children:P.jsx(ar,{onClick:()=>{const{rowIndex:I,editItem:at,editIndex:lt}=M;if(I!==null&&lt!==null&&at){const st=m[I][lt];y(ct=>{const mt=[...ct];return mt[I]=mt[I].filter((gt,C)=>C!==lt),mt}),w(ct=>[...ct,[st]])}F({open:!1,rowIndex:null,editItem:null,editIndex:null})},className:"rounded-sm border border-red-300 bg-white text-red-500 shadow hover:bg-red-100",children:"Delete"})})})})]})})]})}var UA=(a,r,i,o,c,f,d,h)=>{let p=document.documentElement,m=["light","dark"];function y(A){(Array.isArray(a)?a:[a]).forEach(D=>{let x=D==="class",T=x&&f?c.map(M=>f[M]||M):c;x?(p.classList.remove(...T),p.classList.add(f&&f[A]?f[A]:A)):p.setAttribute(D,A)}),v(A)}function v(A){h&&m.includes(A)&&(p.style.colorScheme=A)}function w(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(o)y(o);else try{let A=localStorage.getItem(r)||i,D=d&&A==="system"?w():A;y(D)}catch{}},BA=S.createContext(void 0),LA={setTheme:a=>{},themes:[]},jA=()=>{var a;return(a=S.useContext(BA))!=null?a:LA};S.memo(({forcedTheme:a,storageKey:r,attribute:i,enableSystem:o,enableColorScheme:c,defaultTheme:f,value:d,themes:h,nonce:p,scriptProps:m})=>{let y=JSON.stringify([i,r,f,a,h,d,o,c]).slice(1,-1);return S.createElement("script",{...m,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${UA.toString()})(${y})`}})});const HA=({...a})=>{const{theme:r="system"}=jA();return P.jsx(Dx,{theme:r,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...a})};yS.createRoot(document.getElementById("root")).render(P.jsxs(S.StrictMode,{children:[P.jsx(zA,{}),P.jsx(HA,{})]}));
