Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


Show other level

var Md=e=>{throw TypeError(e)};var tl=(e,t,n)=>t.has(e)||Md("Cannot "+n);var N=(e,t,n)=>(tl(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(e,t,n)=>t.has(e)?Md("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),B=(e,t,n,r)=>(tl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ie=(e,t,n)=>(tl(e,t,"access private method"),n);var qs=(e,t,n,r)=>({set _(o){B(e,t,o,n)},get _(){return N(e,t,r)}});function kx(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 s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Co(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wp={exports:{}},ma={},Qp={exports:{}},q={};/**
 * @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 Ls=Symbol.for("react.element"),Px=Symbol.for("react.portal"),Rx=Symbol.for("react.fragment"),Ax=Symbol.for("react.strict_mode"),_x=Symbol.for("react.profiler"),Ox=Symbol.for("react.provider"),Ix=Symbol.for("react.context"),Lx=Symbol.for("react.forward_ref"),Mx=Symbol.for("react.suspense"),Dx=Symbol.for("react.memo"),Fx=Symbol.for("react.lazy"),Dd=Symbol.iterator;function zx(e){return e===null||typeof e!="object"?null:(e=Dd&&e[Dd]||e["@@iterator"],typeof e=="function"?e:null)}var Gp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Kp=Object.assign,Yp={};function jo(e,t,n){this.props=e,this.context=t,this.refs=Yp,this.updater=n||Gp}jo.prototype.isReactComponent={};jo.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")};jo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qp(){}qp.prototype=jo.prototype;function tc(e,t,n){this.props=e,this.context=t,this.refs=Yp,this.updater=n||Gp}var nc=tc.prototype=new qp;nc.constructor=tc;Kp(nc,jo.prototype);nc.isPureReactComponent=!0;var Fd=Array.isArray,Xp=Object.prototype.hasOwnProperty,rc={current:null},Zp={key:!0,ref:!0,__self:!0,__source:!0};function Jp(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Xp.call(t,r)&&!Zp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Ls,type:e,key:s,ref:i,props:o,_owner:rc.current}}function $x(e,t){return{$$typeof:Ls,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function oc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ls}function Ux(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var zd=/\/+/g;function nl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ux(""+e.key):t.toString(36)}function xi(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ls:case Px:i=!0}}if(i)return i=e,o=o(i),e=r===""?+nl(i,0):r,Fd(o)?(n="",e!=null&&(n=e.replace(zd,"$&/")+"/"),xi(o,t,n,"",function(c){return c})):o!=null&&(oc(o)&&(o=$x(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(zd,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?:r+":",Fd(e))for(var a=0;a<e.length;a++){s=e[a];var u=r+nl(s,a);i+=xi(s,t,n,u,o)}else if(u=zx(e),typeof u=="function")for(e=u.call(e),a=0;!(s=e.next()).done;)s=s.value,u=r+nl(s,a++),i+=xi(s,t,n,u,o);else if(s==="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 i}function Xs(e,t,n){if(e==null)return e;var r=[],o=0;return xi(e,r,"","",function(s){return t.call(n,s,o++)}),r}function Bx(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 We={current:null},wi={transition:null},Vx={ReactCurrentDispatcher:We,ReactCurrentBatchConfig:wi,ReactCurrentOwner:rc};function eh(){throw Error("act(...) is not supported in production builds of React.")}q.Children={map:Xs,forEach:function(e,t,n){Xs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Xs(e,function(){t++}),t},toArray:function(e){return Xs(e,function(t){return t})||[]},only:function(e){if(!oc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};q.Component=jo;q.Fragment=Rx;q.Profiler=_x;q.PureComponent=tc;q.StrictMode=Ax;q.Suspense=Mx;q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vx;q.act=eh;q.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=Kp({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=rc.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)Xp.call(t,u)&&!Zp.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Ls,type:e.type,key:o,ref:s,props:r,_owner:i}};q.createContext=function(e){return e={$$typeof:Ix,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ox,_context:e},e.Consumer=e};q.createElement=Jp;q.createFactory=function(e){var t=Jp.bind(null,e);return t.type=e,t};q.createRef=function(){return{current:null}};q.forwardRef=function(e){return{$$typeof:Lx,render:e}};q.isValidElement=oc;q.lazy=function(e){return{$$typeof:Fx,_payload:{_status:-1,_result:e},_init:Bx}};q.memo=function(e,t){return{$$typeof:Dx,type:e,compare:t===void 0?null:t}};q.startTransition=function(e){var t=wi.transition;wi.transition={};try{e()}finally{wi.transition=t}};q.unstable_act=eh;q.useCallback=function(e,t){return We.current.useCallback(e,t)};q.useContext=function(e){return We.current.useContext(e)};q.useDebugValue=function(){};q.useDeferredValue=function(e){return We.current.useDeferredValue(e)};q.useEffect=function(e,t){return We.current.useEffect(e,t)};q.useId=function(){return We.current.useId()};q.useImperativeHandle=function(e,t,n){return We.current.useImperativeHandle(e,t,n)};q.useInsertionEffect=function(e,t){return We.current.useInsertionEffect(e,t)};q.useLayoutEffect=function(e,t){return We.current.useLayoutEffect(e,t)};q.useMemo=function(e,t){return We.current.useMemo(e,t)};q.useReducer=function(e,t,n){return We.current.useReducer(e,t,n)};q.useRef=function(e){return We.current.useRef(e)};q.useState=function(e){return We.current.useState(e)};q.useSyncExternalStore=function(e,t,n){return We.current.useSyncExternalStore(e,t,n)};q.useTransition=function(){return We.current.useTransition()};q.version="18.3.1";Qp.exports=q;var v=Qp.exports;const R=Co(v),sc=kx({__proto__:null,default:R},[v]);/**
 * @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 Hx=v,Wx=Symbol.for("react.element"),Qx=Symbol.for("react.fragment"),Gx=Object.prototype.hasOwnProperty,Kx=Hx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yx={key:!0,ref:!0,__self:!0,__source:!0};function th(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Gx.call(t,r)&&!Yx.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:Wx,type:e,key:s,ref:i,props:o,_owner:Kx.current}}ma.Fragment=Qx;ma.jsx=th;ma.jsxs=th;Wp.exports=ma;var l=Wp.exports,nh={exports:{}},lt={},rh={exports:{}},oh={};/**
 * @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(T,P){var L=T.length;T.push(P);e:for(;0<L;){var W=L-1>>>1,z=T[W];if(0<o(z,P))T[W]=P,T[L]=z,L=W;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var P=T[0],L=T.pop();if(L!==P){T[0]=L;e:for(var W=0,z=T.length,Y=z>>>1;W<Y;){var X=2*(W+1)-1,we=T[X],Oe=X+1,ne=T[Oe];if(0>o(we,L))Oe<z&&0>o(ne,we)?(T[W]=ne,T[Oe]=L,W=Oe):(T[W]=we,T[X]=L,W=X);else if(Oe<z&&0>o(ne,L))T[W]=ne,T[Oe]=L,W=Oe;else break e}}return P}function o(T,P){var L=T.sortIndex-P.sortIndex;return L!==0?L:T.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var u=[],c=[],d=1,f=null,h=3,p=!1,b=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=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(T){for(var P=n(c);P!==null;){if(P.callback===null)r(c);else if(P.startTime<=T)r(c),P.sortIndex=P.expirationTime,t(u,P);else break;P=n(c)}}function S(T){if(x=!1,y(T),!b)if(n(u)!==null)b=!0,F(E);else{var P=n(c);P!==null&&H(S,P.startTime-T)}}function E(T,P){b=!1,x&&(x=!1,m(k),k=-1),p=!0;var L=h;try{for(y(P),f=n(u);f!==null&&(!(f.expirationTime>P)||T&&!$());){var W=f.callback;if(typeof W=="function"){f.callback=null,h=f.priorityLevel;var z=W(f.expirationTime<=P);P=e.unstable_now(),typeof z=="function"?f.callback=z:f===n(u)&&r(u),y(P)}else r(u);f=n(u)}if(f!==null)var Y=!0;else{var X=n(c);X!==null&&H(S,X.startTime-P),Y=!1}return Y}finally{f=null,h=L,p=!1}}var C=!1,j=null,k=-1,O=5,_=-1;function $(){return!(e.unstable_now()-_<O)}function M(){if(j!==null){var T=e.unstable_now();_=T;var P=!0;try{P=j(!0,T)}finally{P?G():(C=!1,j=null)}}else C=!1}var G;if(typeof g=="function")G=function(){g(M)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,K=I.port2;I.port1.onmessage=M,G=function(){K.postMessage(null)}}else G=function(){w(M,0)};function F(T){j=T,C||(C=!0,G())}function H(T,P){k=w(function(){T(e.unstable_now())},P)}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(T){T.callback=null},e.unstable_continueExecution=function(){b||p||(b=!0,F(E))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(T){switch(h){case 1:case 2:case 3:var P=3;break;default:P=h}var L=h;h=P;try{return T()}finally{h=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,P){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var L=h;h=T;try{return P()}finally{h=L}},e.unstable_scheduleCallback=function(T,P,L){var W=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?W+L:W):L=W,T){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=L+z,T={id:d++,callback:P,priorityLevel:T,startTime:L,expirationTime:z,sortIndex:-1},L>W?(T.sortIndex=L,t(c,T),n(u)===null&&T===n(c)&&(x?(m(k),k=-1):x=!0,H(S,L-W))):(T.sortIndex=z,t(u,T),b||p||(b=!0,F(E))),T},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(T){var P=h;return function(){var L=h;h=P;try{return T.apply(this,arguments)}finally{h=L}}}})(oh);rh.exports=oh;var qx=rh.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 Xx=v,it=qx;function A(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 sh=new Set,us={};function Nr(e,t){ho(e,t),ho(e+"Capture",t)}function ho(e,t){for(us[e]=t,e=0;e<t.length;e++)sh.add(t[e])}var cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zl=Object.prototype.hasOwnProperty,Zx=/^[:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�][:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\-.0-9·̀-ͯ‿-⁀]*$/,$d={},Ud={};function Jx(e){return zl.call(Ud,e)?!0:zl.call($d,e)?!1:Zx.test(e)?Ud[e]=!0:($d[e]=!0,!1)}function e0(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 t0(e,t,n,r){if(t===null||typeof t>"u"||e0(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 Qe(e,t,n,r,o,s,i){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=s,this.removeEmptyString=i}var Ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ae[e]=new Qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ae[t]=new Qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ae[e]=new Qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ae[e]=new Qe(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){Ae[e]=new Qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ae[e]=new Qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ae[e]=new Qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ae[e]=new Qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ae[e]=new Qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ic=/[\-:]([a-z])/g;function ac(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(ic,ac);Ae[t]=new Qe(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(ic,ac);Ae[t]=new Qe(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(ic,ac);Ae[t]=new Qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ae[e]=new Qe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ae.xlinkHref=new Qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ae[e]=new Qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function lc(e,t,n,r){var o=Ae.hasOwnProperty(t)?Ae[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(t0(t,n,o,r)&&(n=null),r||o===null?Jx(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 gn=Xx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Zs=Symbol.for("react.element"),Fr=Symbol.for("react.portal"),zr=Symbol.for("react.fragment"),uc=Symbol.for("react.strict_mode"),$l=Symbol.for("react.profiler"),ih=Symbol.for("react.provider"),ah=Symbol.for("react.context"),cc=Symbol.for("react.forward_ref"),Ul=Symbol.for("react.suspense"),Bl=Symbol.for("react.suspense_list"),dc=Symbol.for("react.memo"),Tn=Symbol.for("react.lazy"),lh=Symbol.for("react.offscreen"),Bd=Symbol.iterator;function Lo(e){return e===null||typeof e!="object"?null:(e=Bd&&e[Bd]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Object.assign,rl;function Go(e){if(rl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);rl=t&&t[1]||""}return`
`+rl+e}var ol=!1;function sl(e,t){if(!e||ol)return"";ol=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
`),s=r.stack.split(`
`),i=o.length-1,a=s.length-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==s[a]){var u=`
`+o[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=i&&0<=a);break}}}finally{ol=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Go(e):""}function n0(e){switch(e.tag){case 5:return Go(e.type);case 16:return Go("Lazy");case 13:return Go("Suspense");case 19:return Go("SuspenseList");case 0:case 2:case 15:return e=sl(e.type,!1),e;case 11:return e=sl(e.type.render,!1),e;case 1:return e=sl(e.type,!0),e;default:return""}}function Vl(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 zr:return"Fragment";case Fr:return"Portal";case $l:return"Profiler";case uc:return"StrictMode";case Ul:return"Suspense";case Bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ah:return(e.displayName||"Context")+".Consumer";case ih:return(e._context.displayName||"Context")+".Provider";case cc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dc:return t=e.displayName||null,t!==null?t:Vl(e.type)||"Memo";case Tn:t=e._payload,e=e._init;try{return Vl(e(t))}catch{}}return null}function r0(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 Vl(t);case 8:return t===uc?"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 Kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function o0(e){var t=uh(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Js(e){e._valueTracker||(e._valueTracker=o0(e))}function ch(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Li(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 Hl(e,t){var n=t.checked;return ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Vd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kn(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 dh(e,t){t=t.checked,t!=null&&lc(e,"checked",t,!1)}function Wl(e,t){dh(e,t);var n=Kn(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")?Ql(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ql(e,t.type,Kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hd(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 Ql(e,t,n){(t!=="number"||Li(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ko=Array.isArray;function qr(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=""+Kn(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 Gl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return ge({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Wd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(A(92));if(Ko(n)){if(1<n.length)throw Error(A(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Kn(n)}}function fh(e,t){var n=Kn(t.value),r=Kn(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 Qd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ph(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 Kl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ph(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ei,hh=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(ei=ei||document.createElement("div"),ei.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ei.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function cs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xo={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},s0=["Webkit","ms","Moz","O"];Object.keys(Xo).forEach(function(e){s0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xo[t]=Xo[e]})});function mh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xo.hasOwnProperty(e)&&Xo[e]?(""+t).trim():t+"px"}function gh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=mh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var i0=ge({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 Yl(e,t){if(t){if(i0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function ql(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 Xl=null;function fc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zl=null,Xr=null,Zr=null;function Gd(e){if(e=Fs(e)){if(typeof Zl!="function")throw Error(A(280));var t=e.stateNode;t&&(t=wa(t),Zl(e.stateNode,e.type,t))}}function vh(e){Xr?Zr?Zr.push(e):Zr=[e]:Xr=e}function yh(){if(Xr){var e=Xr,t=Zr;if(Zr=Xr=null,Gd(e),t)for(e=0;e<t.length;e++)Gd(t[e])}}function xh(e,t){return e(t)}function wh(){}var il=!1;function bh(e,t,n){if(il)return e(t,n);il=!0;try{return xh(e,t,n)}finally{il=!1,(Xr!==null||Zr!==null)&&(wh(),yh())}}function ds(e,t){var n=e.stateNode;if(n===null)return null;var r=wa(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(A(231,t,typeof n));return n}var Jl=!1;if(cn)try{var Mo={};Object.defineProperty(Mo,"passive",{get:function(){Jl=!0}}),window.addEventListener("test",Mo,Mo),window.removeEventListener("test",Mo,Mo)}catch{Jl=!1}function a0(e,t,n,r,o,s,i,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Zo=!1,Mi=null,Di=!1,eu=null,l0={onError:function(e){Zo=!0,Mi=e}};function u0(e,t,n,r,o,s,i,a,u){Zo=!1,Mi=null,a0.apply(l0,arguments)}function c0(e,t,n,r,o,s,i,a,u){if(u0.apply(this,arguments),Zo){if(Zo){var c=Mi;Zo=!1,Mi=null}else throw Error(A(198));Di||(Di=!0,eu=c)}}function Tr(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 Sh(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 Kd(e){if(Tr(e)!==e)throw Error(A(188))}function d0(e){var t=e.alternate;if(!t){if(t=Tr(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Kd(o),e;if(s===r)return Kd(o),t;s=s.sibling}throw Error(A(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i)throw Error(A(189))}}if(n.alternate!==r)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function Eh(e){return e=d0(e),e!==null?Ch(e):null}function Ch(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ch(e);if(t!==null)return t;e=e.sibling}return null}var jh=it.unstable_scheduleCallback,Yd=it.unstable_cancelCallback,f0=it.unstable_shouldYield,p0=it.unstable_requestPaint,xe=it.unstable_now,h0=it.unstable_getCurrentPriorityLevel,pc=it.unstable_ImmediatePriority,Nh=it.unstable_UserBlockingPriority,Fi=it.unstable_NormalPriority,m0=it.unstable_LowPriority,Th=it.unstable_IdlePriority,ga=null,Qt=null;function g0(e){if(Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(ga,e,void 0,(e.current.flags&128)===128)}catch{}}var At=Math.clz32?Math.clz32:x0,v0=Math.log,y0=Math.LN2;function x0(e){return e>>>=0,e===0?32:31-(v0(e)/y0|0)|0}var ti=64,ni=4194304;function Yo(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 zi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=Yo(a):(s&=i,s!==0&&(r=Yo(s)))}else i=n&~o,i!==0?r=Yo(i):s!==0&&(r=Yo(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&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-At(t),o=1<<n,r|=e[n],t&=~o;return r}function w0(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 b0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-At(s),a=1<<i,u=o[i];u===-1?(!(a&n)||a&r)&&(o[i]=w0(a,t)):u<=t&&(e.expiredLanes|=a),s&=~a}}function tu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function kh(){var e=ti;return ti<<=1,!(ti&4194240)&&(ti=64),e}function al(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ms(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-At(t),e[t]=n}function S0(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-At(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function hc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-At(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var re=0;function Ph(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Rh,mc,Ah,_h,Oh,nu=!1,ri=[],zn=null,$n=null,Un=null,fs=new Map,ps=new Map,Pn=[],E0="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 qd(e,t){switch(e){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":$n=null;break;case"mouseover":case"mouseout":Un=null;break;case"pointerover":case"pointerout":fs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ps.delete(t.pointerId)}}function Do(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Fs(t),t!==null&&mc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function C0(e,t,n,r,o){switch(t){case"focusin":return zn=Do(zn,e,t,n,r,o),!0;case"dragenter":return $n=Do($n,e,t,n,r,o),!0;case"mouseover":return Un=Do(Un,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return fs.set(s,Do(fs.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,ps.set(s,Do(ps.get(s)||null,e,t,n,r,o)),!0}return!1}function Ih(e){var t=ar(e.target);if(t!==null){var n=Tr(t);if(n!==null){if(t=n.tag,t===13){if(t=Sh(n),t!==null){e.blockedOn=t,Oh(e.priority,function(){Ah(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 bi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ru(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xl=r,n.target.dispatchEvent(r),Xl=null}else return t=Fs(n),t!==null&&mc(t),e.blockedOn=n,!1;t.shift()}return!0}function Xd(e,t,n){bi(e)&&n.delete(t)}function j0(){nu=!1,zn!==null&&bi(zn)&&(zn=null),$n!==null&&bi($n)&&($n=null),Un!==null&&bi(Un)&&(Un=null),fs.forEach(Xd),ps.forEach(Xd)}function Fo(e,t){e.blockedOn===t&&(e.blockedOn=null,nu||(nu=!0,it.unstable_scheduleCallback(it.unstable_NormalPriority,j0)))}function hs(e){function t(o){return Fo(o,e)}if(0<ri.length){Fo(ri[0],e);for(var n=1;n<ri.length;n++){var r=ri[n];r.blockedOn===e&&(r.blockedOn=null)}}for(zn!==null&&Fo(zn,e),$n!==null&&Fo($n,e),Un!==null&&Fo(Un,e),fs.forEach(t),ps.forEach(t),n=0;n<Pn.length;n++)r=Pn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Pn.length&&(n=Pn[0],n.blockedOn===null);)Ih(n),n.blockedOn===null&&Pn.shift()}var Jr=gn.ReactCurrentBatchConfig,$i=!0;function N0(e,t,n,r){var o=re,s=Jr.transition;Jr.transition=null;try{re=1,gc(e,t,n,r)}finally{re=o,Jr.transition=s}}function T0(e,t,n,r){var o=re,s=Jr.transition;Jr.transition=null;try{re=4,gc(e,t,n,r)}finally{re=o,Jr.transition=s}}function gc(e,t,n,r){if($i){var o=ru(e,t,n,r);if(o===null)vl(e,t,r,Ui,n),qd(e,r);else if(C0(o,e,t,n,r))r.stopPropagation();else if(qd(e,r),t&4&&-1<E0.indexOf(e)){for(;o!==null;){var s=Fs(o);if(s!==null&&Rh(s),s=ru(e,t,n,r),s===null&&vl(e,t,r,Ui,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else vl(e,t,r,null,n)}}var Ui=null;function ru(e,t,n,r){if(Ui=null,e=fc(r),e=ar(e),e!==null)if(t=Tr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Sh(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 Ui=e,null}function Lh(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(h0()){case pc:return 1;case Nh:return 4;case Fi:case m0:return 16;case Th:return 536870912;default:return 16}default:return 16}}var Mn=null,vc=null,Si=null;function Mh(){if(Si)return Si;var e,t=vc,n=t.length,r,o="value"in Mn?Mn.value:Mn.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return Si=o.slice(e,1<r?1-r:void 0)}function Ei(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 oi(){return!0}function Zd(){return!1}function ut(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?oi:Zd,this.isPropagationStopped=Zd,this}return ge(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=oi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=oi)},persist:function(){},isPersistent:oi}),t}var No={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yc=ut(No),Ds=ge({},No,{view:0,detail:0}),k0=ut(Ds),ll,ul,zo,va=ge({},Ds,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xc,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!==zo&&(zo&&e.type==="mousemove"?(ll=e.screenX-zo.screenX,ul=e.screenY-zo.screenY):ul=ll=0,zo=e),ll)},movementY:function(e){return"movementY"in e?e.movementY:ul}}),Jd=ut(va),P0=ge({},va,{dataTransfer:0}),R0=ut(P0),A0=ge({},Ds,{relatedTarget:0}),cl=ut(A0),_0=ge({},No,{animationName:0,elapsedTime:0,pseudoElement:0}),O0=ut(_0),I0=ge({},No,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),L0=ut(I0),M0=ge({},No,{data:0}),ef=ut(M0),D0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},F0={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"},z0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=z0[e])?!!t[e]:!1}function xc(){return $0}var U0=ge({},Ds,{key:function(e){if(e.key){var t=D0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ei(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?F0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xc,charCode:function(e){return e.type==="keypress"?Ei(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ei(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),B0=ut(U0),V0=ge({},va,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tf=ut(V0),H0=ge({},Ds,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xc}),W0=ut(H0),Q0=ge({},No,{propertyName:0,elapsedTime:0,pseudoElement:0}),G0=ut(Q0),K0=ge({},va,{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}),Y0=ut(K0),q0=[9,13,27,32],wc=cn&&"CompositionEvent"in window,Jo=null;cn&&"documentMode"in document&&(Jo=document.documentMode);var X0=cn&&"TextEvent"in window&&!Jo,Dh=cn&&(!wc||Jo&&8<Jo&&11>=Jo),nf=" ",rf=!1;function Fh(e,t){switch(e){case"keyup":return q0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $r=!1;function Z0(e,t){switch(e){case"compositionend":return zh(t);case"keypress":return t.which!==32?null:(rf=!0,nf);case"textInput":return e=t.data,e===nf&&rf?null:e;default:return null}}function J0(e,t){if($r)return e==="compositionend"||!wc&&Fh(e,t)?(e=Mh(),Si=vc=Mn=null,$r=!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 Dh&&t.locale!=="ko"?null:t.data;default:return null}}var ew={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 of(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ew[e.type]:t==="textarea"}function $h(e,t,n,r){vh(r),t=Bi(t,"onChange"),0<t.length&&(n=new yc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var es=null,ms=null;function tw(e){Xh(e,0)}function ya(e){var t=Vr(e);if(ch(t))return e}function nw(e,t){if(e==="change")return t}var Uh=!1;if(cn){var dl;if(cn){var fl="oninput"in document;if(!fl){var sf=document.createElement("div");sf.setAttribute("oninput","return;"),fl=typeof sf.oninput=="function"}dl=fl}else dl=!1;Uh=dl&&(!document.documentMode||9<document.documentMode)}function af(){es&&(es.detachEvent("onpropertychange",Bh),ms=es=null)}function Bh(e){if(e.propertyName==="value"&&ya(ms)){var t=[];$h(t,ms,e,fc(e)),bh(tw,t)}}function rw(e,t,n){e==="focusin"?(af(),es=t,ms=n,es.attachEvent("onpropertychange",Bh)):e==="focusout"&&af()}function ow(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ya(ms)}function sw(e,t){if(e==="click")return ya(t)}function iw(e,t){if(e==="input"||e==="change")return ya(t)}function aw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:aw;function gs(e,t){if(Ot(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(!zl.call(t,o)||!Ot(e[o],t[o]))return!1}return!0}function lf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uf(e,t){var n=lf(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=lf(n)}}function Vh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hh(){for(var e=window,t=Li();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Li(e.document)}return t}function bc(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 lw(e){var t=Hh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Vh(n.ownerDocument.documentElement,n)){if(r!==null&&bc(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,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=uf(n,s);var i=uf(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 uw=cn&&"documentMode"in document&&11>=document.documentMode,Ur=null,ou=null,ts=null,su=!1;function cf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;su||Ur==null||Ur!==Li(r)||(r=Ur,"selectionStart"in r&&bc(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}),ts&&gs(ts,r)||(ts=r,r=Bi(ou,"onSelect"),0<r.length&&(t=new yc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ur)))}function si(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Br={animationend:si("Animation","AnimationEnd"),animationiteration:si("Animation","AnimationIteration"),animationstart:si("Animation","AnimationStart"),transitionend:si("Transition","TransitionEnd")},pl={},Wh={};cn&&(Wh=document.createElement("div").style,"AnimationEvent"in window||(delete Br.animationend.animation,delete Br.animationiteration.animation,delete Br.animationstart.animation),"TransitionEvent"in window||delete Br.transitionend.transition);function xa(e){if(pl[e])return pl[e];if(!Br[e])return e;var t=Br[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wh)return pl[e]=t[n];return e}var Qh=xa("animationend"),Gh=xa("animationiteration"),Kh=xa("animationstart"),Yh=xa("transitionend"),qh=new Map,df="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 Zn(e,t){qh.set(e,t),Nr(t,[e])}for(var hl=0;hl<df.length;hl++){var ml=df[hl],cw=ml.toLowerCase(),dw=ml[0].toUpperCase()+ml.slice(1);Zn(cw,"on"+dw)}Zn(Qh,"onAnimationEnd");Zn(Gh,"onAnimationIteration");Zn(Kh,"onAnimationStart");Zn("dblclick","onDoubleClick");Zn("focusin","onFocus");Zn("focusout","onBlur");Zn(Yh,"onTransitionEnd");ho("onMouseEnter",["mouseout","mouseover"]);ho("onMouseLeave",["mouseout","mouseover"]);ho("onPointerEnter",["pointerout","pointerover"]);ho("onPointerLeave",["pointerout","pointerover"]);Nr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Nr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Nr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Nr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Nr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Nr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qo="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(" "),fw=new Set("cancel close invalid load scroll toggle".split(" ").concat(qo));function ff(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,c0(r,t,void 0,e),e.currentTarget=null}function Xh(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 s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==s&&o.isPropagationStopped())break e;ff(o,a,c),s=u}else for(i=0;i<r.length;i++){if(a=r[i],u=a.instance,c=a.currentTarget,a=a.listener,u!==s&&o.isPropagationStopped())break e;ff(o,a,c),s=u}}}if(Di)throw e=eu,Di=!1,eu=null,e}function le(e,t){var n=t[cu];n===void 0&&(n=t[cu]=new Set);var r=e+"__bubble";n.has(r)||(Zh(t,e,2,!1),n.add(r))}function gl(e,t,n){var r=0;t&&(r|=4),Zh(n,e,r,t)}var ii="_reactListening"+Math.random().toString(36).slice(2);function vs(e){if(!e[ii]){e[ii]=!0,sh.forEach(function(n){n!=="selectionchange"&&(fw.has(n)||gl(n,!1,e),gl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ii]||(t[ii]=!0,gl("selectionchange",!1,t))}}function Zh(e,t,n,r){switch(Lh(t)){case 1:var o=N0;break;case 4:o=T0;break;default:o=gc}n=o.bind(null,t,n,e),o=void 0,!Jl||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 vl(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var u=i.tag;if((u===3||u===4)&&(u=i.stateNode.containerInfo,u===o||u.nodeType===8&&u.parentNode===o))return;i=i.return}for(;a!==null;){if(i=ar(a),i===null)return;if(u=i.tag,u===5||u===6){r=s=i;continue e}a=a.parentNode}}r=r.return}bh(function(){var c=s,d=fc(n),f=[];e:{var h=qh.get(e);if(h!==void 0){var p=yc,b=e;switch(e){case"keypress":if(Ei(n)===0)break e;case"keydown":case"keyup":p=B0;break;case"focusin":b="focus",p=cl;break;case"focusout":b="blur",p=cl;break;case"beforeblur":case"afterblur":p=cl;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":p=Jd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=R0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=W0;break;case Qh:case Gh:case Kh:p=O0;break;case Yh:p=G0;break;case"scroll":p=k0;break;case"wheel":p=Y0;break;case"copy":case"cut":case"paste":p=L0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=tf}var x=(t&4)!==0,w=!x&&e==="scroll",m=x?h!==null?h+"Capture":null:h;x=[];for(var g=c,y;g!==null;){y=g;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,m!==null&&(S=ds(g,m),S!=null&&x.push(ys(g,S,y)))),w)break;g=g.return}0<x.length&&(h=new p(h,b,null,n,d),f.push({event:h,listeners:x}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Xl&&(b=n.relatedTarget||n.fromElement)&&(ar(b)||b[dn]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(b=n.relatedTarget||n.toElement,p=c,b=b?ar(b):null,b!==null&&(w=Tr(b),b!==w||b.tag!==5&&b.tag!==6)&&(b=null)):(p=null,b=c),p!==b)){if(x=Jd,S="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(x=tf,S="onPointerLeave",m="onPointerEnter",g="pointer"),w=p==null?h:Vr(p),y=b==null?h:Vr(b),h=new x(S,g+"leave",p,n,d),h.target=w,h.relatedTarget=y,S=null,ar(d)===c&&(x=new x(m,g+"enter",b,n,d),x.target=y,x.relatedTarget=w,S=x),w=S,p&&b)t:{for(x=p,m=b,g=0,y=x;y;y=Mr(y))g++;for(y=0,S=m;S;S=Mr(S))y++;for(;0<g-y;)x=Mr(x),g--;for(;0<y-g;)m=Mr(m),y--;for(;g--;){if(x===m||m!==null&&x===m.alternate)break t;x=Mr(x),m=Mr(m)}x=null}else x=null;p!==null&&pf(f,h,p,x,!1),b!==null&&w!==null&&pf(f,w,b,x,!0)}}e:{if(h=c?Vr(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var E=nw;else if(of(h))if(Uh)E=iw;else{E=ow;var C=rw}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=sw);if(E&&(E=E(e,c))){$h(f,E,n,d);break e}C&&C(e,h,c),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&Ql(h,"number",h.value)}switch(C=c?Vr(c):window,e){case"focusin":(of(C)||C.contentEditable==="true")&&(Ur=C,ou=c,ts=null);break;case"focusout":ts=ou=Ur=null;break;case"mousedown":su=!0;break;case"contextmenu":case"mouseup":case"dragend":su=!1,cf(f,n,d);break;case"selectionchange":if(uw)break;case"keydown":case"keyup":cf(f,n,d)}var j;if(wc)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else $r?Fh(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(Dh&&n.locale!=="ko"&&($r||k!=="onCompositionStart"?k==="onCompositionEnd"&&$r&&(j=Mh()):(Mn=d,vc="value"in Mn?Mn.value:Mn.textContent,$r=!0)),C=Bi(c,k),0<C.length&&(k=new ef(k,e,null,n,d),f.push({event:k,listeners:C}),j?k.data=j:(j=zh(n),j!==null&&(k.data=j)))),(j=X0?Z0(e,n):J0(e,n))&&(c=Bi(c,"onBeforeInput"),0<c.length&&(d=new ef("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=j))}Xh(f,t)})}function ys(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=ds(e,n),s!=null&&r.unshift(ys(e,s,o)),s=ds(e,t),s!=null&&r.push(ys(e,s,o))),e=e.return}return r}function Mr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function pf(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,u=a.alternate,c=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&c!==null&&(a=c,o?(u=ds(n,s),u!=null&&i.unshift(ys(n,u,a))):o||(u=ds(n,s),u!=null&&i.push(ys(n,u,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var pw=/\r\n?/g,hw=/|�/g;function hf(e){return(typeof e=="string"?e:""+e).replace(pw,`
`).replace(hw,"")}function ai(e,t,n){if(t=hf(t),hf(e)!==t&&n)throw Error(A(425))}function Vi(){}var iu=null,au=null;function lu(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 uu=typeof setTimeout=="function"?setTimeout:void 0,mw=typeof clearTimeout=="function"?clearTimeout:void 0,mf=typeof Promise=="function"?Promise:void 0,gw=typeof queueMicrotask=="function"?queueMicrotask:typeof mf<"u"?function(e){return mf.resolve(null).then(e).catch(vw)}:uu;function vw(e){setTimeout(function(){throw e})}function yl(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),hs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);hs(t)}function Bn(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 gf(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 To=Math.random().toString(36).slice(2),Ht="__reactFiber$"+To,xs="__reactProps$"+To,dn="__reactContainer$"+To,cu="__reactEvents$"+To,yw="__reactListeners$"+To,xw="__reactHandles$"+To;function ar(e){var t=e[Ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dn]||n[Ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gf(e);e!==null;){if(n=e[Ht])return n;e=gf(e)}return t}e=n,n=e.parentNode}return null}function Fs(e){return e=e[Ht]||e[dn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Vr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(A(33))}function wa(e){return e[xs]||null}var du=[],Hr=-1;function Jn(e){return{current:e}}function ue(e){0>Hr||(e.current=du[Hr],du[Hr]=null,Hr--)}function se(e,t){Hr++,du[Hr]=e.current,e.current=t}var Yn={},$e=Jn(Yn),Xe=Jn(!1),wr=Yn;function mo(e,t){var n=e.type.contextTypes;if(!n)return Yn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ze(e){return e=e.childContextTypes,e!=null}function Hi(){ue(Xe),ue($e)}function vf(e,t,n){if($e.current!==Yn)throw Error(A(168));se($e,t),se(Xe,n)}function Jh(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(A(108,r0(e)||"Unknown",o));return ge({},n,r)}function Wi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yn,wr=$e.current,se($e,e),se(Xe,Xe.current),!0}function yf(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Jh(e,t,wr),r.__reactInternalMemoizedMergedChildContext=e,ue(Xe),ue($e),se($e,e)):ue(Xe),se(Xe,n)}var on=null,ba=!1,xl=!1;function em(e){on===null?on=[e]:on.push(e)}function ww(e){ba=!0,em(e)}function er(){if(!xl&&on!==null){xl=!0;var e=0,t=re;try{var n=on;for(re=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}on=null,ba=!1}catch(o){throw on!==null&&(on=on.slice(e+1)),jh(pc,er),o}finally{re=t,xl=!1}}return null}var Wr=[],Qr=0,Qi=null,Gi=0,ft=[],pt=0,br=null,an=1,ln="";function sr(e,t){Wr[Qr++]=Gi,Wr[Qr++]=Qi,Qi=e,Gi=t}function tm(e,t,n){ft[pt++]=an,ft[pt++]=ln,ft[pt++]=br,br=e;var r=an;e=ln;var o=32-At(r)-1;r&=~(1<<o),n+=1;var s=32-At(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,an=1<<32-At(t)+o|n<<o|r,ln=s+e}else an=1<<s|n<<o|r,ln=e}function Sc(e){e.return!==null&&(sr(e,1),tm(e,1,0))}function Ec(e){for(;e===Qi;)Qi=Wr[--Qr],Wr[Qr]=null,Gi=Wr[--Qr],Wr[Qr]=null;for(;e===br;)br=ft[--pt],ft[pt]=null,ln=ft[--pt],ft[pt]=null,an=ft[--pt],ft[pt]=null}var ot=null,rt=null,pe=!1,Pt=null;function nm(e,t){var n=ht(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 xf(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,ot=e,rt=Bn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ot=e,rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=br!==null?{id:an,overflow:ln}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ht(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ot=e,rt=null,!0):!1;default:return!1}}function fu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function pu(e){if(pe){var t=rt;if(t){var n=t;if(!xf(e,t)){if(fu(e))throw Error(A(418));t=Bn(n.nextSibling);var r=ot;t&&xf(e,t)?nm(r,n):(e.flags=e.flags&-4097|2,pe=!1,ot=e)}}else{if(fu(e))throw Error(A(418));e.flags=e.flags&-4097|2,pe=!1,ot=e}}}function wf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ot=e}function li(e){if(e!==ot)return!1;if(!pe)return wf(e),pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!lu(e.type,e.memoizedProps)),t&&(t=rt)){if(fu(e))throw rm(),Error(A(418));for(;t;)nm(e,t),t=Bn(t.nextSibling)}if(wf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){rt=Bn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}rt=null}}else rt=ot?Bn(e.stateNode.nextSibling):null;return!0}function rm(){for(var e=rt;e;)e=Bn(e.nextSibling)}function go(){rt=ot=null,pe=!1}function Cc(e){Pt===null?Pt=[e]:Pt.push(e)}var bw=gn.ReactCurrentBatchConfig;function $o(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(A(309));var r=n.stateNode}if(!r)throw Error(A(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=o.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(A(284));if(!n._owner)throw Error(A(290,e))}return e}function ui(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bf(e){var t=e._init;return t(e._payload)}function om(e){function t(m,g){if(e){var y=m.deletions;y===null?(m.deletions=[g],m.flags|=16):y.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function o(m,g){return m=Qn(m,g),m.index=0,m.sibling=null,m}function s(m,g,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<g?(m.flags|=2,g):y):(m.flags|=2,g)):(m.flags|=1048576,g)}function i(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,g,y,S){return g===null||g.tag!==6?(g=Nl(y,m.mode,S),g.return=m,g):(g=o(g,y),g.return=m,g)}function u(m,g,y,S){var E=y.type;return E===zr?d(m,g,y.props.children,S,y.key):g!==null&&(g.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Tn&&bf(E)===g.type)?(S=o(g,y.props),S.ref=$o(m,g,y),S.return=m,S):(S=Ri(y.type,y.key,y.props,null,m.mode,S),S.ref=$o(m,g,y),S.return=m,S)}function c(m,g,y,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=Tl(y,m.mode,S),g.return=m,g):(g=o(g,y.children||[]),g.return=m,g)}function d(m,g,y,S,E){return g===null||g.tag!==7?(g=vr(y,m.mode,S,E),g.return=m,g):(g=o(g,y),g.return=m,g)}function f(m,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Nl(""+g,m.mode,y),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Zs:return y=Ri(g.type,g.key,g.props,null,m.mode,y),y.ref=$o(m,null,g),y.return=m,y;case Fr:return g=Tl(g,m.mode,y),g.return=m,g;case Tn:var S=g._init;return f(m,S(g._payload),y)}if(Ko(g)||Lo(g))return g=vr(g,m.mode,y,null),g.return=m,g;ui(m,g)}return null}function h(m,g,y,S){var E=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return E!==null?null:a(m,g,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Zs:return y.key===E?u(m,g,y,S):null;case Fr:return y.key===E?c(m,g,y,S):null;case Tn:return E=y._init,h(m,g,E(y._payload),S)}if(Ko(y)||Lo(y))return E!==null?null:d(m,g,y,S,null);ui(m,y)}return null}function p(m,g,y,S,E){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(y)||null,a(g,m,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Zs:return m=m.get(S.key===null?y:S.key)||null,u(g,m,S,E);case Fr:return m=m.get(S.key===null?y:S.key)||null,c(g,m,S,E);case Tn:var C=S._init;return p(m,g,y,C(S._payload),E)}if(Ko(S)||Lo(S))return m=m.get(y)||null,d(g,m,S,E,null);ui(g,S)}return null}function b(m,g,y,S){for(var E=null,C=null,j=g,k=g=0,O=null;j!==null&&k<y.length;k++){j.index>k?(O=j,j=null):O=j.sibling;var _=h(m,j,y[k],S);if(_===null){j===null&&(j=O);break}e&&j&&_.alternate===null&&t(m,j),g=s(_,g,k),C===null?E=_:C.sibling=_,C=_,j=O}if(k===y.length)return n(m,j),pe&&sr(m,k),E;if(j===null){for(;k<y.length;k++)j=f(m,y[k],S),j!==null&&(g=s(j,g,k),C===null?E=j:C.sibling=j,C=j);return pe&&sr(m,k),E}for(j=r(m,j);k<y.length;k++)O=p(j,m,k,y[k],S),O!==null&&(e&&O.alternate!==null&&j.delete(O.key===null?k:O.key),g=s(O,g,k),C===null?E=O:C.sibling=O,C=O);return e&&j.forEach(function($){return t(m,$)}),pe&&sr(m,k),E}function x(m,g,y,S){var E=Lo(y);if(typeof E!="function")throw Error(A(150));if(y=E.call(y),y==null)throw Error(A(151));for(var C=E=null,j=g,k=g=0,O=null,_=y.next();j!==null&&!_.done;k++,_=y.next()){j.index>k?(O=j,j=null):O=j.sibling;var $=h(m,j,_.value,S);if($===null){j===null&&(j=O);break}e&&j&&$.alternate===null&&t(m,j),g=s($,g,k),C===null?E=$:C.sibling=$,C=$,j=O}if(_.done)return n(m,j),pe&&sr(m,k),E;if(j===null){for(;!_.done;k++,_=y.next())_=f(m,_.value,S),_!==null&&(g=s(_,g,k),C===null?E=_:C.sibling=_,C=_);return pe&&sr(m,k),E}for(j=r(m,j);!_.done;k++,_=y.next())_=p(j,m,k,_.value,S),_!==null&&(e&&_.alternate!==null&&j.delete(_.key===null?k:_.key),g=s(_,g,k),C===null?E=_:C.sibling=_,C=_);return e&&j.forEach(function(M){return t(m,M)}),pe&&sr(m,k),E}function w(m,g,y,S){if(typeof y=="object"&&y!==null&&y.type===zr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Zs:e:{for(var E=y.key,C=g;C!==null;){if(C.key===E){if(E=y.type,E===zr){if(C.tag===7){n(m,C.sibling),g=o(C,y.props.children),g.return=m,m=g;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Tn&&bf(E)===C.type){n(m,C.sibling),g=o(C,y.props),g.ref=$o(m,C,y),g.return=m,m=g;break e}n(m,C);break}else t(m,C);C=C.sibling}y.type===zr?(g=vr(y.props.children,m.mode,S,y.key),g.return=m,m=g):(S=Ri(y.type,y.key,y.props,null,m.mode,S),S.ref=$o(m,g,y),S.return=m,m=S)}return i(m);case Fr:e:{for(C=y.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(m,g.sibling),g=o(g,y.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Tl(y,m.mode,S),g.return=m,m=g}return i(m);case Tn:return C=y._init,w(m,g,C(y._payload),S)}if(Ko(y))return b(m,g,y,S);if(Lo(y))return x(m,g,y,S);ui(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(n(m,g.sibling),g=o(g,y),g.return=m,m=g):(n(m,g),g=Nl(y,m.mode,S),g.return=m,m=g),i(m)):n(m,g)}return w}var vo=om(!0),sm=om(!1),Ki=Jn(null),Yi=null,Gr=null,jc=null;function Nc(){jc=Gr=Yi=null}function Tc(e){var t=Ki.current;ue(Ki),e._currentValue=t}function hu(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 eo(e,t){Yi=e,jc=Gr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(jc!==e)if(e={context:e,memoizedValue:t,next:null},Gr===null){if(Yi===null)throw Error(A(308));Gr=e,Yi.dependencies={lanes:0,firstContext:e}}else Gr=Gr.next=e;return t}var lr=null;function kc(e){lr===null?lr=[e]:lr.push(e)}function im(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,kc(t)):(n.next=o.next,o.next=n),t.interleaved=n,fn(e,r)}function fn(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 kn=!1;function Pc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function am(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 un(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,fn(e,n)}return o=r.interleaved,o===null?(t.next=t,kc(r)):(t.next=o.next,o.next=t),r.interleaved=t,fn(e,n)}function Ci(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,hc(e,n)}}function Sf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,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 qi(e,t,n,r){var o=e.updateQueue;kn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var u=a,c=u.next;u.next=null,i===null?s=c:i.next=c,i=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=u))}if(s!==null){var f=o.baseState;i=0,d=c=u=null,a=s;do{var h=a.lane,p=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,x=a;switch(h=t,p=n,x.tag){case 1:if(b=x.payload,typeof b=="function"){f=b.call(p,f,h);break e}f=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=x.payload,h=typeof b=="function"?b.call(p,f,h):b,h==null)break e;f=ge({},f,h);break e;case 2:kn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=p,u=f):d=d.next=p,i|=h;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;h=a,a=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(d===null&&(u=f),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Er|=i,e.lanes=i,e.memoizedState=f}}function Ef(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(A(191,o));o.call(r)}}}var zs={},Gt=Jn(zs),ws=Jn(zs),bs=Jn(zs);function ur(e){if(e===zs)throw Error(A(174));return e}function Rc(e,t){switch(se(bs,t),se(ws,e),se(Gt,zs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Kl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Kl(t,e)}ue(Gt),se(Gt,t)}function yo(){ue(Gt),ue(ws),ue(bs)}function lm(e){ur(bs.current);var t=ur(Gt.current),n=Kl(t,e.type);t!==n&&(se(ws,e),se(Gt,n))}function Ac(e){ws.current===e&&(ue(Gt),ue(ws))}var he=Jn(0);function Xi(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 wl=[];function _c(){for(var e=0;e<wl.length;e++)wl[e]._workInProgressVersionPrimary=null;wl.length=0}var ji=gn.ReactCurrentDispatcher,bl=gn.ReactCurrentBatchConfig,Sr=0,me=null,Ce=null,Ne=null,Zi=!1,ns=!1,Ss=0,Sw=0;function Le(){throw Error(A(321))}function Oc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ot(e[n],t[n]))return!1;return!0}function Ic(e,t,n,r,o,s){if(Sr=s,me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ji.current=e===null||e.memoizedState===null?Nw:Tw,e=n(r,o),ns){s=0;do{if(ns=!1,Ss=0,25<=s)throw Error(A(301));s+=1,Ne=Ce=null,t.updateQueue=null,ji.current=kw,e=n(r,o)}while(ns)}if(ji.current=Ji,t=Ce!==null&&Ce.next!==null,Sr=0,Ne=Ce=me=null,Zi=!1,t)throw Error(A(300));return e}function Lc(){var e=Ss!==0;return Ss=0,e}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ne===null?me.memoizedState=Ne=e:Ne=Ne.next=e,Ne}function vt(){if(Ce===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Ne===null?me.memoizedState:Ne.next;if(t!==null)Ne=t,Ce=e;else{if(e===null)throw Error(A(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Ne===null?me.memoizedState=Ne=e:Ne=Ne.next=e}return Ne}function Es(e,t){return typeof t=="function"?t(e):t}function Sl(e){var t=vt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=Ce,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=i=null,u=null,c=s;do{var d=c.lane;if((Sr&d)===d)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=f,i=r):u=u.next=f,me.lanes|=d,Er|=d}c=c.next}while(c!==null&&c!==s);u===null?i=r:u.next=a,Ot(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,me.lanes|=s,Er|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function El(e){var t=vt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);Ot(s,t.memoizedState)||(qe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function um(){}function cm(e,t){var n=me,r=vt(),o=t(),s=!Ot(r.memoizedState,o);if(s&&(r.memoizedState=o,qe=!0),r=r.queue,Mc(pm.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ne!==null&&Ne.memoizedState.tag&1){if(n.flags|=2048,Cs(9,fm.bind(null,n,r,o,t),void 0,null),Te===null)throw Error(A(349));Sr&30||dm(n,t,o)}return o}function dm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function fm(e,t,n,r){t.value=n,t.getSnapshot=r,hm(t)&&mm(e)}function pm(e,t,n){return n(function(){hm(t)&&mm(e)})}function hm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ot(e,n)}catch{return!0}}function mm(e){var t=fn(e,1);t!==null&&_t(t,e,1,-1)}function Cf(e){var t=$t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Es,lastRenderedState:e},t.queue=e,e=e.dispatch=jw.bind(null,me,e),[t.memoizedState,e]}function Cs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.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 gm(){return vt().memoizedState}function Ni(e,t,n,r){var o=$t();me.flags|=e,o.memoizedState=Cs(1|t,n,void 0,r===void 0?null:r)}function Sa(e,t,n,r){var o=vt();r=r===void 0?null:r;var s=void 0;if(Ce!==null){var i=Ce.memoizedState;if(s=i.destroy,r!==null&&Oc(r,i.deps)){o.memoizedState=Cs(t,n,s,r);return}}me.flags|=e,o.memoizedState=Cs(1|t,n,s,r)}function jf(e,t){return Ni(8390656,8,e,t)}function Mc(e,t){return Sa(2048,8,e,t)}function vm(e,t){return Sa(4,2,e,t)}function ym(e,t){return Sa(4,4,e,t)}function xm(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 wm(e,t,n){return n=n!=null?n.concat([e]):null,Sa(4,4,xm.bind(null,t,e),n)}function Dc(){}function bm(e,t){var n=vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sm(e,t){var n=vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Em(e,t,n){return Sr&21?(Ot(n,t)||(n=kh(),me.lanes|=n,Er|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function Ew(e,t){var n=re;re=n!==0&&4>n?n:4,e(!0);var r=bl.transition;bl.transition={};try{e(!1),t()}finally{re=n,bl.transition=r}}function Cm(){return vt().memoizedState}function Cw(e,t,n){var r=Wn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jm(e))Nm(t,n);else if(n=im(e,t,n,r),n!==null){var o=He();_t(n,e,r,o),Tm(n,t,r)}}function jw(e,t,n){var r=Wn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jm(e))Nm(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,Ot(a,i)){var u=t.interleaved;u===null?(o.next=o,kc(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=im(e,t,o,r),n!==null&&(o=He(),_t(n,e,r,o),Tm(n,t,r))}}function jm(e){var t=e.alternate;return e===me||t!==null&&t===me}function Nm(e,t){ns=Zi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Tm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hc(e,n)}}var Ji={readContext:gt,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},Nw={readContext:gt,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:jf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ni(4194308,4,xm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ni(4,2,e,t)},useMemo:function(e,t){var n=$t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$t();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=Cw.bind(null,me,e),[r.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:Cf,useDebugValue:Dc,useDeferredValue:function(e){return $t().memoizedState=e},useTransition:function(){var e=Cf(!1),t=e[0];return e=Ew.bind(null,e[1]),$t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=me,o=$t();if(pe){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Te===null)throw Error(A(349));Sr&30||dm(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,jf(pm.bind(null,r,s,e),[e]),r.flags|=2048,Cs(9,fm.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=$t(),t=Te.identifierPrefix;if(pe){var n=ln,r=an;n=(r&~(1<<32-At(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ss++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Sw++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Tw={readContext:gt,useCallback:bm,useContext:gt,useEffect:Mc,useImperativeHandle:wm,useInsertionEffect:vm,useLayoutEffect:ym,useMemo:Sm,useReducer:Sl,useRef:gm,useState:function(){return Sl(Es)},useDebugValue:Dc,useDeferredValue:function(e){var t=vt();return Em(t,Ce.memoizedState,e)},useTransition:function(){var e=Sl(Es)[0],t=vt().memoizedState;return[e,t]},useMutableSource:um,useSyncExternalStore:cm,useId:Cm,unstable_isNewReconciler:!1},kw={readContext:gt,useCallback:bm,useContext:gt,useEffect:Mc,useImperativeHandle:wm,useInsertionEffect:vm,useLayoutEffect:ym,useMemo:Sm,useReducer:El,useRef:gm,useState:function(){return El(Es)},useDebugValue:Dc,useDeferredValue:function(e){var t=vt();return Ce===null?t.memoizedState=e:Em(t,Ce.memoizedState,e)},useTransition:function(){var e=El(Es)[0],t=vt().memoizedState;return[e,t]},useMutableSource:um,useSyncExternalStore:cm,useId:Cm,unstable_isNewReconciler:!1};function Ct(e,t){if(e&&e.defaultProps){t=ge({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function mu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ge({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ea={isMounted:function(e){return(e=e._reactInternals)?Tr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=He(),o=Wn(e),s=un(r,o);s.payload=t,n!=null&&(s.callback=n),t=Vn(e,s,o),t!==null&&(_t(t,e,o,r),Ci(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=He(),o=Wn(e),s=un(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Vn(e,s,o),t!==null&&(_t(t,e,o,r),Ci(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=He(),r=Wn(e),o=un(n,r);o.tag=2,t!=null&&(o.callback=t),t=Vn(e,o,r),t!==null&&(_t(t,e,r,n),Ci(t,e,r))}};function Nf(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!gs(n,r)||!gs(o,s):!0}function km(e,t,n){var r=!1,o=Yn,s=t.contextType;return typeof s=="object"&&s!==null?s=gt(s):(o=Ze(t)?wr:$e.current,r=t.contextTypes,s=(r=r!=null)?mo(e,o):Yn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ea,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Tf(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&&Ea.enqueueReplaceState(t,t.state,null)}function gu(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Pc(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=gt(s):(s=Ze(t)?wr:$e.current,o.context=mo(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(mu(e,t,s,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&&Ea.enqueueReplaceState(o,o.state,null),qi(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function xo(e,t){try{var n="",r=t;do n+=n0(r),r=r.return;while(r);var o=n}catch(s){o=`
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:t,stack:o,digest:null}}function Cl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function vu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Pw=typeof WeakMap=="function"?WeakMap:Map;function Pm(e,t,n){n=un(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ta||(ta=!0,Tu=r),vu(e,t)},n}function Rm(e,t,n){n=un(-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(){vu(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){vu(e,t),typeof r!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function kf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pw;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=Vw.bind(null,e,t,n),t.then(e,e))}function Pf(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 Rf(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=un(-1,1),t.tag=2,Vn(n,t,1))),n.lanes|=1),e)}var Rw=gn.ReactCurrentOwner,qe=!1;function Be(e,t,n,r){t.child=e===null?sm(t,null,n,r):vo(t,e.child,n,r)}function Af(e,t,n,r,o){n=n.render;var s=t.ref;return eo(t,o),r=Ic(e,t,n,r,s,o),n=Lc(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,pn(e,t,o)):(pe&&n&&Sc(t),t.flags|=1,Be(e,t,r,o),t.child)}function _f(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Wc(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Am(e,t,s,r,o)):(e=Ri(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:gs,n(i,r)&&e.ref===t.ref)return pn(e,t,o)}return t.flags|=1,e=Qn(s,r),e.ref=t.ref,e.return=t,t.child=e}function Am(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(gs(s,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,pn(e,t,o)}return yu(e,t,n,r,o)}function _m(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},se(Yr,et),et|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,se(Yr,et),et|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,se(Yr,et),et|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,se(Yr,et),et|=r;return Be(e,t,o,n),t.child}function Om(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function yu(e,t,n,r,o){var s=Ze(n)?wr:$e.current;return s=mo(t,s),eo(t,o),n=Ic(e,t,n,r,s,o),r=Lc(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,pn(e,t,o)):(pe&&r&&Sc(t),t.flags|=1,Be(e,t,n,o),t.child)}function Of(e,t,n,r,o){if(Ze(n)){var s=!0;Wi(t)}else s=!1;if(eo(t,o),t.stateNode===null)Ti(e,t),km(t,n,r),gu(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var u=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=gt(c):(c=Ze(n)?wr:$e.current,c=mo(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||u!==c)&&Tf(t,i,r,c),kn=!1;var h=t.memoizedState;i.state=h,qi(t,r,i,o),u=t.memoizedState,a!==r||h!==u||Xe.current||kn?(typeof d=="function"&&(mu(t,n,d,r),u=t.memoizedState),(a=kn||Nf(t,n,a,r,h,u,c))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=c,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,am(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Ct(t.type,a),i.props=c,f=t.pendingProps,h=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=gt(u):(u=Ze(n)?wr:$e.current,u=mo(t,u));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||h!==u)&&Tf(t,i,r,u),kn=!1,h=t.memoizedState,i.state=h,qi(t,r,i,o);var b=t.memoizedState;a!==f||h!==b||Xe.current||kn?(typeof p=="function"&&(mu(t,n,p,r),b=t.memoizedState),(c=kn||Nf(t,n,c,r,h,b,u)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,b,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,b,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),i.props=r,i.state=b,i.context=u,r=c):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return xu(e,t,n,r,s,o)}function xu(e,t,n,r,o,s){Om(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&yf(t,n,!1),pn(e,t,s);r=t.stateNode,Rw.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=vo(t,e.child,null,s),t.child=vo(t,null,a,s)):Be(e,t,a,s),t.memoizedState=r.state,o&&yf(t,n,!0),t.child}function Im(e){var t=e.stateNode;t.pendingContext?vf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vf(e,t.context,!1),Rc(e,t.containerInfo)}function If(e,t,n,r,o){return go(),Cc(o),t.flags|=256,Be(e,t,n,r),t.child}var wu={dehydrated:null,treeContext:null,retryLane:0};function bu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lm(e,t,n){var r=t.pendingProps,o=he.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),se(he,o&1),e===null)return pu(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):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=Na(i,r,0,null),e=vr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=bu(n),t.memoizedState=wu,e):Fc(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Aw(e,t,i,r,a,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,a=o.sibling;var u={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Qn(o,u),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=Qn(a,s):(s=vr(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?bu(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=wu,r}return s=e.child,e=s.sibling,r=Qn(s,{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 Fc(e,t){return t=Na({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ci(e,t,n,r){return r!==null&&Cc(r),vo(t,e.child,null,n),e=Fc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Aw(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Cl(Error(A(422))),ci(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Na({mode:"visible",children:r.children},o,0,null),s=vr(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&vo(t,e.child,null,i),t.child.memoizedState=bu(i),t.memoizedState=wu,s);if(!(t.mode&1))return ci(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(A(419)),r=Cl(s,r,void 0),ci(e,t,i,r)}if(a=(i&e.childLanes)!==0,qe||a){if(r=Te,r!==null){switch(i&-i){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|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,fn(e,o),_t(r,e,o,-1))}return Hc(),r=Cl(Error(A(421))),ci(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Hw.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,rt=Bn(o.nextSibling),ot=t,pe=!0,Pt=null,e!==null&&(ft[pt++]=an,ft[pt++]=ln,ft[pt++]=br,an=e.id,ln=e.overflow,br=t),t=Fc(t,r.children),t.flags|=4096,t)}function Lf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),hu(e.return,t,n)}function jl(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function Mm(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Be(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&&Lf(e,n,t);else if(e.tag===19)Lf(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(se(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&&Xi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),jl(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Xi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}jl(t,!0,n,null,s);break;case"together":jl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ti(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function pn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Er|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=Qn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _w(e,t,n){switch(t.tag){case 3:Im(t),go();break;case 5:lm(t);break;case 1:Ze(t.type)&&Wi(t);break;case 4:Rc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;se(Ki,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(se(he,he.current&1),t.flags|=128,null):n&t.child.childLanes?Lm(e,t,n):(se(he,he.current&1),e=pn(e,t,n),e!==null?e.sibling:null);se(he,he.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Mm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),se(he,he.current),r)break;return null;case 22:case 23:return t.lanes=0,_m(e,t,n)}return pn(e,t,n)}var Dm,Su,Fm,zm;Dm=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}};Su=function(){};Fm=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ur(Gt.current);var s=null;switch(n){case"input":o=Hl(e,o),r=Hl(e,r),s=[];break;case"select":o=ge({},o,{value:void 0}),r=ge({},r,{value:void 0}),s=[];break;case"textarea":o=Gl(e,o),r=Gl(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Vi)}Yl(n,r);var i;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(us.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(a=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(i in a)!a.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&a[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(s=s||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(us.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&le("scroll",e),s||a===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};zm=function(e,t,n,r){n!==r&&(t.flags|=4)};function Uo(e,t){if(!pe)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 Me(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 Ow(e,t,n){var r=t.pendingProps;switch(Ec(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Ze(t.type)&&Hi(),Me(t),null;case 3:return r=t.stateNode,yo(),ue(Xe),ue($e),_c(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(li(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Pt!==null&&(Ru(Pt),Pt=null))),Su(e,t),Me(t),null;case 5:Ac(t);var o=ur(bs.current);if(n=t.type,e!==null&&t.stateNode!=null)Fm(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(A(166));return Me(t),null}if(e=ur(Gt.current),li(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ht]=t,r[xs]=s,e=(t.mode&1)!==0,n){case"dialog":le("cancel",r),le("close",r);break;case"iframe":case"object":case"embed":le("load",r);break;case"video":case"audio":for(o=0;o<qo.length;o++)le(qo[o],r);break;case"source":le("error",r);break;case"img":case"image":case"link":le("error",r),le("load",r);break;case"details":le("toggle",r);break;case"input":Vd(r,s),le("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},le("invalid",r);break;case"textarea":Wd(r,s),le("invalid",r)}Yl(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&ai(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&ai(r.textContent,a,e),o=["children",""+a]):us.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&le("scroll",r)}switch(n){case"input":Js(r),Hd(r,s,!0);break;case"textarea":Js(r),Qd(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Vi)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ph(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ht]=t,e[xs]=r,Dm(e,t,!1,!1),t.stateNode=e;e:{switch(i=ql(n,r),n){case"dialog":le("cancel",e),le("close",e),o=r;break;case"iframe":case"object":case"embed":le("load",e),o=r;break;case"video":case"audio":for(o=0;o<qo.length;o++)le(qo[o],e);o=r;break;case"source":le("error",e),o=r;break;case"img":case"image":case"link":le("error",e),le("load",e),o=r;break;case"details":le("toggle",e),o=r;break;case"input":Vd(e,r),o=Hl(e,r),le("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ge({},r,{value:void 0}),le("invalid",e);break;case"textarea":Wd(e,r),o=Gl(e,r),le("invalid",e);break;default:o=r}Yl(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];s==="style"?gh(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&hh(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&cs(e,u):typeof u=="number"&&cs(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(us.hasOwnProperty(s)?u!=null&&s==="onScroll"&&le("scroll",e):u!=null&&lc(e,s,u,i))}switch(n){case"input":Js(e),Hd(e,r,!1);break;case"textarea":Js(e),Qd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Kn(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?qr(e,!!r.multiple,s,!1):r.defaultValue!=null&&qr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Vi)}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 Me(t),null;case 6:if(e&&t.stateNode!=null)zm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(A(166));if(n=ur(bs.current),ur(Gt.current),li(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ht]=t,(s=r.nodeValue!==n)&&(e=ot,e!==null))switch(e.tag){case 3:ai(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ai(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ht]=t,t.stateNode=r}return Me(t),null;case 13:if(ue(he),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(pe&&rt!==null&&t.mode&1&&!(t.flags&128))rm(),go(),t.flags|=98560,s=!1;else if(s=li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(A(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(A(317));s[Ht]=t}else go(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Me(t),s=!1}else Pt!==null&&(Ru(Pt),Pt=null),s=!0;if(!s)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?je===0&&(je=3):Hc())),t.updateQueue!==null&&(t.flags|=4),Me(t),null);case 4:return yo(),Su(e,t),e===null&&vs(t.stateNode.containerInfo),Me(t),null;case 10:return Tc(t.type._context),Me(t),null;case 17:return Ze(t.type)&&Hi(),Me(t),null;case 19:if(ue(he),s=t.memoizedState,s===null)return Me(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Uo(s,!1);else{if(je!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Xi(e),i!==null){for(t.flags|=128,Uo(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return se(he,he.current&1|2),t.child}e=e.sibling}s.tail!==null&&xe()>wo&&(t.flags|=128,r=!0,Uo(s,!1),t.lanes=4194304)}else{if(!r)if(e=Xi(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Uo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!pe)return Me(t),null}else 2*xe()-s.renderingStartTime>wo&&n!==1073741824&&(t.flags|=128,r=!0,Uo(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=xe(),t.sibling=null,n=he.current,se(he,r?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return Vc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?et&1073741824&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function Iw(e,t){switch(Ec(t),t.tag){case 1:return Ze(t.type)&&Hi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yo(),ue(Xe),ue($e),_c(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ac(t),null;case 13:if(ue(he),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));go()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(he),null;case 4:return yo(),null;case 10:return Tc(t.type._context),null;case 22:case 23:return Vc(),null;case 24:return null;default:return null}}var di=!1,ze=!1,Lw=typeof WeakSet=="function"?WeakSet:Set,D=null;function Kr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ye(e,t,r)}else n.current=null}function Eu(e,t,n){try{n()}catch(r){ye(e,t,r)}}var Mf=!1;function Mw(e,t){if(iu=$i,e=Hh(),bc(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||o!==0&&f.nodeType!==3||(a=i+o),f!==s||r!==0&&f.nodeType!==3||(u=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===o&&(a=i),h===s&&++d===r&&(u=i),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(au={focusedElem:e,selectionRange:n},$i=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var x=b.memoizedProps,w=b.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ct(t.type,x),w);m.__reactInternalSnapshotBeforeUpdate=g}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(A(163))}}catch(S){ye(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return b=Mf,Mf=!1,b}function rs(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 s=o.destroy;o.destroy=void 0,s!==void 0&&Eu(t,n,s)}o=o.next}while(o!==r)}}function Ca(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 Cu(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 $m(e){var t=e.alternate;t!==null&&(e.alternate=null,$m(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ht],delete t[xs],delete t[cu],delete t[yw],delete t[xw])),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 Um(e){return e.tag===5||e.tag===3||e.tag===4}function Df(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Um(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 ju(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=Vi));else if(r!==4&&(e=e.child,e!==null))for(ju(e,t,n),e=e.sibling;e!==null;)ju(e,t,n),e=e.sibling}function Nu(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(Nu(e,t,n),e=e.sibling;e!==null;)Nu(e,t,n),e=e.sibling}var ke=null,kt=!1;function En(e,t,n){for(n=n.child;n!==null;)Bm(e,t,n),n=n.sibling}function Bm(e,t,n){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(ga,n)}catch{}switch(n.tag){case 5:ze||Kr(n,t);case 6:var r=ke,o=kt;ke=null,En(e,t,n),ke=r,kt=o,ke!==null&&(kt?(e=ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ke.removeChild(n.stateNode));break;case 18:ke!==null&&(kt?(e=ke,n=n.stateNode,e.nodeType===8?yl(e.parentNode,n):e.nodeType===1&&yl(e,n),hs(e)):yl(ke,n.stateNode));break;case 4:r=ke,o=kt,ke=n.stateNode.containerInfo,kt=!0,En(e,t,n),ke=r,kt=o;break;case 0:case 11:case 14:case 15:if(!ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Eu(n,t,i),o=o.next}while(o!==r)}En(e,t,n);break;case 1:if(!ze&&(Kr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ye(n,t,a)}En(e,t,n);break;case 21:En(e,t,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,En(e,t,n),ze=r):En(e,t,n);break;default:En(e,t,n)}}function Ff(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lw),t.forEach(function(r){var o=Ww.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function bt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:ke=a.stateNode,kt=!1;break e;case 3:ke=a.stateNode.containerInfo,kt=!0;break e;case 4:ke=a.stateNode.containerInfo,kt=!0;break e}a=a.return}if(ke===null)throw Error(A(160));Bm(s,i,o),ke=null,kt=!1;var u=o.alternate;u!==null&&(u.return=null),o.return=null}catch(c){ye(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Vm(t,e),t=t.sibling}function Vm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(bt(t,e),zt(e),r&4){try{rs(3,e,e.return),Ca(3,e)}catch(x){ye(e,e.return,x)}try{rs(5,e,e.return)}catch(x){ye(e,e.return,x)}}break;case 1:bt(t,e),zt(e),r&512&&n!==null&&Kr(n,n.return);break;case 5:if(bt(t,e),zt(e),r&512&&n!==null&&Kr(n,n.return),e.flags&32){var o=e.stateNode;try{cs(o,"")}catch(x){ye(e,e.return,x)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&dh(o,s),ql(a,i);var c=ql(a,s);for(i=0;i<u.length;i+=2){var d=u[i],f=u[i+1];d==="style"?gh(o,f):d==="dangerouslySetInnerHTML"?hh(o,f):d==="children"?cs(o,f):lc(o,d,f,c)}switch(a){case"input":Wl(o,s);break;case"textarea":fh(o,s);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var p=s.value;p!=null?qr(o,!!s.multiple,p,!1):h!==!!s.multiple&&(s.defaultValue!=null?qr(o,!!s.multiple,s.defaultValue,!0):qr(o,!!s.multiple,s.multiple?[]:"",!1))}o[xs]=s}catch(x){ye(e,e.return,x)}}break;case 6:if(bt(t,e),zt(e),r&4){if(e.stateNode===null)throw Error(A(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(x){ye(e,e.return,x)}}break;case 3:if(bt(t,e),zt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{hs(t.containerInfo)}catch(x){ye(e,e.return,x)}break;case 4:bt(t,e),zt(e);break;case 13:bt(t,e),zt(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(Uc=xe())),r&4&&Ff(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(ze=(c=ze)||d,bt(t,e),ze=c):bt(t,e),zt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(D=e,d=e.child;d!==null;){for(f=D=d;D!==null;){switch(h=D,p=h.child,h.tag){case 0:case 11:case 14:case 15:rs(4,h,h.return);break;case 1:Kr(h,h.return);var b=h.stateNode;if(typeof b.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(x){ye(r,n,x)}}break;case 5:Kr(h,h.return);break;case 22:if(h.memoizedState!==null){$f(f);continue}}p!==null?(p.return=h,D=p):$f(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,c?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,u=f.memoizedProps.style,i=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=mh("display",i))}catch(x){ye(e,e.return,x)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(x){ye(e,e.return,x)}}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;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:bt(t,e),zt(e),r&4&&Ff(e);break;case 21:break;default:bt(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Um(n)){var r=n;break e}n=n.return}throw Error(A(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(cs(o,""),r.flags&=-33);var s=Df(e);Nu(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Df(e);ju(e,a,i);break;default:throw Error(A(161))}}catch(u){ye(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Dw(e,t,n){D=e,Hm(e)}function Hm(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var o=D,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||di;if(!i){var a=o.alternate,u=a!==null&&a.memoizedState!==null||ze;a=di;var c=ze;if(di=i,(ze=u)&&!c)for(D=o;D!==null;)i=D,u=i.child,i.tag===22&&i.memoizedState!==null?Uf(o):u!==null?(u.return=i,D=u):Uf(o);for(;s!==null;)D=s,Hm(s),s=s.sibling;D=o,di=a,ze=c}zf(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,D=s):zf(e)}}function zf(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ze||Ca(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ze)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ct(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Ef(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ef(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&hs(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}ze||t.flags&512&&Cu(t)}catch(h){ye(t,t.return,h)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function $f(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function Uf(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ca(4,t)}catch(u){ye(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(u){ye(t,o,u)}}var s=t.return;try{Cu(t)}catch(u){ye(t,s,u)}break;case 5:var i=t.return;try{Cu(t)}catch(u){ye(t,i,u)}}}catch(u){ye(t,t.return,u)}if(t===e){D=null;break}var a=t.sibling;if(a!==null){a.return=t.return,D=a;break}D=t.return}}var Fw=Math.ceil,ea=gn.ReactCurrentDispatcher,zc=gn.ReactCurrentOwner,mt=gn.ReactCurrentBatchConfig,J=0,Te=null,be=null,Re=0,et=0,Yr=Jn(0),je=0,js=null,Er=0,ja=0,$c=0,os=null,Ye=null,Uc=0,wo=1/0,rn=null,ta=!1,Tu=null,Hn=null,fi=!1,Dn=null,na=0,ss=0,ku=null,ki=-1,Pi=0;function He(){return J&6?xe():ki!==-1?ki:ki=xe()}function Wn(e){return e.mode&1?J&2&&Re!==0?Re&-Re:bw.transition!==null?(Pi===0&&(Pi=kh()),Pi):(e=re,e!==0||(e=window.event,e=e===void 0?16:Lh(e.type)),e):1}function _t(e,t,n,r){if(50<ss)throw ss=0,ku=null,Error(A(185));Ms(e,n,r),(!(J&2)||e!==Te)&&(e===Te&&(!(J&2)&&(ja|=n),je===4&&Rn(e,Re)),Je(e,r),n===1&&J===0&&!(t.mode&1)&&(wo=xe()+500,ba&&er()))}function Je(e,t){var n=e.callbackNode;b0(e,t);var r=zi(e,e===Te?Re:0);if(r===0)n!==null&&Yd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Yd(n),t===1)e.tag===0?ww(Bf.bind(null,e)):em(Bf.bind(null,e)),gw(function(){!(J&6)&&er()}),n=null;else{switch(Ph(r)){case 1:n=pc;break;case 4:n=Nh;break;case 16:n=Fi;break;case 536870912:n=Th;break;default:n=Fi}n=Zm(n,Wm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Wm(e,t){if(ki=-1,Pi=0,J&6)throw Error(A(327));var n=e.callbackNode;if(to()&&e.callbackNode!==n)return null;var r=zi(e,e===Te?Re:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ra(e,r);else{t=r;var o=J;J|=2;var s=Gm();(Te!==e||Re!==t)&&(rn=null,wo=xe()+500,gr(e,t));do try{Uw();break}catch(a){Qm(e,a)}while(!0);Nc(),ea.current=s,J=o,be!==null?t=0:(Te=null,Re=0,t=je)}if(t!==0){if(t===2&&(o=tu(e),o!==0&&(r=o,t=Pu(e,o))),t===1)throw n=js,gr(e,0),Rn(e,r),Je(e,xe()),n;if(t===6)Rn(e,r);else{if(o=e.current.alternate,!(r&30)&&!zw(o)&&(t=ra(e,r),t===2&&(s=tu(e),s!==0&&(r=s,t=Pu(e,s))),t===1))throw n=js,gr(e,0),Rn(e,r),Je(e,xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(A(345));case 2:ir(e,Ye,rn);break;case 3:if(Rn(e,r),(r&130023424)===r&&(t=Uc+500-xe(),10<t)){if(zi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){He(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=uu(ir.bind(null,e,Ye,rn),t);break}ir(e,Ye,rn);break;case 4:if(Rn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-At(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fw(r/1960))-r,10<r){e.timeoutHandle=uu(ir.bind(null,e,Ye,rn),r);break}ir(e,Ye,rn);break;case 5:ir(e,Ye,rn);break;default:throw Error(A(329))}}}return Je(e,xe()),e.callbackNode===n?Wm.bind(null,e):null}function Pu(e,t){var n=os;return e.current.memoizedState.isDehydrated&&(gr(e,t).flags|=256),e=ra(e,t),e!==2&&(t=Ye,Ye=n,t!==null&&Ru(t)),e}function Ru(e){Ye===null?Ye=e:Ye.push.apply(Ye,e)}function zw(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],s=o.getSnapshot;o=o.value;try{if(!Ot(s(),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 Rn(e,t){for(t&=~$c,t&=~ja,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-At(t),r=1<<n;e[n]=-1,t&=~r}}function Bf(e){if(J&6)throw Error(A(327));to();var t=zi(e,0);if(!(t&1))return Je(e,xe()),null;var n=ra(e,t);if(e.tag!==0&&n===2){var r=tu(e);r!==0&&(t=r,n=Pu(e,r))}if(n===1)throw n=js,gr(e,0),Rn(e,t),Je(e,xe()),n;if(n===6)throw Error(A(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ir(e,Ye,rn),Je(e,xe()),null}function Bc(e,t){var n=J;J|=1;try{return e(t)}finally{J=n,J===0&&(wo=xe()+500,ba&&er())}}function Cr(e){Dn!==null&&Dn.tag===0&&!(J&6)&&to();var t=J;J|=1;var n=mt.transition,r=re;try{if(mt.transition=null,re=1,e)return e()}finally{re=r,mt.transition=n,J=t,!(J&6)&&er()}}function Vc(){et=Yr.current,ue(Yr)}function gr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,mw(n)),be!==null)for(n=be.return;n!==null;){var r=n;switch(Ec(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Hi();break;case 3:yo(),ue(Xe),ue($e),_c();break;case 5:Ac(r);break;case 4:yo();break;case 13:ue(he);break;case 19:ue(he);break;case 10:Tc(r.type._context);break;case 22:case 23:Vc()}n=n.return}if(Te=e,be=e=Qn(e.current,null),Re=et=t,je=0,js=null,$c=ja=Er=0,Ye=os=null,lr!==null){for(t=0;t<lr.length;t++)if(n=lr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}lr=null}return e}function Qm(e,t){do{var n=be;try{if(Nc(),ji.current=Ji,Zi){for(var r=me.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Zi=!1}if(Sr=0,Ne=Ce=me=null,ns=!1,Ss=0,zc.current=null,n===null||n.return===null){je=1,js=t,be=null;break}e:{var s=e,i=n.return,a=n,u=t;if(t=Re,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=Pf(i);if(p!==null){p.flags&=-257,Rf(p,i,a,s,t),p.mode&1&&kf(s,c,t),t=p,u=c;var b=t.updateQueue;if(b===null){var x=new Set;x.add(u),t.updateQueue=x}else b.add(u);break e}else{if(!(t&1)){kf(s,c,t),Hc();break e}u=Error(A(426))}}else if(pe&&a.mode&1){var w=Pf(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Rf(w,i,a,s,t),Cc(xo(u,a));break e}}s=u=xo(u,a),je!==4&&(je=2),os===null?os=[s]:os.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=Pm(s,u,t);Sf(s,m);break e;case 1:a=u;var g=s.type,y=s.stateNode;if(!(s.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Hn===null||!Hn.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=Rm(s,a,t);Sf(s,S);break e}}s=s.return}while(s!==null)}Ym(n)}catch(E){t=E,be===n&&n!==null&&(be=n=n.return);continue}break}while(!0)}function Gm(){var e=ea.current;return ea.current=Ji,e===null?Ji:e}function Hc(){(je===0||je===3||je===2)&&(je=4),Te===null||!(Er&268435455)&&!(ja&268435455)||Rn(Te,Re)}function ra(e,t){var n=J;J|=2;var r=Gm();(Te!==e||Re!==t)&&(rn=null,gr(e,t));do try{$w();break}catch(o){Qm(e,o)}while(!0);if(Nc(),J=n,ea.current=r,be!==null)throw Error(A(261));return Te=null,Re=0,je}function $w(){for(;be!==null;)Km(be)}function Uw(){for(;be!==null&&!f0();)Km(be)}function Km(e){var t=Xm(e.alternate,e,et);e.memoizedProps=e.pendingProps,t===null?Ym(e):be=t,zc.current=null}function Ym(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Iw(n,t),n!==null){n.flags&=32767,be=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{je=6,be=null;return}}else if(n=Ow(n,t,et),n!==null){be=n;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);je===0&&(je=5)}function ir(e,t,n){var r=re,o=mt.transition;try{mt.transition=null,re=1,Bw(e,t,n,r)}finally{mt.transition=o,re=r}return null}function Bw(e,t,n,r){do to();while(Dn!==null);if(J&6)throw Error(A(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(A(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(S0(e,s),e===Te&&(be=Te=null,Re=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||fi||(fi=!0,Zm(Fi,function(){return to(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=mt.transition,mt.transition=null;var i=re;re=1;var a=J;J|=4,zc.current=null,Mw(e,n),Vm(n,e),lw(au),$i=!!iu,au=iu=null,e.current=n,Dw(n),p0(),J=a,re=i,mt.transition=s}else e.current=n;if(fi&&(fi=!1,Dn=e,na=o),s=e.pendingLanes,s===0&&(Hn=null),g0(n.stateNode),Je(e,xe()),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(ta)throw ta=!1,e=Tu,Tu=null,e;return na&1&&e.tag!==0&&to(),s=e.pendingLanes,s&1?e===ku?ss++:(ss=0,ku=e):ss=0,er(),null}function to(){if(Dn!==null){var e=Ph(na),t=mt.transition,n=re;try{if(mt.transition=null,re=16>e?16:e,Dn===null)var r=!1;else{if(e=Dn,Dn=null,na=0,J&6)throw Error(A(331));var o=J;for(J|=4,D=e.current;D!==null;){var s=D,i=s.child;if(D.flags&16){var a=s.deletions;if(a!==null){for(var u=0;u<a.length;u++){var c=a[u];for(D=c;D!==null;){var d=D;switch(d.tag){case 0:case 11:case 15:rs(8,d,s)}var f=d.child;if(f!==null)f.return=d,D=f;else for(;D!==null;){d=D;var h=d.sibling,p=d.return;if($m(d),d===c){D=null;break}if(h!==null){h.return=p,D=h;break}D=p}}}var b=s.alternate;if(b!==null){var x=b.child;if(x!==null){b.child=null;do{var w=x.sibling;x.sibling=null,x=w}while(x!==null)}}D=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,D=i;else e:for(;D!==null;){if(s=D,s.flags&2048)switch(s.tag){case 0:case 11:case 15:rs(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,D=m;break e}D=s.return}}var g=e.current;for(D=g;D!==null;){i=D;var y=i.child;if(i.subtreeFlags&2064&&y!==null)y.return=i,D=y;else e:for(i=g;D!==null;){if(a=D,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ca(9,a)}}catch(E){ye(a,a.return,E)}if(a===i){D=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,D=S;break e}D=a.return}}if(J=o,er(),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(ga,e)}catch{}r=!0}return r}finally{re=n,mt.transition=t}}return!1}function Vf(e,t,n){t=xo(n,t),t=Pm(e,t,1),e=Vn(e,t,1),t=He(),e!==null&&(Ms(e,1,t),Je(e,t))}function ye(e,t,n){if(e.tag===3)Vf(e,e,n);else for(;t!==null;){if(t.tag===3){Vf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Hn===null||!Hn.has(r))){e=xo(n,e),e=Rm(t,e,1),t=Vn(t,e,1),e=He(),t!==null&&(Ms(t,1,e),Je(t,e));break}}t=t.return}}function Vw(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=He(),e.pingedLanes|=e.suspendedLanes&n,Te===e&&(Re&n)===n&&(je===4||je===3&&(Re&130023424)===Re&&500>xe()-Uc?gr(e,0):$c|=n),Je(e,t)}function qm(e,t){t===0&&(e.mode&1?(t=ni,ni<<=1,!(ni&130023424)&&(ni=4194304)):t=1);var n=He();e=fn(e,t),e!==null&&(Ms(e,t,n),Je(e,n))}function Hw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qm(e,n)}function Ww(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(A(314))}r!==null&&r.delete(t),qm(e,n)}var Xm;Xm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,_w(e,t,n);qe=!!(e.flags&131072)}else qe=!1,pe&&t.flags&1048576&&tm(t,Gi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ti(e,t),e=t.pendingProps;var o=mo(t,$e.current);eo(t,n),o=Ic(null,t,r,e,o,n);var s=Lc();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,Ze(r)?(s=!0,Wi(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Pc(t),o.updater=Ea,t.stateNode=o,o._reactInternals=t,gu(t,r,e,n),t=xu(null,t,r,!0,s,n)):(t.tag=0,pe&&s&&Sc(t),Be(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ti(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Gw(r),e=Ct(r,e),o){case 0:t=yu(null,t,r,e,n);break e;case 1:t=Of(null,t,r,e,n);break e;case 11:t=Af(null,t,r,e,n);break e;case 14:t=_f(null,t,r,Ct(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ct(r,o),yu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ct(r,o),Of(e,t,r,o,n);case 3:e:{if(Im(t),e===null)throw Error(A(387));r=t.pendingProps,s=t.memoizedState,o=s.element,am(e,t),qi(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=xo(Error(A(423)),t),t=If(e,t,r,n,o);break e}else if(r!==o){o=xo(Error(A(424)),t),t=If(e,t,r,n,o);break e}else for(rt=Bn(t.stateNode.containerInfo.firstChild),ot=t,pe=!0,Pt=null,n=sm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(go(),r===o){t=pn(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return lm(t),e===null&&pu(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,lu(r,o)?i=null:s!==null&&lu(r,s)&&(t.flags|=32),Om(e,t),Be(e,t,i,n),t.child;case 6:return e===null&&pu(t),null;case 13:return Lm(e,t,n);case 4:return Rc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vo(t,null,r,n):Be(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ct(r,o),Af(e,t,r,o,n);case 7:return Be(e,t,t.pendingProps,n),t.child;case 8:return Be(e,t,t.pendingProps.children,n),t.child;case 12:return Be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,se(Ki,r._currentValue),r._currentValue=i,s!==null)if(Ot(s.value,i)){if(s.children===o.children&&!Xe.current){t=pn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=un(-1,n&-n),u.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),hu(s.return,n,t),a.lanes|=n;break}u=u.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(A(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),hu(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Be(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,eo(t,n),o=gt(o),r=r(o),t.flags|=1,Be(e,t,r,n),t.child;case 14:return r=t.type,o=Ct(r,t.pendingProps),o=Ct(r.type,o),_f(e,t,r,o,n);case 15:return Am(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ct(r,o),Ti(e,t),t.tag=1,Ze(r)?(e=!0,Wi(t)):e=!1,eo(t,n),km(t,r,o),gu(t,r,o,n),xu(null,t,r,!0,e,n);case 19:return Mm(e,t,n);case 22:return _m(e,t,n)}throw Error(A(156,t.tag))};function Zm(e,t){return jh(e,t)}function Qw(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 ht(e,t,n,r){return new Qw(e,t,n,r)}function Wc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gw(e){if(typeof e=="function")return Wc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cc)return 11;if(e===dc)return 14}return 2}function Qn(e,t){var n=e.alternate;return n===null?(n=ht(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 Ri(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Wc(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case zr:return vr(n.children,o,s,t);case uc:i=8,o|=8;break;case $l:return e=ht(12,n,t,o|2),e.elementType=$l,e.lanes=s,e;case Ul:return e=ht(13,n,t,o),e.elementType=Ul,e.lanes=s,e;case Bl:return e=ht(19,n,t,o),e.elementType=Bl,e.lanes=s,e;case lh:return Na(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ih:i=10;break e;case ah:i=9;break e;case cc:i=11;break e;case dc:i=14;break e;case Tn:i=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=ht(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function vr(e,t,n,r){return e=ht(7,e,r,t),e.lanes=n,e}function Na(e,t,n,r){return e=ht(22,e,r,t),e.elementType=lh,e.lanes=n,e.stateNode={isHidden:!1},e}function Nl(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function Tl(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kw(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=al(0),this.expirationTimes=al(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=al(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Qc(e,t,n,r,o,s,i,a,u){return e=new Kw(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ht(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pc(s),e}function Yw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Jm(e){if(!e)return Yn;e=e._reactInternals;e:{if(Tr(e)!==e||e.tag!==1)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ze(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(A(171))}if(e.tag===1){var n=e.type;if(Ze(n))return Jh(e,n,t)}return t}function eg(e,t,n,r,o,s,i,a,u){return e=Qc(n,r,!0,e,o,s,i,a,u),e.context=Jm(null),n=e.current,r=He(),o=Wn(n),s=un(r,o),s.callback=t??null,Vn(n,s,o),e.current.lanes=o,Ms(e,o,r),Je(e,r),e}function Ta(e,t,n,r){var o=t.current,s=He(),i=Wn(o);return n=Jm(n),t.context===null?t.context=n:t.pendingContext=n,t=un(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Vn(o,t,i),e!==null&&(_t(e,o,i,s),Ci(e,o,i)),i}function oa(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 Hf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Gc(e,t){Hf(e,t),(e=e.alternate)&&Hf(e,t)}function qw(){return null}var tg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}ka.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));Ta(e,t,null,null)};ka.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cr(function(){Ta(null,e,null,null)}),t[dn]=null}};function ka(e){this._internalRoot=e}ka.prototype.unstable_scheduleHydration=function(e){if(e){var t=_h();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pn.length&&t!==0&&t<Pn[n].priority;n++);Pn.splice(n,0,e),n===0&&Ih(e)}};function Yc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Pa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Wf(){}function Xw(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var c=oa(i);s.call(c)}}var i=eg(t,r,e,0,null,!1,!1,"",Wf);return e._reactRootContainer=i,e[dn]=i.current,vs(e.nodeType===8?e.parentNode:e),Cr(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var c=oa(u);a.call(c)}}var u=Qc(e,0,!1,null,null,!1,!1,"",Wf);return e._reactRootContainer=u,e[dn]=u.current,vs(e.nodeType===8?e.parentNode:e),Cr(function(){Ta(t,u,n,r)}),u}function Ra(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var u=oa(i);a.call(u)}}Ta(t,i,e,o)}else i=Xw(n,t,e,o,r);return oa(i)}Rh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Yo(t.pendingLanes);n!==0&&(hc(t,n|1),Je(t,xe()),!(J&6)&&(wo=xe()+500,er()))}break;case 13:Cr(function(){var r=fn(e,1);if(r!==null){var o=He();_t(r,e,1,o)}}),Gc(e,1)}};mc=function(e){if(e.tag===13){var t=fn(e,134217728);if(t!==null){var n=He();_t(t,e,134217728,n)}Gc(e,134217728)}};Ah=function(e){if(e.tag===13){var t=Wn(e),n=fn(e,t);if(n!==null){var r=He();_t(n,e,t,r)}Gc(e,t)}};_h=function(){return re};Oh=function(e,t){var n=re;try{return re=e,t()}finally{re=n}};Zl=function(e,t,n){switch(t){case"input":if(Wl(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=wa(r);if(!o)throw Error(A(90));ch(r),Wl(r,o)}}}break;case"textarea":fh(e,n);break;case"select":t=n.value,t!=null&&qr(e,!!n.multiple,t,!1)}};xh=Bc;wh=Cr;var Zw={usingClientEntryPoint:!1,Events:[Fs,Vr,wa,vh,yh,Bc]},Bo={findFiberByHostInstance:ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Jw={bundleType:Bo.bundleType,version:Bo.version,rendererPackageName:Bo.rendererPackageName,rendererConfig:Bo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Eh(e),e===null?null:e.stateNode},findFiberByHostInstance:Bo.findFiberByHostInstance||qw,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 pi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pi.isDisabled&&pi.supportsFiber)try{ga=pi.inject(Jw),Qt=pi}catch{}}lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zw;lt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yc(t))throw Error(A(200));return Yw(e,t,null,n)};lt.createRoot=function(e,t){if(!Yc(e))throw Error(A(299));var n=!1,r="",o=tg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Qc(e,1,!1,null,null,n,!1,r,o),e[dn]=t.current,vs(e.nodeType===8?e.parentNode:e),new Kc(t)};lt.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(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=Eh(t),e=e===null?null:e.stateNode,e};lt.flushSync=function(e){return Cr(e)};lt.hydrate=function(e,t,n){if(!Pa(t))throw Error(A(200));return Ra(null,e,t,!0,n)};lt.hydrateRoot=function(e,t,n){if(!Yc(e))throw Error(A(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=tg;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=eg(t,null,e,1,n??null,o,!1,s,i),e[dn]=t.current,vs(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 ka(t)};lt.render=function(e,t,n){if(!Pa(t))throw Error(A(200));return Ra(null,e,t,!1,n)};lt.unmountComponentAtNode=function(e){if(!Pa(e))throw Error(A(40));return e._reactRootContainer?(Cr(function(){Ra(null,null,e,!1,function(){e._reactRootContainer=null,e[dn]=null})}),!0):!1};lt.unstable_batchedUpdates=Bc;lt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Pa(n))throw Error(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return Ra(e,t,n,!1,r)};lt.version="18.3.1-next-f1338f8080-20240426";function ng(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ng)}catch(e){console.error(e)}}ng(),nh.exports=lt;var $s=nh.exports;const rg=Co($s);var og,Qf=$s;og=Qf.createRoot,Qf.hydrateRoot;const e1=1,t1=1e6;let kl=0;function n1(){return kl=(kl+1)%Number.MAX_SAFE_INTEGER,kl.toString()}const Pl=new Map,Gf=e=>{if(Pl.has(e))return;const t=setTimeout(()=>{Pl.delete(e),is({type:"REMOVE_TOAST",toastId:e})},t1);Pl.set(e,t)},r1=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,e1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Gf(n):e.toasts.forEach(r=>{Gf(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Ai=[];let _i={toasts:[]};function is(e){_i=r1(_i,e),Ai.forEach(t=>{t(_i)})}function o1({...e}){const t=n1(),n=o=>is({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>is({type:"DISMISS_TOAST",toastId:t});return is({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function sg(){const[e,t]=v.useState(_i);return v.useEffect(()=>(Ai.push(t),()=>{const n=Ai.indexOf(t);n>-1&&Ai.splice(n,1)}),[e]),{...e,toast:o1,dismiss:n=>is({type:"DISMISS_TOAST",toastId:n})}}function Z(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 Kf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ig(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Kf(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Kf(e[o],null)}}}}function _e(...e){return v.useCallback(ig(...e),e)}function Dt(e,t=[]){let n=[];function r(s,i){const a=v.createContext(i),u=n.length;n=[...n,i];const c=f=>{var m;const{scope:h,children:p,...b}=f,x=((m=h==null?void 0:h[e])==null?void 0:m[u])||a,w=v.useMemo(()=>b,Object.values(b));return l.jsx(x.Provider,{value:w,children:p})};c.displayName=s+"Provider";function d(f,h){var x;const p=((x=h==null?void 0:h[e])==null?void 0:x[u])||a,b=v.useContext(p);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>v.createContext(i));return function(a){const u=(a==null?void 0:a[e])||s;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[r,s1(o,...t)]}function s1(...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(s){const i=r.reduce((a,{useScope:u,scopeName:c})=>{const f=u(s)[`__scope${c}`];return{...a,...f}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function sa(e){const t=a1(e),n=v.forwardRef((r,o)=>{const{children:s,...i}=r,a=v.Children.toArray(s),u=a.find(u1);if(u){const c=u.props.children,d=a.map(f=>f===u?v.Children.count(c)>1?v.Children.only(null):v.isValidElement(c)?c.props.children:null:f);return l.jsx(t,{...i,ref:o,children:v.isValidElement(c)?v.cloneElement(c,void 0,d):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var i1=sa("Slot");function a1(e){const t=v.forwardRef((n,r)=>{const{children:o,...s}=n;if(v.isValidElement(o)){const i=d1(o),a=c1(s,o.props);return o.type!==v.Fragment&&(a.ref=r?ig(r,i):i),v.cloneElement(o,a)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ag=Symbol("radix.slottable");function l1(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ag,t}function u1(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ag}function c1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const u=s(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function d1(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 qc(e){const t=e+"CollectionProvider",[n,r]=Dt(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=x=>{const{scope:w,children:m}=x,g=R.useRef(null),y=R.useRef(new Map).current;return l.jsx(o,{scope:w,itemMap:y,collectionRef:g,children:m})};i.displayName=t;const a=e+"CollectionSlot",u=sa(a),c=R.forwardRef((x,w)=>{const{scope:m,children:g}=x,y=s(a,m),S=_e(w,y.collectionRef);return l.jsx(u,{ref:S,children:g})});c.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=sa(d),p=R.forwardRef((x,w)=>{const{scope:m,children:g,...y}=x,S=R.useRef(null),E=_e(w,S),C=s(d,m);return R.useEffect(()=>(C.itemMap.set(S,{ref:S,...y}),()=>void C.itemMap.delete(S))),l.jsx(h,{[f]:"",ref:E,children:g})});p.displayName=d;function b(x){const w=s(e+"CollectionConsumer",x);return R.useCallback(()=>{const g=w.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((C,j)=>y.indexOf(C.ref.current)-y.indexOf(j.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:c,ItemSlot:p},b,r]}var f1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ee=f1.reduce((e,t)=>{const n=sa(`Primitive.${t}`),r=v.forwardRef((o,s)=>{const{asChild:i,...a}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function lg(e,t){e&&$s.flushSync(()=>e.dispatchEvent(t))}function Yt(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function p1(e,t=globalThis==null?void 0:globalThis.document){const n=Yt(e);v.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 h1="DismissableLayer",Au="dismissableLayer.update",m1="dismissableLayer.pointerDownOutside",g1="dismissableLayer.focusOutside",Yf,ug=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xc=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...u}=e,c=v.useContext(ug),[d,f]=v.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=v.useState({}),b=_e(t,j=>f(j)),x=Array.from(c.layers),[w]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=x.indexOf(w),g=d?x.indexOf(d):-1,y=c.layersWithOutsidePointerEventsDisabled.size>0,S=g>=m,E=y1(j=>{const k=j.target,O=[...c.branches].some(_=>_.contains(k));!S||O||(o==null||o(j),i==null||i(j),j.defaultPrevented||a==null||a())},h),C=x1(j=>{const k=j.target;[...c.branches].some(_=>_.contains(k))||(s==null||s(j),i==null||i(j),j.defaultPrevented||a==null||a())},h);return p1(j=>{g===c.layers.size-1&&(r==null||r(j),!j.defaultPrevented&&a&&(j.preventDefault(),a()))},h),v.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Yf=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),qf(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Yf)}},[d,h,n,c]),v.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),qf())},[d,c]),v.useEffect(()=>{const j=()=>p({});return document.addEventListener(Au,j),()=>document.removeEventListener(Au,j)},[]),l.jsx(ee.div,{...u,ref:b,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,E.onPointerDownCapture)})});Xc.displayName=h1;var v1="DismissableLayerBranch",cg=v.forwardRef((e,t)=>{const n=v.useContext(ug),r=v.useRef(null),o=_e(t,r);return v.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(ee.div,{...e,ref:o})});cg.displayName=v1;function y1(e,t=globalThis==null?void 0:globalThis.document){const n=Yt(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let u=function(){dg(m1,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function x1(e,t=globalThis==null?void 0:globalThis.document){const n=Yt(e),r=v.useRef(!1);return v.useEffect(()=>{const o=s=>{s.target&&!r.current&&dg(g1,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qf(){const e=new CustomEvent(Au);document.dispatchEvent(e)}function dg(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?lg(o,s):o.dispatchEvent(s)}var w1=Xc,b1=cg,at=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},S1="Portal",fg=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=v.useState(!1);at(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?rg.createPortal(l.jsx(ee.div,{...r,ref:t}),i):null});fg.displayName=S1;function E1(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var ko=e=>{const{present:t,children:n}=e,r=C1(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),s=_e(r.ref,j1(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:s}):null};ko.displayName="Presence";function C1(e){const[t,n]=v.useState(),r=v.useRef(null),o=v.useRef(e),s=v.useRef("none"),i=e?"mounted":"unmounted",[a,u]=E1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const c=hi(r.current);s.current=a==="mounted"?c:"none"},[a]),at(()=>{const c=r.current,d=o.current;if(d!==e){const h=s.current,p=hi(c);e?u("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),at(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=p=>{const x=hi(r.current).includes(p.animationName);if(p.target===t&&x&&(u("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=p=>{p.target===t&&(s.current=hi(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function hi(e){return(e==null?void 0:e.animationName)||"none"}function j1(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 N1=sc[" useInsertionEffect ".trim().toString()]||at;function kr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=T1({defaultProp:t,onChange:n}),a=e!==void 0,u=a?e:o;{const d=v.useRef(e!==void 0);v.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const c=v.useCallback(d=>{var f;if(a){const h=k1(d)?d(e):d;h!==e&&((f=i.current)==null||f.call(i,h))}else s(d)},[a,e,s,i]);return[u,c]}function T1({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),o=v.useRef(n),s=v.useRef(t);return N1(()=>{s.current=t},[t]),v.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function k1(e){return typeof e=="function"}var P1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),R1="VisuallyHidden",Aa=v.forwardRef((e,t)=>l.jsx(ee.span,{...e,ref:t,style:{...P1,...e.style}}));Aa.displayName=R1;var A1=Aa,Zc="ToastProvider",[Jc,_1,O1]=qc("Toast"),[pg,g2]=Dt("Toast",[O1]),[I1,_a]=pg(Zc),hg=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,u]=v.useState(null),[c,d]=v.useState(0),f=v.useRef(!1),h=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Zc}\`. Expected non-empty \`string\`.`),l.jsx(Jc.Provider,{scope:t,children:l.jsx(I1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:c,viewport:a,onViewportChange:u,onToastAdd:v.useCallback(()=>d(p=>p+1),[]),onToastRemove:v.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:i})})};hg.displayName=Zc;var mg="ToastViewport",L1=["F8"],_u="toast.viewportPause",Ou="toast.viewportResume",gg=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=L1,label:o="Notifications ({hotkey})",...s}=e,i=_a(mg,n),a=_1(n),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),f=v.useRef(null),h=_e(t,f,i.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;v.useEffect(()=>{const w=m=>{var y;r.length!==0&&r.every(S=>m[S]||m.code===S)&&((y=f.current)==null||y.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),v.useEffect(()=>{const w=u.current,m=f.current;if(b&&w&&m){const g=()=>{if(!i.isClosePausedRef.current){const C=new CustomEvent(_u);m.dispatchEvent(C),i.isClosePausedRef.current=!0}},y=()=>{if(i.isClosePausedRef.current){const C=new CustomEvent(Ou);m.dispatchEvent(C),i.isClosePausedRef.current=!1}},S=C=>{!w.contains(C.relatedTarget)&&y()},E=()=>{w.contains(document.activeElement)||y()};return w.addEventListener("focusin",g),w.addEventListener("focusout",S),w.addEventListener("pointermove",g),w.addEventListener("pointerleave",E),window.addEventListener("blur",g),window.addEventListener("focus",y),()=>{w.removeEventListener("focusin",g),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",g),w.removeEventListener("pointerleave",E),window.removeEventListener("blur",g),window.removeEventListener("focus",y)}}},[b,i.isClosePausedRef]);const x=v.useCallback(({tabbingDirection:w})=>{const g=a().map(y=>{const S=y.ref.current,E=[S,...K1(S)];return w==="forwards"?E:E.reverse()});return(w==="forwards"?g.reverse():g).flat()},[a]);return v.useEffect(()=>{const w=f.current;if(w){const m=g=>{var E,C,j;const y=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!y){const k=document.activeElement,O=g.shiftKey;if(g.target===w&&O){(E=c.current)==null||E.focus();return}const M=x({tabbingDirection:O?"backwards":"forwards"}),G=M.findIndex(I=>I===k);Rl(M.slice(G+1))?g.preventDefault():O?(C=c.current)==null||C.focus():(j=d.current)==null||j.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[a,x]),l.jsxs(b1,{ref:u,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&l.jsx(Iu,{ref:c,onFocusFromOutsideViewport:()=>{const w=x({tabbingDirection:"forwards"});Rl(w)}}),l.jsx(Jc.Slot,{scope:n,children:l.jsx(ee.ol,{tabIndex:-1,...s,ref:h})}),b&&l.jsx(Iu,{ref:d,onFocusFromOutsideViewport:()=>{const w=x({tabbingDirection:"backwards"});Rl(w)}})]})});gg.displayName=mg;var vg="ToastFocusProxy",Iu=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=_a(vg,n);return l.jsx(Aa,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var c;const a=i.relatedTarget;!((c=s.viewport)!=null&&c.contains(a))&&r()}})});Iu.displayName=vg;var Us="Toast",M1="toast.swipeStart",D1="toast.swipeMove",F1="toast.swipeCancel",z1="toast.swipeEnd",yg=v.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,u]=kr({prop:r,defaultProp:o??!0,onChange:s,caller:Us});return l.jsx(ko,{present:n||a,children:l.jsx(B1,{open:a,...i,ref:t,onClose:()=>u(!1),onPause:Yt(e.onPause),onResume:Yt(e.onResume),onSwipeStart:Z(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Z(e.onSwipeMove,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Z(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Z(e.onSwipeEnd,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),u(!1)})})})});yg.displayName=Us;var[$1,U1]=pg(Us,{onClose(){}}),B1=v.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:u,onResume:c,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:p,...b}=e,x=_a(Us,n),[w,m]=v.useState(null),g=_e(t,I=>m(I)),y=v.useRef(null),S=v.useRef(null),E=o||x.duration,C=v.useRef(0),j=v.useRef(E),k=v.useRef(0),{onToastAdd:O,onToastRemove:_}=x,$=Yt(()=>{var K;(w==null?void 0:w.contains(document.activeElement))&&((K=x.viewport)==null||K.focus()),i()}),M=v.useCallback(I=>{!I||I===1/0||(window.clearTimeout(k.current),C.current=new Date().getTime(),k.current=window.setTimeout($,I))},[$]);v.useEffect(()=>{const I=x.viewport;if(I){const K=()=>{M(j.current),c==null||c()},F=()=>{const H=new Date().getTime()-C.current;j.current=j.current-H,window.clearTimeout(k.current),u==null||u()};return I.addEventListener(_u,F),I.addEventListener(Ou,K),()=>{I.removeEventListener(_u,F),I.removeEventListener(Ou,K)}}},[x.viewport,E,u,c,M]),v.useEffect(()=>{s&&!x.isClosePausedRef.current&&M(E)},[s,E,x.isClosePausedRef,M]),v.useEffect(()=>(O(),()=>_()),[O,_]);const G=v.useMemo(()=>w?jg(w):null,[w]);return x.viewport?l.jsxs(l.Fragment,{children:[G&&l.jsx(V1,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:G}),l.jsx($1,{scope:n,onClose:$,children:$s.createPortal(l.jsx(Jc.ItemSlot,{scope:n,children:l.jsx(w1,{asChild:!0,onEscapeKeyDown:Z(a,()=>{x.isFocusedToastEscapeKeyDownRef.current||$(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsx(ee.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":x.swipeDirection,...b,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Z(e.onKeyDown,I=>{I.key==="Escape"&&(a==null||a(I.nativeEvent),I.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:Z(e.onPointerDown,I=>{I.button===0&&(y.current={x:I.clientX,y:I.clientY})}),onPointerMove:Z(e.onPointerMove,I=>{if(!y.current)return;const K=I.clientX-y.current.x,F=I.clientY-y.current.y,H=!!S.current,T=["left","right"].includes(x.swipeDirection),P=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,L=T?P(0,K):0,W=T?0:P(0,F),z=I.pointerType==="touch"?10:2,Y={x:L,y:W},X={originalEvent:I,delta:Y};H?(S.current=Y,mi(D1,f,X,{discrete:!1})):Xf(Y,x.swipeDirection,z)?(S.current=Y,mi(M1,d,X,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(K)>z||Math.abs(F)>z)&&(y.current=null)}),onPointerUp:Z(e.onPointerUp,I=>{const K=S.current,F=I.target;if(F.hasPointerCapture(I.pointerId)&&F.releasePointerCapture(I.pointerId),S.current=null,y.current=null,K){const H=I.currentTarget,T={originalEvent:I,delta:K};Xf(K,x.swipeDirection,x.swipeThreshold)?mi(z1,p,T,{discrete:!0}):mi(F1,h,T,{discrete:!0}),H.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),V1=e=>{const{__scopeToast:t,children:n,...r}=e,o=_a(Us,t),[s,i]=v.useState(!1),[a,u]=v.useState(!1);return Q1(()=>i(!0)),v.useEffect(()=>{const c=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:l.jsx(fg,{asChild:!0,children:l.jsx(Aa,{...r,children:s&&l.jsxs(l.Fragment,{children:[o.label," ",n]})})})},H1="ToastTitle",xg=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsx(ee.div,{...r,ref:t})});xg.displayName=H1;var W1="ToastDescription",wg=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsx(ee.div,{...r,ref:t})});wg.displayName=W1;var bg="ToastAction",Sg=v.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?l.jsx(Cg,{altText:n,asChild:!0,children:l.jsx(ed,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${bg}\`. Expected non-empty \`string\`.`),null)});Sg.displayName=bg;var Eg="ToastClose",ed=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=U1(Eg,n);return l.jsx(Cg,{asChild:!0,children:l.jsx(ee.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,o.onClose)})})});ed.displayName=Eg;var Cg=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return l.jsx(ee.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function jg(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),G1(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...jg(r))}}),t}function mi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?lg(o,s):o.dispatchEvent(s)}var Xf=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function Q1(e=()=>{}){const t=Yt(e);at(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function G1(e){return e.nodeType===e.ELEMENT_NODE}function K1(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 Rl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Y1=hg,Ng=gg,Tg=yg,kg=xg,Pg=wg,Rg=Sg,Ag=ed;function _g(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=_g(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Og(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_g(e))&&(r&&(r+=" "),r+=t);return r}const Zf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Jf=Og,Bs=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Jf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],f=s==null?void 0:s[c];if(d===null)return null;const h=Zf(d)||Zf(f);return o[c][h]}),a=n&&Object.entries(n).reduce((c,d)=>{let[f,h]=d;return h===void 0||(c[f]=h),c},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:f,className:h,...p}=d;return Object.entries(p).every(b=>{let[x,w]=b;return Array.isArray(w)?w.includes({...s,...a}[x]):{...s,...a}[x]===w})?[...c,f,h]:c},[]);return Jf(e,i,u,n==null?void 0:n.class,n==null?void 0:n.className)};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ig=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var X1={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.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z1=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},u)=>v.createElement("svg",{ref:u,...X1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ig("lucide",o),...a},[...i.map(([c,d])=>v.createElement(c,d)),...Array.isArray(s)?s:[s]]));/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ee=(e,t)=>{const n=v.forwardRef(({className:r,...o},s)=>v.createElement(Z1,{ref:s,iconNode:t,className:Ig(`lucide-${q1(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J1=Ee("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eb=Ee("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tb=Ee("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nb=Ee("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Oa=Ee("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rb=Ee("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lg=Ee("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ob=Ee("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.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mg=Ee("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sb=Ee("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.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dg=Ee("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ib=Ee("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ab=Ee("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lb=Ee("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ub=Ee("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fg=Ee("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cb=Ee("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const db=Ee("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fb=Ee("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zg=Ee("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),td="-",pb=e=>{const t=mb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(td);return a[0]===""&&a.length!==1&&a.shift(),$g(a,t)||hb(i)},getConflictingClassGroupIds:(i,a)=>{const u=n[i]||[];return a&&r[i]?[...u,...r[i]]:u}}},$g=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?$g(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(td);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},ep=/^\[(.+)\]$/,hb=e=>{if(ep.test(e)){const t=ep.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},mb=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return vb(Object.entries(e.classGroups),n).forEach(([s,i])=>{Lu(i,r,s,t)}),r},Lu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:tp(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(gb(o)){Lu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Lu(i,tp(t,s),n,r)})})},tp=(e,t)=>{let n=e;return t.split(td).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},gb=e=>e.isThemeGetter,vb=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,yb=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Ug="!",xb=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const u=[];let c=0,d=0,f;for(let w=0;w<a.length;w++){let m=a[w];if(c===0){if(m===o&&(r||a.slice(w,w+s)===t)){u.push(a.slice(d,w)),d=w+s;continue}if(m==="/"){f=w;continue}}m==="["?c++:m==="]"&&c--}const h=u.length===0?a:a.substring(d),p=h.startsWith(Ug),b=p?h.substring(1):h,x=f&&f>d?f-d:void 0;return{modifiers:u,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:x}};return n?a=>n({className:a,parseClassName:i}):i},wb=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},bb=e=>({cache:yb(e.cacheSize),parseClassName:xb(e),...pb(e)}),Sb=/\s+/,Eb=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(Sb);let a="";for(let u=i.length-1;u>=0;u-=1){const c=i[u],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}=n(c);let b=!!p,x=r(b?h.substring(0,p):h);if(!x){if(!b){a=c+(a.length>0?" "+a:a);continue}if(x=r(h),!x){a=c+(a.length>0?" "+a:a);continue}b=!1}const w=wb(d).join(":"),m=f?w+Ug:w,g=m+x;if(s.includes(g))continue;s.push(g);const y=o(x,b);for(let S=0;S<y.length;++S){const E=y[S];s.push(m+E)}a=c+(a.length>0?" "+a:a)}return a};function Cb(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Bg(t))&&(r&&(r+=" "),r+=n);return r}const Bg=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Bg(e[r]))&&(n&&(n+=" "),n+=t);return n};function jb(e,...t){let n,r,o,s=i;function i(u){const c=t.reduce((d,f)=>f(d),e());return n=bb(c),r=n.cache.get,o=n.cache.set,s=a,a(u)}function a(u){const c=r(u);if(c)return c;const d=Eb(u,n);return o(u,d),d}return function(){return s(Cb.apply(null,arguments))}}const ae=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Vg=/^\[(?:([a-z-]+):)?(.+)\]$/i,Nb=/^\d+\/\d+$/,Tb=new Set(["px","full","screen"]),kb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pb=/\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$/,Rb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ab=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_b=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,en=e=>no(e)||Tb.has(e)||Nb.test(e),Cn=e=>Po(e,"length",$b),no=e=>!!e&&!Number.isNaN(Number(e)),Al=e=>Po(e,"number",no),Vo=e=>!!e&&Number.isInteger(Number(e)),Ob=e=>e.endsWith("%")&&no(e.slice(0,-1)),Q=e=>Vg.test(e),jn=e=>kb.test(e),Ib=new Set(["length","size","percentage"]),Lb=e=>Po(e,Ib,Hg),Mb=e=>Po(e,"position",Hg),Db=new Set(["image","url"]),Fb=e=>Po(e,Db,Bb),zb=e=>Po(e,"",Ub),Ho=()=>!0,Po=(e,t,n)=>{const r=Vg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},$b=e=>Pb.test(e)&&!Rb.test(e),Hg=()=>!1,Ub=e=>Ab.test(e),Bb=e=>_b.test(e),Vb=()=>{const e=ae("colors"),t=ae("spacing"),n=ae("blur"),r=ae("brightness"),o=ae("borderColor"),s=ae("borderRadius"),i=ae("borderSpacing"),a=ae("borderWidth"),u=ae("contrast"),c=ae("grayscale"),d=ae("hueRotate"),f=ae("invert"),h=ae("gap"),p=ae("gradientColorStops"),b=ae("gradientColorStopPositions"),x=ae("inset"),w=ae("margin"),m=ae("opacity"),g=ae("padding"),y=ae("saturate"),S=ae("scale"),E=ae("sepia"),C=ae("skew"),j=ae("space"),k=ae("translate"),O=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",Q,t],M=()=>[Q,t],G=()=>["",en,Cn],I=()=>["auto",no,Q],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",Q],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[no,Q];return{cacheSize:500,separator:":",theme:{colors:[Ho],spacing:[en,Cn],blur:["none","",jn,Q],brightness:W(),borderColor:[e],borderRadius:["none","","full",jn,Q],borderSpacing:M(),borderWidth:G(),contrast:W(),grayscale:P(),hueRotate:W(),invert:P(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[Ob,Cn],inset:$(),margin:$(),opacity:W(),padding:M(),saturate:W(),scale:W(),sepia:P(),skew:W(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",Q]}],container:["container"],columns:[{columns:[jn]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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:[...K(),Q]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Vo,Q]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Q]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Vo,Q]}],"grid-cols":[{"grid-cols":[Ho]}],"col-start-end":[{col:["auto",{span:["full",Vo,Q]},Q]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Ho]}],"row-start-end":[{row:["auto",{span:[Vo,Q]},Q]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Q]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Q,t]}],"min-w":[{"min-w":[Q,t,"min","max","fit"]}],"max-w":[{"max-w":[Q,t,"none","full","min","max","fit","prose",{screen:[jn]},jn]}],h:[{h:[Q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",jn,Cn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Al]}],"font-family":[{font:[Ho]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Q]}],"line-clamp":[{"line-clamp":["none",no,Al]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",en,Q]}],"list-image":[{"list-image":["none",Q]}],"list-style-type":[{list:["none","disc","decimal",Q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",en,Cn]}],"underline-offset":[{"underline-offset":["auto",en,Q]}],"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:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q]}],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",Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),Mb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Fb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[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":[m]}],"border-style":[{border:[...F(),"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":[m]}],"divide-style":[{divide:F()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[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:["",...F()]}],"outline-offset":[{"outline-offset":[en,Q]}],"outline-w":[{outline:[en,Cn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[en,Cn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",jn,zb]}],"shadow-color":[{shadow:[Ho]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",jn,Q]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Q]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",Q]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",Q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Vo,Q]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Q]}],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",Q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",Q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[en,Cn,Al]}],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-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"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"]}}},Hb=jb(Vb);function ie(...e){return Hb(Og(e))}const Wb=Y1,Wg=v.forwardRef(({className:e,...t},n)=>l.jsx(Ng,{ref:n,className:ie("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Wg.displayName=Ng.displayName;const Qb=Bs("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Qg=v.forwardRef(({className:e,variant:t,...n},r)=>l.jsx(Tg,{ref:r,className:ie(Qb({variant:t}),e),...n}));Qg.displayName=Tg.displayName;const Gb=v.forwardRef(({className:e,...t},n)=>l.jsx(Rg,{ref:n,className:ie("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));Gb.displayName=Rg.displayName;const Gg=v.forwardRef(({className:e,...t},n)=>l.jsx(Ag,{ref:n,className:ie("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:l.jsx(zg,{className:"h-4 w-4"})}));Gg.displayName=Ag.displayName;const Kg=v.forwardRef(({className:e,...t},n)=>l.jsx(kg,{ref:n,className:ie("text-sm font-semibold",e),...t}));Kg.displayName=kg.displayName;const Yg=v.forwardRef(({className:e,...t},n)=>l.jsx(Pg,{ref:n,className:ie("text-sm opacity-90",e),...t}));Yg.displayName=Pg.displayName;function Kb(){const{toasts:e}=sg();return l.jsxs(Wb,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return l.jsxs(Qg,{...s,children:[l.jsxs("div",{className:"grid gap-1",children:[n&&l.jsx(Kg,{children:n}),r&&l.jsx(Yg,{children:r})]}),o,l.jsx(Gg,{})]},t)}),l.jsx(Wg,{})]})}var np=["light","dark"],Yb="(prefers-color-scheme: dark)",qb=v.createContext(void 0),Xb={setTheme:e=>{},themes:[]},Zb=()=>{var e;return(e=v.useContext(qb))!=null?e:Xb};v.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:a,nonce:u})=>{let c=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=o?np.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(b,x=!1,w=!0)=>{let m=i?i[b]:b,g=x?b+"|| ''":`'${m}'`,y="";return o&&w&&!x&&np.includes(b)&&(y+=`d.style.colorScheme = '${b}';`),n==="class"?x||m?y+=`c.add(${g})`:y+="null":m&&(y+=`d[s](n,${g})`),y},p=e?`!function(){${d}${h(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${Yb}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${c?"":"else{"+h(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(s,!1,!1)};}${f}}catch(t){}}();`;return v.createElement("script",{nonce:u,dangerouslySetInnerHTML:{__html:p}})});var Jb=e=>{switch(e){case"success":return nS;case"info":return oS;case"warning":return rS;case"error":return sS;default:return null}},eS=Array(12).fill(0),tS=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},eS.map((n,r)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),nS=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.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"})),rS=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},R.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"})),oS=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.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"})),sS=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.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"})),iS=R.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"},R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),aS=()=>{let[e,t]=R.useState(document.hidden);return R.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Mu=1,lS=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:Mu++,s=this.toasts.find(a=>a.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(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,s,i=r.then(async u=>{if(s=["resolve",u],R.isValidElement(u))o=!1,this.create({id:n,type:"default",message:u});else if(cS(u)&&!u.ok){o=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${u.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${u.status}`):t.description;this.create({id:n,type:"error",message:c,description:d})}else if(t.success!==void 0){o=!1;let c=typeof t.success=="function"?await t.success(u):t.success,d=typeof t.description=="function"?await t.description(u):t.description;this.create({id:n,type:"success",message:c,description:d})}}).catch(async u=>{if(s=["reject",u],t.error!==void 0){o=!1;let c=typeof t.error=="function"?await t.error(u):t.error,d=typeof t.description=="function"?await t.description(u):t.description;this.create({id:n,type:"error",message:c,description:d})}}).finally(()=>{var u;o&&(this.dismiss(n),n=void 0),(u=t.finally)==null||u.call(t)}),a=()=>new Promise((u,c)=>i.then(()=>s[0]==="reject"?c(s[1]):u(s[1])).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Mu++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ke=new lS,uS=(e,t)=>{let n=(t==null?void 0:t.id)||Mu++;return Ke.addToast({title:e,...t,id:n}),n},cS=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",dS=uS,fS=()=>Ke.toasts,pS=()=>Ke.getActiveToasts();Object.assign(dS,{success:Ke.success,info:Ke.info,warning:Ke.warning,error:Ke.error,custom:Ke.custom,message:Ke.message,promise:Ke.promise,dismiss:Ke.dismiss,loading:Ke.loading},{getHistory:fS,getToasts:pS});function hS(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))}hS(`: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;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-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;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}[data-sonner-toast] [data-close-button]{background:var(--gray1)}: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:-50%;right:-50%;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-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-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-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 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-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[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 gi(e){return e.label!==void 0}var mS=3,gS="32px",vS="16px",rp=4e3,yS=356,xS=14,wS=20,bS=200;function St(...e){return e.filter(Boolean).join(" ")}function SS(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var ES=e=>{var t,n,r,o,s,i,a,u,c,d,f;let{invert:h,toast:p,unstyled:b,interacting:x,setHeights:w,visibleToasts:m,heights:g,index:y,toasts:S,expanded:E,removeToast:C,defaultRichColors:j,closeButton:k,style:O,cancelButtonStyle:_,actionButtonStyle:$,className:M="",descriptionClassName:G="",duration:I,position:K,gap:F,loadingIcon:H,expandByDefault:T,classNames:P,icons:L,closeButtonAriaLabel:W="Close toast",pauseWhenPageIsHidden:z}=e,[Y,X]=R.useState(null),[we,Oe]=R.useState(null),[ne,Rr]=R.useState(!1),[vn,nr]=R.useState(!1),[yn,Ar]=R.useState(!1),[xn,Gs]=R.useState(!1),[Xa,Ks]=R.useState(!1),[Za,Oo]=R.useState(0),[_r,Rd]=R.useState(0),Io=R.useRef(p.duration||I||rp),Ad=R.useRef(null),rr=R.useRef(null),xx=y===0,wx=y+1<=m,ct=p.type,Or=p.dismissible!==!1,bx=p.className||"",Sx=p.descriptionClassName||"",Ys=R.useMemo(()=>g.findIndex(U=>U.toastId===p.id)||0,[g,p.id]),Ex=R.useMemo(()=>{var U;return(U=p.closeButton)!=null?U:k},[p.closeButton,k]),_d=R.useMemo(()=>p.duration||I||rp,[p.duration,I]),Ja=R.useRef(0),Ir=R.useRef(0),Od=R.useRef(0),Lr=R.useRef(null),[Cx,jx]=K.split("-"),Id=R.useMemo(()=>g.reduce((U,oe,ce)=>ce>=Ys?U:U+oe.height,0),[g,Ys]),Ld=aS(),Nx=p.invert||h,el=ct==="loading";Ir.current=R.useMemo(()=>Ys*F+Id,[Ys,Id]),R.useEffect(()=>{Io.current=_d},[_d]),R.useEffect(()=>{Rr(!0)},[]),R.useEffect(()=>{let U=rr.current;if(U){let oe=U.getBoundingClientRect().height;return Rd(oe),w(ce=>[{toastId:p.id,height:oe,position:p.position},...ce]),()=>w(ce=>ce.filter(yt=>yt.toastId!==p.id))}},[w,p.id]),R.useLayoutEffect(()=>{if(!ne)return;let U=rr.current,oe=U.style.height;U.style.height="auto";let ce=U.getBoundingClientRect().height;U.style.height=oe,Rd(ce),w(yt=>yt.find(xt=>xt.toastId===p.id)?yt.map(xt=>xt.toastId===p.id?{...xt,height:ce}:xt):[{toastId:p.id,height:ce,position:p.position},...yt])},[ne,p.title,p.description,w,p.id]);let wn=R.useCallback(()=>{nr(!0),Oo(Ir.current),w(U=>U.filter(oe=>oe.toastId!==p.id)),setTimeout(()=>{C(p)},bS)},[p,C,w,Ir]);R.useEffect(()=>{if(p.promise&&ct==="loading"||p.duration===1/0||p.type==="loading")return;let U;return E||x||z&&Ld?(()=>{if(Od.current<Ja.current){let oe=new Date().getTime()-Ja.current;Io.current=Io.current-oe}Od.current=new Date().getTime()})():Io.current!==1/0&&(Ja.current=new Date().getTime(),U=setTimeout(()=>{var oe;(oe=p.onAutoClose)==null||oe.call(p,p),wn()},Io.current)),()=>clearTimeout(U)},[E,x,p,ct,z,Ld,wn]),R.useEffect(()=>{p.delete&&wn()},[wn,p.delete]);function Tx(){var U,oe,ce;return L!=null&&L.loading?R.createElement("div",{className:St(P==null?void 0:P.loader,(U=p==null?void 0:p.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":ct==="loading"},L.loading):H?R.createElement("div",{className:St(P==null?void 0:P.loader,(oe=p==null?void 0:p.classNames)==null?void 0:oe.loader,"sonner-loader"),"data-visible":ct==="loading"},H):R.createElement(tS,{className:St(P==null?void 0:P.loader,(ce=p==null?void 0:p.classNames)==null?void 0:ce.loader),visible:ct==="loading"})}return R.createElement("li",{tabIndex:0,ref:rr,className:St(M,bx,P==null?void 0:P.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[ct],(n=p==null?void 0:p.classNames)==null?void 0:n[ct]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:j,"data-styled":!(p.jsx||p.unstyled||b),"data-mounted":ne,"data-promise":!!p.promise,"data-swiped":Xa,"data-removed":vn,"data-visible":wx,"data-y-position":Cx,"data-x-position":jx,"data-index":y,"data-front":xx,"data-swiping":yn,"data-dismissible":Or,"data-type":ct,"data-invert":Nx,"data-swipe-out":xn,"data-swipe-direction":we,"data-expanded":!!(E||T&&ne),style:{"--index":y,"--toasts-before":y,"--z-index":S.length-y,"--offset":`${vn?Za:Ir.current}px`,"--initial-height":T?"auto":`${_r}px`,...O,...p.style},onDragEnd:()=>{Ar(!1),X(null),Lr.current=null},onPointerDown:U=>{el||!Or||(Ad.current=new Date,Oo(Ir.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(Ar(!0),Lr.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,oe,ce,yt;if(xn||!Or)return;Lr.current=null;let xt=Number(((U=rr.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),bn=Number(((oe=rr.current)==null?void 0:oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),or=new Date().getTime()-((ce=Ad.current)==null?void 0:ce.getTime()),wt=Y==="x"?xt:bn,Sn=Math.abs(wt)/or;if(Math.abs(wt)>=wS||Sn>.11){Oo(Ir.current),(yt=p.onDismiss)==null||yt.call(p,p),Oe(Y==="x"?xt>0?"right":"left":bn>0?"down":"up"),wn(),Gs(!0),Ks(!1);return}Ar(!1),X(null)},onPointerMove:U=>{var oe,ce,yt,xt;if(!Lr.current||!Or||((oe=window.getSelection())==null?void 0:oe.toString().length)>0)return;let bn=U.clientY-Lr.current.y,or=U.clientX-Lr.current.x,wt=(ce=e.swipeDirections)!=null?ce:SS(K);!Y&&(Math.abs(or)>1||Math.abs(bn)>1)&&X(Math.abs(or)>Math.abs(bn)?"x":"y");let Sn={x:0,y:0};Y==="y"?(wt.includes("top")||wt.includes("bottom"))&&(wt.includes("top")&&bn<0||wt.includes("bottom")&&bn>0)&&(Sn.y=bn):Y==="x"&&(wt.includes("left")||wt.includes("right"))&&(wt.includes("left")&&or<0||wt.includes("right")&&or>0)&&(Sn.x=or),(Math.abs(Sn.x)>0||Math.abs(Sn.y)>0)&&Ks(!0),(yt=rr.current)==null||yt.style.setProperty("--swipe-amount-x",`${Sn.x}px`),(xt=rr.current)==null||xt.style.setProperty("--swipe-amount-y",`${Sn.y}px`)}},Ex&&!p.jsx?R.createElement("button",{"aria-label":W,"data-disabled":el,"data-close-button":!0,onClick:el||!Or?()=>{}:()=>{var U;wn(),(U=p.onDismiss)==null||U.call(p,p)},className:St(P==null?void 0:P.closeButton,(o=p==null?void 0:p.classNames)==null?void 0:o.closeButton)},(s=L==null?void 0:L.close)!=null?s:iS):null,p.jsx||v.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:R.createElement(R.Fragment,null,ct||p.icon||p.promise?R.createElement("div",{"data-icon":"",className:St(P==null?void 0:P.icon,(i=p==null?void 0:p.classNames)==null?void 0:i.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||Tx():null,p.type!=="loading"?p.icon||(L==null?void 0:L[ct])||Jb(ct):null):null,R.createElement("div",{"data-content":"",className:St(P==null?void 0:P.content,(a=p==null?void 0:p.classNames)==null?void 0:a.content)},R.createElement("div",{"data-title":"",className:St(P==null?void 0:P.title,(u=p==null?void 0:p.classNames)==null?void 0:u.title)},typeof p.title=="function"?p.title():p.title),p.description?R.createElement("div",{"data-description":"",className:St(G,Sx,P==null?void 0:P.description,(c=p==null?void 0:p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),v.isValidElement(p.cancel)?p.cancel:p.cancel&&gi(p.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||_,onClick:U=>{var oe,ce;gi(p.cancel)&&Or&&((ce=(oe=p.cancel).onClick)==null||ce.call(oe,U),wn())},className:St(P==null?void 0:P.cancelButton,(d=p==null?void 0:p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,v.isValidElement(p.action)?p.action:p.action&&gi(p.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||$,onClick:U=>{var oe,ce;gi(p.action)&&((ce=(oe=p.action).onClick)==null||ce.call(oe,U),!U.defaultPrevented&&wn())},className:St(P==null?void 0:P.actionButton,(f=p==null?void 0:p.classNames)==null?void 0:f.actionButton)},p.action.label):null))};function op(){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}function CS(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",a=s?vS:gS;function u(c){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?u(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${i}-${c}`]=a:n[`${i}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):u(a)}),n}var jS=v.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:a,offset:u,mobileOffset:c,theme:d="light",richColors:f,duration:h,style:p,visibleToasts:b=mS,toastOptions:x,dir:w=op(),gap:m=xS,loadingIcon:g,icons:y,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:E}=e,[C,j]=R.useState([]),k=R.useMemo(()=>Array.from(new Set([r].concat(C.filter(z=>z.position).map(z=>z.position)))),[C,r]),[O,_]=R.useState([]),[$,M]=R.useState(!1),[G,I]=R.useState(!1),[K,F]=R.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=R.useRef(null),T=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=R.useRef(null),L=R.useRef(!1),W=R.useCallback(z=>{j(Y=>{var X;return(X=Y.find(we=>we.id===z.id))!=null&&X.delete||Ke.dismiss(z.id),Y.filter(({id:we})=>we!==z.id)})},[]);return R.useEffect(()=>Ke.subscribe(z=>{if(z.dismiss){j(Y=>Y.map(X=>X.id===z.id?{...X,delete:!0}:X));return}setTimeout(()=>{rg.flushSync(()=>{j(Y=>{let X=Y.findIndex(we=>we.id===z.id);return X!==-1?[...Y.slice(0,X),{...Y[X],...z},...Y.slice(X+1)]:[z,...Y]})})})}),[]),R.useEffect(()=>{if(d!=="system"){F(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:Y})=>{F(Y?"dark":"light")})}catch{z.addListener(({matches:X})=>{try{F(X?"dark":"light")}catch(we){console.error(we)}})}},[d]),R.useEffect(()=>{C.length<=1&&M(!1)},[C]),R.useEffect(()=>{let z=Y=>{var X,we;o.every(Oe=>Y[Oe]||Y.code===Oe)&&(M(!0),(X=H.current)==null||X.focus()),Y.code==="Escape"&&(document.activeElement===H.current||(we=H.current)!=null&&we.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),R.useEffect(()=>{if(H.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,L.current=!1)}},[H.current]),R.createElement("section",{ref:t,"aria-label":`${S} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((z,Y)=>{var X;let[we,Oe]=z.split("-");return C.length?R.createElement("ol",{key:z,dir:w==="auto"?op():w,tabIndex:-1,ref:H,className:a,"data-sonner-toaster":!0,"data-theme":K,"data-y-position":we,"data-lifted":$&&C.length>1&&!s,"data-x-position":Oe,style:{"--front-toast-height":`${((X=O[0])==null?void 0:X.height)||0}px`,"--width":`${yS}px`,"--gap":`${m}px`,...p,...CS(u,c)},onBlur:ne=>{L.current&&!ne.currentTarget.contains(ne.relatedTarget)&&(L.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||L.current||(L.current=!0,P.current=ne.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{G||M(!1)},onDragEnd:()=>M(!1),onPointerDown:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},C.filter(ne=>!ne.position&&Y===0||ne.position===z).map((ne,Rr)=>{var vn,nr;return R.createElement(ES,{key:ne.id,icons:y,index:Rr,toast:ne,defaultRichColors:f,duration:(vn=x==null?void 0:x.duration)!=null?vn:h,className:x==null?void 0:x.className,descriptionClassName:x==null?void 0:x.descriptionClassName,invert:n,visibleToasts:b,closeButton:(nr=x==null?void 0:x.closeButton)!=null?nr:i,interacting:G,position:z,style:x==null?void 0:x.style,unstyled:x==null?void 0:x.unstyled,classNames:x==null?void 0:x.classNames,cancelButtonStyle:x==null?void 0:x.cancelButtonStyle,actionButtonStyle:x==null?void 0:x.actionButtonStyle,removeToast:W,toasts:C.filter(yn=>yn.position==ne.position),heights:O.filter(yn=>yn.position==ne.position),setHeights:_,expandByDefault:s,gap:m,loadingIcon:g,expanded:$,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const NS=({...e})=>{const{theme:t="system"}=Zb();return l.jsx(jS,{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 TS=sc[" useId ".trim().toString()]||(()=>{}),kS=0;function Ia(e){const[t,n]=v.useState(TS());return at(()=>{e||n(r=>r??String(kS++))},[e]),e||(t?`radix-${t}`:"")}const PS=["top","right","bottom","left"],qn=Math.min,tt=Math.max,ia=Math.round,vi=Math.floor,Kt=e=>({x:e,y:e}),RS={left:"right",right:"left",bottom:"top",top:"bottom"},AS={start:"end",end:"start"};function Du(e,t,n){return tt(e,qn(t,n))}function hn(e,t){return typeof e=="function"?e(t):e}function mn(e){return e.split("-")[0]}function Ro(e){return e.split("-")[1]}function nd(e){return e==="x"?"y":"x"}function rd(e){return e==="y"?"height":"width"}const _S=new Set(["top","bottom"]);function Wt(e){return _S.has(mn(e))?"y":"x"}function od(e){return nd(Wt(e))}function OS(e,t,n){n===void 0&&(n=!1);const r=Ro(e),o=od(e),s=rd(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=aa(i)),[i,aa(i)]}function IS(e){const t=aa(e);return[Fu(e),t,Fu(t)]}function Fu(e){return e.replace(/start|end/g,t=>AS[t])}const sp=["left","right"],ip=["right","left"],LS=["top","bottom"],MS=["bottom","top"];function DS(e,t,n){switch(e){case"top":case"bottom":return n?t?ip:sp:t?sp:ip;case"left":case"right":return t?LS:MS;default:return[]}}function FS(e,t,n,r){const o=Ro(e);let s=DS(mn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Fu)))),s}function aa(e){return e.replace(/left|right|bottom|top/g,t=>RS[t])}function zS(e){return{top:0,right:0,bottom:0,left:0,...e}}function qg(e){return typeof e!="number"?zS(e):{top:e,right:e,bottom:e,left:e}}function la(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 ap(e,t,n){let{reference:r,floating:o}=e;const s=Wt(t),i=od(t),a=rd(i),u=mn(t),c=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(u){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Ro(t)){case"start":p[i]-=h*(n&&c?-1:1);break;case"end":p[i]+=h*(n&&c?-1:1);break}return p}const $S=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=ap(c,r,u),h=r,p={},b=0;for(let x=0;x<a.length;x++){const{name:w,fn:m}=a[x],{x:g,y,data:S,reset:E}=await m({x:d,y:f,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});d=g??d,f=y??f,p={...p,[w]:{...p[w],...S}},E&&b<=50&&(b++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(c=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:d,y:f}=ap(c,h,u)),x=-1)}return{x:d,y:f,placement:h,strategy:o,middlewareData:p}};async function Ns(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=hn(t,e),b=qg(p),w=a[h?f==="floating"?"reference":"floating":f],m=la(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:u})),g=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},E=la(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:u}):g);return{top:(m.top-E.top+b.top)/S.y,bottom:(E.bottom-m.bottom+b.bottom)/S.y,left:(m.left-E.left+b.left)/S.x,right:(E.right-m.right+b.right)/S.x}}const US=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:u}=t,{element:c,padding:d=0}=hn(e,t)||{};if(c==null)return{};const f=qg(d),h={x:n,y:r},p=od(o),b=rd(p),x=await i.getDimensions(c),w=p==="y",m=w?"top":"left",g=w?"bottom":"right",y=w?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[p]-h[p]-s.floating[b],E=h[p]-s.reference[p],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let j=C?C[y]:0;(!j||!await(i.isElement==null?void 0:i.isElement(C)))&&(j=a.floating[y]||s.floating[b]);const k=S/2-E/2,O=j/2-x[b]/2-1,_=qn(f[m],O),$=qn(f[g],O),M=_,G=j-x[b]-$,I=j/2-x[b]/2+k,K=Du(M,I,G),F=!u.arrow&&Ro(o)!=null&&I!==K&&s.reference[b]/2-(I<M?_:$)-x[b]/2<0,H=F?I<M?I-M:I-G:0;return{[p]:h[p]+H,data:{[p]:K,centerOffset:I-K-H,...F&&{alignmentOffset:H}},reset:F}}}),BS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...w}=hn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const m=mn(o),g=Wt(a),y=mn(a)===a,S=await(u.isRTL==null?void 0:u.isRTL(c.floating)),E=h||(y||!x?[aa(a)]:IS(a)),C=b!=="none";!h&&C&&E.push(...FS(a,x,b,S));const j=[a,...E],k=await Ns(t,w),O=[];let _=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&O.push(k[m]),f){const I=OS(o,i,S);O.push(k[I[0]],k[I[1]])}if(_=[..._,{placement:o,overflows:O}],!O.every(I=>I<=0)){var $,M;const I=((($=s.flip)==null?void 0:$.index)||0)+1,K=j[I];if(K&&(!(f==="alignment"?g!==Wt(K):!1)||_.every(T=>T.overflows[0]>0&&Wt(T.placement)===g)))return{data:{index:I,overflows:_},reset:{placement:K}};let F=(M=_.filter(H=>H.overflows[0]<=0).sort((H,T)=>H.overflows[1]-T.overflows[1])[0])==null?void 0:M.placement;if(!F)switch(p){case"bestFit":{var G;const H=(G=_.filter(T=>{if(C){const P=Wt(T.placement);return P===g||P==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(P=>P>0).reduce((P,L)=>P+L,0)]).sort((T,P)=>T[1]-P[1])[0])==null?void 0:G[0];H&&(F=H);break}case"initialPlacement":F=a;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function lp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function up(e){return PS.some(t=>e[t]>=0)}const VS=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=hn(e,t);switch(r){case"referenceHidden":{const s=await Ns(t,{...o,elementContext:"reference"}),i=lp(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:up(i)}}}case"escaped":{const s=await Ns(t,{...o,altBoundary:!0}),i=lp(s,n.floating);return{data:{escapedOffsets:i,escaped:up(i)}}}default:return{}}}}},Xg=new Set(["left","top"]);async function HS(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=mn(n),a=Ro(n),u=Wt(n)==="y",c=Xg.has(i)?-1:1,d=s&&u?-1:1,f=hn(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof b=="number"&&(p=a==="end"?b*-1:b),u?{x:p*d,y:h*c}:{x:h*c,y:p*d}}const WS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,u=await HS(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:i}}}}},QS=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:m,y:g}=w;return{x:m,y:g}}},...u}=hn(e,t),c={x:n,y:r},d=await Ns(t,u),f=Wt(mn(o)),h=nd(f);let p=c[h],b=c[f];if(s){const w=h==="y"?"top":"left",m=h==="y"?"bottom":"right",g=p+d[w],y=p-d[m];p=Du(g,p,y)}if(i){const w=f==="y"?"top":"left",m=f==="y"?"bottom":"right",g=b+d[w],y=b-d[m];b=Du(g,b,y)}const x=a.fn({...t,[h]:p,[f]:b});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[h]:s,[f]:i}}}}}},GS=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=hn(e,t),d={x:n,y:r},f=Wt(o),h=nd(f);let p=d[h],b=d[f];const x=hn(a,t),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(u){const y=h==="y"?"height":"width",S=s.reference[h]-s.floating[y]+w.mainAxis,E=s.reference[h]+s.reference[y]-w.mainAxis;p<S?p=S:p>E&&(p=E)}if(c){var m,g;const y=h==="y"?"width":"height",S=Xg.has(mn(o)),E=s.reference[f]-s.floating[y]+(S&&((m=i.offset)==null?void 0:m[f])||0)+(S?0:w.crossAxis),C=s.reference[f]+s.reference[y]+(S?0:((g=i.offset)==null?void 0:g[f])||0)-(S?w.crossAxis:0);b<E?b=E:b>C&&(b=C)}return{[h]:p,[f]:b}}}},KS=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:u=()=>{},...c}=hn(e,t),d=await Ns(t,c),f=mn(o),h=Ro(o),p=Wt(o)==="y",{width:b,height:x}=s.floating;let w,m;f==="top"||f==="bottom"?(w=f,m=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(m=f,w=h==="end"?"top":"bottom");const g=x-d.top-d.bottom,y=b-d.left-d.right,S=qn(x-d[w],g),E=qn(b-d[m],y),C=!t.middlewareData.shift;let j=S,k=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=g),C&&!h){const _=tt(d.left,0),$=tt(d.right,0),M=tt(d.top,0),G=tt(d.bottom,0);p?k=b-2*(_!==0||$!==0?_+$:tt(d.left,d.right)):j=x-2*(M!==0||G!==0?M+G:tt(d.top,d.bottom))}await u({...t,availableWidth:k,availableHeight:j});const O=await i.getDimensions(a.floating);return b!==O.width||x!==O.height?{reset:{rects:!0}}:{}}}};function La(){return typeof window<"u"}function Ao(e){return Zg(e)?(e.nodeName||"").toLowerCase():"#document"}function st(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Jt(e){var t;return(t=(Zg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zg(e){return La()?e instanceof Node||e instanceof st(e).Node:!1}function It(e){return La()?e instanceof Element||e instanceof st(e).Element:!1}function qt(e){return La()?e instanceof HTMLElement||e instanceof st(e).HTMLElement:!1}function cp(e){return!La()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof st(e).ShadowRoot}const YS=new Set(["inline","contents"]);function Vs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!YS.has(o)}const qS=new Set(["table","td","th"]);function XS(e){return qS.has(Ao(e))}const ZS=[":popover-open",":modal"];function Ma(e){return ZS.some(t=>{try{return e.matches(t)}catch{return!1}})}const JS=["transform","translate","scale","rotate","perspective"],eE=["transform","translate","scale","rotate","perspective","filter"],tE=["paint","layout","strict","content"];function sd(e){const t=id(),n=It(e)?Lt(e):e;return JS.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||eE.some(r=>(n.willChange||"").includes(r))||tE.some(r=>(n.contain||"").includes(r))}function nE(e){let t=Xn(e);for(;qt(t)&&!bo(t);){if(sd(t))return t;if(Ma(t))return null;t=Xn(t)}return null}function id(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const rE=new Set(["html","body","#document"]);function bo(e){return rE.has(Ao(e))}function Lt(e){return st(e).getComputedStyle(e)}function Da(e){return It(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xn(e){if(Ao(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cp(e)&&e.host||Jt(e);return cp(t)?t.host:t}function Jg(e){const t=Xn(e);return bo(t)?e.ownerDocument?e.ownerDocument.body:e.body:qt(t)&&Vs(t)?t:Jg(t)}function Ts(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Jg(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=st(o);if(s){const a=zu(i);return t.concat(i,i.visualViewport||[],Vs(o)?o:[],a&&n?Ts(a):[])}return t.concat(o,Ts(o,[],n))}function zu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ev(e){const t=Lt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=qt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=ia(n)!==s||ia(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function ad(e){return It(e)?e:e.contextElement}function ro(e){const t=ad(e);if(!qt(t))return Kt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=ev(t);let i=(s?ia(n.width):n.width)/r,a=(s?ia(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const oE=Kt(0);function tv(e){const t=st(e);return!id()||!t.visualViewport?oE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==st(e)?!1:t}function jr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ad(e);let i=Kt(1);t&&(r?It(r)&&(i=ro(r)):i=ro(e));const a=sE(s,n,r)?tv(s):Kt(0);let u=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(s){const h=st(s),p=r&&It(r)?st(r):r;let b=h,x=zu(b);for(;x&&r&&p!==b;){const w=ro(x),m=x.getBoundingClientRect(),g=Lt(x),y=m.left+(x.clientLeft+parseFloat(g.paddingLeft))*w.x,S=m.top+(x.clientTop+parseFloat(g.paddingTop))*w.y;u*=w.x,c*=w.y,d*=w.x,f*=w.y,u+=y,c+=S,b=st(x),x=zu(b)}}return la({width:d,height:f,x:u,y:c})}function ld(e,t){const n=Da(e).scrollLeft;return t?t.left+n:jr(Jt(e)).left+n}function nv(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ld(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function iE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Jt(r),a=t?Ma(t.floating):!1;if(r===i||a&&s)return n;let u={scrollLeft:0,scrollTop:0},c=Kt(1);const d=Kt(0),f=qt(r);if((f||!f&&!s)&&((Ao(r)!=="body"||Vs(i))&&(u=Da(r)),qt(r))){const p=jr(r);c=ro(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const h=i&&!f&&!s?nv(i,u,!0):Kt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}}function aE(e){return Array.from(e.getClientRects())}function lE(e){const t=Jt(e),n=Da(e),r=e.ownerDocument.body,o=tt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=tt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ld(e);const a=-n.scrollTop;return Lt(r).direction==="rtl"&&(i+=tt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function uE(e,t){const n=st(e),r=Jt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,u=0;if(o){s=o.width,i=o.height;const c=id();(!c||c&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}return{width:s,height:i,x:a,y:u}}const cE=new Set(["absolute","fixed"]);function dE(e,t){const n=jr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=qt(e)?ro(e):Kt(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,u=o*s.x,c=r*s.y;return{width:i,height:a,x:u,y:c}}function dp(e,t,n){let r;if(t==="viewport")r=uE(e,n);else if(t==="document")r=lE(Jt(e));else if(It(t))r=dE(t,n);else{const o=tv(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return la(r)}function rv(e,t){const n=Xn(e);return n===t||!It(n)||bo(n)?!1:Lt(n).position==="fixed"||rv(n,t)}function fE(e,t){const n=t.get(e);if(n)return n;let r=Ts(e,[],!1).filter(a=>It(a)&&Ao(a)!=="body"),o=null;const s=Lt(e).position==="fixed";let i=s?Xn(e):e;for(;It(i)&&!bo(i);){const a=Lt(i),u=sd(i);!u&&a.position==="fixed"&&(o=null),(s?!u&&!o:!u&&a.position==="static"&&!!o&&cE.has(o.position)||Vs(i)&&!u&&rv(e,i))?r=r.filter(d=>d!==i):o=a,i=Xn(i)}return t.set(e,r),r}function pE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Ma(t)?[]:fE(t,this._c):[].concat(n),r],a=i[0],u=i.reduce((c,d)=>{const f=dp(t,d,o);return c.top=tt(f.top,c.top),c.right=qn(f.right,c.right),c.bottom=qn(f.bottom,c.bottom),c.left=tt(f.left,c.left),c},dp(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function hE(e){const{width:t,height:n}=ev(e);return{width:t,height:n}}function mE(e,t,n){const r=qt(t),o=Jt(t),s=n==="fixed",i=jr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const u=Kt(0);function c(){u.x=ld(o)}if(r||!r&&!s)if((Ao(t)!=="body"||Vs(o))&&(a=Da(t)),r){const p=jr(t,!0,s,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else o&&c();s&&!r&&o&&c();const d=o&&!r&&!s?nv(o,a):Kt(0),f=i.left+a.scrollLeft-u.x-d.x,h=i.top+a.scrollTop-u.y-d.y;return{x:f,y:h,width:i.width,height:i.height}}function _l(e){return Lt(e).position==="static"}function fp(e,t){if(!qt(e)||Lt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Jt(e)===n&&(n=n.ownerDocument.body),n}function ov(e,t){const n=st(e);if(Ma(e))return n;if(!qt(e)){let o=Xn(e);for(;o&&!bo(o);){if(It(o)&&!_l(o))return o;o=Xn(o)}return n}let r=fp(e,t);for(;r&&XS(r)&&_l(r);)r=fp(r,t);return r&&bo(r)&&_l(r)&&!sd(r)?n:r||nE(e)||n}const gE=async function(e){const t=this.getOffsetParent||ov,n=this.getDimensions,r=await n(e.floating);return{reference:mE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vE(e){return Lt(e).direction==="rtl"}const yE={convertOffsetParentRelativeRectToViewportRelativeRect:iE,getDocumentElement:Jt,getClippingRect:pE,getOffsetParent:ov,getElementRects:gE,getClientRects:aE,getDimensions:hE,getScale:ro,isElement:It,isRTL:vE};function sv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xE(e,t){let n=null,r;const o=Jt(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),s();const c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:p}=c;if(a||t(),!h||!p)return;const b=vi(f),x=vi(o.clientWidth-(d+h)),w=vi(o.clientHeight-(f+p)),m=vi(d),y={rootMargin:-b+"px "+-x+"px "+-w+"px "+-m+"px",threshold:tt(0,qn(1,u))||1};let S=!0;function E(C){const j=C[0].intersectionRatio;if(j!==u){if(!S)return i();j?i(!1,j):r=setTimeout(()=>{i(!1,1e-7)},1e3)}j===1&&!sv(c,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(E,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,y)}n.observe(e)}return i(!0),s}function wE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=ad(e),d=o||s?[...c?Ts(c):[],...Ts(t)]:[];d.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const f=c&&a?xE(c,n):null;let h=-1,p=null;i&&(p=new ResizeObserver(m=>{let[g]=m;g&&g.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(t)})),n()}),c&&!u&&p.observe(c),p.observe(t));let b,x=u?jr(e):null;u&&w();function w(){const m=jr(e);x&&!sv(x,m)&&n(),x=m,b=requestAnimationFrame(w)}return n(),()=>{var m;d.forEach(g=>{o&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),f==null||f(),(m=p)==null||m.disconnect(),p=null,u&&cancelAnimationFrame(b)}}const bE=WS,SE=QS,EE=BS,CE=KS,jE=VS,pp=US,NE=GS,TE=(e,t,n)=>{const r=new Map,o={platform:yE,...n},s={...o.platform,_c:r};return $S(e,t,{...o,platform:s})};var kE=typeof document<"u",PE=function(){},Oi=kE?v.useLayoutEffect:PE;function ua(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(!ua(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!ua(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function iv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hp(e,t){const n=iv(e);return Math.round(t*n)/n}function Ol(e){const t=v.useRef(e);return Oi(()=>{t.current=e}),t}function RE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[d,f]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=v.useState(r);ua(h,r)||p(r);const[b,x]=v.useState(null),[w,m]=v.useState(null),g=v.useCallback(T=>{T!==C.current&&(C.current=T,x(T))},[]),y=v.useCallback(T=>{T!==j.current&&(j.current=T,m(T))},[]),S=s||b,E=i||w,C=v.useRef(null),j=v.useRef(null),k=v.useRef(d),O=u!=null,_=Ol(u),$=Ol(o),M=Ol(c),G=v.useCallback(()=>{if(!C.current||!j.current)return;const T={placement:t,strategy:n,middleware:h};$.current&&(T.platform=$.current),TE(C.current,j.current,T).then(P=>{const L={...P,isPositioned:M.current!==!1};I.current&&!ua(k.current,L)&&(k.current=L,$s.flushSync(()=>{f(L)}))})},[h,t,n,$,M]);Oi(()=>{c===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(T=>({...T,isPositioned:!1})))},[c]);const I=v.useRef(!1);Oi(()=>(I.current=!0,()=>{I.current=!1}),[]),Oi(()=>{if(S&&(C.current=S),E&&(j.current=E),S&&E){if(_.current)return _.current(S,E,G);G()}},[S,E,G,_,O]);const K=v.useMemo(()=>({reference:C,floating:j,setReference:g,setFloating:y}),[g,y]),F=v.useMemo(()=>({reference:S,floating:E}),[S,E]),H=v.useMemo(()=>{const T={position:n,left:0,top:0};if(!F.floating)return T;const P=hp(F.floating,d.x),L=hp(F.floating,d.y);return a?{...T,transform:"translate("+P+"px, "+L+"px)",...iv(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:L}},[n,a,F.floating,d.x,d.y]);return v.useMemo(()=>({...d,update:G,refs:K,elements:F,floatingStyles:H}),[d,G,K,F,H])}const AE=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?pp({element:r.current,padding:o}).fn(n):{}:r?pp({element:r,padding:o}).fn(n):{}}}},_E=(e,t)=>({...bE(e),options:[e,t]}),OE=(e,t)=>({...SE(e),options:[e,t]}),IE=(e,t)=>({...NE(e),options:[e,t]}),LE=(e,t)=>({...EE(e),options:[e,t]}),ME=(e,t)=>({...CE(e),options:[e,t]}),DE=(e,t)=>({...jE(e),options:[e,t]}),FE=(e,t)=>({...AE(e),options:[e,t]});var zE="Arrow",av=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsx(ee.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});av.displayName=zE;var $E=av;function lv(e){const[t,n]=v.useState(void 0);return at(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const u=s.borderBoxSize,c=Array.isArray(u)?u[0]:u;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var uv="Popper",[cv,dv]=Dt(uv),[v2,fv]=cv(uv),pv="PopperAnchor",hv=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=fv(pv,n),i=v.useRef(null),a=_e(t,i);return v.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:l.jsx(ee.div,{...o,ref:a})});hv.displayName=pv;var ud="PopperContent",[UE,BE]=cv(ud),mv=v.forwardRef((e,t)=>{var ne,Rr,vn,nr,yn,Ar;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:b,...x}=e,w=fv(ud,n),[m,g]=v.useState(null),y=_e(t,xn=>g(xn)),[S,E]=v.useState(null),C=lv(S),j=(C==null?void 0:C.width)??0,k=(C==null?void 0:C.height)??0,O=r+(s!=="center"?"-"+s:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(c)?c:[c],M=$.length>0,G={padding:_,boundary:$.filter(HE),altBoundary:M},{refs:I,floatingStyles:K,placement:F,isPositioned:H,middlewareData:T}=RE({strategy:"fixed",placement:O,whileElementsMounted:(...xn)=>wE(...xn,{animationFrame:p==="always"}),elements:{reference:w.anchor},middleware:[_E({mainAxis:o+k,alignmentAxis:i}),u&&OE({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?IE():void 0,...G}),u&&LE({...G}),ME({...G,apply:({elements:xn,rects:Gs,availableWidth:Xa,availableHeight:Ks})=>{const{width:Za,height:Oo}=Gs.reference,_r=xn.floating.style;_r.setProperty("--radix-popper-available-width",`${Xa}px`),_r.setProperty("--radix-popper-available-height",`${Ks}px`),_r.setProperty("--radix-popper-anchor-width",`${Za}px`),_r.setProperty("--radix-popper-anchor-height",`${Oo}px`)}}),S&&FE({element:S,padding:a}),WE({arrowWidth:j,arrowHeight:k}),h&&DE({strategy:"referenceHidden",...G})]}),[P,L]=yv(F),W=Yt(b);at(()=>{H&&(W==null||W())},[H,W]);const z=(ne=T.arrow)==null?void 0:ne.x,Y=(Rr=T.arrow)==null?void 0:Rr.y,X=((vn=T.arrow)==null?void 0:vn.centerOffset)!==0,[we,Oe]=v.useState();return at(()=>{m&&Oe(window.getComputedStyle(m).zIndex)},[m]),l.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:H?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,"--radix-popper-transform-origin":[(nr=T.transformOrigin)==null?void 0:nr.x,(yn=T.transformOrigin)==null?void 0:yn.y].join(" "),...((Ar=T.hide)==null?void 0:Ar.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(UE,{scope:n,placedSide:P,onArrowChange:E,arrowX:z,arrowY:Y,shouldHideArrow:X,children:l.jsx(ee.div,{"data-side":P,"data-align":L,...x,ref:y,style:{...x.style,animation:H?void 0:"none"}})})})});mv.displayName=ud;var gv="PopperArrow",VE={top:"bottom",right:"left",bottom:"top",left:"right"},vv=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=BE(gv,r),i=VE[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx($E,{...o,ref:n,style:{...o.style,display:"block"}})})});vv.displayName=gv;function HE(e){return e!==null}var WE=e=>({name:"transformOrigin",options:e,fn(t){var w,m,g;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[c,d]=yv(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,p=(((g=o.arrow)==null?void 0:g.y)??0)+u/2;let b="",x="";return c==="bottom"?(b=i?f:`${h}px`,x=`${-u}px`):c==="top"?(b=i?f:`${h}px`,x=`${r.floating.height+u}px`):c==="right"?(b=`${-u}px`,x=i?f:`${p}px`):c==="left"&&(b=`${r.floating.width+u}px`,x=i?f:`${p}px`),{data:{x:b,y:x}}}});function yv(e){const[t,n="center"]=e.split("-");return[t,n]}var QE=hv,GE=mv,KE=vv,[Fa,y2]=Dt("Tooltip",[dv]),cd=dv(),xv="TooltipProvider",YE=700,mp="tooltip.open",[qE,wv]=Fa(xv),bv=e=>{const{__scopeTooltip:t,delayDuration:n=YE,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=v.useRef(!0),a=v.useRef(!1),u=v.useRef(0);return v.useEffect(()=>{const c=u.current;return()=>window.clearTimeout(c)},[]),l.jsx(qE,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:v.useCallback(c=>{a.current=c},[]),disableHoverableContent:o,children:s})};bv.displayName=xv;var Sv="Tooltip",[x2,za]=Fa(Sv),$u="TooltipTrigger",XE=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=za($u,n),s=wv($u,n),i=cd(n),a=v.useRef(null),u=_e(t,a,o.onTriggerChange),c=v.useRef(!1),d=v.useRef(!1),f=v.useCallback(()=>c.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),l.jsx(QE,{asChild:!0,...i,children:l.jsx(ee.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:u,onPointerMove:Z(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Z(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:Z(e.onBlur,o.onClose),onClick:Z(e.onClick,o.onClose)})})});XE.displayName=$u;var ZE="TooltipPortal",[w2,JE]=Fa(ZE,{forceMount:void 0}),So="TooltipContent",Ev=v.forwardRef((e,t)=>{const n=JE(So,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=za(So,e.__scopeTooltip);return l.jsx(ko,{present:r||i.open,children:i.disableHoverableContent?l.jsx(Cv,{side:o,...s,ref:t}):l.jsx(eC,{side:o,...s,ref:t})})}),eC=v.forwardRef((e,t)=>{const n=za(So,e.__scopeTooltip),r=wv(So,e.__scopeTooltip),o=v.useRef(null),s=_e(t,o),[i,a]=v.useState(null),{trigger:u,onClose:c}=n,d=o.current,{onPointerInTransitChange:f}=r,h=v.useCallback(()=>{a(null),f(!1)},[f]),p=v.useCallback((b,x)=>{const w=b.currentTarget,m={x:b.clientX,y:b.clientY},g=sC(m,w.getBoundingClientRect()),y=iC(m,g),S=aC(x.getBoundingClientRect()),E=uC([...y,...S]);a(E),f(!0)},[f]);return v.useEffect(()=>()=>h(),[h]),v.useEffect(()=>{if(u&&d){const b=w=>p(w,d),x=w=>p(w,u);return u.addEventListener("pointerleave",b),d.addEventListener("pointerleave",x),()=>{u.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",x)}}},[u,d,p,h]),v.useEffect(()=>{if(i){const b=x=>{const w=x.target,m={x:x.clientX,y:x.clientY},g=(u==null?void 0:u.contains(w))||(d==null?void 0:d.contains(w)),y=!lC(m,i);g?h():y&&(h(),c())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[u,d,i,c,h]),l.jsx(Cv,{...e,ref:s})}),[tC,nC]=Fa(Sv,{isInside:!1}),rC=l1("TooltipContent"),Cv=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,u=za(So,n),c=cd(n),{onClose:d}=u;return v.useEffect(()=>(document.addEventListener(mp,d),()=>document.removeEventListener(mp,d)),[d]),v.useEffect(()=>{if(u.trigger){const f=h=>{const p=h.target;p!=null&&p.contains(u.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[u.trigger,d]),l.jsx(Xc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:l.jsxs(GE,{"data-state":u.stateAttribute,...c,...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:[l.jsx(rC,{children:r}),l.jsx(tC,{scope:n,isInside:!0,children:l.jsx(A1,{id:u.contentId,role:"tooltip",children:o||r})})]})})});Ev.displayName=So;var jv="TooltipArrow",oC=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=cd(n);return nC(jv,n).isInside?null:l.jsx(KE,{...o,...r,ref:t})});oC.displayName=jv;function sC(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function iC(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 aC(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 lC(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],u=t[i],c=a.x,d=a.y,f=u.x,h=u.y;d>r!=h>r&&n<(f-c)*(r-d)/(h-d)+c&&(o=!o)}return o}function uC(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),cC(t)}function cC(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 s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.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 s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.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 dC=bv,Nv=Ev;const fC=dC,pC=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(Nv,{ref:r,sideOffset:t,className:ie("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md 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}));pC.displayName=Nv.displayName;var $a=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(){}},Ua=typeof window>"u"||"Deno"in globalThis;function jt(){}function hC(e,t){return typeof e=="function"?e(t):e}function mC(e){return typeof e=="number"&&e>=0&&e!==1/0}function gC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Uu(e,t){return typeof e=="function"?e(t):e}function vC(e,t){return typeof e=="function"?e(t):e}function gp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==dd(i,t.options))return!1}else if(!Ps(t.queryKey,i))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function vp(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ks(t.options.mutationKey)!==ks(s))return!1}else if(!Ps(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function dd(e,t){return((t==null?void 0:t.queryKeyHashFn)||ks)(e)}function ks(e){return JSON.stringify(e,(t,n)=>Bu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ps(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ps(e[n],t[n])):!1}function Tv(e,t){if(e===t)return e;const n=yp(e)&&yp(t);if(n||Bu(e)&&Bu(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{},u=new Set(r);let c=0;for(let d=0;d<i;d++){const f=n?d:s[d];(!n&&u.has(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,c++):(a[f]=Tv(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&c++)}return o===i&&c===o?e:a}return t}function yp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Bu(e){if(!xp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!xp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function xp(e){return Object.prototype.toString.call(e)==="[object Object]"}function yC(e){return new Promise(t=>{setTimeout(t,e)})}function xC(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Tv(e,t):t}function wC(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function bC(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var fd=Symbol();function kv(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===fd?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var cr,An,so,Dp,SC=(Dp=class extends $a{constructor(){super();te(this,cr);te(this,An);te(this,so);B(this,so,t=>{if(!Ua&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,An)||this.setEventListener(N(this,so))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,An))==null||t.call(this),B(this,An,void 0))}setEventListener(t){var n;B(this,so,t),(n=N(this,An))==null||n.call(this),B(this,An,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){N(this,cr)!==t&&(B(this,cr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof N(this,cr)=="boolean"?N(this,cr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},cr=new WeakMap,An=new WeakMap,so=new WeakMap,Dp),Pv=new SC,io,_n,ao,Fp,EC=(Fp=class extends $a{constructor(){super();te(this,io,!0);te(this,_n);te(this,ao);B(this,ao,t=>{if(!Ua&&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(){N(this,_n)||this.setEventListener(N(this,ao))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,_n))==null||t.call(this),B(this,_n,void 0))}setEventListener(t){var n;B(this,ao,t),(n=N(this,_n))==null||n.call(this),B(this,_n,t(this.setOnline.bind(this)))}setOnline(t){N(this,io)!==t&&(B(this,io,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return N(this,io)}},io=new WeakMap,_n=new WeakMap,ao=new WeakMap,Fp),ca=new EC;function CC(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function jC(e){return Math.min(1e3*2**e,3e4)}function Rv(e){return(e??"online")==="online"?ca.isOnline():!0}var Av=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Il(e){return e instanceof Av}function _v(e){let t=!1,n=0,r=!1,o;const s=CC(),i=x=>{var w;r||(h(new Av(x)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},u=()=>{t=!1},c=()=>Pv.isFocused()&&(e.networkMode==="always"||ca.isOnline())&&e.canRun(),d=()=>Rv(e.networkMode)&&e.canRun(),f=x=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,x),o==null||o(),s.resolve(x))},h=x=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,x),o==null||o(),s.reject(x))},p=()=>new Promise(x=>{var w;o=m=>{(r||c())&&x(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var x;o=void 0,r||(x=e.onContinue)==null||x.call(e)}),b=()=>{if(r)return;let x;const w=n===0?e.initialPromise:void 0;try{x=w??e.fn()}catch(m){x=Promise.reject(m)}Promise.resolve(x).then(f).catch(m=>{var C;if(r)return;const g=e.retry??(Ua?0:3),y=e.retryDelay??jC,S=typeof y=="function"?y(n,m):y,E=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,m);if(t||!E){h(m);return}n++,(C=e.onFail)==null||C.call(e,n,m),yC(S).then(()=>c()?void 0:p()).then(()=>{t?h(m):b()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:u,canStart:d,start:()=>(d()?b():p().then(b),s)}}var NC=e=>setTimeout(e,0);function TC(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=NC;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(u=>{n(u)})})})};return{batch:a=>{let u;t++;try{u=a()}finally{t--,t||i()}return u},batchCalls:a=>(...u)=>{s(()=>{a(...u)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ve=TC(),dr,zp,Ov=(zp=class{constructor(){te(this,dr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mC(this.gcTime)&&B(this,dr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ua?1/0:5*60*1e3))}clearGcTimeout(){N(this,dr)&&(clearTimeout(N(this,dr)),B(this,dr,void 0))}},dr=new WeakMap,zp),lo,fr,dt,pr,De,Os,hr,Nt,nn,$p,kC=($p=class extends Ov{constructor(t){super();te(this,Nt);te(this,lo);te(this,fr);te(this,dt);te(this,pr);te(this,De);te(this,Os);te(this,hr);B(this,hr,!1),B(this,Os,t.defaultOptions),this.setOptions(t.options),this.observers=[],B(this,pr,t.client),B(this,dt,N(this,pr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,B(this,lo,RC(this.options)),this.state=t.state??N(this,lo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=N(this,De))==null?void 0:t.promise}setOptions(t){this.options={...N(this,Os),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,dt).remove(this)}setData(t,n){const r=xC(this.state.data,t,this.options);return Ie(this,Nt,nn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ie(this,Nt,nn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=N(this,De))==null?void 0:r.promise;return(o=N(this,De))==null||o.cancel(t),n?n.then(jt).catch(jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,lo))}isActive(){return this.observers.some(t=>vC(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Uu(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!gC(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,De))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,De))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(this,dt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(N(this,De)&&(N(this,hr)?N(this,De).cancel({revert:!0}):N(this,De).cancelRetry()),this.scheduleGc()),N(this,dt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ie(this,Nt,nn).call(this,{type:"invalidate"})}fetch(t,n){var c,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,De))return N(this,De).continueRetry(),N(this,De).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(B(this,hr,!0),r.signal)})},s=()=>{const h=kv(this.options,n),b=(()=>{const x={client:N(this,pr),queryKey:this.queryKey,meta:this.meta};return o(x),x})();return B(this,hr,!1),this.options.persister?this.options.persister(h,b,this):h(b)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:N(this,pr),state:this.state,fetchFn:s};return o(h),h})();(c=this.options.behavior)==null||c.onFetch(a,this),B(this,fr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&Ie(this,Nt,nn).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const u=h=>{var p,b,x,w;Il(h)&&h.silent||Ie(this,Nt,nn).call(this,{type:"error",error:h}),Il(h)||((b=(p=N(this,dt).config).onError)==null||b.call(p,h,this),(w=(x=N(this,dt).config).onSettled)==null||w.call(x,this.state.data,h,this)),this.scheduleGc()};return B(this,De,_v({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var p,b,x,w;if(h===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(m){u(m);return}(b=(p=N(this,dt).config).onSuccess)==null||b.call(p,h,this),(w=(x=N(this,dt).config).onSettled)==null||w.call(x,h,this.state.error,this),this.scheduleGc()},onError:u,onFail:(h,p)=>{Ie(this,Nt,nn).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{Ie(this,Nt,nn).call(this,{type:"pause"})},onContinue:()=>{Ie(this,Nt,nn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),N(this,De).start()}},lo=new WeakMap,fr=new WeakMap,dt=new WeakMap,pr=new WeakMap,De=new WeakMap,Os=new WeakMap,hr=new WeakMap,Nt=new WeakSet,nn=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,...PC(r.data,this.options),fetchMeta:t.meta??null};case"success":return B(this,fr,void 0),{...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 Il(o)&&o.revert&&N(this,fr)?{...N(this,fr),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),Ve.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,dt).notify({query:this,type:"updated",action:t})})},$p);function PC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Rv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function RC(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 Ut,Up,AC=(Up=class extends $a{constructor(t={}){super();te(this,Ut);this.config=t,B(this,Ut,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??dd(o,n);let i=this.get(s);return i||(i=new kC({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){N(this,Ut).has(t.queryHash)||(N(this,Ut).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=N(this,Ut).get(t.queryHash);n&&(t.destroy(),n===t&&N(this,Ut).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ve.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,Ut).get(t)}getAll(){return[...N(this,Ut).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>gp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>gp(t,r)):n}notify(t){Ve.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ve.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ve.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ut=new WeakMap,Up),Bt,Ue,mr,Vt,Nn,Bp,_C=(Bp=class extends Ov{constructor(t){super();te(this,Vt);te(this,Bt);te(this,Ue);te(this,mr);this.mutationId=t.mutationId,B(this,Ue,t.mutationCache),B(this,Bt,[]),this.state=t.state||OC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,Bt).includes(t)||(N(this,Bt).push(t),this.clearGcTimeout(),N(this,Ue).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){B(this,Bt,N(this,Bt).filter(n=>n!==t)),this.scheduleGc(),N(this,Ue).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,Bt).length||(this.state.status==="pending"?this.scheduleGc():N(this,Ue).remove(this))}continue(){var t;return((t=N(this,mr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,u,c,d,f,h,p,b,x,w,m,g,y,S,E,C,j,k;const n=()=>{Ie(this,Vt,Nn).call(this,{type:"continue"})};B(this,mr,_v({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,_)=>{Ie(this,Vt,Nn).call(this,{type:"failed",failureCount:O,error:_})},onPause:()=>{Ie(this,Vt,Nn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,Ue).canRun(this)}));const r=this.state.status==="pending",o=!N(this,mr).canStart();try{if(r)n();else{Ie(this,Vt,Nn).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=N(this,Ue).config).onMutate)==null?void 0:i.call(s,t,this));const _=await((u=(a=this.options).onMutate)==null?void 0:u.call(a,t));_!==this.state.context&&Ie(this,Vt,Nn).call(this,{type:"pending",context:_,variables:t,isPaused:o})}const O=await N(this,mr).start();return await((d=(c=N(this,Ue).config).onSuccess)==null?void 0:d.call(c,O,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,O,t,this.state.context)),await((b=(p=N(this,Ue).config).onSettled)==null?void 0:b.call(p,O,null,this.state.variables,this.state.context,this)),await((w=(x=this.options).onSettled)==null?void 0:w.call(x,O,null,t,this.state.context)),Ie(this,Vt,Nn).call(this,{type:"success",data:O}),O}catch(O){try{throw await((g=(m=N(this,Ue).config).onError)==null?void 0:g.call(m,O,t,this.state.context,this)),await((S=(y=this.options).onError)==null?void 0:S.call(y,O,t,this.state.context)),await((C=(E=N(this,Ue).config).onSettled)==null?void 0:C.call(E,void 0,O,this.state.variables,this.state.context,this)),await((k=(j=this.options).onSettled)==null?void 0:k.call(j,void 0,O,t,this.state.context)),O}finally{Ie(this,Vt,Nn).call(this,{type:"error",error:O})}}finally{N(this,Ue).runNext(this)}}},Bt=new WeakMap,Ue=new WeakMap,mr=new WeakMap,Vt=new WeakSet,Nn=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),Ve.batch(()=>{N(this,Bt).forEach(r=>{r.onMutationUpdate(t)}),N(this,Ue).notify({mutation:this,type:"updated",action:t})})},Bp);function OC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var sn,Tt,Is,Vp,IC=(Vp=class extends $a{constructor(t={}){super();te(this,sn);te(this,Tt);te(this,Is);this.config=t,B(this,sn,new Set),B(this,Tt,new Map),B(this,Is,0)}build(t,n,r){const o=new _C({mutationCache:this,mutationId:++qs(this,Is)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){N(this,sn).add(t);const n=yi(t);if(typeof n=="string"){const r=N(this,Tt).get(n);r?r.push(t):N(this,Tt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(N(this,sn).delete(t)){const n=yi(t);if(typeof n=="string"){const r=N(this,Tt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&N(this,Tt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=yi(t);if(typeof n=="string"){const r=N(this,Tt).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=yi(t);if(typeof n=="string"){const o=(r=N(this,Tt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ve.batch(()=>{N(this,sn).forEach(t=>{this.notify({type:"removed",mutation:t})}),N(this,sn).clear(),N(this,Tt).clear()})}getAll(){return Array.from(N(this,sn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>vp(n,r))}findAll(t={}){return this.getAll().filter(n=>vp(t,n))}notify(t){Ve.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ve.batch(()=>Promise.all(t.map(n=>n.continue().catch(jt))))}},sn=new WeakMap,Tt=new WeakMap,Is=new WeakMap,Vp);function yi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function wp(e){return{onFetch:(t,n)=>{var d,f,h,p,b;const r=t.options,o=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,s=((p=t.state.data)==null?void 0:p.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},u=0;const c=async()=>{let x=!1;const w=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?x=!0:t.signal.addEventListener("abort",()=>{x=!0}),t.signal)})},m=kv(t.options,t.fetchOptions),g=async(y,S,E)=>{if(x)return Promise.reject();if(S==null&&y.pages.length)return Promise.resolve(y);const j=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return w($),$})(),k=await m(j),{maxPages:O}=t.options,_=E?bC:wC;return{pages:_(y.pages,k,O),pageParams:_(y.pageParams,S,O)}};if(o&&s.length){const y=o==="backward",S=y?LC:bp,E={pages:s,pageParams:i},C=S(r,E);a=await g(E,C,y)}else{const y=e??s.length;do{const S=u===0?i[0]??r.initialPageParam:bp(r,a);if(u>0&&S==null)break;a=await g(a,S),u++}while(u<y)}return a};t.options.persister?t.fetchFn=()=>{var x,w;return(w=(x=t.options).persister)==null?void 0:w.call(x,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function bp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function LC(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ve,On,In,uo,co,Ln,fo,po,Hp,MC=(Hp=class{constructor(e={}){te(this,ve);te(this,On);te(this,In);te(this,uo);te(this,co);te(this,Ln);te(this,fo);te(this,po);B(this,ve,e.queryCache||new AC),B(this,On,e.mutationCache||new IC),B(this,In,e.defaultOptions||{}),B(this,uo,new Map),B(this,co,new Map),B(this,Ln,0)}mount(){qs(this,Ln)._++,N(this,Ln)===1&&(B(this,fo,Pv.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,ve).onFocus())})),B(this,po,ca.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,ve).onOnline())})))}unmount(){var e,t;qs(this,Ln)._--,N(this,Ln)===0&&((e=N(this,fo))==null||e.call(this),B(this,fo,void 0),(t=N(this,po))==null||t.call(this),B(this,po,void 0))}isFetching(e){return N(this,ve).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,On).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,ve).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=N(this,ve).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Uu(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return N(this,ve).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=N(this,ve).get(r.queryHash),s=o==null?void 0:o.state.data,i=hC(t,s);if(i!==void 0)return N(this,ve).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ve.batch(()=>N(this,ve).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,ve).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=N(this,ve);Ve.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=N(this,ve);return Ve.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ve.batch(()=>N(this,ve).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(jt).catch(jt)}invalidateQueries(e,t={}){return Ve.batch(()=>(N(this,ve).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ve.batch(()=>N(this,ve).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(jt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=N(this,ve).build(this,t);return n.isStaleByTime(Uu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(jt).catch(jt)}fetchInfiniteQuery(e){return e.behavior=wp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jt).catch(jt)}ensureInfiniteQueryData(e){return e.behavior=wp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ca.isOnline()?N(this,On).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,ve)}getMutationCache(){return N(this,On)}getDefaultOptions(){return N(this,In)}setDefaultOptions(e){B(this,In,e)}setQueryDefaults(e,t){N(this,uo).set(ks(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,uo).values()],n={};return t.forEach(r=>{Ps(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){N(this,co).set(ks(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,co).values()],n={};return t.forEach(r=>{Ps(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...N(this,In).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=dd(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===fd&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,In).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,ve).clear(),N(this,On).clear()}},ve=new WeakMap,On=new WeakMap,In=new WeakMap,uo=new WeakMap,co=new WeakMap,Ln=new WeakMap,fo=new WeakMap,po=new WeakMap,Hp),DC=v.createContext(void 0),FC=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(DC.Provider,{value:e,children:t}));/**
 * @remix-run/router v1.23.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 Rs(){return Rs=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},Rs.apply(this,arguments)}var Fn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Fn||(Fn={}));const Sp="popstate";function zC(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:i,hash:a}=r.location;return Vu("",{pathname:s,search:i,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:da(o)}return UC(t,n,null,e)}function Se(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Iv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function $C(){return Math.random().toString(36).substr(2,8)}function Ep(e,t){return{usr:e.state,key:e.key,idx:t}}function Vu(e,t,n,r){return n===void 0&&(n=null),Rs({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_o(t):t,{state:n,key:t&&t.key||r||$C()})}function da(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 _o(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 UC(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=Fn.Pop,u=null,c=d();c==null&&(c=0,i.replaceState(Rs({},i.state,{idx:c}),""));function d(){return(i.state||{idx:null}).idx}function f(){a=Fn.Pop;let w=d(),m=w==null?null:w-c;c=w,u&&u({action:a,location:x.location,delta:m})}function h(w,m){a=Fn.Push;let g=Vu(x.location,w,m);c=d()+1;let y=Ep(g,c),S=x.createHref(g);try{i.pushState(y,"",S)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(S)}s&&u&&u({action:a,location:x.location,delta:1})}function p(w,m){a=Fn.Replace;let g=Vu(x.location,w,m);c=d();let y=Ep(g,c),S=x.createHref(g);i.replaceState(y,"",S),s&&u&&u({action:a,location:x.location,delta:0})}function b(w){let m=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof w=="string"?w:da(w);return g=g.replace(/ $/,"%20"),Se(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let x={get action(){return a},get location(){return e(o,i)},listen(w){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(Sp,f),u=w,()=>{o.removeEventListener(Sp,f),u=null}},createHref(w){return t(o,w)},createURL:b,encodeLocation(w){let m=b(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:p,go(w){return i.go(w)}};return x}var Cp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Cp||(Cp={}));function BC(e,t,n){return n===void 0&&(n="/"),VC(e,t,n,!1)}function VC(e,t,n,r){let o=typeof t=="string"?_o(t):t,s=pd(o.pathname||"/",n);if(s==null)return null;let i=Lv(e);HC(i);let a=null;for(let u=0;a==null&&u<i.length;++u){let c=tj(s);a=JC(i[u],c,r)}return a}function Lv(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,i,a)=>{let u={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};u.relativePath.startsWith("/")&&(Se(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=Gn([r,u.relativePath]),d=n.concat(u);s.children&&s.children.length>0&&(Se(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+')),Lv(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:XC(c,s.index),routesMeta:d})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let u of Mv(s.path))o(s,i,u)}),t}function Mv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=Mv(r.join("/")),a=[];return a.push(...i.map(u=>u===""?s:[s,u].join("/"))),o&&a.push(...i),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function HC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ZC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const WC=/^:[\w-]+$/,QC=3,GC=2,KC=1,YC=10,qC=-2,jp=e=>e==="*";function XC(e,t){let n=e.split("/"),r=n.length;return n.some(jp)&&(r+=qC),t&&(r+=GC),n.filter(o=>!jp(o)).reduce((o,s)=>o+(WC.test(s)?QC:s===""?KC:YC),r)}function ZC(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 JC(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a<r.length;++a){let u=r[a],c=a===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",f=Np({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},d),h=u.route;if(!f&&c&&n&&!r[r.length-1].route.index&&(f=Np({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),i.push({params:o,pathname:Gn([s,f.pathname]),pathnameBase:sj(Gn([s,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(s=Gn([s,f.pathnameBase]))}return i}function Np(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ej(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((c,d,f)=>{let{paramName:h,isOptional:p}=d;if(h==="*"){let x=a[f]||"";i=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const b=a[f];return p&&!b?c[h]=void 0:c[h]=(b||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:i,pattern:e}}function ej(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Iv(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,(i,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\,"/"),ij=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,aj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function lj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const zv=["post","put","patch","delete"];new Set(zv);const uj=["get",...zv];new Set(uj);/**
 * React Router v6.30.1
 *
 * 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 As(){return As=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},As.apply(this,arguments)}const hd=v.createContext(null),cj=v.createContext(null),Pr=v.createContext(null),Ba=v.createContext(null),tr=v.createContext({outlet:null,matches:[],isDataRoute:!1}),$v=v.createContext(null);function dj(e,t){let{relative:n}=t===void 0?{}:t;Hs()||Se(!1);let{basename:r,navigator:o}=v.useContext(Pr),{hash:s,pathname:i,search:a}=Bv(e,{relative:n}),u=i;return r!=="/"&&(u=i==="/"?r:Gn([r,i])),o.createHref({pathname:u,search:a,hash:s})}function Hs(){return v.useContext(Ba)!=null}function Ws(){return Hs()||Se(!1),v.useContext(Ba).location}function Uv(e){v.useContext(Pr).static||v.useLayoutEffect(e)}function fj(){let{isDataRoute:e}=v.useContext(tr);return e?Nj():pj()}function pj(){Hs()||Se(!1);let e=v.useContext(hd),{basename:t,future:n,navigator:r}=v.useContext(Pr),{matches:o}=v.useContext(tr),{pathname:s}=Ws(),i=JSON.stringify(Dv(o,n.v7_relativeSplatPath)),a=v.useRef(!1);return Uv(()=>{a.current=!0}),v.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=Fv(c,JSON.parse(i),s,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Gn([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,s,e])}function hj(){let{matches:e}=v.useContext(tr),t=e[e.length-1];return t?t.params:{}}function Bv(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(Pr),{matches:o}=v.useContext(tr),{pathname:s}=Ws(),i=JSON.stringify(Dv(o,r.v7_relativeSplatPath));return v.useMemo(()=>Fv(e,JSON.parse(i),s,n==="path"),[e,i,s,n])}function mj(e,t){return gj(e,t)}function gj(e,t,n,r){Hs()||Se(!1);let{navigator:o}=v.useContext(Pr),{matches:s}=v.useContext(tr),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let c=Ws(),d;if(t){var f;let w=typeof t=="string"?_o(t):t;u==="/"||(f=w.pathname)!=null&&f.startsWith(u)||Se(!1),d=w}else d=c;let h=d.pathname||"/",p=h;if(u!=="/"){let w=u.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let b=BC(e,{pathname:p}),x=bj(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:Gn([u,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?u:Gn([u,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&x?v.createElement(Ba.Provider,{value:{location:As({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Fn.Pop}},x):x}function vj(){let e=jj(),t=lj(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 v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,null)}const yj=v.createElement(vj,null);class xj extends v.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?v.createElement(tr.Provider,{value:this.props.routeContext},v.createElement($v.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function wj(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(hd);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(tr.Provider,{value:t},r)}function bj(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Se(!1),i=i.slice(0,Math.min(i.length,d+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:h,errors:p}=n,b=f.route.loader&&h[f.route.id]===void 0&&(!p||p[f.route.id]===void 0);if(f.route.lazy||b){u=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,f,h)=>{let p,b=!1,x=null,w=null;n&&(p=a&&f.route.id?a[f.route.id]:void 0,x=f.route.errorElement||yj,u&&(c<0&&h===0?(b=!0,w=null):c===h&&(b=!0,w=f.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,h+1)),g=()=>{let y;return p?y=x:b?y=w:f.route.Component?y=v.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,v.createElement(wj,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?v.createElement(xj,{location:n.location,revalidation:n.revalidation,component:x,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var Vv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vv||{}),fa=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}(fa||{});function Sj(e){let t=v.useContext(hd);return t||Se(!1),t}function Ej(e){let t=v.useContext(cj);return t||Se(!1),t}function Cj(e){let t=v.useContext(tr);return t||Se(!1),t}function Hv(e){let t=Cj(),n=t.matches[t.matches.length-1];return n.route.id||Se(!1),n.route.id}function jj(){var e;let t=v.useContext($v),n=Ej(fa.UseRouteError),r=Hv(fa.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Nj(){let{router:e}=Sj(Vv.UseNavigateStable),t=Hv(fa.UseNavigateStable),n=v.useRef(!1);return Uv(()=>{n.current=!0}),v.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,As({fromRouteId:t},s)))},[e,t])}function Tj(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Et(e){Se(!1)}function kj(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Fn.Pop,navigator:s,static:i=!1,future:a}=e;Hs()&&Se(!1);let u=t.replace(/^\/*/,"/"),c=v.useMemo(()=>({basename:u,navigator:s,static:i,future:As({v7_relativeSplatPath:!1},a)}),[u,a,s,i]);typeof r=="string"&&(r=_o(r));let{pathname:d="/",search:f="",hash:h="",state:p=null,key:b="default"}=r,x=v.useMemo(()=>{let w=pd(d,u);return w==null?null:{location:{pathname:w,search:f,hash:h,state:p,key:b},navigationType:o}},[u,d,f,h,p,b,o]);return x==null?null:v.createElement(Pr.Provider,{value:c},v.createElement(Ba.Provider,{children:n,value:x}))}function Pj(e){let{children:t,location:n}=e;return mj(Hu(t),n)}new Promise(()=>{});function Hu(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let s=[...t,o];if(r.type===v.Fragment){n.push.apply(n,Hu(r.props.children,s));return}r.type!==Et&&Se(!1),!r.props.index||!r.props.children||Se(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Hu(r.props.children,s)),n.push(i)}),n}/**
 * React Router DOM v6.30.1
 *
 * 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 Wu(){return Wu=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},Wu.apply(this,arguments)}function Rj(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Aj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _j(e,t){return e.button===0&&(!t||t==="_self")&&!Aj(e)}const Oj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ij="6";try{window.__reactRouterVersion=Ij}catch{}const Lj="startTransition",Tp=sc[Lj];function Mj(e){let{basename:t,children:n,future:r,window:o}=e,s=v.useRef();s.current==null&&(s.current=zC({window:o,v5Compat:!0}));let i=s.current,[a,u]=v.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},d=v.useCallback(f=>{c&&Tp?Tp(()=>u(f)):u(f)},[u,c]);return v.useLayoutEffect(()=>i.listen(d),[i,d]),v.useEffect(()=>Tj(r),[r]),v.createElement(kj,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const Dj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Fj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fe=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:a,target:u,to:c,preventScrollReset:d,viewTransition:f}=t,h=Rj(t,Oj),{basename:p}=v.useContext(Pr),b,x=!1;if(typeof c=="string"&&Fj.test(c)&&(b=c,Dj))try{let y=new URL(window.location.href),S=c.startsWith("//")?new URL(y.protocol+c):new URL(c),E=pd(S.pathname,p);S.origin===y.origin&&E!=null?c=E+S.search+S.hash:x=!0}catch{}let w=dj(c,{relative:o}),m=zj(c,{replace:i,state:a,target:u,preventScrollReset:d,relative:o,viewTransition:f});function g(y){r&&r(y),y.defaultPrevented||m(y)}return v.createElement("a",Wu({},h,{href:b||w,onClick:x||s?r:g,ref:n,target:u}))});var kp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(kp||(kp={}));var Pp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Pp||(Pp={}));function zj(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i,viewTransition:a}=t===void 0?{}:t,u=fj(),c=Ws(),d=Bv(e,{relative:i});return v.useCallback(f=>{if(_j(f,n)){f.preventDefault();let h=r!==void 0?r:da(c)===da(d);u(e,{replace:h,state:o,preventScrollReset:s,relative:i,viewTransition:a})}},[c,u,d,r,o,n,e,s,i,a])}var Wv={exports:{}},$j="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Uj=$j,Bj=Uj;function Qv(){}function Gv(){}Gv.resetWarningCache=Qv;var Vj=function(){function e(r,o,s,i,a,u){if(u!==Bj){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Gv,resetWarningCache:Qv};return n.PropTypes=n,n};Wv.exports=Vj();var Hj=Wv.exports;const de=Co(Hj);function Wj(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Kv=v,Qj=Wj(Kv);function Rp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gj(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Kj=!!(typeof window<"u"&&window.document&&window.document.createElement);function Yj(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(s){if(typeof s!="function")throw new Error("Expected WrappedComponent to be a React component.");var i=[],a;function u(){a=e(i.map(function(d){return d.props})),c.canUseDOM?t(a):n&&(a=n(a))}var c=function(d){Gj(f,d);function f(){return d.apply(this,arguments)||this}f.peek=function(){return a},f.rewind=function(){if(f.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var b=a;return a=void 0,i=[],b};var h=f.prototype;return h.UNSAFE_componentWillMount=function(){i.push(this),u()},h.componentDidUpdate=function(){u()},h.componentWillUnmount=function(){var b=i.indexOf(this);i.splice(b,1),u()},h.render=function(){return Qj.createElement(s,this.props)},f}(Kv.PureComponent);return Rp(c,"displayName","SideEffect("+r(s)+")"),Rp(c,"canUseDOM",Kj),c}}var qj=Yj;const Xj=Co(qj);var Zj=typeof Element<"u",Jj=typeof Map=="function",eN=typeof Set=="function",tN=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ii(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ii(e[r],t[r]))return!1;return!0}var s;if(Jj&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!Ii(r.value[1],t.get(r.value[0])))return!1;return!0}if(eN&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(tN&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Zj&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Ii(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var nN=function(t,n){try{return Ii(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const rN=Co(nN);var Ap=Object.getOwnPropertySymbols,oN=Object.prototype.hasOwnProperty,sN=Object.prototype.propertyIsEnumerable;function iN(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function aN(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(s){o[s]=s}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var lN=aN()?Object.assign:function(e,t){for(var n,r=iN(e),o,s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var i in n)oN.call(n,i)&&(r[i]=n[i]);if(Ap){o=Ap(n);for(var a=0;a<o.length;a++)sN.call(n,o[a])&&(r[o[a]]=n[o[a]])}}return r};const uN=Co(lN);var yr={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},V={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(V).map(function(e){return V[e]});var fe={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},pa={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},_s={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},cN=Object.keys(pa).reduce(function(e,t){return e[pa[t]]=t,e},{}),dN=[V.NOSCRIPT,V.SCRIPT,V.STYLE],Rt="data-react-helmet",fN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pN=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},hN=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Ge=Object.assign||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},mN=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},_p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},gN=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Qu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},vN=function(t){var n=oo(t,V.TITLE),r=oo(t,_s.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=oo(t,_s.DEFAULT_TITLE);return n||o||void 0},yN=function(t){return oo(t,_s.ON_CHANGE_CLIENT_STATE)||function(){}},Ml=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return Ge({},r,o)},{})},xN=function(t,n){return n.filter(function(r){return typeof r[V.BASE]<"u"}).map(function(r){return r[V.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var s=Object.keys(o),i=0;i<s.length;i++){var a=s[i],u=a.toLowerCase();if(t.indexOf(u)!==-1&&o[u])return r.concat(o)}return r},[])},Wo=function(t,n,r){var o={};return r.filter(function(s){return Array.isArray(s[t])?!0:(typeof s[t]<"u"&&EN("Helmet: "+t+' should be of type "Array". Instead found type "'+fN(s[t])+'"'),!1)}).map(function(s){return s[t]}).reverse().reduce(function(s,i){var a={};i.filter(function(h){for(var p=void 0,b=Object.keys(h),x=0;x<b.length;x++){var w=b[x],m=w.toLowerCase();n.indexOf(m)!==-1&&!(p===fe.REL&&h[p].toLowerCase()==="canonical")&&!(m===fe.REL&&h[m].toLowerCase()==="stylesheet")&&(p=m),n.indexOf(w)!==-1&&(w===fe.INNER_HTML||w===fe.CSS_TEXT||w===fe.ITEM_PROP)&&(p=w)}if(!p||!h[p])return!1;var g=h[p].toLowerCase();return o[p]||(o[p]={}),a[p]||(a[p]={}),o[p][g]?!1:(a[p][g]=!0,!0)}).reverse().forEach(function(h){return s.push(h)});for(var u=Object.keys(a),c=0;c<u.length;c++){var d=u[c],f=uN({},o[d],a[d]);o[d]=f}return s},[]).reverse()},oo=function(t,n){for(var r=t.length-1;r>=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},wN=function(t){return{baseTag:xN([fe.HREF,fe.TARGET],t),bodyAttributes:Ml(yr.BODY,t),defer:oo(t,_s.DEFER),encode:oo(t,_s.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Ml(yr.HTML,t),linkTags:Wo(V.LINK,[fe.REL,fe.HREF],t),metaTags:Wo(V.META,[fe.NAME,fe.CHARSET,fe.HTTPEQUIV,fe.PROPERTY,fe.ITEM_PROP],t),noscriptTags:Wo(V.NOSCRIPT,[fe.INNER_HTML],t),onChangeClientState:yN(t),scriptTags:Wo(V.SCRIPT,[fe.SRC,fe.INNER_HTML],t),styleTags:Wo(V.STYLE,[fe.CSS_TEXT],t),title:vN(t),titleAttributes:Ml(yr.TITLE,t)}},Gu=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Gu(t)},0)}}(),Op=function(t){return clearTimeout(t)},bN=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Gu:global.requestAnimationFrame||Gu,SN=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Op:global.cancelAnimationFrame||Op,EN=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Qo=null,CN=function(t){Qo&&SN(Qo),t.defer?Qo=bN(function(){Ip(t,function(){Qo=null})}):(Ip(t),Qo=null)},Ip=function(t,n){var r=t.baseTag,o=t.bodyAttributes,s=t.htmlAttributes,i=t.linkTags,a=t.metaTags,u=t.noscriptTags,c=t.onChangeClientState,d=t.scriptTags,f=t.styleTags,h=t.title,p=t.titleAttributes;Ku(V.BODY,o),Ku(V.HTML,s),jN(h,p);var b={baseTag:Dr(V.BASE,r),linkTags:Dr(V.LINK,i),metaTags:Dr(V.META,a),noscriptTags:Dr(V.NOSCRIPT,u),scriptTags:Dr(V.SCRIPT,d),styleTags:Dr(V.STYLE,f)},x={},w={};Object.keys(b).forEach(function(m){var g=b[m],y=g.newTags,S=g.oldTags;y.length&&(x[m]=y),S.length&&(w[m]=b[m].oldTags)}),n&&n(),c(t,x,w)},Yv=function(t){return Array.isArray(t)?t.join(""):t},jN=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=Yv(t)),Ku(V.TITLE,n)},Ku=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(Rt),s=o?o.split(","):[],i=[].concat(s),a=Object.keys(n),u=0;u<a.length;u++){var c=a[u],d=n[c]||"";r.getAttribute(c)!==d&&r.setAttribute(c,d),s.indexOf(c)===-1&&s.push(c);var f=i.indexOf(c);f!==-1&&i.splice(f,1)}for(var h=i.length-1;h>=0;h--)r.removeAttribute(i[h]);s.length===i.length?r.removeAttribute(Rt):r.getAttribute(Rt)!==a.join(",")&&r.setAttribute(Rt,a.join(","))}},Dr=function(t,n){var r=document.head||document.querySelector(V.HEAD),o=r.querySelectorAll(t+"["+Rt+"]"),s=Array.prototype.slice.call(o),i=[],a=void 0;return n&&n.length&&n.forEach(function(u){var c=document.createElement(t);for(var d in u)if(u.hasOwnProperty(d))if(d===fe.INNER_HTML)c.innerHTML=u.innerHTML;else if(d===fe.CSS_TEXT)c.styleSheet?c.styleSheet.cssText=u.cssText:c.appendChild(document.createTextNode(u.cssText));else{var f=typeof u[d]>"u"?"":u[d];c.setAttribute(d,f)}c.setAttribute(Rt,"true"),s.some(function(h,p){return a=p,c.isEqualNode(h)})?s.splice(a,1):i.push(c)}),s.forEach(function(u){return u.parentNode.removeChild(u)}),i.forEach(function(u){return r.appendChild(u)}),{oldTags:s,newTags:i}},qv=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},NN=function(t,n,r,o){var s=qv(r),i=Yv(n);return s?"<"+t+" "+Rt+'="true" '+s+">"+Qu(i,o)+"</"+t+">":"<"+t+" "+Rt+'="true">'+Qu(i,o)+"</"+t+">"},TN=function(t,n,r){return n.reduce(function(o,s){var i=Object.keys(s).filter(function(c){return!(c===fe.INNER_HTML||c===fe.CSS_TEXT)}).reduce(function(c,d){var f=typeof s[d]>"u"?d:d+'="'+Qu(s[d],r)+'"';return c?c+" "+f:f},""),a=s.innerHTML||s.cssText||"",u=dN.indexOf(t)===-1;return o+"<"+t+" "+Rt+'="true" '+i+(u?"/>":">"+a+"</"+t+">")},"")},Xv=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[pa[o]||o]=t[o],r},n)},kN=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[cN[o]||o]=t[o],r},n)},PN=function(t,n,r){var o,s=(o={key:n},o[Rt]=!0,o),i=Xv(r,s);return[R.createElement(V.TITLE,i,n)]},RN=function(t,n){return n.map(function(r,o){var s,i=(s={key:o},s[Rt]=!0,s);return Object.keys(r).forEach(function(a){var u=pa[a]||a;if(u===fe.INNER_HTML||u===fe.CSS_TEXT){var c=r.innerHTML||r.cssText;i.dangerouslySetInnerHTML={__html:c}}else i[u]=r[a]}),R.createElement(t,i)})},tn=function(t,n,r){switch(t){case V.TITLE:return{toComponent:function(){return PN(t,n.title,n.titleAttributes)},toString:function(){return NN(t,n.title,n.titleAttributes,r)}};case yr.BODY:case yr.HTML:return{toComponent:function(){return Xv(n)},toString:function(){return qv(n)}};default:return{toComponent:function(){return RN(t,n)},toString:function(){return TN(t,n,r)}}}},Zv=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,s=t.htmlAttributes,i=t.linkTags,a=t.metaTags,u=t.noscriptTags,c=t.scriptTags,d=t.styleTags,f=t.title,h=f===void 0?"":f,p=t.titleAttributes;return{base:tn(V.BASE,n,o),bodyAttributes:tn(yr.BODY,r,o),htmlAttributes:tn(yr.HTML,s,o),link:tn(V.LINK,i,o),meta:tn(V.META,a,o),noscript:tn(V.NOSCRIPT,u,o),script:tn(V.SCRIPT,c,o),style:tn(V.STYLE,d,o),title:tn(V.TITLE,{title:h,titleAttributes:p},o)}},AN=function(t){var n,r;return r=n=function(o){mN(s,o);function s(){return pN(this,s),gN(this,o.apply(this,arguments))}return s.prototype.shouldComponentUpdate=function(a){return!rN(this.props,a)},s.prototype.mapNestedChildrenToProps=function(a,u){if(!u)return null;switch(a.type){case V.SCRIPT:case V.NOSCRIPT:return{innerHTML:u};case V.STYLE:return{cssText:u}}throw new Error("<"+a.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},s.prototype.flattenArrayTypeChildren=function(a){var u,c=a.child,d=a.arrayTypeChildren,f=a.newChildProps,h=a.nestedChildren;return Ge({},d,(u={},u[c.type]=[].concat(d[c.type]||[],[Ge({},f,this.mapNestedChildrenToProps(c,h))]),u))},s.prototype.mapObjectTypeChildren=function(a){var u,c,d=a.child,f=a.newProps,h=a.newChildProps,p=a.nestedChildren;switch(d.type){case V.TITLE:return Ge({},f,(u={},u[d.type]=p,u.titleAttributes=Ge({},h),u));case V.BODY:return Ge({},f,{bodyAttributes:Ge({},h)});case V.HTML:return Ge({},f,{htmlAttributes:Ge({},h)})}return Ge({},f,(c={},c[d.type]=Ge({},h),c))},s.prototype.mapArrayTypeChildrenToProps=function(a,u){var c=Ge({},u);return Object.keys(a).forEach(function(d){var f;c=Ge({},c,(f={},f[d]=a[d],f))}),c},s.prototype.warnOnInvalidChildren=function(a,u){return!0},s.prototype.mapChildrenToProps=function(a,u){var c=this,d={};return R.Children.forEach(a,function(f){if(!(!f||!f.props)){var h=f.props,p=h.children,b=_p(h,["children"]),x=kN(b);switch(c.warnOnInvalidChildren(f,p),f.type){case V.LINK:case V.META:case V.NOSCRIPT:case V.SCRIPT:case V.STYLE:d=c.flattenArrayTypeChildren({child:f,arrayTypeChildren:d,newChildProps:x,nestedChildren:p});break;default:u=c.mapObjectTypeChildren({child:f,newProps:u,newChildProps:x,nestedChildren:p});break}}}),u=this.mapArrayTypeChildrenToProps(d,u),u},s.prototype.render=function(){var a=this.props,u=a.children,c=_p(a,["children"]),d=Ge({},c);return u&&(d=this.mapChildrenToProps(u,d)),R.createElement(t,d)},hN(s,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),s}(R.Component),n.propTypes={base:de.object,bodyAttributes:de.object,children:de.oneOfType([de.arrayOf(de.node),de.node]),defaultTitle:de.string,defer:de.bool,encodeSpecialCharacters:de.bool,htmlAttributes:de.object,link:de.arrayOf(de.object),meta:de.arrayOf(de.object),noscript:de.arrayOf(de.object),onChangeClientState:de.func,script:de.arrayOf(de.object),style:de.arrayOf(de.object),title:de.string,titleAttributes:de.object,titleTemplate:de.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=Zv({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},_N=function(){return null},ON=Xj(wN,CN,Zv)(_N),Mt=AN(ON);Mt.renderStatic=Mt.rewind;const IN=Bs("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-semibold transition-smooth focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary-hover active:bg-primary-active",outline:"border border-primary bg-transparent text-primary hover:bg-primary/10",ghost:"hover:bg-surface text-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-11 px-6 py-3",sm:"h-9 px-4 text-xs",lg:"h-14 px-8 text-base",icon:"h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}}),Pe=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?i1:"button";return l.jsx(i,{className:ie(IN({variant:t,size:n,className:e})),ref:s,...o})});Pe.displayName="Button";const Xt=()=>{const[e,t]=v.useState(!1),n=[{href:"/",label:"Главная"},{href:"/shop",label:"Магазин"},{href:"/faq",label:"FAQ"},{href:"/reviews",label:"Отзывы"},{href:"/about",label:"О нас"}];return l.jsx("nav",{className:"sticky top-0 z-50 bg-surface border-b border-border",children:l.jsxs("div",{className:"container mx-auto px-4 py-4",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs(Fe,{to:"/",className:"flex items-center gap-2 text-xl font-bold",children:[l.jsx(Lg,{className:"w-6 h-6 text-primary"}),l.jsx("span",{className:"text-foreground",children:"Империя Сливов"})]}),l.jsxs("div",{className:"hidden md:flex items-center gap-6",children:[n.map(r=>l.jsx(Fe,{to:r.href,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:r.label},r.href)),l.jsx(Pe,{asChild:!0,children:l.jsx("a",{href:"https://t.me/Imperiya_VasilevsaBOt",target:"_blank",rel:"noopener noreferrer",children:"Записаться в боте"})})]}),l.jsx("button",{className:"md:hidden text-foreground",onClick:()=>t(!e),"aria-label":"Toggle menu",children:e?l.jsx(zg,{className:"w-6 h-6"}):l.jsx(sb,{className:"w-6 h-6"})})]}),e&&l.jsx("div",{className:"md:hidden mt-4 pb-4 border-t border-border pt-4",children:l.jsxs("div",{className:"flex flex-col gap-4",children:[n.map(r=>l.jsx(Fe,{to:r.href,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",onClick:()=>t(!1),children:r.label},r.href)),l.jsx(Pe,{asChild:!0,className:"w-full",children:l.jsx("a",{href:"https://t.me/Imperiya_VasilevsaBOt",target:"_blank",rel:"noopener noreferrer",children:"Записаться в боте"})})]})})]})})},Zt=()=>l.jsx("footer",{className:"bg-surface-2 border-t border-border",children:l.jsxs("div",{className:"container mx-auto px-4 py-12",children:[l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8 mb-8",children:[l.jsxs("div",{children:[l.jsxs(Fe,{to:"/",className:"flex items-center gap-2 text-xl font-bold mb-3",children:[l.jsx(Lg,{className:"w-6 h-6 text-primary"}),l.jsx("span",{className:"text-foreground",children:"Империя Сливов"})]}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Агрегатор образовательных программ"})]}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-semibold text-foreground mb-3",children:"Навигация"}),l.jsxs("ul",{className:"space-y-2 text-sm",children:[l.jsx("li",{children:l.jsx(Fe,{to:"/",className:"text-muted-foreground hover:text-primary transition-colors",children:"Главная"})}),l.jsx("li",{children:l.jsx(Fe,{to:"/shop",className:"text-muted-foreground hover:text-primary transition-colors",children:"Магазин"})}),l.jsx("li",{children:l.jsx(Fe,{to:"/faq",className:"text-muted-foreground hover:text-primary transition-colors",children:"FAQ"})}),l.jsx("li",{children:l.jsx(Fe,{to:"/reviews",className:"text-muted-foreground hover:text-primary transition-colors",children:"Отзывы"})}),l.jsx("li",{children:l.jsx(Fe,{to:"/about",className:"text-muted-foreground hover:text-primary transition-colors",children:"О нас"})})]})]}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-semibold text-foreground mb-3",children:"Документы"}),l.jsxs("ul",{className:"space-y-2 text-sm",children:[l.jsx("li",{children:l.jsx(Fe,{to:"/privacy",className:"text-muted-foreground hover:text-primary transition-colors",children:"Политика конфиденциальности"})}),l.jsx("li",{children:l.jsx(Fe,{to:"/terms",className:"text-muted-foreground hover:text-primary transition-colors",children:"Условия использования"})}),l.jsx("li",{children:l.jsx(Fe,{to:"/disclaimer",className:"text-muted-foreground hover:text-primary transition-colors",children:"Дисклеймер"})})]})]}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-semibold text-foreground mb-3",children:"Контакты"}),l.jsxs("div",{className:"space-y-3",children:[l.jsx(Pe,{variant:"outline",size:"sm",asChild:!0,className:"w-full",children:l.jsx("a",{href:"https://t.me/Imperiya_VasilevsaBOt",target:"_blank",rel:"noopener noreferrer",children:"Telegram бот"})}),l.jsx(Pe,{variant:"outline",size:"sm",asChild:!0,className:"w-full",children:l.jsx("a",{href:"https://t.me/vasiileuss",target:"_blank",rel:"noopener noreferrer",children:"Поддержка"})}),l.jsxs("a",{href:"mailto:egeze@internet.ru",className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-primary transition-colors",children:[l.jsx(Mg,{className:"w-4 h-4"}),"egeze@internet.ru"]})]})]})]}),l.jsx("div",{className:"border-t border-border pt-6 mb-6",children:l.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Платформа выступает как агрегатор образовательных программ и не размещает/не распространяет материалы, защищённые авторским правом. Все товарные знаки и бренды принадлежат их владельцам. Для правообладателей: egeze@internet.ru"})}),l.jsxs("div",{className:"text-center text-xs text-muted-foreground",children:[l.jsx("p",{children:"© 2019–2025, Империя Сливов"}),l.jsx("p",{className:"mt-1",children:'ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ "ПОДГОТОВКА К ЕГЭ ОНЛАЙН"'}),l.jsx("p",{className:"mt-1",children:"ОГРНИП 12077300028711, ИНН 97153735646"})]})]})}),LN=()=>l.jsx("section",{className:"hero-gradient py-20 md:py-32",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[l.jsx("h1",{className:"text-4xl md:text-6xl font-bold text-foreground mb-6 leading-tight",children:"Курсы ЕГЭ и ОГЭ в 10 раз дешевле"}),l.jsx("p",{className:"text-lg md:text-xl text-muted-foreground mb-8 max-w-2xl mx-auto",children:"Лучший сервис для покупки курсов подготовки к экзаменам. Вместе с нами подготовка становится дешевле и доступнее!"}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[l.jsx(Pe,{size:"lg",asChild:!0,children:l.jsxs("a",{href:"https://t.me/Imperiya_VasilevsaBOt",target:"_blank",rel:"noopener noreferrer",children:["Открыть бот",l.jsx(J1,{className:"ml-2 w-5 h-5"})]})}),l.jsx(Pe,{size:"lg",variant:"outline",asChild:!0,children:l.jsx("a",{href:"/faq",children:"Частые вопросы"})})]})]})})}),MN=[{icon:tb,title:"Удобный интерфейс",description:"Простой и понятный выбор курсов по всем предметам ЕГЭ и ОГЭ"},{icon:Oa,title:"Домашние задания с проверкой",description:"Регулярная практика с обратной связью от преподавателей"},{icon:cb,title:"Практика — ключ к высоким баллам",description:"Тренировочные тесты и разбор реальных заданий экзаменов"},{icon:eb,title:"Лучшие школы",description:"Проверенные образовательные платформы с опытными методистами"},{icon:fb,title:"Опытные наставники",description:"Персональная поддержка и кураторство на протяжении всего курса"},{icon:ib,title:"Всё в одном месте",description:"Удобный каталог курсов, прозрачные цены, быстрая запись"}],DN=()=>l.jsx("section",{className:"py-16 md:py-24 bg-background",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center text-foreground mb-12",children:"Почему выбирают нас"}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:MN.map((e,t)=>{const n=e.icon;return l.jsxs("div",{className:"bg-surface p-6 rounded-lg shadow-card hover:shadow-card-hover transition-smooth",children:[l.jsx(n,{className:"w-10 h-10 text-primary mb-4"}),l.jsx("h3",{className:"text-xl font-semibold text-foreground mb-2",children:e.title}),l.jsx("p",{className:"text-muted-foreground",children:e.description})]},t)})})]})}),md=[{slug:"100b",name:"100 БАЛЛОВ",markup_from:500,short_desc:"Онлайн-школа подготовки к ЕГЭ с опытными преподавателями"},{slug:"noo",name:"НОО",markup_from:300,short_desc:"Национальная онлайн-школа — эффективная подготовка к экзаменам"},{slug:"neofamily",name:"NEOFAMILY",markup_from:400,short_desc:"Современная школа с кураторской поддержкой"},{slug:"egeland",name:"EGELAND",markup_from:300,short_desc:"Комплексная подготовка к ЕГЭ и ОГЭ онлайн"}],Va=[{slug:"lamark",name:"Ламарк",subject:"biology",bio:"Эксперт ЕГЭ по биологии с 10-летним опытом. Средний балл учеников — 85+",monthly_markup:1200,school:"100b"},{slug:"asif",name:"Асиф",subject:"social-studies",bio:"Преподаватель обществознания, автор методических пособий",monthly_markup:1e3,school:"noo"},{slug:"evgenia",name:"Евгения",subject:"russian",bio:"Кандидат филологических наук, эксперт ЕГЭ по русскому языку",monthly_markup:900,school:"egeland"},{slug:"marina",name:"Марина",subject:"chemistry",bio:"Преподаватель химии высшей категории. Более 200 учеников сдали на 90+",monthly_markup:1100,school:"noo"},{slug:"kurator-neo",name:"Куратор NEOFAMILY",subject:"informatics",bio:"Команда IT-специалистов для подготовки к информатике",monthly_markup:500,school:"neofamily"}],as=[{slug:"biology-ege",title:"Биология ЕГЭ",subject:"biology",level:"ege",monthly_price_base:2990,description:"Полный курс подготовки к ЕГЭ по биологии. Разбор всех тем кодификатора, практические задания, вебинары и домашние работы с проверкой.",includes:["Видеоуроки по всем темам","Домашние задания с проверкой","Еженедельные вебинары","Пробные тестирования","Чат с куратором"],school:"100b",mentors:["lamark"],tags:["годовой","с-куратором","практика"]},{slug:"chemistry-ege",title:"Химия ЕГЭ",subject:"chemistry",level:"ege",monthly_price_base:2990,description:"Комплексная подготовка к ЕГЭ по химии с нуля до высоких баллов. Теория, решение задач, лабораторный практикум онлайн.",includes:["Видеоуроки","Домашние задания","Онлайн-практикумы","Тестирования","Кураторская поддержка"],school:"noo",mentors:["marina"],tags:["годовой","практика"]},{slug:"social-studies-ege",title:"Обществознание ЕГЭ",subject:"social-studies",level:"ege",monthly_price_base:2990,description:"Системная подготовка к ЕГЭ по обществознанию. Изучение всех блоков: право, экономика, социология, политология, философия.",includes:["Видеоуроки","Конспекты","Домашние задания","Эссе с проверкой","Чат поддержки"],school:"noo",mentors:["asif"],tags:["годовой","теория"]},{slug:"math-profile-ege",title:"Профильная математика ЕГЭ",subject:"math-profile",level:"ege",monthly_price_base:3490,description:"Углублённый курс по профильной математике. Решение задач всех уровней сложности, включая задачи с параметрами и геометрию.",includes:["Видеоуроки","Разбор задач","Еженедельные вебинары","Домашние работы","База задач"],school:"egeland",mentors:[],tags:["годовой","практика"]},{slug:"russian-ege",title:"Русский язык ЕГЭ",subject:"russian",level:"ege",monthly_price_base:2990,description:"Подготовка к ЕГЭ по русскому языку: орфография, пунктуация, анализ текста, сочинение. Гарантия высокого балла.",includes:["Видеолекции","Тренажёры","Проверка сочинений","Домашние задания","Вебинары"],school:"egeland",mentors:["evgenia"],tags:["годовой","с-куратором"]},{slug:"geography-ege",title:"География ЕГЭ",subject:"geography",level:"ege",monthly_price_base:2890,description:"Курс географии для ЕГЭ: физическая и экономическая география, работа с картами, решение типовых заданий.",includes:["Видеоуроки","Интерактивные карты","Домашние задания","Тестирования"],school:"noo",mentors:[],tags:["годовой","теория"]},{slug:"math-base-ege",title:"Базовая математика ЕГЭ",subject:"math-base",level:"ege",monthly_price_base:1990,description:"Подготовка к базовому уровню ЕГЭ по математике. Все темы школьной программы, тренировочные тесты.",includes:["Видеоуроки","Домашние задания","Тренажёры","Тестирования"],school:"egeland",mentors:[],tags:["годовой"]},{slug:"literature-ege",title:"Литература ЕГЭ",subject:"literature",level:"ege",monthly_price_base:2990,description:"Курс по литературе: анализ произведений, теория литературы, написание сочинений. Работа над всеми форматами заданий ЕГЭ.",includes:["Видеолекции","Анализ текстов","Проверка сочинений","Домашние задания"],school:"egeland",mentors:[],tags:["годовой","теория"]},{slug:"history-ege",title:"История ЕГЭ",subject:"history",level:"ege",monthly_price_base:3190,description:"Систематический курс истории России с древности до наших дней. Хронология, исторические личности, карты, эссе.",includes:["Видеоуроки","Конспекты","Исторические карты","Проверка эссе","Тестирования"],school:"noo",mentors:[],tags:["годовой","теория"]},{slug:"informatics-ege",title:"Информатика ЕГЭ",subject:"informatics",level:"ege",monthly_price_base:3390,description:"Программирование и алгоритмика для ЕГЭ. Разбор задач всех типов, работа в средах программирования.",includes:["Видеоуроки","Практические задачи","Разбор кода","Домашние работы","Кураторская поддержка"],school:"neofamily",mentors:["kurator-neo"],tags:["годовой","с-куратором","практика"]},{slug:"english-ege",title:"Английский язык ЕГЭ",subject:"english",level:"ege",monthly_price_base:3290,description:"Подготовка к ЕГЭ по английскому: грамматика, лексика, аудирование, письмо, говорение. Практика с носителями.",includes:["Видеоуроки","Разговорные клубы","Проверка письменных работ","Аудирование","Домашние задания"],school:"egeland",mentors:[],tags:["годовой","практика"]},{slug:"physics-ege",title:"Физика ЕГЭ",subject:"physics",level:"ege",monthly_price_base:3390,description:"Углублённая подготовка к ЕГЭ по физике. Теория, решение задач всех типов, лабораторные работы онлайн.",includes:["Видеолекции","Разбор задач","Виртуальная лаборатория","Домашние работы","Вебинары"],school:"neofamily",mentors:[],tags:["годовой","практика"]}],Yu=[{id:"1",author_name:"Егор К.",text:"Занимался биологией с Ламарком. За 8 месяцев поднял свой уровень с 60 до 92 баллов! Очень доволен результатом. Преподаватель объясняет сложные темы простым языком.",rating:5,course:"biology-ege",school:"100b",date:"2024-07-15",is_verified:!0},{id:"2",author_name:"Мария В.",text:"Готовилась к русскому с Евгенией. Отличная подача материала, много практики. Сочинения проверялись очень подробно с комментариями. Сдала на 89 баллов.",rating:5,course:"russian-ege",school:"egeland",date:"2024-06-20",is_verified:!0},{id:"3",author_name:"Иван П.",text:"Курс по обществознанию помог систематизировать знания. Асиф — профессионал своего дела. Результат — 84 балла при том, что начинал с нуля.",rating:5,course:"social-studies-ege",school:"noo",date:"2024-08-10",is_verified:!0},{id:"4",author_name:"Анна С.",text:"Химия всегда была для меня сложным предметом, но благодаря Марине и структурированному подходу курса смогла разобраться во всех темах. Сдала на 78 баллов!",rating:4,course:"chemistry-ege",school:"noo",date:"2024-07-25",is_verified:!0}],xr={biology:"Биология",chemistry:"Химия","social-studies":"Обществознание","math-profile":"Математика (проф.)",russian:"Русский язык",geography:"География","math-base":"Математика (база)",literature:"Литература",history:"История",informatics:"Информатика",english:"Английский язык",physics:"Физика"},Jv={ege:"ЕГЭ",oge:"ОГЭ"},FN=Bs("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs 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 hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function nt({className:e,variant:t,...n}){return l.jsx("div",{className:ie(FN({variant:t}),e),...n})}const zN=()=>{const e=[...md].sort((t,n)=>n.markup_from-t.markup_from);return l.jsx("section",{className:"py-16 md:py-24 bg-surface-2",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center text-foreground mb-4",children:"Партнёрские школы"}),l.jsx("p",{className:"text-center text-muted-foreground mb-12 max-w-2xl mx-auto",children:"Мы сотрудничаем с ведущими онлайн-школами подготовки к экзаменам"}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:e.map(t=>l.jsxs("div",{className:"bg-surface p-6 rounded-lg shadow-card hover:shadow-card-hover transition-smooth text-center",children:[l.jsx("h3",{className:"text-xl font-bold text-foreground mb-2",children:t.name}),l.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:t.short_desc}),l.jsxs(nt,{variant:"outline",className:"text-primary border-primary",children:["Наценка от ",t.markup_from," ₽/мес"]})]},t.slug))})]})})};var ey={exports:{}},ty={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Eo=v;function $N(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var UN=typeof Object.is=="function"?Object.is:$N,BN=Eo.useState,VN=Eo.useEffect,HN=Eo.useLayoutEffect,WN=Eo.useDebugValue;function QN(e,t){var n=t(),r=BN({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return HN(function(){o.value=n,o.getSnapshot=t,Dl(o)&&s({inst:o})},[e,n,t]),VN(function(){return Dl(o)&&s({inst:o}),e(function(){Dl(o)&&s({inst:o})})},[e]),WN(n),n}function Dl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!UN(e,n)}catch{return!0}}function GN(e,t){return t()}var KN=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?GN:QN;ty.useSyncExternalStore=Eo.useSyncExternalStore!==void 0?Eo.useSyncExternalStore:KN;ey.exports=ty;var YN=ey.exports;function qN(){return YN.useSyncExternalStore(XN,()=>!0,()=>!1)}function XN(){return()=>{}}var gd="Avatar",[ZN,b2]=Dt(gd),[JN,ny]=ZN(gd),ry=v.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=v.useState("idle");return l.jsx(JN,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:l.jsx(ee.span,{...r,ref:t})})});ry.displayName=gd;var oy="AvatarImage",sy=v.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,i=ny(oy,n),a=eT(r,s),u=Yt(c=>{o(c),i.onImageLoadingStatusChange(c)});return at(()=>{a!=="idle"&&u(a)},[a,u]),a==="loaded"?l.jsx(ee.img,{...s,ref:t,src:r}):null});sy.displayName=oy;var iy="AvatarFallback",ay=v.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=ny(iy,n),[i,a]=v.useState(r===void 0);return v.useEffect(()=>{if(r!==void 0){const u=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(u)}},[r]),i&&s.imageLoadingStatus!=="loaded"?l.jsx(ee.span,{...o,ref:t}):null});ay.displayName=iy;function Lp(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function eT(e,{referrerPolicy:t,crossOrigin:n}){const r=qN(),o=v.useRef(null),s=r?(o.current||(o.current=new window.Image),o.current):null,[i,a]=v.useState(()=>Lp(s,e));return at(()=>{a(Lp(s,e))},[s,e]),at(()=>{const u=f=>()=>{a(f)};if(!s)return;const c=u("loaded"),d=u("error");return s.addEventListener("load",c),s.addEventListener("error",d),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",c),s.removeEventListener("error",d)}},[s,n,t]),i}var ly=ry,uy=sy,cy=ay;const dy=v.forwardRef(({className:e,...t},n)=>l.jsx(ly,{ref:n,className:ie("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));dy.displayName=ly.displayName;const tT=v.forwardRef(({className:e,...t},n)=>l.jsx(uy,{ref:n,className:ie("aspect-square h-full w-full",e),...t}));tT.displayName=uy.displayName;const fy=v.forwardRef(({className:e,...t},n)=>l.jsx(cy,{ref:n,className:ie("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));fy.displayName=cy.displayName;const nT=()=>{const e=[...Va].sort((t,n)=>n.monthly_markup-t.monthly_markup).slice(0,6);return l.jsx("section",{className:"py-16 md:py-24 bg-background",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center text-foreground mb-4",children:"Наши наставники"}),l.jsx("p",{className:"text-center text-muted-foreground mb-12 max-w-2xl mx-auto",children:"Опытные преподаватели, которые помогут достичь высоких результатов"}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:e.map(t=>l.jsxs("div",{className:"bg-surface p-6 rounded-lg shadow-card hover:shadow-card-hover transition-smooth",children:[l.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[l.jsx(dy,{className:"w-16 h-16",children:l.jsx(fy,{className:"bg-primary text-primary-foreground text-xl",children:t.name.charAt(0)})}),l.jsxs("div",{className:"flex-1",children:[l.jsx("h3",{className:"text-lg font-semibold text-foreground mb-1",children:t.name}),l.jsx(nt,{variant:"outline",className:"text-xs",children:xr[t.subject]})]})]}),l.jsx("p",{className:"text-sm text-muted-foreground mb-4 line-clamp-2",children:t.bio}),l.jsxs("p",{className:"text-primary font-semibold",children:["+",t.monthly_markup," ₽/мес"]})]},t.slug))})]})})},rT=()=>{const e=Yu.filter(t=>t.is_verified);return l.jsx("section",{className:"py-16 md:py-24 bg-surface-2",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center text-foreground mb-4",children:"Отзывы учеников"}),l.jsx("p",{className:"text-center text-muted-foreground mb-12 max-w-2xl mx-auto",children:"Реальные истории успеха наших студентов"}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 max-w-5xl mx-auto",children:e.map(t=>l.jsxs("div",{className:"bg-surface p-6 rounded-lg shadow-card hover:shadow-card-hover transition-smooth",children:[l.jsxs("div",{className:"flex items-center justify-between mb-4",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("p",{className:"font-semibold text-foreground",children:t.author_name}),t.is_verified&&l.jsx(Oa,{className:"w-4 h-4 text-success"})]}),l.jsx("div",{className:"flex gap-1",children:Array.from({length:t.rating}).map((n,r)=>l.jsx(Fg,{className:"w-4 h-4 fill-primary text-primary"},r))})]}),l.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:t.text})]},t.id))})]})})},oT=()=>l.jsx("section",{className:"py-16 md:py-24 bg-background",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-3xl mx-auto text-center bg-surface p-12 rounded-lg shadow-card",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Готовы начать подготовку?"}),l.jsx("p",{className:"text-muted-foreground mb-8",children:"Выберите курс и начните путь к высоким баллам уже сегодня"}),l.jsx(Pe,{size:"lg",asChild:!0,children:l.jsxs("a",{href:"/shop",children:[l.jsx(ub,{className:"mr-2 w-5 h-5"}),"Перейти в магазин"]})})]})})}),sT=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Mt,{children:[l.jsx("title",{children:"Империя Сливов — агрегатор курсов ЕГЭ/ОГЭ"}),l.jsx("meta",{name:"description",content:"Понятная теория, практика и поддержка. Выберите курс и поступайте в вуз мечты. Курсы ЕГЭ и ОГЭ в 10 раз дешевле."}),l.jsx("meta",{property:"og:title",content:"Империя Сливов — агрегатор курсов ЕГЭ/ОГЭ"}),l.jsx("meta",{property:"og:description",content:"Понятная теория, практика и поддержка. Выберите курс и поступайте в вуз мечты."}),l.jsx("meta",{property:"og:type",content:"website"})]}),l.jsxs("div",{className:"min-h-screen flex flex-col",children:[l.jsx(Xt,{}),l.jsxs("main",{className:"flex-1",children:[l.jsx(LN,{}),l.jsx(DN,{}),l.jsx(zN,{}),l.jsx(nT,{}),l.jsx(rT,{}),l.jsx(oT,{})]}),l.jsx(Zt,{})]})]});function vd(e){return md.find(t=>t.slug===e.school)}function iT(e){return Va.filter(t=>e.mentors.includes(t.slug))}function yd(e){const t=vd(e);return e.monthly_price_base+((t==null?void 0:t.markup_from)||0)}function aT(e,t){const n=yd(e);if(!t)return n;const r=Va.find(o=>o.slug===t);return n+((r==null?void 0:r.monthly_markup)||0)}function lT(e){return Va.find(t=>t.slug===e)}const ls=v.forwardRef(({className:e,type:t,...n},r)=>l.jsx("input",{type:t,className:ie("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));ls.displayName="Input";var uT=v.createContext(void 0);function Ha(e){const t=v.useContext(uT);return e||t||"ltr"}var Fl="rovingFocusGroup.onEntryFocus",cT={bubbles:!1,cancelable:!0},Qs="RovingFocusGroup",[qu,py,dT]=qc(Qs),[fT,Wa]=Dt(Qs,[dT]),[pT,hT]=fT(Qs),hy=v.forwardRef((e,t)=>l.jsx(qu.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(qu.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(mT,{...e,ref:t})})}));hy.displayName=Qs;var mT=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=e,h=v.useRef(null),p=_e(t,h),b=Ha(s),[x,w]=kr({prop:i,defaultProp:a??null,onChange:u,caller:Qs}),[m,g]=v.useState(!1),y=Yt(c),S=py(n),E=v.useRef(!1),[C,j]=v.useState(0);return v.useEffect(()=>{const k=h.current;if(k)return k.addEventListener(Fl,y),()=>k.removeEventListener(Fl,y)},[y]),l.jsx(pT,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:x,onItemFocus:v.useCallback(k=>w(k),[w]),onItemShiftTab:v.useCallback(()=>g(!0),[]),onFocusableItemAdd:v.useCallback(()=>j(k=>k+1),[]),onFocusableItemRemove:v.useCallback(()=>j(k=>k-1),[]),children:l.jsx(ee.div,{tabIndex:m||C===0?-1:0,"data-orientation":r,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:Z(e.onMouseDown,()=>{E.current=!0}),onFocus:Z(e.onFocus,k=>{const O=!E.current;if(k.target===k.currentTarget&&O&&!m){const _=new CustomEvent(Fl,cT);if(k.currentTarget.dispatchEvent(_),!_.defaultPrevented){const $=S().filter(F=>F.focusable),M=$.find(F=>F.active),G=$.find(F=>F.id===x),K=[M,G,...$].filter(Boolean).map(F=>F.ref.current);vy(K,d)}}E.current=!1}),onBlur:Z(e.onBlur,()=>g(!1))})})}),my="RovingFocusGroupItem",gy=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:i,...a}=e,u=Ia(),c=s||u,d=hT(my,n),f=d.currentTabStopId===c,h=py(n),{onFocusableItemAdd:p,onFocusableItemRemove:b,currentTabStopId:x}=d;return v.useEffect(()=>{if(r)return p(),()=>b()},[r,p,b]),l.jsx(qu.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:l.jsx(ee.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:Z(e.onMouseDown,w=>{r?d.onItemFocus(c):w.preventDefault()}),onFocus:Z(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:Z(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){d.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const m=yT(w,d.orientation,d.dir);if(m!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let y=h().filter(S=>S.focusable).map(S=>S.ref.current);if(m==="last")y.reverse();else if(m==="prev"||m==="next"){m==="prev"&&y.reverse();const S=y.indexOf(w.currentTarget);y=d.loop?xT(y,S+1):y.slice(S+1)}setTimeout(()=>vy(y))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:x!=null}):i})})});gy.displayName=my;var gT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vT(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function yT(e,t,n){const r=vT(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return gT[r]}function vy(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function xT(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var yy=hy,xy=gy,Qa="Tabs",[wT,S2]=Dt(Qa,[Wa]),wy=Wa(),[bT,xd]=wT(Qa),by=v.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:i="horizontal",dir:a,activationMode:u="automatic",...c}=e,d=Ha(a),[f,h]=kr({prop:r,onChange:o,defaultProp:s??"",caller:Qa});return l.jsx(bT,{scope:n,baseId:Ia(),value:f,onValueChange:h,orientation:i,dir:d,activationMode:u,children:l.jsx(ee.div,{dir:d,"data-orientation":i,...c,ref:t})})});by.displayName=Qa;var Sy="TabsList",Ey=v.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=xd(Sy,n),i=wy(n);return l.jsx(yy,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:r,children:l.jsx(ee.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});Ey.displayName=Sy;var Cy="TabsTrigger",jy=v.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,i=xd(Cy,n),a=wy(n),u=ky(i.baseId,r),c=Py(i.baseId,r),d=r===i.value;return l.jsx(xy,{asChild:!0,...a,focusable:!o,active:d,children:l.jsx(ee.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...s,ref:t,onMouseDown:Z(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?i.onValueChange(r):f.preventDefault()}),onKeyDown:Z(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(r)}),onFocus:Z(e.onFocus,()=>{const f=i.activationMode!=="manual";!d&&!o&&f&&i.onValueChange(r)})})})});jy.displayName=Cy;var Ny="TabsContent",Ty=v.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...i}=e,a=xd(Ny,n),u=ky(a.baseId,r),c=Py(a.baseId,r),d=r===a.value,f=v.useRef(d);return v.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),l.jsx(ko,{present:o||d,children:({present:h})=>l.jsx(ee.div,{"data-state":d?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":u,hidden:!h,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:h&&s})})});Ty.displayName=Ny;function ky(e,t){return`${e}-trigger-${t}`}function Py(e,t){return`${e}-content-${t}`}var ST=by,Ry=Ey,Ay=jy,_y=Ty;const ET=ST,Oy=v.forwardRef(({className:e,...t},n)=>l.jsx(Ry,{ref:n,className:ie("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Oy.displayName=Ry.displayName;const Xu=v.forwardRef(({className:e,...t},n)=>l.jsx(Ay,{ref:n,className:ie("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));Xu.displayName=Ay.displayName;const CT=v.forwardRef(({className:e,...t},n)=>l.jsx(_y,{ref:n,className:ie("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));CT.displayName=_y.displayName;const jT=()=>{const[e,t]=v.useState(""),[n,r]=v.useState("all"),[o,s]=v.useState([]),i=["годовой","с-куратором","практика","теория"],a=Object.keys(xr),u=v.useMemo(()=>as.filter(d=>{const f=e===""||d.title.toLowerCase().includes(e.toLowerCase()),h=n==="all"||d.subject===n,p=o.length===0||o.every(b=>d.tags.includes(b));return f&&h&&p}),[e,n,o]),c=d=>{s(f=>f.includes(d)?f.filter(h=>h!==d):[...f,d])};return l.jsxs(l.Fragment,{children:[l.jsxs(Mt,{children:[l.jsx("title",{children:"Магазин курсов ЕГЭ/ОГЭ — предметы, цены, наставники | Империя Сливов"}),l.jsx("meta",{name:"description",content:"Выберите курс подготовки к ЕГЭ или ОГЭ по любому предмету. Прозрачные цены, опытные наставники, проверенные школы."})]}),l.jsxs("div",{className:"min-h-screen flex flex-col",children:[l.jsx(Xt,{}),l.jsx("main",{className:"flex-1 bg-background py-12",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsx("h1",{className:"text-4xl font-bold text-foreground mb-8",children:"Магазин курсов"}),l.jsxs("div",{className:"mb-8 space-y-4",children:[l.jsxs("div",{className:"relative max-w-md",children:[l.jsx(ab,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-muted-foreground"}),l.jsx(ls,{type:"text",placeholder:"Поиск курсов...",value:e,onChange:d=>t(d.target.value),className:"pl-10"})]}),l.jsx(ET,{value:n,onValueChange:d=>r(d),children:l.jsxs(Oy,{className:"flex-wrap h-auto bg-surface",children:[l.jsx(Xu,{value:"all",children:"Все предметы"}),a.map(d=>l.jsx(Xu,{value:d,children:xr[d]},d))]})}),l.jsx("div",{className:"flex flex-wrap gap-2",children:i.map(d=>l.jsx(nt,{variant:o.includes(d)?"default":"outline",className:"cursor-pointer",onClick:()=>c(d),children:d},d))})]}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:u.map(d=>{vd(d);const f=yd(d);return l.jsxs("div",{className:"bg-surface rounded-lg shadow-card hover:shadow-card-hover transition-smooth overflow-hidden",children:[l.jsx("div",{className:"h-48 bg-gradient-to-br from-primary/20 to-surface-2 flex items-center justify-center",children:l.jsx("span",{className:"text-6xl",children:"📚"})}),l.jsxs("div",{className:"p-6",children:[l.jsxs("div",{className:"flex gap-2 mb-3",children:[l.jsx(nt,{variant:"outline",children:xr[d.subject]}),l.jsx(nt,{variant:"outline",children:Jv[d.level]})]}),l.jsx("h3",{className:"text-xl font-bold text-foreground mb-2",children:d.title}),l.jsx("p",{className:"text-sm text-muted-foreground mb-4 line-clamp-2",children:d.description}),l.jsxs("div",{className:"flex items-end justify-between",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"от"}),l.jsxs("p",{className:"text-2xl font-bold text-primary",children:[f.toLocaleString()," ₽",l.jsx("span",{className:"text-sm text-muted-foreground",children:"/мес"})]})]}),l.jsx(Pe,{asChild:!0,size:"sm",children:l.jsx(Fe,{to:`/course/${d.slug}`,children:"Подробнее"})})]})]})]},d.slug)})}),u.length===0&&l.jsx("div",{className:"text-center py-16",children:l.jsx("p",{className:"text-muted-foreground text-lg",children:"Курсы не найдены. Попробуйте изменить фильтры."})})]})}),l.jsx(Zt,{})]})]})};function NT(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var wd="Radio",[TT,Iy]=Dt(wd),[kT,PT]=TT(wd),Ly=v.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:s,disabled:i,value:a="on",onCheck:u,form:c,...d}=e,[f,h]=v.useState(null),p=_e(t,w=>h(w)),b=v.useRef(!1),x=f?c||!!f.closest("form"):!0;return l.jsxs(kT,{scope:n,checked:o,disabled:i,children:[l.jsx(ee.button,{type:"button",role:"radio","aria-checked":o,"data-state":zy(o),"data-disabled":i?"":void 0,disabled:i,value:a,...d,ref:p,onClick:Z(e.onClick,w=>{o||u==null||u(),x&&(b.current=w.isPropagationStopped(),b.current||w.stopPropagation())})}),x&&l.jsx(Fy,{control:f,bubbles:!b.current,name:r,value:a,checked:o,required:s,disabled:i,form:c,style:{transform:"translateX(-100%)"}})]})});Ly.displayName=wd;var My="RadioIndicator",Dy=v.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,s=PT(My,n);return l.jsx(ko,{present:r||s.checked,children:l.jsx(ee.span,{"data-state":zy(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t})})});Dy.displayName=My;var RT="RadioBubbleInput",Fy=v.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const i=v.useRef(null),a=_e(i,s),u=NT(n),c=lv(t);return v.useEffect(()=>{const d=i.current;if(!d)return;const f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(u!==n&&p){const b=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(b)}},[u,n,r]),l.jsx(ee.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Fy.displayName=RT;function zy(e){return e?"checked":"unchecked"}var AT=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ga="RadioGroup",[_T,E2]=Dt(Ga,[Wa,Iy]),$y=Wa(),Uy=Iy(),[OT,IT]=_T(Ga),By=v.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:s,required:i=!1,disabled:a=!1,orientation:u,dir:c,loop:d=!0,onValueChange:f,...h}=e,p=$y(n),b=Ha(c),[x,w]=kr({prop:s,defaultProp:o??null,onChange:f,caller:Ga});return l.jsx(OT,{scope:n,name:r,required:i,disabled:a,value:x,onValueChange:w,children:l.jsx(yy,{asChild:!0,...p,orientation:u,dir:b,loop:d,children:l.jsx(ee.div,{role:"radiogroup","aria-required":i,"aria-orientation":u,"data-disabled":a?"":void 0,dir:b,...h,ref:t})})})});By.displayName=Ga;var Vy="RadioGroupItem",Hy=v.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,s=IT(Vy,n),i=s.disabled||r,a=$y(n),u=Uy(n),c=v.useRef(null),d=_e(t,c),f=s.value===o.value,h=v.useRef(!1);return v.useEffect(()=>{const p=x=>{AT.includes(x.key)&&(h.current=!0)},b=()=>h.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",b)}},[]),l.jsx(xy,{asChild:!0,...a,focusable:!i,active:f,children:l.jsx(Ly,{disabled:i,required:s.required,checked:f,...u,...o,name:s.name,ref:d,onCheck:()=>s.onValueChange(o.value),onKeyDown:Z(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:Z(o.onFocus,()=>{var p;h.current&&((p=c.current)==null||p.click())})})})});Hy.displayName=Vy;var LT="RadioGroupIndicator",Wy=v.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Uy(n);return l.jsx(Dy,{...o,...r,ref:t})});Wy.displayName=LT;var Qy=By,Gy=Hy,MT=Wy;const Ky=v.forwardRef(({className:e,...t},n)=>l.jsx(Qy,{className:ie("grid gap-2",e),...t,ref:n}));Ky.displayName=Qy.displayName;const Zu=v.forwardRef(({className:e,...t},n)=>l.jsx(Gy,{ref:n,className:ie("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:l.jsx(MT,{className:"flex items-center justify-center",children:l.jsx(rb,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Zu.displayName=Gy.displayName;var DT="Label",Yy=v.forwardRef((e,t)=>l.jsx(ee.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Yy.displayName=DT;var qy=Yy;const FT=Bs("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ju=v.forwardRef(({className:e,...t},n)=>l.jsx(qy,{ref:n,className:ie(FT(),e),...t}));Ju.displayName=qy.displayName;const Xy=v.forwardRef(({className:e,...t},n)=>l.jsx("textarea",{className:ie("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Xy.displayName="Textarea";var Ka="Collapsible",[zT,Zy]=Dt(Ka),[$T,bd]=zT(Ka),Jy=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:s,onOpenChange:i,...a}=e,[u,c]=kr({prop:r,defaultProp:o??!1,onChange:i,caller:Ka});return l.jsx($T,{scope:n,disabled:s,contentId:Ia(),open:u,onOpenToggle:v.useCallback(()=>c(d=>!d),[c]),children:l.jsx(ee.div,{"data-state":Ed(u),"data-disabled":s?"":void 0,...a,ref:t})})});Jy.displayName=Ka;var ex="CollapsibleTrigger",tx=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=bd(ex,n);return l.jsx(ee.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Ed(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:Z(e.onClick,o.onOpenToggle)})});tx.displayName=ex;var Sd="CollapsibleContent",nx=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=bd(Sd,e.__scopeCollapsible);return l.jsx(ko,{present:n||o.open,children:({present:s})=>l.jsx(UT,{...r,ref:t,present:s})})});nx.displayName=Sd;var UT=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...s}=e,i=bd(Sd,n),[a,u]=v.useState(r),c=v.useRef(null),d=_e(t,c),f=v.useRef(0),h=f.current,p=v.useRef(0),b=p.current,x=i.open||a,w=v.useRef(x),m=v.useRef(void 0);return v.useEffect(()=>{const g=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(g)},[]),at(()=>{const g=c.current;if(g){m.current=m.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const y=g.getBoundingClientRect();f.current=y.height,p.current=y.width,w.current||(g.style.transitionDuration=m.current.transitionDuration,g.style.animationName=m.current.animationName),u(r)}},[i.open,r]),l.jsx(ee.div,{"data-state":Ed(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!x,...s,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:x&&o})});function Ed(e){return e?"open":"closed"}var BT=Jy,VT=tx,HT=nx,Ft="Accordion",WT=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Cd,QT,GT]=qc(Ft),[Ya,C2]=Dt(Ft,[GT,Zy]),jd=Zy(),rx=R.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,s=r;return l.jsx(Cd.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?l.jsx(XT,{...s,ref:t}):l.jsx(qT,{...o,ref:t})})});rx.displayName=Ft;var[ox,KT]=Ya(Ft),[sx,YT]=Ya(Ft,{collapsible:!1}),qT=R.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:s=!1,...i}=e,[a,u]=kr({prop:n,defaultProp:r??"",onChange:o,caller:Ft});return l.jsx(ox,{scope:e.__scopeAccordion,value:R.useMemo(()=>a?[a]:[],[a]),onItemOpen:u,onItemClose:R.useCallback(()=>s&&u(""),[s,u]),children:l.jsx(sx,{scope:e.__scopeAccordion,collapsible:s,children:l.jsx(ix,{...i,ref:t})})})}),XT=R.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...s}=e,[i,a]=kr({prop:n,defaultProp:r??[],onChange:o,caller:Ft}),u=R.useCallback(d=>a((f=[])=>[...f,d]),[a]),c=R.useCallback(d=>a((f=[])=>f.filter(h=>h!==d)),[a]);return l.jsx(ox,{scope:e.__scopeAccordion,value:i,onItemOpen:u,onItemClose:c,children:l.jsx(sx,{scope:e.__scopeAccordion,collapsible:!0,children:l.jsx(ix,{...s,ref:t})})})}),[ZT,qa]=Ya(Ft),ix=R.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:s="vertical",...i}=e,a=R.useRef(null),u=_e(a,t),c=QT(n),f=Ha(o)==="ltr",h=Z(e.onKeyDown,p=>{var k;if(!WT.includes(p.key))return;const b=p.target,x=c().filter(O=>{var _;return!((_=O.ref.current)!=null&&_.disabled)}),w=x.findIndex(O=>O.ref.current===b),m=x.length;if(w===-1)return;p.preventDefault();let g=w;const y=0,S=m-1,E=()=>{g=w+1,g>S&&(g=y)},C=()=>{g=w-1,g<y&&(g=S)};switch(p.key){case"Home":g=y;break;case"End":g=S;break;case"ArrowRight":s==="horizontal"&&(f?E():C());break;case"ArrowDown":s==="vertical"&&E();break;case"ArrowLeft":s==="horizontal"&&(f?C():E());break;case"ArrowUp":s==="vertical"&&C();break}const j=g%m;(k=x[j].ref.current)==null||k.focus()});return l.jsx(ZT,{scope:n,disabled:r,direction:o,orientation:s,children:l.jsx(Cd.Slot,{scope:n,children:l.jsx(ee.div,{...i,"data-orientation":s,ref:u,onKeyDown:r?void 0:h})})})}),ha="AccordionItem",[JT,Nd]=Ya(ha),ax=R.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,s=qa(ha,n),i=KT(ha,n),a=jd(n),u=Ia(),c=r&&i.value.includes(r)||!1,d=s.disabled||e.disabled;return l.jsx(JT,{scope:n,open:c,disabled:d,triggerId:u,children:l.jsx(BT,{"data-orientation":s.orientation,"data-state":px(c),...a,...o,ref:t,disabled:d,open:c,onOpenChange:f=>{f?i.onItemOpen(r):i.onItemClose(r)}})})});ax.displayName=ha;var lx="AccordionHeader",ux=R.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=qa(Ft,n),s=Nd(lx,n);return l.jsx(ee.h3,{"data-orientation":o.orientation,"data-state":px(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});ux.displayName=lx;var ec="AccordionTrigger",cx=R.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=qa(Ft,n),s=Nd(ec,n),i=YT(ec,n),a=jd(n);return l.jsx(Cd.ItemSlot,{scope:n,children:l.jsx(VT,{"aria-disabled":s.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:s.triggerId,...a,...r,ref:t})})});cx.displayName=ec;var dx="AccordionContent",fx=R.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=qa(Ft,n),s=Nd(dx,n),i=jd(n);return l.jsx(HT,{role:"region","aria-labelledby":s.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});fx.displayName=dx;function px(e){return e?"open":"closed"}var e2=rx,t2=ax,n2=ux,hx=cx,mx=fx;const gx=e2,Td=v.forwardRef(({className:e,...t},n)=>l.jsx(t2,{ref:n,className:ie("border-b",e),...t}));Td.displayName="AccordionItem";const kd=v.forwardRef(({className:e,children:t,...n},r)=>l.jsx(n2,{className:"flex",children:l.jsxs(hx,{ref:r,className:ie("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,l.jsx(nb,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));kd.displayName=hx.displayName;const Pd=v.forwardRef(({className:e,children:t,...n},r)=>l.jsx(mx,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:l.jsx("div",{className:ie("pb-4 pt-0",e),children:t})}));Pd.displayName=mx.displayName;const r2=()=>{const{slug:e}=hj(),{toast:t}=sg(),n=as.find(m=>m.slug===e),[r,o]=v.useState(void 0),[s,i]=v.useState(!1),[a,u]=v.useState({name:"",telegram:"",email:"",comment:""});if(!n)return l.jsxs("div",{className:"min-h-screen flex flex-col",children:[l.jsx(Xt,{}),l.jsx("div",{className:"flex-1 flex items-center justify-center",children:l.jsxs("div",{className:"text-center",children:[l.jsx("h1",{className:"text-4xl font-bold text-foreground mb-4",children:"Курс не найден"}),l.jsx(Pe,{asChild:!0,children:l.jsx(Fe,{to:"/shop",children:"Вернуться в магазин"})})]})}),l.jsx(Zt,{})]});const c=vd(n),d=iT(n),f=yd(n),h=aT(n,r),p=r?lT(r):void 0,b=async m=>{if(m.preventDefault(),!a.name||!a.telegram){t({variant:"destructive",title:"Ошибка",description:"Заполните обязательные поля: имя и Telegram"});return}t({title:"Спасибо!",description:"Мы свяжемся с вами в Telegram в ближайшее время."}),i(!1),u({name:"",telegram:"",email:"",comment:""})},x=`https://t.me/Imperiya_VasilevsaBOt?start=course_${n.slug}&utm_source=site&utm_medium=cta&utm_campaign=course_${n.slug}`,w=[{question:"Как проходит обучение?",answer:"Обучение проходит онлайн через личный кабинет. Вы получаете доступ к видеоурокам, домашним заданиям и вебинарам."},{question:"Можно ли вернуть деньги?",answer:"Да, в течение 14 дней с момента покупки вы можете вернуть деньги без объяснения причин."},{question:"Нужен ли наставник?",answer:"Наставник не обязателен, но значительно повышает эффективность подготовки за счёт персональной поддержки."}];return l.jsxs(l.Fragment,{children:[l.jsxs(Mt,{children:[l.jsxs("title",{children:[n.title," — ЕГЭ | Империя Сливов"]}),l.jsx("meta",{name:"description",content:n.description}),l.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Product",name:n.title,description:n.description,offers:{"@type":"Offer",price:f,priceCurrency:"RUB"}})})]}),l.jsxs("div",{className:"min-h-screen flex flex-col",children:[l.jsx(Xt,{}),l.jsxs("main",{className:"flex-1 bg-background",children:[l.jsx("div",{className:"bg-surface border-b border-border py-3",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[l.jsx(Fe,{to:"/",className:"hover:text-primary transition-colors",children:l.jsx(ob,{className:"w-4 h-4"})}),l.jsx("span",{children:"/"}),l.jsx(Fe,{to:"/shop",className:"hover:text-primary transition-colors",children:"Магазин"}),l.jsx("span",{children:"/"}),l.jsx("span",{className:"text-foreground",children:n.title})]})})}),l.jsxs("div",{className:"container mx-auto px-4 py-12",children:[l.jsxs("div",{className:"mb-12",children:[l.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[l.jsx(nt,{children:xr[n.subject]}),l.jsx(nt,{children:Jv[n.level]}),n.tags.map(m=>l.jsx(nt,{variant:"outline",children:m},m))]}),l.jsx("h1",{className:"text-4xl font-bold text-foreground mb-4",children:n.title}),c&&l.jsxs("p",{className:"text-muted-foreground",children:["Школа: ",l.jsx("span",{className:"font-semibold text-foreground",children:c.name})," ","(наценка школы: +",c.markup_from," ₽/мес)"]}),l.jsxs("p",{className:"text-2xl font-bold text-primary mt-4",children:["от ",n.monthly_price_base.toLocaleString()," ₽",l.jsx("span",{className:"text-base text-muted-foreground",children:"/мес"})]})]}),l.jsxs("div",{className:"grid lg:grid-cols-3 gap-8",children:[l.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Что входит в курс"}),l.jsx("div",{className:"grid md:grid-cols-2 gap-3",children:n.includes.map((m,g)=>l.jsxs("div",{className:"flex items-start gap-2",children:[l.jsx(Oa,{className:"w-5 h-5 text-success flex-shrink-0 mt-0.5"}),l.jsx("span",{className:"text-muted-foreground",children:m})]},g))})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Описание"}),l.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n.description})]}),d.length>0&&l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Выбрать наставника"}),l.jsx(Ky,{value:r||"none",onValueChange:m=>o(m==="none"?void 0:m),children:l.jsxs("div",{className:"space-y-3",children:[l.jsxs("div",{className:"flex items-center space-x-3 p-4 bg-surface rounded-lg",children:[l.jsx(Zu,{value:"none",id:"mentor-none"}),l.jsxs(Ju,{htmlFor:"mentor-none",className:"flex-1 cursor-pointer",children:[l.jsx("p",{className:"font-semibold text-foreground",children:"Без наставника"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"+0 ₽/мес"})]})]}),d.map(m=>l.jsxs("div",{className:"flex items-center space-x-3 p-4 bg-surface rounded-lg",children:[l.jsx(Zu,{value:m.slug,id:`mentor-${m.slug}`}),l.jsxs(Ju,{htmlFor:`mentor-${m.slug}`,className:"flex-1 cursor-pointer",children:[l.jsx("p",{className:"font-semibold text-foreground",children:m.name}),l.jsx("p",{className:"text-sm text-muted-foreground line-clamp-1",children:m.bio}),l.jsxs("p",{className:"text-sm text-primary font-semibold mt-1",children:["+",m.monthly_markup," ₽/мес"]})]})]},m.slug))]})})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Частые вопросы"}),l.jsx(gx,{type:"single",collapsible:!0,children:w.map((m,g)=>l.jsxs(Td,{value:`faq-${g}`,children:[l.jsx(kd,{className:"text-left",children:m.question}),l.jsx(Pd,{className:"text-muted-foreground",children:m.answer})]},g))})]})]}),l.jsx("div",{className:"lg:col-span-1",children:l.jsxs("div",{className:"bg-surface rounded-lg p-6 shadow-card sticky top-24",children:[l.jsx("h3",{className:"text-xl font-bold text-foreground mb-4",children:"Стоимость"}),l.jsxs("div",{className:"space-y-3 mb-6",children:[l.jsxs("div",{className:"flex justify-between text-sm",children:[l.jsx("span",{className:"text-muted-foreground",children:"Базовая цена:"}),l.jsxs("span",{className:"text-foreground font-semibold",children:[n.monthly_price_base.toLocaleString()," ₽"]})]}),c&&l.jsxs("div",{className:"flex justify-between text-sm",children:[l.jsx("span",{className:"text-muted-foreground",children:"Наценка школы:"}),l.jsxs("span",{className:"text-foreground font-semibold",children:["+",c.markup_from," ₽"]})]}),p&&l.jsxs("div",{className:"flex justify-between text-sm",children:[l.jsx("span",{className:"text-muted-foreground",children:"Наставник:"}),l.jsxs("span",{className:"text-foreground font-semibold",children:["+",p.monthly_markup," ₽"]})]}),l.jsx("div",{className:"border-t border-border pt-3",children:l.jsxs("div",{className:"flex justify-between",children:[l.jsx("span",{className:"font-bold text-foreground",children:"Итого:"}),l.jsxs("span",{className:"text-2xl font-bold text-primary",children:[h.toLocaleString()," ₽",l.jsx("span",{className:"text-sm text-muted-foreground",children:"/мес"})]})]})})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx(Pe,{asChild:!0,className:"w-full",size:"lg",children:l.jsx("a",{href:x,target:"_blank",rel:"noopener noreferrer",children:"Оформить в Telegram"})}),l.jsx(Pe,{variant:"outline",className:"w-full",onClick:()=>i(!s),children:"Оставить заявку"}),l.jsx(Pe,{variant:"ghost",className:"w-full",asChild:!0,children:l.jsxs("a",{href:"https://t.me/vasiileuss",target:"_blank",rel:"noopener noreferrer",children:[l.jsx(Dg,{className:"mr-2 w-4 h-4"}),"Поддержка"]})})]}),s&&l.jsxs("form",{onSubmit:b,className:"mt-6 pt-6 border-t border-border space-y-3",children:[l.jsx(ls,{placeholder:"Ваше имя *",value:a.name,onChange:m=>u({...a,name:m.target.value}),required:!0}),l.jsx(ls,{placeholder:"Telegram @username *",value:a.telegram,onChange:m=>u({...a,telegram:m.target.value}),required:!0}),l.jsx(ls,{type:"email",placeholder:"Email (необязательно)",value:a.email,onChange:m=>u({...a,email:m.target.value})}),l.jsx(Xy,{placeholder:"Комментарий",value:a.comment,onChange:m=>u({...a,comment:m.target.value}),rows:3}),l.jsx(Pe,{type:"submit",className:"w-full",children:"Отправить заявку"})]})]})})]})]})]}),l.jsx(Zt,{})]})]})},Mp=[{question:"В чём разница между школой и наставником?",answer:"Школа предоставляет образовательный контент: видеоуроки, домашние задания, вебинары. Наставник — это личный куратор, который помогает разобраться в сложных темах, проверяет работы и мотивирует на протяжении всего курса."},{question:"Что входит в стоимость курса?",answer:"В стоимость входят видеоуроки по всем темам, домашние задания с проверкой, регулярные вебинары, пробные тестирования и доступ в чат с кураторами. При выборе наставника добавляется персональная поддержка."},{question:"Можно ли вернуть деньги?",answer:"Да, в течение 14 дней с момента покупки вы можете вернуть деньги без объяснения причин. Для возврата обратитесь в поддержку."},{question:"Можно ли учиться с нескольких устройств?",answer:"Да, вы можете использовать любые устройства для доступа к курсу: компьютер, планшет или смартфон. Все данные синхронизируются автоматически."},{question:"Как записаться на курс?",answer:"Выберите курс в магазине, определитесь с наставником (по желанию) и нажмите кнопку 'Оформить в Telegram'. Наш бот проведёт вас через процесс записи."},{question:"Есть ли пробный период?",answer:"Мы не предоставляем пробный период, но вы можете вернуть деньги в течение 14 дней, если курс вам не подошёл."}],o2=()=>{const e={"@context":"https://schema.org","@type":"FAQPage",mainEntity:Mp.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))};return l.jsxs(l.Fragment,{children:[l.jsxs(Mt,{children:[l.jsx("title",{children:"Частые вопросы — FAQ | Империя Сливов"}),l.jsx("meta",{name:"description",content:"Ответы на частые вопросы о курсах подготовки к ЕГЭ и ОГЭ. Узнайте всё о процессе обучения, оплате и возврате."}),l.jsx("script",{type:"application/ld+json",children:JSON.stringify(e)})]}),l.jsxs("div",{className:"min-h-screen flex flex-col",children:[l.jsx(Xt,{}),l.jsx("main",{className:"flex-1 bg-background py-12",children:l.jsxs("div",{className:"container mx-auto px-4 max-w-3xl",children:[l.jsx("h1",{className:"text-4xl font-bold text-foreground mb-4",children:"Частые вопросы"}),l.jsx("p",{className:"text-muted-foreground mb-12",children:"Ответы на самые популярные вопросы о наших курсах и процессе обучения"}),l.jsx(gx,{type:"single",collapsible:!0,className:"space-y-4",children:Mp.map((t,n)=>l.jsxs(Td,{value:`faq-${n}`,className:"bg-surface rounded-lg px-6 border border-border",children:[l.jsx(kd,{className:"text-left hover:no-underline py-6",children:l.jsx("span",{className:"font-semibold text-foreground",children:t.question})}),l.jsx(Pd,{className:"text-muted-foreground pb-6",children:t.answer})]},n))}),l.jsxs("div",{className:"mt-12 p-6 bg-surface rounded-lg border border-border",children:[l.jsx("h2",{className:"text-xl font-bold text-foreground mb-2",children:"Не нашли ответ?"}),l.jsx("p",{className:"text-muted-foreground mb-4",children:"Свяжитесь с нашей поддержкой в Telegram — мы ответим на любые вопросы"}),l.jsx("a",{href:"https://t.me/vasiileuss",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Написать в поддержку →"})]})]})}),l.jsx(Zt,{})]})]})},s2=()=>{const[e,t]=v.useState("all"),[n,r]=v.useState("all"),o=Yu.filter(i=>{const a=i.course?as.find(d=>d.slug===i.course):null,u=e==="all"||a&&a.subject===e,c=n==="all"||i.school&&i.school===n;return u&&c}),s=Array.from(new Set(as.map(i=>i.subject)));return Array.from(new Set(Yu.map(i=>i.school).filter(Boolean))),l.jsxs(l.Fragment,{children:[l.jsxs(Mt,{children:[l.jsx("title",{children:"Отзывы учеников — реальные истории успеха | Империя Сливов"}),l.jsx("meta",{name:"description",content:"Читайте отзывы учеников о курсах подготовки к ЕГЭ и ОГЭ. Реальные истории, оценки и результаты от тех, кто уже прошёл обучение."})]}),l.jsxs("div",{className:"min-h-screen flex flex-col",children:[l.jsx(Xt,{}),l.jsx("main",{className:"flex-1 bg-background py-12",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsx("h1",{className:"text-4xl font-bold text-foreground mb-4",children:"Отзывы учеников"}),l.jsx("p",{className:"text-muted-foreground mb-8 max-w-2xl",children:"Реальные отзывы от учеников, которые уже прошли подготовку и успешно сдали экзамены"}),l.jsx("div",{className:"mb-8 flex flex-wrap gap-3",children:l.jsxs("div",{className:"flex flex-wrap gap-2",children:[l.jsx(nt,{variant:e==="all"?"default":"outline",className:"cursor-pointer",onClick:()=>t("all"),children:"Все предметы"}),s.map(i=>l.jsx(nt,{variant:e===i?"default":"outline",className:"cursor-pointer",onClick:()=>t(i),children:xr[i]},i))]})}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 max-w-5xl mx-auto",children:o.map(i=>{const a=i.course?as.find(c=>c.slug===i.course):null,u=i.school?md.find(c=>c.slug===i.school):null;return l.jsxs("div",{className:"bg-surface p-6 rounded-lg shadow-card hover:shadow-card-hover transition-smooth",children:[l.jsxs("div",{className:"flex items-start justify-between mb-4",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("p",{className:"font-semibold text-foreground",children:i.author_name}),i.is_verified&&l.jsx(Oa,{className:"w-4 h-4 text-success"})]}),l.jsx("div",{className:"flex gap-1",children:Array.from({length:i.rating}).map((c,d)=>l.jsx(Fg,{className:"w-4 h-4 fill-primary text-primary"},d))})]}),l.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:i.text}),l.jsxs("div",{className:"flex flex-wrap gap-2",children:[a&&l.jsx(nt,{variant:"outline",children:xr[a.subject]}),u&&l.jsx(nt,{variant:"outline",children:u.name}),l.jsx(nt,{variant:"outline",className:"text-xs",children:new Date(i.date).toLocaleDateString("ru-RU")})]})]},i.id)})}),o.length===0&&l.jsx("div",{className:"text-center py-16",children:l.jsx("p",{className:"text-muted-foreground text-lg",children:"Отзывы не найдены. Попробуйте изменить фильтры."})})]})}),l.jsx(Zt,{})]})]})},i2=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Mt,{children:[l.jsx("title",{children:"О нас — миссия и ценности | Империя Сливов"}),l.jsx("meta",{name:"description",content:"Узнайте о платформе Империя Сливов — агрегаторе курсов подготовки к ЕГЭ и ОГЭ. Наша миссия, ценности и контакты."})]}),l.jsxs("div",{className:"min-h-screen flex flex-col",children:[l.jsx(Xt,{}),l.jsxs("main",{className:"flex-1 bg-background",children:[l.jsx("div",{className:"hero-gradient py-20",children:l.jsxs("div",{className:"container mx-auto px-4 max-w-4xl text-center",children:[l.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-6",children:"О платформе Империя Сливов"}),l.jsx("p",{className:"text-lg text-muted-foreground",children:"Мы делаем качественное образование доступным"})]})}),l.jsxs("div",{className:"container mx-auto px-4 py-12 max-w-4xl",children:[l.jsxs("div",{className:"space-y-8 mb-12",children:[l.jsxs("div",{className:"bg-surface p-8 rounded-lg shadow-card",children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Наша миссия"}),l.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"Империя Сливов — это агрегатор образовательных программ, созданный для того, чтобы каждый ученик мог найти качественный курс подготовки к ЕГЭ и ОГЭ по доступной цене. Мы собрали лучшие школы и наставников в одном месте, чтобы вы могли легко сравнить предложения и выбрать идеальный вариант для себя."}),l.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Наша платформа работает по принципу прозрачности: вы видите базовую стоимость курса, наценку школы и наценку наставника. Никаких скрытых платежей — только честные цены и качественное образование."})]}),l.jsxs("div",{className:"bg-surface p-8 rounded-lg shadow-card",children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Что мы предлагаем"}),l.jsxs("ul",{className:"space-y-3 text-muted-foreground",children:[l.jsxs("li",{className:"flex items-start gap-2",children:[l.jsx("span",{className:"text-primary font-bold",children:"•"}),l.jsxs("span",{children:[l.jsx("strong",{className:"text-foreground",children:"Удобный каталог"})," курсов по всем предметам ЕГЭ и ОГЭ"]})]}),l.jsxs("li",{className:"flex items-start gap-2",children:[l.jsx("span",{className:"text-primary font-bold",children:"•"}),l.jsxs("span",{children:[l.jsx("strong",{className:"text-foreground",children:"Прозрачные цены"})," с разбиением на базовую стоимость и наценки"]})]}),l.jsxs("li",{className:"flex items-start gap-2",children:[l.jsx("span",{className:"text-primary font-bold",children:"•"}),l.jsxs("span",{children:[l.jsx("strong",{className:"text-foreground",children:"Лучшие школы"})," и опытные наставники в одном месте"]})]}),l.jsxs("li",{className:"flex items-start gap-2",children:[l.jsx("span",{className:"text-primary font-bold",children:"•"}),l.jsxs("span",{children:[l.jsx("strong",{className:"text-foreground",children:"Быстрая запись"})," через Telegram-бот"]})]})]})]})]}),l.jsxs("div",{className:"bg-surface-2 p-8 rounded-lg border border-border",children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-6 text-center",children:"Свяжитесь с нами"}),l.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[l.jsx(Pe,{variant:"outline",asChild:!0,className:"h-auto py-4 flex-col gap-2",children:l.jsxs("a",{href:"https://t.me/Imperiya_VasilevsaBOt",target:"_blank",rel:"noopener noreferrer",children:[l.jsx(lb,{className:"w-6 h-6"}),l.jsxs("div",{className:"text-center",children:[l.jsx("p",{className:"font-semibold",children:"Telegram бот"}),l.jsx("p",{className:"text-xs text-muted-foreground",children:"Записаться на курс"})]})]})}),l.jsx(Pe,{variant:"outline",asChild:!0,className:"h-auto py-4 flex-col gap-2",children:l.jsxs("a",{href:"https://t.me/vasiileuss",target:"_blank",rel:"noopener noreferrer",children:[l.jsx(Dg,{className:"w-6 h-6"}),l.jsxs("div",{className:"text-center",children:[l.jsx("p",{className:"font-semibold",children:"Поддержка"}),l.jsx("p",{className:"text-xs text-muted-foreground",children:"Задать вопрос"})]})]})}),l.jsx(Pe,{variant:"outline",asChild:!0,className:"h-auto py-4 flex-col gap-2",children:l.jsxs("a",{href:"mailto:egeze@internet.ru",children:[l.jsx(Mg,{className:"w-6 h-6"}),l.jsxs("div",{className:"text-center",children:[l.jsx("p",{className:"font-semibold",children:"Email"}),l.jsx("p",{className:"text-xs text-muted-foreground",children:"Сотрудничество"})]})]})})]})]}),l.jsxs("div",{className:"mt-8 p-6 bg-surface rounded-lg border border-border",children:[l.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Важная информация"}),l.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Платформа выступает как агрегатор образовательных программ и не размещает/не распространяет материалы, защищённые авторским правом. Все товарные знаки и бренды принадлежат их владельцам. Для правообладателей: egeze@internet.ru"})]})]})]}),l.jsx(Zt,{})]})]}),a2=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Mt,{children:[l.jsx("title",{children:"Политика конфиденциальности | Империя Сливов"}),l.jsx("meta",{name:"description",content:"Политика конфиденциальности платформы Империя Сливов"})]}),l.jsxs("div",{className:"min-h-screen flex flex-col",children:[l.jsx(Xt,{}),l.jsx("main",{className:"flex-1 bg-background py-12",children:l.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[l.jsx("h1",{className:"text-4xl font-bold text-foreground mb-8",children:"Политика конфиденциальности"}),l.jsxs("div",{className:"prose prose-invert max-w-none space-y-6 text-muted-foreground",children:[l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"1. Общие положения"}),l.jsx("p",{children:'Настоящая политика конфиденциальности определяет порядок обработки и защиты персональных данных пользователей платформы "Империя Сливов})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"2. Собираемая информация"}),l.jsx("p",{children:"Мы можем собирать следующую информацию:"}),l.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[l.jsx("li",{children:"Имя и контактные данные (Telegram, email)"}),l.jsx("li",{children:"Информация о выбранных курсах и наставниках"}),l.jsx("li",{children:"Данные об использовании сайта (cookies, IP-адрес)"})]})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"3. Использование информации"}),l.jsx("p",{children:"Собранные данные используются для:"}),l.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[l.jsx("li",{children:"Обработки заявок на курсы"}),l.jsx("li",{children:"Связи с пользователями"}),l.jsx("li",{children:"Улучшения качества сервиса"}),l.jsx("li",{children:"Аналитики и статистики"})]})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"4. Защита данных"}),l.jsx("p",{children:"Мы применяем современные технологии защиты информации и не передаём ваши данные третьим лицам без вашего согласия, за исключением случаев, предусмотренных законодательством."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"5. Контакты"}),l.jsxs("p",{children:["По вопросам конфиденциальности обращайтесь:"," ",l.jsx("a",{href:"mailto:egeze@internet.ru",className:"text-primary hover:underline",children:"egeze@internet.ru"})]})]})]})]})}),l.jsx(Zt,{})]})]}),l2=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Mt,{children:[l.jsx("title",{children:"Условия использования | Империя Сливов"}),l.jsx("meta",{name:"description",content:"Пользовательское соглашение платформы Империя Сливов"})]}),l.jsxs("div",{className:"min-h-screen flex flex-col",children:[l.jsx(Xt,{}),l.jsx("main",{className:"flex-1 bg-background py-12",children:l.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[l.jsx("h1",{className:"text-4xl font-bold text-foreground mb-8",children:"Условия использования"}),l.jsxs("div",{className:"prose prose-invert max-w-none space-y-6 text-muted-foreground",children:[l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"1. Принятие условий"}),l.jsx("p",{children:'Используя платформу "Империя Сливов", вы соглашаетесь с настоящими условиями использования. Если вы не согласны с этими условиями, пожалуйста, не используйте наш сервис.'})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"2. Описание сервиса"}),l.jsx("p",{children:'"Империя Сливов" является агрегатором образовательных программ. Мы не являемся прямым поставщиком образовательных услуг, а предоставляем платформу для поиска и выбора курсов от партнёрских школ.'})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"3. Пользовательские обязательства"}),l.jsx("p",{children:"Пользователь обязуется:"}),l.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[l.jsx("li",{children:"Предоставлять достоверную информацию при регистрации"}),l.jsx("li",{children:"Не использовать сервис в незаконных целях"}),l.jsx("li",{children:"Соблюдать авторские права третьих лиц"})]})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"4. Оплата и возврат"}),l.jsx("p",{children:"Оплата курсов осуществляется напрямую партнёрским школам. Условия возврата определяются политикой конкретной школы. В большинстве случаев возврат возможен в течение 14 дней с момента покупки."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"5. Ограничение ответственности"}),l.jsx("p",{children:"Платформа не несёт ответственности за качество образовательных услуг, предоставляемых партнёрскими школами. Все претензии по качеству обучения направляйте непосредственно школе-партнёру."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"6. Контакты"}),l.jsxs("p",{children:["Для связи:"," ",l.jsx("a",{href:"mailto:egeze@internet.ru",className:"text-primary hover:underline",children:"egeze@internet.ru"})]})]})]})]})}),l.jsx(Zt,{})]})]}),u2=Bs("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),vx=v.forwardRef(({className:e,variant:t,...n},r)=>l.jsx("div",{ref:r,role:"alert",className:ie(u2({variant:t}),e),...n}));vx.displayName="Alert";const c2=v.forwardRef(({className:e,...t},n)=>l.jsx("h5",{ref:n,className:ie("mb-1 font-medium leading-none tracking-tight",e),...t}));c2.displayName="AlertTitle";const yx=v.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:ie("text-sm [&_p]:leading-relaxed",e),...t}));yx.displayName="AlertDescription";const d2=()=>l.jsxs(l.Fragment,{children:[l.jsxs(Mt,{children:[l.jsx("title",{children:"Дисклеймер | Империя Сливов"}),l.jsx("meta",{name:"description",content:"Правовая информация и дисклеймер платформы Империя Сливов"})]}),l.jsxs("div",{className:"min-h-screen flex flex-col",children:[l.jsx(Xt,{}),l.jsx("main",{className:"flex-1 bg-background py-12",children:l.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[l.jsx("h1",{className:"text-4xl font-bold text-foreground mb-8",children:"Дисклеймер"}),l.jsxs(vx,{className:"mb-8 border-primary/50 bg-primary/10",children:[l.jsx(db,{className:"h-5 w-5 text-primary"}),l.jsx(yx,{className:"text-foreground",children:"Внимание! Важная правовая информация о работе платформы."})]}),l.jsxs("div",{className:"prose prose-invert max-w-none space-y-6 text-muted-foreground bg-surface p-8 rounded-lg shadow-card",children:[l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Статус платформы"}),l.jsxs("p",{className:"leading-relaxed",children:['Платформа "Империя Сливов" выступает исключительно как'," ",l.jsx("strong",{className:"text-foreground",children:"агрегатор образовательных программ"})," ","и не размещает и не распространяет материалы, защищённые авторским правом."]})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Авторские права"}),l.jsx("p",{className:"leading-relaxed",children:"Все товарные знаки, логотипы, названия курсов и образовательные материалы принадлежат их законным владельцам — партнёрским школам и образовательным платформам."}),l.jsx("p",{className:"leading-relaxed mt-4",children:"Мы уважаем права интеллектуальной собственности и сотрудничаем только с легальными образовательными организациями."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Роль платформы"}),l.jsx("p",{className:"leading-relaxed",children:'"Империя Сливов" предоставляет информационные услуги:'}),l.jsxs("ul",{className:"list-disc pl-6 space-y-2 mt-3",children:[l.jsx("li",{children:"Агрегацию и систематизацию информации о курсах"}),l.jsx("li",{children:"Сравнение цен и условий обучения"}),l.jsx("li",{children:"Упрощение процесса выбора и записи на курсы"}),l.jsx("li",{children:"Техническую поддержку пользователей"})]})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Для правообладателей"}),l.jsxs("p",{className:"leading-relaxed",children:["Если вы являетесь правообладателем и считаете, что ваши права нарушены, пожалуйста, свяжитесь с нами по адресу:"," ",l.jsx("a",{href:"mailto:egeze@internet.ru",className:"text-primary hover:underline font-semibold",children:"egeze@internet.ru"})]}),l.jsx("p",{className:"leading-relaxed mt-4",children:"Мы рассматриваем все обращения в течение 3 рабочих дней и оперативно удаляем спорный контент при подтверждении нарушения прав."})]}),l.jsxs("section",{children:[l.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Юридическая информация"}),l.jsxs("div",{className:"bg-surface-2 p-6 rounded-lg border border-border",children:[l.jsx("p",{className:"font-semibold text-foreground mb-2",children:'ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ "ПОДГОТОВКА К ЕГЭ ОНЛАЙН"'}),l.jsx("p",{className:"text-sm",children:"ОГРНИП: 12077300028711"}),l.jsx("p",{className:"text-sm",children:"ИНН: 97153735646"}),l.jsx("p",{className:"text-sm mt-3",children:"© 2019–2025, Империя Сливов"})]})]})]})]})}),l.jsx(Zt,{})]})]}),f2=()=>{const e=Ws();return v.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),l.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background",children:l.jsxs("div",{className:"text-center",children:[l.jsx("h1",{className:"mb-4 text-6xl font-bold text-primary",children:"404"}),l.jsx("p",{className:"mb-4 text-2xl text-foreground",children:"Страница не найдена"}),l.jsx("p",{className:"mb-8 text-muted-foreground",children:"К сожалению, запрашиваемая страница не существует"}),l.jsxs("div",{className:"flex gap-4 justify-center",children:[l.jsx("a",{href:"/",className:"bg-primary text-primary-foreground px-6 py-3 rounded-md font-semibold hover:bg-primary-hover transition-smooth",children:"На главную"}),l.jsx("a",{href:"/shop",className:"border border-primary text-primary px-6 py-3 rounded-md font-semibold hover:bg-primary/10 transition-smooth",children:"В магазин"})]})]})})},p2=new MC,h2=()=>l.jsx(FC,{client:p2,children:l.jsxs(fC,{children:[l.jsx(Kb,{}),l.jsx(NS,{}),l.jsx(Mj,{children:l.jsxs(Pj,{children:[l.jsx(Et,{path:"/",element:l.jsx(sT,{})}),l.jsx(Et,{path:"/shop",element:l.jsx(jT,{})}),l.jsx(Et,{path:"/course/:slug",element:l.jsx(r2,{})}),l.jsx(Et,{path:"/faq",element:l.jsx(o2,{})}),l.jsx(Et,{path:"/reviews",element:l.jsx(s2,{})}),l.jsx(Et,{path:"/about",element:l.jsx(i2,{})}),l.jsx(Et,{path:"/privacy",element:l.jsx(a2,{})}),l.jsx(Et,{path:"/terms",element:l.jsx(l2,{})}),l.jsx(Et,{path:"/disclaimer",element:l.jsx(d2,{})}),l.jsx(Et,{path:"*",element:l.jsx(f2,{})})]})})]})});og(document.getElementById("root")).render(l.jsx(h2,{}));

var Md=e=>{throw TypeError(e)};var tl=(e,t,n)=>thas(e)||Md("Cannot "+n);var N=(e,t,n)=>(tl(e,t,"read from private field"),n?ncall(e):tget(e)),te=(e,t,n)=>thas(e)?Md("Cannot add the same private member more than once"):t instanceof WeakSet?tadd(e):tset(e,n),B=(e,t,n,r)=>(tl(e,t,"write to private field"),r?rcall(e,n):tset(e,n),n),Ie=(e,t,n)=>(tl(e,t,"access private method"),n);var qs=(e,t,n,r)=>({set _(o){B(e,t,o,n)},get _(){return N(e,t,r)}});function kx(e,t){for(var n=0;n<tlength;n++){const r=t[n];if(typeof r!="string"&&!ArrayisArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=ObjectgetOwnPropertyDescriptor(r,o);s&&ObjectdefineProperty(e,o,sget?s:{enumerable:!0,get:()=>r[o]})}}}return Objectfreeze(ObjectdefineProperty(e,SymboltoStringTag,{value:"Module"}))}(function(){const t=documentcreateElement("link").relList;if(t&&tsupports&&tsupports("modulepreload"))return;for(const o of documentquerySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(stype==="childList")for(const i of saddedNodes)itagName==="LINK"&&irel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return ointegrity&&(sintegrity=ointegrity),oreferrerPolicy&&(sreferrerPolicy=oreferrerPolicy),ocrossOrigin==="use-credentials"?scredentials="include":ocrossOrigin==="anonymous"?scredentials="omit":scredentials="same-origin",s}function r(o){if(oep)return;oep=!0;const s=n(o);fetch(ohref,s)}})();function Co(e){return e&&e__esModule&&ObjectprototypehasOwnPropertycall(e,"default")?edefault:e}var Wp={exports:{}},ma={},Qp={exports:{}},q={};/**
 * @license React
 * reactproductionminjs
 *
 * Copyright (c) Facebook, Incand 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 Ls=Symbolfor("reactelement"),Px=Symbolfor("reactportal"),Rx=Symbolfor("reactfragment"),Ax=Symbolfor("reactstrict_mode"),_x=Symbolfor("reactprofiler"),Ox=Symbolfor("reactprovider"),Ix=Symbolfor("reactcontext"),Lx=Symbolfor("reactforward_ref"),Mx=Symbolfor("reactsuspense"),Dx=Symbolfor("reactmemo"),Fx=Symbolfor("reactlazy"),Dd=Symboliterator;function zx(e){return e===null||typeof e!="object"?null:(e=Dd&&e[Dd]||e["@@iterator"],typeof e=="function"?e:null)}var Gp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Kp=Objectassign,Yp={};function jo(e,t,n){thisprops=e,thiscontext=t,thisrefs=Yp,thisupdater=n||Gp}joprototypeisReactComponent={};joprototypesetState=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.");thisupdaterenqueueSetState(this,e,t,"setState")};joprototypeforceUpdate=function(e){thisupdaterenqueueForceUpdate(this,e,"forceUpdate")};function qp(){}qpprototype=joprototype;function tc(e,t,n){thisprops=e,thiscontext=t,thisrefs=Yp,thisupdater=n||Gp}var nc=tcprototype=new qp;ncconstructor=tc;Kp(nc,joprototype);ncisPureReactComponent=!0;var Fd=ArrayisArray,Xp=ObjectprototypehasOwnProperty,rc={current:null},Zp={key:!0,ref:!0,__self:!0,__source:!0};function Jp(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in tref!==void 0&&(i=tref),tkey!==void 0&&(s=""+tkey),t)Xpcall(t,r)&&!ZphasOwnProperty(r)&&(o[r]=t[r]);var a=argumentslength-2;if(a===1)ochildren=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];ochildren=u}if(e&&edefaultProps)for(r in a=edefaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Ls,type:e,key:s,ref:i,props:o,_owner:rccurrent}}function $x(e,t){return{$$typeof:Ls,type:etype,key:t,ref:eref,props:eprops,_owner:e_owner}}function oc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ls}function Ux(e){var t={"=":"=0",":":"=2"};return"$"+ereplace(/[=:]/g,function(n){return t[n]})}var zd=/\/+/g;function nl(e,t){return typeof e=="object"&&e!==null&&ekey!=null?Ux(""+ekey):ttoString(36)}function xi(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ls:case Px:i=!0}}if(i)return i=e,o=o(i),e=r===""?+nl(i,0):r,Fd(o)?(n="",e!=null&&(n=ereplace(zd,"$&/")+"/"),xi(o,t,n,"",function(c){return c})):o!=null&&(oc(o)&&(o=$x(o,n+(!okey||i&&ikey===okey?"":(""+okey).replace(zd,"$&/")+"/")+e)),tpush(o)),1;if(i=0,r=r===""?:r+":",Fd(e))for(var a=0;a<elength;a++){s=e[a];var u=r+nl(s,a);i+=xi(s,t,n,u,o)}else if(u=zx(e),typeof u=="function")for(e=ucall(e),a=0;!(s=enext()).done;)s=svalue,u=r+nl(s,a++),i+=xi(s,t,n,u,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Objectkeys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Xs(e,t,n){if(e==null)return e;var r=[],o=0;return xi(e,r,"","",function(s){return tcall(n,s,o++)}),r}function Bx(e){if(e_status===-1){var t=e_result;t=t(),tthen(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_resultdefault;throw e_result}var We={current:null},wi={transition:null},Vx={ReactCurrentDispatcher:We,ReactCurrentBatchConfig:wi,ReactCurrentOwner:rc};function eh(){throw Error("act(...) is not supported in production builds of React.")}qChildren={map:Xs,forEach:function(e,t,n){Xs(e,function(){tapply(this,arguments)},n)},count:function(e){var t=0;return Xs(e,function(){t++}),t},toArray:function(e){return Xs(e,function(t){return t})||[]},only:function(e){if(!oc(e))throw Error("ReactChildrenonly expected to receive a single React element child.");return e}};qComponent=jo;qFragment=Rx;qProfiler=_x;qPureComponent=tc;qStrictMode=Ax;qSuspense=Mx;q__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vx;qact=eh;qcloneElement=function(e,t,n){if(e==null)throw Error("ReactcloneElement(...): The argument must be a React element, but you passed "+e+);var r=Kp({},eprops),o=ekey,s=eref,i=e_owner;if(t!=null){if(tref!==void 0&&(s=tref,i=rccurrent),tkey!==void 0&&(o=""+tkey),etype&&etypedefaultProps)var a=etypedefaultProps;for(u in t)Xpcall(t,u)&&!ZphasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=argumentslength-2;if(u===1)rchildren=n;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];rchildren=a}return{$$typeof:Ls,type:etype,key:o,ref:s,props:r,_owner:i}};qcreateContext=function(e){return e={$$typeof:Ix,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},eProvider={$$typeof:Ox,_context:e},eConsumer=e};qcreateElement=Jp;qcreateFactory=function(e){var t=Jpbind(null,e);return ttype=e,t};qcreateRef=function(){return{current:null}};qforwardRef=function(e){return{$$typeof:Lx,render:e}};qisValidElement=oc;qlazy=function(e){return{$$typeof:Fx,_payload:{_status:-1,_result:e},_init:Bx}};qmemo=function(e,t){return{$$typeof:Dx,type:e,compare:t===void 0?null:t}};qstartTransition=function(e){var t=witransition;witransition={};try{e()}finally{witransition=t}};qunstable_act=eh;quseCallback=function(e,t){return WecurrentuseCallback(e,t)};quseContext=function(e){return WecurrentuseContext(e)};quseDebugValue=function(){};quseDeferredValue=function(e){return WecurrentuseDeferredValue(e)};quseEffect=function(e,t){return WecurrentuseEffect(e,t)};quseId=function(){return WecurrentuseId()};quseImperativeHandle=function(e,t,n){return WecurrentuseImperativeHandle(e,t,n)};quseInsertionEffect=function(e,t){return WecurrentuseInsertionEffect(e,t)};quseLayoutEffect=function(e,t){return WecurrentuseLayoutEffect(e,t)};quseMemo=function(e,t){return WecurrentuseMemo(e,t)};quseReducer=function(e,t,n){return WecurrentuseReducer(e,t,n)};quseRef=function(e){return WecurrentuseRef(e)};quseState=function(e){return WecurrentuseState(e)};quseSyncExternalStore=function(e,t,n){return WecurrentuseSyncExternalStore(e,t,n)};quseTransition=function(){return WecurrentuseTransition()};qversion="1831";Qpexports=q;var v=Qpexports;const R=Co(v),sc=kx({__proto__:null,default:R},[v]);/**
 * @license React
 * react-jsx-runtimeproductionminjs
 *
 * Copyright (c) Facebook, Incand 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 Hx=v,Wx=Symbolfor("reactelement"),Qx=Symbolfor("reactfragment"),Gx=ObjectprototypehasOwnProperty,Kx=Hx__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIREDReactCurrentOwner,Yx={key:!0,ref:!0,__self:!0,__source:!0};function th(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),tkey!==void 0&&(s=""+tkey),tref!==void 0&&(i=tref);for(r in t)Gxcall(t,r)&&!YxhasOwnProperty(r)&&(o[r]=t[r]);if(e&&edefaultProps)for(r in t=edefaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Wx,type:e,key:s,ref:i,props:o,_owner:Kxcurrent}}maFragment=Qx;majsx=th;majsxs=th;Wpexports=ma;var l=Wpexports,nh={exports:{}},lt={},rh={exports:{}},oh={};/**
 * @license React
 * schedulerproductionminjs
 *
 * Copyright (c) Facebook, Incand 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(T,P){var L=Tlength;Tpush(P);e:for(;0<L;){var W=L-1>>>1,z=T[W];if(0<o(z,P))T[W]=P,T[L]=z,L=W;else break e}}function n(T){return Tlength===0?null:"J"}function r(T){if(Tlength===0)return null;var P="J",L=Tpop();if(L!==P){"J"=L;e:for(var W=0,z=Tlength,Y=z>>>1;W<Y;){var X=2*(W+1)-1,we=T[X],Oe=X+1,ne=T[Oe];if(0>o(we,L))Oe<z&&0>o(ne,we)?(T[W]=ne,T[Oe]=L,W=Oe):(T[W]=we,T[X]=L,W=X);else if(Oe<z&&0>o(ne,L))T[W]=ne,T[Oe]=L,W=Oe;else break e}}return P}function o(T,P){var L=TsortIndex-PsortIndex;return L!==0?L:Tid-Pid}if(typeof performance=="object"&&typeof performancenow=="function"){var s=performance;eunstable_now=function(){return snow()}}else{var i=Date,a=inow();eunstable_now=function(){return inow()-a}}var u=[],c=[],d=1,f=null,h=3,p=!1,b=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigatorscheduling!==void 0&&navigatorschedulingisInputPending!==void 0&&navigatorschedulingisInputPendingbind(navigatorscheduling);function y(T){for(var P=n(c);P!==null;){if(Pcallback===null)r(c);else if(PstartTime<=T)r(c),PsortIndex=PexpirationTime,t(u,P);else break;P=n(c)}}function S(T){if(x=!1,y(T),!b)if(n(u)!==null)b=!0,F(E);else{var P=n(c);P!==null&&H(S,PstartTime-T)}}function E(T,P){b=!1,x&&(x=!1,m(k),k=-1),p=!0;var L=h;try{for(y(P),f=n(u);f!==null&&(!(fexpirationTime>P)||T&&!$());){var W=fcallback;if(typeof W=="function"){fcallback=null,h=fpriorityLevel;var z=W(fexpirationTime<=P);P=eunstable_now(),typeof z=="function"?fcallback=z:f===n(u)&&r(u),y(P)}else r(u);f=n(u)}if(f!==null)var Y=!0;else{var X=n(c);X!==null&&H(S,XstartTime-P),Y=!1}return Y}finally{f=null,h=L,p=!1}}var C=!1,j=null,k=-1,O=5,_=-1;function $(){return!(eunstable_now()-_<O)}function M(){if(j!==null){var T=eunstable_now();_=T;var P=!0;try{P=j(!0,T)}finally{P?G():(C=!1,j=null)}}else C=!1}var G;if(typeof g=="function")G=function(){g(M)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,K=Iport2;Iport1onmessage=M,G=function(){KpostMessage(null)}}else G=function(){w(M,0)};function F(T){j=T,C||(C=!0,G())}function H(T,P){k=w(function(){T(eunstable_now())},P)}eunstable_IdlePriority=5,eunstable_ImmediatePriority=1,eunstable_LowPriority=4,eunstable_NormalPriority=3,eunstable_Profiling=null,eunstable_UserBlockingPriority=2,eunstable_cancelCallback=function(T){Tcallback=null},eunstable_continueExecution=function(){b||p||(b=!0,F(E))},eunstable_forceFrameRate=function(T){0>T||125<T?consoleerror("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<T?Mathfloor(1e3/T):5},eunstable_getCurrentPriorityLevel=function(){return h},eunstable_getFirstCallbackNode=function(){return n(u)},eunstable_next=function(T){switch(h){case 1:case 2:case 3:var P=3;break;default:P=h}var L=h;h=P;try{return T()}finally{h=L}},eunstable_pauseExecution=function(){},eunstable_requestPaint=function(){},eunstable_runWithPriority=function(T,P){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var L=h;h=T;try{return P()}finally{h=L}},eunstable_scheduleCallback=function(T,P,L){var W=eunstable_now();switch(typeof L=="object"&&L!==null?(L=Ldelay,L=typeof L=="number"&&0<L?W+L:W):L=W,T){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=L+z,T={id:d++,callback:P,priorityLevel:T,startTime:L,expirationTime:z,sortIndex:-1},L>W?(TsortIndex=L,t(c,T),n(u)===null&&T===n(c)&&(x?(m(k),k=-1):x=!0,H(S,L-W))):(TsortIndex=z,t(u,T),b||p||(b=!0,F(E))),T},eunstable_shouldYield=$,eunstable_wrapCallback=function(T){var P=h;return function(){var L=h;h=P;try{return Tapply(this,arguments)}finally{h=L}}}})(oh);rhexports=oh;var qx=rhexports;/**
 * @license React
 * react-domproductionminjs
 *
 * Copyright (c) Facebook, Incand 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 Xx=v,it=qx;function A(e){for(var t="https://reactjsorg/docs/error-decoderhtml?invariant="+e,n=1;n<argumentslength;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 sh=new Set,us={};function Nr(e,t){ho(e,t),ho(e+"Capture",t)}function ho(e,t){for(us[e]=t,e=0;e<tlength;e++)shadd(t[e])}var cn=!(typeof window>"u"||typeof windowdocument>"u"||typeof windowdocumentcreateElement>"u"),zl=ObjectprototypehasOwnProperty,Zx=/^[:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�][:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\-0-9·̀-ͯ‿-⁀]*$/,$d={},Ud={};function Jx(e){return zlcall(Ud,e)?!0:zlcall($d,e)?!1:Zxtest(e)?Ud[e]=!0:($d[e]=!0,!1)}function e0(e,t,n,r){if(n!==null&&ntype===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!nacceptsBooleans:(e=etoLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function t0(e,t,n,r){if(t===null||typeof t>"u"||e0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(ntype){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Qe(e,t,n,r,o,s,i){thisacceptsBooleans=t===2||t===3||t===4,thisattributeName=r,thisattributeNamespace=o,thismustUseProperty=n,thispropertyName=e,thistype=t,thissanitizeURL=s,thisremoveEmptyString=i}var Ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ae[e]=new Qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t="J";Ae[t]=new Qe(t,1,!1,"n",null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ae[e]=new Qe(e,2,!1,etoLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ae[e]=new Qe(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){Ae[e]=new Qe(e,3,!1,etoLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ae[e]=new Qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ae[e]=new Qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ae[e]=new Qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ae[e]=new Qe(e,5,!1,etoLowerCase(),null,!1,!1)});var ic=/[\-:]([a-z])/g;function ac(e){return "n".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=ereplace(ic,ac);Ae[t]=new Qe(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=ereplace(ic,ac);Ae[t]=new Qe(t,1,!1,e,"http://wwww3org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=ereplace(ic,ac);Ae[t]=new Qe(t,1,!1,e,"http://wwww3org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ae[e]=new Qe(e,1,!1,etoLowerCase(),null,!1,!1)});AexlinkHref=new Qe("xlinkHref",1,!1,"xlink:href","http://wwww3org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ae[e]=new Qe(e,1,!1,etoLowerCase(),null,!0,!0)});function lc(e,t,n,r){var o=AehasOwnProperty(t)?Ae[t]:null;(o!==null?otype!==0:r||!(2<tlength)||"J"!=="o"&&"J"!=="O"||"n"!=="n"&&"n"!=="N")&&(t0(t,n,o,r)&&(n=null),r||o===null?Jx(t)&&(n===null?eremoveAttribute(t):esetAttribute(t,""+n)):omustUseProperty?e[opropertyName]=n===null?otype===3?!1:"":n:(t=oattributeName,r=oattributeNamespace,n===null?eremoveAttribute(t):(o=otype,n=o===3||o===4&&n===!0?"":""+n,r?esetAttributeNS(r,t,n):esetAttribute(t,n))))}var gn=Xx__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Zs=Symbolfor("reactelement"),Fr=Symbolfor("reactportal"),zr=Symbolfor("reactfragment"),uc=Symbolfor("reactstrict_mode"),$l=Symbolfor("reactprofiler"),ih=Symbolfor("reactprovider"),ah=Symbolfor("reactcontext"),cc=Symbolfor("reactforward_ref"),Ul=Symbolfor("reactsuspense"),Bl=Symbolfor("reactsuspense_list"),dc=Symbolfor("reactmemo"),Tn=Symbolfor("reactlazy"),lh=Symbolfor("reactoffscreen"),Bd=Symboliterator;function Lo(e){return e===null||typeof e!="object"?null:(e=Bd&&e[Bd]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Objectassign,rl;function Go(e){if(rl===void 0)try{throw Error()}catch(n){var t=nstacktrim().match(/\n( *(at )?)/);rl=t&&"n"||""}return`
`+rl+e}var ol=!1;function sl(e,t){if(!e||ol)return"";ol=!0;var n=ErrorprepareStackTrace;ErrorprepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},ObjectdefineProperty(tprototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflectconstruct){try{Reflectconstruct(t,[])}catch(c){var r=c}Reflectconstruct(e,[],t)}else{try{tcall()}catch(c){r=c}ecall(tprototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof cstack=="string"){for(var o=cstacksplit(`
`),s=rstacksplit(`
`),i=olength-1,a=slength-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==s[a]){var u=`
`+o[i].replace(" at new "," at ");return edisplayName&&uincludes("<anonymous>")&&(u=ureplace("<anonymous>",edisplayName)),u}while(1<=i&&0<=a);break}}}finally{ol=!1,ErrorprepareStackTrace=n}return(e=e?edisplayName||ename:"")?Go(e):""}function n0(e){switch(etag){case 5:return Go(etype);case 16:return Go("Lazy");case 13:return Go("Suspense");case 19:return Go("SuspenseList");case 0:case 2:case 15:return e=sl(etype,!1),e;case 11:return e=sl(etyperender,!1),e;case 1:return e=sl(etype,!0),e;default:return""}}function Vl(e){if(e==null)return null;if(typeof e=="function")return edisplayName||ename||null;if(typeof e=="string")return e;switch(e){case zr:return"Fragment";case Fr:return"Portal";case $l:return"Profiler";case uc:return"StrictMode";case Ul:return"Suspense";case Bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ah:return(edisplayName||"Context")+".Consumer";case ih:return(e_contextdisplayName||"Context")+".Provider";case cc:var t=erender;return e=edisplayName,e||(e=tdisplayName||tname||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dc:return t=edisplayName||null,t!==null?t:Vl(etype)||"Memo";case Tn:t=e_payload,e=e_init;try{return Vl(e(t))}catch{}}return null}function r0(e){var t=etype;switch(etag){case 24:return"Cache";case 9:return(tdisplayName||"Context")+".Consumer";case 10:return(t_contextdisplayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=trender,e=edisplayName||ename||"",tdisplayName||(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 Vl(t);case 8:return t===uc?"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 tdisplayName||tname||null;if(typeof t=="string")return t}return null}function Kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uh(e){var t=etype;return(e=enodeName)&&etoLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function o0(e){var t=uh(e)?"checked":"value",n=ObjectgetOwnPropertyDescriptor(econstructorprototype,t),r=""+e[t];if(!ehasOwnProperty(t)&&typeof n<"u"&&typeof nget=="function"&&typeof nset=="function"){var o=nget,s=nset;return ObjectdefineProperty(e,t,{configurable:!0,get:function(){return ocall(this)},set:function(i){r=""+i,scall(this,i)}}),ObjectdefineProperty(e,t,{enumerable:nenumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e_valueTracker=null,delete e[t]}}}}function Js(e){e_valueTracker||(e_valueTracker=o0(e))}function ch(e){if(!e)return!1;var t=e_valueTracker;if(!t)return!0;var n=tgetValue(),r="";return e&&(r=uh(e)?echecked?"true":"false":evalue),e=r,e!==n?(tsetValue(e),!0):!1}function Li(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return eactiveElement||ebody}catch{return ebody}}function Hl(e,t){var n=tchecked;return ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e_wrapperStateinitialChecked})}function Vd(e,t){var n=tdefaultValue==null?"":tdefaultValue,r=tchecked!=null?tchecked:tdefaultChecked;n=Kn(tvalue!=null?tvalue:n),e_wrapperState={initialChecked:r,initialValue:n,controlled:ttype==="checkbox"||ttype==="radio"?tchecked!=null:tvalue!=null}}function dh(e,t){t=tchecked,t!=null&&lc(e,"checked",t,!1)}function Wl(e,t){dh(e,t);var n=Kn(tvalue),r=ttype;if(n!=null)r==="number"?(n===0&&evalue===""||evalue!=n)&&(evalue=""+n):evalue!==""+n&&(evalue=""+n);else if(r==="submit"||r==="reset"){eremoveAttribute("value");return}thasOwnProperty("value")?Ql(e,ttype,n):thasOwnProperty("defaultValue")&&Ql(e,ttype,Kn(tdefaultValue)),tchecked==null&&tdefaultChecked!=null&&(edefaultChecked=!!tdefaultChecked)}function Hd(e,t,n){if(thasOwnProperty("value")||thasOwnProperty("defaultValue")){var r=ttype;if(!(r!=="submit"&&r!=="reset"||tvalue!==void 0&&tvalue!==null))return;t=""+e_wrapperStateinitialValue,n||t===evalue||(evalue=t),edefaultValue=t}n=ename,n!==""&&(ename=""),edefaultChecked=!!e_wrapperStateinitialChecked,n!==""&&(ename=n)}function Ql(e,t,n){(t!=="number"||Li(eownerDocument)!==e)&&(n==null?edefaultValue=""+e_wrapperStateinitialValue:edefaultValue!==""+n&&(edefaultValue=""+n))}var Ko=ArrayisArray;function qr(e,t,n,r){if(e=eoptions,t){t={};for(var o=0;o<nlength;o++)t["$"+n[o]]=!0;for(n=0;n<elength;n++)o=thasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Kn(n),t=null,o=0;o<elength;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&&(tselected=!0)}}function Gl(e,t){if(tdangerouslySetInnerHTML!=null)throw Error(A(91));return ge({},t,{value:void 0,defaultValue:void 0,children:""+e_wrapperStateinitialValue})}function Wd(e,t){var n=tvalue;if(n==null){if(n=tchildren,t=tdefaultValue,n!=null){if(t!=null)throw Error(A(92));if(Ko(n)){if(1<nlength)throw Error(A(93));n="J"}t=n}t==null&&(t=""),n=t}e_wrapperState={initialValue:Kn(n)}}function fh(e,t){var n=Kn(tvalue),r=Kn(tdefaultValue);n!=null&&(n=""+n,n!==evalue&&(evalue=n),tdefaultValue==null&&edefaultValue!==n&&(edefaultValue=n)),r!=null&&(edefaultValue=""+r)}function Qd(e){var t=etextContent;t===e_wrapperStateinitialValue&&t!==""&&t!==null&&(evalue=t)}function ph(e){switch(e){case"svg":return"http://wwww3org/2000/svg";case"math":return"http://wwww3org/1998/Math/MathML";default:return"http://wwww3org/1999/xhtml"}}function Kl(e,t){return e==null||e==="http://wwww3org/1999/xhtml"?ph(t):e==="http://wwww3org/2000/svg"&&t==="foreignObject"?"http://wwww3org/1999/xhtml":e}var ei,hh=function(e){return typeof MSApp<"u"&&MSAppexecUnsafeLocalFunction?function(t,n,r,o){MSAppexecUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(enamespaceURI!=="http://wwww3org/2000/svg"||"innerHTML"in e)einnerHTML=t;else{for(ei=ei||documentcreateElement("div"),eiinnerHTML="<svg>"+tvalueOf().toString()+"</svg>",t=eifirstChild;efirstChild;)eremoveChild(efirstChild);for(;tfirstChild;)eappendChild(tfirstChild)}});function cs(e,t){if(t){var n=efirstChild;if(n&&n===elastChild&&nnodeType===3){nnodeValue=t;return}}etextContent=t}var Xo={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},s0=["Webkit","ms","Moz","O"];Objectkeys(Xo).forEach(function(e){s0forEach(function(t){t=t+echarAt(0).toUpperCase()+esubstring(1),Xo[t]=Xo[e]})});function mh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||XohasOwnProperty(e)&&Xo[e]?(""+t).trim():t+"px"}function gh(e,t){e=estyle;for(var n in t)if(thasOwnProperty(n)){var r=nindexOf("--")===0,o=mh(n,t[n],r);n==="float"&&(n="cssFloat"),r?esetProperty(n,o):e[n]=o}}var i0=ge({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 Yl(e,t){if(t){if(i0[e]&&(tchildren!=null||tdangerouslySetInnerHTML!=null))throw Error(A(137,e));if(tdangerouslySetInnerHTML!=null){if(tchildren!=null)throw Error(A(60));if(typeof tdangerouslySetInnerHTML!="object"||!("__html"in tdangerouslySetInnerHTML))throw Error(A(61))}if(tstyle!=null&&typeof tstyle!="object")throw Error(A(62))}}function ql(e,t){if(eindexOf("-")===-1)return typeof tis=="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 Xl=null;function fc(e){return e=etarget||esrcElement||window,ecorrespondingUseElement&&(e=ecorrespondingUseElement),enodeType===3?eparentNode:e}var Zl=null,Xr=null,Zr=null;function Gd(e){if(e=Fs(e)){if(typeof Zl!="function")throw Error(A(280));var t=estateNode;t&&(t=wa(t),Zl(estateNode,etype,t))}}function vh(e){Xr?Zr?Zrpush(e):Zr=[e]:Xr=e}function yh(){if(Xr){var e=Xr,t=Zr;if(Zr=Xr=null,Gd(e),t)for(e=0;e<tlength;e++)Gd(t[e])}}function xh(e,t){return e(t)}function wh(){}var il=!1;function bh(e,t,n){if(il)return e(t,n);il=!0;try{return xh(e,t,n)}finally{il=!1,(Xr!==null||Zr!==null)&&(wh(),yh())}}function ds(e,t){var n=estateNode;if(n===null)return null;var r=wa(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=!rdisabled)||(e=etype,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(A(231,t,typeof n));return n}var Jl=!1;if(cn)try{var Mo={};ObjectdefineProperty(Mo,"passive",{get:function(){Jl=!0}}),windowaddEventListener("test",Mo,Mo),windowremoveEventListener("test",Mo,Mo)}catch{Jl=!1}function a0(e,t,n,r,o,s,i,a,u){var c=Arrayprototypeslicecall(arguments,3);try{tapply(n,c)}catch(d){thisonError(d)}}var Zo=!1,Mi=null,Di=!1,eu=null,l0={onError:function(e){Zo=!0,Mi=e}};function u0(e,t,n,r,o,s,i,a,u){Zo=!1,Mi=null,a0apply(l0,arguments)}function c0(e,t,n,r,o,s,i,a,u){if(u0apply(this,arguments),Zo){if(Zo){var c=Mi;Zo=!1,Mi=null}else throw Error(A(198));Di||(Di=!0,eu=c)}}function Tr(e){var t=e,n=e;if(ealternate)for(;treturn;)t=treturn;else{e=t;do t=e,tflags&4098&&(n=treturn),e=treturn;while(e)}return ttag===3?n:null}function Sh(e){if(etag===13){var t=ememoizedState;if(t===null&&(e=ealternate,e!==null&&(t=ememoizedState)),t!==null)return tdehydrated}return null}function Kd(e){if(Tr(e)!==e)throw Error(A(188))}function d0(e){var t=ealternate;if(!t){if(t=Tr(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,r=t;;){var o=nreturn;if(o===null)break;var s=oalternate;if(s===null){if(r=oreturn,r!==null){n=r;continue}break}if(ochild===schild){for(s=ochild;s;){if(s===n)return Kd(o),e;if(s===r)return Kd(o),t;s=ssibling}throw Error(A(188))}if(nreturn!==rreturn)n=o,r=s;else{for(var i=!1,a=ochild;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=asibling}if(!i){for(a=schild;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=asibling}if(!i)throw Error(A(189))}}if(nalternate!==r)throw Error(A(190))}if(ntag!==3)throw Error(A(188));return nstateNodecurrent===n?e:t}function Eh(e){return e=d0(e),e!==null?Ch(e):null}function Ch(e){if(etag===5||etag===6)return e;for(e=echild;e!==null;){var t=Ch(e);if(t!==null)return t;e=esibling}return null}var jh=itunstable_scheduleCallback,Yd=itunstable_cancelCallback,f0=itunstable_shouldYield,p0=itunstable_requestPaint,xe=itunstable_now,h0=itunstable_getCurrentPriorityLevel,pc=itunstable_ImmediatePriority,Nh=itunstable_UserBlockingPriority,Fi=itunstable_NormalPriority,m0=itunstable_LowPriority,Th=itunstable_IdlePriority,ga=null,Qt=null;function g0(e){if(Qt&&typeof QtonCommitFiberRoot=="function")try{QtonCommitFiberRoot(ga,e,void 0,(ecurrentflags&128)===128)}catch{}}var At=Mathclz32?Mathclz32:x0,v0=Mathlog,y0=MathLN2;function x0(e){return e>>>=0,e===0?32:31-(v0(e)/y0|0)|0}var ti=64,ni=4194304;function Yo(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 zi(e,t){var n=ependingLanes;if(n===0)return 0;var r=0,o=esuspendedLanes,s=epingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=Yo(a):(s&=i,s!==0&&(r=Yo(s)))}else i=n&~o,i!==0?r=Yo(i):s!==0&&(r=Yo(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=eentangledLanes,t!==0)for(e=eentanglements,t&=r;0<t;)n=31-At(t),o=1<<n,r|=e[n],t&=~o;return r}function w0(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 b0(e,t){for(var n=esuspendedLanes,r=epingedLanes,o=eexpirationTimes,s=ependingLanes;0<s;){var i=31-At(s),a=1<<i,u=o[i];u===-1?(!(a&n)||a&r)&&(o[i]=w0(a,t)):u<=t&&(eexpiredLanes|=a),s&=~a}}function tu(e){return e=ependingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function kh(){var e=ti;return ti<<=1,!(ti&4194240)&&(ti=64),e}function al(e){for(var t=[],n=0;31>n;n++)tpush(e);return t}function Ms(e,t,n){ependingLanes|=t,t!==536870912&&(esuspendedLanes=0,epingedLanes=0),e=eeventTimes,t=31-At(t),e[t]=n}function S0(e,t){var n=ependingLanes&~t;ependingLanes=t,esuspendedLanes=0,epingedLanes=0,eexpiredLanes&=t,emutableReadLanes&=t,eentangledLanes&=t,t=eentanglements;var r=eeventTimes;for(e=eexpirationTimes;0<n;){var o=31-At(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function hc(e,t){var n=eentangledLanes|=t;for(e=eentanglements;n;){var r=31-At(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var re=0;function Ph(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Rh,mc,Ah,_h,Oh,nu=!1,ri=[],zn=null,function qd(e,t){switch(e){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":break;case"mouseover":case"mouseout":Un=null;break;case"pointerover":case"pointerout":fsdelete(tpointerId);break;case"gotpointercapture":case"lostpointercapture":psdelete(tpointerId)}}function Do(e,t,n,r,o,s){return e===null||enativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Fs(t),t!==null&&mc(t)),e):(eeventSystemFlags|=r,t=etargetContainers,o!==null&&tindexOf(o)===-1&&tpush(o),e)}function C0(e,t,n,r,o){switch(t){case"focusin":return zn=Do(zn,e,t,n,r,o),!0;case"dragenter":return case"mouseover":return Un=Do(Un,e,t,n,r,o),!0;case"pointerover":var s=opointerId;return fsset(s,Do(fsget(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=opointerId,psset(s,Do(psget(s)||null,e,t,n,r,o)),!0}return!1}function Ih(e){var t=ar(etarget);if(t!==null){var n=Tr(t);if(n!==null){if(t=ntag,t===13){if(t=Sh(n),t!==null){eblockedOn=t,Oh(epriority,function(){Ah(n)});return}}else if(t===3&&nstateNodecurrentmemoizedStateisDehydrated){eblockedOn=ntag===3?nstateNodecontainerInfo:null;return}}}eblockedOn=null}function bi(e){if(eblockedOn!==null)return!1;for(var t=etargetContainers;0<tlength;){var n=ru(edomEventName,eeventSystemFlags,"J",enativeEvent);if(n===null){n=enativeEvent;var r=new nconstructor(ntype,n);Xl=r,ntargetdispatchEvent(r),Xl=null}else return t=Fs(n),t!==null&&mc(t),eblockedOn=n,!1;tshift()}return!0}function Xd(e,t,n){bi(e)&&ndelete(t)}function j0(){nu=!1,zn!==null&&bi(zn)&&(zn=null),$n!==null&&bi($n)&&(for(var n=1;n<rilength;n++){var r=ri[n];rblockedOn===e&&(rblockedOn=null)}}for(zn!==null&&Fo(zn,e),$n!==null&&Fo($n,e),Un!==null&&Fo(Un,e),fsforEach(t),psforEach(t),n=0;n<Pnlength;n++)r=Pn[n],rblockedOn===e&&(rblockedOn=null);for(;0<Pnlength&&(n="J",nblockedOn===null);)Ih(n),nblockedOn===null&&Pnshift()}var Jr=gnReactCurrentBatchConfig,$i=!0;function N0(e,t,n,r){var o=re,s=Jrtransition;Jrtransition=null;try{re=1,gc(e,t,n,r)}finally{re=o,Jrtransition=s}}function T0(e,t,n,r){var o=re,s=Jrtransition;Jrtransition=null;try{re=4,gc(e,t,n,r)}finally{re=o,Jrtransition=s}}function gc(e,t,n,r){if($i){var o=ru(e,t,n,r);if(o===null)vl(e,t,r,Ui,n),qd(e,r);else if(C0(o,e,t,n,r))rstopPropagation();else if(qd(e,r),t&4&&-1<E0indexOf(e)){for(;o!==null;){var s=Fs(o);if(s!==null&&Rh(s),s=ru(e,t,n,r),s===null&&vl(e,t,r,Ui,n),s===o)break;o=s}o!==null&&rstopPropagation()}else vl(e,t,r,null,n)}}var Ui=null;function ru(e,t,n,r){if(Ui=null,e=fc(r),e=ar(e),e!==null)if(t=Tr(e),t===null)e=null;else if(n=ttag,n===13){if(e=Sh(t),e!==null)return e;e=null}else if(n===3){if(tstateNodecurrentmemoizedStateisDehydrated)return ttag===3?tstateNodecontainerInfo:null;e=null}else t!==e&&(e=null);return Ui=e,null}function Lh(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(h0()){case pc:return 1;case Nh:return 4;case Fi:case m0:return 16;case Th:return 536870912;default:return 16}default:return 16}}var Mn=null,vc=null,Si=null;function Mh(){if(Si)return Si;var e,t=vc,n=tlength,r,o="value"in Mn?Mnvalue:MntextContent,s=olength;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return Si=oslice(e,1<r?1-r:void 0)}function Ei(e){var t=ekeyCode;return"charCode"in e?(e=echarCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function oi(){return!0}function Zd(){return!1}function ut(e){function t(n,r,o,s,i){this_reactName=n,this_targetInst=o,thistype=r,thisnativeEvent=s,thistarget=i,thiscurrentTarget=null;for(var a in e)ehasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return thisisDefaultPrevented=(sdefaultPrevented!=null?sdefaultPrevented:sreturnValue===!1)?oi:Zd,thisisPropagationStopped=Zd,this}return ge(tprototype,{preventDefault:function(){thisdefaultPrevented=!0;var n=thisnativeEvent;n&&(npreventDefault?npreventDefault():typeof nreturnValue!="unknown"&&(nreturnValue=!1),thisisDefaultPrevented=oi)},stopPropagation:function(){var n=thisnativeEvent;n&&(nstopPropagation?nstopPropagation():typeof ncancelBubble!="unknown"&&(ncancelBubble=!0),thisisPropagationStopped=oi)},persist:function(){},isPersistent:oi}),t}var No={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return etimeStamp||Datenow()},defaultPrevented:0,isTrusted:0},yc=ut(No),Ds=ge({},No,{view:0,detail:0}),k0=ut(Ds),ll,ul,zo,va=ge({},Ds,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xc,button:0,buttons:0,relatedTarget:function(e){return erelatedTarget===void 0?efromElement===esrcElement?etoElement:efromElement:erelatedTarget},movementX:function(e){return"movementX"in e?emovementX:(e!==zo&&(zo&&etype==="mousemove"?(ll=escreenX-zoscreenX,ul=escreenY-zoscreenY):ul=ll=0,zo=e),ll)},movementY:function(e){return"movementY"in e?emovementY:ul}}),Jd=ut(va),P0=ge({},va,{dataTransfer:0}),R0=ut(P0),A0=ge({},Ds,{relatedTarget:0}),cl=ut(A0),_0=ge({},No,{animationName:0,elapsedTime:0,pseudoElement:0}),O0=ut(_0),I0=ge({},No,{clipboardData:function(e){return"clipboardData"in e?eclipboardData:windowclipboardData}}),L0=ut(I0),M0=ge({},No,{data:0}),ef=ut(M0),D0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},F0={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"},z0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $0(e){var t=thisnativeEvent;return tgetModifierState?tgetModifierState(e):(e=z0[e])?!!t[e]:!1}function xc(){return $0}var U0=ge({},Ds,{key:function(e){if(ekey){var t=D0[ekey]||ekey;if(t!=="Unidentified")return t}return etype==="keypress"?(e=Ei(e),e===13?"Enter":StringfromCharCode(e)):etype==="keydown"||etype==="keyup"?F0[ekeyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xc,charCode:function(e){return etype==="keypress"?Ei(e):0},keyCode:function(e){return etype==="keydown"||etype==="keyup"?ekeyCode:0},which:function(e){return etype==="keypress"?Ei(e):etype==="keydown"||etype==="keyup"?ekeyCode:0}}),B0=ut(U0),V0=ge({},va,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tf=ut(V0),H0=ge({},Ds,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xc}),W0=ut(H0),Q0=ge({},No,{propertyName:0,elapsedTime:0,pseudoElement:0}),G0=ut(Q0),K0=ge({},va,{deltaX:function(e){return"deltaX"in e?edeltaX:"wheelDeltaX"in e?-ewheelDeltaX:0},deltaY:function(e){return"deltaY"in e?edeltaY:"wheelDeltaY"in e?-ewheelDeltaY:"wheelDelta"in e?-ewheelDelta:0},deltaZ:0,deltaMode:0}),Y0=ut(K0),q0=[9,13,27,32],wc=cn&&"CompositionEvent"in window,Jo=null;cn&&"documentMode"in document&&(Jo=documentdocumentMode);var X0=cn&&"TextEvent"in window&&!Jo,Dh=cn&&(!wc||Jo&&8<Jo&&11>=Jo),nf=" ",rf=!1;function Fh(e,t){switch(e){case"keyup":return q0indexOf(tkeyCode)!==-1;case"keydown":return tkeyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zh(e){return e=edetail,typeof e=="object"&&"data"in e?edata:null}var $r=!1;function Z0(e,t){switch(e){case"compositionend":return zh(t);case"keypress":return twhich!==32?null:(rf=!0,nf);case"textInput":return e=tdata,e===nf&&rf?null:e;default:return null}}function J0(e,t){if($r)return e==="compositionend"||!wc&&Fh(e,t)?(e=Mh(),Si=vc=Mn=null,$r=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(tctrlKey||taltKey||tmetaKey)||tctrlKey&&taltKey){if(tchar&&1<tcharlength)return tchar;if(twhich)return StringfromCharCode(twhich)}return null;case"compositionend":return Dh&&tlocale!=="ko"?null:tdata;default:return null}}var ew={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 of(e){var t=e&&enodeName&&enodeNametoLowerCase();return t==="input"?!!ew[etype]:t==="textarea"}function $h(e,t,n,r){vh(r),t=Bi(t,"onChange"),0<tlength&&(n=new yc("onChange","change",null,n,r),epush({event:n,listeners:t}))}var es=null,ms=null;function tw(e){Xh(e,0)}function ya(e){var t=Vr(e);if(ch(t))return e}function nw(e,t){if(e==="change")return t}var Uh=!1;if(cn){var dl;if(cn){var fl="oninput"in document;if(!fl){var sf=documentcreateElement("div");sfsetAttribute("oninput","return;"),fl=typeof sfoninput=="function"}dl=fl}else dl=!1;Uh=dl&&(!documentdocumentMode||9<documentdocumentMode)}function af(){es&&(esdetachEvent("onpropertychange",Bh),ms=es=null)}function Bh(e){if(epropertyName==="value"&&ya(ms)){var t=[];$h(t,ms,e,fc(e)),bh(tw,t)}}function rw(e,t,n){e==="focusin"?(af(),es=t,ms=n,esattachEvent("onpropertychange",Bh)):e==="focusout"&&af()}function ow(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ya(ms)}function sw(e,t){if(e==="click")return ya(t)}function iw(e,t){if(e==="input"||e==="change")return ya(t)}function aw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Objectis=="function"?Objectis:aw;function gs(e,t){if(Ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Objectkeys(e),r=Objectkeys(t);if(nlength!==rlength)return!1;for(r=0;r<nlength;r++){var o=n[r];if(!zlcall(t,o)||!Ot(e[o],t[o]))return!1}return!0}function lf(e){for(;e&&efirstChild;)e=efirstChild;return e}function uf(e,t){var n=lf(e);e=0;for(var r;n;){if(nnodeType===3){if(r=e+ntextContentlength,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(nnextSibling){n=nnextSibling;break e}n=nparentNode}n=void 0}n=lf(n)}}function Vh(e,t){return e&&t?e===t?!0:e&&enodeType===3?!1:t&&tnodeType===3?Vh(e,tparentNode):"contains"in e?econtains(t):ecompareDocumentPosition?!!(ecompareDocumentPosition(t)&16):!1:!1}function Hh(){for(var e=window,t=Li();t instanceof eHTMLIFrameElement;){try{var n=typeof tcontentWindowlocationhref=="string"}catch{n=!1}if(n)e=tcontentWindow;else break;t=Li(edocument)}return t}function bc(e){var t=e&&enodeName&&enodeNametoLowerCase();return t&&(t==="input"&&(etype==="text"||etype==="search"||etype==="tel"||etype==="url"||etype==="password")||t==="textarea"||econtentEditable==="true")}function lw(e){var t=Hh(),n=efocusedElem,r=eselectionRange;if(t!==n&&n&&nownerDocument&&Vh(nownerDocumentdocumentElement,n)){if(r!==null&&bc(n)){if(t=rstart,e=rend,e===void 0&&(e=t),"selectionStart"in n)nselectionStart=t,nselectionEnd=Mathmin(e,nvaluelength);else if(e=(t=nownerDocument||document)&&tdefaultView||window,egetSelection){e=egetSelection();var o=ntextContentlength,s=Mathmin(rstart,o);r=rend===void 0?s:Mathmin(rend,o),!eextend&&s>r&&(o=r,r=s,s=o),o=uf(n,s);var i=uf(n,r);o&&i&&(erangeCount!==1||eanchorNode!==onode||eanchorOffset!==ooffset||efocusNode!==inode||efocusOffset!==ioffset)&&(t=tcreateRange(),tsetStart(onode,ooffset),eremoveAllRanges(),s>r?(eaddRange(t),eextend(inode,ioffset)):(tsetEnd(inode,ioffset),eaddRange(t)))}}for(t=[],e=n;e=eparentNode;)enodeType===1&&tpush({element:e,left:escrollLeft,top:escrollTop});for(typeof nfocus=="function"&&nfocus(),n=0;n<tlength;n++)e=t[n],eelementscrollLeft=eleft,eelementscrollTop=etop}}var uw=cn&&"documentMode"in document&&11>=documentdocumentMode,Ur=null,ou=null,ts=null,su=!1;function cf(e,t,n){var r=nwindow===n?ndocument:nnodeType===9?n:nownerDocument;su||Ur==null||Ur!==Li(r)||(r=Ur,"selectionStart"in r&&bc(r)?r={start:rselectionStart,end:rselectionEnd}:(r=(rownerDocument&&rownerDocumentdefaultView||window).getSelection(),r={anchorNode:ranchorNode,anchorOffset:ranchorOffset,focusNode:rfocusNode,focusOffset:rfocusOffset}),ts&&gs(ts,r)||(ts=r,r=Bi(ou,"onSelect"),0<rlength&&(t=new yc("onSelect","select",null,t,n),epush({event:t,listeners:r}),ttarget=Ur)))}function si(e,t){var n={};return n[etoLowerCase()]=ttoLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Br={animationend:si("Animation","AnimationEnd"),animationiteration:si("Animation","AnimationIteration"),animationstart:si("Animation","AnimationStart"),transitionend:si("Transition","TransitionEnd")},pl={},Wh={};cn&&(Wh=documentcreateElement("div").style,"AnimationEvent"in window||(delete Branimationendanimation,delete Branimationiterationanimation,delete Branimationstartanimation),"TransitionEvent"in window||delete Brtransitionendtransition);function xa(e){if(pl[e])return pl[e];if(!Br[e])return e;var t=Br[e],n;for(n in t)if(thasOwnProperty(n)&&n in Wh)return pl[e]=t[n];return e}var Qh=xa("animationend"),Gh=xa("animationiteration"),Kh=xa("animationstart"),Yh=xa("transitionend"),qh=new Map,df="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 Zn(e,t){qhset(e,t),Nr(t,[e])}for(var hl=0;hl<dflength;hl++){var ml=df[hl],cw=mltoLowerCase(),dw="J".toUpperCase()+mlslice(1);Zn(cw,"on"+dw)}Zn(Qh,"onAnimationEnd");Zn(Gh,"onAnimationIteration");Zn(Kh,"onAnimationStart");Zn("dblclick","onDoubleClick");Zn("focusin","onFocus");Zn("focusout","onBlur");Zn(Yh,"onTransitionEnd");ho("onMouseEnter",["mouseout","mouseover"]);ho("onMouseLeave",["mouseout","mouseover"]);ho("onPointerEnter",["pointerout","pointerover"]);ho("onPointerLeave",["pointerout","pointerover"]);Nr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Nr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Nr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Nr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Nr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Nr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qo="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(" "),fw=new Set("cancel close invalid load scroll toggle".split(" ").concat(qo));function ff(e,t,n){var r=etype||"unknown-event";ecurrentTarget=n,c0(r,t,void 0,e),ecurrentTarget=null}function Xh(e,t){t=(t&4)!==0;for(var n=0;n<elength;n++){var r=e[n],o=revent;r=rlisteners;e:{var s=void 0;if(t)for(var i=rlength-1;0<=i;i--){var a=r[i],u=ainstance,c=acurrentTarget;if(a=alistener,u!==s&&oisPropagationStopped())break e;ff(o,a,c),s=u}else for(i=0;i<rlength;i++){if(a=r[i],u=ainstance,c=acurrentTarget,a=alistener,u!==s&&oisPropagationStopped())break e;ff(o,a,c),s=u}}}if(Di)throw e=eu,Di=!1,eu=null,e}function le(e,t){var n=t[cu];n===void 0&&(n=t[cu]=new Set);var r=e+"__bubble";nhas(r)||(Zh(t,e,2,!1),nadd(r))}function gl(e,t,n){var r=0;t&&(r|=4),Zh(n,e,r,t)}var ii="_reactListening"+Mathrandom().toString(36).slice(2);function vs(e){if(!e[ii]){e[ii]=!0,shforEach(function(n){n!=="selectionchange"&&(fwhas(n)||gl(n,!1,e),gl(n,!0,e))});var t=enodeType===9?e:eownerDocument;t===null||t[ii]||(t[ii]=!0,gl("selectionchange",!1,t))}}function Zh(e,t,n,r){switch(Lh(t)){case 1:var o=N0;break;case 4:o=T0;break;default:o=gc}n=obind(null,t,n,e),o=void 0,!Jl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?eaddEventListener(t,n,{capture:!0,passive:o}):eaddEventListener(t,n,!0):o!==void 0?eaddEventListener(t,n,{passive:o}):eaddEventListener(t,n,!1)}function vl(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=rtag;if(i===3||i===4){var a=rstateNodecontainerInfo;if(a===o||anodeType===8&&aparentNode===o)break;if(i===4)for(i=rreturn;i!==null;){var u=itag;if((u===3||u===4)&&(u=istateNodecontainerInfo,u===o||unodeType===8&&uparentNode===o))return;i=ireturn}for(;a!==null;){if(i=ar(a),i===null)return;if(u=itag,u===5||u===6){r=s=i;continue e}a=aparentNode}}r=rreturn}bh(function(){var c=s,d=fc(n),f=[];e:{var h=qhget(e);if(h!==void 0){var p=yc,b=e;switch(e){case"keypress":if(Ei(n)===0)break e;case"keydown":case"keyup":p=B0;break;case"focusin":b="focus",p=cl;break;case"focusout":b="blur",p=cl;break;case"beforeblur":case"afterblur":p=cl;break;case"click":if(nbutton===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Jd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=R0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=W0;break;case Qh:case Gh:case Kh:p=O0;break;case Yh:p=G0;break;case"scroll":p=k0;break;case"wheel":p=Y0;break;case"copy":case"cut":case"paste":p=L0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=tf}var x=(t&4)!==0,w=!x&&e==="scroll",m=x?h!==null?h+"Capture":null:h;x=[];for(var g=c,y;g!==null;){y=g;var S=ystateNode;if(ytag===5&&S!==null&&(y=S,m!==null&&(S=ds(g,m),S!=null&&xpush(ys(g,S,y)))),w)break;g=greturn}0<xlength&&(h=new p(h,b,null,n,d),fpush({event:h,listeners:x}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Xl&&(b=nrelatedTarget||nfromElement)&&(ar(b)||b[dn]))break e;if((p||h)&&(h=dwindow===d?d:(h=downerDocument)?hdefaultView||hparentWindow:window,p?(b=nrelatedTarget||ntoElement,p=c,b=b?ar(b):null,b!==null&&(w=Tr(b),b!==w||btag!==5&&btag!==6)&&(b=null)):(p=null,b=c),p!==b)){if(x=Jd,S="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(x=tf,S="onPointerLeave",m="onPointerEnter",g="pointer"),w=p==null?h:Vr(p),y=b==null?h:Vr(b),h=new x(S,g+"leave",p,n,d),htarget=w,hrelatedTarget=y,S=null,ar(d)===c&&(x=new x(m,g+"enter",b,n,d),xtarget=y,xrelatedTarget=w,S=x),w=S,p&&b)t:{for(x=p,m=b,g=0,y=x;y;y=Mr(y))g++;for(y=0,S=m;S;S=Mr(S))y++;for(;0<g-y;)x=Mr(x),g--;for(;0<y-g;)m=Mr(m),y--;for(;g--;){if(x===m||m!==null&&x===malternate)break t;x=Mr(x),m=Mr(m)}x=null}else x=null;p!==null&&pf(f,h,p,x,!1),b!==null&&w!==null&&pf(f,w,b,x,!0)}}e:{if(h=c?Vr(c):window,p=hnodeName&&hnodeNametoLowerCase(),p==="select"||p==="input"&&htype==="file")var E=nw;else if(of(h))if(Uh)E=iw;else{E=ow;var C=rw}else(p=hnodeName)&&ptoLowerCase()==="input"&&(htype==="checkbox"||htype==="radio")&&(E=sw);if(E&&(E=E(e,c))){$h(f,E,n,d);break e}C&&C(e,h,c),e==="focusout"&&(C=h_wrapperState)&&Ccontrolled&&htype==="number"&&Ql(h,"number",hvalue)}switch(C=c?Vr(c):window,e){case"focusin":(of(C)||CcontentEditable==="true")&&(Ur=C,ou=c,ts=null);break;case"focusout":ts=ou=Ur=null;break;case"mousedown":su=!0;break;case"contextmenu":case"mouseup":case"dragend":su=!1,cf(f,n,d);break;case"selectionchange":if(uw)break;case"keydown":case"keyup":cf(f,n,d)}var j;if(wc)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else $r?Fh(e,n)&&(k="onCompositionEnd"):e==="keydown"&&nkeyCode===229&&(k="onCompositionStart");k&&(Dh&&nlocale!=="ko"&&($r||k!=="onCompositionStart"?k==="onCompositionEnd"&&$r&&(j=Mh()):(Mn=d,vc="value"in Mn?Mnvalue:MntextContent,$r=!0)),C=Bi(c,k),0<Clength&&(k=new ef(k,e,null,n,d),fpush({event:k,listeners:C}),j?kdata=j:(j=zh(n),j!==null&&(kdata=j)))),(j=X0?Z0(e,n):J0(e,n))&&(c=Bi(c,"onBeforeInput"),0<clength&&(d=new ef("onBeforeInput","beforeinput",null,n,d),fpush({event:d,listeners:c}),ddata=j))}Xh(f,t)})}function ys(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=ostateNode;otag===5&&s!==null&&(o=s,s=ds(e,n),s!=null&&runshift(ys(e,s,o)),s=ds(e,t),s!=null&&rpush(ys(e,s,o))),e=ereturn}return r}function Mr(e){if(e===null)return null;do e=ereturn;while(e&&etag!==5);return e||null}function pf(e,t,n,r,o){for(var s=t_reactName,i=[];n!==null&&n!==r;){var a=n,u=aalternate,c=astateNode;if(u!==null&&u===r)break;atag===5&&c!==null&&(a=c,o?(u=ds(n,s),u!=null&&iunshift(ys(n,u,a))):o||(u=ds(n,s),u!=null&&ipush(ys(n,u,a)))),n=nreturn}ilength!==0&&epush({event:t,listeners:i})}var pw=/\r\n?/g,hw=/|�/g;function hf(e){return(typeof e=="string"?e:""+e).replace(pw,`
`).replace(hw,"")}function ai(e,t,n){if(t=hf(t),hf(e)!==t&&n)throw Error(A(425))}function Vi(){}var iu=null,au=null;function lu(e,t){return e==="textarea"||e==="noscript"||typeof tchildren=="string"||typeof tchildren=="number"||typeof tdangerouslySetInnerHTML=="object"&&tdangerouslySetInnerHTML!==null&&tdangerouslySetInnerHTML__html!=null}var uu=typeof setTimeout=="function"?setTimeout:void 0,mw=typeof clearTimeout=="function"?clearTimeout:void 0,mf=typeof Promise=="function"?Promise:void 0,gw=typeof queueMicrotask=="function"?queueMicrotask:typeof mf<"u"?function(e){return mfresolve(null).then(e).catch(vw)}:uu;function vw(e){setTimeout(function(){throw e})}function yl(e,t){var n=t,r=0;do{var o=nnextSibling;if(eremoveChild(n),o&&onodeType===8)if(n=odata,n==="/$"){if(r===0){eremoveChild(o),hs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);hs(t)}function Bn(e){for(;e!=null;e=enextSibling){var t=enodeType;if(t===1||t===3)break;if(t===8){if(t=edata,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function gf(e){e=epreviousSibling;for(var t=0;e;){if(enodeType===8){var n=edata;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=epreviousSibling}return null}var To=Mathrandom().toString(36).slice(2),Ht="__reactFiber$"+To,xs="__reactProps$"+To,dn="__reactContainer$"+To,cu="__reactEvents$"+To,yw="__reactListeners$"+To,xw="__reactHandles$"+To;function ar(e){var t=e[Ht];if(t)return t;for(var n=eparentNode;n;){if(t=n[dn]||n[Ht]){if(n=talternate,tchild!==null||n!==null&&nchild!==null)for(e=gf(e);e!==null;){if(n=e[Ht])return n;e=gf(e)}return t}e=n,n=eparentNode}return null}function Fs(e){return e=e[Ht]||e[dn],!e||etag!==5&&etag!==6&&etag!==13&&etag!==3?null:e}function Vr(e){if(etag===5||etag===6)return estateNode;throw Error(A(33))}function wa(e){return e[xs]||null}var du=[],Hr=-1;function Jn(e){return{current:e}}function ue(e){0>Hr||(ecurrent=du[Hr],du[Hr]=null,Hr--)}function se(e,t){Hr++,du[Hr]=ecurrent,ecurrent=t}var Yn={},function mo(e,t){var n=etypecontextTypes;if(!n)return Yn;var r=estateNode;if(r&&r__reactInternalMemoizedUnmaskedChildContext===t)return r__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=estateNode,e__reactInternalMemoizedUnmaskedChildContext=t,e__reactInternalMemoizedMaskedChildContext=o),o}function Ze(e){return e=echildContextTypes,e!=null}function Hi(){ue(Xe),ue($e)}function vf(e,t,n){if($ecurrent!==Yn)throw Error(A(168));se($e,t),se(Xe,n)}function Jh(e,t,n){var r=estateNode;if(t=tchildContextTypes,typeof rgetChildContext!="function")return n;r=rgetChildContext();for(var o in r)if(!(o in t))throw Error(A(108,r0(e)||"Unknown",o));return ge({},n,r)}function Wi(e){return e=(e=estateNode)&&e__reactInternalMemoizedMergedChildContext||Yn,wr=$ecurrent,se($e,e),se(Xe,Xecurrent),!0}function yf(e,t,n){var r=estateNode;if(!r)throw Error(A(169));n?(e=Jh(e,t,wr),r__reactInternalMemoizedMergedChildContext=e,ue(Xe),ue($e),se($e,e)):ue(Xe),se(Xe,n)}var on=null,ba=!1,xl=!1;function em(e){on===null?on=[e]:onpush(e)}function ww(e){ba=!0,em(e)}function er(){if(!xl&&on!==null){xl=!0;var e=0,t=re;try{var n=on;for(re=1;e<nlength;e++){var r=n[e];do r=r(!0);while(r!==null)}on=null,ba=!1}catch(o){throw on!==null&&(on=onslice(e+1)),jh(pc,er),o}finally{re=t,xl=!1}}return null}var Wr=[],Qr=0,Qi=null,Gi=0,ft=[],pt=0,br=null,an=1,ln="";function sr(e,t){Wr[Qr++]=Gi,Wr[Qr++]=Qi,Qi=e,Gi=t}function tm(e,t,n){ft[pt++]=an,ft[pt++]=ln,ft[pt++]=br,br=e;var r=an;e=ln;var o=32-At(r)-1;r&=~(1<<o),n+=1;var s=32-At(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,an=1<<32-At(t)+o|n<<o|r,ln=s+e}else an=1<<s|n<<o|r,ln=e}function Sc(e){ereturn!==null&&(sr(e,1),tm(e,1,0))}function Ec(e){for(;e===Qi;)Qi=Wr[--Qr],Wr[Qr]=null,Gi=Wr[--Qr],Wr[Qr]=null;for(;e===br;)br=ft[--pt],ft[pt]=null,ln=ft[--pt],ft[pt]=null,an=ft[--pt],ft[pt]=null}var ot=null,rt=null,pe=!1,Pt=null;function nm(e,t){var n=ht(5,null,null,0);nelementType="DELETED",nstateNode=t,nreturn=e,t=edeletions,t===null?(edeletions=[n],eflags|=16):tpush(n)}function xf(e,t){switch(etag){case 5:var n=etype;return t=tnodeType!==1||ntoLowerCase()!==tnodeNametoLowerCase()?null:t,t!==null?(estateNode=t,ot=e,rt=Bn(tfirstChild),!0):!1;case 6:return t=ependingProps===""||tnodeType!==3?null:t,t!==null?(estateNode=t,ot=e,rt=null,!0):!1;case 13:return t=tnodeType!==8?null:t,t!==null?(n=br!==null?{id:an,overflow:ln}:null,ememoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ht(18,null,null,0),nstateNode=t,nreturn=e,echild=n,ot=e,rt=null,!0):!1;default:return!1}}function fu(e){return(emode&1)!==0&&(eflags&128)===0}function pu(e){if(pe){var t=rt;if(t){var n=t;if(!xf(e,t)){if(fu(e))throw Error(A(418));t=Bn(nnextSibling);var r=ot;t&&xf(e,t)?nm(r,n):(eflags=eflags&-4097|2,pe=!1,ot=e)}}else{if(fu(e))throw Error(A(418));eflags=eflags&-4097|2,pe=!1,ot=e}}}function wf(e){for(e=ereturn;e!==null&&etag!==5&&etag!==3&&etag!==13;)e=ereturn;ot=e}function li(e){if(e!==ot)return!1;if(!pe)return wf(e),pe=!0,!1;var t;if((t=etag!==3)&&!(t=etag!==5)&&(t=etype,t=t!=="head"&&t!=="body"&&!lu(etype,ememoizedProps)),t&&(t=rt)){if(fu(e))throw rm(),Error(A(418));for(;t;)nm(e,t),t=Bn(tnextSibling)}if(wf(e),etag===13){if(e=ememoizedState,e=e!==null?edehydrated:null,!e)throw Error(A(317));e:{for(e=enextSibling,t=0;e;){if(enodeType===8){var n=edata;if(n==="/$"){if(t===0){rt=Bn(enextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=enextSibling}rt=null}}else rt=ot?Bn(estateNodenextSibling):null;return!0}function rm(){for(var e=rt;e;)e=Bn(enextSibling)}function go(){rt=ot=null,pe=!1}function Cc(e){Pt===null?Pt=[e]:Ptpush(e)}var bw=gnReactCurrentBatchConfig;function $o(e,t,n){if(e=nref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n_owner){if(n=n_owner,n){if(ntag!==1)throw Error(A(309));var r=nstateNode}if(!r)throw Error(A(147,e));var o=r,s=""+e;return t!==null&&tref!==null&&typeof tref=="function"&&tref_stringRef===s?tref:(t=function(i){var a=orefs;i===null?delete a[s]:a[s]=i},t_stringRef=s,t)}if(typeof e!="string")throw Error(A(284));if(!n_owner)throw Error(A(290,e))}return e}function ui(e,t){throw e=ObjectprototypetoStringcall(t),Error(A(31,e==="[object Object]"?"object with keys {"+Objectkeys(t).join(", ")+"}":e))}function bf(e){var t=e_init;return t(e_payload)}function om(e){function t(m,g){if(e){var y=mdeletions;y===null?(mdeletions=[g],mflags|=16):ypush(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=gsibling;return null}function r(m,g){for(m=new Map;g!==null;)gkey!==null?mset(gkey,g):mset(gindex,g),g=gsibling;return m}function o(m,g){return m=Qn(m,g),mindex=0,msibling=null,m}function s(m,g,y){return mindex=y,e?(y=malternate,y!==null?(y=yindex,y<g?(mflags|=2,g):y):(mflags|=2,g)):(mflags|=1048576,g)}function i(m){return e&&malternate===null&&(mflags|=2),m}function a(m,g,y,S){return g===null||gtag!==6?(g=Nl(y,mmode,S),greturn=m,g):(g=o(g,y),greturn=m,g)}function u(m,g,y,S){var E=ytype;return E===zr?d(m,g,ypropschildren,S,ykey):g!==null&&(gelementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Tn&&bf(E)===gtype)?(S=o(g,yprops),Sref=$o(m,g,y),Sreturn=m,S):(S=Ri(ytype,ykey,yprops,null,mmode,S),Sref=$o(m,g,y),Sreturn=m,S)}function c(m,g,y,S){return g===null||gtag!==4||gstateNodecontainerInfo!==ycontainerInfo||gstateNodeimplementation!==yimplementation?(g=Tl(y,mmode,S),greturn=m,g):(g=o(g,ychildren||[]),greturn=m,g)}function d(m,g,y,S,E){return g===null||gtag!==7?(g=vr(y,mmode,S,E),greturn=m,g):(g=o(g,y),greturn=m,g)}function f(m,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Nl(""+g,mmode,y),greturn=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Zs:return y=Ri(gtype,gkey,gprops,null,mmode,y),yref=$o(m,null,g),yreturn=m,y;case Fr:return g=Tl(g,mmode,y),greturn=m,g;case Tn:var S=g_init;return f(m,S(g_payload),y)}if(Ko(g)||Lo(g))return g=vr(g,mmode,y,null),greturn=m,g;ui(m,g)}return null}function h(m,g,y,S){var E=g!==null?gkey:null;if(typeof y=="string"&&y!==""||typeof y=="number")return E!==null?null:a(m,g,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Zs:return ykey===E?u(m,g,y,S):null;case Fr:return ykey===E?c(m,g,y,S):null;case Tn:return E=y_init,h(m,g,E(y_payload),S)}if(Ko(y)||Lo(y))return E!==null?null:d(m,g,y,S,null);ui(m,y)}return null}function p(m,g,y,S,E){if(typeof S=="string"&&S!==""||typeof S=="number")return m=mget(y)||null,a(g,m,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Zs:return m=mget(Skey===null?y:Skey)||null,u(g,m,S,E);case Fr:return m=mget(Skey===null?y:Skey)||null,c(g,m,S,E);case Tn:var C=S_init;return p(m,g,y,C(S_payload),E)}if(Ko(S)||Lo(S))return m=mget(y)||null,d(g,m,S,E,null);ui(g,S)}return null}function b(m,g,y,S){for(var E=null,C=null,j=g,k=g=0,O=null;j!==null&&k<ylength;k++){jindex>k?(O=j,j=null):O=jsibling;var _=h(m,j,y[k],S);if(_===null){j===null&&(j=O);break}e&&j&&_alternate===null&&t(m,j),g=s(_,g,k),C===null?E=_:Csibling=_,C=_,j=O}if(k===ylength)return n(m,j),pe&&sr(m,k),E;if(j===null){for(;k<ylength;k++)j=f(m,y[k],S),j!==null&&(g=s(j,g,k),C===null?E=j:Csibling=j,C=j);return pe&&sr(m,k),E}for(j=r(m,j);k<ylength;k++)O=p(j,m,k,y[k],S),O!==null&&(e&&Oalternate!==null&&jdelete(Okey===null?k:Okey),g=s(O,g,k),C===null?E=O:Csibling=O,C=O);return e&&jforEach(function($){return t(m,$)}),pe&&sr(m,k),E}function x(m,g,y,S){var E=Lo(y);if(typeof E!="function")throw Error(A(150));if(y=Ecall(y),y==null)throw Error(A(151));for(var C=E=null,j=g,k=g=0,O=null,_=ynext();j!==null&&!_done;k++,_=ynext()){jindex>k?(O=j,j=null):O=jsibling;var $=h(m,j,_value,S);if($===null){j===null&&(j=O);break}e&&j&&$.alternate===null&&t(m,j),g=s($,g,k),C===null?E=$:Csibling=$,C=$,j=O}if(_done)return n(m,j),pe&&sr(m,k),E;if(j===null){for(;!_done;k++,_=ynext())_=f(m,_value,S),_!==null&&(g=s(_,g,k),C===null?E=_:Csibling=_,C=_);return pe&&sr(m,k),E}for(j=r(m,j);!_done;k++,_=ynext())_=p(j,m,k,_value,S),_!==null&&(e&&_alternate!==null&&jdelete(_key===null?k:_key),g=s(_,g,k),C===null?E=_:Csibling=_,C=_);return e&&jforEach(function(M){return t(m,M)}),pe&&sr(m,k),E}function w(m,g,y,S){if(typeof y=="object"&&y!==null&&ytype===zr&&ykey===null&&(y=ypropschildren),typeof y=="object"&&y!==null){switch(y.$$typeof){case Zs:e:{for(var E=ykey,C=g;C!==null;){if(Ckey===E){if(E=ytype,E===zr){if(Ctag===7){n(m,Csibling),g=o(C,ypropschildren),greturn=m,m=g;break e}}else if(CelementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Tn&&bf(E)===Ctype){n(m,Csibling),g=o(C,yprops),gref=$o(m,C,y),greturn=m,m=g;break e}n(m,C);break}else t(m,C);C=Csibling}ytype===zr?(g=vr(ypropschildren,mmode,S,ykey),greturn=m,m=g):(S=Ri(ytype,ykey,yprops,null,mmode,S),Sref=$o(m,g,y),Sreturn=m,m=S)}return i(m);case Fr:e:{for(C=ykey;g!==null;){if(gkey===C)if(gtag===4&&gstateNodecontainerInfo===ycontainerInfo&&gstateNodeimplementation===yimplementation){n(m,gsibling),g=o(g,ychildren||[]),greturn=m,m=g;break e}else{n(m,g);break}else t(m,g);g=gsibling}g=Tl(y,mmode,S),greturn=m,m=g}return i(m);case Tn:return C=y_init,w(m,g,C(y_payload),S)}if(Ko(y))return b(m,g,y,S);if(Lo(y))return x(m,g,y,S);ui(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&gtag===6?(n(m,gsibling),g=o(g,y),greturn=m,m=g):(n(m,g),g=Nl(y,mmode,S),greturn=m,m=g),i(m)):n(m,g)}return w}var vo=om(!0),sm=om(!1),Ki=Jn(null),Yi=null,Gr=null,jc=null;function Nc(){jc=Gr=Yi=null}function Tc(e){var t=Kicurrent;ue(Ki),e_currentValue=t}function hu(e,t,n){for(;e!==null;){var r=ealternate;if((echildLanes&t)!==t?(echildLanes|=t,r!==null&&(rchildLanes|=t)):r!==null&&(rchildLanes&t)!==t&&(rchildLanes|=t),e===n)break;e=ereturn}}function eo(e,t){Yi=e,jc=Gr=null,e=edependencies,e!==null&&efirstContext!==null&&(elanes&t&&(qe=!0),efirstContext=null)}function gt(e){var t=e_currentValue;if(jc!==e)if(e={context:e,memoizedValue:t,next:null},Gr===null){if(Yi===null)throw Error(A(308));Gr=e,Yidependencies={lanes:0,firstContext:e}}else Gr=Grnext=e;return t}var lr=null;function kc(e){lr===null?lr=[e]:lrpush(e)}function im(e,t,n,r){var o=tinterleaved;return o===null?(nnext=n,kc(t)):(nnext=onext,onext=n),tinterleaved=n,fn(e,r)}function fn(e,t){elanes|=t;var n=ealternate;for(n!==null&&(nlanes|=t),n=e,e=ereturn;e!==null;)echildLanes|=t,n=ealternate,n!==null&&(nchildLanes|=t),n=e,e=ereturn;return ntag===3?nstateNode:null}var kn=!1;function Pc(e){eupdateQueue={baseState:ememoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function am(e,t){e=eupdateQueue,tupdateQueue===e&&(tupdateQueue={baseState:ebaseState,firstBaseUpdate:efirstBaseUpdate,lastBaseUpdate:elastBaseUpdate,shared:eshared,effects:eeffects})}function un(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vn(e,t,n){var r=eupdateQueue;if(r===null)return null;if(r=rshared,J&2){var o=rpending;return o===null?tnext=t:(tnext=onext,onext=t),rpending=t,fn(e,n)}return o=rinterleaved,o===null?(tnext=t,kc(r)):(tnext=onext,onext=t),rinterleaved=t,fn(e,n)}function Ci(e,t,n){if(t=tupdateQueue,t!==null&&(t=tshared,(n&4194240)!==0)){var r=tlanes;r&=ependingLanes,n|=r,tlanes=n,hc(e,n)}}function Sf(e,t){var n=eupdateQueue,r=ealternate;if(r!==null&&(r=rupdateQueue,n===r)){var o=null,s=null;if(n=nfirstBaseUpdate,n!==null){do{var i={eventTime:neventTime,lane:nlane,tag:ntag,payload:npayload,callback:ncallback,next:null};s===null?o=s=i:s=snext=i,n=nnext}while(n!==null);s===null?o=s=t:s=snext=t}else o=s=t;n={baseState:rbaseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:rshared,effects:reffects},eupdateQueue=n;return}e=nlastBaseUpdate,e===null?nfirstBaseUpdate=t:enext=t,nlastBaseUpdate=t}function qi(e,t,n,r){var o=eupdateQueue;kn=!1;var s=ofirstBaseUpdate,i=olastBaseUpdate,a=osharedpending;if(a!==null){osharedpending=null;var u=a,c=unext;unext=null,i===null?s=c:inext=c,i=u;var d=ealternate;d!==null&&(d=dupdateQueue,a=dlastBaseUpdate,a!==i&&(a===null?dfirstBaseUpdate=c:anext=c,dlastBaseUpdate=u))}if(s!==null){var f=obaseState;i=0,d=c=u=null,a=s;do{var h=alane,p=aeventTime;if((r&h)===h){d!==null&&(d=dnext={eventTime:p,lane:0,tag:atag,payload:apayload,callback:acallback,next:null});e:{var b=e,x=a;switch(h=t,p=n,xtag){case 1:if(b=xpayload,typeof b=="function"){f=bcall(p,f,h);break e}f=b;break e;case 3:bflags=bflags&-65537|128;case 0:if(b=xpayload,h=typeof b=="function"?bcall(p,f,h):b,h==null)break e;f=ge({},f,h);break e;case 2:kn=!0}}acallback!==null&&alane!==0&&(eflags|=64,h=oeffects,h===null?oeffects=[a]:hpush(a))}else p={eventTime:p,lane:h,tag:atag,payload:apayload,callback:acallback,next:null},d===null?(c=d=p,u=f):d=dnext=p,i|=h;if(a=anext,a===null){if(a=osharedpending,a===null)break;h=a,a=hnext,hnext=null,olastBaseUpdate=h,osharedpending=null}}while(!0);if(d===null&&(u=f),obaseState=u,ofirstBaseUpdate=c,olastBaseUpdate=d,t=osharedinterleaved,t!==null){o=t;do i|=olane,o=onext;while(o!==t)}else s===null&&(osharedlanes=0);Er|=i,elanes=i,ememoizedState=f}}function Ef(e,t,n){if(e=teffects,teffects=null,e!==null)for(t=0;t<elength;t++){var r=e[t],o=rcallback;if(o!==null){if(rcallback=null,r=n,typeof o!="function")throw Error(A(191,o));ocall(r)}}}var zs={},Gt=Jn(zs),ws=Jn(zs),bs=Jn(zs);function ur(e){if(e===zs)throw Error(A(174));return e}function Rc(e,t){switch(se(bs,t),se(ws,e),se(Gt,zs),e=tnodeType,e){case 9:case 11:t=(t=tdocumentElement)?tnamespaceURI:Kl(null,"");break;default:e=e===8?tparentNode:t,t=enamespaceURI||null,e=etagName,t=Kl(t,e)}ue(Gt),se(Gt,t)}function yo(){ue(Gt),ue(ws),ue(bs)}function lm(e){ur(bscurrent);var t=ur(Gtcurrent),n=Kl(t,etype);t!==n&&(se(ws,e),se(Gt,n))}function Ac(e){wscurrent===e&&(ue(Gt),ue(ws))}var he=Jn(0);function Xi(e){for(var t=e;t!==null;){if(ttag===13){var n=tmemoizedState;if(n!==null&&(n=ndehydrated,n===null||ndata==="$?"||ndata==="$!"))return t}else if(ttag===19&&tmemoizedPropsrevealOrder!==void 0){if(tflags&128)return t}else if(tchild!==null){tchildreturn=t,t=tchild;continue}if(t===e)break;for(;tsibling===null;){if(treturn===null||treturn===e)return null;t=treturn}tsiblingreturn=treturn,t=tsibling}return null}var wl=[];function _c(){for(var e=0;e<wllength;e++)wl[e]._workInProgressVersionPrimary=null;wllength=0}var ji=gnReactCurrentDispatcher,bl=gnReactCurrentBatchConfig,Sr=0,me=null,Ce=null,Ne=null,Zi=!1,ns=!1,Ss=0,Sw=0;function Le(){throw Error(A(321))}function Oc(e,t){if(t===null)return!1;for(var n=0;n<tlength&&n<elength;n++)if(!Ot(e[n],t[n]))return!1;return!0}function Ic(e,t,n,r,o,s){if(Sr=s,me=t,tmemoizedState=null,tupdateQueue=null,tlanes=0,jicurrent=e===null||ememoizedState===null?Nw:Tw,e=n(r,o),ns){s=0;do{if(ns=!1,Ss=0,25<=s)throw Error(A(301));s+=1,Ne=Ce=null,tupdateQueue=null,jicurrent=kw,e=n(r,o)}while(ns)}if(jicurrent=Ji,t=Ce!==null&&Cenext!==null,Sr=0,Ne=Ce=me=null,Zi=!1,t)throw Error(A(300));return e}function Lc(){var e=Ss!==0;return Ss=0,e}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ne===null?mememoizedState=Ne=e:Ne=Nenext=e,Ne}function vt(){if(Ce===null){var e=mealternate;e=e!==null?ememoizedState:null}else e=Cenext;var t=Ne===null?mememoizedState:Nenext;if(t!==null)Ne=t,Ce=e;else{if(e===null)throw Error(A(310));Ce=e,e={memoizedState:CememoizedState,baseState:CebaseState,baseQueue:CebaseQueue,queue:Cequeue,next:null},Ne===null?mememoizedState=Ne=e:Ne=Nenext=e}return Ne}function Es(e,t){return typeof t=="function"?t(e):t}function Sl(e){var t=vt(),n=tqueue;if(n===null)throw Error(A(311));nlastRenderedReducer=e;var r=Ce,o=rbaseQueue,s=npending;if(s!==null){if(o!==null){var i=onext;onext=snext,snext=i}rbaseQueue=o=s,npending=null}if(o!==null){s=onext,r=rbaseState;var a=i=null,u=null,c=s;do{var d=clane;if((Sr&d)===d)u!==null&&(u=unext={lane:0,action:caction,hasEagerState:chasEagerState,eagerState:ceagerState,next:null}),r=chasEagerState?ceagerState:e(r,caction);else{var f={lane:d,action:caction,hasEagerState:chasEagerState,eagerState:ceagerState,next:null};u===null?(a=u=f,i=r):u=unext=f,melanes|=d,Er|=d}c=cnext}while(c!==null&&c!==s);u===null?i=r:unext=a,Ot(r,tmemoizedState)||(qe=!0),tmemoizedState=r,tbaseState=i,tbaseQueue=u,nlastRenderedState=r}if(e=ninterleaved,e!==null){o=e;do s=olane,melanes|=s,Er|=s,o=onext;while(o!==e)}else o===null&&(nlanes=0);return[tmemoizedState,ndispatch]}function El(e){var t=vt(),n=tqueue;if(n===null)throw Error(A(311));nlastRenderedReducer=e;var r=ndispatch,o=npending,s=tmemoizedState;if(o!==null){npending=null;var i=o=onext;do s=e(s,iaction),i=inext;while(i!==o);Ot(s,tmemoizedState)||(qe=!0),tmemoizedState=s,tbaseQueue===null&&(tbaseState=s),nlastRenderedState=s}return[s,r]}function um(){}function cm(e,t){var n=me,r=vt(),o=t(),s=!Ot(rmemoizedState,o);if(s&&(rmemoizedState=o,qe=!0),r=rqueue,Mc(pmbind(null,n,r,e),[e]),rgetSnapshot!==t||s||Ne!==null&&NememoizedStatetag&1){if(nflags|=2048,Cs(9,fmbind(null,n,r,o,t),void 0,null),Te===null)throw Error(A(349));Sr&30||dm(n,t,o)}return o}function dm(e,t,n){eflags|=16384,e={getSnapshot:t,value:n},t=meupdateQueue,t===null?(t={lastEffect:null,stores:null},meupdateQueue=t,tstores=[e]):(n=tstores,n===null?tstores=[e]:npush(e))}function fm(e,t,n,r){tvalue=n,tgetSnapshot=r,hm(t)&&mm(e)}function pm(e,t,n){return n(function(){hm(t)&&mm(e)})}function hm(e){var t=egetSnapshot;e=evalue;try{var n=t();return!Ot(e,n)}catch{return!0}}function mm(e){var t=fn(e,1);t!==null&&_t(t,e,1,-1)}function Cf(e){var t=$t();return typeof e=="function"&&(e=e()),tmemoizedState=tbaseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Es,lastRenderedState:e},tqueue=e,e=edispatch=jwbind(null,me,e),[tmemoizedState,e]}function Cs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=meupdateQueue,t===null?(t={lastEffect:null,stores:null},meupdateQueue=t,tlastEffect=enext=e):(n=tlastEffect,n===null?tlastEffect=enext=e:(r=nnext,nnext=e,enext=r,tlastEffect=e)),e}function gm(){return vt().memoizedState}function Ni(e,t,n,r){var o=$t();meflags|=e,omemoizedState=Cs(1|t,n,void 0,r===void 0?null:r)}function Sa(e,t,n,r){var o=vt();r=r===void 0?null:r;var s=void 0;if(Ce!==null){var i=CememoizedState;if(s=idestroy,r!==null&&Oc(r,ideps)){omemoizedState=Cs(t,n,s,r);return}}meflags|=e,omemoizedState=Cs(1|t,n,s,r)}function jf(e,t){return Ni(8390656,8,e,t)}function Mc(e,t){return Sa(2048,8,e,t)}function vm(e,t){return Sa(4,2,e,t)}function ym(e,t){return Sa(4,4,e,t)}function xm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),tcurrent=e,function(){tcurrent=null}}function wm(e,t,n){return n=n!=null?nconcat([e]):null,Sa(4,4,xmbind(null,t,e),n)}function Dc(){}function bm(e,t){var n=vt();t=t===void 0?null:t;var r=nmemoizedState;return r!==null&&t!==null&&Oc(t,"n")?"J":(nmemoizedState=[e,t],e)}function Sm(e,t){var n=vt();t=t===void 0?null:t;var r=nmemoizedState;return r!==null&&t!==null&&Oc(t,"n")?"J":(e=e(),nmemoizedState=[e,t],e)}function Em(e,t,n){return Sr&21?(Ot(n,t)||(n=kh(),melanes|=n,Er|=n,ebaseState=!0),t):(ebaseState&&(ebaseState=!1,qe=!0),ememoizedState=n)}function Ew(e,t){var n=re;re=n!==0&&4>n?n:4,e(!0);var r=bltransition;bltransition={};try{e(!1),t()}finally{re=n,bltransition=r}}function Cm(){return vt().memoizedState}function Cw(e,t,n){var r=Wn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jm(e))Nm(t,n);else if(n=im(e,t,n,r),n!==null){var o=He();_t(n,e,r,o),Tm(n,t,r)}}function jw(e,t,n){var r=Wn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jm(e))Nm(t,o);else{var s=ealternate;if(elanes===0&&(s===null||slanes===0)&&(s=tlastRenderedReducer,s!==null))try{var i=tlastRenderedState,a=s(i,n);if(ohasEagerState=!0,oeagerState=a,Ot(a,i)){var u=tinterleaved;u===null?(onext=o,kc(t)):(onext=unext,unext=o),tinterleaved=o;return}}catch{}finally{}n=im(e,t,o,r),n!==null&&(o=He(),_t(n,e,r,o),Tm(n,t,r))}}function jm(e){var t=ealternate;return e===me||t!==null&&t===me}function Nm(e,t){ns=Zi=!0;var n=epending;n===null?tnext=t:(tnext=nnext,nnext=t),epending=t}function Tm(e,t,n){if(n&4194240){var r=tlanes;r&=ependingLanes,n|=r,tlanes=n,hc(e,n)}}var Ji={readContext:gt,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},Nw={readContext:gt,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:jf,useImperativeHandle:function(e,t,n){return n=n!=null?nconcat([e]):null,Ni(4194308,4,xmbind(null,t,e),n)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ni(4,2,e,t)},useMemo:function(e,t){var n=$t();return t=t===void 0?null:t,e=e(),nmemoizedState=[e,t],e},useReducer:function(e,t,n){var r=$t();return t=n!==void 0?n(t):t,rmemoizedState=rbaseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},rqueue=e,e=edispatch=Cwbind(null,me,e),[rmemoizedState,e]},useRef:function(e){var t=$t();return e={current:e},tmemoizedState=e},useState:Cf,useDebugValue:Dc,useDeferredValue:function(e){return $t().memoizedState=e},useTransition:function(){var e=Cf(!1),t="J";return e=Ewbind(null,"n"),$t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=me,o=$t();if(pe){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Te===null)throw Error(A(349));Sr&30||dm(r,t,n)}omemoizedState=n;var s={value:n,getSnapshot:t};return oqueue=s,jf(pmbind(null,r,s,e),[e]),rflags|=2048,Cs(9,fmbind(null,r,s,n,t),void 0,null),n},useId:function(){var e=$t(),t=TeidentifierPrefix;if(pe){var n=ln,r=an;n=(r&~(1<<32-At(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ss++,0<n&&(t+="H"+ntoString(32)),t+=":"}else n=Sw++,t=":"+t+"r"+ntoString(32)+":";return ememoizedState=t},unstable_isNewReconciler:!1},Tw={readContext:gt,useCallback:bm,useContext:gt,useEffect:Mc,useImperativeHandle:wm,useInsertionEffect:vm,useLayoutEffect:ym,useMemo:Sm,useReducer:Sl,useRef:gm,useState:function(){return Sl(Es)},useDebugValue:Dc,useDeferredValue:function(e){var t=vt();return Em(t,CememoizedState,e)},useTransition:function(){var e=Sl(Es)[0],t=vt().memoizedState;return[e,t]},useMutableSource:um,useSyncExternalStore:cm,useId:Cm,unstable_isNewReconciler:!1},kw={readContext:gt,useCallback:bm,useContext:gt,useEffect:Mc,useImperativeHandle:wm,useInsertionEffect:vm,useLayoutEffect:ym,useMemo:Sm,useReducer:El,useRef:gm,useState:function(){return El(Es)},useDebugValue:Dc,useDeferredValue:function(e){var t=vt();return Ce===null?tmemoizedState=e:Em(t,CememoizedState,e)},useTransition:function(){var e=El(Es)[0],t=vt().memoizedState;return[e,t]},useMutableSource:um,useSyncExternalStore:cm,useId:Cm,unstable_isNewReconciler:!1};function Ct(e,t){if(e&&edefaultProps){t=ge({},t),e=edefaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function mu(e,t,n,r){t=ememoizedState,n=n(r,t),n=n==null?t:ge({},t,n),ememoizedState=n,elanes===0&&(eupdateQueuebaseState=n)}var Ea={isMounted:function(e){return(e=e_reactInternals)?Tr(e)===e:!1},enqueueSetState:function(e,t,n){e=e_reactInternals;var r=He(),o=Wn(e),s=un(r,o);spayload=t,n!=null&&(scallback=n),t=Vn(e,s,o),t!==null&&(_t(t,e,o,r),Ci(t,e,o))},enqueueReplaceState:function(e,t,n){e=e_reactInternals;var r=He(),o=Wn(e),s=un(r,o);stag=1,spayload=t,n!=null&&(scallback=n),t=Vn(e,s,o),t!==null&&(_t(t,e,o,r),Ci(t,e,o))},enqueueForceUpdate:function(e,t){e=e_reactInternals;var n=He(),r=Wn(e),o=un(n,r);otag=2,t!=null&&(ocallback=t),t=Vn(e,o,r),t!==null&&(_t(t,e,r,n),Ci(t,e,r))}};function Nf(e,t,n,r,o,s,i){return e=estateNode,typeof eshouldComponentUpdate=="function"?eshouldComponentUpdate(r,s,i):tprototype&&tprototypeisPureReactComponent?!gs(n,r)||!gs(o,s):!0}function km(e,t,n){var r=!1,o=Yn,s=tcontextType;return typeof s=="object"&&s!==null?s=gt(s):(o=Ze(t)?wr:$ecurrent,r=tcontextTypes,s=(r=r!=null)?mo(e,o):Yn),t=new t(n,s),ememoizedState=tstate!==null&&tstate!==void 0?tstate:null,tupdater=Ea,estateNode=t,t_reactInternals=e,r&&(e=estateNode,e__reactInternalMemoizedUnmaskedChildContext=o,e__reactInternalMemoizedMaskedChildContext=s),t}function Tf(e,t,n,r){e=tstate,typeof tcomponentWillReceiveProps=="function"&&tcomponentWillReceiveProps(n,r),typeof tUNSAFE_componentWillReceiveProps=="function"&&tUNSAFE_componentWillReceiveProps(n,r),tstate!==e&&EaenqueueReplaceState(t,tstate,null)}function gu(e,t,n,r){var o=estateNode;oprops=n,ostate=ememoizedState,orefs={},Pc(e);var s=tcontextType;typeof s=="object"&&s!==null?ocontext=gt(s):(s=Ze(t)?wr:$ecurrent,ocontext=mo(e,s)),ostate=ememoizedState,s=tgetDerivedStateFromProps,typeof s=="function"&&(mu(e,t,s,n),ostate=ememoizedState),typeof tgetDerivedStateFromProps=="function"||typeof ogetSnapshotBeforeUpdate=="function"||typeof oUNSAFE_componentWillMount!="function"&&typeof ocomponentWillMount!="function"||(t=ostate,typeof ocomponentWillMount=="function"&&ocomponentWillMount(),typeof oUNSAFE_componentWillMount=="function"&&oUNSAFE_componentWillMount(),t!==ostate&&EaenqueueReplaceState(o,ostate,null),qi(e,n,o,r),ostate=ememoizedState),typeof ocomponentDidMount=="function"&&(eflags|=4194308)}function xo(e,t){try{var n="",r=t;do n+=n0(r),r=rreturn;while(r);var o=n}catch(s){o=`
Error generating stack: `+smessage+`
`+sstack}return{value:e,source:t,stack:o,digest:null}}function Cl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function vu(e,t){try{consoleerror(tvalue)}catch(n){setTimeout(function(){throw n})}}var Pw=typeof WeakMap=="function"?WeakMap:Map;function Pm(e,t,n){n=un(-1,n),ntag=3,npayload={element:null};var r=tvalue;return ncallback=function(){ta||(ta=!0,Tu=r),vu(e,t)},n}function Rm(e,t,n){n=un(-1,n),ntag=3;var r=etypegetDerivedStateFromError;if(typeof r=="function"){var o=tvalue;npayload=function(){return r(o)},ncallback=function(){vu(e,t)}}var s=estateNode;return s!==null&&typeof scomponentDidCatch=="function"&&(ncallback=function(){vu(e,t),typeof r!="function"&&(Hn===null?Hn=new Set([this]):Hnadd(this));var i=tstack;thiscomponentDidCatch(tvalue,{componentStack:i!==null?i:""})}),n}function kf(e,t,n){var r=epingCache;if(r===null){r=epingCache=new Pw;var o=new Set;rset(t,o)}else o=rget(t),o===void 0&&(o=new Set,rset(t,o));ohas(n)||(oadd(n),e=Vwbind(null,e,t,n),tthen(e,e))}function Pf(e){do{var t;if((t=etag===13)&&(t=ememoizedState,t=t!==null?tdehydrated!==null:!0),t)return e;e=ereturn}while(e!==null);return null}function Rf(e,t,n,r,o){return emode&1?(eflags|=65536,elanes=o,e):(e===t?eflags|=65536:(eflags|=128,nflags|=131072,nflags&=-52805,ntag===1&&(nalternate===null?ntag=17:(t=un(-1,1),ttag=2,Vn(n,t,1))),nlanes|=1),e)}var Rw=gnReactCurrentOwner,qe=!1;function Be(e,t,n,r){tchild=e===null?sm(t,null,n,r):vo(t,echild,n,r)}function Af(e,t,n,r,o){n=nrender;var s=tref;return eo(t,o),r=Ic(e,t,n,r,s,o),n=Lc(),e!==null&&!qe?(tupdateQueue=eupdateQueue,tflags&=-2053,elanes&=~o,pn(e,t,o)):(pe&&n&&Sc(t),tflags|=1,Be(e,t,r,o),tchild)}function _f(e,t,n,r,o){if(e===null){var s=ntype;return typeof s=="function"&&!Wc(s)&&sdefaultProps===void 0&&ncompare===null&&ndefaultProps===void 0?(ttag=15,ttype=s,Am(e,t,s,r,o)):(e=Ri(ntype,null,r,t,tmode,o),eref=tref,ereturn=t,tchild=e)}if(s=echild,!(elanes&o)){var i=smemoizedProps;if(n=ncompare,n=n!==null?n:gs,n(i,r)&&eref===tref)return pn(e,t,o)}return tflags|=1,e=Qn(s,r),eref=tref,ereturn=t,tchild=e}function Am(e,t,n,r,o){if(e!==null){var s=ememoizedProps;if(gs(s,r)&&eref===tref)if(qe=!1,tpendingProps=r=s,(elanes&o)!==0)eflags&131072&&(qe=!0);else return tlanes=elanes,pn(e,t,o)}return yu(e,t,n,r,o)}function _m(e,t,n){var r=tpendingProps,o=rchildren,s=e!==null?ememoizedState:null;if(rmode==="hidden")if(!(tmode&1))tmemoizedState={baseLanes:0,cachePool:null,transitions:null},se(Yr,et),et|=n;else{if(!(n&1073741824))return e=s!==null?sbaseLanes|n:n,tlanes=tchildLanes=1073741824,tmemoizedState={baseLanes:e,cachePool:null,transitions:null},tupdateQueue=null,se(Yr,et),et|=e,null;tmemoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?sbaseLanes:n,se(Yr,et),et|=r}else s!==null?(r=sbaseLanes|n,tmemoizedState=null):r=n,se(Yr,et),et|=r;return Be(e,t,o,n),tchild}function Om(e,t){var n=tref;(e===null&&n!==null||e!==null&&eref!==n)&&(tflags|=512,tflags|=2097152)}function yu(e,t,n,r,o){var s=Ze(n)?wr:$ecurrent;return s=mo(t,s),eo(t,o),n=Ic(e,t,n,r,s,o),r=Lc(),e!==null&&!qe?(tupdateQueue=eupdateQueue,tflags&=-2053,elanes&=~o,pn(e,t,o)):(pe&&r&&Sc(t),tflags|=1,Be(e,t,n,o),tchild)}function Of(e,t,n,r,o){if(Ze(n)){var s=!0;Wi(t)}else s=!1;if(eo(t,o),tstateNode===null)Ti(e,t),km(t,n,r),gu(t,n,r,o),r=!0;else if(e===null){var i=tstateNode,a=tmemoizedProps;iprops=a;var u=icontext,c=ncontextType;typeof c=="object"&&c!==null?c=gt(c):(c=Ze(n)?wr:$ecurrent,c=mo(t,c));var d=ngetDerivedStateFromProps,f=typeof d=="function"||typeof igetSnapshotBeforeUpdate=="function";f||typeof iUNSAFE_componentWillReceiveProps!="function"&&typeof icomponentWillReceiveProps!="function"||(a!==r||u!==c)&&Tf(t,i,r,c),kn=!1;var h=tmemoizedState;istate=h,qi(t,r,i,o),u=tmemoizedState,a!==r||h!==u||Xecurrent||kn?(typeof d=="function"&&(mu(t,n,d,r),u=tmemoizedState),(a=kn||Nf(t,n,a,r,h,u,c))?(f||typeof iUNSAFE_componentWillMount!="function"&&typeof icomponentWillMount!="function"||(typeof icomponentWillMount=="function"&&icomponentWillMount(),typeof iUNSAFE_componentWillMount=="function"&&iUNSAFE_componentWillMount()),typeof icomponentDidMount=="function"&&(tflags|=4194308)):(typeof icomponentDidMount=="function"&&(tflags|=4194308),tmemoizedProps=r,tmemoizedState=u),iprops=r,istate=u,icontext=c,r=a):(typeof icomponentDidMount=="function"&&(tflags|=4194308),r=!1)}else{i=tstateNode,am(e,t),a=tmemoizedProps,c=ttype===telementType?a:Ct(ttype,a),iprops=c,f=tpendingProps,h=icontext,u=ncontextType,typeof u=="object"&&u!==null?u=gt(u):(u=Ze(n)?wr:$ecurrent,u=mo(t,u));var p=ngetDerivedStateFromProps;(d=typeof p=="function"||typeof igetSnapshotBeforeUpdate=="function")||typeof iUNSAFE_componentWillReceiveProps!="function"&&typeof icomponentWillReceiveProps!="function"||(a!==f||h!==u)&&Tf(t,i,r,u),kn=!1,h=tmemoizedState,istate=h,qi(t,r,i,o);var b=tmemoizedState;a!==f||h!==b||Xecurrent||kn?(typeof p=="function"&&(mu(t,n,p,r),b=tmemoizedState),(c=kn||Nf(t,n,c,r,h,b,u)||!1)?(d||typeof iUNSAFE_componentWillUpdate!="function"&&typeof icomponentWillUpdate!="function"||(typeof icomponentWillUpdate=="function"&&icomponentWillUpdate(r,b,u),typeof iUNSAFE_componentWillUpdate=="function"&&iUNSAFE_componentWillUpdate(r,b,u)),typeof icomponentDidUpdate=="function"&&(tflags|=4),typeof igetSnapshotBeforeUpdate=="function"&&(tflags|=1024)):(typeof icomponentDidUpdate!="function"||a===ememoizedProps&&h===ememoizedState||(tflags|=4),typeof igetSnapshotBeforeUpdate!="function"||a===ememoizedProps&&h===ememoizedState||(tflags|=1024),tmemoizedProps=r,tmemoizedState=b),iprops=r,istate=b,icontext=u,r=c):(typeof icomponentDidUpdate!="function"||a===ememoizedProps&&h===ememoizedState||(tflags|=4),typeof igetSnapshotBeforeUpdate!="function"||a===ememoizedProps&&h===ememoizedState||(tflags|=1024),r=!1)}return xu(e,t,n,r,s,o)}function xu(e,t,n,r,o,s){Om(e,t);var i=(tflags&128)!==0;if(!r&&!i)return o&&yf(t,n,!1),pn(e,t,s);r=tstateNode,Rwcurrent=t;var a=i&&typeof ngetDerivedStateFromError!="function"?null:rrender();return tflags|=1,e!==null&&i?(tchild=vo(t,echild,null,s),tchild=vo(t,null,a,s)):Be(e,t,a,s),tmemoizedState=rstate,o&&yf(t,n,!0),tchild}function Im(e){var t=estateNode;tpendingContext?vf(e,tpendingContext,tpendingContext!==tcontext):tcontext&&vf(e,tcontext,!1),Rc(e,tcontainerInfo)}function If(e,t,n,r,o){return go(),Cc(o),tflags|=256,Be(e,t,n,r),tchild}var wu={dehydrated:null,treeContext:null,retryLane:0};function bu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lm(e,t,n){var r=tpendingProps,o=hecurrent,s=!1,i=(tflags&128)!==0,a;if((a=i)||(a=e!==null&&ememoizedState===null?!1:(o&2)!==0),a?(s=!0,tflags&=-129):(e===null||ememoizedState!==null)&&(o|=1),se(he,o&1),e===null)return pu(t),e=tmemoizedState,e!==null&&(e=edehydrated,e!==null)?(tmode&1?edata==="$!"?tlanes=8:tlanes=1073741824:tlanes=1,null):(i=rchildren,e=rfallback,s?(r=tmode,s=tchild,i={mode:"hidden",children:i},!(r&1)&&s!==null?(schildLanes=0,spendingProps=i):s=Na(i,r,0,null),e=vr(e,r,n,null),sreturn=t,ereturn=t,ssibling=e,tchild=s,tchildmemoizedState=bu(n),tmemoizedState=wu,e):Fc(t,i));if(o=ememoizedState,o!==null&&(a=odehydrated,a!==null))return Aw(e,t,i,r,a,o,n);if(s){s=rfallback,i=tmode,o=echild,a=osibling;var u={mode:"hidden",children:rchildren};return!(i&1)&&tchild!==o?(r=tchild,rchildLanes=0,rpendingProps=u,tdeletions=null):(r=Qn(o,u),rsubtreeFlags=osubtreeFlags&14680064),a!==null?s=Qn(a,s):(s=vr(s,i,n,null),sflags|=2),sreturn=t,rreturn=t,rsibling=s,tchild=r,r=s,s=tchild,i=echildmemoizedState,i=i===null?bu(n):{baseLanes:ibaseLanes|n,cachePool:null,transitions:itransitions},smemoizedState=i,schildLanes=echildLanes&~n,tmemoizedState=wu,r}return s=echild,e=ssibling,r=Qn(s,{mode:"visible",children:rchildren}),!(tmode&1)&&(rlanes=n),rreturn=t,rsibling=null,e!==null&&(n=tdeletions,n===null?(tdeletions=[e],tflags|=16):npush(e)),tchild=r,tmemoizedState=null,r}function Fc(e,t){return t=Na({mode:"visible",children:t},emode,0,null),treturn=e,echild=t}function ci(e,t,n,r){return r!==null&&Cc(r),vo(t,echild,null,n),e=Fc(t,tpendingPropschildren),eflags|=2,tmemoizedState=null,e}function Aw(e,t,n,r,o,s,i){if(n)return tflags&256?(tflags&=-257,r=Cl(Error(A(422))),ci(e,t,i,r)):tmemoizedState!==null?(tchild=echild,tflags|=128,null):(s=rfallback,o=tmode,r=Na({mode:"visible",children:rchildren},o,0,null),s=vr(s,o,i,null),sflags|=2,rreturn=t,sreturn=t,rsibling=s,tchild=r,tmode&1&&vo(t,echild,null,i),tchildmemoizedState=bu(i),tmemoizedState=wu,s);if(!(tmode&1))return ci(e,t,i,null);if(odata==="$!"){if(r=onextSibling&&onextSiblingdataset,r)var a=rdgst;return r=a,s=Error(A(419)),r=Cl(s,r,void 0),ci(e,t,i,r)}if(a=(i&echildLanes)!==0,qe||a){if(r=Te,r!==null){switch(i&-i){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&(rsuspendedLanes|i)?0:o,o!==0&&o!==sretryLane&&(sretryLane=o,fn(e,o),_t(r,e,o,-1))}return Hc(),r=Cl(Error(A(421))),ci(e,t,i,r)}return odata==="$?"?(tflags|=128,tchild=echild,t=Hwbind(null,e),o_reactRetry=t,null):(e=streeContext,rt=Bn(onextSibling),ot=t,pe=!0,Pt=null,e!==null&&(ft[pt++]=an,ft[pt++]=ln,ft[pt++]=br,an=eid,ln=eoverflow,br=t),t=Fc(t,rchildren),tflags|=4096,t)}function Lf(e,t,n){elanes|=t;var r=ealternate;r!==null&&(rlanes|=t),hu(ereturn,t,n)}function jl(e,t,n,r,o){var s=ememoizedState;s===null?ememoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(sisBackwards=t,srendering=null,srenderingStartTime=0,slast=r,stail=n,stailMode=o)}function Mm(e,t,n){var r=tpendingProps,o=rrevealOrder,s=rtail;if(Be(e,t,rchildren,n),r=hecurrent,r&2)r=r&1|2,tflags|=128;else{if(e!==null&&eflags&128)e:for(e=tchild;e!==null;){if(etag===13)ememoizedState!==null&&Lf(e,n,t);else if(etag===19)Lf(e,n,t);else if(echild!==null){echildreturn=e,e=echild;continue}if(e===t)break e;for(;esibling===null;){if(ereturn===null||ereturn===t)break e;e=ereturn}esiblingreturn=ereturn,e=esibling}r&=1}if(se(he,r),!(tmode&1))tmemoizedState=null;else switch(o){case"forwards":for(n=tchild,o=null;n!==null;)e=nalternate,e!==null&&Xi(e)===null&&(o=n),n=nsibling;n=o,n===null?(o=tchild,tchild=null):(o=nsibling,nsibling=null),jl(t,!1,o,n,s);break;case"backwards":for(n=null,o=tchild,tchild=null;o!==null;){if(e=oalternate,e!==null&&Xi(e)===null){tchild=o;break}e=osibling,osibling=n,n=o,o=e}jl(t,!0,n,null,s);break;case"together":jl(t,!1,null,null,void 0);break;default:tmemoizedState=null}return tchild}function Ti(e,t){!(tmode&1)&&e!==null&&(ealternate=null,talternate=null,tflags|=2)}function pn(e,t,n){if(e!==null&&(tdependencies=edependencies),Er|=tlanes,!(n&tchildLanes))return null;if(e!==null&&tchild!==echild)throw Error(A(153));if(tchild!==null){for(e=tchild,n=Qn(e,ependingProps),tchild=n,nreturn=t;esibling!==null;)e=esibling,n=nsibling=Qn(e,ependingProps),nreturn=t;nsibling=null}return tchild}function _w(e,t,n){switch(ttag){case 3:Im(t),go();break;case 5:lm(t);break;case 1:Ze(ttype)&&Wi(t);break;case 4:Rc(t,tstateNodecontainerInfo);break;case 10:var r=ttype_context,o=tmemoizedPropsvalue;se(Ki,r_currentValue),r_currentValue=o;break;case 13:if(r=tmemoizedState,r!==null)return rdehydrated!==null?(se(he,hecurrent&1),tflags|=128,null):n&tchildchildLanes?Lm(e,t,n):(se(he,hecurrent&1),e=pn(e,t,n),e!==null?esibling:null);se(he,hecurrent&1);break;case 19:if(r=(n&tchildLanes)!==0,eflags&128){if(r)return Mm(e,t,n);tflags|=128}if(o=tmemoizedState,o!==null&&(orendering=null,otail=null,olastEffect=null),se(he,hecurrent),r)break;return null;case 22:case 23:return tlanes=0,_m(e,t,n)}return pn(e,t,n)}var Dm,Su,Fm,zm;Dm=function(e,t){for(var n=tchild;n!==null;){if(ntag===5||ntag===6)eappendChild(nstateNode);else if(ntag!==4&&nchild!==null){nchildreturn=n,n=nchild;continue}if(n===t)break;for(;nsibling===null;){if(nreturn===null||nreturn===t)return;n=nreturn}nsiblingreturn=nreturn,n=nsibling}};Su=function(){};Fm=function(e,t,n,r){var o=ememoizedProps;if(o!==r){e=tstateNode,ur(Gtcurrent);var s=null;switch(n){case"input":o=Hl(e,o),r=Hl(e,r),s=[];break;case"select":o=ge({},o,{value:void 0}),r=ge({},r,{value:void 0}),s=[];break;case"textarea":o=Gl(e,o),r=Gl(e,r),s=[];break;default:typeof oonClick!="function"&&typeof ronClick=="function"&&(eonclick=Vi)}Yl(n,r);var i;n=null;for(c in o)if(!rhasOwnProperty(c)&&ohasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(i in a)ahasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ushasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(a=o!=null?o[c]:void 0,rhasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(i in a)!ahasOwnProperty(i)||u&&uhasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)uhasOwnProperty(i)&&a[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),spush(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u__html:void 0,a=a?a__html:void 0,u!=null&&a!==u&&(s=s||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ushasOwnProperty(c)?(u!=null&&c==="onScroll"&&le("scroll",e),s||a===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(tupdateQueue=c)&&(tflags|=4)}};zm=function(e,t,n,r){n!==r&&(tflags|=4)};function Uo(e,t){if(!pe)switch(etailMode){case"hidden":t=etail;for(var n=null;t!==null;)talternate!==null&&(n=t),t=tsibling;n===null?etail=null:nsibling=null;break;case"collapsed":n=etail;for(var r=null;n!==null;)nalternate!==null&&(r=n),n=nsibling;r===null?t||etail===null?etail=null:etailsibling=null:rsibling=null}}function Me(e){var t=ealternate!==null&&ealternatechild===echild,n=0,r=0;if(t)for(var o=echild;o!==null;)n|=olanes|ochildLanes,r|=osubtreeFlags&14680064,r|=oflags&14680064,oreturn=e,o=osibling;else for(o=echild;o!==null;)n|=olanes|ochildLanes,r|=osubtreeFlags,r|=oflags,oreturn=e,o=osibling;return esubtreeFlags|=r,echildLanes=n,t}function Ow(e,t,n){var r=tpendingProps;switch(Ec(t),ttag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Ze(ttype)&&Hi(),Me(t),null;case 3:return r=tstateNode,yo(),ue(Xe),ue($e),_c(),rpendingContext&&(rcontext=rpendingContext,rpendingContext=null),(e===null||echild===null)&&(li(t)?tflags|=4:e===null||ememoizedStateisDehydrated&&!(tflags&256)||(tflags|=1024,Pt!==null&&(Ru(Pt),Pt=null))),Su(e,t),Me(t),null;case 5:Ac(t);var o=ur(bscurrent);if(n=ttype,e!==null&&tstateNode!=null)Fm(e,t,n,r,o),eref!==tref&&(tflags|=512,tflags|=2097152);else{if(!r){if(tstateNode===null)throw Error(A(166));return Me(t),null}if(e=ur(Gtcurrent),li(t)){r=tstateNode,n=ttype;var s=tmemoizedProps;switch(r[Ht]=t,r[xs]=s,e=(tmode&1)!==0,n){case"dialog":le("cancel",r),le("close",r);break;case"iframe":case"object":case"embed":le("load",r);break;case"video":case"audio":for(o=0;o<qolength;o++)le(qo[o],r);break;case"source":le("error",r);break;case"img":case"image":case"link":le("error",r),le("load",r);break;case"details":le("toggle",r);break;case"input":Vd(r,s),le("invalid",r);break;case"select":r_wrapperState={wasMultiple:!!smultiple},le("invalid",r);break;case"textarea":Wd(r,s),le("invalid",r)}Yl(n,s),o=null;for(var i in s)if(shasOwnProperty(i)){var a=s[i];i==="children"?typeof a=="string"?rtextContent!==a&&(ssuppressHydrationWarning!==!0&&ai(rtextContent,a,e),o=["children",a]):typeof a=="number"&&rtextContent!==""+a&&(ssuppressHydrationWarning!==!0&&ai(rtextContent,a,e),o=["children",""+a]):ushasOwnProperty(i)&&a!=null&&i==="onScroll"&&le("scroll",r)}switch(n){case"input":Js(r),Hd(r,s,!0);break;case"textarea":Js(r),Qd(r);break;case"select":case"option":break;default:typeof sonClick=="function"&&(ronclick=Vi)}r=o,tupdateQueue=r,r!==null&&(tflags|=4)}else{i=onodeType===9?o:oownerDocument,e==="http://wwww3org/1999/xhtml"&&(e=ph(n)),e==="http://wwww3org/1999/xhtml"?n==="script"?(e=icreateElement("div"),einnerHTML="<script><\/script>",e=eremoveChild(efirstChild)):typeof ris=="string"?e=icreateElement(n,{is:ris}):(e=icreateElement(n),n==="select"&&(i=e,rmultiple?imultiple=!0:rsize&&(isize=rsize))):e=icreateElementNS(e,n),e[Ht]=t,e[xs]=r,Dm(e,t,!1,!1),tstateNode=e;e:{switch(i=ql(n,r),n){case"dialog":le("cancel",e),le("close",e),o=r;break;case"iframe":case"object":case"embed":le("load",e),o=r;break;case"video":case"audio":for(o=0;o<qolength;o++)le(qo[o],e);o=r;break;case"source":le("error",e),o=r;break;case"img":case"image":case"link":le("error",e),le("load",e),o=r;break;case"details":le("toggle",e),o=r;break;case"input":Vd(e,r),o=Hl(e,r),le("invalid",e);break;case"option":o=r;break;case"select":e_wrapperState={wasMultiple:!!rmultiple},o=ge({},r,{value:void 0}),le("invalid",e);break;case"textarea":Wd(e,r),o=Gl(e,r),le("invalid",e);break;default:o=r}Yl(n,o),a=o;for(s in a)if(ahasOwnProperty(s)){var u=a[s];s==="style"?gh(e,u):s==="dangerouslySetInnerHTML"?(u=u?u__html:void 0,u!=null&&hh(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&cs(e,u):typeof u=="number"&&cs(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ushasOwnProperty(s)?u!=null&&s==="onScroll"&&le("scroll",e):u!=null&&lc(e,s,u,i))}switch(n){case"input":Js(e),Hd(e,r,!1);break;case"textarea":Js(e),Qd(e);break;case"option":rvalue!=null&&esetAttribute("value",""+Kn(rvalue));break;case"select":emultiple=!!rmultiple,s=rvalue,s!=null?qr(e,!!rmultiple,s,!1):rdefaultValue!=null&&qr(e,!!rmultiple,rdefaultValue,!0);break;default:typeof oonClick=="function"&&(eonclick=Vi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!rautoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(tflags|=4)}tref!==null&&(tflags|=512,tflags|=2097152)}return Me(t),null;case 6:if(e&&tstateNode!=null)zm(e,t,ememoizedProps,r);else{if(typeof r!="string"&&tstateNode===null)throw Error(A(166));if(n=ur(bscurrent),ur(Gtcurrent),li(t)){if(r=tstateNode,n=tmemoizedProps,r[Ht]=t,(s=rnodeValue!==n)&&(e=ot,e!==null))switch(etag){case 3:ai(rnodeValue,n,(emode&1)!==0);break;case 5:ememoizedPropssuppressHydrationWarning!==!0&&ai(rnodeValue,n,(emode&1)!==0)}s&&(tflags|=4)}else r=(nnodeType===9?n:nownerDocument).createTextNode(r),r[Ht]=t,tstateNode=r}return Me(t),null;case 13:if(ue(he),r=tmemoizedState,e===null||ememoizedState!==null&&ememoizedStatedehydrated!==null){if(pe&&rt!==null&&tmode&1&&!(tflags&128))rm(),go(),tflags|=98560,s=!1;else if(s=li(t),r!==null&&rdehydrated!==null){if(e===null){if(!s)throw Error(A(318));if(s=tmemoizedState,s=s!==null?sdehydrated:null,!s)throw Error(A(317));s[Ht]=t}else go(),!(tflags&128)&&(tmemoizedState=null),tflags|=4;Me(t),s=!1}else Pt!==null&&(Ru(Pt),Pt=null),s=!0;if(!s)return tflags&65536?t:null}return tflags&128?(tlanes=n,t):(r=r!==null,r!==(e!==null&&ememoizedState!==null)&&r&&(tchildflags|=8192,tmode&1&&(e===null||hecurrent&1?je===0&&(je=3):Hc())),tupdateQueue!==null&&(tflags|=4),Me(t),null);case 4:return yo(),Su(e,t),e===null&&vs(tstateNodecontainerInfo),Me(t),null;case 10:return Tc(ttype_context),Me(t),null;case 17:return Ze(ttype)&&Hi(),Me(t),null;case 19:if(ue(he),s=tmemoizedState,s===null)return Me(t),null;if(r=(tflags&128)!==0,i=srendering,i===null)if(r)Uo(s,!1);else{if(je!==0||e!==null&&eflags&128)for(e=tchild;e!==null;){if(i=Xi(e),i!==null){for(tflags|=128,Uo(s,!1),r=iupdateQueue,r!==null&&(tupdateQueue=r,tflags|=4),tsubtreeFlags=0,r=n,n=tchild;n!==null;)s=n,e=r,sflags&=14680066,i=salternate,i===null?(schildLanes=0,slanes=e,schild=null,ssubtreeFlags=0,smemoizedProps=null,smemoizedState=null,supdateQueue=null,sdependencies=null,sstateNode=null):(schildLanes=ichildLanes,slanes=ilanes,schild=ichild,ssubtreeFlags=0,sdeletions=null,smemoizedProps=imemoizedProps,smemoizedState=imemoizedState,supdateQueue=iupdateQueue,stype=itype,e=idependencies,sdependencies=e===null?null:{lanes:elanes,firstContext:efirstContext}),n=nsibling;return se(he,hecurrent&1|2),tchild}e=esibling}stail!==null&&xe()>wo&&(tflags|=128,r=!0,Uo(s,!1),tlanes=4194304)}else{if(!r)if(e=Xi(i),e!==null){if(tflags|=128,r=!0,n=eupdateQueue,n!==null&&(tupdateQueue=n,tflags|=4),Uo(s,!0),stail===null&&stailMode==="hidden"&&!ialternate&&!pe)return Me(t),null}else 2*xe()-srenderingStartTime>wo&&n!==1073741824&&(tflags|=128,r=!0,Uo(s,!1),tlanes=4194304);sisBackwards?(isibling=tchild,tchild=i):(n=slast,n!==null?nsibling=i:tchild=i,slast=i)}return stail!==null?(t=stail,srendering=t,stail=tsibling,srenderingStartTime=xe(),tsibling=null,n=hecurrent,se(he,r?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return Vc(),r=tmemoizedState!==null,e!==null&&ememoizedState!==null!==r&&(tflags|=8192),r&&tmode&1?et&1073741824&&(Me(t),tsubtreeFlags&6&&(tflags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(A(156,ttag))}function Iw(e,t){switch(Ec(t),ttag){case 1:return Ze(ttype)&&Hi(),e=tflags,e&65536?(tflags=e&-65537|128,t):null;case 3:return yo(),ue(Xe),ue($e),_c(),e=tflags,e&65536&&!(e&128)?(tflags=e&-65537|128,t):null;case 5:return Ac(t),null;case 13:if(ue(he),e=tmemoizedState,e!==null&&edehydrated!==null){if(talternate===null)throw Error(A(340));go()}return e=tflags,e&65536?(tflags=e&-65537|128,t):null;case 19:return ue(he),null;case 4:return yo(),null;case 10:return Tc(ttype_context),null;case 22:case 23:return Vc(),null;case 24:return null;default:return null}}var di=!1,ze=!1,Lw=typeof WeakSet=="function"?WeakSet:Set,D=null;function Kr(e,t){var n=eref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ye(e,t,r)}else ncurrent=null}function Eu(e,t,n){try{n()}catch(r){ye(e,t,r)}}var Mf=!1;function Mw(e,t){if(iu=$i,e=Hh(),bc(e)){if("selectionStart"in e)var n={start:eselectionStart,end:eselectionEnd};else e:{n=(n=eownerDocument)&&ndefaultView||window;var r=ngetSelection&&ngetSelection();if(r&&rrangeCount!==0){n=ranchorNode;var o=ranchorOffset,s=rfocusNode;r=rfocusOffset;try{nnodeType,snodeType}catch{n=null;break e}var i=0,a=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||o!==0&&fnodeType!==3||(a=i+o),f!==s||r!==0&&fnodeType!==3||(u=i+r),fnodeType===3&&(i+=fnodeValuelength),(p=ffirstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===o&&(a=i),h===s&&++d===r&&(u=i),(p=fnextSibling)!==null)break;f=h,h=fparentNode}f=p}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(au={focusedElem:e,selectionRange:n},$i=!1,D=t;D!==null;)if(t=D,e=tchild,(tsubtreeFlags&1028)!==0&&e!==null)ereturn=t,D=e;else for(;D!==null;){t=D;try{var b=talternate;if(tflags&1024)switch(ttag){case 0:case 11:case 15:break;case 1:if(b!==null){var x=bmemoizedProps,w=bmemoizedState,m=tstateNode,g=mgetSnapshotBeforeUpdate(telementType===ttype?x:Ct(ttype,x),w);m__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=tstateNodecontainerInfo;ynodeType===1?ytextContent="":ynodeType===9&&ydocumentElement&&yremoveChild(ydocumentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(S){ye(t,treturn,S)}if(e=tsibling,e!==null){ereturn=treturn,D=e;break}D=treturn}return b=Mf,Mf=!1,b}function rs(e,t,n){var r=tupdateQueue;if(r=r!==null?rlastEffect:null,r!==null){var o=r=rnext;do{if((otag&e)===e){var s=odestroy;odestroy=void 0,s!==void 0&&Eu(t,n,s)}o=onext}while(o!==r)}}function Ca(e,t){if(t=tupdateQueue,t=t!==null?tlastEffect:null,t!==null){var n=t=tnext;do{if((ntag&e)===e){var r=ncreate;ndestroy=r()}n=nnext}while(n!==t)}}function Cu(e){var t=eref;if(t!==null){var n=estateNode;switch(etag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):tcurrent=e}}function $m(e){var t=ealternate;t!==null&&(ealternate=null,$m(t)),echild=null,edeletions=null,esibling=null,etag===5&&(t=estateNode,t!==null&&(delete t[Ht],delete t[xs],delete t[cu],delete t[yw],delete t[xw])),estateNode=null,ereturn=null,edependencies=null,ememoizedProps=null,ememoizedState=null,ependingProps=null,estateNode=null,eupdateQueue=null}function Um(e){return etag===5||etag===3||etag===4}function Df(e){e:for(;;){for(;esibling===null;){if(ereturn===null||Um(ereturn))return null;e=ereturn}for(esiblingreturn=ereturn,e=esibling;etag!==5&&etag!==6&&etag!==18;){if(eflags&2||echild===null||etag===4)continue e;echildreturn=e,e=echild}if(!(eflags&2))return estateNode}}function ju(e,t,n){var r=etag;if(r===5||r===6)e=estateNode,t?nnodeType===8?nparentNodeinsertBefore(e,t):ninsertBefore(e,t):(nnodeType===8?(t=nparentNode,tinsertBefore(e,n)):(t=n,tappendChild(e)),n=n_reactRootContainer,n!=null||tonclick!==null||(tonclick=Vi));else if(r!==4&&(e=echild,e!==null))for(ju(e,t,n),e=esibling;e!==null;)ju(e,t,n),e=esibling}function Nu(e,t,n){var r=etag;if(r===5||r===6)e=estateNode,t?ninsertBefore(e,t):nappendChild(e);else if(r!==4&&(e=echild,e!==null))for(Nu(e,t,n),e=esibling;e!==null;)Nu(e,t,n),e=esibling}var ke=null,kt=!1;function En(e,t,n){for(n=nchild;n!==null;)Bm(e,t,n),n=nsibling}function Bm(e,t,n){if(Qt&&typeof QtonCommitFiberUnmount=="function")try{QtonCommitFiberUnmount(ga,n)}catch{}switch(ntag){case 5:ze||Kr(n,t);case 6:var r=ke,o=kt;ke=null,En(e,t,n),ke=r,kt=o,ke!==null&&(kt?(e=ke,n=nstateNode,enodeType===8?eparentNoderemoveChild(n):eremoveChild(n)):keremoveChild(nstateNode));break;case 18:ke!==null&&(kt?(e=ke,n=nstateNode,enodeType===8?yl(eparentNode,n):enodeType===1&&yl(e,n),hs(e)):yl(ke,nstateNode));break;case 4:r=ke,o=kt,ke=nstateNodecontainerInfo,kt=!0,En(e,t,n),ke=r,kt=o;break;case 0:case 11:case 14:case 15:if(!ze&&(r=nupdateQueue,r!==null&&(r=rlastEffect,r!==null))){o=r=rnext;do{var s=o,i=sdestroy;s=stag,i!==void 0&&(s&2||s&4)&&Eu(n,t,i),o=onext}while(o!==r)}En(e,t,n);break;case 1:if(!ze&&(Kr(n,t),r=nstateNode,typeof rcomponentWillUnmount=="function"))try{rprops=nmemoizedProps,rstate=nmemoizedState,rcomponentWillUnmount()}catch(a){ye(n,t,a)}En(e,t,n);break;case 21:En(e,t,n);break;case 22:nmode&1?(ze=(r=ze)||nmemoizedState!==null,En(e,t,n),ze=r):En(e,t,n);break;default:En(e,t,n)}}function Ff(e){var t=eupdateQueue;if(t!==null){eupdateQueue=null;var n=estateNode;n===null&&(n=estateNode=new Lw),tforEach(function(r){var o=Wwbind(null,e,r);nhas(r)||(nadd(r),rthen(o,o))})}}function bt(e,t){var n=tdeletions;if(n!==null)for(var r=0;r<nlength;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(atag){case 5:ke=astateNode,kt=!1;break e;case 3:ke=astateNodecontainerInfo,kt=!0;break e;case 4:ke=astateNodecontainerInfo,kt=!0;break e}a=areturn}if(ke===null)throw Error(A(160));Bm(s,i,o),ke=null,kt=!1;var u=oalternate;u!==null&&(ureturn=null),oreturn=null}catch(c){ye(o,t,c)}}if(tsubtreeFlags&12854)for(t=tchild;t!==null;)Vm(t,e),t=tsibling}function Vm(e,t){var n=ealternate,r=eflags;switch(etag){case 0:case 11:case 14:case 15:if(bt(t,e),zt(e),r&4){try{rs(3,e,ereturn),Ca(3,e)}catch(x){ye(e,ereturn,x)}try{rs(5,e,ereturn)}catch(x){ye(e,ereturn,x)}}break;case 1:bt(t,e),zt(e),r&512&&n!==null&&Kr(n,nreturn);break;case 5:if(bt(t,e),zt(e),r&512&&n!==null&&Kr(n,nreturn),eflags&32){var o=estateNode;try{cs(o,"")}catch(x){ye(e,ereturn,x)}}if(r&4&&(o=estateNode,o!=null)){var s=ememoizedProps,i=n!==null?nmemoizedProps:s,a=etype,u=eupdateQueue;if(eupdateQueue=null,u!==null)try{a==="input"&&stype==="radio"&&sname!=null&&dh(o,s),ql(a,i);var c=ql(a,s);for(i=0;i<ulength;i+=2){var d=u[i],f=u[i+1];d==="style"?gh(o,f):d==="dangerouslySetInnerHTML"?hh(o,f):d==="children"?cs(o,f):lc(o,d,f,c)}switch(a){case"input":Wl(o,s);break;case"textarea":fh(o,s);break;case"select":var h=o_wrapperStatewasMultiple;o_wrapperStatewasMultiple=!!smultiple;var p=svalue;p!=null?qr(o,!!smultiple,p,!1):h!==!!smultiple&&(sdefaultValue!=null?qr(o,!!smultiple,sdefaultValue,!0):qr(o,!!smultiple,smultiple?[]:"",!1))}o[xs]=s}catch(x){ye(e,ereturn,x)}}break;case 6:if(bt(t,e),zt(e),r&4){if(estateNode===null)throw Error(A(162));o=estateNode,s=ememoizedProps;try{onodeValue=s}catch(x){ye(e,ereturn,x)}}break;case 3:if(bt(t,e),zt(e),r&4&&n!==null&&nmemoizedStateisDehydrated)try{hs(tcontainerInfo)}catch(x){ye(e,ereturn,x)}break;case 4:bt(t,e),zt(e);break;case 13:bt(t,e),zt(e),o=echild,oflags&8192&&(s=omemoizedState!==null,ostateNodeisHidden=s,!s||oalternate!==null&&oalternatememoizedState!==null||(Uc=xe())),r&4&&Ff(e);break;case 22:if(d=n!==null&&nmemoizedState!==null,emode&1?(ze=(c=ze)||d,bt(t,e),ze=c):bt(t,e),zt(e),r&8192){if(c=ememoizedState!==null,(estateNodeisHidden=c)&&!d&&emode&1)for(D=e,d=echild;d!==null;){for(f=D=d;D!==null;){switch(h=D,p=hchild,htag){case 0:case 11:case 14:case 15:rs(4,h,hreturn);break;case 1:Kr(h,hreturn);var b=hstateNode;if(typeof bcomponentWillUnmount=="function"){r=h,n=hreturn;try{t=r,bprops=tmemoizedProps,bstate=tmemoizedState,bcomponentWillUnmount()}catch(x){ye(r,n,x)}}break;case 5:Kr(h,hreturn);break;case 22:if(hmemoizedState!==null){$f(f);continue}}p!==null?(preturn=h,D=p):$f(f)}d=dsibling}e:for(d=null,f=e;;){if(ftag===5){if(d===null){d=f;try{o=fstateNode,c?(s=ostyle,typeof ssetProperty=="function"?ssetProperty("display","none","important"):sdisplay="none"):(a=fstateNode,u=fmemoizedPropsstyle,i=u!=null&&uhasOwnProperty("display")?udisplay:null,astyledisplay=mh("display",i))}catch(x){ye(e,ereturn,x)}}}else if(ftag===6){if(d===null)try{fstateNodenodeValue=c?"":fmemoizedProps}catch(x){ye(e,ereturn,x)}}else if((ftag!==22&&ftag!==23||fmemoizedState===null||f===e)&&fchild!==null){fchildreturn=f,f=fchild;continue}if(f===e)break e;for(;fsibling===null;){if(freturn===null||freturn===e)break e;d===f&&(d=null),f=freturn}d===f&&(d=null),fsiblingreturn=freturn,f=fsibling}}break;case 19:bt(t,e),zt(e),r&4&&Ff(e);break;case 21:break;default:bt(t,e),zt(e)}}function zt(e){var t=eflags;if(t&2){try{e:{for(var n=ereturn;n!==null;){if(Um(n)){var r=n;break e}n=nreturn}throw Error(A(160))}switch(rtag){case 5:var o=rstateNode;rflags&32&&(cs(o,""),rflags&=-33);var s=Df(e);Nu(e,s,o);break;case 3:case 4:var i=rstateNodecontainerInfo,a=Df(e);ju(e,a,i);break;default:throw Error(A(161))}}catch(u){ye(e,ereturn,u)}eflags&=-3}t&4096&&(eflags&=-4097)}function Dw(e,t,n){D=e,Hm(e)}function Hm(e,t,n){for(var r=(emode&1)!==0;D!==null;){var o=D,s=ochild;if(otag===22&&r){var i=omemoizedState!==null||di;if(!i){var a=oalternate,u=a!==null&&amemoizedState!==null||ze;a=di;var c=ze;if(di=i,(ze=u)&&!c)for(D=o;D!==null;)i=D,u=ichild,itag===22&&imemoizedState!==null?Uf(o):u!==null?(ureturn=i,D=u):Uf(o);for(;s!==null;)D=s,Hm(s),s=ssibling;D=o,di=a,ze=c}zf(e)}else osubtreeFlags&8772&&s!==null?(sreturn=o,D=s):zf(e)}}function zf(e){for(;D!==null;){var t=D;if(tflags&8772){var n=talternate;try{if(tflags&8772)switch(ttag){case 0:case 11:case 15:ze||Ca(5,t);break;case 1:var r=tstateNode;if(tflags&4&&!ze)if(n===null)rcomponentDidMount();else{var o=telementType===ttype?nmemoizedProps:Ct(ttype,nmemoizedProps);rcomponentDidUpdate(o,nmemoizedState,r__reactInternalSnapshotBeforeUpdate)}var s=tupdateQueue;s!==null&&Ef(t,s,r);break;case 3:var i=tupdateQueue;if(i!==null){if(n=null,tchild!==null)switch(tchildtag){case 5:n=tchildstateNode;break;case 1:n=tchildstateNode}Ef(t,i,n)}break;case 5:var a=tstateNode;if(n===null&&tflags&4){n=a;var u=tmemoizedProps;switch(ttype){case"button":case"input":case"select":case"textarea":uautoFocus&&nfocus();break;case"img":usrc&&(nsrc=usrc)}}break;case 6:break;case 4:break;case 12:break;case 13:if(tmemoizedState===null){var c=talternate;if(c!==null){var d=cmemoizedState;if(d!==null){var f=ddehydrated;f!==null&&hs(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}ze||tflags&512&&Cu(t)}catch(h){ye(t,treturn,h)}}if(t===e){D=null;break}if(n=tsibling,n!==null){nreturn=treturn,D=n;break}D=treturn}}function $f(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=tsibling;if(n!==null){nreturn=treturn,D=n;break}D=treturn}}function Uf(e){for(;D!==null;){var t=D;try{switch(ttag){case 0:case 11:case 15:var n=treturn;try{Ca(4,t)}catch(u){ye(t,n,u)}break;case 1:var r=tstateNode;if(typeof rcomponentDidMount=="function"){var o=treturn;try{rcomponentDidMount()}catch(u){ye(t,o,u)}}var s=treturn;try{Cu(t)}catch(u){ye(t,s,u)}break;case 5:var i=treturn;try{Cu(t)}catch(u){ye(t,i,u)}}}catch(u){ye(t,treturn,u)}if(t===e){D=null;break}var a=tsibling;if(a!==null){areturn=treturn,D=a;break}D=treturn}}var Fw=Mathceil,ea=gnReactCurrentDispatcher,zc=gnReactCurrentOwner,mt=gnReactCurrentBatchConfig,J=0,Te=null,be=null,Re=0,et=0,Yr=Jn(0),je=0,js=null,Er=0,ja=0,$c=0,os=null,Ye=null,Uc=0,wo=1/0,rn=null,ta=!1,Tu=null,Hn=null,fi=!1,Dn=null,na=0,ss=0,ku=null,ki=-1,Pi=0;function He(){return J&6?xe():ki!==-1?ki:ki=xe()}function Wn(e){return emode&1?J&2&&Re!==0?Re&-Re:bwtransition!==null?(Pi===0&&(Pi=kh()),Pi):(e=re,e!==0||(e=windowevent,e=e===void 0?16:Lh(etype)),e):1}function _t(e,t,n,r){if(50<ss)throw ss=0,ku=null,Error(A(185));Ms(e,n,r),(!(J&2)||e!==Te)&&(e===Te&&(!(J&2)&&(ja|=n),je===4&&Rn(e,Re)),Je(e,r),n===1&&J===0&&!(tmode&1)&&(wo=xe()+500,ba&&er()))}function Je(e,t){var n=ecallbackNode;b0(e,t);var r=zi(e,e===Te?Re:0);if(r===0)n!==null&&Yd(n),ecallbackNode=null,ecallbackPriority=0;else if(t=r&-r,ecallbackPriority!==t){if(n!=null&&Yd(n),t===1)etag===0?ww(Bfbind(null,e)):em(Bfbind(null,e)),gw(function(){!(J&6)&&er()}),n=null;else{switch(Ph(r)){case 1:n=pc;break;case 4:n=Nh;break;case 16:n=Fi;break;case 536870912:n=Th;break;default:n=Fi}n=Zm(n,Wmbind(null,e))}ecallbackPriority=t,ecallbackNode=n}}function Wm(e,t){if(ki=-1,Pi=0,J&6)throw Error(A(327));var n=ecallbackNode;if(to()&&ecallbackNode!==n)return null;var r=zi(e,e===Te?Re:0);if(r===0)return null;if(r&30||r&eexpiredLanes||t)t=ra(e,r);else{t=r;var o=J;J|=2;var s=Gm();(Te!==e||Re!==t)&&(rn=null,wo=xe()+500,gr(e,t));do try{Uw();break}catch(a){Qm(e,a)}while(!0);Nc(),eacurrent=s,J=o,be!==null?t=0:(Te=null,Re=0,t=je)}if(t!==0){if(t===2&&(o=tu(e),o!==0&&(r=o,t=Pu(e,o))),t===1)throw n=js,gr(e,0),Rn(e,r),Je(e,xe()),n;if(t===6)Rn(e,r);else{if(o=ecurrentalternate,!(r&30)&&!zw(o)&&(t=ra(e,r),t===2&&(s=tu(e),s!==0&&(r=s,t=Pu(e,s))),t===1))throw n=js,gr(e,0),Rn(e,r),Je(e,xe()),n;switch(efinishedWork=o,efinishedLanes=r,t){case 0:case 1:throw Error(A(345));case 2:ir(e,Ye,rn);break;case 3:if(Rn(e,r),(r&130023424)===r&&(t=Uc+500-xe(),10<t)){if(zi(e,0)!==0)break;if(o=esuspendedLanes,(o&r)!==r){He(),epingedLanes|=esuspendedLanes&o;break}etimeoutHandle=uu(irbind(null,e,Ye,rn),t);break}ir(e,Ye,rn);break;case 4:if(Rn(e,r),(r&4194240)===r)break;for(t=eeventTimes,o=-1;0<r;){var i=31-At(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fw(r/1960))-r,10<r){etimeoutHandle=uu(irbind(null,e,Ye,rn),r);break}ir(e,Ye,rn);break;case 5:ir(e,Ye,rn);break;default:throw Error(A(329))}}}return Je(e,xe()),ecallbackNode===n?Wmbind(null,e):null}function Pu(e,t){var n=os;return ecurrentmemoizedStateisDehydrated&&(gr(e,t).flags|=256),e=ra(e,t),e!==2&&(t=Ye,Ye=n,t!==null&&Ru(t)),e}function Ru(e){Ye===null?Ye=e:Yepushapply(Ye,e)}function zw(e){for(var t=e;;){if(tflags&16384){var n=tupdateQueue;if(n!==null&&(n=nstores,n!==null))for(var r=0;r<nlength;r++){var o=n[r],s=ogetSnapshot;o=ovalue;try{if(!Ot(s(),o))return!1}catch{return!1}}}if(n=tchild,tsubtreeFlags&16384&&n!==null)nreturn=t,t=n;else{if(t===e)break;for(;tsibling===null;){if(treturn===null||treturn===e)return!0;t=treturn}tsiblingreturn=treturn,t=tsibling}}return!0}function Rn(e,t){for(t&=~$c,t&=~ja,esuspendedLanes|=t,epingedLanes&=~t,e=eexpirationTimes;0<t;){var n=31-At(t),r=1<<n;e[n]=-1,t&=~r}}function Bf(e){if(J&6)throw Error(A(327));to();var t=zi(e,0);if(!(t&1))return Je(e,xe()),null;var n=ra(e,t);if(etag!==0&&n===2){var r=tu(e);r!==0&&(t=r,n=Pu(e,r))}if(n===1)throw n=js,gr(e,0),Rn(e,t),Je(e,xe()),n;if(n===6)throw Error(A(345));return efinishedWork=ecurrentalternate,efinishedLanes=t,ir(e,Ye,rn),Je(e,xe()),null}function Bc(e,t){var n=J;J|=1;try{return e(t)}finally{J=n,J===0&&(wo=xe()+500,ba&&er())}}function Cr(e){Dn!==null&&Dntag===0&&!(J&6)&&to();var t=J;J|=1;var n=mttransition,r=re;try{if(mttransition=null,re=1,e)return e()}finally{re=r,mttransition=n,J=t,!(J&6)&&er()}}function Vc(){et=Yrcurrent,ue(Yr)}function gr(e,t){efinishedWork=null,efinishedLanes=0;var n=etimeoutHandle;if(n!==-1&&(etimeoutHandle=-1,mw(n)),be!==null)for(n=bereturn;n!==null;){var r=n;switch(Ec(r),rtag){case 1:r=rtypechildContextTypes,r!=null&&Hi();break;case 3:yo(),ue(Xe),ue($e),_c();break;case 5:Ac(r);break;case 4:yo();break;case 13:ue(he);break;case 19:ue(he);break;case 10:Tc(rtype_context);break;case 22:case 23:Vc()}n=nreturn}if(Te=e,be=e=Qn(ecurrent,null),Re=et=t,je=0,js=null,$c=ja=Er=0,Ye=os=null,lr!==null){for(t=0;t<lrlength;t++)if(n=lr[t],r=ninterleaved,r!==null){ninterleaved=null;var o=rnext,s=npending;if(s!==null){var i=snext;snext=o,rnext=i}npending=r}lr=null}return e}function Qm(e,t){do{var n=be;try{if(Nc(),jicurrent=Ji,Zi){for(var r=mememoizedState;r!==null;){var o=rqueue;o!==null&&(opending=null),r=rnext}Zi=!1}if(Sr=0,Ne=Ce=me=null,ns=!1,Ss=0,zccurrent=null,n===null||nreturn===null){je=1,js=t,be=null;break}e:{var s=e,i=nreturn,a=n,u=t;if(t=Re,aflags|=32768,u!==null&&typeof u=="object"&&typeof uthen=="function"){var c=u,d=a,f=dtag;if(!(dmode&1)&&(f===0||f===11||f===15)){var h=dalternate;h?(dupdateQueue=hupdateQueue,dmemoizedState=hmemoizedState,dlanes=hlanes):(dupdateQueue=null,dmemoizedState=null)}var p=Pf(i);if(p!==null){pflags&=-257,Rf(p,i,a,s,t),pmode&1&&kf(s,c,t),t=p,u=c;var b=tupdateQueue;if(b===null){var x=new Set;xadd(u),tupdateQueue=x}else badd(u);break e}else{if(!(t&1)){kf(s,c,t),Hc();break e}u=Error(A(426))}}else if(pe&&amode&1){var w=Pf(i);if(w!==null){!(wflags&65536)&&(wflags|=256),Rf(w,i,a,s,t),Cc(xo(u,a));break e}}s=u=xo(u,a),je!==4&&(je=2),os===null?os=[s]:ospush(s),s=i;do{switch(stag){case 3:sflags|=65536,t&=-t,slanes|=t;var m=Pm(s,u,t);Sf(s,m);break e;case 1:a=u;var g=stype,y=sstateNode;if(!(sflags&128)&&(typeof ggetDerivedStateFromError=="function"||y!==null&&typeof ycomponentDidCatch=="function"&&(Hn===null||!Hnhas(y)))){sflags|=65536,t&=-t,slanes|=t;var S=Rm(s,a,t);Sf(s,S);break e}}s=sreturn}while(s!==null)}Ym(n)}catch(E){t=E,be===n&&n!==null&&(be=n=nreturn);continue}break}while(!0)}function Gm(){var e=eacurrent;return eacurrent=Ji,e===null?Ji:e}function Hc(){(je===0||je===3||je===2)&&(je=4),Te===null||!(Er&268435455)&&!(ja&268435455)||Rn(Te,Re)}function ra(e,t){var n=J;J|=2;var r=Gm();(Te!==e||Re!==t)&&(rn=null,gr(e,t));do try{$w();break}catch(o){Qm(e,o)}while(!0);if(Nc(),J=n,eacurrent=r,be!==null)throw Error(A(261));return Te=null,Re=0,je}function $w(){for(;be!==null;)Km(be)}function Uw(){for(;be!==null&&!f0();)Km(be)}function Km(e){var t=Xm(ealternate,e,et);ememoizedProps=ependingProps,t===null?Ym(e):be=t,zccurrent=null}function Ym(e){var t=e;do{var n=talternate;if(e=treturn,tflags&32768){if(n=Iw(n,t),n!==null){nflags&=32767,be=n;return}if(e!==null)eflags|=32768,esubtreeFlags=0,edeletions=null;else{je=6,be=null;return}}else if(n=Ow(n,t,et),n!==null){be=n;return}if(t=tsibling,t!==null){be=t;return}be=t=e}while(t!==null);je===0&&(je=5)}function ir(e,t,n){var r=re,o=mttransition;try{mttransition=null,re=1,Bw(e,t,n,r)}finally{mttransition=o,re=r}return null}function Bw(e,t,n,r){do to();while(Dn!==null);if(J&6)throw Error(A(327));n=efinishedWork;var o=efinishedLanes;if(n===null)return null;if(efinishedWork=null,efinishedLanes=0,n===ecurrent)throw Error(A(177));ecallbackNode=null,ecallbackPriority=0;var s=nlanes|nchildLanes;if(S0(e,s),e===Te&&(be=Te=null,Re=0),!(nsubtreeFlags&2064)&&!(nflags&2064)||fi||(fi=!0,Zm(Fi,function(){return to(),null})),s=(nflags&15990)!==0,nsubtreeFlags&15990||s){s=mttransition,mttransition=null;var i=re;re=1;var a=J;J|=4,zccurrent=null,Mw(e,n),Vm(n,e),lw(au),$i=!!iu,au=iu=null,ecurrent=n,Dw(n),p0(),J=a,re=i,mttransition=s}else ecurrent=n;if(fi&&(fi=!1,Dn=e,na=o),s=ependingLanes,s===0&&(Hn=null),g0(nstateNode),Je(e,xe()),t!==null)for(r=eonRecoverableError,n=0;n<tlength;n++)o=t[n],r(ovalue,{componentStack:ostack,digest:odigest});if(ta)throw ta=!1,e=Tu,Tu=null,e;return na&1&&etag!==0&&to(),s=ependingLanes,s&1?e===ku?ss++:(ss=0,ku=e):ss=0,er(),null}function to(){if(Dn!==null){var e=Ph(na),t=mttransition,n=re;try{if(mttransition=null,re=16>e?16:e,Dn===null)var r=!1;else{if(e=Dn,Dn=null,na=0,J&6)throw Error(A(331));var o=J;for(J|=4,D=ecurrent;D!==null;){var s=D,i=schild;if(Dflags&16){var a=sdeletions;if(a!==null){for(var u=0;u<alength;u++){var c=a[u];for(D=c;D!==null;){var d=D;switch(dtag){case 0:case 11:case 15:rs(8,d,s)}var f=dchild;if(f!==null)freturn=d,D=f;else for(;D!==null;){d=D;var h=dsibling,p=dreturn;if($m(d),d===c){D=null;break}if(h!==null){hreturn=p,D=h;break}D=p}}}var b=salternate;if(b!==null){var x=bchild;if(x!==null){bchild=null;do{var w=xsibling;xsibling=null,x=w}while(x!==null)}}D=s}}if(ssubtreeFlags&2064&&i!==null)ireturn=s,D=i;else e:for(;D!==null;){if(s=D,sflags&2048)switch(stag){case 0:case 11:case 15:rs(9,s,sreturn)}var m=ssibling;if(m!==null){mreturn=sreturn,D=m;break e}D=sreturn}}var g=ecurrent;for(D=g;D!==null;){i=D;var y=ichild;if(isubtreeFlags&2064&&y!==null)yreturn=i,D=y;else e:for(i=g;D!==null;){if(a=D,aflags&2048)try{switch(atag){case 0:case 11:case 15:Ca(9,a)}}catch(E){ye(a,areturn,E)}if(a===i){D=null;break e}var S=asibling;if(S!==null){Sreturn=areturn,D=S;break e}D=areturn}}if(J=o,er(),Qt&&typeof QtonPostCommitFiberRoot=="function")try{QtonPostCommitFiberRoot(ga,e)}catch{}r=!0}return r}finally{re=n,mttransition=t}}return!1}function Vf(e,t,n){t=xo(n,t),t=Pm(e,t,1),e=Vn(e,t,1),t=He(),e!==null&&(Ms(e,1,t),Je(e,t))}function ye(e,t,n){if(etag===3)Vf(e,e,n);else for(;t!==null;){if(ttag===3){Vf(t,e,n);break}else if(ttag===1){var r=tstateNode;if(typeof ttypegetDerivedStateFromError=="function"||typeof rcomponentDidCatch=="function"&&(Hn===null||!Hnhas(r))){e=xo(n,e),e=Rm(t,e,1),t=Vn(t,e,1),e=He(),t!==null&&(Ms(t,1,e),Je(t,e));break}}t=treturn}}function Vw(e,t,n){var r=epingCache;r!==null&&rdelete(t),t=He(),epingedLanes|=esuspendedLanes&n,Te===e&&(Re&n)===n&&(je===4||je===3&&(Re&130023424)===Re&&500>xe()-Uc?gr(e,0):$c|=n),Je(e,t)}function qm(e,t){t===0&&(emode&1?(t=ni,ni<<=1,!(ni&130023424)&&(ni=4194304)):t=1);var n=He();e=fn(e,t),e!==null&&(Ms(e,t,n),Je(e,n))}function Hw(e){var t=ememoizedState,n=0;t!==null&&(n=tretryLane),qm(e,n)}function Ww(e,t){var n=0;switch(etag){case 13:var r=estateNode,o=ememoizedState;o!==null&&(n=oretryLane);break;case 19:r=estateNode;break;default:throw Error(A(314))}r!==null&&rdelete(t),qm(e,n)}var Xm;Xm=function(e,t,n){if(e!==null)if(ememoizedProps!==tpendingProps||Xecurrent)qe=!0;else{if(!(elanes&n)&&!(tflags&128))return qe=!1,_w(e,t,n);qe=!!(eflags&131072)}else qe=!1,pe&&tflags&1048576&&tm(t,Gi,tindex);switch(tlanes=0,ttag){case 2:var r=ttype;Ti(e,t),e=tpendingProps;var o=mo(t,$ecurrent);eo(t,n),o=Ic(null,t,r,e,o,n);var s=Lc();return tflags|=1,typeof o=="object"&&o!==null&&typeof orender=="function"&&o.$$typeof===void 0?(ttag=1,tmemoizedState=null,tupdateQueue=null,Ze(r)?(s=!0,Wi(t)):s=!1,tmemoizedState=ostate!==null&&ostate!==void 0?ostate:null,Pc(t),oupdater=Ea,tstateNode=o,o_reactInternals=t,gu(t,r,e,n),t=xu(null,t,r,!0,s,n)):(ttag=0,pe&&s&&Sc(t),Be(null,t,o,n),t=tchild),t;case 16:r=telementType;e:{switch(Ti(e,t),e=tpendingProps,o=r_init,r=o(r_payload),ttype=r,o=ttag=Gw(r),e=Ct(r,e),o){case 0:t=yu(null,t,r,e,n);break e;case 1:t=Of(null,t,r,e,n);break e;case 11:t=Af(null,t,r,e,n);break e;case 14:t=_f(null,t,r,Ct(rtype,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=ttype,o=tpendingProps,o=telementType===r?o:Ct(r,o),yu(e,t,r,o,n);case 1:return r=ttype,o=tpendingProps,o=telementType===r?o:Ct(r,o),Of(e,t,r,o,n);case 3:e:{if(Im(t),e===null)throw Error(A(387));r=tpendingProps,s=tmemoizedState,o=selement,am(e,t),qi(t,r,null,n);var i=tmemoizedState;if(r=ielement,sisDehydrated)if(s={element:r,isDehydrated:!1,cache:icache,pendingSuspenseBoundaries:ipendingSuspenseBoundaries,transitions:itransitions},tupdateQueuebaseState=s,tmemoizedState=s,tflags&256){o=xo(Error(A(423)),t),t=If(e,t,r,n,o);break e}else if(r!==o){o=xo(Error(A(424)),t),t=If(e,t,r,n,o);break e}else for(rt=Bn(tstateNodecontainerInfofirstChild),ot=t,pe=!0,Pt=null,n=sm(t,null,r,n),tchild=n;n;)nflags=nflags&-3|4096,n=nsibling;else{if(go(),r===o){t=pn(e,t,n);break e}Be(e,t,r,n)}t=tchild}return t;case 5:return lm(t),e===null&&pu(t),r=ttype,o=tpendingProps,s=e!==null?ememoizedProps:null,i=ochildren,lu(r,o)?i=null:s!==null&&lu(r,s)&&(tflags|=32),Om(e,t),Be(e,t,i,n),tchild;case 6:return e===null&&pu(t),null;case 13:return Lm(e,t,n);case 4:return Rc(t,tstateNodecontainerInfo),r=tpendingProps,e===null?tchild=vo(t,null,r,n):Be(e,t,r,n),tchild;case 11:return r=ttype,o=tpendingProps,o=telementType===r?o:Ct(r,o),Af(e,t,r,o,n);case 7:return Be(e,t,tpendingProps,n),tchild;case 8:return Be(e,t,tpendingPropschildren,n),tchild;case 12:return Be(e,t,tpendingPropschildren,n),tchild;case 10:e:{if(r=ttype_context,o=tpendingProps,s=tmemoizedProps,i=ovalue,se(Ki,r_currentValue),r_currentValue=i,s!==null)if(Ot(svalue,i)){if(schildren===ochildren&&!Xecurrent){t=pn(e,t,n);break e}}else for(s=tchild,s!==null&&(sreturn=t);s!==null;){var a=sdependencies;if(a!==null){i=schild;for(var u=afirstContext;u!==null;){if(ucontext===r){if(stag===1){u=un(-1,n&-n),utag=2;var c=supdateQueue;if(c!==null){c=cshared;var d=cpending;d===null?unext=u:(unext=dnext,dnext=u),cpending=u}}slanes|=n,u=salternate,u!==null&&(ulanes|=n),hu(sreturn,n,t),alanes|=n;break}u=unext}}else if(stag===10)i=stype===ttype?null:schild;else if(stag===18){if(i=sreturn,i===null)throw Error(A(341));ilanes|=n,a=ialternate,a!==null&&(alanes|=n),hu(i,n,t),i=ssibling}else i=schild;if(i!==null)ireturn=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=isibling,s!==null){sreturn=ireturn,i=s;break}i=ireturn}s=i}Be(e,t,ochildren,n),t=tchild}return t;case 9:return o=ttype,r=tpendingPropschildren,eo(t,n),o=gt(o),r=r(o),tflags|=1,Be(e,t,r,n),tchild;case 14:return r=ttype,o=Ct(r,tpendingProps),o=Ct(rtype,o),_f(e,t,r,o,n);case 15:return Am(e,t,ttype,tpendingProps,n);case 17:return r=ttype,o=tpendingProps,o=telementType===r?o:Ct(r,o),Ti(e,t),ttag=1,Ze(r)?(e=!0,Wi(t)):e=!1,eo(t,n),km(t,r,o),gu(t,r,o,n),xu(null,t,r,!0,e,n);case 19:return Mm(e,t,n);case 22:return _m(e,t,n)}throw Error(A(156,ttag))};function Zm(e,t){return jh(e,t)}function Qw(e,t,n,r){thistag=e,thiskey=n,thissibling=thischild=thisreturn=thisstateNode=thistype=thiselementType=null,thisindex=0,thisref=null,thispendingProps=t,thisdependencies=thismemoizedState=thisupdateQueue=thismemoizedProps=null,thismode=r,thissubtreeFlags=thisflags=0,thisdeletions=null,thischildLanes=thislanes=0,thisalternate=null}function ht(e,t,n,r){return new Qw(e,t,n,r)}function Wc(e){return e=eprototype,!(!e||!eisReactComponent)}function Gw(e){if(typeof e=="function")return Wc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cc)return 11;if(e===dc)return 14}return 2}function Qn(e,t){var n=ealternate;return n===null?(n=ht(etag,t,ekey,emode),nelementType=eelementType,ntype=etype,nstateNode=estateNode,nalternate=e,ealternate=n):(npendingProps=t,ntype=etype,nflags=0,nsubtreeFlags=0,ndeletions=null),nflags=eflags&14680064,nchildLanes=echildLanes,nlanes=elanes,nchild=echild,nmemoizedProps=ememoizedProps,nmemoizedState=ememoizedState,nupdateQueue=eupdateQueue,t=edependencies,ndependencies=t===null?null:{lanes:tlanes,firstContext:tfirstContext},nsibling=esibling,nindex=eindex,nref=eref,n}function Ri(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Wc(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case zr:return vr(nchildren,o,s,t);case uc:i=8,o|=8;break;case $l:return e=ht(12,n,t,o|2),eelementType=$l,elanes=s,e;case Ul:return e=ht(13,n,t,o),eelementType=Ul,elanes=s,e;case Bl:return e=ht(19,n,t,o),eelementType=Bl,elanes=s,e;case lh:return Na(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ih:i=10;break e;case ah:i=9;break e;case cc:i=11;break e;case dc:i=14;break e;case Tn:i=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=ht(i,n,t,o),telementType=e,ttype=r,tlanes=s,t}function vr(e,t,n,r){return e=ht(7,e,r,t),elanes=n,e}function Na(e,t,n,r){return e=ht(22,e,r,t),eelementType=lh,elanes=n,estateNode={isHidden:!1},e}function Nl(e,t,n){return e=ht(6,e,null,t),elanes=n,e}function Tl(e,t,n){return t=ht(4,echildren!==null?echildren:[],ekey,t),tlanes=n,tstateNode={containerInfo:econtainerInfo,pendingChildren:null,implementation:eimplementation},t}function Kw(e,t,n,r,o){thistag=t,thiscontainerInfo=e,thisfinishedWork=thispingCache=thiscurrent=thispendingChildren=null,thistimeoutHandle=-1,thiscallbackNode=thispendingContext=thiscontext=null,thiscallbackPriority=0,thiseventTimes=al(0),thisexpirationTimes=al(-1),thisentangledLanes=thisfinishedLanes=thismutableReadLanes=thisexpiredLanes=thispingedLanes=thissuspendedLanes=thispendingLanes=0,thisentanglements=al(0),thisidentifierPrefix=r,thisonRecoverableError=o,thismutableSourceEagerHydrationData=null}function Qc(e,t,n,r,o,s,i,a,u){return e=new Kw(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ht(3,null,null,t),ecurrent=s,sstateNode=e,smemoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pc(s),e}function Yw(e,t,n){var r=3<argumentslength&&"Y"!==void 0?"Y":null;return{$$typeof:Fr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Jm(e){if(!e)return Yn;e=e_reactInternals;e:{if(Tr(e)!==e||etag!==1)throw Error(A(170));var t=e;do{switch(ttag){case 3:t=tstateNodecontext;break e;case 1:if(Ze(ttype)){t=tstateNode__reactInternalMemoizedMergedChildContext;break e}}t=treturn}while(t!==null);throw Error(A(171))}if(etag===1){var n=etype;if(Ze(n))return Jh(e,n,t)}return t}function eg(e,t,n,r,o,s,i,a,u){return e=Qc(n,r,!0,e,o,s,i,a,u),econtext=Jm(null),n=ecurrent,r=He(),o=Wn(n),s=un(r,o),scallback=t??null,Vn(n,s,o),ecurrentlanes=o,Ms(e,o,r),Je(e,r),e}function Ta(e,t,n,r){var o=tcurrent,s=He(),i=Wn(o);return n=Jm(n),tcontext===null?tcontext=n:tpendingContext=n,t=un(s,i),tpayload={element:e},r=r===void 0?null:r,r!==null&&(tcallback=r),e=Vn(o,t,i),e!==null&&(_t(e,o,i,s),Ci(e,o,i)),i}function oa(e){if(e=ecurrent,!echild)return null;switch(echildtag){case 5:return echildstateNode;default:return echildstateNode}}function Hf(e,t){if(e=ememoizedState,e!==null&&edehydrated!==null){var n=eretryLane;eretryLane=n!==0&&n<t?n:t}}function Gc(e,t){Hf(e,t),(e=ealternate)&&Hf(e,t)}function qw(){return null}var tg=typeof reportError=="function"?reportError:function(e){consoleerror(e)};function Kc(e){this_internalRoot=e}kaprototyperender=Kcprototyperender=function(e){var t=this_internalRoot;if(t===null)throw Error(A(409));Ta(e,t,null,null)};kaprototypeunmount=Kcprototypeunmount=function(){var e=this_internalRoot;if(e!==null){this_internalRoot=null;var t=econtainerInfo;Cr(function(){Ta(null,e,null,null)}),t[dn]=null}};function ka(e){this_internalRoot=e}kaprototypeunstable_scheduleHydration=function(e){if(e){var t=_h();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pnlength&&t!==0&&t<Pn[n].priority;n++);Pnsplice(n,0,e),n===0&&Ih(e)}};function Yc(e){return!(!e||enodeType!==1&&enodeType!==9&&enodeType!==11)}function Pa(e){return!(!e||enodeType!==1&&enodeType!==9&&enodeType!==11&&(enodeType!==8||enodeValue!==" react-mount-point-unstable "))}function Wf(){}function Xw(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var c=oa(i);scall(c)}}var i=eg(t,r,e,0,null,!1,!1,"",Wf);return e_reactRootContainer=i,e[dn]=icurrent,vs(enodeType===8?eparentNode:e),Cr(),i}for(;o=elastChild;)eremoveChild(o);if(typeof r=="function"){var a=r;r=function(){var c=oa(u);acall(c)}}var u=Qc(e,0,!1,null,null,!1,!1,"",Wf);return e_reactRootContainer=u,e[dn]=ucurrent,vs(enodeType===8?eparentNode:e),Cr(function(){Ta(t,u,n,r)}),u}function Ra(e,t,n,r,o){var s=n_reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var u=oa(i);acall(u)}}Ta(t,i,e,o)}else i=Xw(n,t,e,o,r);return oa(i)}Rh=function(e){switch(etag){case 3:var t=estateNode;if(tcurrentmemoizedStateisDehydrated){var n=Yo(tpendingLanes);n!==0&&(hc(t,n|1),Je(t,xe()),!(J&6)&&(wo=xe()+500,er()))}break;case 13:Cr(function(){var r=fn(e,1);if(r!==null){var o=He();_t(r,e,1,o)}}),Gc(e,1)}};mc=function(e){if(etag===13){var t=fn(e,134217728);if(t!==null){var n=He();_t(t,e,134217728,n)}Gc(e,134217728)}};Ah=function(e){if(etag===13){var t=Wn(e),n=fn(e,t);if(n!==null){var r=He();_t(n,e,t,r)}Gc(e,t)}};_h=function(){return re};Oh=function(e,t){var n=re;try{return re=e,t()}finally{re=n}};Zl=function(e,t,n){switch(t){case"input":if(Wl(e,n),t=nname,ntype==="radio"&&t!=null){for(n=e;nparentNode;)n=nparentNode;for(n=nquerySelectorAll("input[name="+JSONstringify(""+t)+'][type="radio"]'),t=0;t<nlength;t++){var r=n[t];if(r!==e&&rform===eform){var o=wa(r);if(!o)throw Error(A(90));ch(r),Wl(r,o)}}}break;case"textarea":fh(e,n);break;case"select":t=nvalue,t!=null&&qr(e,!!nmultiple,t,!1)}};xh=Bc;wh=Cr;var Zw={usingClientEntryPoint:!1,Events:[Fs,Vr,wa,vh,yh,Bc]},Bo={findFiberByHostInstance:ar,bundleType:0,version:"1831",rendererPackageName:"react-dom"},Jw={bundleType:BobundleType,version:Boversion,rendererPackageName:BorendererPackageName,rendererConfig:BorendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gnReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Eh(e),e===null?null:estateNode},findFiberByHostInstance:BofindFiberByHostInstance||qw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"1831-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!piisDisabled&&pisupportsFiber)try{ga=piinject(Jw),Qt=pi}catch{}}lt__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zw;ltcreatePortal=function(e,t){var n=2<argumentslength&&"("!==void 0?"(":null;if(!Yc(t))throw Error(A(200));return Yw(e,t,null,n)};ltcreateRoot=function(e,t){if(!Yc(e))throw Error(A(299));var n=!1,r="",o=tg;return t!=null&&(tunstable_strictMode===!0&&(n=!0),tidentifierPrefix!==void 0&&(r=tidentifierPrefix),tonRecoverableError!==void 0&&(o=tonRecoverableError)),t=Qc(e,1,!1,null,null,n,!1,r,o),e[dn]=tcurrent,vs(enodeType===8?eparentNode:e),new Kc(t)};ltfindDOMNode=function(e){if(e==null)return null;if(enodeType===1)return e;var t=e_reactInternals;if(t===void 0)throw typeof erender=="function"?Error(A(188)):(e=Objectkeys(e).join(","),Error(A(268,e)));return e=Eh(t),e=e===null?null:estateNode,e};ltflushSync=function(e){return Cr(e)};lthydrate=function(e,t,n){if(!Pa(t))throw Error(A(200));return Ra(null,e,t,!0,n)};lthydrateRoot=function(e,t,n){if(!Yc(e))throw Error(A(405));var r=n!=null&&nhydratedSources||null,o=!1,s="",i=tg;if(n!=null&&(nunstable_strictMode===!0&&(o=!0),nidentifierPrefix!==void 0&&(s=nidentifierPrefix),nonRecoverableError!==void 0&&(i=nonRecoverableError)),t=eg(t,null,e,1,n??null,o,!1,s,i),e[dn]=tcurrent,vs(e),r)for(e=0;e<rlength;e++)n=r[e],o=n_getVersion,o=o(n_source),tmutableSourceEagerHydrationData==null?tmutableSourceEagerHydrationData=[n,o]:tmutableSourceEagerHydrationDatapush(n,o);return new ka(t)};ltrender=function(e,t,n){if(!Pa(t))throw Error(A(200));return Ra(null,e,t,!1,n)};ltunmountComponentAtNode=function(e){if(!Pa(e))throw Error(A(40));return e_reactRootContainer?(Cr(function(){Ra(null,null,e,!1,function(){e_reactRootContainer=null,e[dn]=null})}),!0):!1};ltunstable_batchedUpdates=Bc;ltunstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Pa(n))throw Error(A(200));if(e==null||e_reactInternals===void 0)throw Error(A(38));return Ra(e,t,n,!1,r)};ltversion="1831-next-f1338f8080-20240426";function ng(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__checkDCE(ng)}catch(e){consoleerror(e)}}ng(),nhexports=lt;var $s=nhexports;const rg=Co($s);var og,Qf=$s;og=QfcreateRoot,QfhydrateRoot;const e1=1,t1=1e6;let kl=0;function n1(){return kl=(kl+1)%NumberMAX_SAFE_INTEGER,kltoString()}const Pl=new Map,Gf=e=>{if(Plhas(e))return;const t=setTimeout(()=>{Pldelete(e),is({type:"REMOVE_TOAST",toastId:e})},t1);Plset(e,t)},r1=(e,t)=>{switch(ttype){case"ADD_TOAST":return{...e,toasts:[ttoast,...etoasts].slice(0,e1)};case"UPDATE_TOAST":return{...e,toasts:etoastsmap(n=>nid===ttoastid?{...n,...ttoast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Gf(n):etoastsforEach(r=>{Gf(rid)}),{...e,toasts:etoastsmap(r=>rid===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return ttoastId===void 0?{...e,toasts:[]}:{...e,toasts:etoastsfilter(n=>nid!==ttoastId)}}},Ai=[];let _i={toasts:[]};function is(e){_i=r1(_i,e),AiforEach(t=>{t(_i)})}function o1({...e}){const t=n1(),n=o=>is({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>is({type:"DISMISS_TOAST",toastId:t});return is({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function sg(){const[e,t]=vuseState(_i);return vuseEffect(()=>(Aipush(t),()=>{const n=AiindexOf(t);n>-1&&Aisplice(n,1)}),[e]),{...e,toast:o1,dismiss:n=>is({type:"DISMISS_TOAST",toastId:n})}}function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!odefaultPrevented)return t==null?void 0:t(o)}}function Kf(e,t){if(typeof e=="function")return e(t);e!=null&&(ecurrent=t)}function ig(...e){return t=>{let n=!1;const r=emap(o=>{const s=Kf(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<rlength;o++){const s=r[o];typeof s=="function"?s():Kf(e[o],null)}}}}function _e(...e){return vuseCallback(ig(...e),e)}function Dt(e,t=[]){let n=[];function r(s,i){const a=vcreateContext(i),u=nlength;n=[...n,i];const c=f=>{var m;const{scope:h,children:p,...b}=f,x=((m=h==null?void 0:h[e])==null?void 0:m[u])||a,w=vuseMemo(()=>b,Objectvalues(b));return ljsx(xProvider,{value:w,children:p})};cdisplayName=s+"Provider";function d(f,h){var x;const p=((x=h==null?void 0:h[e])==null?void 0:x[u])||a,b=vuseContext(p);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=nmap(i=>vcreateContext(i));return function(a){const u=(a==null?void 0:a[e])||s;return vuseMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return oscopeName=e,[r,s1(o,...t)]}function s1(...e){const t="J";if(elength===1)return t;const n=()=>{const r=emap(o=>({useScope:o(),scopeName:oscopeName}));return function(s){const i=rreduce((a,{useScope:u,scopeName:c})=>{const f=u(s)[`__scope${c}`];return{...a,...f}},{});return vuseMemo(()=>({[`__scope${tscopeName}`]:i}),[i])}};return nscopeName=tscopeName,n}function sa(e){const t=a1(e),n=vforwardRef((r,o)=>{const{children:s,...i}=r,a=vChildrentoArray(s),u=afind(u1);if(u){const c=upropschildren,d=amap(f=>f===u?vChildrencount(c)>1?vChildrenonly(null):visValidElement(c)?cpropschildren:null:f);return ljsx(t,{...i,ref:o,children:visValidElement(c)?vcloneElement(c,void 0,d):null})}return ljsx(t,{...i,ref:o,children:s})});return ndisplayName=`${e}.Slot`,n}var i1=sa("Slot");function a1(e){const t=vforwardRef((n,r)=>{const{children:o,...s}=n;if(visValidElement(o)){const i=d1(o),a=c1(s,oprops);return otype!==vFragment&&(aref=r?ig(r,i):i),vcloneElement(o,a)}return vChildrencount(o)>1?vChildrenonly(null):null});return tdisplayName=`${e}.SlotClone`,t}var ag=Symbol("radixslottable");function l1(e){const t=({children:n})=>ljsx(lFragment,{children:n});return tdisplayName=`${e}.Slottable`,t__radixId=ag,t}function u1(e){return visValidElement(e)&&typeof etype=="function"&&"__radixId"in etype&&etype__radixId===ag}function c1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const u=s(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function d1(e){var r,o;let t=(r=ObjectgetOwnPropertyDescriptor(eprops,"ref"))==null?void 0:rget,n=t&&"isReactWarning"in t&&tisReactWarning;return n?eref:(t=(o=ObjectgetOwnPropertyDescriptor(e,"ref"))==null?void 0:oget,n=t&&"isReactWarning"in t&&tisReactWarning,n?epropsref:epropsref||eref)}function qc(e){const t=e+"CollectionProvider",[n,r]=Dt(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=x=>{const{scope:w,children:m}=x,g=RuseRef(null),y=RuseRef(new Map).current;return ljsx(o,{scope:w,itemMap:y,collectionRef:g,children:m})};idisplayName=t;const a=e+"CollectionSlot",u=sa(a),c=RforwardRef((x,w)=>{const{scope:m,children:g}=x,y=s(a,m),S=_e(w,ycollectionRef);return ljsx(u,{ref:S,children:g})});cdisplayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=sa(d),p=RforwardRef((x,w)=>{const{scope:m,children:g,...y}=x,S=RuseRef(null),E=_e(w,S),C=s(d,m);return RuseEffect(()=>(CitemMapset(S,{ref:S,...y}),()=>void CitemMapdelete(S))),ljsx(h,{[f]:"",ref:E,children:g})});pdisplayName=d;function b(x){const w=s(e+"CollectionConsumer",x);return RuseCallback(()=>{const g=wcollectionRefcurrent;if(!g)return[];const y=Arrayfrom(gquerySelectorAll(`[${f}]`));return Arrayfrom(witemMapvalues()).sort((C,j)=>yindexOf(Crefcurrent)-yindexOf(jrefcurrent))},[wcollectionRef,witemMap])}return[{Provider:i,Slot:c,ItemSlot:p},b,r]}var f1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ee=f1reduce((e,t)=>{const n=sa(`Primitive.${t}`),r=vforwardRef((o,s)=>{const{asChild:i,...a}=o,u=i?n:t;return typeof window<"u"&&(window[Symbolfor("radix-ui")]=!0),ljsx(u,{...a,ref:s})});return rdisplayName=`Primitive.${t}`,{...e,[t]:r}},{});function lg(e,t){e&&$sflushSync(()=>edispatchEvent(t))}function Yt(e){const t=vuseRef(e);return vuseEffect(()=>{tcurrent=e}),vuseMemo(()=>(...n)=>{var r;return(r=tcurrent)==null?void 0:rcall(t,...n)},[])}function p1(e,t=globalThis==null?void 0:globalThisdocument){const n=Yt(e);vuseEffect(()=>{const r=o=>{okey==="Escape"&&n(o)};return taddEventListener("keydown",r,{capture:!0}),()=>tremoveEventListener("keydown",r,{capture:!0})},[n,t])}var h1="DismissableLayer",Au="dismissableLayerupdate",m1="dismissableLayerpointerDownOutside",g1="dismissableLayerfocusOutside",Yf,ug=vcreateContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xc=vforwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...u}=e,c=vuseContext(ug),[d,f]=vuseState(null),h=(d==null?void 0:downerDocument)??(globalThis==null?void 0:globalThisdocument),[,p]=vuseState({}),b=_e(t,j=>f(j)),x=Arrayfrom(clayers),[w]=[...clayersWithOutsidePointerEventsDisabled].slice(-1),m=xindexOf(w),g=d?xindexOf(d):-1,y=clayersWithOutsidePointerEventsDisabledsize>0,S=g>=m,E=y1(j=>{const k=jtarget,O=[...cbranches].some(_=>_contains(k));!S||O||(o==null||o(j),i==null||i(j),jdefaultPrevented||a==null||a())},h),C=x1(j=>{const k=jtarget;[...cbranches].some(_=>_contains(k))||(s==null||s(j),i==null||i(j),jdefaultPrevented||a==null||a())},h);return p1(j=>{g===clayerssize-1&&(r==null||r(j),!jdefaultPrevented&&a&&(jpreventDefault(),a()))},h),vuseEffect(()=>{if(d)return n&&(clayersWithOutsidePointerEventsDisabledsize===0&&(Yf=hbodystylepointerEvents,hbodystylepointerEvents="none"),clayersWithOutsidePointerEventsDisabledadd(d)),clayersadd(d),qf(),()=>{n&&clayersWithOutsidePointerEventsDisabledsize===1&&(hbodystylepointerEvents=Yf)}},[d,h,n,c]),vuseEffect(()=>()=>{d&&(clayersdelete(d),clayersWithOutsidePointerEventsDisableddelete(d),qf())},[d,c]),vuseEffect(()=>{const j=()=>p({});return documentaddEventListener(Au,j),()=>documentremoveEventListener(Au,j)},[]),ljsx(eediv,{...u,ref:b,style:{pointerEvents:y?S?"auto":"none":void 0,...estyle},onFocusCapture:Z(eonFocusCapture,ConFocusCapture),onBlurCapture:Z(eonBlurCapture,ConBlurCapture),onPointerDownCapture:Z(eonPointerDownCapture,EonPointerDownCapture)})});XcdisplayName=h1;var v1="DismissableLayerBranch",cg=vforwardRef((e,t)=>{const n=vuseContext(ug),r=vuseRef(null),o=_e(t,r);return vuseEffect(()=>{const s=rcurrent;if(s)return nbranchesadd(s),()=>{nbranchesdelete(s)}},[nbranches]),ljsx(eediv,{...e,ref:o})});cgdisplayName=v1;function y1(e,t=globalThis==null?void 0:globalThisdocument){const n=Yt(e),r=vuseRef(!1),o=vuseRef(()=>{});return vuseEffect(()=>{const s=a=>{if(atarget&&!rcurrent){let u=function(){dg(m1,n,c,{discrete:!0})};const c={originalEvent:a};apointerType==="touch"?(tremoveEventListener("click",ocurrent),ocurrent=u,taddEventListener("click",ocurrent,{once:!0})):u()}else tremoveEventListener("click",ocurrent);rcurrent=!1},i=windowsetTimeout(()=>{taddEventListener("pointerdown",s)},0);return()=>{windowclearTimeout(i),tremoveEventListener("pointerdown",s),tremoveEventListener("click",ocurrent)}},[t,n]),{onPointerDownCapture:()=>rcurrent=!0}}function x1(e,t=globalThis==null?void 0:globalThisdocument){const n=Yt(e),r=vuseRef(!1);return vuseEffect(()=>{const o=s=>{starget&&!rcurrent&&dg(g1,n,{originalEvent:s},{discrete:!1})};return taddEventListener("focusin",o),()=>tremoveEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>rcurrent=!0,onBlurCapture:()=>rcurrent=!1}}function qf(){const e=new CustomEvent(Au);documentdispatchEvent(e)}function dg(e,t,n,{discrete:r}){const o=noriginalEventtarget,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&oaddEventListener(e,t,{once:!0}),r?lg(o,s):odispatchEvent(s)}var w1=Xc,b1=cg,at=globalThis!=null&&globalThisdocument?vuseLayoutEffect:()=>{},S1="Portal",fg=vforwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=vuseState(!1);at(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThisdocument)==null?void 0:abody);return i?rgcreatePortal(ljsx(eediv,{...r,ref:t}),i):null});fgdisplayName=S1;function E1(e,t){return vuseReducer((n,r)=>t[n][r]??n,e)}var ko=e=>{const{present:t,children:n}=e,r=C1(t),o=typeof n=="function"?n({present:risPresent}):vChildrenonly(n),s=_e(rref,j1(o));return typeof n=="function"||risPresent?vcloneElement(o,{ref:s}):null};kodisplayName="Presence";function C1(e){const[t,n]=vuseState(),r=vuseRef(null),o=vuseRef(e),s=vuseRef("none"),i=e?"mounted":"unmounted",[a,u]=E1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return vuseEffect(()=>{const c=hi(rcurrent);scurrent=a==="mounted"?c:"none"},[a]),at(()=>{const c=rcurrent,d=ocurrent;if(d!==e){const h=scurrent,p=hi(c);e?u("MOUNT"):p==="none"||(c==null?void 0:cdisplay)==="none"?u("UNMOUNT"):u(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),ocurrent=e}},[e,u]),at(()=>{if(t){let c;const d=townerDocumentdefaultView??window,f=p=>{const x=hi(rcurrent).includes(panimationName);if(ptarget===t&&x&&(u("ANIMATION_END"),!ocurrent)){const w=tstyleanimationFillMode;tstyleanimationFillMode="forwards",c=dsetTimeout(()=>{tstyleanimationFillMode==="forwards"&&(tstyleanimationFillMode=w)})}},h=p=>{ptarget===t&&(scurrent=hi(rcurrent))};return taddEventListener("animationstart",h),taddEventListener("animationcancel",f),taddEventListener("animationend",f),()=>{dclearTimeout(c),tremoveEventListener("animationstart",h),tremoveEventListener("animationcancel",f),tremoveEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:vuseCallback(c=>{rcurrent=c?getComputedStyle(c):null,n(c)},[])}}function hi(e){return(e==null?void 0:eanimationName)||"none"}function j1(e){var r,o;let t=(r=ObjectgetOwnPropertyDescriptor(eprops,"ref"))==null?void 0:rget,n=t&&"isReactWarning"in t&&tisReactWarning;return n?eref:(t=(o=ObjectgetOwnPropertyDescriptor(e,"ref"))==null?void 0:oget,n=t&&"isReactWarning"in t&&tisReactWarning,n?epropsref:epropsref||eref)}var N1=sc[" useInsertionEffect ".trim().toString()]||at;function kr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=T1({defaultProp:t,onChange:n}),a=e!==void 0,u=a?e:o;{const d=vuseRef(e!==void 0);vuseEffect(()=>{const f=dcurrent;f!==a&&consolewarn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),dcurrent=a},[a,r])}const c=vuseCallback(d=>{var f;if(a){const h=k1(d)?d(e):d;h!==e&&((f=icurrent)==null||fcall(i,h))}else s(d)},[a,e,s,i]);return[u,c]}function T1({defaultProp:e,onChange:t}){const[n,r]=vuseState(e),o=vuseRef(n),s=vuseRef(t);return N1(()=>{scurrent=t},[t]),vuseEffect(()=>{var i;ocurrent!==n&&((i=scurrent)==null||icall(s,n),ocurrent=n)},[n,o]),[n,r,s]}function k1(e){return typeof e=="function"}var P1=Objectfreeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),R1="VisuallyHidden",Aa=vforwardRef((e,t)=>ljsx(eespan,{...e,ref:t,style:{...P1,...estyle}}));AadisplayName=R1;var A1=Aa,Zc="ToastProvider",[Jc,_1,O1]=qc("Toast"),[pg,g2]=Dt("Toast",[O1]),[I1,_a]=pg(Zc),hg=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,u]=vuseState(null),[c,d]=vuseState(0),f=vuseRef(!1),h=vuseRef(!1);return ntrim()||consoleerror(`Invalid prop \`label\` supplied to \`${Zc}\`. Expected non-empty \`string\`.`),ljsx(JcProvider,{scope:t,children:ljsx(I1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:c,viewport:a,onViewportChange:u,onToastAdd:vuseCallback(()=>d(p=>p+1),[]),onToastRemove:vuseCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:i})})};hgdisplayName=Zc;var mg="ToastViewport",L1=["F8"],_u="toastviewportPause",Ou="toastviewportResume",gg=vforwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=L1,label:o="Notifications ({hotkey})",...s}=e,i=_a(mg,n),a=_1(n),u=vuseRef(null),c=vuseRef(null),d=vuseRef(null),f=vuseRef(null),h=_e(t,f,ionViewportChange),p=rjoin("+").replace(/Key/g,"").replace(/Digit/g,""),b=itoastCount>0;vuseEffect(()=>{const w=m=>{var y;rlength!==0&&revery(S=>m[S]||mcode===S)&&((y=fcurrent)==null||yfocus())};return documentaddEventListener("keydown",w),()=>documentremoveEventListener("keydown",w)},[r]),vuseEffect(()=>{const w=ucurrent,m=fcurrent;if(b&&w&&m){const g=()=>{if(!iisClosePausedRefcurrent){const C=new CustomEvent(_u);mdispatchEvent(C),iisClosePausedRefcurrent=!0}},y=()=>{if(iisClosePausedRefcurrent){const C=new CustomEvent(Ou);mdispatchEvent(C),iisClosePausedRefcurrent=!1}},S=C=>{!wcontains(CrelatedTarget)&&y()},E=()=>{wcontains(documentactiveElement)||y()};return waddEventListener("focusin",g),waddEventListener("focusout",S),waddEventListener("pointermove",g),waddEventListener("pointerleave",E),windowaddEventListener("blur",g),windowaddEventListener("focus",y),()=>{wremoveEventListener("focusin",g),wremoveEventListener("focusout",S),wremoveEventListener("pointermove",g),wremoveEventListener("pointerleave",E),windowremoveEventListener("blur",g),windowremoveEventListener("focus",y)}}},[b,iisClosePausedRef]);const x=vuseCallback(({tabbingDirection:w})=>{const g=a().map(y=>{const S=yrefcurrent,E=[S,...K1(S)];return w==="forwards"?E:Ereverse()});return(w==="forwards"?greverse():g).flat()},[a]);return vuseEffect(()=>{const w=fcurrent;if(w){const m=g=>{var E,C,j;const y=galtKey||gctrlKey||gmetaKey;if(gkey==="Tab"&&!y){const k=documentactiveElement,O=gshiftKey;if(gtarget===w&&O){(E=ccurrent)==null||Efocus();return}const M=x({tabbingDirection:O?"backwards":"forwards"}),G=MfindIndex(I=>I===k);Rl(Mslice(G+1))?gpreventDefault():O?(C=ccurrent)==null||Cfocus():(j=dcurrent)==null||jfocus()}};return waddEventListener("keydown",m),()=>wremoveEventListener("keydown",m)}},[a,x]),ljsxs(b1,{ref:u,role:"region","aria-label":oreplace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&ljsx(Iu,{ref:c,onFocusFromOutsideViewport:()=>{const w=x({tabbingDirection:"forwards"});Rl(w)}}),ljsx(JcSlot,{scope:n,children:ljsx(eeol,{tabIndex:-1,...s,ref:h})}),b&&ljsx(Iu,{ref:d,onFocusFromOutsideViewport:()=>{const w=x({tabbingDirection:"backwards"});Rl(w)}})]})});ggdisplayName=mg;var vg="ToastFocusProxy",Iu=vforwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=_a(vg,n);return ljsx(Aa,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var c;const a=irelatedTarget;!((c=sviewport)!=null&&ccontains(a))&&r()}})});IudisplayName=vg;var Us="Toast",M1="toastswipeStart",D1="toastswipeMove",F1="toastswipeCancel",z1="toastswipeEnd",yg=vforwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,u]=kr({prop:r,defaultProp:o??!0,onChange:s,caller:Us});return ljsx(ko,{present:n||a,children:ljsx(B1,{open:a,...i,ref:t,onClose:()=>u(!1),onPause:Yt(eonPause),onResume:Yt(eonResume),onSwipeStart:Z(eonSwipeStart,c=>{ccurrentTargetsetAttribute("data-swipe","start")}),onSwipeMove:Z(eonSwipeMove,c=>{const{x:d,y:f}=cdetaildelta;ccurrentTargetsetAttribute("data-swipe","move"),ccurrentTargetstylesetProperty("--radix-toast-swipe-move-x",`${d}px`),ccurrentTargetstylesetProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Z(eonSwipeCancel,c=>{ccurrentTargetsetAttribute("data-swipe","cancel"),ccurrentTargetstyleremoveProperty("--radix-toast-swipe-move-x"),ccurrentTargetstyleremoveProperty("--radix-toast-swipe-move-y"),ccurrentTargetstyleremoveProperty("--radix-toast-swipe-end-x"),ccurrentTargetstyleremoveProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Z(eonSwipeEnd,c=>{const{x:d,y:f}=cdetaildelta;ccurrentTargetsetAttribute("data-swipe","end"),ccurrentTargetstyleremoveProperty("--radix-toast-swipe-move-x"),ccurrentTargetstyleremoveProperty("--radix-toast-swipe-move-y"),ccurrentTargetstylesetProperty("--radix-toast-swipe-end-x",`${d}px`),ccurrentTargetstylesetProperty("--radix-toast-swipe-end-y",`${f}px`),u(!1)})})})});ygdisplayName=Us;var[$1,U1]=pg(Us,{onClose(){}}),B1=vforwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:u,onResume:c,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:p,...b}=e,x=_a(Us,n),[w,m]=vuseState(null),g=_e(t,I=>m(I)),y=vuseRef(null),S=vuseRef(null),E=o||xduration,C=vuseRef(0),j=vuseRef(E),k=vuseRef(0),{onToastAdd:O,onToastRemove:_}=x,$=Yt(()=>{var K;(w==null?void 0:wcontains(documentactiveElement))&&((K=xviewport)==null||Kfocus()),i()}),M=vuseCallback(I=>{!I||I===1/0||(windowclearTimeout(kcurrent),Ccurrent=new Date().getTime(),kcurrent=windowsetTimeout($,I))},[$]);vuseEffect(()=>{const I=xviewport;if(I){const K=()=>{M(jcurrent),c==null||c()},F=()=>{const H=new Date().getTime()-Ccurrent;jcurrent=jcurrent-H,windowclearTimeout(kcurrent),u==null||u()};return IaddEventListener(_u,F),IaddEventListener(Ou,K),()=>{IremoveEventListener(_u,F),IremoveEventListener(Ou,K)}}},[xviewport,E,u,c,M]),vuseEffect(()=>{s&&!xisClosePausedRefcurrent&&M(E)},[s,E,xisClosePausedRef,M]),vuseEffect(()=>(O(),()=>_()),[O,_]);const G=vuseMemo(()=>w?jg(w):null,[w]);return xviewport?ljsxs(lFragment,{children:[G&&ljsx(V1,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:G}),ljsx($1,{scope:n,onClose:$,children:$screatePortal(ljsx(JcItemSlot,{scope:n,children:ljsx(w1,{asChild:!0,onEscapeKeyDown:Z(a,()=>{xisFocusedToastEscapeKeyDownRefcurrent||$(),xisFocusedToastEscapeKeyDownRefcurrent=!1}),children:ljsx(eeli,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":xswipeDirection,...b,ref:g,style:{userSelect:"none",touchAction:"none",...estyle},onKeyDown:Z(eonKeyDown,I=>{Ikey==="Escape"&&(a==null||a(InativeEvent),InativeEventdefaultPrevented||(xisFocusedToastEscapeKeyDownRefcurrent=!0,$()))}),onPointerDown:Z(eonPointerDown,I=>{Ibutton===0&&(ycurrent={x:IclientX,y:IclientY})}),onPointerMove:Z(eonPointerMove,I=>{if(!ycurrent)return;const K=IclientX-ycurrentx,F=IclientY-ycurrenty,H=!!Scurrent,T=["left","right"].includes(xswipeDirection),P=["left","up"].includes(xswipeDirection)?Mathmin:Mathmax,L=T?P(0,K):0,W=T?0:P(0,F),z=IpointerType==="touch"?10:2,Y={x:L,y:W},X={originalEvent:I,delta:Y};H?(Scurrent=Y,mi(D1,f,X,{discrete:!1})):Xf(Y,xswipeDirection,z)?(Scurrent=Y,mi(M1,d,X,{discrete:!1}),ItargetsetPointerCapture(IpointerId)):(Mathabs(K)>z||Mathabs(F)>z)&&(ycurrent=null)}),onPointerUp:Z(eonPointerUp,I=>{const K=Scurrent,F=Itarget;if(FhasPointerCapture(IpointerId)&&FreleasePointerCapture(IpointerId),Scurrent=null,ycurrent=null,K){const H=IcurrentTarget,T={originalEvent:I,delta:K};Xf(K,xswipeDirection,xswipeThreshold)?mi(z1,p,T,{discrete:!0}):mi(F1,h,T,{discrete:!0}),HaddEventListener("click",P=>PpreventDefault(),{once:!0})}})})})}),xviewport)})]}):null}),V1=e=>{const{__scopeToast:t,children:n,...r}=e,o=_a(Us,t),[s,i]=vuseState(!1),[a,u]=vuseState(!1);return Q1(()=>i(!0)),vuseEffect(()=>{const c=windowsetTimeout(()=>u(!0),1e3);return()=>windowclearTimeout(c)},[]),a?null:ljsx(fg,{asChild:!0,children:ljsx(Aa,{...r,children:s&&ljsxs(lFragment,{children:[olabel," ",n]})})})},H1="ToastTitle",xg=vforwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return ljsx(eediv,{...r,ref:t})});xgdisplayName=H1;var W1="ToastDescription",wg=vforwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return ljsx(eediv,{...r,ref:t})});wgdisplayName=W1;var bg="ToastAction",Sg=vforwardRef((e,t)=>{const{altText:n,...r}=e;return ntrim()?ljsx(Cg,{altText:n,asChild:!0,children:ljsx(ed,{...r,ref:t})}):(consoleerror(`Invalid prop \`altText\` supplied to \`${bg}\`. Expected non-empty \`string\`.`),null)});SgdisplayName=bg;var Eg="ToastClose",ed=vforwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=U1(Eg,n);return ljsx(Cg,{asChild:!0,children:ljsx(eebutton,{type:"button",...r,ref:t,onClick:Z(eonClick,oonClose)})})});eddisplayName=Eg;var Cg=vforwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return ljsx(eediv,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function jg(e){const t=[];return Arrayfrom(echildNodes).forEach(r=>{if(rnodeType===rTEXT_NODE&&rtextContent&&tpush(rtextContent),G1(r)){const o=rariaHidden||rhidden||rstyledisplay==="none",s=rdatasetradixToastAnnounceExclude==="";if(!o)if(s){const i=rdatasetradixToastAnnounceAlt;i&&tpush(i)}else tpush(...jg(r))}}),t}function mi(e,t,n,{discrete:r}){const o=noriginalEventcurrentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&oaddEventListener(e,t,{once:!0}),r?lg(o,s):odispatchEvent(s)}var Xf=(e,t,n=0)=>{const r=Mathabs(ex),o=Mathabs(ey),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function Q1(e=()=>{}){const t=Yt(e);at(()=>{let n=0,r=0;return n=windowrequestAnimationFrame(()=>r=windowrequestAnimationFrame(t)),()=>{windowcancelAnimationFrame(n),windowcancelAnimationFrame(r)}},[t])}function G1(e){return enodeType===eELEMENT_NODE}function K1(e){const t=[],n=documentcreateTreeWalker(e,NodeFilterSHOW_ELEMENT,{acceptNode:r=>{const o=rtagName==="INPUT"&&rtype==="hidden";return rdisabled||rhidden||o?NodeFilterFILTER_SKIP:rtabIndex>=0?NodeFilterFILTER_ACCEPT:NodeFilterFILTER_SKIP}});for(;nnextNode();)tpush(ncurrentNode);return t}function Rl(e){const t=documentactiveElement;return esome(n=>n===t?!0:(nfocus(),documentactiveElement!==t))}var Y1=hg,Ng=gg,Tg=yg,kg=xg,Pg=wg,Rg=Sg,Ag=ed;function _g(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(ArrayisArray(e)){var o=elength;for(t=0;t<o;t++)e[t]&&(n=_g(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Og(){for(var e,t,n=0,r="",o=argumentslength;n<o;n++)(e=arguments[n])&&(t=_g(e))&&(r&&(r+=" "),r+=t);return r}const Zf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Jf=Og,Bs=(e,t)=>n=>{var r;if((t==null?void 0:tvariants)==null)return Jf(e,n==null?void 0:nclass,n==null?void 0:nclassName);const{variants:o,defaultVariants:s}=t,i=Objectkeys(o).map(c=>{const d=n==null?void 0:n[c],f=s==null?void 0:s[c];if(d===null)return null;const h=Zf(d)||Zf(f);return o[c][h]}),a=n&&Objectentries(n).reduce((c,d)=>{let[f,h]=d;return h===void 0||(c[f]=h),c},{}),u=t==null||(r=tcompoundVariants)===null||r===void 0?void 0:rreduce((c,d)=>{let{class:f,className:h,...p}=d;return Objectentries(p).every(b=>{let[x,w]=b;return ArrayisArray(w)?wincludes({...s,...a}[x]):{...s,...a}[x]===w})?[...c,f,h]:c},[]);return Jf(e,i,u,n==null?void 0:nclass,n==null?void 0:nclassName)};/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q1=e=>ereplace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ig=(...e)=>efilter((t,n,r)=>!!t&&ttrim()!==""&&rindexOf(t)===n).join(" ").trim();/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var X1={xmlns:"http://wwww3org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z1=vforwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},u)=>vcreateElement("svg",{ref:u,...X1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ig("lucide",o),...a},[...imap(([c,d])=>vcreateElement(c,d)),...ArrayisArray(s)?s:[s]]));/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ee=(e,t)=>{const n=vforwardRef(({className:r,...o},s)=>vcreateElement(Z1,{ref:s,iconNode:t,className:Ig(`lucide-${q1(e)}`,r),...o}));return ndisplayName=`${e}`,n};/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J1=Ee("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eb=Ee("Award",[["path",{d:"m15477 1289 1515 8526a55 0 0 1-8147l-358-2687a1 1 0 0 0-1197 0l-3586 2686a55 0 0 1-81-469l1514-8526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tb=Ee("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nb=Ee("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Oa=Ee("CircleCheckBig",[["path",{d:"M21801 10A10 10 0 1 1 17 3335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rb=Ee("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lg=Ee("Crown",[["path",{d:"M11562 3266a55 0 0 1876 0L1539 887a1 1 0 0 0 1516294L21183 55a55 0 0 1798519l-2834 10246a1 1 0 0 1-956734H581a1 1 0 0 1-957-734L202 602a55 0 0 1798-519l4276 3664a1 1 0 0 0 1516-294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ob=Ee("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 1709-1528l7-5999a2 2 0 0 1 2582 0l7 5999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mg=Ee("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-897 57a194 194 0 0 1-206 0L2 7",key:"1ocrg3"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sb=Ee("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 v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dg=Ee("MessageCircle",[["path",{d:"M79 20A9 9 0 1 0 4 161L2 22Z",key:"vv11sd"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ib=Ee("Package",[["path",{d:"M11 2173a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-173l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 173z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m33 7 7703 4734a2 2 0 0 0 1994 0L207 7",key:"yx3hmr"}],["path",{d:"m75 427 9 515",key:"1c824w"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ab=Ee("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-43-43",key:"1qie3q"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lb=Ee("Send",[["path",{d:"M14536 21686a55 0 0 0937-024l65-19a496496 0 0 0-635-635l-19 65a55 0 0 0-024937l793 318a2 2 0 0 1 1112 111z",key:"1ffxy3"}],["path",{d:"m21854 2147-1094 10939",key:"12cjpa"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ub=Ee("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fg=Ee("Star",[["path",{d:"M11525 2295a5353 0 0 195 0l231 4679a2123 2123 0 0 0 1595 116l5166756a5353 0 0 1294904l-3736 3638a2123 2123 0 0 0-611 1878l882 514a5353 0 0 1-77156l-4618-2428a2122 2122 0 0 0-1973 0L6396 2101a5353 0 0 1-77-56l881-5139a2122 2122 0 0 0-611-1879L216 9795a5353 0 0 1294-906l5165-755a2122 2122 0 0 0 1597-116z",key:"r04s7s"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cb=Ee("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const db=Ee("TriangleAlert",[["path",{d:"m2173 18-8-14a2 2 0 0 0-348 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 173-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h01",key:"p32p05"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fb=Ee("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-387",key:"kshegd"}],["path",{d:"M16 313a4 4 0 0 1 0 775",key:"1da9ce"}]]);/**
 * @license lucide-react v04620 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zg=Ee("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),td="-",pb=e=>{const t=mb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=isplit(td);return "J"===""&&alength!==1&&ashift(),$g(a,t)||hb(i)},getConflictingClassGroupIds:(i,a)=>{const u=n[i]||[];return a&&r[i]?[...u,...r[i]]:u}}},$g=(e,t)=>{var i;if(elength===0)return tclassGroupId;const n="J",r=tnextPartget(n),o=r?$g(eslice(1),r):void 0;if(o)return o;if(tvalidatorslength===0)return;const s=ejoin(td);return(i=tvalidatorsfind(({validator:a})=>a(s)))==null?void 0:iclassGroupId},ep=/^\[(.+)\]$/,hb=e=>{if(eptest(e)){const t=epexec(e)[1],n=t==null?void 0:tsubstring(0,tindexOf(":"));if(n)return"arbitrary.."+n}},mb=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return vb(Objectentries(eclassGroups),n).forEach(([s,i])=>{Lu(i,r,s,t)}),r},Lu=(e,t,n,r)=>{eforEach(o=>{if(typeof o=="string"){const s=o===""?t:tp(t,o);sclassGroupId=n;return}if(typeof o=="function"){if(gb(o)){Lu(o(r),t,n,r);return}tvalidatorspush({validator:o,classGroupId:n});return}Objectentries(o).forEach(([s,i])=>{Lu(i,tp(t,s),n,r)})})},tp=(e,t)=>{let n=e;return tsplit(td).forEach(r=>{nnextParthas(r)||nnextPartset(r,{nextPart:new Map,validators:[]}),n=nnextPartget(r)}),n},gb=e=>eisThemeGetter,vb=(e,t)=>t?emap(([n,r])=>{const o=rmap(s=>typeof s=="string"?t+s:typeof s=="object"?ObjectfromEntries(Objectentries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,yb=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{nset(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=nget(s);if(i!==void 0)return i;if((i=rget(s))!==void 0)return o(s,i),i},set(s,i){nhas(s)?nset(s,i):o(s,i)}}},Ug="!",xb=e=>{const{separator:t,experimentalParseClassName:n}=e,r=tlength===1,o="J",s=tlength,i=a=>{const u=[];let c=0,d=0,f;for(let w=0;w<alength;w++){let m=a[w];if(c===0){if(m===o&&(r||aslice(w,w+s)===t)){upush(aslice(d,w)),d=w+s;continue}if(m==="/"){f=w;continue}}m==="["?c++:m==="]"&&c--}const h=ulength===0?a:asubstring(d),p=hstartsWith(Ug),b=p?hsubstring(1):h,x=f&&f>d?f-d:void 0;return{modifiers:u,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:x}};return n?a=>n({className:a,parseClassName:i}):i},wb=e=>{if(elength<=1)return e;const t=[];let n=[];return eforEach(r=>{"J"==="["?(tpush(...nsort(),r),n=[]):npush(r)}),tpush(...nsort()),t},bb=e=>({cache:yb(ecacheSize),parseClassName:xb(e),...pb(e)}),Sb=/\s+/,Eb=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=etrim().split(Sb);let a="";for(let u=ilength-1;u>=0;u-=1){const c=i[u],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}=n(c);let b=!!p,x=r(b?hsubstring(0,p):h);if(!x){if(!b){a=c+(alength>0?" "+a:a);continue}if(x=r(h),!x){a=c+(alength>0?" "+a:a);continue}b=!1}const w=wb(d).join(":"),m=f?w+Ug:w,g=m+x;if(sincludes(g))continue;spush(g);const y=o(x,b);for(let S=0;S<ylength;++S){const E=y[S];spush(m+E)}a=c+(alength>0?" "+a:a)}return a};function Cb(){let e=0,t,n,r="";for(;e<argumentslength;)(t=arguments[e++])&&(n=Bg(t))&&(r&&(r+=" "),r+=n);return r}const Bg=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<elength;r++)e[r]&&(t=Bg(e[r]))&&(n&&(n+=" "),n+=t);return n};function jb(e,...t){let n,r,o,s=i;function i(u){const c=treduce((d,f)=>f(d),e());return n=bb(c),r=ncacheget,o=ncacheset,s=a,a(u)}function a(u){const c=r(u);if(c)return c;const d=Eb(u,n);return o(u,d),d}return function(){return s(Cbapply(null,arguments))}}const ae=e=>{const t=n=>n[e]||[];return tisThemeGetter=!0,t},Vg=/^\[(?:([a-z-]+):)?(.+)\]$/i,Nb=/^\d+\/\d+$/,Tb=new Set(["px","full","screen"]),kb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pb=/\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$/,Rb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ab=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_b=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,en=e=>no(e)||Tbhas(e)||Nbtest(e),Cn=e=>Po(e,"length",$b),no=e=>!!e&&!NumberisNaN(Number(e)),Al=e=>Po(e,"number",no),Vo=e=>!!e&&NumberisInteger(Number(e)),Ob=e=>eendsWith("%")&&no(eslice(0,-1)),Q=e=>Vgtest(e),jn=e=>kbtest(e),Ib=new Set(["length","size","percentage"]),Lb=e=>Po(e,Ib,Hg),Mb=e=>Po(e,"position",Hg),Db=new Set(["image","url"]),Fb=e=>Po(e,Db,Bb),zb=e=>Po(e,"",Ub),Ho=()=>!0,Po=(e,t,n)=>{const r=Vgexec(e);return r?"n"?typeof t=="string"?"n"===t:thas("n"):n("("):!1},$b=e=>Pbtest(e)&&!Rbtest(e),Hg=()=>!1,Ub=e=>Abtest(e),Bb=e=>_btest(e),Vb=()=>{const e=ae("colors"),t=ae("spacing"),n=ae("blur"),r=ae("brightness"),o=ae("borderColor"),s=ae("borderRadius"),i=ae("borderSpacing"),a=ae("borderWidth"),u=ae("contrast"),c=ae("grayscale"),d=ae("hueRotate"),f=ae("invert"),h=ae("gap"),p=ae("gradientColorStops"),b=ae("gradientColorStopPositions"),x=ae("inset"),w=ae("margin"),m=ae("opacity"),g=ae("padding"),y=ae("saturate"),S=ae("scale"),E=ae("sepia"),C=ae("skew"),j=ae("space"),k=ae("translate"),O=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",Q,t],M=()=>[Q,t],G=()=>["",en,Cn],I=()=>["auto",no,Q],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",Q],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[no,Q];return{cacheSize:500,separator:":",theme:{colors:[Ho],spacing:[en,Cn],blur:["none","",jn,Q],brightness:W(),borderColor:[e],borderRadius:["none","","full",jn,Q],borderSpacing:M(),borderWidth:G(),contrast:W(),grayscale:P(),hueRotate:W(),invert:P(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[Ob,Cn],inset:$(),margin:$(),opacity:W(),padding:M(),saturate:W(),scale:W(),sepia:P(),skew:W(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",Q]}],container:["container"],columns:[{columns:[jn]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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:[...K(),Q]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Vo,Q]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Q]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Vo,Q]}],"grid-cols":[{"grid-cols":[Ho]}],"col-start-end":[{col:["auto",{span:["full",Vo,Q]},Q]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Ho]}],"row-start-end":[{row:["auto",{span:[Vo,Q]},Q]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Q]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Q,t]}],"min-w":[{"min-w":[Q,t,"min","max","fit"]}],"max-w":[{"max-w":[Q,t,"none","full","min","max","fit","prose",{screen:[jn]},jn]}],h:[{h:[Q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",jn,Cn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Al]}],"font-family":[{font:[Ho]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Q]}],"line-clamp":[{"line-clamp":["none",no,Al]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",en,Q]}],"list-image":[{"list-image":["none",Q]}],"list-style-type":[{list:["none","disc","decimal",Q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",en,Cn]}],"underline-offset":[{"underline-offset":["auto",en,Q]}],"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:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q]}],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",Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),Mb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Fb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[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":[m]}],"border-style":[{border:[...F(),"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":[m]}],"divide-style":[{divide:F()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[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:["",...F()]}],"outline-offset":[{"outline-offset":[en,Q]}],"outline-w":[{outline:[en,Cn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[en,Cn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",jn,zb]}],"shadow-color":[{shadow:[Ho]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",jn,Q]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Q]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",Q]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",Q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Vo,Q]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Q]}],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",Q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",Q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[en,Cn,Al]}],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-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"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"]}}},Hb=jb(Vb);function ie(...e){return Hb(Og(e))}const Wb=Y1,Wg=vforwardRef(({className:e,...t},n)=>ljsx(Ng,{ref:n,className:ie("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));WgdisplayName=NgdisplayName;const Qb=Bs("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Qg=vforwardRef(({className:e,variant:t,...n},r)=>ljsx(Tg,{ref:r,className:ie(Qb({variant:t}),e),...n}));QgdisplayName=TgdisplayName;const Gb=vforwardRef(({className:e,...t},n)=>ljsx(Rg,{ref:n,className:ie("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));GbdisplayName=RgdisplayName;const Gg=vforwardRef(({className:e,...t},n)=>ljsx(Ag,{ref:n,className:ie("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:ljsx(zg,{className:"h-4 w-4"})}));GgdisplayName=AgdisplayName;const Kg=vforwardRef(({className:e,...t},n)=>ljsx(kg,{ref:n,className:ie("text-sm font-semibold",e),...t}));KgdisplayName=kgdisplayName;const Yg=vforwardRef(({className:e,...t},n)=>ljsx(Pg,{ref:n,className:ie("text-sm opacity-90",e),...t}));YgdisplayName=PgdisplayName;function Kb(){const{toasts:e}=sg();return ljsxs(Wb,{children:[emap(function({id:t,title:n,description:r,action:o,...s}){return ljsxs(Qg,{...s,children:[ljsxs("div",{className:"grid gap-1",children:[n&&ljsx(Kg,{children:n}),r&&ljsx(Yg,{children:r})]}),o,ljsx(Gg,{})]},t)}),ljsx(Wg,{})]})}var np=["light","dark"],Yb="(prefers-color-scheme: dark)",qb=vcreateContext(void 0),Xb={setTheme:e=>{},themes:[]},Zb=()=>{var e;return(e=vuseContext(qb))!=null?e:Xb};vmemo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:a,nonce:u})=>{let c=s==="system",d=n==="class"?`var d=documentdocumentElement,c=dclassList;${`cremove(${amap(b=>`'${b}'`).join(",")})`};`:`var d=documentdocumentElement,n='${n}',s='setAttribute';`,f=o?npincludes(s)&&s?`if(e==='light'||e==='dark'||!e)dstylecolorScheme=e||'${s}'`:"if(e==='light'||e==='dark')dstylecolorScheme=e":"",h=(b,x=!1,w=!0)=>{let m=i?i[b]:b,g=x?b+"|| ''":`'${m}'`,y="";return o&&w&&!x&&npincludes(b)&&(y+=`dstylecolorScheme = '${b}';`),n==="class"?x||m?y+=`cadd(${g})`:y+="null":m&&(y+=`d[s](n,${g})`),y},p=e?`!function(){${d}${h(e)}}()`:r?`!function(){try{${d}var e=localStoragegetItem('${t}');if('system'===e||(!e&&${c})){var t='${Yb}',m=windowmatchMedia(t);if(mmedia!==t||mmatches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSONstringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${c?"":"else{"+h(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStoragegetItem('${t}');if(e){${i?`var x=${JSONstringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(s,!1,!1)};}${f}}catch(t){}}();`;return vcreateElement("script",{nonce:u,dangerouslySetInnerHTML:{__html:p}})});var Jb=e=>{switch(e){case"success":return nS;case"info":return oS;case"warning":return rS;case"error":return sS;default:return null}},eS=Array(12).fill(0),tS=({visible:e,className:t})=>RcreateElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},RcreateElement("div",{className:"sonner-spinner"},eSmap((n,r)=>RcreateElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),nS=RcreateElement("svg",{xmlns:"http://wwww3org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},RcreateElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3857-9809a7575 0 00-1214-882l-3483 479-188-188a7575 0 10-106 1061l25 25a7575 0 001137-089l4-55z",clipRule:"evenodd"})),rS=RcreateElement("svg",{xmlns:"http://wwww3org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},RcreateElement("path",{fillRule:"evenodd",d:"M9401 3003c1155-2 4043-2 5197 0l7355 12748c1154 2-29 45-2599 45H4645c-2309 0-3752-25-2598-45L94 3003zM12 825a7575 0 017575v375a7575 0 01-15 0V9a7575 0 0175-75zm0 825a7575 0 100-157575 0 000 15z",clipRule:"evenodd"})),oS=RcreateElement("svg",{xmlns:"http://wwww3org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},RcreateElement("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 9a7575 0 000 15h253a2525 0 01244304l-459 2066A175 175 0 0010747 15H11a7575 0 000-15h-253a2525 0 01-244-304l459-2066A175 175 0 009253 9H9z",clipRule:"evenodd"})),sS=RcreateElement("svg",{xmlns:"http://wwww3org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},RcreateElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a7575 0 017575v45a7575 0 01-15 0v-45A7575 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),iS=RcreateElement("svg",{xmlns:"http://wwww3org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"15",strokeLinecap:"round",strokeLinejoin:"round"},RcreateElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),RcreateElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),aS=()=>{let[e,t]=RuseState(documenthidden);return RuseEffect(()=>{let n=()=>{t(documenthidden)};return documentaddEventListener("visibilitychange",n),()=>windowremoveEventListener("visibilitychange",n)},[]),e},Mu=1,lS=class{constructor(){thissubscribe=e=>(thissubscriberspush(e),()=>{let t=thissubscribersindexOf(e);thissubscriberssplice(t,1)}),thispublish=e=>{thissubscribersforEach(t=>t(e))},thisaddToast=e=>{thispublish(e),thistoasts=[...thistoasts,e]},thiscreate=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:eid)=="number"||((t=eid)==null?void 0:tlength)>0?eid:Mu++,s=thistoastsfind(a=>aid===o),i=edismissible===void 0?!0:edismissible;return thisdismissedToastshas(o)&&thisdismissedToastsdelete(o),s?thistoasts=thistoastsmap(a=>aid===o?(thispublish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:i,title:n}):a):thisaddToast({title:n,...r,dismissible:i,id:o}),o},thisdismiss=e=>(thisdismissedToastsadd(e),e||thistoastsforEach(t=>{thissubscribersforEach(n=>n({id:tid,dismiss:!0}))}),thissubscribersforEach(t=>t({id:e,dismiss:!0})),e),thismessage=(e,t)=>thiscreate({...t,message:e}),thiserror=(e,t)=>thiscreate({...t,message:e,type:"error"}),thissuccess=(e,t)=>thiscreate({...t,type:"success",message:e}),thisinfo=(e,t)=>thiscreate({...t,type:"info",message:e}),thiswarning=(e,t)=>thiscreate({...t,type:"warning",message:e}),thisloading=(e,t)=>thiscreate({...t,type:"loading",message:e}),thispromise=(e,t)=>{if(!t)return;let n;tloading!==void 0&&(n=thiscreate({...t,promise:e,type:"loading",message:tloading,description:typeof tdescription!="function"?tdescription:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=rthen(async u=>{if(s=["resolve",u],RisValidElement(u))o=!1,thiscreate({id:n,type:"default",message:u});else if(cS(u)&&!uok){o=!1;let c=typeof terror=="function"?await terror(`HTTP error! status: ${ustatus}`):terror,d=typeof tdescription=="function"?await tdescription(`HTTP error! status: ${ustatus}`):tdescription;thiscreate({id:n,type:"error",message:c,description:d})}else if(tsuccess!==void 0){o=!1;let c=typeof tsuccess=="function"?await tsuccess(u):tsuccess,d=typeof tdescription=="function"?await tdescription(u):tdescription;thiscreate({id:n,type:"success",message:c,description:d})}}).catch(async u=>{if(s=["reject",u],terror!==void 0){o=!1;let c=typeof terror=="function"?await terror(u):terror,d=typeof tdescription=="function"?await tdescription(u):tdescription;thiscreate({id:n,type:"error",message:c,description:d})}}).finally(()=>{var u;o&&(thisdismiss(n),n=void 0),(u=tfinally)==null||ucall(t)}),a=()=>new Promise((u,c)=>ithen(()=>"J"==="reject"?c("n"):u("n")).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Objectassign(n,{unwrap:a})},thiscustom=(e,t)=>{let n=(t==null?void 0:tid)||Mu++;return thiscreate({jsx:e(n),id:n,...t}),n},thisgetActiveToasts=()=>thistoastsfilter(e=>!thisdismissedToastshas(eid)),thissubscribers=[],thistoasts=[],thisdismissedToasts=new Set}},Ke=new lS,uS=(e,t)=>{let n=(t==null?void 0:tid)||Mu++;return KeaddToast({title:e,...t,id:n}),n},cS=e=>e&&typeof e=="object"&&"ok"in e&&typeof eok=="boolean"&&"status"in e&&typeof estatus=="number",dS=uS,fS=()=>Ketoasts,pS=()=>KegetActiveToasts();Objectassign(dS,{success:Kesuccess,info:Keinfo,warning:Kewarning,error:Keerror,custom:Kecustom,message:Kemessage,promise:Kepromise,dismiss:Kedismiss,loading:Keloading},{getHistory:fS,getToasts:pS});function hS(e,{insertAt:t}={}){if(typeof document>"u")return;let n=documenthead||documentgetElementsByTagName("head")[0],r=documentcreateElement("style");rtype="text/css",t==="top"&&nfirstChild?ninsertBefore(r,nfirstChild):nappendChild(r),rstyleSheet?rstyleSheetcssText=e:rappendChild(documentcreateTextNode(e))}hS(`: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%, 973%);--gray3: hsl(0, 0%, 951%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 909%);--gray6: hsl(0, 0%, 887%);--gray7: hsl(0, 0%, 858%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 561%);--gray10: hsl(0, 0%, 523%);--gray11: hsl(0, 0%, 435%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-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:transform4s,opacity4s,height4s,box-shadow2s;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:14;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:15;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-in3s 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:opacity4s,box-shadow2s}: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;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity1s,background2s,border-color2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}: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:-50%;right:-50%;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:opacity4s}: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:transform5s,opacity2s}: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-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-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-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 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-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[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-out2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 12s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-39%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-12s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-11s;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:opacity2s,transform2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
`);function gi(e){return elabel!==void 0}var mS=3,gS="32px",vS="16px",rp=4e3,yS=356,xS=14,wS=20,bS=200;function St(...e){return efilter(Boolean).join(" ")}function SS(e){let[t,n]=esplit("-"),r=[];return t&&rpush(t),n&&rpush(n),r}var ES=e=>{var t,n,r,o,s,i,a,u,c,d,f;let{invert:h,toast:p,unstyled:b,interacting:x,setHeights:w,visibleToasts:m,heights:g,index:y,toasts:S,expanded:E,removeToast:C,defaultRichColors:j,closeButton:k,style:O,cancelButtonStyle:_,actionButtonStyle:$,className:M="",descriptionClassName:G="",duration:I,position:K,gap:F,loadingIcon:H,expandByDefault:T,classNames:P,icons:L,closeButtonAriaLabel:W="Close toast",pauseWhenPageIsHidden:z}=e,[Y,X]=RuseState(null),[we,Oe]=RuseState(null),[ne,Rr]=RuseState(!1),[vn,nr]=RuseState(!1),[yn,Ar]=RuseState(!1),[xn,Gs]=RuseState(!1),[Xa,Ks]=RuseState(!1),[Za,Oo]=RuseState(0),[_r,Rd]=RuseState(0),Io=RuseRef(pduration||I||rp),Ad=RuseRef(null),rr=RuseRef(null),xx=y===0,wx=y+1<=m,ct=ptype,Or=pdismissible!==!1,bx=pclassName||"",Sx=pdescriptionClassName||"",Ys=RuseMemo(()=>gfindIndex(U=>UtoastId===pid)||0,[g,pid]),Ex=RuseMemo(()=>{var U;return(U=pcloseButton)!=null?U:k},[pcloseButton,k]),_d=RuseMemo(()=>pduration||I||rp,[pduration,I]),Ja=RuseRef(0),Ir=RuseRef(0),Od=RuseRef(0),Lr=RuseRef(null),[Cx,jx]=Ksplit("-"),Id=RuseMemo(()=>greduce((U,oe,ce)=>ce>=Ys?U:U+oeheight,0),[g,Ys]),Ld=aS(),Nx=pinvert||h,el=ct==="loading";Ircurrent=RuseMemo(()=>Ys*F+Id,[Ys,Id]),RuseEffect(()=>{Iocurrent=_d},[_d]),RuseEffect(()=>{Rr(!0)},[]),RuseEffect(()=>{let U=rrcurrent;if(U){let oe=UgetBoundingClientRect().height;return Rd(oe),w(ce=>[{toastId:pid,height:oe,position:pposition},...ce]),()=>w(ce=>cefilter(yt=>yttoastId!==pid))}},[w,pid]),RuseLayoutEffect(()=>{if(!ne)return;let U=rrcurrent,oe=Ustyleheight;Ustyleheight="auto";let ce=UgetBoundingClientRect().height;Ustyleheight=oe,Rd(ce),w(yt=>ytfind(xt=>xttoastId===pid)?ytmap(xt=>xttoastId===pid?{...xt,height:ce}:xt):[{toastId:pid,height:ce,position:pposition},...yt])},[ne,ptitle,pdescription,w,pid]);let wn=RuseCallback(()=>{nr(!0),Oo(Ircurrent),w(U=>Ufilter(oe=>oetoastId!==pid)),setTimeout(()=>{C(p)},bS)},[p,C,w,Ir]);RuseEffect(()=>{if(ppromise&&ct==="loading"||pduration===1/0||ptype==="loading")return;let U;return E||x||z&&Ld?(()=>{if(Odcurrent<Jacurrent){let oe=new Date().getTime()-Jacurrent;Iocurrent=Iocurrent-oe}Odcurrent=new Date().getTime()})():Iocurrent!==1/0&&(Jacurrent=new Date().getTime(),U=setTimeout(()=>{var oe;(oe=ponAutoClose)==null||oecall(p,p),wn()},Iocurrent)),()=>clearTimeout(U)},[E,x,p,ct,z,Ld,wn]),RuseEffect(()=>{pdelete&&wn()},[wn,pdelete]);function Tx(){var U,oe,ce;return L!=null&&Lloading?RcreateElement("div",{className:St(P==null?void 0:Ploader,(U=p==null?void 0:pclassNames)==null?void 0:Uloader,"sonner-loader"),"data-visible":ct==="loading"},Lloading):H?RcreateElement("div",{className:St(P==null?void 0:Ploader,(oe=p==null?void 0:pclassNames)==null?void 0:oeloader,"sonner-loader"),"data-visible":ct==="loading"},H):RcreateElement(tS,{className:St(P==null?void 0:Ploader,(ce=p==null?void 0:pclassNames)==null?void 0:celoader),visible:ct==="loading"})}return RcreateElement("li",{tabIndex:0,ref:rr,className:St(M,bx,P==null?void 0:Ptoast,(t=p==null?void 0:pclassNames)==null?void 0:ttoast,P==null?void 0:Pdefault,P==null?void 0:P[ct],(n=p==null?void 0:pclassNames)==null?void 0:n[ct]),"data-sonner-toast":"","data-rich-colors":(r=prichColors)!=null?r:j,"data-styled":!(pjsx||punstyled||b),"data-mounted":ne,"data-promise":!!ppromise,"data-swiped":Xa,"data-removed":vn,"data-visible":wx,"data-y-position":Cx,"data-x-position":jx,"data-index":y,"data-front":xx,"data-swiping":yn,"data-dismissible":Or,"data-type":ct,"data-invert":Nx,"data-swipe-out":xn,"data-swipe-direction":we,"data-expanded":!!(E||T&&ne),style:{"--index":y,"--toasts-before":y,"--z-index":Slength-y,"--offset":`${vn?Za:Ircurrent}px`,"--initial-height":T?"auto":`${_r}px`,...O,...pstyle},onDragEnd:()=>{Ar(!1),X(null),Lrcurrent=null},onPointerDown:U=>{el||!Or||(Adcurrent=new Date,Oo(Ircurrent),UtargetsetPointerCapture(UpointerId),UtargettagName!=="BUTTON"&&(Ar(!0),Lrcurrent={x:UclientX,y:UclientY}))},onPointerUp:()=>{var U,oe,ce,yt;if(xn||!Or)return;Lrcurrent=null;let xt=Number(((U=rrcurrent)==null?void 0:UstylegetPropertyValue("--swipe-amount-x").replace("px",""))||0),bn=Number(((oe=rrcurrent)==null?void 0:oestylegetPropertyValue("--swipe-amount-y").replace("px",""))||0),or=new Date().getTime()-((ce=Adcurrent)==null?void 0:cegetTime()),wt=Y==="x"?xt:bn,Sn=Mathabs(wt)/or;if(Mathabs(wt)>=wS||Sn>.11){Oo(Ircurrent),(yt=ponDismiss)==null||ytcall(p,p),Oe(Y==="x"?xt>0?"right":"left":bn>0?"down":"up"),wn(),Gs(!0),Ks(!1);return}Ar(!1),X(null)},onPointerMove:U=>{var oe,ce,yt,xt;if(!Lrcurrent||!Or||((oe=windowgetSelection())==null?void 0:oetoString().length)>0)return;let bn=UclientY-Lrcurrenty,or=UclientX-Lrcurrentx,wt=(ce=eswipeDirections)!=null?ce:SS(K);!Y&&(Mathabs(or)>1||Mathabs(bn)>1)&&X(Mathabs(or)>Mathabs(bn)?"x":"y");let Sn={x:0,y:0};Y==="y"?(wtincludes("top")||wtincludes("bottom"))&&(wtincludes("top")&&bn<0||wtincludes("bottom")&&bn>0)&&(Sny=bn):Y==="x"&&(wtincludes("left")||wtincludes("right"))&&(wtincludes("left")&&or<0||wtincludes("right")&&or>0)&&(Snx=or),(Mathabs(Snx)>0||Mathabs(Sny)>0)&&Ks(!0),(yt=rrcurrent)==null||ytstylesetProperty("--swipe-amount-x",`${Snx}px`),(xt=rrcurrent)==null||xtstylesetProperty("--swipe-amount-y",`${Sny}px`)}},Ex&&!pjsx?RcreateElement("button",{"aria-label":W,"data-disabled":el,"data-close-button":!0,onClick:el||!Or?()=>{}:()=>{var U;wn(),(U=ponDismiss)==null||Ucall(p,p)},className:St(P==null?void 0:PcloseButton,(o=p==null?void 0:pclassNames)==null?void 0:ocloseButton)},(s=L==null?void 0:Lclose)!=null?s:iS):null,pjsx||visValidElement(ptitle)?pjsx?pjsx:typeof ptitle=="function"?ptitle():ptitle:RcreateElement(RFragment,null,ct||picon||ppromise?RcreateElement("div",{"data-icon":"",className:St(P==null?void 0:Picon,(i=p==null?void 0:pclassNames)==null?void 0:iicon)},ppromise||ptype==="loading"&&!picon?picon||Tx():null,ptype!=="loading"?picon||(L==null?void 0:L[ct])||Jb(ct):null):null,RcreateElement("div",{"data-content":"",className:St(P==null?void 0:Pcontent,(a=p==null?void 0:pclassNames)==null?void 0:acontent)},RcreateElement("div",{"data-title":"",className:St(P==null?void 0:Ptitle,(u=p==null?void 0:pclassNames)==null?void 0:utitle)},typeof ptitle=="function"?ptitle():ptitle),pdescription?RcreateElement("div",{"data-description":"",className:St(G,Sx,P==null?void 0:Pdescription,(c=p==null?void 0:pclassNames)==null?void 0:cdescription)},typeof pdescription=="function"?pdescription():pdescription):null),visValidElement(pcancel)?pcancel:pcancel&&gi(pcancel)?RcreateElement("button",{"data-button":!0,"data-cancel":!0,style:pcancelButtonStyle||_,onClick:U=>{var oe,ce;gi(pcancel)&&Or&&((ce=(oe=pcancel).onClick)==null||cecall(oe,U),wn())},className:St(P==null?void 0:PcancelButton,(d=p==null?void 0:pclassNames)==null?void 0:dcancelButton)},pcancellabel):null,visValidElement(paction)?paction:paction&&gi(paction)?RcreateElement("button",{"data-button":!0,"data-action":!0,style:pactionButtonStyle||$,onClick:U=>{var oe,ce;gi(paction)&&((ce=(oe=paction).onClick)==null||cecall(oe,U),!UdefaultPrevented&&wn())},className:St(P==null?void 0:PactionButton,(f=p==null?void 0:pclassNames)==null?void 0:factionButton)},pactionlabel):null))};function op(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=documentdocumentElementgetAttribute("dir");return e==="auto"||!e?windowgetComputedStyle(documentdocumentElement).direction:e}function CS(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",a=s?vS:gS;function u(c){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?u(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${i}-${c}`]=a:n[`${i}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):u(a)}),n}var jS=vforwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:a,offset:u,mobileOffset:c,theme:d="light",richColors:f,duration:h,style:p,visibleToasts:b=mS,toastOptions:x,dir:w=op(),gap:m=xS,loadingIcon:g,icons:y,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:E}=e,[C,j]=RuseState([]),k=RuseMemo(()=>Arrayfrom(new Set([r].concat(Cfilter(z=>zposition).map(z=>zposition)))),[C,r]),[O,_]=RuseState([]),[$,M]=RuseState(!1),[G,I]=RuseState(!1),[K,F]=RuseState(d!=="system"?d:typeof window<"u"&&windowmatchMedia&&windowmatchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=RuseRef(null),T=ojoin("+").replace(/Key/g,"").replace(/Digit/g,""),P=RuseRef(null),L=RuseRef(!1),W=RuseCallback(z=>{j(Y=>{var X;return(X=Yfind(we=>weid===zid))!=null&&Xdelete||Kedismiss(zid),Yfilter(({id:we})=>we!==zid)})},[]);return RuseEffect(()=>Kesubscribe(z=>{if(zdismiss){j(Y=>Ymap(X=>Xid===zid?{...X,delete:!0}:X));return}setTimeout(()=>{rgflushSync(()=>{j(Y=>{let X=YfindIndex(we=>weid===zid);return X!==-1?[...Yslice(0,X),{...Y[X],...z},...Yslice(X+1)]:[z,...Y]})})})}),[]),RuseEffect(()=>{if(d!=="system"){F(d);return}if(d==="system"&&(windowmatchMedia&&windowmatchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;let z=windowmatchMedia("(prefers-color-scheme: dark)");try{zaddEventListener("change",({matches:Y})=>{F(Y?"dark":"light")})}catch{zaddListener(({matches:X})=>{try{F(X?"dark":"light")}catch(we){consoleerror(we)}})}},[d]),RuseEffect(()=>{Clength<=1&&M(!1)},[C]),RuseEffect(()=>{let z=Y=>{var X,we;oevery(Oe=>Y[Oe]||Ycode===Oe)&&(M(!0),(X=Hcurrent)==null||Xfocus()),Ycode==="Escape"&&(documentactiveElement===Hcurrent||(we=Hcurrent)!=null&&wecontains(documentactiveElement))&&M(!1)};return documentaddEventListener("keydown",z),()=>documentremoveEventListener("keydown",z)},[o]),RuseEffect(()=>{if(Hcurrent)return()=>{Pcurrent&&(Pcurrentfocus({preventScroll:!0}),Pcurrent=null,Lcurrent=!1)}},[Hcurrent]),RcreateElement("section",{ref:t,"aria-label":`${S} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},kmap((z,Y)=>{var X;let[we,Oe]=zsplit("-");return Clength?RcreateElement("ol",{key:z,dir:w==="auto"?op():w,tabIndex:-1,ref:H,className:a,"data-sonner-toaster":!0,"data-theme":K,"data-y-position":we,"data-lifted":$&&Clength>1&&!s,"data-x-position":Oe,style:{"--front-toast-height":`${((X="J")==null?void 0:Xheight)||0}px`,"--width":`${yS}px`,"--gap":`${m}px`,...p,...CS(u,c)},onBlur:ne=>{Lcurrent&&!necurrentTargetcontains(nerelatedTarget)&&(Lcurrent=!1,Pcurrent&&(Pcurrentfocus({preventScroll:!0}),Pcurrent=null))},onFocus:ne=>{netarget instanceof HTMLElement&&netargetdatasetdismissible==="false"||Lcurrent||(Lcurrent=!0,Pcurrent=nerelatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{G||M(!1)},onDragEnd:()=>M(!1),onPointerDown:ne=>{netarget instanceof HTMLElement&&netargetdatasetdismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},Cfilter(ne=>!neposition&&Y===0||neposition===z).map((ne,Rr)=>{var vn,nr;return RcreateElement(ES,{key:neid,icons:y,index:Rr,toast:ne,defaultRichColors:f,duration:(vn=x==null?void 0:xduration)!=null?vn:h,className:x==null?void 0:xclassName,descriptionClassName:x==null?void 0:xdescriptionClassName,invert:n,visibleToasts:b,closeButton:(nr=x==null?void 0:xcloseButton)!=null?nr:i,interacting:G,position:z,style:x==null?void 0:xstyle,unstyled:x==null?void 0:xunstyled,classNames:x==null?void 0:xclassNames,cancelButtonStyle:x==null?void 0:xcancelButtonStyle,actionButtonStyle:x==null?void 0:xactionButtonStyle,removeToast:W,toasts:Cfilter(yn=>ynposition==neposition),heights:Ofilter(yn=>ynposition==neposition),setHeights:_,expandByDefault:s,gap:m,loadingIcon:g,expanded:$,pauseWhenPageIsHidden:E,swipeDirections:eswipeDirections})})):null}))});const NS=({...e})=>{const{theme:t="system"}=Zb();return ljsx(jS,{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 TS=sc[" useId ".trim().toString()]||(()=>{}),kS=0;function Ia(e){const[t,n]=vuseState(TS());return at(()=>{e||n(r=>r??String(kS++))},[e]),e||(t?`radix-${t}`:"")}const PS=["top","right","bottom","left"],qn=Mathmin,tt=Mathmax,ia=Mathround,vi=Mathfloor,Kt=e=>({x:e,y:e}),RS={left:"right",right:"left",bottom:"top",top:"bottom"},AS={start:"end",end:"start"};function Du(e,t,n){return tt(e,qn(t,n))}function hn(e,t){return typeof e=="function"?e(t):e}function mn(e){return esplit("-")[0]}function Ro(e){return esplit("-")[1]}function nd(e){return e==="x"?"y":"x"}function rd(e){return e==="y"?"height":"width"}const _S=new Set(["top","bottom"]);function Wt(e){return _Shas(mn(e))?"y":"x"}function od(e){return nd(Wt(e))}function OS(e,t,n){n===void 0&&(n=!1);const r=Ro(e),o=od(e),s=rd(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return treference[s]>tfloating[s]&&(i=aa(i)),[i,aa(i)]}function IS(e){const t=aa(e);return[Fu(e),t,Fu(t)]}function Fu(e){return ereplace(/start|end/g,t=>AS[t])}const sp=["left","right"],ip=["right","left"],LS=["top","bottom"],MS=["bottom","top"];function DS(e,t,n){switch(e){case"top":case"bottom":return n?t?ip:sp:t?sp:ip;case"left":case"right":return t?LS:MS;default:return[]}}function FS(e,t,n,r){const o=Ro(e);let s=DS(mn(e),n==="start",r);return o&&(s=smap(i=>i+"-"+o),t&&(s=sconcat(smap(Fu)))),s}function aa(e){return ereplace(/left|right|bottom|top/g,t=>RS[t])}function zS(e){return{top:0,right:0,bottom:0,left:0,...e}}function qg(e){return typeof e!="number"?zS(e):{top:e,right:e,bottom:e,left:e}}function la(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 ap(e,t,n){let{reference:r,floating:o}=e;const s=Wt(t),i=od(t),a=rd(i),u=mn(t),c=s==="y",d=rx+rwidth/2-owidth/2,f=ry+rheight/2-oheight/2,h=r[a]/2-o[a]/2;let p;switch(u){case"top":p={x:d,y:ry-oheight};break;case"bottom":p={x:d,y:ry+rheight};break;case"right":p={x:rx+rwidth,y:f};break;case"left":p={x:rx-owidth,y:f};break;default:p={x:rx,y:ry}}switch(Ro(t)){case"start":p[i]-=h*(n&&c?-1:1);break;case"end":p[i]+=h*(n&&c?-1:1);break}return p}const $S=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=sfilter(Boolean),u=await(iisRTL==null?void 0:iisRTL(t));let c=await igetElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=ap(c,r,u),h=r,p={},b=0;for(let x=0;x<alength;x++){const{name:w,fn:m}=a[x],{x:g,y,data:S,reset:E}=await m({x:d,y:f,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});d=g??d,f=y??f,p={...p,[w]:{...p[w],...S}},E&&b<=50&&(b++,typeof E=="object"&&(Eplacement&&(h=Eplacement),Erects&&(c=Erects===!0?await igetElementRects({reference:e,floating:t,strategy:o}):Erects),{x:d,y:f}=ap(c,h,u)),x=-1)}return{x:d,y:f,placement:h,strategy:o,middlewareData:p}};async function Ns(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=hn(t,e),b=qg(p),w=a[h?f==="floating"?"reference":"floating":f],m=la(await sgetClippingRect({element:(n=await(sisElement==null?void 0:sisElement(w)))==null||n?w:wcontextElement||await(sgetDocumentElement==null?void 0:sgetDocumentElement(afloating)),boundary:c,rootBoundary:d,strategy:u})),g=f==="floating"?{x:r,y:o,width:ifloatingwidth,height:ifloatingheight}:ireference,y=await(sgetOffsetParent==null?void 0:sgetOffsetParent(afloating)),S=await(sisElement==null?void 0:sisElement(y))?await(sgetScale==null?void 0:sgetScale(y))||{x:1,y:1}:{x:1,y:1},E=la(sconvertOffsetParentRelativeRectToViewportRelativeRect?await sconvertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:u}):g);return{top:(mtop-Etop+btop)/Sy,bottom:(Ebottom-mbottom+bbottom)/Sy,left:(mleft-Eleft+bleft)/Sx,right:(Eright-mright+bright)/Sx}}const US=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:u}=t,{element:c,padding:d=0}=hn(e,t)||{};if(c==null)return{};const f=qg(d),h={x:n,y:r},p=od(o),b=rd(p),x=await igetDimensions(c),w=p==="y",m=w?"top":"left",g=w?"bottom":"right",y=w?"clientHeight":"clientWidth",S=sreference[b]+sreference[p]-h[p]-sfloating[b],E=h[p]-sreference[p],C=await(igetOffsetParent==null?void 0:igetOffsetParent(c));let j=C?C[y]:0;(!j||!await(iisElement==null?void 0:iisElement(C)))&&(j=afloating[y]||sfloating[b]);const k=S/2-E/2,O=j/2-x[b]/2-1,_=qn(f[m],O),$=qn(f[g],O),M=_,G=j-x[b]-$,I=j/2-x[b]/2+k,K=Du(M,I,G),F=!uarrow&&Ro(o)!=null&&I!==K&&sreference[b]/2-(I<M?_:$)-x[b]/2<0,H=F?I<M?I-M:I-G:0;return{[p]:h[p]+H,data:{[p]:K,centerOffset:I-K-H,...F&&{alignmentOffset:H}},reset:F}}}),BS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...w}=hn(e,t);if((n=sarrow)!=null&&nalignmentOffset)return{};const m=mn(o),g=Wt(a),y=mn(a)===a,S=await(uisRTL==null?void 0:uisRTL(cfloating)),E=h||(y||!x?[aa(a)]:IS(a)),C=b!=="none";!h&&C&&Epush(...FS(a,x,b,S));const j=[a,...E],k=await Ns(t,w),O=[];let _=((r=sflip)==null?void 0:roverflows)||[];if(d&&Opush(k[m]),f){const I=OS(o,i,S);Opush(k["J"],k["n"])}if(_=[..._,{placement:o,overflows:O}],!Oevery(I=>I<=0)){var $,M;const I=((($=sflip)==null?void 0:$.index)||0)+1,K=j[I];if(K&&(!(f==="alignment"?g!==Wt(K):!1)||_every(T=>T."J">0&&Wt(Tplacement)===g)))return{data:{index:I,overflows:_},reset:{placement:K}};let F=(M=_filter(H=>H."J"<=0).sort((H,T)=>H."n"-T."n")[0])==null?void 0:Mplacement;if(!F)switch(p){case"bestFit":{var G;const H=(G=_filter(T=>{if(C){const P=Wt(Tplacement);return P===g||P==="y"}return!0}).map(T=>[Tplacement,Toverflowsfilter(P=>P>0).reduce((P,L)=>P+L,0)]).sort((T,P)=>"n"-"n")[0])==null?void 0:"J";H&&(F=H);break}case"initialPlacement":F=a;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function lp(e,t){return{top:etop-theight,right:eright-twidth,bottom:ebottom-theight,left:eleft-twidth}}function up(e){return PSsome(t=>e[t]>=0)}const VS=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=hn(e,t);switch(r){case"referenceHidden":{const s=await Ns(t,{...o,elementContext:"reference"}),i=lp(s,nreference);return{data:{referenceHiddenOffsets:i,referenceHidden:up(i)}}}case"escaped":{const s=await Ns(t,{...o,altBoundary:!0}),i=lp(s,nfloating);return{data:{escapedOffsets:i,escaped:up(i)}}}default:return{}}}}},Xg=new Set(["left","top"]);async function HS(e,t){const{placement:n,platform:r,elements:o}=e,s=await(risRTL==null?void 0:risRTL(ofloating)),i=mn(n),a=Ro(n),u=Wt(n)==="y",c=Xghas(i)?-1:1,d=s&&u?-1:1,f=hn(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:fmainAxis||0,crossAxis:fcrossAxis||0,alignmentAxis:falignmentAxis};return a&&typeof b=="number"&&(p=a==="end"?b*-1:b),u?{x:p*d,y:h*c}:{x:h*c,y:p*d}}const WS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,u=await HS(t,e);return i===((n=aoffset)==null?void 0:nplacement)&&(r=aarrow)!=null&&ralignmentOffset?{}:{x:o+ux,y:s+uy,data:{...u,placement:i}}}}},QS=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:m,y:g}=w;return{x:m,y:g}}},...u}=hn(e,t),c={x:n,y:r},d=await Ns(t,u),f=Wt(mn(o)),h=nd(f);let p=c[h],b=c[f];if(s){const w=h==="y"?"top":"left",m=h==="y"?"bottom":"right",g=p+d[w],y=p-d[m];p=Du(g,p,y)}if(i){const w=f==="y"?"top":"left",m=f==="y"?"bottom":"right",g=b+d[w],y=b-d[m];b=Du(g,b,y)}const x=afn({...t,[h]:p,[f]:b});return{...x,data:{x:xx-n,y:xy-r,enabled:{[h]:s,[f]:i}}}}}},GS=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=hn(e,t),d={x:n,y:r},f=Wt(o),h=nd(f);let p=d[h],b=d[f];const x=hn(a,t),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(u){const y=h==="y"?"height":"width",S=sreference[h]-sfloating[y]+wmainAxis,E=sreference[h]+sreference[y]-wmainAxis;p<S?p=S:p>E&&(p=E)}if(c){var m,g;const y=h==="y"?"width":"height",S=Xghas(mn(o)),E=sreference[f]-sfloating[y]+(S&&((m=ioffset)==null?void 0:m[f])||0)+(S?0:wcrossAxis),C=sreference[f]+sreference[y]+(S?0:((g=ioffset)==null?void 0:g[f])||0)-(S?wcrossAxis:0);b<E?b=E:b>C&&(b=C)}return{[h]:p,[f]:b}}}},KS=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:u=()=>{},...c}=hn(e,t),d=await Ns(t,c),f=mn(o),h=Ro(o),p=Wt(o)==="y",{width:b,height:x}=sfloating;let w,m;f==="top"||f==="bottom"?(w=f,m=h===(await(iisRTL==null?void 0:iisRTL(afloating))?"start":"end")?"left":"right"):(m=f,w=h==="end"?"top":"bottom");const g=x-dtop-dbottom,y=b-dleft-dright,S=qn(x-d[w],g),E=qn(b-d[m],y),C=!tmiddlewareDatashift;let j=S,k=E;if((n=tmiddlewareDatashift)!=null&&nenabledx&&(k=y),(r=tmiddlewareDatashift)!=null&&renabledy&&(j=g),C&&!h){const _=tt(dleft,0),$=tt(dright,0),M=tt(dtop,0),G=tt(dbottom,0);p?k=b-2*(_!==0||$!==0?_+$:tt(dleft,dright)):j=x-2*(M!==0||G!==0?M+G:tt(dtop,dbottom))}await u({...t,availableWidth:k,availableHeight:j});const O=await igetDimensions(afloating);return b!==Owidth||x!==Oheight?{reset:{rects:!0}}:{}}}};function La(){return typeof window<"u"}function Ao(e){return Zg(e)?(enodeName||"").toLowerCase():"#document"}function st(e){var t;return(e==null||(t=eownerDocument)==null?void 0:tdefaultView)||window}function Jt(e){var t;return(t=(Zg(e)?eownerDocument:edocument)||windowdocument)==null?void 0:tdocumentElement}function Zg(e){return La()?e instanceof Node||e instanceof st(e).Node:!1}function It(e){return La()?e instanceof Element||e instanceof st(e).Element:!1}function qt(e){return La()?e instanceof HTMLElement||e instanceof st(e).HTMLElement:!1}function cp(e){return!La()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof st(e).ShadowRoot}const YS=new Set(["inline","contents"]);function Vs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!YShas(o)}const qS=new Set(["table","td","th"]);function XS(e){return qShas(Ao(e))}const ZS=[":popover-open",":modal"];function Ma(e){return ZSsome(t=>{try{return ematches(t)}catch{return!1}})}const JS=["transform","translate","scale","rotate","perspective"],eE=["transform","translate","scale","rotate","perspective","filter"],tE=["paint","layout","strict","content"];function sd(e){const t=id(),n=It(e)?Lt(e):e;return JSsome(r=>n[r]?n[r]!=="none":!1)||(ncontainerType?ncontainerType!=="normal":!1)||!t&&(nbackdropFilter?nbackdropFilter!=="none":!1)||!t&&(nfilter?nfilter!=="none":!1)||eEsome(r=>(nwillChange||"").includes(r))||tEsome(r=>(ncontain||"").includes(r))}function nE(e){let t=Xn(e);for(;qt(t)&&!bo(t);){if(sd(t))return t;if(Ma(t))return null;t=Xn(t)}return null}function id(){return typeof CSS>"u"||!CSSsupports?!1:CSSsupports("-webkit-backdrop-filter","none")}const rE=new Set(["html","body","#document"]);function bo(e){return rEhas(Ao(e))}function Lt(e){return st(e).getComputedStyle(e)}function Da(e){return It(e)?{scrollLeft:escrollLeft,scrollTop:escrollTop}:{scrollLeft:escrollX,scrollTop:escrollY}}function Xn(e){if(Ao(e)==="html")return e;const t=eassignedSlot||eparentNode||cp(e)&&ehost||Jt(e);return cp(t)?thost:t}function Jg(e){const t=Xn(e);return bo(t)?eownerDocument?eownerDocumentbody:ebody:qt(t)&&Vs(t)?t:Jg(t)}function Ts(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Jg(e),s=o===((r=eownerDocument)==null?void 0:rbody),i=st(o);if(s){const a=zu(i);return tconcat(i,ivisualViewport||[],Vs(o)?o:[],a&&n?Ts(a):[])}return tconcat(o,Ts(o,[],n))}function zu(e){return eparent&&ObjectgetPrototypeOf(eparent)?eframeElement:null}function ev(e){const t=Lt(e);let n=parseFloat(twidth)||0,r=parseFloat(theight)||0;const o=qt(e),s=o?eoffsetWidth:n,i=o?eoffsetHeight:r,a=ia(n)!==s||ia(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function ad(e){return It(e)?e:econtextElement}function ro(e){const t=ad(e);if(!qt(t))return Kt(1);const n=tgetBoundingClientRect(),{width:r,height:o,$:s}=ev(t);let i=(s?ia(nwidth):nwidth)/r,a=(s?ia(nheight):nheight)/o;return(!i||!NumberisFinite(i))&&(i=1),(!a||!NumberisFinite(a))&&(a=1),{x:i,y:a}}const oE=Kt(0);function tv(e){const t=st(e);return!id()||!tvisualViewport?oE:{x:tvisualViewportoffsetLeft,y:tvisualViewportoffsetTop}}function sE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==st(e)?!1:t}function jr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=egetBoundingClientRect(),s=ad(e);let i=Kt(1);t&&(r?It(r)&&(i=ro(r)):i=ro(e));const a=sE(s,n,r)?tv(s):Kt(0);let u=(oleft+ax)/ix,c=(otop+ay)/iy,d=owidth/ix,f=oheight/iy;if(s){const h=st(s),p=r&&It(r)?st(r):r;let b=h,x=zu(b);for(;x&&r&&p!==b;){const w=ro(x),m=xgetBoundingClientRect(),g=Lt(x),y=mleft+(xclientLeft+parseFloat(gpaddingLeft))*wx,S=mtop+(xclientTop+parseFloat(gpaddingTop))*wy;u*=wx,c*=wy,d*=wx,f*=wy,u+=y,c+=S,b=st(x),x=zu(b)}}return la({width:d,height:f,x:u,y:c})}function ld(e,t){const n=Da(e).scrollLeft;return t?tleft+n:jr(Jt(e)).left+n}function nv(e,t,n){n===void 0&&(n=!1);const r=egetBoundingClientRect(),o=rleft+tscrollLeft-(n?0:ld(e,r)),s=rtop+tscrollTop;return{x:o,y:s}}function iE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Jt(r),a=t?Ma(tfloating):!1;if(r===i||a&&s)return n;let u={scrollLeft:0,scrollTop:0},c=Kt(1);const d=Kt(0),f=qt(r);if((f||!f&&!s)&&((Ao(r)!=="body"||Vs(i))&&(u=Da(r)),qt(r))){const p=jr(r);c=ro(r),dx=px+rclientLeft,dy=py+rclientTop}const h=i&&!f&&!s?nv(i,u,!0):Kt(0);return{width:nwidth*cx,height:nheight*cy,x:nx*cx-uscrollLeft*cx+dx+hx,y:ny*cy-uscrollTop*cy+dy+hy}}function aE(e){return Arrayfrom(egetClientRects())}function lE(e){const t=Jt(e),n=Da(e),r=eownerDocumentbody,o=tt(tscrollWidth,tclientWidth,rscrollWidth,rclientWidth),s=tt(tscrollHeight,tclientHeight,rscrollHeight,rclientHeight);let i=-nscrollLeft+ld(e);const a=-nscrollTop;return Lt(r).direction==="rtl"&&(i+=tt(tclientWidth,rclientWidth)-o),{width:o,height:s,x:i,y:a}}function uE(e,t){const n=st(e),r=Jt(e),o=nvisualViewport;let s=rclientWidth,i=rclientHeight,a=0,u=0;if(o){s=owidth,i=oheight;const c=id();(!c||c&&t==="fixed")&&(a=ooffsetLeft,u=ooffsetTop)}return{width:s,height:i,x:a,y:u}}const cE=new Set(["absolute","fixed"]);function dE(e,t){const n=jr(e,!0,t==="fixed"),r=ntop+eclientTop,o=nleft+eclientLeft,s=qt(e)?ro(e):Kt(1),i=eclientWidth*sx,a=eclientHeight*sy,u=o*sx,c=r*sy;return{width:i,height:a,x:u,y:c}}function dp(e,t,n){let r;if(t==="viewport")r=uE(e,n);else if(t==="document")r=lE(Jt(e));else if(It(t))r=dE(t,n);else{const o=tv(e);r={x:tx-ox,y:ty-oy,width:twidth,height:theight}}return la(r)}function rv(e,t){const n=Xn(e);return n===t||!It(n)||bo(n)?!1:Lt(n).position==="fixed"||rv(n,t)}function fE(e,t){const n=tget(e);if(n)return n;let r=Ts(e,[],!1).filter(a=>It(a)&&Ao(a)!=="body"),o=null;const s=Lt(e).position==="fixed";let i=s?Xn(e):e;for(;It(i)&&!bo(i);){const a=Lt(i),u=sd(i);!u&&aposition==="fixed"&&(o=null),(s?!u&&!o:!u&&aposition==="static"&&!!o&&cEhas(oposition)||Vs(i)&&!u&&rv(e,i))?r=rfilter(d=>d!==i):o=a,i=Xn(i)}return tset(e,r),r}function pE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Ma(t)?[]:fE(t,this_c):[].concat(n),r],a="J",u=ireduce((c,d)=>{const f=dp(t,d,o);return ctop=tt(ftop,ctop),cright=qn(fright,cright),cbottom=qn(fbottom,cbottom),cleft=tt(fleft,cleft),c},dp(t,a,o));return{width:uright-uleft,height:ubottom-utop,x:uleft,y:utop}}function hE(e){const{width:t,height:n}=ev(e);return{width:t,height:n}}function mE(e,t,n){const r=qt(t),o=Jt(t),s=n==="fixed",i=jr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const u=Kt(0);function c(){ux=ld(o)}if(r||!r&&!s)if((Ao(t)!=="body"||Vs(o))&&(a=Da(t)),r){const p=jr(t,!0,s,t);ux=px+tclientLeft,uy=py+tclientTop}else o&&c();s&&!r&&o&&c();const d=o&&!r&&!s?nv(o,a):Kt(0),f=ileft+ascrollLeft-ux-dx,h=itop+ascrollTop-uy-dy;return{x:f,y:h,width:iwidth,height:iheight}}function _l(e){return Lt(e).position==="static"}function fp(e,t){if(!qt(e)||Lt(e).position==="fixed")return null;if(t)return t(e);let n=eoffsetParent;return Jt(e)===n&&(n=nownerDocumentbody),n}function ov(e,t){const n=st(e);if(Ma(e))return n;if(!qt(e)){let o=Xn(e);for(;o&&!bo(o);){if(It(o)&&!_l(o))return o;o=Xn(o)}return n}let r=fp(e,t);for(;r&&XS(r)&&_l(r);)r=fp(r,t);return r&&bo(r)&&_l(r)&&!sd(r)?n:r||nE(e)||n}const gE=async function(e){const t=thisgetOffsetParent||ov,n=thisgetDimensions,r=await n(efloating);return{reference:mE(ereference,await t(efloating),estrategy),floating:{x:0,y:0,width:rwidth,height:rheight}}};function vE(e){return Lt(e).direction==="rtl"}const yE={convertOffsetParentRelativeRectToViewportRelativeRect:iE,getDocumentElement:Jt,getClippingRect:pE,getOffsetParent:ov,getElementRects:gE,getClientRects:aE,getDimensions:hE,getScale:ro,isElement:It,isRTL:vE};function sv(e,t){return ex===tx&&ey===ty&&ewidth===twidth&&eheight===theight}function xE(e,t){let n=null,r;const o=Jt(e);function s(){var a;clearTimeout(r),(a=n)==null||adisconnect(),n=null}function i(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),s();const c=egetBoundingClientRect(),{left:d,top:f,width:h,height:p}=c;if(a||t(),!h||!p)return;const b=vi(f),x=vi(oclientWidth-(d+h)),w=vi(oclientHeight-(f+p)),m=vi(d),y={rootMargin:-b+"px "+-x+"px "+-w+"px "+-m+"px",threshold:tt(0,qn(1,u))||1};let S=!0;function E(C){const j="J".intersectionRatio;if(j!==u){if(!S)return i();j?i(!1,j):r=setTimeout(()=>{i(!1,1e-7)},1e3)}j===1&&!sv(c,egetBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(E,{...y,root:oownerDocument})}catch{n=new IntersectionObserver(E,y)}nobserve(e)}return i(!0),s}function wE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=ad(e),d=o||s?[...c?Ts(c):[],...Ts(t)]:[];dforEach(m=>{o&&maddEventListener("scroll",n,{passive:!0}),s&&maddEventListener("resize",n)});const f=c&&a?xE(c,n):null;let h=-1,p=null;i&&(p=new ResizeObserver(m=>{let[g]=m;g&&gtarget===c&&p&&(punobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=p)==null||yobserve(t)})),n()}),c&&!u&&pobserve(c),pobserve(t));let b,x=u?jr(e):null;u&&w();function w(){const m=jr(e);x&&!sv(x,m)&&n(),x=m,b=requestAnimationFrame(w)}return n(),()=>{var m;dforEach(g=>{o&&gremoveEventListener("scroll",n),s&&gremoveEventListener("resize",n)}),f==null||f(),(m=p)==null||mdisconnect(),p=null,u&&cancelAnimationFrame(b)}}const bE=WS,SE=QS,EE=BS,CE=KS,jE=VS,pp=US,NE=GS,TE=(e,t,n)=>{const r=new Map,o={platform:yE,...n},s={...oplatform,_c:r};return $S(e,t,{...o,platform:s})};var kE=typeof document<"u",PE=function(){},Oi=kE?vuseLayoutEffect:PE;function ua(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&etoString()===ttoString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(ArrayisArray(e)){if(n=elength,n!==tlength)return!1;for(r=n;r--!==0;)if(!ua(e[r],t[r]))return!1;return!0}if(o=Objectkeys(e),n=olength,n!==Objectkeys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnPropertycall(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!ua(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function iv(e){return typeof window>"u"?1:(eownerDocumentdefaultView||window).devicePixelRatio||1}function hp(e,t){const n=iv(e);return Mathround(t*n)/n}function Ol(e){const t=vuseRef(e);return Oi(()=>{tcurrent=e}),t}function RE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[d,f]=vuseState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=vuseState(r);ua(h,r)||p(r);const[b,x]=vuseState(null),[w,m]=vuseState(null),g=vuseCallback(T=>{T!==Ccurrent&&(Ccurrent=T,x(T))},[]),y=vuseCallback(T=>{T!==jcurrent&&(jcurrent=T,m(T))},[]),S=s||b,E=i||w,C=vuseRef(null),j=vuseRef(null),k=vuseRef(d),O=u!=null,_=Ol(u),$=Ol(o),M=Ol(c),G=vuseCallback(()=>{if(!Ccurrent||!jcurrent)return;const T={placement:t,strategy:n,middleware:h};$.current&&(Tplatform=$.current),TE(Ccurrent,jcurrent,T).then(P=>{const L={...P,isPositioned:Mcurrent!==!1};Icurrent&&!ua(kcurrent,L)&&(kcurrent=L,$sflushSync(()=>{f(L)}))})},[h,t,n,$,M]);Oi(()=>{c===!1&&kcurrentisPositioned&&(kcurrentisPositioned=!1,f(T=>({...T,isPositioned:!1})))},[c]);const I=vuseRef(!1);Oi(()=>(Icurrent=!0,()=>{Icurrent=!1}),[]),Oi(()=>{if(S&&(Ccurrent=S),E&&(jcurrent=E),S&&E){if(_current)return _current(S,E,G);G()}},[S,E,G,_,O]);const K=vuseMemo(()=>({reference:C,floating:j,setReference:g,setFloating:y}),[g,y]),F=vuseMemo(()=>({reference:S,floating:E}),[S,E]),H=vuseMemo(()=>{const T={position:n,left:0,top:0};if(!Ffloating)return T;const P=hp(Ffloating,dx),L=hp(Ffloating,dy);return a?{...T,transform:"translate("+P+"px, "+L+"px)",...iv(Ffloating)>=15&&{willChange:"transform"}}:{position:n,left:P,top:L}},[n,a,Ffloating,dx,dy]);return vuseMemo(()=>({...d,update:G,refs:K,elements:F,floatingStyles:H}),[d,G,K,F,H])}const AE=e=>{function t(n){return{}.hasOwnPropertycall(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?rcurrent!=null?pp({element:rcurrent,padding:o}).fn(n):{}:r?pp({element:r,padding:o}).fn(n):{}}}},_E=(e,t)=>({...bE(e),options:[e,t]}),OE=(e,t)=>({...SE(e),options:[e,t]}),IE=(e,t)=>({...NE(e),options:[e,t]}),LE=(e,t)=>({...EE(e),options:[e,t]}),ME=(e,t)=>({...CE(e),options:[e,t]}),DE=(e,t)=>({...jE(e),options:[e,t]}),FE=(e,t)=>({...AE(e),options:[e,t]});var zE="Arrow",av=vforwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return ljsx(eesvg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:easChild?n:ljsx("polygon",{points:"0,0 30,0 15,10"})})});avdisplayName=zE;var function lv(e){const[t,n]=vuseState(void 0);return at(()=>{if(e){n({width:eoffsetWidth,height:eoffsetHeight});const r=new ResizeObserver(o=>{if(!ArrayisArray(o)||!olength)return;const s="J";let i,a;if("borderBoxSize"in s){const u=sborderBoxSize,c=ArrayisArray(u)?"J":u;i=cinlineSize,a=cblockSize}else i=eoffsetWidth,a=eoffsetHeight;n({width:i,height:a})});return robserve(e,{box:"border-box"}),()=>runobserve(e)}else n(void 0)},[e]),t}var uv="Popper",[cv,dv]=Dt(uv),[v2,fv]=cv(uv),pv="PopperAnchor",hv=vforwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=fv(pv,n),i=vuseRef(null),a=_e(t,i);return vuseEffect(()=>{sonAnchorChange((r==null?void 0:rcurrent)||icurrent)}),r?null:ljsx(eediv,{...o,ref:a})});hvdisplayName=pv;var ud="PopperContent",[UE,BE]=cv(ud),mv=vforwardRef((e,t)=>{var ne,Rr,vn,nr,yn,Ar;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:b,...x}=e,w=fv(ud,n),[m,g]=vuseState(null),y=_e(t,xn=>g(xn)),[S,E]=vuseState(null),C=lv(S),j=(C==null?void 0:Cwidth)??0,k=(C==null?void 0:Cheight)??0,O=r+(s!=="center"?"-"+s:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=ArrayisArray(c)?c:[c],M=$.length>0,G={padding:_,boundary:$.filter(HE),altBoundary:M},{refs:I,floatingStyles:K,placement:F,isPositioned:H,middlewareData:T}=RE({strategy:"fixed",placement:O,whileElementsMounted:(...xn)=>wE(...xn,{animationFrame:p==="always"}),elements:{reference:wanchor},middleware:[_E({mainAxis:o+k,alignmentAxis:i}),u&&OE({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?IE():void 0,...G}),u&&LE({...G}),ME({...G,apply:({elements:xn,rects:Gs,availableWidth:Xa,availableHeight:Ks})=>{const{width:Za,height:Oo}=Gsreference,_r=xnfloatingstyle;_rsetProperty("--radix-popper-available-width",`${Xa}px`),_rsetProperty("--radix-popper-available-height",`${Ks}px`),_rsetProperty("--radix-popper-anchor-width",`${Za}px`),_rsetProperty("--radix-popper-anchor-height",`${Oo}px`)}}),S&&FE({element:S,padding:a}),WE({arrowWidth:j,arrowHeight:k}),h&&DE({strategy:"referenceHidden",...G})]}),[P,L]=yv(F),W=Yt(b);at(()=>{H&&(W==null||W())},[H,W]);const z=(ne=Tarrow)==null?void 0:nex,Y=(Rr=Tarrow)==null?void 0:Rry,X=((vn=Tarrow)==null?void 0:vncenterOffset)!==0,[we,Oe]=vuseState();return at(()=>{m&&Oe(windowgetComputedStyle(m).zIndex)},[m]),ljsx("div",{ref:IsetFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:H?Ktransform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,"--radix-popper-transform-origin":[(nr=TtransformOrigin)==null?void 0:nrx,(yn=TtransformOrigin)==null?void 0:yny].join(" "),...((Ar=Thide)==null?void 0:ArreferenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:edir,children:ljsx(UE,{scope:n,placedSide:P,onArrowChange:E,arrowX:z,arrowY:Y,shouldHideArrow:X,children:ljsx(eediv,{"data-side":P,"data-align":L,...x,ref:y,style:{...xstyle,animation:H?void 0:"none"}})})})});mvdisplayName=ud;var gv="PopperArrow",VE={top:"bottom",right:"left",bottom:"top",left:"right"},vv=vforwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=BE(gv,r),i=VE[splacedSide];return ljsx("span",{ref:sonArrowChange,style:{position:"absolute",left:sarrowX,top:sarrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[splacedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[splacedSide],visibility:sshouldHideArrow?"hidden":void 0},children:ljsx($E,{...o,ref:n,style:{...ostyle,display:"block"}})})});vvdisplayName=gv;function HE(e){return e!==null}var WE=e=>({name:"transformOrigin",options:e,fn(t){var w,m,g;const{placement:n,rects:r,middlewareData:o}=t,i=((w=oarrow)==null?void 0:wcenterOffset)!==0,a=i?0:earrowWidth,u=i?0:earrowHeight,[c,d]=yv(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((m=oarrow)==null?void 0:mx)??0)+a/2,p=(((g=oarrow)==null?void 0:gy)??0)+u/2;let b="",x="";return c==="bottom"?(b=i?f:`${h}px`,x=`${-u}px`):c==="top"?(b=i?f:`${h}px`,x=`${rfloatingheight+u}px`):c==="right"?(b=`${-u}px`,x=i?f:`${p}px`):c==="left"&&(b=`${rfloatingwidth+u}px`,x=i?f:`${p}px`),{data:{x:b,y:x}}}});function yv(e){const[t,n="center"]=esplit("-");return[t,n]}var QE=hv,GE=mv,KE=vv,[Fa,y2]=Dt("Tooltip",[dv]),cd=dv(),xv="TooltipProvider",YE=700,mp="tooltipopen",[qE,wv]=Fa(xv),bv=e=>{const{__scopeTooltip:t,delayDuration:n=YE,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=vuseRef(!0),a=vuseRef(!1),u=vuseRef(0);return vuseEffect(()=>{const c=ucurrent;return()=>windowclearTimeout(c)},[]),ljsx(qE,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:vuseCallback(()=>{windowclearTimeout(ucurrent),icurrent=!1},[]),onClose:vuseCallback(()=>{windowclearTimeout(ucurrent),ucurrent=windowsetTimeout(()=>icurrent=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:vuseCallback(c=>{acurrent=c},[]),disableHoverableContent:o,children:s})};bvdisplayName=xv;var Sv="Tooltip",[x2,za]=Fa(Sv),$u="TooltipTrigger",XE=vforwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=za($u,n),s=wv($u,n),i=cd(n),a=vuseRef(null),u=_e(t,a,oonTriggerChange),c=vuseRef(!1),d=vuseRef(!1),f=vuseCallback(()=>ccurrent=!1,[]);return vuseEffect(()=>()=>documentremoveEventListener("pointerup",f),[f]),ljsx(QE,{asChild:!0,...i,children:ljsx(eebutton,{"aria-describedby":oopen?ocontentId:void 0,"data-state":ostateAttribute,...r,ref:u,onPointerMove:Z(eonPointerMove,h=>{hpointerType!=="touch"&&!dcurrent&&!sisPointerInTransitRefcurrent&&(oonTriggerEnter(),dcurrent=!0)}),onPointerLeave:Z(eonPointerLeave,()=>{oonTriggerLeave(),dcurrent=!1}),onPointerDown:Z(eonPointerDown,()=>{oopen&&oonClose(),ccurrent=!0,documentaddEventListener("pointerup",f,{once:!0})}),onFocus:Z(eonFocus,()=>{ccurrent||oonOpen()}),onBlur:Z(eonBlur,oonClose),onClick:Z(eonClick,oonClose)})})});XEdisplayName=$u;var ZE="TooltipPortal",[w2,JE]=Fa(ZE,{forceMount:void 0}),So="TooltipContent",Ev=vforwardRef((e,t)=>{const n=JE(So,e__scopeTooltip),{forceMount:r=nforceMount,side:o="top",...s}=e,i=za(So,e__scopeTooltip);return ljsx(ko,{present:r||iopen,children:idisableHoverableContent?ljsx(Cv,{side:o,...s,ref:t}):ljsx(eC,{side:o,...s,ref:t})})}),eC=vforwardRef((e,t)=>{const n=za(So,e__scopeTooltip),r=wv(So,e__scopeTooltip),o=vuseRef(null),s=_e(t,o),[i,a]=vuseState(null),{trigger:u,onClose:c}=n,d=ocurrent,{onPointerInTransitChange:f}=r,h=vuseCallback(()=>{a(null),f(!1)},[f]),p=vuseCallback((b,x)=>{const w=bcurrentTarget,m={x:bclientX,y:bclientY},g=sC(m,wgetBoundingClientRect()),y=iC(m,g),S=aC(xgetBoundingClientRect()),E=uC([...y,...S]);a(E),f(!0)},[f]);return vuseEffect(()=>()=>h(),[h]),vuseEffect(()=>{if(u&&d){const b=w=>p(w,d),x=w=>p(w,u);return uaddEventListener("pointerleave",b),daddEventListener("pointerleave",x),()=>{uremoveEventListener("pointerleave",b),dremoveEventListener("pointerleave",x)}}},[u,d,p,h]),vuseEffect(()=>{if(i){const b=x=>{const w=xtarget,m={x:xclientX,y:xclientY},g=(u==null?void 0:ucontains(w))||(d==null?void 0:dcontains(w)),y=!lC(m,i);g?h():y&&(h(),c())};return documentaddEventListener("pointermove",b),()=>documentremoveEventListener("pointermove",b)}},[u,d,i,c,h]),ljsx(Cv,{...e,ref:s})}),[tC,nC]=Fa(Sv,{isInside:!1}),rC=l1("TooltipContent"),Cv=vforwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,u=za(So,n),c=cd(n),{onClose:d}=u;return vuseEffect(()=>(documentaddEventListener(mp,d),()=>documentremoveEventListener(mp,d)),[d]),vuseEffect(()=>{if(utrigger){const f=h=>{const p=htarget;p!=null&&pcontains(utrigger)&&d()};return windowaddEventListener("scroll",f,{capture:!0}),()=>windowremoveEventListener("scroll",f,{capture:!0})}},[utrigger,d]),ljsx(Xc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:f=>fpreventDefault(),onDismiss:d,children:ljsxs(GE,{"data-state":ustateAttribute,...c,...a,ref:t,style:{...astyle,"--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:[ljsx(rC,{children:r}),ljsx(tC,{scope:n,isInside:!0,children:ljsx(A1,{id:ucontentId,role:"tooltip",children:o||r})})]})})});EvdisplayName=So;var jv="TooltipArrow",oC=vforwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=cd(n);return nC(jv,n).isInside?null:ljsx(KE,{...o,...r,ref:t})});oCdisplayName=jv;function sC(e,t){const n=Mathabs(ttop-ey),r=Mathabs(tbottom-ey),o=Mathabs(tright-ex),s=Mathabs(tleft-ex);switch(Mathmin(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function iC(e,t,n=5){const r=[];switch(t){case"top":rpush({x:ex-n,y:ey+n},{x:ex+n,y:ey+n});break;case"bottom":rpush({x:ex-n,y:ey-n},{x:ex+n,y:ey-n});break;case"left":rpush({x:ex+n,y:ey-n},{x:ex+n,y:ey+n});break;case"right":rpush({x:ex-n,y:ey-n},{x:ex-n,y:ey+n});break}return r}function aC(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 lC(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=tlength-1;s<tlength;i=s++){const a=t[s],u=t[i],c=ax,d=ay,f=ux,h=uy;d>r!=h>r&&n<(f-c)*(r-d)/(h-d)+c&&(o=!o)}return o}function uC(e){const t=eslice();return tsort((n,r)=>nx<rx?-1:nx>rx?1:ny<ry?-1:ny>ry?1:0),cC(t)}function cC(e){if(elength<=1)return eslice();const t=[];for(let r=0;r<elength;r++){const o=e[r];for(;tlength>=2;){const s=t[tlength-1],i=t[tlength-2];if((sx-ix)*(oy-iy)>=(sy-iy)*(ox-ix))tpop();else break}tpush(o)}tpop();const n=[];for(let r=elength-1;r>=0;r--){const o=e[r];for(;nlength>=2;){const s=n[nlength-1],i=n[nlength-2];if((sx-ix)*(oy-iy)>=(sy-iy)*(ox-ix))npop();else break}npush(o)}return npop(),tlength===1&&nlength===1&&"J".x==="J".x&&"J".y==="J".y?t:tconcat(n)}var dC=bv,Nv=Ev;const fC=dC,pC=vforwardRef(({className:e,sideOffset:t=4,...n},r)=>ljsx(Nv,{ref:r,sideOffset:t,className:ie("z-50 overflow-hidden rounded-md border bg-popover px-3 py-15 text-sm text-popover-foreground shadow-md 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}));pCdisplayName=NvdisplayName;var $a=class{constructor(){thislisteners=new Set,thissubscribe=thissubscribebind(this)}subscribe(e){return thislistenersadd(e),thisonSubscribe(),()=>{thislistenersdelete(e),thisonUnsubscribe()}}hasListeners(){return thislistenerssize>0}onSubscribe(){}onUnsubscribe(){}},Ua=typeof window>"u"||"Deno"in globalThis;function jt(){}function hC(e,t){return typeof e=="function"?e(t):e}function mC(e){return typeof e=="number"&&e>=0&&e!==1/0}function gC(e,t){return Mathmax(e+(t||0)-Datenow(),0)}function Uu(e,t){return typeof e=="function"?e(t):e}function vC(e,t){return typeof e=="function"?e(t):e}function gp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(tqueryHash!==dd(i,toptions))return!1}else if(!Ps(tqueryKey,i))return!1}if(n!=="all"){const u=tisActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof a=="boolean"&&tisStale()!==a||o&&o!==tstatefetchStatus||s&&!s(t))}function vp(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!toptionsmutationKey)return!1;if(n){if(ks(toptionsmutationKey)!==ks(s))return!1}else if(!Ps(toptionsmutationKey,s))return!1}return!(r&&tstatestatus!==r||o&&!o(t))}function dd(e,t){return((t==null?void 0:tqueryKeyHashFn)||ks)(e)}function ks(e){return JSONstringify(e,(t,n)=>Bu(n)?Objectkeys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ps(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Objectkeys(t).every(n=>Ps(e[n],t[n])):!1}function Tv(e,t){if(e===t)return e;const n=yp(e)&&yp(t);if(n||Bu(e)&&Bu(t)){const r=n?e:Objectkeys(e),o=rlength,s=n?t:Objectkeys(t),i=slength,a=n?[]:{},u=new Set(r);let c=0;for(let d=0;d<i;d++){const f=n?d:s[d];(!n&&uhas(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,c++):(a[f]=Tv(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&c++)}return o===i&&c===o?e:a}return t}function yp(e){return ArrayisArray(e)&&elength===Objectkeys(e).length}function Bu(e){if(!xp(e))return!1;const t=econstructor;if(t===void 0)return!0;const n=tprototype;return!(!xp(n)||!nhasOwnProperty("isPrototypeOf")||ObjectgetPrototypeOf(e)!==Objectprototype)}function xp(e){return ObjectprototypetoStringcall(e)==="[object Object]"}function yC(e){return new Promise(t=>{setTimeout(t,e)})}function xC(e,t,n){return typeof nstructuralSharing=="function"?nstructuralSharing(e,t):nstructuralSharing!==!1?Tv(e,t):t}function wC(e,t,n=0){const r=[...e,t];return n&&rlength>n?rslice(1):r}function bC(e,t,n=0){const r=[t,...e];return n&&rlength>n?rslice(0,-1):r}var fd=Symbol();function kv(e,t){return!equeryFn&&(t!=null&&tinitialPromise)?()=>tinitialPromise:!equeryFn||equeryFn===fd?()=>Promisereject(new Error(`Missing queryFn: '${equeryHash}'`)):equeryFn}var cr,An,so,Dp,SC=(Dp=class extends $a{constructor(){super();te(this,cr);te(this,An);te(this,so);B(this,so,t=>{if(!Ua&&windowaddEventListener){const n=()=>t();return windowaddEventListener("visibilitychange",n,!1),()=>{windowremoveEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,An)||thissetEventListener(N(this,so))}onUnsubscribe(){var t;thishasListeners()||((t=N(this,An))==null||tcall(this),B(this,An,void 0))}setEventListener(t){var n;B(this,so,t),(n=N(this,An))==null||ncall(this),B(this,An,t(r=>{typeof r=="boolean"?thissetFocused(r):thisonFocus()}))}setFocused(t){N(this,cr)!==t&&(B(this,cr,t),thisonFocus())}onFocus(){const t=thisisFocused();thislistenersforEach(n=>{n(t)})}isFocused(){var t;return typeof N(this,cr)=="boolean"?N(this,cr):((t=globalThisdocument)==null?void 0:tvisibilityState)!=="hidden"}},cr=new WeakMap,An=new WeakMap,so=new WeakMap,Dp),Pv=new SC,io,_n,ao,Fp,EC=(Fp=class extends $a{constructor(){super();te(this,io,!0);te(this,_n);te(this,ao);B(this,ao,t=>{if(!Ua&&windowaddEventListener){const n=()=>t(!0),r=()=>t(!1);return windowaddEventListener("online",n,!1),windowaddEventListener("offline",r,!1),()=>{windowremoveEventListener("online",n),windowremoveEventListener("offline",r)}}})}onSubscribe(){N(this,_n)||thissetEventListener(N(this,ao))}onUnsubscribe(){var t;thishasListeners()||((t=N(this,_n))==null||tcall(this),B(this,_n,void 0))}setEventListener(t){var n;B(this,ao,t),(n=N(this,_n))==null||ncall(this),B(this,_n,t(thissetOnlinebind(this)))}setOnline(t){N(this,io)!==t&&(B(this,io,t),thislistenersforEach(r=>{r(t)}))}isOnline(){return N(this,io)}},io=new WeakMap,_n=new WeakMap,ao=new WeakMap,Fp),ca=new EC;function CC(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});nstatus="pending",ncatch(()=>{});function r(o){Objectassign(n,o),delete nresolve,delete nreject}return nresolve=o=>{r({status:"fulfilled",value:o}),e(o)},nreject=o=>{r({status:"rejected",reason:o}),t(o)},n}function jC(e){return Mathmin(1e3*2**e,3e4)}function Rv(e){return(e??"online")==="online"?caisOnline():!0}var Av=class extends Error{constructor(e){super("CancelledError"),thisrevert=e==null?void 0:erevert,thissilent=e==null?void 0:esilent}};function Il(e){return e instanceof Av}function _v(e){let t=!1,n=0,r=!1,o;const s=CC(),i=x=>{var w;r||(h(new Av(x)),(w=eabort)==null||wcall(e))},a=()=>{t=!0},u=()=>{t=!1},c=()=>PvisFocused()&&(enetworkMode==="always"||caisOnline())&&ecanRun(),d=()=>Rv(enetworkMode)&&ecanRun(),f=x=>{var w;r||(r=!0,(w=eonSuccess)==null||wcall(e,x),o==null||o(),sresolve(x))},h=x=>{var w;r||(r=!0,(w=eonError)==null||wcall(e,x),o==null||o(),sreject(x))},p=()=>new Promise(x=>{var w;o=m=>{(r||c())&&x(m)},(w=eonPause)==null||wcall(e)}).then(()=>{var x;o=void 0,r||(x=eonContinue)==null||xcall(e)}),b=()=>{if(r)return;let x;const w=n===0?einitialPromise:void 0;try{x=w??efn()}catch(m){x=Promisereject(m)}Promiseresolve(x).then(f).catch(m=>{var C;if(r)return;const g=eretry??(Ua?0:3),y=eretryDelay??jC,S=typeof y=="function"?y(n,m):y,E=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,m);if(t||!E){h(m);return}n++,(C=eonFail)==null||Ccall(e,n,m),yC(S).then(()=>c()?void 0:p()).then(()=>{t?h(m):b()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:u,canStart:d,start:()=>(d()?b():p().then(b),s)}}var NC=e=>setTimeout(e,0);function TC(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=NC;const s=a=>{t?epush(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],alength&&o(()=>{r(()=>{aforEach(u=>{n(u)})})})};return{batch:a=>{let u;t++;try{u=a()}finally{t--,t||i()}return u},batchCalls:a=>(...u)=>{s(()=>{a(...u)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ve=TC(),dr,zp,Ov=(zp=class{constructor(){te(this,dr)}destroy(){thisclearGcTimeout()}scheduleGc(){thisclearGcTimeout(),mC(thisgcTime)&&B(this,dr,setTimeout(()=>{thisoptionalRemove()},thisgcTime))}updateGcTime(e){thisgcTime=Mathmax(thisgcTime||0,e??(Ua?1/0:5*60*1e3))}clearGcTimeout(){N(this,dr)&&(clearTimeout(N(this,dr)),B(this,dr,void 0))}},dr=new WeakMap,zp),lo,fr,dt,pr,De,Os,hr,Nt,nn,$p,kC=($p=class extends Ov{constructor(t){super();te(this,Nt);te(this,lo);te(this,fr);te(this,dt);te(this,pr);te(this,De);te(this,Os);te(this,hr);B(this,hr,!1),B(this,Os,tdefaultOptions),thissetOptions(toptions),thisobservers=[],B(this,pr,tclient),B(this,dt,N(this,pr).getQueryCache()),thisqueryKey=tqueryKey,thisqueryHash=tqueryHash,B(this,lo,RC(thisoptions)),thisstate=tstate??N(this,lo),thisscheduleGc()}get meta(){return thisoptionsmeta}get promise(){var t;return(t=N(this,De))==null?void 0:tpromise}setOptions(t){thisoptions={...N(this,Os),...t},thisupdateGcTime(thisoptionsgcTime)}optionalRemove(){!thisobserverslength&&thisstatefetchStatus==="idle"&&N(this,dt).remove(this)}setData(t,n){const r=xC(thisstatedata,t,thisoptions);return Ie(this,Nt,nn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:nupdatedAt,manual:n==null?void 0:nmanual}),r}setState(t,n){Ie(this,Nt,nn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=N(this,De))==null?void 0:rpromise;return(o=N(this,De))==null||ocancel(t),n?nthen(jt).catch(jt):Promiseresolve()}destroy(){superdestroy(),thiscancel({silent:!0})}reset(){thisdestroy(),thissetState(N(this,lo))}isActive(){return thisobserverssome(t=>vC(toptionsenabled,this)!==!1)}isDisabled(){return thisgetObserversCount()>0?!thisisActive():thisoptionsqueryFn===fd||thisstatedataUpdateCount+thisstateerrorUpdateCount===0}isStatic(){return thisgetObserversCount()>0?thisobserverssome(t=>Uu(toptionsstaleTime,this)==="static"):!1}isStale(){return thisgetObserversCount()>0?thisobserverssome(t=>tgetCurrentResult().isStale):thisstatedata===void 0||thisstateisInvalidated}isStaleByTime(t=0){return thisstatedata===void 0?!0:t==="static"?!1:thisstateisInvalidated?!0:!gC(thisstatedataUpdatedAt,t)}onFocus(){var n;const t=thisobserversfind(r=>rshouldFetchOnWindowFocus());t==null||trefetch({cancelRefetch:!1}),(n=N(this,De))==null||ncontinue()}onOnline(){var n;const t=thisobserversfind(r=>rshouldFetchOnReconnect());t==null||trefetch({cancelRefetch:!1}),(n=N(this,De))==null||ncontinue()}addObserver(t){thisobserversincludes(t)||(thisobserverspush(t),thisclearGcTimeout(),N(this,dt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){thisobserversincludes(t)&&(thisobservers=thisobserversfilter(n=>n!==t),thisobserverslength||(N(this,De)&&(N(this,hr)?N(this,De).cancel({revert:!0}):N(this,De).cancelRetry()),thisscheduleGc()),N(this,dt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return thisobserverslength}invalidate(){thisstateisInvalidated||Ie(this,Nt,nn).call(this,{type:"invalidate"})}fetch(t,n){var c,d,f;if(thisstatefetchStatus!=="idle"){if(thisstatedata!==void 0&&(n!=null&&ncancelRefetch))thiscancel({silent:!0});else if(N(this,De))return N(this,De).continueRetry(),N(this,De).promise}if(t&&thissetOptions(t),!thisoptionsqueryFn){const h=thisobserversfind(p=>poptionsqueryFn);h&&thissetOptions(hoptions)}const r=new AbortController,o=h=>{ObjectdefineProperty(h,"signal",{enumerable:!0,get:()=>(B(this,hr,!0),rsignal)})},s=()=>{const h=kv(thisoptions,n),b=(()=>{const x={client:N(this,pr),queryKey:thisqueryKey,meta:thismeta};return o(x),x})();return B(this,hr,!1),thisoptionspersister?thisoptionspersister(h,b,this):h(b)},a=(()=>{const h={fetchOptions:n,options:thisoptions,queryKey:thisqueryKey,client:N(this,pr),state:thisstate,fetchFn:s};return o(h),h})();(c=thisoptionsbehavior)==null||conFetch(a,this),B(this,fr,thisstate),(thisstatefetchStatus==="idle"||thisstatefetchMeta!==((d=afetchOptions)==null?void 0:dmeta))&&Ie(this,Nt,nn).call(this,{type:"fetch",meta:(f=afetchOptions)==null?void 0:fmeta});const u=h=>{var p,b,x,w;Il(h)&&hsilent||Ie(this,Nt,nn).call(this,{type:"error",error:h}),Il(h)||((b=(p=N(this,dt).config).onError)==null||bcall(p,h,this),(w=(x=N(this,dt).config).onSettled)==null||wcall(x,thisstatedata,h,this)),thisscheduleGc()};return B(this,De,_v({initialPromise:n==null?void 0:ninitialPromise,fn:afetchFn,abort:rabortbind(r),onSuccess:h=>{var p,b,x,w;if(h===void 0){u(new Error(`${thisqueryHash} data is undefined`));return}try{thissetData(h)}catch(m){u(m);return}(b=(p=N(this,dt).config).onSuccess)==null||bcall(p,h,this),(w=(x=N(this,dt).config).onSettled)==null||wcall(x,h,thisstateerror,this),thisscheduleGc()},onError:u,onFail:(h,p)=>{Ie(this,Nt,nn).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{Ie(this,Nt,nn).call(this,{type:"pause"})},onContinue:()=>{Ie(this,Nt,nn).call(this,{type:"continue"})},retry:aoptionsretry,retryDelay:aoptionsretryDelay,networkMode:aoptionsnetworkMode,canRun:()=>!0})),N(this,De).start()}},lo=new WeakMap,fr=new WeakMap,dt=new WeakMap,pr=new WeakMap,De=new WeakMap,Os=new WeakMap,hr=new WeakMap,Nt=new WeakSet,nn=function(t){const n=r=>{switch(ttype){case"failed":return{...r,fetchFailureCount:tfailureCount,fetchFailureReason:terror};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...PC(rdata,thisoptions),fetchMeta:tmeta??null};case"success":return B(this,fr,void 0),{...r,data:tdata,dataUpdateCount:rdataUpdateCount+1,dataUpdatedAt:tdataUpdatedAt??Datenow(),error:null,isInvalidated:!1,status:"success",...!tmanual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=terror;return Il(o)&&orevert&&N(this,fr)?{...N(this,fr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:rerrorUpdateCount+1,errorUpdatedAt:Datenow(),fetchFailureCount:rfetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...tstate}}};thisstate=n(thisstate),Vebatch(()=>{thisobserversforEach(r=>{ronQueryUpdate()}),N(this,dt).notify({query:this,type:"updated",action:t})})},$p);function PC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Rv(tnetworkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function RC(e){const t=typeof einitialData=="function"?einitialData():einitialData,n=t!==void 0,r=n?typeof einitialDataUpdatedAt=="function"?einitialDataUpdatedAt():einitialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Datenow():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ut,Up,AC=(Up=class extends $a{constructor(t={}){super();te(this,Ut);thisconfig=t,B(this,Ut,new Map)}build(t,n,r){const o=nqueryKey,s=nqueryHash??dd(o,n);let i=thisget(s);return i||(i=new kC({client:t,queryKey:o,queryHash:s,options:tdefaultQueryOptions(n),state:r,defaultOptions:tgetQueryDefaults(o)}),thisadd(i)),i}add(t){N(this,Ut).has(tqueryHash)||(N(this,Ut).set(tqueryHash,t),thisnotify({type:"added",query:t}))}remove(t){const n=N(this,Ut).get(tqueryHash);n&&(tdestroy(),n===t&&N(this,Ut).delete(tqueryHash),thisnotify({type:"removed",query:t}))}clear(){Vebatch(()=>{thisgetAll().forEach(t=>{thisremove(t)})})}get(t){return N(this,Ut).get(t)}getAll(){return[...N(this,Ut).values()]}find(t){const n={exact:!0,...t};return thisgetAll().find(r=>gp(n,r))}findAll(t={}){const n=thisgetAll();return Objectkeys(t).length>0?nfilter(r=>gp(t,r)):n}notify(t){Vebatch(()=>{thislistenersforEach(n=>{n(t)})})}onFocus(){Vebatch(()=>{thisgetAll().forEach(t=>{tonFocus()})})}onOnline(){Vebatch(()=>{thisgetAll().forEach(t=>{tonOnline()})})}},Ut=new WeakMap,Up),Bt,Ue,mr,Vt,Nn,Bp,_C=(Bp=class extends Ov{constructor(t){super();te(this,Vt);te(this,Bt);te(this,Ue);te(this,mr);thismutationId=tmutationId,B(this,Ue,tmutationCache),B(this,Bt,[]),thisstate=tstate||OC(),thissetOptions(toptions),thisscheduleGc()}setOptions(t){thisoptions=t,thisupdateGcTime(thisoptionsgcTime)}get meta(){return thisoptionsmeta}addObserver(t){N(this,Bt).includes(t)||(N(this,Bt).push(t),thisclearGcTimeout(),N(this,Ue).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){B(this,Bt,N(this,Bt).filter(n=>n!==t)),thisscheduleGc(),N(this,Ue).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,Bt).length||(thisstatestatus==="pending"?thisscheduleGc():N(this,Ue).remove(this))}continue(){var t;return((t=N(this,mr))==null?void 0:tcontinue())??thisexecute(thisstatevariables)}async execute(t){var s,i,a,u,c,d,f,h,p,b,x,w,m,g,y,S,E,C,j,k;const n=()=>{Ie(this,Vt,Nn).call(this,{type:"continue"})};B(this,mr,_v({fn:()=>thisoptionsmutationFn?thisoptionsmutationFn(t):Promisereject(new Error("No mutationFn found")),onFail:(O,_)=>{Ie(this,Vt,Nn).call(this,{type:"failed",failureCount:O,error:_})},onPause:()=>{Ie(this,Vt,Nn).call(this,{type:"pause"})},onContinue:n,retry:thisoptionsretry??0,retryDelay:thisoptionsretryDelay,networkMode:thisoptionsnetworkMode,canRun:()=>N(this,Ue).canRun(this)}));const r=thisstatestatus==="pending",o=!N(this,mr).canStart();try{if(r)n();else{Ie(this,Vt,Nn).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=N(this,Ue).config).onMutate)==null?void 0:icall(s,t,this));const _=await((u=(a=thisoptions).onMutate)==null?void 0:ucall(a,t));_!==thisstatecontext&&Ie(this,Vt,Nn).call(this,{type:"pending",context:_,variables:t,isPaused:o})}const O=await N(this,mr).start();return await((d=(c=N(this,Ue).config).onSuccess)==null?void 0:dcall(c,O,t,thisstatecontext,this)),await((h=(f=thisoptions).onSuccess)==null?void 0:hcall(f,O,t,thisstatecontext)),await((b=(p=N(this,Ue).config).onSettled)==null?void 0:bcall(p,O,null,thisstatevariables,thisstatecontext,this)),await((w=(x=thisoptions).onSettled)==null?void 0:wcall(x,O,null,t,thisstatecontext)),Ie(this,Vt,Nn).call(this,{type:"success",data:O}),O}catch(O){try{throw await((g=(m=N(this,Ue).config).onError)==null?void 0:gcall(m,O,t,thisstatecontext,this)),await((S=(y=thisoptions).onError)==null?void 0:Scall(y,O,t,thisstatecontext)),await((C=(E=N(this,Ue).config).onSettled)==null?void 0:Ccall(E,void 0,O,thisstatevariables,thisstatecontext,this)),await((k=(j=thisoptions).onSettled)==null?void 0:kcall(j,void 0,O,t,thisstatecontext)),O}finally{Ie(this,Vt,Nn).call(this,{type:"error",error:O})}}finally{N(this,Ue).runNext(this)}}},Bt=new WeakMap,Ue=new WeakMap,mr=new WeakMap,Vt=new WeakSet,Nn=function(t){const n=r=>{switch(ttype){case"failed":return{...r,failureCount:tfailureCount,failureReason:terror};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:tcontext,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:tisPaused,status:"pending",variables:tvariables,submittedAt:Datenow()};case"success":return{...r,data:tdata,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:terror,failureCount:rfailureCount+1,failureReason:terror,isPaused:!1,status:"error"}}};thisstate=n(thisstate),Vebatch(()=>{N(this,Bt).forEach(r=>{ronMutationUpdate(t)}),N(this,Ue).notify({mutation:this,type:"updated",action:t})})},Bp);function OC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var sn,Tt,Is,Vp,IC=(Vp=class extends $a{constructor(t={}){super();te(this,sn);te(this,Tt);te(this,Is);thisconfig=t,B(this,sn,new Set),B(this,Tt,new Map),B(this,Is,0)}build(t,n,r){const o=new _C({mutationCache:this,mutationId:++qs(this,Is)._,options:tdefaultMutationOptions(n),state:r});return thisadd(o),o}add(t){N(this,sn).add(t);const n=yi(t);if(typeof n=="string"){const r=N(this,Tt).get(n);r?rpush(t):N(this,Tt).set(n,[t])}thisnotify({type:"added",mutation:t})}remove(t){if(N(this,sn).delete(t)){const n=yi(t);if(typeof n=="string"){const r=N(this,Tt).get(n);if(r)if(rlength>1){const o=rindexOf(t);o!==-1&&rsplice(o,1)}else "J"===t&&N(this,Tt).delete(n)}}thisnotify({type:"removed",mutation:t})}canRun(t){const n=yi(t);if(typeof n=="string"){const r=N(this,Tt).get(n),o=r==null?void 0:rfind(s=>sstatestatus==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=yi(t);if(typeof n=="string"){const o=(r=N(this,Tt).get(n))==null?void 0:rfind(s=>s!==t&&sstateisPaused);return(o==null?void 0:ocontinue())??Promiseresolve()}else return Promiseresolve()}clear(){Vebatch(()=>{N(this,sn).forEach(t=>{thisnotify({type:"removed",mutation:t})}),N(this,sn).clear(),N(this,Tt).clear()})}getAll(){return Arrayfrom(N(this,sn))}find(t){const n={exact:!0,...t};return thisgetAll().find(r=>vp(n,r))}findAll(t={}){return thisgetAll().filter(n=>vp(t,n))}notify(t){Vebatch(()=>{thislistenersforEach(n=>{n(t)})})}resumePausedMutations(){const t=thisgetAll().filter(n=>nstateisPaused);return Vebatch(()=>Promiseall(tmap(n=>ncontinue().catch(jt))))}},sn=new WeakMap,Tt=new WeakMap,Is=new WeakMap,Vp);function yi(e){var t;return(t=eoptionsscope)==null?void 0:tid}function wp(e){return{onFetch:(t,n)=>{var d,f,h,p,b;const r=toptions,o=(h=(f=(d=tfetchOptions)==null?void 0:dmeta)==null?void 0:ffetchMore)==null?void 0:hdirection,s=((p=tstatedata)==null?void 0:ppages)||[],i=((b=tstatedata)==null?void 0:bpageParams)||[];let a={pages:[],pageParams:[]},u=0;const c=async()=>{let x=!1;const w=y=>{ObjectdefineProperty(y,"signal",{enumerable:!0,get:()=>(tsignalaborted?x=!0:tsignaladdEventListener("abort",()=>{x=!0}),tsignal)})},m=kv(toptions,tfetchOptions),g=async(y,S,E)=>{if(x)return Promisereject();if(S==null&&ypageslength)return Promiseresolve(y);const j=(()=>{const $={client:tclient,queryKey:tqueryKey,pageParam:S,direction:E?"backward":"forward",meta:toptionsmeta};return w($),$})(),k=await m(j),{maxPages:O}=toptions,_=E?bC:wC;return{pages:_(ypages,k,O),pageParams:_(ypageParams,S,O)}};if(o&&slength){const y=o==="backward",S=y?LC:bp,E={pages:s,pageParams:i},C=S(r,E);a=await g(E,C,y)}else{const y=e??slength;do{const S=u===0?"J"??rinitialPageParam:bp(r,a);if(u>0&&S==null)break;a=await g(a,S),u++}while(u<y)}return a};toptionspersister?tfetchFn=()=>{var x,w;return(w=(x=toptions).persister)==null?void 0:wcall(x,c,{client:tclient,queryKey:tqueryKey,meta:toptionsmeta,signal:tsignal},n)}:tfetchFn=c}}}function bp(e,{pages:t,pageParams:n}){const r=tlength-1;return tlength>0?egetNextPageParam(t[r],t,n[r],n):void 0}function LC(e,{pages:t,pageParams:n}){var r;return tlength>0?(r=egetPreviousPageParam)==null?void 0:rcall(e,"J",t,"J",n):void 0}var ve,On,In,uo,co,Ln,fo,po,Hp,MC=(Hp=class{constructor(e={}){te(this,ve);te(this,On);te(this,In);te(this,uo);te(this,co);te(this,Ln);te(this,fo);te(this,po);B(this,ve,equeryCache||new AC),B(this,On,emutationCache||new IC),B(this,In,edefaultOptions||{}),B(this,uo,new Map),B(this,co,new Map),B(this,Ln,0)}mount(){qs(this,Ln)._++,N(this,Ln)===1&&(B(this,fo,Pvsubscribe(async e=>{e&&(await thisresumePausedMutations(),N(this,ve).onFocus())})),B(this,po,casubscribe(async e=>{e&&(await thisresumePausedMutations(),N(this,ve).onOnline())})))}unmount(){var e,t;qs(this,Ln)._--,N(this,Ln)===0&&((e=N(this,fo))==null||ecall(this),B(this,fo,void 0),(t=N(this,po))==null||tcall(this),B(this,po,void 0))}isFetching(e){return N(this,ve).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,On).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=thisdefaultQueryOptions({queryKey:e});return(n=N(this,ve).get(tqueryHash))==null?void 0:nstatedata}ensureQueryData(e){const t=thisdefaultQueryOptions(e),n=N(this,ve).build(this,t),r=nstatedata;return r===void 0?thisfetchQuery(e):(erevalidateIfStale&&nisStaleByTime(Uu(tstaleTime,n))&&thisprefetchQuery(t),Promiseresolve(r))}getQueriesData(e){return N(this,ve).findAll(e).map(({queryKey:t,state:n})=>{const r=ndata;return[t,r]})}setQueryData(e,t,n){const r=thisdefaultQueryOptions({queryKey:e}),o=N(this,ve).get(rqueryHash),s=o==null?void 0:ostatedata,i=hC(t,s);if(i!==void 0)return N(this,ve).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Vebatch(()=>N(this,ve).findAll(e).map(({queryKey:r})=>[r,thissetQueryData(r,t,n)]))}getQueryState(e){var n;const t=thisdefaultQueryOptions({queryKey:e});return(n=N(this,ve).get(tqueryHash))==null?void 0:nstate}removeQueries(e){const t=N(this,ve);Vebatch(()=>{tfindAll(e).forEach(n=>{tremove(n)})})}resetQueries(e,t){const n=N(this,ve);return Vebatch(()=>(nfindAll(e).forEach(r=>{rreset()}),thisrefetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Vebatch(()=>N(this,ve).findAll(e).map(o=>ocancel(n)));return Promiseall(r).then(jt).catch(jt)}invalidateQueries(e,t={}){return Vebatch(()=>(N(this,ve).findAll(e).forEach(n=>{ninvalidate()}),(e==null?void 0:erefetchType)==="none"?Promiseresolve():thisrefetchQueries({...e,type:(e==null?void 0:erefetchType)??(e==null?void 0:etype)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:tcancelRefetch??!0},r=Vebatch(()=>N(this,ve).findAll(e).filter(o=>!oisDisabled()&&!oisStatic()).map(o=>{let s=ofetch(void 0,n);return nthrowOnError||(s=scatch(jt)),ostatefetchStatus==="paused"?Promiseresolve():s}));return Promiseall(r).then(jt)}fetchQuery(e){const t=thisdefaultQueryOptions(e);tretry===void 0&&(tretry=!1);const n=N(this,ve).build(this,t);return nisStaleByTime(Uu(tstaleTime,n))?nfetch(t):Promiseresolve(nstatedata)}prefetchQuery(e){return thisfetchQuery(e).then(jt).catch(jt)}fetchInfiniteQuery(e){return ebehavior=wp(epages),thisfetchQuery(e)}prefetchInfiniteQuery(e){return thisfetchInfiniteQuery(e).then(jt).catch(jt)}ensureInfiniteQueryData(e){return ebehavior=wp(epages),thisensureQueryData(e)}resumePausedMutations(){return caisOnline()?N(this,On).resumePausedMutations():Promiseresolve()}getQueryCache(){return N(this,ve)}getMutationCache(){return N(this,On)}getDefaultOptions(){return N(this,In)}setDefaultOptions(e){B(this,In,e)}setQueryDefaults(e,t){N(this,uo).set(ks(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,uo).values()],n={};return tforEach(r=>{Ps(e,rqueryKey)&&Objectassign(n,rdefaultOptions)}),n}setMutationDefaults(e,t){N(this,co).set(ks(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,co).values()],n={};return tforEach(r=>{Ps(e,rmutationKey)&&Objectassign(n,rdefaultOptions)}),n}defaultQueryOptions(e){if(e_defaulted)return e;const t={...N(this,In).queries,...thisgetQueryDefaults(equeryKey),...e,_defaulted:!0};return tqueryHash||(tqueryHash=dd(tqueryKey,t)),trefetchOnReconnect===void 0&&(trefetchOnReconnect=tnetworkMode!=="always"),tthrowOnError===void 0&&(tthrowOnError=!!tsuspense),!tnetworkMode&&tpersister&&(tnetworkMode="offlineFirst"),tqueryFn===fd&&(tenabled=!1),t}defaultMutationOptions(e){return e!=null&&e_defaulted?e:{...N(this,In).mutations,...(e==null?void 0:emutationKey)&&thisgetMutationDefaults(emutationKey),...e,_defaulted:!0}}clear(){N(this,ve).clear(),N(this,On).clear()}},ve=new WeakMap,On=new WeakMap,In=new WeakMap,uo=new WeakMap,co=new WeakMap,Ln=new WeakMap,fo=new WeakMap,po=new WeakMap,Hp),DC=vcreateContext(void 0),FC=({client:e,children:t})=>(vuseEffect(()=>(emount(),()=>{eunmount()}),[e]),ljsx(DCProvider,{value:e,children:t}));/**
 * @remix-run/router v1230
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSEmd file in the root directory of this source tree.
 *
 * @license MIT
 */function Rs(){return Rs=Objectassign?Objectassignbind():function(e){for(var t=1;t<argumentslength;t++){var n=arguments[t];for(var r in n)ObjectprototypehasOwnPropertycall(n,r)&&(e[r]=n[r])}return e},Rsapply(this,arguments)}var Fn;(function(e){ePop="POP",ePush="PUSH",eReplace="REPLACE"})(Fn||(Fn={}));const Sp="popstate";function zC(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:i,hash:a}=rlocation;return Vu("",{pathname:s,search:i,hash:a},ostate&&ostateusr||null,ostate&&ostatekey||"default")}function n(r,o){return typeof o=="string"?o:da(o)}return UC(t,n,null,e)}function Se(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Iv(e,t){if(!e){typeof console<"u"&&consolewarn(t);try{throw new Error(t)}catch{}}}function $C(){return Mathrandom().toString(36).substr(2,8)}function Ep(e,t){return{usr:estate,key:ekey,idx:t}}function Vu(e,t,n,r){return n===void 0&&(n=null),Rs({pathname:typeof e=="string"?e:epathname,search:"",hash:""},typeof t=="string"?_o(t):t,{state:n,key:t&&tkey||r||$C()})}function da(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=ncharAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=rcharAt(0)==="#"?r:"#"+r),t}function _o(e){let t={};if(e){let n=eindexOf("#");n>=0&&(thash=esubstr(n),e=esubstr(0,n));let r=eindexOf("?");r>=0&&(tsearch=esubstr(r),e=esubstr(0,r)),e&&(tpathname=e)}return t}function UC(e,t,n,r){r===void 0&&(r={});let{window:o=documentdefaultView,v5Compat:s=!1}=r,i=ohistory,a=FnPop,u=null,c=d();c==null&&(c=0,ireplaceState(Rs({},istate,{idx:c}),""));function d(){return(istate||{idx:null}).idx}function f(){a=FnPop;let w=d(),m=w==null?null:w-c;c=w,u&&u({action:a,location:xlocation,delta:m})}function h(w,m){a=FnPush;let g=Vu(xlocation,w,m);c=d()+1;let y=Ep(g,c),S=xcreateHref(g);try{ipushState(y,"",S)}catch(E){if(E instanceof DOMException&&Ename==="DataCloneError")throw E;olocationassign(S)}s&&u&&u({action:a,location:xlocation,delta:1})}function p(w,m){a=FnReplace;let g=Vu(xlocation,w,m);c=d();let y=Ep(g,c),S=xcreateHref(g);ireplaceState(y,"",S),s&&u&&u({action:a,location:xlocation,delta:0})}function b(w){let m=olocationorigin!=="null"?olocationorigin:olocationhref,g=typeof w=="string"?w:da(w);return g=greplace(/ $/,"%20"),Se(m,"No windowlocation.(origin|href) available to create URL for href: "+g),new URL(g,m)}let x={get action(){return a},get location(){return e(o,i)},listen(w){if(u)throw new Error("A history only accepts one active listener");return oaddEventListener(Sp,f),u=w,()=>{oremoveEventListener(Sp,f),u=null}},createHref(w){return t(o,w)},createURL:b,encodeLocation(w){let m=b(w);return{pathname:mpathname,search:msearch,hash:mhash}},push:h,replace:p,go(w){return igo(w)}};return x}var Cp;(function(e){edata="data",edeferred="deferred",eredirect="redirect",eerror="error"})(Cp||(Cp={}));function BC(e,t,n){return n===void 0&&(n="/"),VC(e,t,n,!1)}function VC(e,t,n,r){let o=typeof t=="string"?_o(t):t,s=pd(opathname||"/",n);if(s==null)return null;let i=Lv(e);HC(i);let a=null;for(let u=0;a==null&&u<ilength;++u){let c=tj(s);a=JC(i[u],c,r)}return a}function Lv(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,i,a)=>{let u={relativePath:a===void 0?spath||"":a,caseSensitive:scaseSensitive===!0,childrenIndex:i,route:s};urelativePathstartsWith("/")&&(Se(urelativePathstartsWith(r),'Absolute route path "'+urelativePath+'" nested under path '+('"'+r+'" is not validAn absolute child route path ')+"must start with the combined path of all its parent routes."),urelativePath=urelativePathslice(rlength));let c=Gn([r,urelativePath]),d=nconcat(u);schildren&&schildrenlength>0&&(Se(sindex!==!0,"Index routes must not have child routesPlease remove "+('all child routes from route path "'+c+')),Lv(schildren,t,d,c)),!(spath==null&&!sindex)&&tpush({path:c,score:XC(c,sindex),routesMeta:d})};return eforEach((s,i)=>{var a;if(spath===""||!((a=spath)!=null&&aincludes("?")))o(s,i);else for(let u of Mv(spath))o(s,i,u)}),t}function Mv(e){let t=esplit("/");if(tlength===0)return[];let[n,...r]=t,o=nendsWith("?"),s=nreplace(/\?$/,"");if(rlength===0)return o?[s,""]:[s];let i=Mv(rjoin("/")),a=[];return apush(...imap(u=>u===""?s:[s,u].join("/"))),o&&apush(...i),amap(u=>estartsWith("/")&&u===""?"/":u)}function HC(e){esort((t,n)=>tscore!==nscore?nscore-tscore:ZC(troutesMetamap(r=>rchildrenIndex),nroutesMetamap(r=>rchildrenIndex)))}const WC=/^:[\w-]+$/,QC=3,GC=2,KC=1,YC=10,qC=-2,jp=e=>e==="*";function XC(e,t){let n=esplit("/"),r=nlength;return nsome(jp)&&(r+=qC),t&&(r+=GC),nfilter(o=>!jp(o)).reduce((o,s)=>o+(WCtest(s)?QC:s===""?KC:YC),r)}function ZC(e,t){return elength===tlength&&eslice(0,-1).every((r,o)=>r===t[o])?e[elength-1]-t[tlength-1]:0}function JC(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a<rlength;++a){let u=r[a],c=a===rlength-1,d=s==="/"?t:tslice(slength)||"/",f=Np({path:urelativePath,caseSensitive:ucaseSensitive,end:c},d),h=uroute;if(!f&&c&&n&&!r[rlength-1].routeindex&&(f=Np({path:urelativePath,caseSensitive:ucaseSensitive,end:!1},d)),!f)return null;Objectassign(o,fparams),ipush({params:o,pathname:Gn([s,fpathname]),pathnameBase:sj(Gn([s,fpathnameBase])),route:h}),fpathnameBase!=="/"&&(s=Gn([s,fpathnameBase]))}return i}function Np(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ej(epath,ecaseSensitive,eend),o=tmatch(n);if(!o)return null;let s="J",i=sreplace(/(.)\/+$/,"$1"),a=oslice(1);return{params:rreduce((c,d,f)=>{let{paramName:h,isOptional:p}=d;if(h==="*"){let x=a[f]||"";i=sslice(0,slength-xlength).replace(/(.)\/+$/,"$1")}const b=a[f];return p&&!b?c[h]=void 0:c[h]=(b||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:i,pattern:e}}function ej(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Iv(e==="*"||!eendsWith("*")||eendsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+ereplace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the patternTo get rid of this warning, "+('please change the route path to "'+ereplace(/\*$/,"/*")+'));let r=[],o="^"+ereplace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,u)=>(rpush({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return eendsWith("*")?(rpush({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\,"/"),ij=e=>!e||e==="?"?"":estartsWith("?")?e:"?"+e,aj=e=>!e||e==="#"?"":estartsWith("#")?e:"#"+e;function lj(e){return e!=null&&typeof estatus=="number"&&typeof estatusText=="string"&&typeof einternal=="boolean"&&"data"in e}const zv=["post","put","patch","delete"];new Set(zv);const uj=["get",...zv];new Set(uj);/**
 * React Router v6301
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSEmd file in the root directory of this source tree.
 *
 * @license MIT
 */function As(){return As=Objectassign?Objectassignbind():function(e){for(var t=1;t<argumentslength;t++){var n=arguments[t];for(var r in n)ObjectprototypehasOwnPropertycall(n,r)&&(e[r]=n[r])}return e},Asapply(this,arguments)}const hd=vcreateContext(null),cj=vcreateContext(null),Pr=vcreateContext(null),Ba=vcreateContext(null),tr=vcreateContext({outlet:null,matches:[],isDataRoute:!1}),$v=vcreateContext(null);function dj(e,t){let{relative:n}=t===void 0?{}:t;Hs()||Se(!1);let{basename:r,navigator:o}=vuseContext(Pr),{hash:s,pathname:i,search:a}=Bv(e,{relative:n}),u=i;return r!=="/"&&(u=i==="/"?r:Gn([r,i])),ocreateHref({pathname:u,search:a,hash:s})}function Hs(){return vuseContext(Ba)!=null}function Ws(){return Hs()||Se(!1),vuseContext(Ba).location}function Uv(e){vuseContext(Pr).static||vuseLayoutEffect(e)}function fj(){let{isDataRoute:e}=vuseContext(tr);return e?Nj():pj()}function pj(){Hs()||Se(!1);let e=vuseContext(hd),{basename:t,future:n,navigator:r}=vuseContext(Pr),{matches:o}=vuseContext(tr),{pathname:s}=Ws(),i=JSONstringify(Dv(o,nv7_relativeSplatPath)),a=vuseRef(!1);return Uv(()=>{acurrent=!0}),vuseCallback(function(c,d){if(d===void 0&&(d={}),!acurrent)return;if(typeof c=="number"){rgo(c);return}let f=Fv(c,JSONparse(i),s,drelative==="path");e==null&&t!=="/"&&(fpathname=fpathname==="/"?t:Gn([t,fpathname])),(dreplace?rreplace:rpush)(f,dstate,d)},[t,r,i,s,e])}function hj(){let{matches:e}=vuseContext(tr),t=e[elength-1];return t?tparams:{}}function Bv(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=vuseContext(Pr),{matches:o}=vuseContext(tr),{pathname:s}=Ws(),i=JSONstringify(Dv(o,rv7_relativeSplatPath));return vuseMemo(()=>Fv(e,JSONparse(i),s,n==="path"),[e,i,s,n])}function mj(e,t){return gj(e,t)}function gj(e,t,n,r){Hs()||Se(!1);let{navigator:o}=vuseContext(Pr),{matches:s}=vuseContext(tr),i=s[slength-1],a=i?iparams:{};i&&ipathname;let u=i?ipathnameBase:"/";i&&iroute;let c=Ws(),d;if(t){var f;let w=typeof t=="string"?_o(t):t;u==="/"||(f=wpathname)!=null&&fstartsWith(u)||Se(!1),d=w}else d=c;let h=dpathname||"/",p=h;if(u!=="/"){let w=ureplace(/^\//,"").split("/");p="/"+hreplace(/^\//,"").split("/").slice(wlength).join("/")}let b=BC(e,{pathname:p}),x=bj(b&&bmap(w=>Objectassign({},w,{params:Objectassign({},a,wparams),pathname:Gn([u,oencodeLocation?oencodeLocation(wpathname).pathname:wpathname]),pathnameBase:wpathnameBase==="/"?u:Gn([u,oencodeLocation?oencodeLocation(wpathnameBase).pathname:wpathnameBase])})),s,n,r);return t&&x?vcreateElement(BaProvider,{value:{location:As({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:FnPop}},x):x}function vj(){let e=jj(),t=lj(e)?estatus+" "+estatusText:e instanceof Error?emessage:JSONstringify(e),n=e instanceof Error?estack:null,o={padding:"05rem",backgroundColor:"rgba(200,200,200, 05)"};return vcreateElement(vFragment,null,vcreateElement("h2",null,"Unexpected Application Error!"),vcreateElement("h3",{style:{fontStyle:"italic"}},t),n?vcreateElement("pre",{style:o},n):null,null)}const yj=vcreateElement(vj,null);class xj extends vComponent{constructor(t){super(t),thisstate={location:tlocation,revalidation:trevalidation,error:terror}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return nlocation!==tlocation||nrevalidation!=="idle"&&trevalidation==="idle"?{error:terror,location:tlocation,revalidation:trevalidation}:{error:terror!==void 0?terror:nerror,location:nlocation,revalidation:trevalidation||nrevalidation}}componentDidCatch(t,n){consoleerror("React Router caught the following error during render",t,n)}render(){return thisstateerror!==void 0?vcreateElement(trProvider,{value:thispropsrouteContext},vcreateElement($vProvider,{value:thisstateerror,children:thispropscomponent})):thispropschildren}}function wj(e){let{routeContext:t,match:n,children:r}=e,o=vuseContext(hd);return o&&ostatic&&ostaticContext&&(nrouteerrorElement||nrouteErrorBoundary)&&(ostaticContext_deepestRenderedBoundaryId=nrouteid),vcreateElement(trProvider,{value:t},r)}function bj(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(nerrors)e=nmatches;else if((s=r)!=null&&sv7_partialHydration&&tlength===0&&!ninitialized&&nmatcheslength>0)e=nmatches;else return null}let i=e,a=(o=n)==null?void 0:oerrors;if(a!=null){let d=ifindIndex(f=>frouteid&&(a==null?void 0:a[frouteid])!==void 0);d>=0||Se(!1),i=islice(0,Mathmin(ilength,d+1))}let u=!1,c=-1;if(n&&r&&rv7_partialHydration)for(let d=0;d<ilength;d++){let f=i[d];if((frouteHydrateFallback||froutehydrateFallbackElement)&&(c=d),frouteid){let{loaderData:h,errors:p}=n,b=frouteloader&&h[frouteid]===void 0&&(!p||p[frouteid]===void 0);if(froutelazy||b){u=!0,c>=0?i=islice(0,c+1):i=["J"];break}}}return ireduceRight((d,f,h)=>{let p,b=!1,x=null,w=null;n&&(p=a&&frouteid?a[frouteid]:void 0,x=frouteerrorElement||yj,u&&(c<0&&h===0?(b=!0,w=null):c===h&&(b=!0,w=froutehydrateFallbackElement||null)));let m=tconcat(islice(0,h+1)),g=()=>{let y;return p?y=x:b?y=w:frouteComponent?y=vcreateElement(frouteComponent,null):frouteelement?y=frouteelement:y=d,vcreateElement(wj,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:y})};return n&&(frouteErrorBoundary||frouteerrorElement||h===0)?vcreateElement(xj,{location:nlocation,revalidation:nrevalidation,component:x,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var Vv=function(e){return eUseBlocker="useBlocker",eUseRevalidator="useRevalidator",eUseNavigateStable="useNavigate",e}(Vv||{}),fa=function(e){return eUseBlocker="useBlocker",eUseLoaderData="useLoaderData",eUseActionData="useActionData",eUseRouteError="useRouteError",eUseNavigation="useNavigation",eUseRouteLoaderData="useRouteLoaderData",eUseMatches="useMatches",eUseRevalidator="useRevalidator",eUseNavigateStable="useNavigate",eUseRouteId="useRouteId",e}(fa||{});function Sj(e){let t=vuseContext(hd);return t||Se(!1),t}function Ej(e){let t=vuseContext(cj);return t||Se(!1),t}function Cj(e){let t=vuseContext(tr);return t||Se(!1),t}function Hv(e){let t=Cj(),n=tmatches[tmatcheslength-1];return nrouteid||Se(!1),nrouteid}function jj(){var e;let t=vuseContext($v),n=Ej(faUseRouteError),r=Hv(faUseRouteError);return t!==void 0?t:(e=nerrors)==null?void 0:e[r]}function Nj(){let{router:e}=Sj(VvUseNavigateStable),t=Hv(faUseNavigateStable),n=vuseRef(!1);return Uv(()=>{ncurrent=!0}),vuseCallback(function(o,s){s===void 0&&(s={}),ncurrent&&(typeof o=="number"?enavigate(o):enavigate(o,As({fromRouteId:t},s)))},[e,t])}function Tj(e,t){e==null||ev7_startTransition,e==null||ev7_relativeSplatPath}function Et(e){Se(!1)}function kj(e){let{basename:t="/",children:n=null,location:r,navigationType:o=FnPop,navigator:s,static:i=!1,future:a}=e;Hs()&&Se(!1);let u=treplace(/^\/*/,"/"),c=vuseMemo(()=>({basename:u,navigator:s,static:i,future:As({v7_relativeSplatPath:!1},a)}),[u,a,s,i]);typeof r=="string"&&(r=_o(r));let{pathname:d="/",search:f="",hash:h="",state:p=null,key:b="default"}=r,x=vuseMemo(()=>{let w=pd(d,u);return w==null?null:{location:{pathname:w,search:f,hash:h,state:p,key:b},navigationType:o}},[u,d,f,h,p,b,o]);return x==null?null:vcreateElement(PrProvider,{value:c},vcreateElement(BaProvider,{children:n,value:x}))}function Pj(e){let{children:t,location:n}=e;return mj(Hu(t),n)}new Promise(()=>{});function Hu(e,t){t===void 0&&(t=[]);let n=[];return vChildrenforEach(e,(r,o)=>{if(!visValidElement(r))return;let s=[...t,o];if(rtype===vFragment){npushapply(n,Hu(rpropschildren,s));return}rtype!==Et&&Se(!1),!rpropsindex||!rpropschildren||Se(!1);let i={id:rpropsid||sjoin("-"),caseSensitive:rpropscaseSensitive,element:rpropselement,Component:rpropsComponent,index:rpropsindex,path:rpropspath,loader:rpropsloader,action:rpropsaction,errorElement:rpropserrorElement,ErrorBoundary:rpropsErrorBoundary,hasErrorBoundary:rpropsErrorBoundary!=null||rpropserrorElement!=null,shouldRevalidate:rpropsshouldRevalidate,handle:rpropshandle,lazy:rpropslazy};rpropschildren&&(ichildren=Hu(rpropschildren,s)),npush(i)}),n}/**
 * React Router DOM v6301
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSEmd file in the root directory of this source tree.
 *
 * @license MIT
 */function Wu(){return Wu=Objectassign?Objectassignbind():function(e){for(var t=1;t<argumentslength;t++){var n=arguments[t];for(var r in n)ObjectprototypehasOwnPropertycall(n,r)&&(e[r]=n[r])}return e},Wuapply(this,arguments)}function Rj(e,t){if(e==null)return{};var n={},r=Objectkeys(e),o,s;for(s=0;s<rlength;s++)o=r[s],!(tindexOf(o)>=0)&&(n[o]=e[o]);return n}function Aj(e){return!!(emetaKey||ealtKey||ectrlKey||eshiftKey)}function _j(e,t){return ebutton===0&&(!t||t==="_self")&&!Aj(e)}const Oj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ij="6";try{window__reactRouterVersion=Ij}catch{}const Lj="startTransition",Tp=sc[Lj];function Mj(e){let{basename:t,children:n,future:r,window:o}=e,s=vuseRef();scurrent==null&&(scurrent=zC({window:o,v5Compat:!0}));let i=scurrent,[a,u]=vuseState({action:iaction,location:ilocation}),{v7_startTransition:c}=r||{},d=vuseCallback(f=>{c&&Tp?Tp(()=>u(f)):u(f)},[u,c]);return vuseLayoutEffect(()=>ilisten(d),[i,d]),vuseEffect(()=>Tj(r),[r]),vcreateElement(kj,{basename:t,children:n,location:alocation,navigationType:aaction,navigator:i,future:r})}const Dj=typeof window<"u"&&typeof windowdocument<"u"&&typeof windowdocumentcreateElement<"u",Fj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fe=vforwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:a,target:u,to:c,preventScrollReset:d,viewTransition:f}=t,h=Rj(t,Oj),{basename:p}=vuseContext(Pr),b,x=!1;if(typeof c=="string"&&Fjtest(c)&&(b=c,Dj))try{let y=new URL(windowlocationhref),S=cstartsWith("//")?new URL(yprotocol+c):new URL(c),E=pd(Spathname,p);Sorigin===yorigin&&E!=null?c=E+Ssearch+Shash:x=!0}catch{}let w=dj(c,{relative:o}),m=zj(c,{replace:i,state:a,target:u,preventScrollReset:d,relative:o,viewTransition:f});function g(y){r&&r(y),ydefaultPrevented||m(y)}return vcreateElement("a",Wu({},h,{href:b||w,onClick:x||s?r:g,ref:n,target:u}))});var kp;(function(e){eUseScrollRestoration="useScrollRestoration",eUseSubmit="useSubmit",eUseSubmitFetcher="useSubmitFetcher",eUseFetcher="useFetcher",euseViewTransitionState="useViewTransitionState"})(kp||(kp={}));var Pp;(function(e){eUseFetcher="useFetcher",eUseFetchers="useFetchers",eUseScrollRestoration="useScrollRestoration"})(Pp||(Pp={}));function zj(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i,viewTransition:a}=t===void 0?{}:t,u=fj(),c=Ws(),d=Bv(e,{relative:i});return vuseCallback(f=>{if(_j(f,n)){fpreventDefault();let h=r!==void 0?r:da(c)===da(d);u(e,{replace:h,state:o,preventScrollReset:s,relative:i,viewTransition:a})}},[c,u,d,r,o,n,e,s,i,a])}var Wv={exports:{}},$j="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Uj=$j,Bj=Uj;function Qv(){}function Gv(){}GvresetWarningCache=Qv;var Vj=function(){function e(r,o,s,i,a,u){if(u!==Bj){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` packageUse PropTypescheckPropTypes() to call themRead more at http://fbme/use-check-prop-types");throw cname="Invariant Violation",c}}eisRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Gv,resetWarningCache:Qv};return nPropTypes=n,n};Wvexports=Vj();var Hj=Wvexports;const de=Co(Hj);function Wj(e){return e&&typeof e=="object"&&"default"in e?edefault:e}var Kv=v,Qj=Wj(Kv);function Rp(e,t,n){return t in e?ObjectdefineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gj(e,t){eprototype=Objectcreate(tprototype),eprototypeconstructor=e,e__proto__=t}var Kj=!!(typeof window<"u"&&windowdocument&&windowdocumentcreateElement);function Yj(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return odisplayName||oname||"Component"}return function(s){if(typeof s!="function")throw new Error("Expected WrappedComponent to be a React component.");var i=[],a;function u(){a=e(imap(function(d){return dprops})),ccanUseDOM?t(a):n&&(a=n(a))}var c=function(d){Gj(f,d);function f(){return dapply(this,arguments)||this}fpeek=function(){return a},frewind=function(){if(fcanUseDOM)throw new Error("You may only call rewind() on the serverCall peek() to read the current state.");var b=a;return a=void 0,i=[],b};var h=fprototype;return hUNSAFE_componentWillMount=function(){ipush(this),u()},hcomponentDidUpdate=function(){u()},hcomponentWillUnmount=function(){var b=iindexOf(this);isplice(b,1),u()},hrender=function(){return QjcreateElement(s,thisprops)},f}(KvPureComponent);return Rp(c,"displayName","SideEffect("+r(s)+")"),Rp(c,"canUseDOM",Kj),c}}var qj=Yj;const Xj=Co(qj);var Zj=typeof Element<"u",Jj=typeof Map=="function",eN=typeof Set=="function",tN=typeof ArrayBuffer=="function"&&!!ArrayBufferisView;function Ii(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(econstructor!==tconstructor)return!1;var n,r,o;if(ArrayisArray(e)){if(n=elength,n!=tlength)return!1;for(r=n;r--!==0;)if(!Ii(e[r],t[r]))return!1;return!0}var s;if(Jj&&e instanceof Map&&t instanceof Map){if(esize!==tsize)return!1;for(s=eentries();!(r=snext()).done;)if(!thas(r."J"))return!1;for(s=eentries();!(r=snext()).done;)if(!Ii(r."n",tget(r."J")))return!1;return!0}if(eN&&e instanceof Set&&t instanceof Set){if(esize!==tsize)return!1;for(s=eentries();!(r=snext()).done;)if(!thas(r."J"))return!1;return!0}if(tN&&ArrayBufferisView(e)&&ArrayBufferisView(t)){if(n=elength,n!=tlength)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(econstructor===RegExp)return esource===tsource&&eflags===tflags;if(evalueOf!==ObjectprototypevalueOf&&typeof evalueOf=="function"&&typeof tvalueOf=="function")return evalueOf()===tvalueOf();if(etoString!==ObjectprototypetoString&&typeof etoString=="function"&&typeof ttoString=="function")return etoString()===ttoString();if(o=Objectkeys(e),n=olength,n!==Objectkeys(t).length)return!1;for(r=n;r--!==0;)if(!ObjectprototypehasOwnPropertycall(t,o[r]))return!1;if(Zj&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Ii(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var nN=function(t,n){try{return Ii(t,n)}catch(r){if((rmessage||"").match(/stack|recursion/i))return consolewarn("react-fast-compare cannot handle circular refs"),!1;throw r}};const rN=Co(nN);var Ap=ObjectgetOwnPropertySymbols,oN=ObjectprototypehasOwnProperty,sN=ObjectprototypepropertyIsEnumerable;function iN(e){if(e==null)throw new TypeError("Objectassign cannot be called with null or undefined");return Object(e)}function aN(){try{if(!Objectassign)return!1;var e=new String("abc");if(")"="de",ObjectgetOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+StringfromCharCode(n)]=n;var r=ObjectgetOwnPropertyNames(t).map(function(s){return t[s]});if(rjoin("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(s){o[s]=s}),Objectkeys(Objectassign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var lN=aN()?Objectassign:function(e,t){for(var n,r=iN(e),o,s=1;s<argumentslength;s++){n=Object(arguments[s]);for(var i in n)oNcall(n,i)&&(r[i]=n[i]);if(Ap){o=Ap(n);for(var a=0;a<olength;a++)sNcall(n,o[a])&&(r[o[a]]=n[o[a]])}}return r};const uN=Co(lN);var yr={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},V={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Objectkeys(V).map(function(e){return V[e]});var fe={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},pa={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},_s={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},cN=Objectkeys(pa).reduce(function(e,t){return e[pa[t]]=t,e},{}),dN=[VNOSCRIPT,VSCRIPT,VSTYLE],Rt="data-react-helmet",fN=typeof Symbol=="function"&&typeof Symboliterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&econstructor===Symbol&&e!==Symbolprototype?"symbol":typeof e},pN=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},hN=function(){function e(t,n){for(var r=0;r<nlength;r++){var o=n[r];oenumerable=oenumerable||!1,oconfigurable=!0,"value"in o&&(owritable=!0),ObjectdefineProperty(t,okey,o)}}return function(t,n,r){return n&&e(tprototype,n),r&&e(t,r),t}}(),Ge=Objectassign||function(e){for(var t=1;t<argumentslength;t++){var n=arguments[t];for(var r in n)ObjectprototypehasOwnPropertycall(n,r)&&(e[r]=n[r])}return e},mN=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);eprototype=Objectcreate(t&&tprototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(ObjectsetPrototypeOf?ObjectsetPrototypeOf(e,t):e__proto__=t)},_p=function(e,t){var n={};for(var r in e)tindexOf(r)>=0||ObjectprototypehasOwnPropertycall(e,r)&&(n[r]=e[r]);return n},gN=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Qu=function(t){var n=argumentslength>1&&"n"!==void 0?"n":!0;return n===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},vN=function(t){var n=oo(t,VTITLE),r=oo(t,_sTITLE_TEMPLATE);if(r&&n)return rreplace(/%s/g,function(){return ArrayisArray(n)?njoin(""):n});var o=oo(t,_sDEFAULT_TITLE);return n||o||void 0},yN=function(t){return oo(t,_sON_CHANGE_CLIENT_STATE)||function(){}},Ml=function(t,n){return nfilter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return Ge({},r,o)},{})},xN=function(t,n){return nfilter(function(r){return typeof r[VBASE]<"u"}).map(function(r){return r[VBASE]}).reverse().reduce(function(r,o){if(!rlength)for(var s=Objectkeys(o),i=0;i<slength;i++){var a=s[i],u=atoLowerCase();if(tindexOf(u)!==-1&&o[u])return rconcat(o)}return r},[])},Wo=function(t,n,r){var o={};return rfilter(function(s){return ArrayisArray(s[t])?!0:(typeof s[t]<"u"&&EN("Helmet: "+t+' should be of type "Array". Instead found type "'+fN(s[t])+'"'),!1)}).map(function(s){return s[t]}).reverse().reduce(function(s,i){var a={};ifilter(function(h){for(var p=void 0,b=Objectkeys(h),x=0;x<blength;x++){var w=b[x],m=wtoLowerCase();nindexOf(m)!==-1&&!(p===feREL&&h[p].toLowerCase()==="canonical")&&!(m===feREL&&h[m].toLowerCase()==="stylesheet")&&(p=m),nindexOf(w)!==-1&&(w===feINNER_HTML||w===feCSS_TEXT||w===feITEM_PROP)&&(p=w)}if(!p||!h[p])return!1;var g=h[p].toLowerCase();return o[p]||(o[p]={}),a[p]||(a[p]={}),o[p][g]?!1:(a[p][g]=!0,!0)}).reverse().forEach(function(h){return spush(h)});for(var u=Objectkeys(a),c=0;c<ulength;c++){var d=u[c],f=uN({},o[d],a[d]);o[d]=f}return s},[]).reverse()},oo=function(t,n){for(var r=tlength-1;r>=0;r--){var o=t[r];if(ohasOwnProperty(n))return o[n]}return null},wN=function(t){return{baseTag:xN([feHREF,feTARGET],t),bodyAttributes:Ml(yrBODY,t),defer:oo(t,_sDEFER),encode:oo(t,_sENCODE_SPECIAL_CHARACTERS),htmlAttributes:Ml(yrHTML,t),linkTags:Wo(VLINK,[feREL,feHREF],t),metaTags:Wo(VMETA,[feNAME,feCHARSET,feHTTPEQUIV,fePROPERTY,feITEM_PROP],t),noscriptTags:Wo(VNOSCRIPT,[feINNER_HTML],t),onChangeClientState:yN(t),scriptTags:Wo(VSCRIPT,[feSRC,feINNER_HTML],t),styleTags:Wo(VSTYLE,[feCSS_TEXT],t),title:vN(t),titleAttributes:Ml(yrTITLE,t)}},Gu=function(){var e=Datenow();return function(t){var n=Datenow();n-e>16?(e=n,t(n)):setTimeout(function(){Gu(t)},0)}}(),Op=function(t){return clearTimeout(t)},bN=typeof window<"u"?windowrequestAnimationFrame&&windowrequestAnimationFramebind(window)||windowwebkitRequestAnimationFrame||windowmozRequestAnimationFrame||Gu:globalrequestAnimationFrame||Gu,SN=typeof window<"u"?windowcancelAnimationFrame||windowwebkitCancelAnimationFrame||windowmozCancelAnimationFrame||Op:globalcancelAnimationFrame||Op,EN=function(t){return console&&typeof consolewarn=="function"&&consolewarn(t)},Qo=null,CN=function(t){Qo&&SN(Qo),tdefer?Qo=bN(function(){Ip(t,function(){Qo=null})}):(Ip(t),Qo=null)},Ip=function(t,n){var r=tbaseTag,o=tbodyAttributes,s=thtmlAttributes,i=tlinkTags,a=tmetaTags,u=tnoscriptTags,c=tonChangeClientState,d=tscriptTags,f=tstyleTags,h=ttitle,p=ttitleAttributes;Ku(VBODY,o),Ku(VHTML,s),jN(h,p);var b={baseTag:Dr(VBASE,r),linkTags:Dr(VLINK,i),metaTags:Dr(VMETA,a),noscriptTags:Dr(VNOSCRIPT,u),scriptTags:Dr(VSCRIPT,d),styleTags:Dr(VSTYLE,f)},x={},w={};Objectkeys(b).forEach(function(m){var g=b[m],y=gnewTags,S=goldTags;ylength&&(x[m]=y),Slength&&(w[m]=b[m].oldTags)}),n&&n(),c(t,x,w)},Yv=function(t){return ArrayisArray(t)?tjoin(""):t},jN=function(t,n){typeof t<"u"&&documenttitle!==t&&(documenttitle=Yv(t)),Ku(VTITLE,n)},Ku=function(t,n){var r=documentgetElementsByTagName(t)[0];if(r){for(var o=rgetAttribute(Rt),s=o?osplit(","):[],i=[].concat(s),a=Objectkeys(n),u=0;u<alength;u++){var c=a[u],d=n[c]||"";rgetAttribute(c)!==d&&rsetAttribute(c,d),sindexOf(c)===-1&&spush(c);var f=iindexOf(c);f!==-1&&isplice(f,1)}for(var h=ilength-1;h>=0;h--)rremoveAttribute(i[h]);slength===ilength?rremoveAttribute(Rt):rgetAttribute(Rt)!==ajoin(",")&&rsetAttribute(Rt,ajoin(","))}},Dr=function(t,n){var r=documenthead||documentquerySelector(VHEAD),o=rquerySelectorAll(t+"["+Rt+"]"),s=Arrayprototypeslicecall(o),i=[],a=void 0;return n&&nlength&&nforEach(function(u){var c=documentcreateElement(t);for(var d in u)if(uhasOwnProperty(d))if(d===feINNER_HTML)cinnerHTML=uinnerHTML;else if(d===feCSS_TEXT)cstyleSheet?cstyleSheetcssText=ucssText:cappendChild(documentcreateTextNode(ucssText));else{var f=typeof u[d]>"u"?"":u[d];csetAttribute(d,f)}csetAttribute(Rt,"true"),ssome(function(h,p){return a=p,cisEqualNode(h)})?ssplice(a,1):ipush(c)}),sforEach(function(u){return uparentNoderemoveChild(u)}),iforEach(function(u){return rappendChild(u)}),{oldTags:s,newTags:i}},qv=function(t){return Objectkeys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},NN=function(t,n,r,o){var s=qv(r),i=Yv(n);return s?"<"+t+" "+Rt+'="true" '+s+">"+Qu(i,o)+"</"+t+">":"<"+t+" "+Rt+'="true">'+Qu(i,o)+"</"+t+">"},TN=function(t,n,r){return nreduce(function(o,s){var i=Objectkeys(s).filter(function(c){return!(c===feINNER_HTML||c===feCSS_TEXT)}).reduce(function(c,d){var f=typeof s[d]>"u"?d:d+'="'+Qu(s[d],r)+'"';return c?c+" "+f:f},""),a=sinnerHTML||scssText||"",u=dNindexOf(t)===-1;return o+"<"+t+" "+Rt+'="true" '+i+(u?"/>":">"+a+"</"+t+">")},"")},Xv=function(t){var n=argumentslength>1&&"n"!==void 0?"n":{};return Objectkeys(t).reduce(function(r,o){return r[pa[o]||o]=t[o],r},n)},kN=function(t){var n=argumentslength>1&&"n"!==void 0?"n":{};return Objectkeys(t).reduce(function(r,o){return r[cN[o]||o]=t[o],r},n)},PN=function(t,n,r){var o,s=(o={key:n},o[Rt]=!0,o),i=Xv(r,s);return[RcreateElement(VTITLE,i,n)]},RN=function(t,n){return nmap(function(r,o){var s,i=(s={key:o},s[Rt]=!0,s);return Objectkeys(r).forEach(function(a){var u=pa[a]||a;if(u===feINNER_HTML||u===feCSS_TEXT){var c=rinnerHTML||rcssText;idangerouslySetInnerHTML={__html:c}}else i[u]=r[a]}),RcreateElement(t,i)})},tn=function(t,n,r){switch(t){case VTITLE:return{toComponent:function(){return PN(t,ntitle,ntitleAttributes)},toString:function(){return NN(t,ntitle,ntitleAttributes,r)}};case yrBODY:case yrHTML:return{toComponent:function(){return Xv(n)},toString:function(){return qv(n)}};default:return{toComponent:function(){return RN(t,n)},toString:function(){return TN(t,n,r)}}}},Zv=function(t){var n=tbaseTag,r=tbodyAttributes,o=tencode,s=thtmlAttributes,i=tlinkTags,a=tmetaTags,u=tnoscriptTags,c=tscriptTags,d=tstyleTags,f=ttitle,h=f===void 0?"":f,p=ttitleAttributes;return{base:tn(VBASE,n,o),bodyAttributes:tn(yrBODY,r,o),htmlAttributes:tn(yrHTML,s,o),link:tn(VLINK,i,o),meta:tn(VMETA,a,o),noscript:tn(VNOSCRIPT,u,o),script:tn(VSCRIPT,c,o),style:tn(VSTYLE,d,o),title:tn(VTITLE,{title:h,titleAttributes:p},o)}},AN=function(t){var n,r;return r=n=function(o){mN(s,o);function s(){return pN(this,s),gN(this,oapply(this,arguments))}return sprototypeshouldComponentUpdate=function(a){return!rN(thisprops,a)},sprototypemapNestedChildrenToProps=function(a,u){if(!u)return null;switch(atype){case VSCRIPT:case VNOSCRIPT:return{innerHTML:u};case VSTYLE:return{cssText:u}}throw new Error("<"+atype+" /> elements are self-closing and can not contain childrenRefer to our API for more information.")},sprototypeflattenArrayTypeChildren=function(a){var u,c=achild,d=aarrayTypeChildren,f=anewChildProps,h=anestedChildren;return Ge({},d,(u={},u[ctype]=[].concat(d[ctype]||[],[Ge({},f,thismapNestedChildrenToProps(c,h))]),u))},sprototypemapObjectTypeChildren=function(a){var u,c,d=achild,f=anewProps,h=anewChildProps,p=anestedChildren;switch(dtype){case VTITLE:return Ge({},f,(u={},u[dtype]=p,utitleAttributes=Ge({},h),u));case VBODY:return Ge({},f,{bodyAttributes:Ge({},h)});case VHTML:return Ge({},f,{htmlAttributes:Ge({},h)})}return Ge({},f,(c={},c[dtype]=Ge({},h),c))},sprototypemapArrayTypeChildrenToProps=function(a,u){var c=Ge({},u);return Objectkeys(a).forEach(function(d){var f;c=Ge({},c,(f={},f[d]=a[d],f))}),c},sprototypewarnOnInvalidChildren=function(a,u){return!0},sprototypemapChildrenToProps=function(a,u){var c=this,d={};return RChildrenforEach(a,function(f){if(!(!f||!fprops)){var h=fprops,p=hchildren,b=_p(h,["children"]),x=kN(b);switch(cwarnOnInvalidChildren(f,p),ftype){case VLINK:case VMETA:case VNOSCRIPT:case VSCRIPT:case VSTYLE:d=cflattenArrayTypeChildren({child:f,arrayTypeChildren:d,newChildProps:x,nestedChildren:p});break;default:u=cmapObjectTypeChildren({child:f,newProps:u,newChildProps:x,nestedChildren:p});break}}}),u=thismapArrayTypeChildrenToProps(d,u),u},sprototyperender=function(){var a=thisprops,u=achildren,c=_p(a,["children"]),d=Ge({},c);return u&&(d=thismapChildrenToProps(u,d)),RcreateElement(t,d)},hN(s,null,[{key:"canUseDOM",set:function(a){tcanUseDOM=a}}]),s}(RComponent),npropTypes={base:deobject,bodyAttributes:deobject,children:deoneOfType([dearrayOf(denode),denode]),defaultTitle:destring,defer:debool,encodeSpecialCharacters:debool,htmlAttributes:deobject,link:dearrayOf(deobject),meta:dearrayOf(deobject),noscript:dearrayOf(deobject),onChangeClientState:defunc,script:dearrayOf(deobject),style:dearrayOf(deobject),title:destring,titleAttributes:deobject,titleTemplate:destring},ndefaultProps={defer:!0,encodeSpecialCharacters:!0},npeek=tpeek,nrewind=function(){var o=trewind();return o||(o=Zv({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},_N=function(){return null},ON=Xj(wN,CN,Zv)(_N),Mt=AN(ON);MtrenderStatic=Mtrewind;const IN=Bs("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-semibold transition-smooth focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary-hover active:bg-primary-active",outline:"border border-primary bg-transparent text-primary hover:bg-primary/10",ghost:"hover:bg-surface text-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-11 px-6 py-3",sm:"h-9 px-4 text-xs",lg:"h-14 px-8 text-base",icon:"h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}}),Pe=vforwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?i1:"button";return ljsx(i,{className:ie(IN({variant:t,size:n,className:e})),ref:s,...o})});PedisplayName="Button";const Xt=()=>{const[e,t]=vuseState(!1),n=[{href:"/",label:"Главная"},{href:"/shop",label:"Магазин"},{href:"/faq",label:"FAQ"},{href:"/reviews",label:"Отзывы"},{href:"/about",label:"О нас"}];return ljsx("nav",{className:"sticky top-0 z-50 bg-surface border-b border-border",children:ljsxs("div",{className:"container mx-auto px-4 py-4",children:[ljsxs("div",{className:"flex items-center justify-between",children:[ljsxs(Fe,{to:"/",className:"flex items-center gap-2 text-xl font-bold",children:[ljsx(Lg,{className:"w-6 h-6 text-primary"}),ljsx("span",{className:"text-foreground",children:"Империя Сливов"})]}),ljsxs("div",{className:"hidden md:flex items-center gap-6",children:[nmap(r=>ljsx(Fe,{to:rhref,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:rlabel},rhref)),ljsx(Pe,{asChild:!0,children:ljsx("a",{href:"https://tme/Imperiya_VasilevsaBOt",target:"_blank",rel:"noopener noreferrer",children:"Записаться в боте"})})]}),ljsx("button",{className:"md:hidden text-foreground",onClick:()=>t(!e),"aria-label":"Toggle menu",children:e?ljsx(zg,{className:"w-6 h-6"}):ljsx(sb,{className:"w-6 h-6"})})]}),e&&ljsx("div",{className:"md:hidden mt-4 pb-4 border-t border-border pt-4",children:ljsxs("div",{className:"flex flex-col gap-4",children:[nmap(r=>ljsx(Fe,{to:rhref,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",onClick:()=>t(!1),children:rlabel},rhref)),ljsx(Pe,{asChild:!0,className:"w-full",children:ljsx("a",{href:"https://tme/Imperiya_VasilevsaBOt",target:"_blank",rel:"noopener noreferrer",children:"Записаться в боте"})})]})})]})})},Zt=()=>ljsx("footer",{className:"bg-surface-2 border-t border-border",children:ljsxs("div",{className:"container mx-auto px-4 py-12",children:[ljsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8 mb-8",children:[ljsxs("div",{children:[ljsxs(Fe,{to:"/",className:"flex items-center gap-2 text-xl font-bold mb-3",children:[ljsx(Lg,{className:"w-6 h-6 text-primary"}),ljsx("span",{className:"text-foreground",children:"Империя Сливов"})]}),ljsx("p",{className:"text-sm text-muted-foreground",children:"Агрегатор образовательных программ"})]}),ljsxs("div",{children:[ljsx("h3",{className:"font-semibold text-foreground mb-3",children:"Навигация"}),ljsxs("ul",{className:"space-y-2 text-sm",children:[ljsx("li",{children:ljsx(Fe,{to:"/",className:"text-muted-foreground hover:text-primary transition-colors",children:"Главная"})}),ljsx("li",{children:ljsx(Fe,{to:"/shop",className:"text-muted-foreground hover:text-primary transition-colors",children:"Магазин"})}),ljsx("li",{children:ljsx(Fe,{to:"/faq",className:"text-muted-foreground hover:text-primary transition-colors",children:"FAQ"})}),ljsx("li",{children:ljsx(Fe,{to:"/reviews",className:"text-muted-foreground hover:text-primary transition-colors",children:"Отзывы"})}),ljsx("li",{children:ljsx(Fe,{to:"/about",className:"text-muted-foreground hover:text-primary transition-colors",children:"О нас"})})]})]}),ljsxs("div",{children:[ljsx("h3",{className:"font-semibold text-foreground mb-3",children:"Документы"}),ljsxs("ul",{className:"space-y-2 text-sm",children:[ljsx("li",{children:ljsx(Fe,{to:"/privacy",className:"text-muted-foreground hover:text-primary transition-colors",children:"Политика конфиденциальности"})}),ljsx("li",{children:ljsx(Fe,{to:"/terms",className:"text-muted-foreground hover:text-primary transition-colors",children:"Условия использования"})}),ljsx("li",{children:ljsx(Fe,{to:"/disclaimer",className:"text-muted-foreground hover:text-primary transition-colors",children:"Дисклеймер"})})]})]}),ljsxs("div",{children:[ljsx("h3",{className:"font-semibold text-foreground mb-3",children:"Контакты"}),ljsxs("div",{className:"space-y-3",children:[ljsx(Pe,{variant:"outline",size:"sm",asChild:!0,className:"w-full",children:ljsx("a",{href:"https://tme/Imperiya_VasilevsaBOt",target:"_blank",rel:"noopener noreferrer",children:"Telegram бот"})}),ljsx(Pe,{variant:"outline",size:"sm",asChild:!0,className:"w-full",children:ljsx("a",{href:"https://tme/vasiileuss",target:"_blank",rel:"noopener noreferrer",children:"Поддержка"})}),ljsxs("a",{href:"mailto:egeze@internetru",className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-primary transition-colors",children:[ljsx(Mg,{className:"w-4 h-4"}),"egeze@internetru"]})]})]})]}),ljsx("div",{className:"border-t border-border pt-6 mb-6",children:ljsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Платформа выступает как агрегатор образовательных программ и не размещает/не распространяет материалы, защищённые авторским правом. Все товарные знаки и бренды принадлежат их владельцам. Для правообладателей: egeze@internetru"})}),ljsxs("div",{className:"text-center text-xs text-muted-foreground",children:[ljsx("p",{children:"© 2019–2025, Империя Сливов"}),ljsx("p",{className:"mt-1",children:'ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ "ПОДГОТОВКА К ЕГЭ ОНЛАЙН"'}),ljsx("p",{className:"mt-1",children:"ОГРНИП 12077300028711, ИНН 97153735646"})]})]})}),LN=()=>ljsx("section",{className:"hero-gradient py-20 md:py-32",children:ljsx("div",{className:"container mx-auto px-4",children:ljsxs("div",{className:"max-w-4xl mx-auto text-center",children:[ljsx("h1",{className:"text-4xl md:text-6xl font-bold text-foreground mb-6 leading-tight",children:"Курсы ЕГЭ и ОГЭ в 10 раз дешевле"}),ljsx("p",{className:"text-lg md:text-xl text-muted-foreground mb-8 max-w-2xl mx-auto",children:"Лучший сервис для покупки курсов подготовки к экзаменам. Вместе с нами подготовка становится дешевле и доступнее!"}),ljsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[ljsx(Pe,{size:"lg",asChild:!0,children:ljsxs("a",{href:"https://tme/Imperiya_VasilevsaBOt",target:"_blank",rel:"noopener noreferrer",children:["Открыть бот",ljsx(J1,{className:"ml-2 w-5 h-5"})]})}),ljsx(Pe,{size:"lg",variant:"outline",asChild:!0,children:ljsx("a",{href:"/faq",children:"Частые вопросы"})})]})]})})}),MN=[{icon:tb,title:"Удобный интерфейс",description:"Простой и понятный выбор курсов по всем предметам ЕГЭ и ОГЭ"},{icon:Oa,title:"Домашние задания с проверкой",description:"Регулярная практика с обратной связью от преподавателей"},{icon:cb,title:"Практика — ключ к высоким баллам",description:"Тренировочные тесты и разбор реальных заданий экзаменов"},{icon:eb,title:"Лучшие школы",description:"Проверенные образовательные платформы с опытными методистами"},{icon:fb,title:"Опытные наставники",description:"Персональная поддержка и кураторство на протяжении всего курса"},{icon:ib,title:"Всё в одном месте",description:"Удобный каталог курсов, прозрачные цены, быстрая запись"}],DN=()=>ljsx("section",{className:"py-16 md:py-24 bg-background",children:ljsxs("div",{className:"container mx-auto px-4",children:[ljsx("h2",{className:"text-3xl md:text-4xl font-bold text-center text-foreground mb-12",children:"Почему выбирают нас"}),ljsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:MNmap((e,t)=>{const n=eicon;return ljsxs("div",{className:"bg-surface p-6 rounded-lg shadow-card hover:shadow-card-hover transition-smooth",children:[ljsx(n,{className:"w-10 h-10 text-primary mb-4"}),ljsx("h3",{className:"text-xl font-semibold text-foreground mb-2",children:etitle}),ljsx("p",{className:"text-muted-foreground",children:edescription})]},t)})})]})}),md=[{slug:"100b",name:"100 БАЛЛОВ",markup_from:500,short_desc:"Онлайн-школа подготовки к ЕГЭ с опытными преподавателями"},{slug:"noo",name:"НОО",markup_from:300,short_desc:"Национальная онлайн-школа — эффективная подготовка к экзаменам"},{slug:"neofamily",name:"NEOFAMILY",markup_from:400,short_desc:"Современная школа с кураторской поддержкой"},{slug:"egeland",name:"EGELAND",markup_from:300,short_desc:"Комплексная подготовка к ЕГЭ и ОГЭ онлайн"}],Va=[{slug:"lamark",name:"Ламарк",subject:"biology",bio:"Эксперт ЕГЭ по биологии с 10-летним опытом. Средний балл учеников — 85+",monthly_markup:1200,school:"100b"},{slug:"asif",name:"Асиф",subject:"social-studies",bio:"Преподаватель обществознания, автор методических пособий",monthly_markup:1e3,school:"noo"},{slug:"evgenia",name:"Евгения",subject:"russian",bio:"Кандидат филологических наук, эксперт ЕГЭ по русскому языку",monthly_markup:900,school:"egeland"},{slug:"marina",name:"Марина",subject:"chemistry",bio:"Преподаватель химии высшей категории. Более 200 учеников сдали на 90+",monthly_markup:1100,school:"noo"},{slug:"kurator-neo",name:"Куратор NEOFAMILY",subject:"informatics",bio:"Команда IT-специалистов для подготовки к информатике",monthly_markup:500,school:"neofamily"}],as=[{slug:"biology-ege",title:"Биология ЕГЭ",subject:"biology",level:"ege",monthly_price_base:2990,description:"Полный курс подготовки к ЕГЭ по биологии. Разбор всех тем кодификатора, практические задания, вебинары и домашние работы с проверкой.",includes:["Видеоуроки по всем темам","Домашние задания с проверкой","Еженедельные вебинары","Пробные тестирования","Чат с куратором"],school:"100b",mentors:["lamark"],tags:["годовой","с-куратором","практика"]},{slug:"chemistry-ege",title:"Химия ЕГЭ",subject:"chemistry",level:"ege",monthly_price_base:2990,description:"Комплексная подготовка к ЕГЭ по химии с нуля до высоких баллов. Теория, решение задач, лабораторный практикум онлайн.",includes:["Видеоуроки","Домашние задания","Онлайн-практикумы","Тестирования","Кураторская поддержка"],school:"noo",mentors:["marina"],tags:["годовой","практика"]},{slug:"social-studies-ege",title:"Обществознание ЕГЭ",subject:"social-studies",level:"ege",monthly_price_base:2990,description:"Системная подготовка к ЕГЭ по обществознанию. Изучение всех блоков: право, экономика, социология, политология, философия.",includes:["Видеоуроки","Конспекты","Домашние задания","Эссе с проверкой","Чат поддержки"],school:"noo",mentors:["asif"],tags:["годовой","теория"]},{slug:"math-profile-ege",title:"Профильная математика ЕГЭ",subject:"math-profile",level:"ege",monthly_price_base:3490,description:"Углублённый курс по профильной математике. Решение задач всех уровней сложности, включая задачи с параметрами и геометрию.",includes:["Видеоуроки","Разбор задач","Еженедельные вебинары","Домашние работы","База задач"],school:"egeland",mentors:[],tags:["годовой","практика"]},{slug:"russian-ege",title:"Русский язык ЕГЭ",subject:"russian",level:"ege",monthly_price_base:2990,description:"Подготовка к ЕГЭ по русскому языку: орфография, пунктуация, анализ текста, сочинение. Гарантия высокого балла.",includes:["Видеолекции","Тренажёры","Проверка сочинений","Домашние задания","Вебинары"],school:"egeland",mentors:["evgenia"],tags:["годовой","с-куратором"]},{slug:"geography-ege",title:"География ЕГЭ",subject:"geography",level:"ege",monthly_price_base:2890,description:"Курс географии для ЕГЭ: физическая и экономическая география, работа с картами, решение типовых заданий.",includes:["Видеоуроки","Интерактивные карты","Домашние задания","Тестирования"],school:"noo",mentors:[],tags:["годовой","теория"]},{slug:"math-base-ege",title:"Базовая математика ЕГЭ",subject:"math-base",level:"ege",monthly_price_base:1990,description:"Подготовка к базовому уровню ЕГЭ по математике. Все темы школьной программы, тренировочные тесты.",includes:["Видеоуроки","Домашние задания","Тренажёры","Тестирования"],school:"egeland",mentors:[],tags:["годовой"]},{slug:"literature-ege",title:"Литература ЕГЭ",subject:"literature",level:"ege",monthly_price_base:2990,description:"Курс по литературе: анализ произведений, теория литературы, написание сочинений. Работа над всеми форматами заданий ЕГЭ.",includes:["Видеолекции","Анализ текстов","Проверка сочинений","Домашние задания"],school:"egeland",mentors:[],tags:["годовой","теория"]},{slug:"history-ege",title:"История ЕГЭ",subject:"history",level:"ege",monthly_price_base:3190,description:"Систематический курс истории России с древности до наших дней. Хронология, исторические личности, карты, эссе.",includes:["Видеоуроки","Конспекты","Исторические карты","Проверка эссе","Тестирования"],school:"noo",mentors:[],tags:["годовой","теория"]},{slug:"informatics-ege",title:"Информатика ЕГЭ",subject:"informatics",level:"ege",monthly_price_base:3390,description:"Программирование и алгоритмика для ЕГЭ. Разбор задач всех типов, работа в средах программирования.",includes:["Видеоуроки","Практические задачи","Разбор кода","Домашние работы","Кураторская поддержка"],school:"neofamily",mentors:["kurator-neo"],tags:["годовой","с-куратором","практика"]},{slug:"english-ege",title:"Английский язык ЕГЭ",subject:"english",level:"ege",monthly_price_base:3290,description:"Подготовка к ЕГЭ по английскому: грамматика, лексика, аудирование, письмо, говорение. Практика с носителями.",includes:["Видеоуроки","Разговорные клубы","Проверка письменных работ","Аудирование","Домашние задания"],school:"egeland",mentors:[],tags:["годовой","практика"]},{slug:"physics-ege",title:"Физика ЕГЭ",subject:"physics",level:"ege",monthly_price_base:3390,description:"Углублённая подготовка к ЕГЭ по физике. Теория, решение задач всех типов, лабораторные работы онлайн.",includes:["Видеолекции","Разбор задач","Виртуальная лаборатория","Домашние работы","Вебинары"],school:"neofamily",mentors:[],tags:["годовой","практика"]}],Yu=[{id:"1",author_name:"Егор К.",text:"Занимался биологией с Ламарком. За 8 месяцев поднял свой уровень с 60 до 92 баллов! Очень доволен результатом. Преподаватель объясняет сложные темы простым языком.",rating:5,course:"biology-ege",school:"100b",date:"2024-07-15",is_verified:!0},{id:"2",author_name:"Мария В.",text:"Готовилась к русскому с Евгенией. Отличная подача материала, много практики. Сочинения проверялись очень подробно с комментариями. Сдала на 89 баллов.",rating:5,course:"russian-ege",school:"egeland",date:"2024-06-20",is_verified:!0},{id:"3",author_name:"Иван П.",text:"Курс по обществознанию помог систематизировать знания. Асиф — профессионал своего дела. Результат — 84 балла при том, что начинал с нуля.",rating:5,course:"social-studies-ege",school:"noo",date:"2024-08-10",is_verified:!0},{id:"4",author_name:"Анна С.",text:"Химия всегда была для меня сложным предметом, но благодаря Марине и структурированному подходу курса смогла разобраться во всех темах. Сдала на 78 баллов!",rating:4,course:"chemistry-ege",school:"noo",date:"2024-07-25",is_verified:!0}],xr={biology:"Биология",chemistry:"Химия","social-studies":"Обществознание","math-profile":"Математика (проф.)",russian:"Русский язык",geography:"География","math-base":"Математика (база)",literature:"Литература",history:"История",informatics:"Информатика",english:"Английский язык",physics:"Физика"},Jv={ege:"ЕГЭ",oge:"ОГЭ"},FN=Bs("inline-flex items-center rounded-full border px-25 py-05 text-xs 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 hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function nt({className:e,variant:t,...n}){return ljsx("div",{className:ie(FN({variant:t}),e),...n})}const zN=()=>{const e=[...md].sort((t,n)=>nmarkup_from-tmarkup_from);return ljsx("section",{className:"py-16 md:py-24 bg-surface-2",children:ljsxs("div",{className:"container mx-auto px-4",children:[ljsx("h2",{className:"text-3xl md:text-4xl font-bold text-center text-foreground mb-4",children:"Партнёрские школы"}),ljsx("p",{className:"text-center text-muted-foreground mb-12 max-w-2xl mx-auto",children:"Мы сотрудничаем с ведущими онлайн-школами подготовки к экзаменам"}),ljsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:emap(t=>ljsxs("div",{className:"bg-surface p-6 rounded-lg shadow-card hover:shadow-card-hover transition-smooth text-center",children:[ljsx("h3",{className:"text-xl font-bold text-foreground mb-2",children:tname}),ljsx("p",{className:"text-sm text-muted-foreground mb-4",children:tshort_desc}),ljsxs(nt,{variant:"outline",className:"text-primary border-primary",children:["Наценка от ",tmarkup_from," ₽/мес"]})]},tslug))})]})})};var ey={exports:{}},ty={};/**
 * @license React
 * use-sync-external-store-shimproductionjs
 *
 * Copyright (c) Meta Platforms, Incand affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Eo=v;function $N(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var UN=typeof Objectis=="function"?Objectis:$N,BN=EouseState,VN=EouseEffect,HN=EouseLayoutEffect,WN=EouseDebugValue;function QN(e,t){var n=t(),r=BN({inst:{value:n,getSnapshot:t}}),o="J".inst,s="n";return HN(function(){ovalue=n,ogetSnapshot=t,Dl(o)&&s({inst:o})},[e,n,t]),VN(function(){return Dl(o)&&s({inst:o}),e(function(){Dl(o)&&s({inst:o})})},[e]),WN(n),n}function Dl(e){var t=egetSnapshot;e=evalue;try{var n=t();return!UN(e,n)}catch{return!0}}function GN(e,t){return t()}var KN=typeof window>"u"||typeof windowdocument>"u"||typeof windowdocumentcreateElement>"u"?GN:QN;tyuseSyncExternalStore=EouseSyncExternalStore!==void 0?EouseSyncExternalStore:KN;eyexports=ty;var YN=eyexports;function qN(){return YNuseSyncExternalStore(XN,()=>!0,()=>!1)}function XN(){return()=>{}}var gd="Avatar",[ZN,b2]=Dt(gd),[JN,ny]=ZN(gd),ry=vforwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=vuseState("idle");return ljsx(JN,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:ljsx(eespan,{...r,ref:t})})});rydisplayName=gd;var oy="AvatarImage",sy=vforwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,i=ny(oy,n),a=eT(r,s),u=Yt(c=>{o(c),ionImageLoadingStatusChange(c)});return at(()=>{a!=="idle"&&u(a)},[a,u]),a==="loaded"?ljsx(eeimg,{...s,ref:t,src:r}):null});sydisplayName=oy;var iy="AvatarFallback",ay=vforwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=ny(iy,n),[i,a]=vuseState(r===void 0);return vuseEffect(()=>{if(r!==void 0){const u=windowsetTimeout(()=>a(!0),r);return()=>windowclearTimeout(u)}},[r]),i&&simageLoadingStatus!=="loaded"?ljsx(eespan,{...o,ref:t}):null});aydisplayName=iy;function Lp(e,t){return e?t?(esrc!==t&&(esrc=t),ecomplete&&enaturalWidth>0?"loaded":"loading"):"error":"idle"}function eT(e,{referrerPolicy:t,crossOrigin:n}){const r=qN(),o=vuseRef(null),s=r?(ocurrent||(ocurrent=new windowImage),ocurrent):null,[i,a]=vuseState(()=>Lp(s,e));return at(()=>{a(Lp(s,e))},[s,e]),at(()=>{const u=f=>()=>{a(f)};if(!s)return;const c=u("loaded"),d=u("error");return saddEventListener("load",c),saddEventListener("error",d),t&&(sreferrerPolicy=t),typeof n=="string"&&(scrossOrigin=n),()=>{sremoveEventListener("load",c),sremoveEventListener("error",d)}},[s,n,t]),i}var ly=ry,uy=sy,cy=ay;const dy=vforwardRef(({className:e,...t},n)=>ljsx(ly,{ref:n,className:ie("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));dydisplayName=lydisplayName;const tT=vforwardRef(({className:e,...t},n)=>ljsx(uy,{ref:n,className:ie("aspect-square h-full w-full",e),...t}));tTdisplayName=uydisplayName;const fy=vforwardRef(({className:e,...t},n)=>ljsx(cy,{ref:n,className:ie("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));fydisplayName=cydisplayName;const nT=()=>{const e=[...Va].sort((t,n)=>nmonthly_markup-tmonthly_markup).slice(0,6);return ljsx("section",{className:"py-16 md:py-24 bg-background",children:ljsxs("div",{className:"container mx-auto px-4",children:[ljsx("h2",{className:"text-3xl md:text-4xl font-bold text-center text-foreground mb-4",children:"Наши наставники"}),ljsx("p",{className:"text-center text-muted-foreground mb-12 max-w-2xl mx-auto",children:"Опытные преподаватели, которые помогут достичь высоких результатов"}),ljsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:emap(t=>ljsxs("div",{className:"bg-surface p-6 rounded-lg shadow-card hover:shadow-card-hover transition-smooth",children:[ljsxs("div",{className:"flex items-start gap-4 mb-4",children:[ljsx(dy,{className:"w-16 h-16",children:ljsx(fy,{className:"bg-primary text-primary-foreground text-xl",children:tnamecharAt(0)})}),ljsxs("div",{className:"flex-1",children:[ljsx("h3",{className:"text-lg font-semibold text-foreground mb-1",children:tname}),ljsx(nt,{variant:"outline",className:"text-xs",children:xr[tsubject]})]})]}),ljsx("p",{className:"text-sm text-muted-foreground mb-4 line-clamp-2",children:tbio}),ljsxs("p",{className:"text-primary font-semibold",children:["+",tmonthly_markup," ₽/мес"]})]},tslug))})]})})},rT=()=>{const e=Yufilter(t=>tis_verified);return ljsx("section",{className:"py-16 md:py-24 bg-surface-2",children:ljsxs("div",{className:"container mx-auto px-4",children:[ljsx("h2",{className:"text-3xl md:text-4xl font-bold text-center text-foreground mb-4",children:"Отзывы учеников"}),ljsx("p",{className:"text-center text-muted-foreground mb-12 max-w-2xl mx-auto",children:"Реальные истории успеха наших студентов"}),ljsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 max-w-5xl mx-auto",children:emap(t=>ljsxs("div",{className:"bg-surface p-6 rounded-lg shadow-card hover:shadow-card-hover transition-smooth",children:[ljsxs("div",{className:"flex items-center justify-between mb-4",children:[ljsxs("div",{className:"flex items-center gap-2",children:[ljsx("p",{className:"font-semibold text-foreground",children:tauthor_name}),tis_verified&&ljsx(Oa,{className:"w-4 h-4 text-success"})]}),ljsx("div",{className:"flex gap-1",children:Arrayfrom({length:trating}).map((n,r)=>ljsx(Fg,{className:"w-4 h-4 fill-primary text-primary"},r))})]}),ljsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:ttext})]},tid))})]})})},oT=()=>ljsx("section",{className:"py-16 md:py-24 bg-background",children:ljsx("div",{className:"container mx-auto px-4",children:ljsxs("div",{className:"max-w-3xl mx-auto text-center bg-surface p-12 rounded-lg shadow-card",children:[ljsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Готовы начать подготовку?"}),ljsx("p",{className:"text-muted-foreground mb-8",children:"Выберите курс и начните путь к высоким баллам уже сегодня"}),ljsx(Pe,{size:"lg",asChild:!0,children:ljsxs("a",{href:"/shop",children:[ljsx(ub,{className:"mr-2 w-5 h-5"}),"Перейти в магазин"]})})]})})}),sT=()=>ljsxs(lFragment,{children:[ljsxs(Mt,{children:[ljsx("title",{children:"Империя Сливов — агрегатор курсов ЕГЭ/ОГЭ"}),ljsx("meta",{name:"description",content:"Понятная теория, практика и поддержка. Выберите курс и поступайте в вуз мечты. Курсы ЕГЭ и ОГЭ в 10 раз дешевле."}),ljsx("meta",{property:"og:title",content:"Империя Сливов — агрегатор курсов ЕГЭ/ОГЭ"}),ljsx("meta",{property:"og:description",content:"Понятная теория, практика и поддержка. Выберите курс и поступайте в вуз мечты."}),ljsx("meta",{property:"og:type",content:"website"})]}),ljsxs("div",{className:"min-h-screen flex flex-col",children:[ljsx(Xt,{}),ljsxs("main",{className:"flex-1",children:[ljsx(LN,{}),ljsx(DN,{}),ljsx(zN,{}),ljsx(nT,{}),ljsx(rT,{}),ljsx(oT,{})]}),ljsx(Zt,{})]})]});function vd(e){return mdfind(t=>tslug===eschool)}function iT(e){return Vafilter(t=>ementorsincludes(tslug))}function yd(e){const t=vd(e);return emonthly_price_base+((t==null?void 0:tmarkup_from)||0)}function aT(e,t){const n=yd(e);if(!t)return n;const r=Vafind(o=>oslug===t);return n+((r==null?void 0:rmonthly_markup)||0)}function lT(e){return Vafind(t=>tslug===e)}const ls=vforwardRef(({className:e,type:t,...n},r)=>ljsx("input",{type:t,className:ie("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));lsdisplayName="Input";var uT=vcreateContext(void 0);function Ha(e){const t=vuseContext(uT);return e||t||"ltr"}var Fl="rovingFocusGrouponEntryFocus",cT={bubbles:!1,cancelable:!0},Qs="RovingFocusGroup",[qu,py,dT]=qc(Qs),[fT,Wa]=Dt(Qs,[dT]),[pT,hT]=fT(Qs),hy=vforwardRef((e,t)=>ljsx(quProvider,{scope:e__scopeRovingFocusGroup,children:ljsx(quSlot,{scope:e__scopeRovingFocusGroup,children:ljsx(mT,{...e,ref:t})})}));hydisplayName=Qs;var mT=vforwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=e,h=vuseRef(null),p=_e(t,h),b=Ha(s),[x,w]=kr({prop:i,defaultProp:a??null,onChange:u,caller:Qs}),[m,g]=vuseState(!1),y=Yt(c),S=py(n),E=vuseRef(!1),[C,j]=vuseState(0);return vuseEffect(()=>{const k=hcurrent;if(k)return kaddEventListener(Fl,y),()=>kremoveEventListener(Fl,y)},[y]),ljsx(pT,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:x,onItemFocus:vuseCallback(k=>w(k),[w]),onItemShiftTab:vuseCallback(()=>g(!0),[]),onFocusableItemAdd:vuseCallback(()=>j(k=>k+1),[]),onFocusableItemRemove:vuseCallback(()=>j(k=>k-1),[]),children:ljsx(eediv,{tabIndex:m||C===0?-1:0,"data-orientation":r,...f,ref:p,style:{outline:"none",...estyle},onMouseDown:Z(eonMouseDown,()=>{Ecurrent=!0}),onFocus:Z(eonFocus,k=>{const O=!Ecurrent;if(ktarget===kcurrentTarget&&O&&!m){const _=new CustomEvent(Fl,cT);if(kcurrentTargetdispatchEvent(_),!_defaultPrevented){const $=S().filter(F=>Ffocusable),M=$.find(F=>Factive),G=$.find(F=>Fid===x),K=[M,G,...$].filter(Boolean).map(F=>Frefcurrent);vy(K,d)}}Ecurrent=!1}),onBlur:Z(eonBlur,()=>g(!1))})})}),my="RovingFocusGroupItem",gy=vforwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:i,...a}=e,u=Ia(),c=s||u,d=hT(my,n),f=dcurrentTabStopId===c,h=py(n),{onFocusableItemAdd:p,onFocusableItemRemove:b,currentTabStopId:x}=d;return vuseEffect(()=>{if(r)return p(),()=>b()},[r,p,b]),ljsx(quItemSlot,{scope:n,id:c,focusable:r,active:o,children:ljsx(eespan,{tabIndex:f?0:-1,"data-orientation":dorientation,...a,ref:t,onMouseDown:Z(eonMouseDown,w=>{r?donItemFocus(c):wpreventDefault()}),onFocus:Z(eonFocus,()=>donItemFocus(c)),onKeyDown:Z(eonKeyDown,w=>{if(wkey==="Tab"&&wshiftKey){donItemShiftTab();return}if(wtarget!==wcurrentTarget)return;const m=yT(w,dorientation,ddir);if(m!==void 0){if(wmetaKey||wctrlKey||waltKey||wshiftKey)return;wpreventDefault();let y=h().filter(S=>Sfocusable).map(S=>Srefcurrent);if(m==="last")yreverse();else if(m==="prev"||m==="next"){m==="prev"&&yreverse();const S=yindexOf(wcurrentTarget);y=dloop?xT(y,S+1):yslice(S+1)}setTimeout(()=>vy(y))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:x!=null}):i})})});gydisplayName=my;var gT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vT(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function yT(e,t,n){const r=vT(ekey,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return gT[r]}function vy(e,t=!1){const n=documentactiveElement;for(const r of e)if(r===n||(rfocus({preventScroll:t}),documentactiveElement!==n))return}function xT(e,t){return emap((n,r)=>e[(t+r)%elength])}var yy=hy,xy=gy,Qa="Tabs",[wT,S2]=Dt(Qa,[Wa]),wy=Wa(),[bT,xd]=wT(Qa),by=vforwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:i="horizontal",dir:a,activationMode:u="automatic",...c}=e,d=Ha(a),[f,h]=kr({prop:r,onChange:o,defaultProp:s??"",caller:Qa});return ljsx(bT,{scope:n,baseId:Ia(),value:f,onValueChange:h,orientation:i,dir:d,activationMode:u,children:ljsx(eediv,{dir:d,"data-orientation":i,...c,ref:t})})});bydisplayName=Qa;var Sy="TabsList",Ey=vforwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=xd(Sy,n),i=wy(n);return ljsx(yy,{asChild:!0,...i,orientation:sorientation,dir:sdir,loop:r,children:ljsx(eediv,{role:"tablist","aria-orientation":sorientation,...o,ref:t})})});EydisplayName=Sy;var Cy="TabsTrigger",jy=vforwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,i=xd(Cy,n),a=wy(n),u=ky(ibaseId,r),c=Py(ibaseId,r),d=r===ivalue;return ljsx(xy,{asChild:!0,...a,focusable:!o,active:d,children:ljsx(eebutton,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...s,ref:t,onMouseDown:Z(eonMouseDown,f=>{!o&&fbutton===0&&fctrlKey===!1?ionValueChange(r):fpreventDefault()}),onKeyDown:Z(eonKeyDown,f=>{[" ","Enter"].includes(fkey)&&ionValueChange(r)}),onFocus:Z(eonFocus,()=>{const f=iactivationMode!=="manual";!d&&!o&&f&&ionValueChange(r)})})})});jydisplayName=Cy;var Ny="TabsContent",Ty=vforwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...i}=e,a=xd(Ny,n),u=ky(abaseId,r),c=Py(abaseId,r),d=r===avalue,f=vuseRef(d);return vuseEffect(()=>{const h=requestAnimationFrame(()=>fcurrent=!1);return()=>cancelAnimationFrame(h)},[]),ljsx(ko,{present:o||d,children:({present:h})=>ljsx(eediv,{"data-state":d?"active":"inactive","data-orientation":aorientation,role:"tabpanel","aria-labelledby":u,hidden:!h,id:c,tabIndex:0,...i,ref:t,style:{...estyle,animationDuration:fcurrent?"0s":void 0},children:h&&s})})});TydisplayName=Ny;function ky(e,t){return`${e}-trigger-${t}`}function Py(e,t){return`${e}-content-${t}`}var ST=by,Ry=Ey,Ay=jy,_y=Ty;const ET=ST,Oy=vforwardRef(({className:e,...t},n)=>ljsx(Ry,{ref:n,className:ie("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));OydisplayName=RydisplayName;const Xu=vforwardRef(({className:e,...t},n)=>ljsx(Ay,{ref:n,className:ie("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-15 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));XudisplayName=AydisplayName;const CT=vforwardRef(({className:e,...t},n)=>ljsx(_y,{ref:n,className:ie("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));CTdisplayName=_ydisplayName;const jT=()=>{const[e,t]=vuseState(""),[n,r]=vuseState("all"),[o,s]=vuseState([]),i=["годовой","с-куратором","практика","теория"],a=Objectkeys(xr),u=vuseMemo(()=>asfilter(d=>{const f=e===""||dtitletoLowerCase().includes(etoLowerCase()),h=n==="all"||dsubject===n,p=olength===0||oevery(b=>dtagsincludes(b));return f&&h&&p}),[e,n,o]),c=d=>{s(f=>fincludes(d)?ffilter(h=>h!==d):[...f,d])};return ljsxs(lFragment,{children:[ljsxs(Mt,{children:[ljsx("title",{children:"Магазин курсов ЕГЭ/ОГЭ — предметы, цены, наставники | Империя Сливов"}),ljsx("meta",{name:"description",content:"Выберите курс подготовки к ЕГЭ или ОГЭ по любому предмету. Прозрачные цены, опытные наставники, проверенные школы."})]}),ljsxs("div",{className:"min-h-screen flex flex-col",children:[ljsx(Xt,{}),ljsx("main",{className:"flex-1 bg-background py-12",children:ljsxs("div",{className:"container mx-auto px-4",children:[ljsx("h1",{className:"text-4xl font-bold text-foreground mb-8",children:"Магазин курсов"}),ljsxs("div",{className:"mb-8 space-y-4",children:[ljsxs("div",{className:"relative max-w-md",children:[ljsx(ab,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-muted-foreground"}),ljsx(ls,{type:"text",placeholder:"Поиск курсов...",value:e,onChange:d=>t(dtargetvalue),className:"pl-10"})]}),ljsx(ET,{value:n,onValueChange:d=>r(d),children:ljsxs(Oy,{className:"flex-wrap h-auto bg-surface",children:[ljsx(Xu,{value:"all",children:"Все предметы"}),amap(d=>ljsx(Xu,{value:d,children:xr[d]},d))]})}),ljsx("div",{className:"flex flex-wrap gap-2",children:imap(d=>ljsx(nt,{variant:oincludes(d)?"default":"outline",className:"cursor-pointer",onClick:()=>c(d),children:d},d))})]}),ljsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:umap(d=>{vd(d);const f=yd(d);return ljsxs("div",{className:"bg-surface rounded-lg shadow-card hover:shadow-card-hover transition-smooth overflow-hidden",children:[ljsx("div",{className:"h-48 bg-gradient-to-br from-primary/20 to-surface-2 flex items-center justify-center",children:ljsx("span",{className:"text-6xl",children:"📚"})}),ljsxs("div",{className:"p-6",children:[ljsxs("div",{className:"flex gap-2 mb-3",children:[ljsx(nt,{variant:"outline",children:xr[dsubject]}),ljsx(nt,{variant:"outline",children:Jv[dlevel]})]}),ljsx("h3",{className:"text-xl font-bold text-foreground mb-2",children:dtitle}),ljsx("p",{className:"text-sm text-muted-foreground mb-4 line-clamp-2",children:ddescription}),ljsxs("div",{className:"flex items-end justify-between",children:[ljsxs("div",{children:[ljsx("p",{className:"text-sm text-muted-foreground",children:"от"}),ljsxs("p",{className:"text-2xl font-bold text-primary",children:[ftoLocaleString()," ₽",ljsx("span",{className:"text-sm text-muted-foreground",children:"/мес"})]})]}),ljsx(Pe,{asChild:!0,size:"sm",children:ljsx(Fe,{to:`/course/${dslug}`,children:"Подробнее"})})]})]})]},dslug)})}),ulength===0&&ljsx("div",{className:"text-center py-16",children:ljsx("p",{className:"text-muted-foreground text-lg",children:"Курсы не найдены. Попробуйте изменить фильтры."})})]})}),ljsx(Zt,{})]})]})};function NT(e){const t=vuseRef({value:e,previous:e});return vuseMemo(()=>(tcurrentvalue!==e&&(tcurrentprevious=tcurrentvalue,tcurrentvalue=e),tcurrentprevious),[e])}var wd="Radio",[TT,Iy]=Dt(wd),[kT,PT]=TT(wd),Ly=vforwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:s,disabled:i,value:a="on",onCheck:u,form:c,...d}=e,[f,h]=vuseState(null),p=_e(t,w=>h(w)),b=vuseRef(!1),x=f?c||!!fclosest("form"):!0;return ljsxs(kT,{scope:n,checked:o,disabled:i,children:[ljsx(eebutton,{type:"button",role:"radio","aria-checked":o,"data-state":zy(o),"data-disabled":i?"":void 0,disabled:i,value:a,...d,ref:p,onClick:Z(eonClick,w=>{o||u==null||u(),x&&(bcurrent=wisPropagationStopped(),bcurrent||wstopPropagation())})}),x&&ljsx(Fy,{control:f,bubbles:!bcurrent,name:r,value:a,checked:o,required:s,disabled:i,form:c,style:{transform:"translateX(-100%)"}})]})});LydisplayName=wd;var My="RadioIndicator",Dy=vforwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,s=PT(My,n);return ljsx(ko,{present:r||schecked,children:ljsx(eespan,{"data-state":zy(schecked),"data-disabled":sdisabled?"":void 0,...o,ref:t})})});DydisplayName=My;var RT="RadioBubbleInput",Fy=vforwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const i=vuseRef(null),a=_e(i,s),u=NT(n),c=lv(t);return vuseEffect(()=>{const d=icurrent;if(!d)return;const f=windowHTMLInputElementprototype,p=ObjectgetOwnPropertyDescriptor(f,"checked").set;if(u!==n&&p){const b=new Event("click",{bubbles:r});pcall(d,n),ddispatchEvent(b)}},[u,n,r]),ljsx(eeinput,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...ostyle,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});FydisplayName=RT;function zy(e){return e?"checked":"unchecked"}var AT=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ga="RadioGroup",[_T,E2]=Dt(Ga,[Wa,Iy]),$y=Wa(),Uy=Iy(),[OT,IT]=_T(Ga),By=vforwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:s,required:i=!1,disabled:a=!1,orientation:u,dir:c,loop:d=!0,onValueChange:f,...h}=e,p=$y(n),b=Ha(c),[x,w]=kr({prop:s,defaultProp:o??null,onChange:f,caller:Ga});return ljsx(OT,{scope:n,name:r,required:i,disabled:a,value:x,onValueChange:w,children:ljsx(yy,{asChild:!0,...p,orientation:u,dir:b,loop:d,children:ljsx(eediv,{role:"radiogroup","aria-required":i,"aria-orientation":u,"data-disabled":a?"":void 0,dir:b,...h,ref:t})})})});BydisplayName=Ga;var Vy="RadioGroupItem",Hy=vforwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,s=IT(Vy,n),i=sdisabled||r,a=$y(n),u=Uy(n),c=vuseRef(null),d=_e(t,c),f=svalue===ovalue,h=vuseRef(!1);return vuseEffect(()=>{const p=x=>{ATincludes(xkey)&&(hcurrent=!0)},b=()=>hcurrent=!1;return documentaddEventListener("keydown",p),documentaddEventListener("keyup",b),()=>{documentremoveEventListener("keydown",p),documentremoveEventListener("keyup",b)}},[]),ljsx(xy,{asChild:!0,...a,focusable:!i,active:f,children:ljsx(Ly,{disabled:i,required:srequired,checked:f,...u,...o,name:sname,ref:d,onCheck:()=>sonValueChange(ovalue),onKeyDown:Z(p=>{pkey==="Enter"&&ppreventDefault()}),onFocus:Z(oonFocus,()=>{var p;hcurrent&&((p=ccurrent)==null||pclick())})})})});HydisplayName=Vy;var LT="RadioGroupIndicator",Wy=vforwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Uy(n);return ljsx(Dy,{...o,...r,ref:t})});WydisplayName=LT;var Qy=By,Gy=Hy,MT=Wy;const Ky=vforwardRef(({className:e,...t},n)=>ljsx(Qy,{className:ie("grid gap-2",e),...t,ref:n}));KydisplayName=QydisplayName;const Zu=vforwardRef(({className:e,...t},n)=>ljsx(Gy,{ref:n,className:ie("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:ljsx(MT,{className:"flex items-center justify-center",children:ljsx(rb,{className:"h-25 w-25 fill-current text-current"})})}));ZudisplayName=GydisplayName;var DT="Label",Yy=vforwardRef((e,t)=>ljsx(eelabel,{...e,ref:t,onMouseDown:n=>{var o;ntargetclosest("button, input, select, textarea")||((o=eonMouseDown)==null||ocall(e,n),!ndefaultPrevented&&ndetail>1&&npreventDefault())}}));YydisplayName=DT;var qy=Yy;const FT=Bs("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ju=vforwardRef(({className:e,...t},n)=>ljsx(qy,{ref:n,className:ie(FT(),e),...t}));JudisplayName=qydisplayName;const Xy=vforwardRef(({className:e,...t},n)=>ljsx("textarea",{className:ie("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));XydisplayName="Textarea";var Ka="Collapsible",[zT,Zy]=Dt(Ka),[$T,bd]=zT(Ka),Jy=vforwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:s,onOpenChange:i,...a}=e,[u,c]=kr({prop:r,defaultProp:o??!1,onChange:i,caller:Ka});return ljsx($T,{scope:n,disabled:s,contentId:Ia(),open:u,onOpenToggle:vuseCallback(()=>c(d=>!d),[c]),children:ljsx(eediv,{"data-state":Ed(u),"data-disabled":s?"":void 0,...a,ref:t})})});JydisplayName=Ka;var ex="CollapsibleTrigger",tx=vforwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=bd(ex,n);return ljsx(eebutton,{type:"button","aria-controls":ocontentId,"aria-expanded":oopen||!1,"data-state":Ed(oopen),"data-disabled":odisabled?"":void 0,disabled:odisabled,...r,ref:t,onClick:Z(eonClick,oonOpenToggle)})});txdisplayName=ex;var Sd="CollapsibleContent",nx=vforwardRef((e,t)=>{const{forceMount:n,...r}=e,o=bd(Sd,e__scopeCollapsible);return ljsx(ko,{present:n||oopen,children:({present:s})=>ljsx(UT,{...r,ref:t,present:s})})});nxdisplayName=Sd;var UT=vforwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...s}=e,i=bd(Sd,n),[a,u]=vuseState(r),c=vuseRef(null),d=_e(t,c),f=vuseRef(0),h=fcurrent,p=vuseRef(0),b=pcurrent,x=iopen||a,w=vuseRef(x),m=vuseRef(void 0);return vuseEffect(()=>{const g=requestAnimationFrame(()=>wcurrent=!1);return()=>cancelAnimationFrame(g)},[]),at(()=>{const g=ccurrent;if(g){mcurrent=mcurrent||{transitionDuration:gstyletransitionDuration,animationName:gstyleanimationName},gstyletransitionDuration="0s",gstyleanimationName="none";const y=ggetBoundingClientRect();fcurrent=yheight,pcurrent=ywidth,wcurrent||(gstyletransitionDuration=mcurrenttransitionDuration,gstyleanimationName=mcurrentanimationName),u(r)}},[iopen,r]),ljsx(eediv,{"data-state":Ed(iopen),"data-disabled":idisabled?"":void 0,id:icontentId,hidden:!x,...s,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...estyle},children:x&&o})});function Ed(e){return e?"open":"closed"}var BT=Jy,VT=tx,HT=nx,Ft="Accordion",WT=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Cd,QT,GT]=qc(Ft),[Ya,C2]=Dt(Ft,[GT,Zy]),jd=Zy(),rx=RforwardRef((e,t)=>{const{type:n,...r}=e,o=r,s=r;return ljsx(CdProvider,{scope:e__scopeAccordion,children:n==="multiple"?ljsx(XT,{...s,ref:t}):ljsx(qT,{...o,ref:t})})});rxdisplayName=Ft;var[ox,KT]=Ya(Ft),[sx,YT]=Ya(Ft,{collapsible:!1}),qT=RforwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:s=!1,...i}=e,[a,u]=kr({prop:n,defaultProp:r??"",onChange:o,caller:Ft});return ljsx(ox,{scope:e__scopeAccordion,value:RuseMemo(()=>a?[a]:[],[a]),onItemOpen:u,onItemClose:RuseCallback(()=>s&&u(""),[s,u]),children:ljsx(sx,{scope:e__scopeAccordion,collapsible:s,children:ljsx(ix,{...i,ref:t})})})}),XT=RforwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...s}=e,[i,a]=kr({prop:n,defaultProp:r??[],onChange:o,caller:Ft}),u=RuseCallback(d=>a((f=[])=>[...f,d]),[a]),c=RuseCallback(d=>a((f=[])=>ffilter(h=>h!==d)),[a]);return ljsx(ox,{scope:e__scopeAccordion,value:i,onItemOpen:u,onItemClose:c,children:ljsx(sx,{scope:e__scopeAccordion,collapsible:!0,children:ljsx(ix,{...s,ref:t})})})}),[ZT,qa]=Ya(Ft),ix=RforwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:s="vertical",...i}=e,a=RuseRef(null),u=_e(a,t),c=QT(n),f=Ha(o)==="ltr",h=Z(eonKeyDown,p=>{var k;if(!WTincludes(pkey))return;const b=ptarget,x=c().filter(O=>{var _;return!((_=Orefcurrent)!=null&&_disabled)}),w=xfindIndex(O=>Orefcurrent===b),m=xlength;if(w===-1)return;ppreventDefault();let g=w;const y=0,S=m-1,E=()=>{g=w+1,g>S&&(g=y)},C=()=>{g=w-1,g<y&&(g=S)};switch(pkey){case"Home":g=y;break;case"End":g=S;break;case"ArrowRight":s==="horizontal"&&(f?E():C());break;case"ArrowDown":s==="vertical"&&E();break;case"ArrowLeft":s==="horizontal"&&(f?C():E());break;case"ArrowUp":s==="vertical"&&C();break}const j=g%m;(k=x[j].refcurrent)==null||kfocus()});return ljsx(ZT,{scope:n,disabled:r,direction:o,orientation:s,children:ljsx(CdSlot,{scope:n,children:ljsx(eediv,{...i,"data-orientation":s,ref:u,onKeyDown:r?void 0:h})})})}),ha="AccordionItem",[JT,Nd]=Ya(ha),ax=RforwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,s=qa(ha,n),i=KT(ha,n),a=jd(n),u=Ia(),c=r&&ivalueincludes(r)||!1,d=sdisabled||edisabled;return ljsx(JT,{scope:n,open:c,disabled:d,triggerId:u,children:ljsx(BT,{"data-orientation":sorientation,"data-state":px(c),...a,...o,ref:t,disabled:d,open:c,onOpenChange:f=>{f?ionItemOpen(r):ionItemClose(r)}})})});axdisplayName=ha;var lx="AccordionHeader",ux=RforwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=qa(Ft,n),s=Nd(lx,n);return ljsx(eeh3,{"data-orientation":oorientation,"data-state":px(sopen),"data-disabled":sdisabled?"":void 0,...r,ref:t})});uxdisplayName=lx;var ec="AccordionTrigger",cx=RforwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=qa(Ft,n),s=Nd(ec,n),i=YT(ec,n),a=jd(n);return ljsx(CdItemSlot,{scope:n,children:ljsx(VT,{"aria-disabled":sopen&&!icollapsible||void 0,"data-orientation":oorientation,id:striggerId,...a,...r,ref:t})})});cxdisplayName=ec;var dx="AccordionContent",fx=RforwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=qa(Ft,n),s=Nd(dx,n),i=jd(n);return ljsx(HT,{role:"region","aria-labelledby":striggerId,"data-orientation":oorientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...estyle}})});fxdisplayName=dx;function px(e){return e?"open":"closed"}var e2=rx,t2=ax,n2=ux,hx=cx,mx=fx;const gx=e2,Td=vforwardRef(({className:e,...t},n)=>ljsx(t2,{ref:n,className:ie("border-b",e),...t}));TddisplayName="AccordionItem";const kd=vforwardRef(({className:e,children:t,...n},r)=>ljsx(n2,{className:"flex",children:ljsxs(hx,{ref:r,className:ie("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,ljsx(nb,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));kddisplayName=hxdisplayName;const Pd=vforwardRef(({className:e,children:t,...n},r)=>ljsx(mx,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:ljsx("div",{className:ie("pb-4 pt-0",e),children:t})}));PddisplayName=mxdisplayName;const r2=()=>{const{slug:e}=hj(),{toast:t}=sg(),n=asfind(m=>mslug===e),[r,o]=vuseState(void 0),[s,i]=vuseState(!1),[a,u]=vuseState({name:"",telegram:"",email:"",comment:""});if(!n)return ljsxs("div",{className:"min-h-screen flex flex-col",children:[ljsx(Xt,{}),ljsx("div",{className:"flex-1 flex items-center justify-center",children:ljsxs("div",{className:"text-center",children:[ljsx("h1",{className:"text-4xl font-bold text-foreground mb-4",children:"Курс не найден"}),ljsx(Pe,{asChild:!0,children:ljsx(Fe,{to:"/shop",children:"Вернуться в магазин"})})]})}),ljsx(Zt,{})]});const c=vd(n),d=iT(n),f=yd(n),h=aT(n,r),p=r?lT(r):void 0,b=async m=>{if(mpreventDefault(),!aname||!atelegram){t({variant:"destructive",title:"Ошибка",description:"Заполните обязательные поля: имя и Telegram"});return}t({title:"Спасибо!",description:"Мы свяжемся с вами в Telegram в ближайшее время."}),i(!1),u({name:"",telegram:"",email:"",comment:""})},x=`https://tme/Imperiya_VasilevsaBOt?start=course_${nslug}&utm_source=site&utm_medium=cta&utm_campaign=course_${nslug}`,w=[{question:"Как проходит обучение?",answer:"Обучение проходит онлайн через личный кабинет. Вы получаете доступ к видеоурокам, домашним заданиям и вебинарам."},{question:"Можно ли вернуть деньги?",answer:"Да, в течение 14 дней с момента покупки вы можете вернуть деньги без объяснения причин."},{question:"Нужен ли наставник?",answer:"Наставник не обязателен, но значительно повышает эффективность подготовки за счёт персональной поддержки."}];return ljsxs(lFragment,{children:[ljsxs(Mt,{children:[ljsxs("title",{children:[ntitle," — ЕГЭ | Империя Сливов"]}),ljsx("meta",{name:"description",content:ndescription}),ljsx("script",{type:"application/ld+json",children:JSONstringify({"@context":"https://schemaorg","@type":"Product",name:ntitle,description:ndescription,offers:{"@type":"Offer",price:f,priceCurrency:"RUB"}})})]}),ljsxs("div",{className:"min-h-screen flex flex-col",children:[ljsx(Xt,{}),ljsxs("main",{className:"flex-1 bg-background",children:[ljsx("div",{className:"bg-surface border-b border-border py-3",children:ljsx("div",{className:"container mx-auto px-4",children:ljsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[ljsx(Fe,{to:"/",className:"hover:text-primary transition-colors",children:ljsx(ob,{className:"w-4 h-4"})}),ljsx("span",{children:"/"}),ljsx(Fe,{to:"/shop",className:"hover:text-primary transition-colors",children:"Магазин"}),ljsx("span",{children:"/"}),ljsx("span",{className:"text-foreground",children:ntitle})]})})}),ljsxs("div",{className:"container mx-auto px-4 py-12",children:[ljsxs("div",{className:"mb-12",children:[ljsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[ljsx(nt,{children:xr[nsubject]}),ljsx(nt,{children:Jv[nlevel]}),ntagsmap(m=>ljsx(nt,{variant:"outline",children:m},m))]}),ljsx("h1",{className:"text-4xl font-bold text-foreground mb-4",children:ntitle}),c&&ljsxs("p",{className:"text-muted-foreground",children:["Школа: ",ljsx("span",{className:"font-semibold text-foreground",children:cname})," ","(наценка школы: +",cmarkup_from," ₽/мес)"]}),ljsxs("p",{className:"text-2xl font-bold text-primary mt-4",children:["от ",nmonthly_price_basetoLocaleString()," ₽",ljsx("span",{className:"text-base text-muted-foreground",children:"/мес"})]})]}),ljsxs("div",{className:"grid lg:grid-cols-3 gap-8",children:[ljsxs("div",{className:"lg:col-span-2 space-y-8",children:[ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Что входит в курс"}),ljsx("div",{className:"grid md:grid-cols-2 gap-3",children:nincludesmap((m,g)=>ljsxs("div",{className:"flex items-start gap-2",children:[ljsx(Oa,{className:"w-5 h-5 text-success flex-shrink-0 mt-05"}),ljsx("span",{className:"text-muted-foreground",children:m})]},g))})]}),ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Описание"}),ljsx("p",{className:"text-muted-foreground leading-relaxed",children:ndescription})]}),dlength>0&&ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Выбрать наставника"}),ljsx(Ky,{value:r||"none",onValueChange:m=>o(m==="none"?void 0:m),children:ljsxs("div",{className:"space-y-3",children:[ljsxs("div",{className:"flex items-center space-x-3 p-4 bg-surface rounded-lg",children:[ljsx(Zu,{value:"none",id:"mentor-none"}),ljsxs(Ju,{htmlFor:"mentor-none",className:"flex-1 cursor-pointer",children:[ljsx("p",{className:"font-semibold text-foreground",children:"Без наставника"}),ljsx("p",{className:"text-sm text-muted-foreground",children:"+0 ₽/мес"})]})]}),dmap(m=>ljsxs("div",{className:"flex items-center space-x-3 p-4 bg-surface rounded-lg",children:[ljsx(Zu,{value:mslug,id:`mentor-${mslug}`}),ljsxs(Ju,{htmlFor:`mentor-${mslug}`,className:"flex-1 cursor-pointer",children:[ljsx("p",{className:"font-semibold text-foreground",children:mname}),ljsx("p",{className:"text-sm text-muted-foreground line-clamp-1",children:mbio}),ljsxs("p",{className:"text-sm text-primary font-semibold mt-1",children:["+",mmonthly_markup," ₽/мес"]})]})]},mslug))]})})]}),ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Частые вопросы"}),ljsx(gx,{type:"single",collapsible:!0,children:wmap((m,g)=>ljsxs(Td,{value:`faq-${g}`,children:[ljsx(kd,{className:"text-left",children:mquestion}),ljsx(Pd,{className:"text-muted-foreground",children:manswer})]},g))})]})]}),ljsx("div",{className:"lg:col-span-1",children:ljsxs("div",{className:"bg-surface rounded-lg p-6 shadow-card sticky top-24",children:[ljsx("h3",{className:"text-xl font-bold text-foreground mb-4",children:"Стоимость"}),ljsxs("div",{className:"space-y-3 mb-6",children:[ljsxs("div",{className:"flex justify-between text-sm",children:[ljsx("span",{className:"text-muted-foreground",children:"Базовая цена:"}),ljsxs("span",{className:"text-foreground font-semibold",children:[nmonthly_price_basetoLocaleString()," ₽"]})]}),c&&ljsxs("div",{className:"flex justify-between text-sm",children:[ljsx("span",{className:"text-muted-foreground",children:"Наценка школы:"}),ljsxs("span",{className:"text-foreground font-semibold",children:["+",cmarkup_from," ₽"]})]}),p&&ljsxs("div",{className:"flex justify-between text-sm",children:[ljsx("span",{className:"text-muted-foreground",children:"Наставник:"}),ljsxs("span",{className:"text-foreground font-semibold",children:["+",pmonthly_markup," ₽"]})]}),ljsx("div",{className:"border-t border-border pt-3",children:ljsxs("div",{className:"flex justify-between",children:[ljsx("span",{className:"font-bold text-foreground",children:"Итого:"}),ljsxs("span",{className:"text-2xl font-bold text-primary",children:[htoLocaleString()," ₽",ljsx("span",{className:"text-sm text-muted-foreground",children:"/мес"})]})]})})]}),ljsxs("div",{className:"space-y-3",children:[ljsx(Pe,{asChild:!0,className:"w-full",size:"lg",children:ljsx("a",{href:x,target:"_blank",rel:"noopener noreferrer",children:"Оформить в Telegram"})}),ljsx(Pe,{variant:"outline",className:"w-full",onClick:()=>i(!s),children:"Оставить заявку"}),ljsx(Pe,{variant:"ghost",className:"w-full",asChild:!0,children:ljsxs("a",{href:"https://tme/vasiileuss",target:"_blank",rel:"noopener noreferrer",children:[ljsx(Dg,{className:"mr-2 w-4 h-4"}),"Поддержка"]})})]}),s&&ljsxs("form",{onSubmit:b,className:"mt-6 pt-6 border-t border-border space-y-3",children:[ljsx(ls,{placeholder:"Ваше имя *",value:aname,onChange:m=>u({...a,name:mtargetvalue}),required:!0}),ljsx(ls,{placeholder:"Telegram @username *",value:atelegram,onChange:m=>u({...a,telegram:mtargetvalue}),required:!0}),ljsx(ls,{type:"email",placeholder:"Email (необязательно)",value:aemail,onChange:m=>u({...a,email:mtargetvalue})}),ljsx(Xy,{placeholder:"Комментарий",value:acomment,onChange:m=>u({...a,comment:mtargetvalue}),rows:3}),ljsx(Pe,{type:"submit",className:"w-full",children:"Отправить заявку"})]})]})})]})]})]}),ljsx(Zt,{})]})]})},Mp=[{question:"В чём разница между школой и наставником?",answer:"Школа предоставляет образовательный контент: видеоуроки, домашние задания, вебинары. Наставник — это личный куратор, который помогает разобраться в сложных темах, проверяет работы и мотивирует на протяжении всего курса."},{question:"Что входит в стоимость курса?",answer:"В стоимость входят видеоуроки по всем темам, домашние задания с проверкой, регулярные вебинары, пробные тестирования и доступ в чат с кураторами. При выборе наставника добавляется персональная поддержка."},{question:"Можно ли вернуть деньги?",answer:"Да, в течение 14 дней с момента покупки вы можете вернуть деньги без объяснения причин. Для возврата обратитесь в поддержку."},{question:"Можно ли учиться с нескольких устройств?",answer:"Да, вы можете использовать любые устройства для доступа к курсу: компьютер, планшет или смартфон. Все данные синхронизируются автоматически."},{question:"Как записаться на курс?",answer:"Выберите курс в магазине, определитесь с наставником (по желанию) и нажмите кнопку 'Оформить в Telegram'. Наш бот проведёт вас через процесс записи."},{question:"Есть ли пробный период?",answer:"Мы не предоставляем пробный период, но вы можете вернуть деньги в течение 14 дней, если курс вам не подошёл."}],o2=()=>{const e={"@context":"https://schemaorg","@type":"FAQPage",mainEntity:Mpmap(t=>({"@type":"Question",name:tquestion,acceptedAnswer:{"@type":"Answer",text:tanswer}}))};return ljsxs(lFragment,{children:[ljsxs(Mt,{children:[ljsx("title",{children:"Частые вопросы — FAQ | Империя Сливов"}),ljsx("meta",{name:"description",content:"Ответы на частые вопросы о курсах подготовки к ЕГЭ и ОГЭ. Узнайте всё о процессе обучения, оплате и возврате."}),ljsx("script",{type:"application/ld+json",children:JSONstringify(e)})]}),ljsxs("div",{className:"min-h-screen flex flex-col",children:[ljsx(Xt,{}),ljsx("main",{className:"flex-1 bg-background py-12",children:ljsxs("div",{className:"container mx-auto px-4 max-w-3xl",children:[ljsx("h1",{className:"text-4xl font-bold text-foreground mb-4",children:"Частые вопросы"}),ljsx("p",{className:"text-muted-foreground mb-12",children:"Ответы на самые популярные вопросы о наших курсах и процессе обучения"}),ljsx(gx,{type:"single",collapsible:!0,className:"space-y-4",children:Mpmap((t,n)=>ljsxs(Td,{value:`faq-${n}`,className:"bg-surface rounded-lg px-6 border border-border",children:[ljsx(kd,{className:"text-left hover:no-underline py-6",children:ljsx("span",{className:"font-semibold text-foreground",children:tquestion})}),ljsx(Pd,{className:"text-muted-foreground pb-6",children:tanswer})]},n))}),ljsxs("div",{className:"mt-12 p-6 bg-surface rounded-lg border border-border",children:[ljsx("h2",{className:"text-xl font-bold text-foreground mb-2",children:"Не нашли ответ?"}),ljsx("p",{className:"text-muted-foreground mb-4",children:"Свяжитесь с нашей поддержкой в Telegram — мы ответим на любые вопросы"}),ljsx("a",{href:"https://tme/vasiileuss",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Написать в поддержку →"})]})]})}),ljsx(Zt,{})]})]})},s2=()=>{const[e,t]=vuseState("all"),[n,r]=vuseState("all"),o=Yufilter(i=>{const a=icourse?asfind(d=>dslug===icourse):null,u=e==="all"||a&&asubject===e,c=n==="all"||ischool&&ischool===n;return u&&c}),s=Arrayfrom(new Set(asmap(i=>isubject)));return Arrayfrom(new Set(Yumap(i=>ischool).filter(Boolean))),ljsxs(lFragment,{children:[ljsxs(Mt,{children:[ljsx("title",{children:"Отзывы учеников — реальные истории успеха | Империя Сливов"}),ljsx("meta",{name:"description",content:"Читайте отзывы учеников о курсах подготовки к ЕГЭ и ОГЭ. Реальные истории, оценки и результаты от тех, кто уже прошёл обучение."})]}),ljsxs("div",{className:"min-h-screen flex flex-col",children:[ljsx(Xt,{}),ljsx("main",{className:"flex-1 bg-background py-12",children:ljsxs("div",{className:"container mx-auto px-4",children:[ljsx("h1",{className:"text-4xl font-bold text-foreground mb-4",children:"Отзывы учеников"}),ljsx("p",{className:"text-muted-foreground mb-8 max-w-2xl",children:"Реальные отзывы от учеников, которые уже прошли подготовку и успешно сдали экзамены"}),ljsx("div",{className:"mb-8 flex flex-wrap gap-3",children:ljsxs("div",{className:"flex flex-wrap gap-2",children:[ljsx(nt,{variant:e==="all"?"default":"outline",className:"cursor-pointer",onClick:()=>t("all"),children:"Все предметы"}),smap(i=>ljsx(nt,{variant:e===i?"default":"outline",className:"cursor-pointer",onClick:()=>t(i),children:xr[i]},i))]})}),ljsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 max-w-5xl mx-auto",children:omap(i=>{const a=icourse?asfind(c=>cslug===icourse):null,u=ischool?mdfind(c=>cslug===ischool):null;return ljsxs("div",{className:"bg-surface p-6 rounded-lg shadow-card hover:shadow-card-hover transition-smooth",children:[ljsxs("div",{className:"flex items-start justify-between mb-4",children:[ljsxs("div",{className:"flex items-center gap-2",children:[ljsx("p",{className:"font-semibold text-foreground",children:iauthor_name}),iis_verified&&ljsx(Oa,{className:"w-4 h-4 text-success"})]}),ljsx("div",{className:"flex gap-1",children:Arrayfrom({length:irating}).map((c,d)=>ljsx(Fg,{className:"w-4 h-4 fill-primary text-primary"},d))})]}),ljsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:itext}),ljsxs("div",{className:"flex flex-wrap gap-2",children:[a&&ljsx(nt,{variant:"outline",children:xr[asubject]}),u&&ljsx(nt,{variant:"outline",children:uname}),ljsx(nt,{variant:"outline",className:"text-xs",children:new Date(idate).toLocaleDateString("ru-RU")})]})]},iid)})}),olength===0&&ljsx("div",{className:"text-center py-16",children:ljsx("p",{className:"text-muted-foreground text-lg",children:"Отзывы не найдены. Попробуйте изменить фильтры."})})]})}),ljsx(Zt,{})]})]})},i2=()=>ljsxs(lFragment,{children:[ljsxs(Mt,{children:[ljsx("title",{children:"О нас — миссия и ценности | Империя Сливов"}),ljsx("meta",{name:"description",content:"Узнайте о платформе Империя Сливов — агрегаторе курсов подготовки к ЕГЭ и ОГЭ. Наша миссия, ценности и контакты."})]}),ljsxs("div",{className:"min-h-screen flex flex-col",children:[ljsx(Xt,{}),ljsxs("main",{className:"flex-1 bg-background",children:[ljsx("div",{className:"hero-gradient py-20",children:ljsxs("div",{className:"container mx-auto px-4 max-w-4xl text-center",children:[ljsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-6",children:"О платформе Империя Сливов"}),ljsx("p",{className:"text-lg text-muted-foreground",children:"Мы делаем качественное образование доступным"})]})}),ljsxs("div",{className:"container mx-auto px-4 py-12 max-w-4xl",children:[ljsxs("div",{className:"space-y-8 mb-12",children:[ljsxs("div",{className:"bg-surface p-8 rounded-lg shadow-card",children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Наша миссия"}),ljsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"Империя Сливов — это агрегатор образовательных программ, созданный для того, чтобы каждый ученик мог найти качественный курс подготовки к ЕГЭ и ОГЭ по доступной цене. Мы собрали лучшие школы и наставников в одном месте, чтобы вы могли легко сравнить предложения и выбрать идеальный вариант для себя."}),ljsx("p",{className:"text-muted-foreground leading-relaxed",children:"Наша платформа работает по принципу прозрачности: вы видите базовую стоимость курса, наценку школы и наценку наставника. Никаких скрытых платежей — только честные цены и качественное образование."})]}),ljsxs("div",{className:"bg-surface p-8 rounded-lg shadow-card",children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Что мы предлагаем"}),ljsxs("ul",{className:"space-y-3 text-muted-foreground",children:[ljsxs("li",{className:"flex items-start gap-2",children:[ljsx("span",{className:"text-primary font-bold",children:"•"}),ljsxs("span",{children:[ljsx("strong",{className:"text-foreground",children:"Удобный каталог"})," курсов по всем предметам ЕГЭ и ОГЭ"]})]}),ljsxs("li",{className:"flex items-start gap-2",children:[ljsx("span",{className:"text-primary font-bold",children:"•"}),ljsxs("span",{children:[ljsx("strong",{className:"text-foreground",children:"Прозрачные цены"})," с разбиением на базовую стоимость и наценки"]})]}),ljsxs("li",{className:"flex items-start gap-2",children:[ljsx("span",{className:"text-primary font-bold",children:"•"}),ljsxs("span",{children:[ljsx("strong",{className:"text-foreground",children:"Лучшие школы"})," и опытные наставники в одном месте"]})]}),ljsxs("li",{className:"flex items-start gap-2",children:[ljsx("span",{className:"text-primary font-bold",children:"•"}),ljsxs("span",{children:[ljsx("strong",{className:"text-foreground",children:"Быстрая запись"})," через Telegram-бот"]})]})]})]})]}),ljsxs("div",{className:"bg-surface-2 p-8 rounded-lg border border-border",children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-6 text-center",children:"Свяжитесь с нами"}),ljsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[ljsx(Pe,{variant:"outline",asChild:!0,className:"h-auto py-4 flex-col gap-2",children:ljsxs("a",{href:"https://tme/Imperiya_VasilevsaBOt",target:"_blank",rel:"noopener noreferrer",children:[ljsx(lb,{className:"w-6 h-6"}),ljsxs("div",{className:"text-center",children:[ljsx("p",{className:"font-semibold",children:"Telegram бот"}),ljsx("p",{className:"text-xs text-muted-foreground",children:"Записаться на курс"})]})]})}),ljsx(Pe,{variant:"outline",asChild:!0,className:"h-auto py-4 flex-col gap-2",children:ljsxs("a",{href:"https://tme/vasiileuss",target:"_blank",rel:"noopener noreferrer",children:[ljsx(Dg,{className:"w-6 h-6"}),ljsxs("div",{className:"text-center",children:[ljsx("p",{className:"font-semibold",children:"Поддержка"}),ljsx("p",{className:"text-xs text-muted-foreground",children:"Задать вопрос"})]})]})}),ljsx(Pe,{variant:"outline",asChild:!0,className:"h-auto py-4 flex-col gap-2",children:ljsxs("a",{href:"mailto:egeze@internetru",children:[ljsx(Mg,{className:"w-6 h-6"}),ljsxs("div",{className:"text-center",children:[ljsx("p",{className:"font-semibold",children:"Email"}),ljsx("p",{className:"text-xs text-muted-foreground",children:"Сотрудничество"})]})]})})]})]}),ljsxs("div",{className:"mt-8 p-6 bg-surface rounded-lg border border-border",children:[ljsx("h3",{className:"font-semibold text-foreground mb-2",children:"Важная информация"}),ljsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Платформа выступает как агрегатор образовательных программ и не размещает/не распространяет материалы, защищённые авторским правом. Все товарные знаки и бренды принадлежат их владельцам. Для правообладателей: egeze@internetru"})]})]})]}),ljsx(Zt,{})]})]}),a2=()=>ljsxs(lFragment,{children:[ljsxs(Mt,{children:[ljsx("title",{children:"Политика конфиденциальности | Империя Сливов"}),ljsx("meta",{name:"description",content:"Политика конфиденциальности платформы Империя Сливов"})]}),ljsxs("div",{className:"min-h-screen flex flex-col",children:[ljsx(Xt,{}),ljsx("main",{className:"flex-1 bg-background py-12",children:ljsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[ljsx("h1",{className:"text-4xl font-bold text-foreground mb-8",children:"Политика конфиденциальности"}),ljsxs("div",{className:"prose prose-invert max-w-none space-y-6 text-muted-foreground",children:[ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"1. Общие положения"}),ljsx("p",{children:'Настоящая политика конфиденциальности определяет порядок обработки и защиты персональных данных пользователей платформы "Империя Сливов})]}),ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"2. Собираемая информация"}),ljsx("p",{children:"Мы можем собирать следующую информацию:"}),ljsxs("ul",{className:"list-disc pl-6 space-y-2",children:[ljsx("li",{children:"Имя и контактные данные (Telegram, email)"}),ljsx("li",{children:"Информация о выбранных курсах и наставниках"}),ljsx("li",{children:"Данные об использовании сайта (cookies, IP-адрес)"})]})]}),ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"3. Использование информации"}),ljsx("p",{children:"Собранные данные используются для:"}),ljsxs("ul",{className:"list-disc pl-6 space-y-2",children:[ljsx("li",{children:"Обработки заявок на курсы"}),ljsx("li",{children:"Связи с пользователями"}),ljsx("li",{children:"Улучшения качества сервиса"}),ljsx("li",{children:"Аналитики и статистики"})]})]}),ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"4. Защита данных"}),ljsx("p",{children:"Мы применяем современные технологии защиты информации и не передаём ваши данные третьим лицам без вашего согласия, за исключением случаев, предусмотренных законодательством."})]}),ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"5. Контакты"}),ljsxs("p",{children:["По вопросам конфиденциальности обращайтесь:"," ",ljsx("a",{href:"mailto:egeze@internetru",className:"text-primary hover:underline",children:"egeze@internetru"})]})]})]})]})}),ljsx(Zt,{})]})]}),l2=()=>ljsxs(lFragment,{children:[ljsxs(Mt,{children:[ljsx("title",{children:"Условия использования | Империя Сливов"}),ljsx("meta",{name:"description",content:"Пользовательское соглашение платформы Империя Сливов"})]}),ljsxs("div",{className:"min-h-screen flex flex-col",children:[ljsx(Xt,{}),ljsx("main",{className:"flex-1 bg-background py-12",children:ljsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[ljsx("h1",{className:"text-4xl font-bold text-foreground mb-8",children:"Условия использования"}),ljsxs("div",{className:"prose prose-invert max-w-none space-y-6 text-muted-foreground",children:[ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"1. Принятие условий"}),ljsx("p",{children:'Используя платформу "Империя Сливов", вы соглашаетесь с настоящими условиями использования. Если вы не согласны с этими условиями, пожалуйста, не используйте наш сервис.'})]}),ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"2. Описание сервиса"}),ljsx("p",{children:'"Империя Сливов" является агрегатором образовательных программ. Мы не являемся прямым поставщиком образовательных услуг, а предоставляем платформу для поиска и выбора курсов от партнёрских школ.'})]}),ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"3. Пользовательские обязательства"}),ljsx("p",{children:"Пользователь обязуется:"}),ljsxs("ul",{className:"list-disc pl-6 space-y-2",children:[ljsx("li",{children:"Предоставлять достоверную информацию при регистрации"}),ljsx("li",{children:"Не использовать сервис в незаконных целях"}),ljsx("li",{children:"Соблюдать авторские права третьих лиц"})]})]}),ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"4. Оплата и возврат"}),ljsx("p",{children:"Оплата курсов осуществляется напрямую партнёрским школам. Условия возврата определяются политикой конкретной школы. В большинстве случаев возврат возможен в течение 14 дней с момента покупки."})]}),ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"5. Ограничение ответственности"}),ljsx("p",{children:"Платформа не несёт ответственности за качество образовательных услуг, предоставляемых партнёрскими школами. Все претензии по качеству обучения направляйте непосредственно школе-партнёру."})]}),ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-3",children:"6. Контакты"}),ljsxs("p",{children:["Для связи:"," ",ljsx("a",{href:"mailto:egeze@internetru",className:"text-primary hover:underline",children:"egeze@internetru"})]})]})]})]})}),ljsx(Zt,{})]})]}),u2=Bs("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),vx=vforwardRef(({className:e,variant:t,...n},r)=>ljsx("div",{ref:r,role:"alert",className:ie(u2({variant:t}),e),...n}));vxdisplayName="Alert";const c2=vforwardRef(({className:e,...t},n)=>ljsx("h5",{ref:n,className:ie("mb-1 font-medium leading-none tracking-tight",e),...t}));c2displayName="AlertTitle";const yx=vforwardRef(({className:e,...t},n)=>ljsx("div",{ref:n,className:ie("text-sm [&_p]:leading-relaxed",e),...t}));yxdisplayName="AlertDescription";const d2=()=>ljsxs(lFragment,{children:[ljsxs(Mt,{children:[ljsx("title",{children:"Дисклеймер | Империя Сливов"}),ljsx("meta",{name:"description",content:"Правовая информация и дисклеймер платформы Империя Сливов"})]}),ljsxs("div",{className:"min-h-screen flex flex-col",children:[ljsx(Xt,{}),ljsx("main",{className:"flex-1 bg-background py-12",children:ljsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[ljsx("h1",{className:"text-4xl font-bold text-foreground mb-8",children:"Дисклеймер"}),ljsxs(vx,{className:"mb-8 border-primary/50 bg-primary/10",children:[ljsx(db,{className:"h-5 w-5 text-primary"}),ljsx(yx,{className:"text-foreground",children:"Внимание! Важная правовая информация о работе платформы."})]}),ljsxs("div",{className:"prose prose-invert max-w-none space-y-6 text-muted-foreground bg-surface p-8 rounded-lg shadow-card",children:[ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Статус платформы"}),ljsxs("p",{className:"leading-relaxed",children:['Платформа "Империя Сливов" выступает исключительно как'," ",ljsx("strong",{className:"text-foreground",children:"агрегатор образовательных программ"})," ","и не размещает и не распространяет материалы, защищённые авторским правом."]})]}),ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Авторские права"}),ljsx("p",{className:"leading-relaxed",children:"Все товарные знаки, логотипы, названия курсов и образовательные материалы принадлежат их законным владельцам — партнёрским школам и образовательным платформам."}),ljsx("p",{className:"leading-relaxed mt-4",children:"Мы уважаем права интеллектуальной собственности и сотрудничаем только с легальными образовательными организациями."})]}),ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Роль платформы"}),ljsx("p",{className:"leading-relaxed",children:'"Империя Сливов" предоставляет информационные услуги:'}),ljsxs("ul",{className:"list-disc pl-6 space-y-2 mt-3",children:[ljsx("li",{children:"Агрегацию и систематизацию информации о курсах"}),ljsx("li",{children:"Сравнение цен и условий обучения"}),ljsx("li",{children:"Упрощение процесса выбора и записи на курсы"}),ljsx("li",{children:"Техническую поддержку пользователей"})]})]}),ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Для правообладателей"}),ljsxs("p",{className:"leading-relaxed",children:["Если вы являетесь правообладателем и считаете, что ваши права нарушены, пожалуйста, свяжитесь с нами по адресу:"," ",ljsx("a",{href:"mailto:egeze@internetru",className:"text-primary hover:underline font-semibold",children:"egeze@internetru"})]}),ljsx("p",{className:"leading-relaxed mt-4",children:"Мы рассматриваем все обращения в течение 3 рабочих дней и оперативно удаляем спорный контент при подтверждении нарушения прав."})]}),ljsxs("section",{children:[ljsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Юридическая информация"}),ljsxs("div",{className:"bg-surface-2 p-6 rounded-lg border border-border",children:[ljsx("p",{className:"font-semibold text-foreground mb-2",children:'ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ "ПОДГОТОВКА К ЕГЭ ОНЛАЙН"'}),ljsx("p",{className:"text-sm",children:"ОГРНИП: 12077300028711"}),ljsx("p",{className:"text-sm",children:"ИНН: 97153735646"}),ljsx("p",{className:"text-sm mt-3",children:"© 2019–2025, Империя Сливов"})]})]})]})]})}),ljsx(Zt,{})]})]}),f2=()=>{const e=Ws();return vuseEffect(()=>{consoleerror("404 Error: User attempted to access non-existent route:",epathname)},[epathname]),ljsx("div",{className:"flex min-h-screen items-center justify-center bg-background",children:ljsxs("div",{className:"text-center",children:[ljsx("h1",{className:"mb-4 text-6xl font-bold text-primary",children:"404"}),ljsx("p",{className:"mb-4 text-2xl text-foreground",children:"Страница не найдена"}),ljsx("p",{className:"mb-8 text-muted-foreground",children:"К сожалению, запрашиваемая страница не существует"}),ljsxs("div",{className:"flex gap-4 justify-center",children:[ljsx("a",{href:"/",className:"bg-primary text-primary-foreground px-6 py-3 rounded-md font-semibold hover:bg-primary-hover transition-smooth",children:"На главную"}),ljsx("a",{href:"/shop",className:"border border-primary text-primary px-6 py-3 rounded-md font-semibold hover:bg-primary/10 transition-smooth",children:"В магазин"})]})]})})},p2=new MC,h2=()=>ljsx(FC,{client:p2,children:ljsxs(fC,{children:[ljsx(Kb,{}),ljsx(NS,{}),ljsx(Mj,{children:ljsxs(Pj,{children:[ljsx(Et,{path:"/",element:ljsx(sT,{})}),ljsx(Et,{path:"/shop",element:ljsx(jT,{})}),ljsx(Et,{path:"/course/:slug",element:ljsx(r2,{})}),ljsx(Et,{path:"/faq",element:ljsx(o2,{})}),ljsx(Et,{path:"/reviews",element:ljsx(s2,{})}),ljsx(Et,{path:"/about",element:ljsx(i2,{})}),ljsx(Et,{path:"/privacy",element:ljsx(a2,{})}),ljsx(Et,{path:"/terms",element:ljsx(l2,{})}),ljsx(Et,{path:"/disclaimer",element:ljsx(d2,{})}),ljsx(Et,{path:"*",element:ljsx(f2,{})})]})})]})});og(documentgetElementById("root")).render(ljsx(h2,{}));



© 2023 Quttera Ltd. All rights reserved.