var Rf=e=>{throw TypeError(e)};var rl=(e,t,n)=>t.has(e)||Rf("Cannot "+n);var A=(e,t,n)=>(rl(e,t,"read from private field"),n?n.call(e):t.get(e)),K=(e,t,n)=>t.has(e)?Rf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),z=(e,t,n,r)=>(rl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),be=(e,t,n)=>(rl(e,t,"access private method"),n);var Ks=(e,t,n,r)=>({set _(i){z(e,t,i,n)},get _(){return A(e,t,r)}});function Dw(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Ym(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xm={exports:{}},Ea={},qm={exports:{}},W={};/**
 * @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 Ds=Symbol.for("react.element"),jw=Symbol.for("react.portal"),Lw=Symbol.for("react.fragment"),Ow=Symbol.for("react.strict_mode"),_w=Symbol.for("react.profiler"),Iw=Symbol.for("react.provider"),Fw=Symbol.for("react.context"),Vw=Symbol.for("react.forward_ref"),zw=Symbol.for("react.suspense"),Bw=Symbol.for("react.memo"),$w=Symbol.for("react.lazy"),Nf=Symbol.iterator;function Uw(e){return e===null||typeof e!="object"?null:(e=Nf&&e[Nf]||e["@@iterator"],typeof e=="function"?e:null)}var Zm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jm=Object.assign,eg={};function mi(e,t,n){this.props=e,this.context=t,this.refs=eg,this.updater=n||Zm}mi.prototype.isReactComponent={};mi.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")};mi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tg(){}tg.prototype=mi.prototype;function Rc(e,t,n){this.props=e,this.context=t,this.refs=eg,this.updater=n||Zm}var Nc=Rc.prototype=new tg;Nc.constructor=Rc;Jm(Nc,mi.prototype);Nc.isPureReactComponent=!0;var Mf=Array.isArray,ng=Object.prototype.hasOwnProperty,Mc={current:null},rg={key:!0,ref:!0,__self:!0,__source:!0};function ig(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)ng.call(t,r)&&!rg.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Ds,type:e,key:s,ref:o,props:i,_owner:Mc.current}}function Ww(e,t){return{$$typeof:Ds,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Dc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ds}function Hw(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Df=/\/+/g;function il(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Hw(""+e.key):t.toString(36)}function xo(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Ds:case jw:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+il(o,0):r,Mf(i)?(n="",e!=null&&(n=e.replace(Df,"$&/")+"/"),xo(i,t,n,"",function(u){return u})):i!=null&&(Dc(i)&&(i=Ww(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Df,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Mf(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+il(s,a);o+=xo(s,t,n,l,i)}else if(l=Uw(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+il(s,a++),o+=xo(s,t,n,l,i);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 o}function Gs(e,t,n){if(e==null)return e;var r=[],i=0;return xo(e,r,"","",function(s){return t.call(n,s,i++)}),r}function Kw(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 Fe={current:null},wo={transition:null},Gw={ReactCurrentDispatcher:Fe,ReactCurrentBatchConfig:wo,ReactCurrentOwner:Mc};function sg(){throw Error("act(...) is not supported in production builds of React.")}W.Children={map:Gs,forEach:function(e,t,n){Gs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gs(e,function(){t++}),t},toArray:function(e){return Gs(e,function(t){return t})||[]},only:function(e){if(!Dc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Component=mi;W.Fragment=Lw;W.Profiler=_w;W.PureComponent=Rc;W.StrictMode=Ow;W.Suspense=zw;W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gw;W.act=sg;W.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=Jm({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Mc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)ng.call(t,l)&&!rg.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Ds,type:e.type,key:i,ref:s,props:r,_owner:o}};W.createContext=function(e){return e={$$typeof:Fw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Iw,_context:e},e.Consumer=e};W.createElement=ig;W.createFactory=function(e){var t=ig.bind(null,e);return t.type=e,t};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:Vw,render:e}};W.isValidElement=Dc;W.lazy=function(e){return{$$typeof:$w,_payload:{_status:-1,_result:e},_init:Kw}};W.memo=function(e,t){return{$$typeof:Bw,type:e,compare:t===void 0?null:t}};W.startTransition=function(e){var t=wo.transition;wo.transition={};try{e()}finally{wo.transition=t}};W.unstable_act=sg;W.useCallback=function(e,t){return Fe.current.useCallback(e,t)};W.useContext=function(e){return Fe.current.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e){return Fe.current.useDeferredValue(e)};W.useEffect=function(e,t){return Fe.current.useEffect(e,t)};W.useId=function(){return Fe.current.useId()};W.useImperativeHandle=function(e,t,n){return Fe.current.useImperativeHandle(e,t,n)};W.useInsertionEffect=function(e,t){return Fe.current.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return Fe.current.useLayoutEffect(e,t)};W.useMemo=function(e,t){return Fe.current.useMemo(e,t)};W.useReducer=function(e,t,n){return Fe.current.useReducer(e,t,n)};W.useRef=function(e){return Fe.current.useRef(e)};W.useState=function(e){return Fe.current.useState(e)};W.useSyncExternalStore=function(e,t,n){return Fe.current.useSyncExternalStore(e,t,n)};W.useTransition=function(){return Fe.current.useTransition()};W.version="18.3.1";qm.exports=W;var w=qm.exports;const Gt=Ym(w),jc=Dw({__proto__:null,default:Gt},[w]);/**
 * @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 Qw=w,Yw=Symbol.for("react.element"),Xw=Symbol.for("react.fragment"),qw=Object.prototype.hasOwnProperty,Zw=Qw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Jw={key:!0,ref:!0,__self:!0,__source:!0};function og(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)qw.call(t,r)&&!Jw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Yw,type:e,key:s,ref:o,props:i,_owner:Zw.current}}Ea.Fragment=Xw;Ea.jsx=og;Ea.jsxs=og;Xm.exports=Ea;var S=Xm.exports,ag={exports:{}},et={},lg={exports:{}},ug={};/**
 * @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(b,M){var O=b.length;b.push(M);e:for(;0<O;){var $=O-1>>>1,ee=b[$];if(0<i(ee,M))b[$]=M,b[O]=ee,O=$;else break e}}function n(b){return b.length===0?null:b[0]}function r(b){if(b.length===0)return null;var M=b[0],O=b.pop();if(O!==M){b[0]=O;e:for(var $=0,ee=b.length,ht=ee>>>1;$<ht;){var nt=2*($+1)-1,Ei=b[nt],Wt=nt+1,Qn=b[Wt];if(0>i(Ei,O))Wt<ee&&0>i(Qn,Ei)?(b[$]=Qn,b[Wt]=O,$=Wt):(b[$]=Ei,b[nt]=O,$=nt);else if(Wt<ee&&0>i(Qn,O))b[$]=Qn,b[Wt]=O,$=Wt;else break e}}return M}function i(b,M){var O=b.sortIndex-M.sortIndex;return O!==0?O:b.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,f=3,m=!1,v=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(b){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=b)r(u),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(u)}}function C(b){if(y=!1,g(b),!v)if(n(l)!==null)v=!0,U(T);else{var M=n(u);M!==null&&F(C,M.startTime-b)}}function T(b,M){v=!1,y&&(y=!1,h(k),k=-1),m=!0;var O=f;try{for(g(M),d=n(l);d!==null&&(!(d.expirationTime>M)||b&&!I());){var $=d.callback;if(typeof $=="function"){d.callback=null,f=d.priorityLevel;var ee=$(d.expirationTime<=M);M=e.unstable_now(),typeof ee=="function"?d.callback=ee:d===n(l)&&r(l),g(M)}else r(l);d=n(l)}if(d!==null)var ht=!0;else{var nt=n(u);nt!==null&&F(C,nt.startTime-M),ht=!1}return ht}finally{d=null,f=O,m=!1}}var E=!1,P=null,k=-1,D=5,R=-1;function I(){return!(e.unstable_now()-R<D)}function _(){if(P!==null){var b=e.unstable_now();R=b;var M=!0;try{M=P(!0,b)}finally{M?H():(E=!1,P=null)}}else E=!1}var H;if(typeof p=="function")H=function(){p(_)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,G=j.port2;j.port1.onmessage=_,H=function(){G.postMessage(null)}}else H=function(){x(_,0)};function U(b){P=b,E||(E=!0,H())}function F(b,M){k=x(function(){b(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(b){b.callback=null},e.unstable_continueExecution=function(){v||m||(v=!0,U(T))},e.unstable_forceFrameRate=function(b){0>b||125<b?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<b?Math.floor(1e3/b):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(b){switch(f){case 1:case 2:case 3:var M=3;break;default:M=f}var O=f;f=M;try{return b()}finally{f=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(b,M){switch(b){case 1:case 2:case 3:case 4:case 5:break;default:b=3}var O=f;f=b;try{return M()}finally{f=O}},e.unstable_scheduleCallback=function(b,M,O){var $=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?$+O:$):O=$,b){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=O+ee,b={id:c++,callback:M,priorityLevel:b,startTime:O,expirationTime:ee,sortIndex:-1},O>$?(b.sortIndex=O,t(u,b),n(l)===null&&b===n(u)&&(y?(h(k),k=-1):y=!0,F(C,O-$))):(b.sortIndex=ee,t(l,b),v||m||(v=!0,U(T))),b},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(b){var M=f;return function(){var O=f;f=M;try{return b.apply(this,arguments)}finally{f=O}}}})(ug);lg.exports=ug;var e1=lg.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 t1=w,Je=e1;function N(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 cg=new Set,ns={};function wr(e,t){ii(e,t),ii(e+"Capture",t)}function ii(e,t){for(ns[e]=t,e=0;e<t.length;e++)cg.add(t[e])}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zl=Object.prototype.hasOwnProperty,n1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,jf={},Lf={};function r1(e){return Zl.call(Lf,e)?!0:Zl.call(jf,e)?!1:n1.test(e)?Lf[e]=!0:(jf[e]=!0,!1)}function i1(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 s1(e,t,n,r){if(t===null||typeof t>"u"||i1(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 Ve(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Ve(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){ke[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Lc=/[\-:]([a-z])/g;function Oc(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(Lc,Oc);ke[t]=new Ve(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(Lc,Oc);ke[t]=new Ve(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(Lc,Oc);ke[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function _c(e,t,n,r){var i=ke.hasOwnProperty(t)?ke[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(s1(t,n,i,r)&&(n=null),r||i===null?r1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var un=t1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qs=Symbol.for("react.element"),Tr=Symbol.for("react.portal"),Er=Symbol.for("react.fragment"),Ic=Symbol.for("react.strict_mode"),Jl=Symbol.for("react.profiler"),dg=Symbol.for("react.provider"),fg=Symbol.for("react.context"),Fc=Symbol.for("react.forward_ref"),eu=Symbol.for("react.suspense"),tu=Symbol.for("react.suspense_list"),Vc=Symbol.for("react.memo"),mn=Symbol.for("react.lazy"),hg=Symbol.for("react.offscreen"),Of=Symbol.iterator;function ki(e){return e===null||typeof e!="object"?null:(e=Of&&e[Of]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Object.assign,sl;function Ii(e){if(sl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);sl=t&&t[1]||""}return`
`+sl+e}var ol=!1;function al(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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),s=r.stack.split(`
`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{ol=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ii(e):""}function o1(e){switch(e.tag){case 5:return Ii(e.type);case 16:return Ii("Lazy");case 13:return Ii("Suspense");case 19:return Ii("SuspenseList");case 0:case 2:case 15:return e=al(e.type,!1),e;case 11:return e=al(e.type.render,!1),e;case 1:return e=al(e.type,!0),e;default:return""}}function nu(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 Er:return"Fragment";case Tr:return"Portal";case Jl:return"Profiler";case Ic:return"StrictMode";case eu:return"Suspense";case tu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fg:return(e.displayName||"Context")+".Consumer";case dg:return(e._context.displayName||"Context")+".Provider";case Fc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vc:return t=e.displayName||null,t!==null?t:nu(e.type)||"Memo";case mn:t=e._payload,e=e._init;try{return nu(e(t))}catch{}}return null}function a1(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 nu(t);case 8:return t===Ic?"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 _n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function l1(e){var t=pg(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 i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ys(e){e._valueTracker||(e._valueTracker=l1(e))}function mg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fo(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 ru(e,t){var n=t.checked;return oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _f(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_n(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 gg(e,t){t=t.checked,t!=null&&_c(e,"checked",t,!1)}function iu(e,t){gg(e,t);var n=_n(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")?su(e,t.type,n):t.hasOwnProperty("defaultValue")&&su(e,t.type,_n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function If(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 su(e,t,n){(t!=="number"||Fo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fi=Array.isArray;function zr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+_n(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ou(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return oe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ff(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(Fi(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:_n(n)}}function yg(e,t){var n=_n(t.value),r=_n(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 Vf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vg(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 au(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Xs,xg=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Xs=Xs||document.createElement("div"),Xs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Xs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $i={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},u1=["Webkit","ms","Moz","O"];Object.keys($i).forEach(function(e){u1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$i[t]=$i[e]})});function wg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$i.hasOwnProperty(e)&&$i[e]?(""+t).trim():t+"px"}function Sg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=wg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var c1=oe({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 lu(e,t){if(t){if(c1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function uu(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 cu=null;function zc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var du=null,Br=null,$r=null;function zf(e){if(e=Os(e)){if(typeof du!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Ra(t),du(e.stateNode,e.type,t))}}function Cg(e){Br?$r?$r.push(e):$r=[e]:Br=e}function Tg(){if(Br){var e=Br,t=$r;if($r=Br=null,zf(e),t)for(e=0;e<t.length;e++)zf(t[e])}}function Eg(e,t){return e(t)}function Pg(){}var ll=!1;function kg(e,t,n){if(ll)return e(t,n);ll=!0;try{return Eg(e,t,n)}finally{ll=!1,(Br!==null||$r!==null)&&(Pg(),Tg())}}function is(e,t){var n=e.stateNode;if(n===null)return null;var r=Ra(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(N(231,t,typeof n));return n}var fu=!1;if(en)try{var bi={};Object.defineProperty(bi,"passive",{get:function(){fu=!0}}),window.addEventListener("test",bi,bi),window.removeEventListener("test",bi,bi)}catch{fu=!1}function d1(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ui=!1,Vo=null,zo=!1,hu=null,f1={onError:function(e){Ui=!0,Vo=e}};function h1(e,t,n,r,i,s,o,a,l){Ui=!1,Vo=null,d1.apply(f1,arguments)}function p1(e,t,n,r,i,s,o,a,l){if(h1.apply(this,arguments),Ui){if(Ui){var u=Vo;Ui=!1,Vo=null}else throw Error(N(198));zo||(zo=!0,hu=u)}}function Sr(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 bg(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 Bf(e){if(Sr(e)!==e)throw Error(N(188))}function m1(e){var t=e.alternate;if(!t){if(t=Sr(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Bf(i),e;if(s===r)return Bf(i),t;s=s.sibling}throw Error(N(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function Ag(e){return e=m1(e),e!==null?Rg(e):null}function Rg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Rg(e);if(t!==null)return t;e=e.sibling}return null}var Ng=Je.unstable_scheduleCallback,$f=Je.unstable_cancelCallback,g1=Je.unstable_shouldYield,y1=Je.unstable_requestPaint,ce=Je.unstable_now,v1=Je.unstable_getCurrentPriorityLevel,Bc=Je.unstable_ImmediatePriority,Mg=Je.unstable_UserBlockingPriority,Bo=Je.unstable_NormalPriority,x1=Je.unstable_LowPriority,Dg=Je.unstable_IdlePriority,Pa=null,It=null;function w1(e){if(It&&typeof It.onCommitFiberRoot=="function")try{It.onCommitFiberRoot(Pa,e,void 0,(e.current.flags&128)===128)}catch{}}var Et=Math.clz32?Math.clz32:T1,S1=Math.log,C1=Math.LN2;function T1(e){return e>>>=0,e===0?32:31-(S1(e)/C1|0)|0}var qs=64,Zs=4194304;function Vi(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 $o(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Vi(a):(s&=o,s!==0&&(r=Vi(s)))}else o=n&~i,o!==0?r=Vi(o):s!==0&&(r=Vi(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===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-Et(t),i=1<<n,r|=e[n],t&=~i;return r}function E1(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 P1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Et(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=E1(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function pu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function jg(){var e=qs;return qs<<=1,!(qs&4194240)&&(qs=64),e}function ul(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function js(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Et(t),e[t]=n}function k1(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 i=31-Et(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function $c(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Et(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Y=0;function Lg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Og,Uc,_g,Ig,Fg,mu=!1,Js=[],An=null,Rn=null,Nn=null,ss=new Map,os=new Map,yn=[],b1="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 Uf(e,t){switch(e){case"focusin":case"focusout":An=null;break;case"dragenter":case"dragleave":Rn=null;break;case"mouseover":case"mouseout":Nn=null;break;case"pointerover":case"pointerout":ss.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":os.delete(t.pointerId)}}function Ai(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Os(t),t!==null&&Uc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function A1(e,t,n,r,i){switch(t){case"focusin":return An=Ai(An,e,t,n,r,i),!0;case"dragenter":return Rn=Ai(Rn,e,t,n,r,i),!0;case"mouseover":return Nn=Ai(Nn,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return ss.set(s,Ai(ss.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,os.set(s,Ai(os.get(s)||null,e,t,n,r,i)),!0}return!1}function Vg(e){var t=Jn(e.target);if(t!==null){var n=Sr(t);if(n!==null){if(t=n.tag,t===13){if(t=bg(n),t!==null){e.blockedOn=t,Fg(e.priority,function(){_g(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 So(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=gu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);cu=r,n.target.dispatchEvent(r),cu=null}else return t=Os(n),t!==null&&Uc(t),e.blockedOn=n,!1;t.shift()}return!0}function Wf(e,t,n){So(e)&&n.delete(t)}function R1(){mu=!1,An!==null&&So(An)&&(An=null),Rn!==null&&So(Rn)&&(Rn=null),Nn!==null&&So(Nn)&&(Nn=null),ss.forEach(Wf),os.forEach(Wf)}function Ri(e,t){e.blockedOn===t&&(e.blockedOn=null,mu||(mu=!0,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,R1)))}function as(e){function t(i){return Ri(i,e)}if(0<Js.length){Ri(Js[0],e);for(var n=1;n<Js.length;n++){var r=Js[n];r.blockedOn===e&&(r.blockedOn=null)}}for(An!==null&&Ri(An,e),Rn!==null&&Ri(Rn,e),Nn!==null&&Ri(Nn,e),ss.forEach(t),os.forEach(t),n=0;n<yn.length;n++)r=yn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<yn.length&&(n=yn[0],n.blockedOn===null);)Vg(n),n.blockedOn===null&&yn.shift()}var Ur=un.ReactCurrentBatchConfig,Uo=!0;function N1(e,t,n,r){var i=Y,s=Ur.transition;Ur.transition=null;try{Y=1,Wc(e,t,n,r)}finally{Y=i,Ur.transition=s}}function M1(e,t,n,r){var i=Y,s=Ur.transition;Ur.transition=null;try{Y=4,Wc(e,t,n,r)}finally{Y=i,Ur.transition=s}}function Wc(e,t,n,r){if(Uo){var i=gu(e,t,n,r);if(i===null)xl(e,t,r,Wo,n),Uf(e,r);else if(A1(i,e,t,n,r))r.stopPropagation();else if(Uf(e,r),t&4&&-1<b1.indexOf(e)){for(;i!==null;){var s=Os(i);if(s!==null&&Og(s),s=gu(e,t,n,r),s===null&&xl(e,t,r,Wo,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else xl(e,t,r,null,n)}}var Wo=null;function gu(e,t,n,r){if(Wo=null,e=zc(r),e=Jn(e),e!==null)if(t=Sr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=bg(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 Wo=e,null}function zg(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(v1()){case Bc:return 1;case Mg:return 4;case Bo:case x1:return 16;case Dg:return 536870912;default:return 16}default:return 16}}var Pn=null,Hc=null,Co=null;function Bg(){if(Co)return Co;var e,t=Hc,n=t.length,r,i="value"in Pn?Pn.value:Pn.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Co=i.slice(e,1<r?1-r:void 0)}function To(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 eo(){return!0}function Hf(){return!1}function tt(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,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)?eo:Hf,this.isPropagationStopped=Hf,this}return oe(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=eo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=eo)},persist:function(){},isPersistent:eo}),t}var gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kc=tt(gi),Ls=oe({},gi,{view:0,detail:0}),D1=tt(Ls),cl,dl,Ni,ka=oe({},Ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gc,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!==Ni&&(Ni&&e.type==="mousemove"?(cl=e.screenX-Ni.screenX,dl=e.screenY-Ni.screenY):dl=cl=0,Ni=e),cl)},movementY:function(e){return"movementY"in e?e.movementY:dl}}),Kf=tt(ka),j1=oe({},ka,{dataTransfer:0}),L1=tt(j1),O1=oe({},Ls,{relatedTarget:0}),fl=tt(O1),_1=oe({},gi,{animationName:0,elapsedTime:0,pseudoElement:0}),I1=tt(_1),F1=oe({},gi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),V1=tt(F1),z1=oe({},gi,{data:0}),Gf=tt(z1),B1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$1={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"},U1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function W1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=U1[e])?!!t[e]:!1}function Gc(){return W1}var H1=oe({},Ls,{key:function(e){if(e.key){var t=B1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=To(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gc,charCode:function(e){return e.type==="keypress"?To(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?To(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),K1=tt(H1),G1=oe({},ka,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qf=tt(G1),Q1=oe({},Ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gc}),Y1=tt(Q1),X1=oe({},gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),q1=tt(X1),Z1=oe({},ka,{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}),J1=tt(Z1),eS=[9,13,27,32],Qc=en&&"CompositionEvent"in window,Wi=null;en&&"documentMode"in document&&(Wi=document.documentMode);var tS=en&&"TextEvent"in window&&!Wi,$g=en&&(!Qc||Wi&&8<Wi&&11>=Wi),Yf=" ",Xf=!1;function Ug(e,t){switch(e){case"keyup":return eS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pr=!1;function nS(e,t){switch(e){case"compositionend":return Wg(t);case"keypress":return t.which!==32?null:(Xf=!0,Yf);case"textInput":return e=t.data,e===Yf&&Xf?null:e;default:return null}}function rS(e,t){if(Pr)return e==="compositionend"||!Qc&&Ug(e,t)?(e=Bg(),Co=Hc=Pn=null,Pr=!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 $g&&t.locale!=="ko"?null:t.data;default:return null}}var iS={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 qf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iS[e.type]:t==="textarea"}function Hg(e,t,n,r){Cg(r),t=Ho(t,"onChange"),0<t.length&&(n=new Kc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hi=null,ls=null;function sS(e){ny(e,0)}function ba(e){var t=Ar(e);if(mg(t))return e}function oS(e,t){if(e==="change")return t}var Kg=!1;if(en){var hl;if(en){var pl="oninput"in document;if(!pl){var Zf=document.createElement("div");Zf.setAttribute("oninput","return;"),pl=typeof Zf.oninput=="function"}hl=pl}else hl=!1;Kg=hl&&(!document.documentMode||9<document.documentMode)}function Jf(){Hi&&(Hi.detachEvent("onpropertychange",Gg),ls=Hi=null)}function Gg(e){if(e.propertyName==="value"&&ba(ls)){var t=[];Hg(t,ls,e,zc(e)),kg(sS,t)}}function aS(e,t,n){e==="focusin"?(Jf(),Hi=t,ls=n,Hi.attachEvent("onpropertychange",Gg)):e==="focusout"&&Jf()}function lS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ba(ls)}function uS(e,t){if(e==="click")return ba(t)}function cS(e,t){if(e==="input"||e==="change")return ba(t)}function dS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kt=typeof Object.is=="function"?Object.is:dS;function us(e,t){if(kt(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 i=n[r];if(!Zl.call(t,i)||!kt(e[i],t[i]))return!1}return!0}function eh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function th(e,t){var n=eh(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=eh(n)}}function Qg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yg(){for(var e=window,t=Fo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fo(e.document)}return t}function Yc(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 fS(e){var t=Yg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qg(n.ownerDocument.documentElement,n)){if(r!==null&&Yc(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 i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=th(n,s);var o=th(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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 hS=en&&"documentMode"in document&&11>=document.documentMode,kr=null,yu=null,Ki=null,vu=!1;function nh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vu||kr==null||kr!==Fo(r)||(r=kr,"selectionStart"in r&&Yc(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}),Ki&&us(Ki,r)||(Ki=r,r=Ho(yu,"onSelect"),0<r.length&&(t=new Kc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=kr)))}function to(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var br={animationend:to("Animation","AnimationEnd"),animationiteration:to("Animation","AnimationIteration"),animationstart:to("Animation","AnimationStart"),transitionend:to("Transition","TransitionEnd")},ml={},Xg={};en&&(Xg=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 Aa(e){if(ml[e])return ml[e];if(!br[e])return e;var t=br[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Xg)return ml[e]=t[n];return e}var qg=Aa("animationend"),Zg=Aa("animationiteration"),Jg=Aa("animationstart"),ey=Aa("transitionend"),ty=new Map,rh="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 Wn(e,t){ty.set(e,t),wr(t,[e])}for(var gl=0;gl<rh.length;gl++){var yl=rh[gl],pS=yl.toLowerCase(),mS=yl[0].toUpperCase()+yl.slice(1);Wn(pS,"on"+mS)}Wn(qg,"onAnimationEnd");Wn(Zg,"onAnimationIteration");Wn(Jg,"onAnimationStart");Wn("dblclick","onDoubleClick");Wn("focusin","onFocus");Wn("focusout","onBlur");Wn(ey,"onTransitionEnd");ii("onMouseEnter",["mouseout","mouseover"]);ii("onMouseLeave",["mouseout","mouseover"]);ii("onPointerEnter",["pointerout","pointerover"]);ii("onPointerLeave",["pointerout","pointerover"]);wr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));wr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));wr("onBeforeInput",["compositionend","keypress","textInput","paste"]);wr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));wr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));wr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zi="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(" "),gS=new Set("cancel close invalid load scroll toggle".split(" ").concat(zi));function ih(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,p1(r,t,void 0,e),e.currentTarget=null}function ny(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;ih(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;ih(i,a,u),s=l}}}if(zo)throw e=hu,zo=!1,hu=null,e}function Z(e,t){var n=t[Tu];n===void 0&&(n=t[Tu]=new Set);var r=e+"__bubble";n.has(r)||(ry(t,e,2,!1),n.add(r))}function vl(e,t,n){var r=0;t&&(r|=4),ry(n,e,r,t)}var no="_reactListening"+Math.random().toString(36).slice(2);function cs(e){if(!e[no]){e[no]=!0,cg.forEach(function(n){n!=="selectionchange"&&(gS.has(n)||vl(n,!1,e),vl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[no]||(t[no]=!0,vl("selectionchange",!1,t))}}function ry(e,t,n,r){switch(zg(t)){case 1:var i=N1;break;case 4:i=M1;break;default:i=Wc}n=i.bind(null,t,n,e),i=void 0,!fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function xl(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=Jn(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}kg(function(){var u=s,c=zc(n),d=[];e:{var f=ty.get(e);if(f!==void 0){var m=Kc,v=e;switch(e){case"keypress":if(To(n)===0)break e;case"keydown":case"keyup":m=K1;break;case"focusin":v="focus",m=fl;break;case"focusout":v="blur",m=fl;break;case"beforeblur":case"afterblur":m=fl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Kf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=L1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=Y1;break;case qg:case Zg:case Jg:m=I1;break;case ey:m=q1;break;case"scroll":m=D1;break;case"wheel":m=J1;break;case"copy":case"cut":case"paste":m=V1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Qf}var y=(t&4)!==0,x=!y&&e==="scroll",h=y?f!==null?f+"Capture":null:f;y=[];for(var p=u,g;p!==null;){g=p;var C=g.stateNode;if(g.tag===5&&C!==null&&(g=C,h!==null&&(C=is(p,h),C!=null&&y.push(ds(p,C,g)))),x)break;p=p.return}0<y.length&&(f=new m(f,v,null,n,c),d.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&n!==cu&&(v=n.relatedTarget||n.fromElement)&&(Jn(v)||v[tn]))break e;if((m||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=u,v=v?Jn(v):null,v!==null&&(x=Sr(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=u),m!==v)){if(y=Kf,C="onMouseLeave",h="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(y=Qf,C="onPointerLeave",h="onPointerEnter",p="pointer"),x=m==null?f:Ar(m),g=v==null?f:Ar(v),f=new y(C,p+"leave",m,n,c),f.target=x,f.relatedTarget=g,C=null,Jn(c)===u&&(y=new y(h,p+"enter",v,n,c),y.target=g,y.relatedTarget=x,C=y),x=C,m&&v)t:{for(y=m,h=v,p=0,g=y;g;g=Cr(g))p++;for(g=0,C=h;C;C=Cr(C))g++;for(;0<p-g;)y=Cr(y),p--;for(;0<g-p;)h=Cr(h),g--;for(;p--;){if(y===h||h!==null&&y===h.alternate)break t;y=Cr(y),h=Cr(h)}y=null}else y=null;m!==null&&sh(d,f,m,y,!1),v!==null&&x!==null&&sh(d,x,v,y,!0)}}e:{if(f=u?Ar(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var T=oS;else if(qf(f))if(Kg)T=cS;else{T=lS;var E=aS}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(T=uS);if(T&&(T=T(e,u))){Hg(d,T,n,c);break e}E&&E(e,f,u),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&su(f,"number",f.value)}switch(E=u?Ar(u):window,e){case"focusin":(qf(E)||E.contentEditable==="true")&&(kr=E,yu=u,Ki=null);break;case"focusout":Ki=yu=kr=null;break;case"mousedown":vu=!0;break;case"contextmenu":case"mouseup":case"dragend":vu=!1,nh(d,n,c);break;case"selectionchange":if(hS)break;case"keydown":case"keyup":nh(d,n,c)}var P;if(Qc)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 Pr?Ug(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&($g&&n.locale!=="ko"&&(Pr||k!=="onCompositionStart"?k==="onCompositionEnd"&&Pr&&(P=Bg()):(Pn=c,Hc="value"in Pn?Pn.value:Pn.textContent,Pr=!0)),E=Ho(u,k),0<E.length&&(k=new Gf(k,e,null,n,c),d.push({event:k,listeners:E}),P?k.data=P:(P=Wg(n),P!==null&&(k.data=P)))),(P=tS?nS(e,n):rS(e,n))&&(u=Ho(u,"onBeforeInput"),0<u.length&&(c=new Gf("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=P))}ny(d,t)})}function ds(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ho(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=is(e,n),s!=null&&r.unshift(ds(e,s,i)),s=is(e,t),s!=null&&r.push(ds(e,s,i))),e=e.return}return r}function Cr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sh(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=is(n,s),l!=null&&o.unshift(ds(n,l,a))):i||(l=is(n,s),l!=null&&o.push(ds(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var yS=/\r\n?/g,vS=/\u0000|\uFFFD/g;function oh(e){return(typeof e=="string"?e:""+e).replace(yS,`
`).replace(vS,"")}function ro(e,t,n){if(t=oh(t),oh(e)!==t&&n)throw Error(N(425))}function Ko(){}var xu=null,wu=null;function Su(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 Cu=typeof setTimeout=="function"?setTimeout:void 0,xS=typeof clearTimeout=="function"?clearTimeout:void 0,ah=typeof Promise=="function"?Promise:void 0,wS=typeof queueMicrotask=="function"?queueMicrotask:typeof ah<"u"?function(e){return ah.resolve(null).then(e).catch(SS)}:Cu;function SS(e){setTimeout(function(){throw e})}function wl(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),as(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);as(t)}function Mn(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 lh(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 yi=Math.random().toString(36).slice(2),Ot="__reactFiber$"+yi,fs="__reactProps$"+yi,tn="__reactContainer$"+yi,Tu="__reactEvents$"+yi,CS="__reactListeners$"+yi,TS="__reactHandles$"+yi;function Jn(e){var t=e[Ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tn]||n[Ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=lh(e);e!==null;){if(n=e[Ot])return n;e=lh(e)}return t}e=n,n=e.parentNode}return null}function Os(e){return e=e[Ot]||e[tn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ar(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function Ra(e){return e[fs]||null}var Eu=[],Rr=-1;function Hn(e){return{current:e}}function J(e){0>Rr||(e.current=Eu[Rr],Eu[Rr]=null,Rr--)}function X(e,t){Rr++,Eu[Rr]=e.current,e.current=t}var In={},De=Hn(In),Ue=Hn(!1),pr=In;function si(e,t){var n=e.type.contextTypes;if(!n)return In;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function We(e){return e=e.childContextTypes,e!=null}function Go(){J(Ue),J(De)}function uh(e,t,n){if(De.current!==In)throw Error(N(168));X(De,t),X(Ue,n)}function iy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(N(108,a1(e)||"Unknown",i));return oe({},n,r)}function Qo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||In,pr=De.current,X(De,e),X(Ue,Ue.current),!0}function ch(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=iy(e,t,pr),r.__reactInternalMemoizedMergedChildContext=e,J(Ue),J(De),X(De,e)):J(Ue),X(Ue,n)}var Yt=null,Na=!1,Sl=!1;function sy(e){Yt===null?Yt=[e]:Yt.push(e)}function ES(e){Na=!0,sy(e)}function Kn(){if(!Sl&&Yt!==null){Sl=!0;var e=0,t=Y;try{var n=Yt;for(Y=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Yt=null,Na=!1}catch(i){throw Yt!==null&&(Yt=Yt.slice(e+1)),Ng(Bc,Kn),i}finally{Y=t,Sl=!1}}return null}var Nr=[],Mr=0,Yo=null,Xo=0,st=[],ot=0,mr=null,qt=1,Zt="";function Xn(e,t){Nr[Mr++]=Xo,Nr[Mr++]=Yo,Yo=e,Xo=t}function oy(e,t,n){st[ot++]=qt,st[ot++]=Zt,st[ot++]=mr,mr=e;var r=qt;e=Zt;var i=32-Et(r)-1;r&=~(1<<i),n+=1;var s=32-Et(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,qt=1<<32-Et(t)+i|n<<i|r,Zt=s+e}else qt=1<<s|n<<i|r,Zt=e}function Xc(e){e.return!==null&&(Xn(e,1),oy(e,1,0))}function qc(e){for(;e===Yo;)Yo=Nr[--Mr],Nr[Mr]=null,Xo=Nr[--Mr],Nr[Mr]=null;for(;e===mr;)mr=st[--ot],st[ot]=null,Zt=st[--ot],st[ot]=null,qt=st[--ot],st[ot]=null}var qe=null,Xe=null,te=!1,Ct=null;function ay(e,t){var n=at(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 dh(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,qe=e,Xe=Mn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,qe=e,Xe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=mr!==null?{id:qt,overflow:Zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=at(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,qe=e,Xe=null,!0):!1;default:return!1}}function Pu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ku(e){if(te){var t=Xe;if(t){var n=t;if(!dh(e,t)){if(Pu(e))throw Error(N(418));t=Mn(n.nextSibling);var r=qe;t&&dh(e,t)?ay(r,n):(e.flags=e.flags&-4097|2,te=!1,qe=e)}}else{if(Pu(e))throw Error(N(418));e.flags=e.flags&-4097|2,te=!1,qe=e}}}function fh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;qe=e}function io(e){if(e!==qe)return!1;if(!te)return fh(e),te=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Su(e.type,e.memoizedProps)),t&&(t=Xe)){if(Pu(e))throw ly(),Error(N(418));for(;t;)ay(e,t),t=Mn(t.nextSibling)}if(fh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Xe=Mn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Xe=null}}else Xe=qe?Mn(e.stateNode.nextSibling):null;return!0}function ly(){for(var e=Xe;e;)e=Mn(e.nextSibling)}function oi(){Xe=qe=null,te=!1}function Zc(e){Ct===null?Ct=[e]:Ct.push(e)}var PS=un.ReactCurrentBatchConfig;function Mi(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(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function so(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function hh(e){var t=e._init;return t(e._payload)}function uy(e){function t(h,p){if(e){var g=h.deletions;g===null?(h.deletions=[p],h.flags|=16):g.push(p)}}function n(h,p){if(!e)return null;for(;p!==null;)t(h,p),p=p.sibling;return null}function r(h,p){for(h=new Map;p!==null;)p.key!==null?h.set(p.key,p):h.set(p.index,p),p=p.sibling;return h}function i(h,p){return h=On(h,p),h.index=0,h.sibling=null,h}function s(h,p,g){return h.index=g,e?(g=h.alternate,g!==null?(g=g.index,g<p?(h.flags|=2,p):g):(h.flags|=2,p)):(h.flags|=1048576,p)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function a(h,p,g,C){return p===null||p.tag!==6?(p=Al(g,h.mode,C),p.return=h,p):(p=i(p,g),p.return=h,p)}function l(h,p,g,C){var T=g.type;return T===Er?c(h,p,g.props.children,C,g.key):p!==null&&(p.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===mn&&hh(T)===p.type)?(C=i(p,g.props),C.ref=Mi(h,p,g),C.return=h,C):(C=No(g.type,g.key,g.props,null,h.mode,C),C.ref=Mi(h,p,g),C.return=h,C)}function u(h,p,g,C){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=Rl(g,h.mode,C),p.return=h,p):(p=i(p,g.children||[]),p.return=h,p)}function c(h,p,g,C,T){return p===null||p.tag!==7?(p=dr(g,h.mode,C,T),p.return=h,p):(p=i(p,g),p.return=h,p)}function d(h,p,g){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Al(""+p,h.mode,g),p.return=h,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Qs:return g=No(p.type,p.key,p.props,null,h.mode,g),g.ref=Mi(h,null,p),g.return=h,g;case Tr:return p=Rl(p,h.mode,g),p.return=h,p;case mn:var C=p._init;return d(h,C(p._payload),g)}if(Fi(p)||ki(p))return p=dr(p,h.mode,g,null),p.return=h,p;so(h,p)}return null}function f(h,p,g,C){var T=p!==null?p.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return T!==null?null:a(h,p,""+g,C);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Qs:return g.key===T?l(h,p,g,C):null;case Tr:return g.key===T?u(h,p,g,C):null;case mn:return T=g._init,f(h,p,T(g._payload),C)}if(Fi(g)||ki(g))return T!==null?null:c(h,p,g,C,null);so(h,g)}return null}function m(h,p,g,C,T){if(typeof C=="string"&&C!==""||typeof C=="number")return h=h.get(g)||null,a(p,h,""+C,T);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Qs:return h=h.get(C.key===null?g:C.key)||null,l(p,h,C,T);case Tr:return h=h.get(C.key===null?g:C.key)||null,u(p,h,C,T);case mn:var E=C._init;return m(h,p,g,E(C._payload),T)}if(Fi(C)||ki(C))return h=h.get(g)||null,c(p,h,C,T,null);so(p,C)}return null}function v(h,p,g,C){for(var T=null,E=null,P=p,k=p=0,D=null;P!==null&&k<g.length;k++){P.index>k?(D=P,P=null):D=P.sibling;var R=f(h,P,g[k],C);if(R===null){P===null&&(P=D);break}e&&P&&R.alternate===null&&t(h,P),p=s(R,p,k),E===null?T=R:E.sibling=R,E=R,P=D}if(k===g.length)return n(h,P),te&&Xn(h,k),T;if(P===null){for(;k<g.length;k++)P=d(h,g[k],C),P!==null&&(p=s(P,p,k),E===null?T=P:E.sibling=P,E=P);return te&&Xn(h,k),T}for(P=r(h,P);k<g.length;k++)D=m(P,h,k,g[k],C),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?k:D.key),p=s(D,p,k),E===null?T=D:E.sibling=D,E=D);return e&&P.forEach(function(I){return t(h,I)}),te&&Xn(h,k),T}function y(h,p,g,C){var T=ki(g);if(typeof T!="function")throw Error(N(150));if(g=T.call(g),g==null)throw Error(N(151));for(var E=T=null,P=p,k=p=0,D=null,R=g.next();P!==null&&!R.done;k++,R=g.next()){P.index>k?(D=P,P=null):D=P.sibling;var I=f(h,P,R.value,C);if(I===null){P===null&&(P=D);break}e&&P&&I.alternate===null&&t(h,P),p=s(I,p,k),E===null?T=I:E.sibling=I,E=I,P=D}if(R.done)return n(h,P),te&&Xn(h,k),T;if(P===null){for(;!R.done;k++,R=g.next())R=d(h,R.value,C),R!==null&&(p=s(R,p,k),E===null?T=R:E.sibling=R,E=R);return te&&Xn(h,k),T}for(P=r(h,P);!R.done;k++,R=g.next())R=m(P,h,k,R.value,C),R!==null&&(e&&R.alternate!==null&&P.delete(R.key===null?k:R.key),p=s(R,p,k),E===null?T=R:E.sibling=R,E=R);return e&&P.forEach(function(_){return t(h,_)}),te&&Xn(h,k),T}function x(h,p,g,C){if(typeof g=="object"&&g!==null&&g.type===Er&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Qs:e:{for(var T=g.key,E=p;E!==null;){if(E.key===T){if(T=g.type,T===Er){if(E.tag===7){n(h,E.sibling),p=i(E,g.props.children),p.return=h,h=p;break e}}else if(E.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===mn&&hh(T)===E.type){n(h,E.sibling),p=i(E,g.props),p.ref=Mi(h,E,g),p.return=h,h=p;break e}n(h,E);break}else t(h,E);E=E.sibling}g.type===Er?(p=dr(g.props.children,h.mode,C,g.key),p.return=h,h=p):(C=No(g.type,g.key,g.props,null,h.mode,C),C.ref=Mi(h,p,g),C.return=h,h=C)}return o(h);case Tr:e:{for(E=g.key;p!==null;){if(p.key===E)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(h,p.sibling),p=i(p,g.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=Rl(g,h.mode,C),p.return=h,h=p}return o(h);case mn:return E=g._init,x(h,p,E(g._payload),C)}if(Fi(g))return v(h,p,g,C);if(ki(g))return y(h,p,g,C);so(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,g),p.return=h,h=p):(n(h,p),p=Al(g,h.mode,C),p.return=h,h=p),o(h)):n(h,p)}return x}var ai=uy(!0),cy=uy(!1),qo=Hn(null),Zo=null,Dr=null,Jc=null;function ed(){Jc=Dr=Zo=null}function td(e){var t=qo.current;J(qo),e._currentValue=t}function bu(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 Wr(e,t){Zo=e,Jc=Dr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function dt(e){var t=e._currentValue;if(Jc!==e)if(e={context:e,memoizedValue:t,next:null},Dr===null){if(Zo===null)throw Error(N(308));Dr=e,Zo.dependencies={lanes:0,firstContext:e}}else Dr=Dr.next=e;return t}var er=null;function nd(e){er===null?er=[e]:er.push(e)}function dy(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,nd(t)):(n.next=i.next,i.next=n),t.interleaved=n,nn(e,r)}function nn(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 gn=!1;function rd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fy(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 Jt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Dn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,nn(e,n)}return i=r.interleaved,i===null?(t.next=t,nd(r)):(t.next=i.next,i.next=t),r.interleaved=t,nn(e,n)}function Eo(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,$c(e,n)}}function ph(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,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 Jo(e,t,n,r){var i=e.updateQueue;gn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=i.baseState;o=0,c=u=l=null,a=s;do{var f=a.lane,m=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,y=a;switch(f=t,m=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(m,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,f=typeof v=="function"?v.call(m,d,f):v,f==null)break e;d=oe({},d,f);break e;case 2:gn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else m={eventTime:m,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);yr|=o,e.lanes=o,e.memoizedState=d}}function mh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(N(191,i));i.call(r)}}}var _s={},Ft=Hn(_s),hs=Hn(_s),ps=Hn(_s);function tr(e){if(e===_s)throw Error(N(174));return e}function id(e,t){switch(X(ps,t),X(hs,e),X(Ft,_s),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:au(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=au(t,e)}J(Ft),X(Ft,t)}function li(){J(Ft),J(hs),J(ps)}function hy(e){tr(ps.current);var t=tr(Ft.current),n=au(t,e.type);t!==n&&(X(hs,e),X(Ft,n))}function sd(e){hs.current===e&&(J(Ft),J(hs))}var re=Hn(0);function ea(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 Cl=[];function od(){for(var e=0;e<Cl.length;e++)Cl[e]._workInProgressVersionPrimary=null;Cl.length=0}var Po=un.ReactCurrentDispatcher,Tl=un.ReactCurrentBatchConfig,gr=0,se=null,ye=null,Se=null,ta=!1,Gi=!1,ms=0,kS=0;function Ae(){throw Error(N(321))}function ad(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!kt(e[n],t[n]))return!1;return!0}function ld(e,t,n,r,i,s){if(gr=s,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Po.current=e===null||e.memoizedState===null?NS:MS,e=n(r,i),Gi){s=0;do{if(Gi=!1,ms=0,25<=s)throw Error(N(301));s+=1,Se=ye=null,t.updateQueue=null,Po.current=DS,e=n(r,i)}while(Gi)}if(Po.current=na,t=ye!==null&&ye.next!==null,gr=0,Se=ye=se=null,ta=!1,t)throw Error(N(300));return e}function ud(){var e=ms!==0;return ms=0,e}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Se===null?se.memoizedState=Se=e:Se=Se.next=e,Se}function ft(){if(ye===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=Se===null?se.memoizedState:Se.next;if(t!==null)Se=t,ye=e;else{if(e===null)throw Error(N(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},Se===null?se.memoizedState=Se=e:Se=Se.next=e}return Se}function gs(e,t){return typeof t=="function"?t(e):t}function El(e){var t=ft(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=ye,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,u=s;do{var c=u.lane;if((gr&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,se.lanes|=c,yr|=c}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,kt(r,t.memoizedState)||(Be=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,se.lanes|=s,yr|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Pl(e){var t=ft(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);kt(s,t.memoizedState)||(Be=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function py(){}function my(e,t){var n=se,r=ft(),i=t(),s=!kt(r.memoizedState,i);if(s&&(r.memoizedState=i,Be=!0),r=r.queue,cd(vy.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Se!==null&&Se.memoizedState.tag&1){if(n.flags|=2048,ys(9,yy.bind(null,n,r,i,t),void 0,null),Ce===null)throw Error(N(349));gr&30||gy(n,t,i)}return i}function gy(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function yy(e,t,n,r){t.value=n,t.getSnapshot=r,xy(t)&&wy(e)}function vy(e,t,n){return n(function(){xy(t)&&wy(e)})}function xy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kt(e,n)}catch{return!0}}function wy(e){var t=nn(e,1);t!==null&&Pt(t,e,1,-1)}function gh(e){var t=Mt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:e},t.queue=e,e=e.dispatch=RS.bind(null,se,e),[t.memoizedState,e]}function ys(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.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 Sy(){return ft().memoizedState}function ko(e,t,n,r){var i=Mt();se.flags|=e,i.memoizedState=ys(1|t,n,void 0,r===void 0?null:r)}function Ma(e,t,n,r){var i=ft();r=r===void 0?null:r;var s=void 0;if(ye!==null){var o=ye.memoizedState;if(s=o.destroy,r!==null&&ad(r,o.deps)){i.memoizedState=ys(t,n,s,r);return}}se.flags|=e,i.memoizedState=ys(1|t,n,s,r)}function yh(e,t){return ko(8390656,8,e,t)}function cd(e,t){return Ma(2048,8,e,t)}function Cy(e,t){return Ma(4,2,e,t)}function Ty(e,t){return Ma(4,4,e,t)}function Ey(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 Py(e,t,n){return n=n!=null?n.concat([e]):null,Ma(4,4,Ey.bind(null,t,e),n)}function dd(){}function ky(e,t){var n=ft();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ad(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function by(e,t){var n=ft();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ad(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ay(e,t,n){return gr&21?(kt(n,t)||(n=jg(),se.lanes|=n,yr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Be=!0),e.memoizedState=n)}function bS(e,t){var n=Y;Y=n!==0&&4>n?n:4,e(!0);var r=Tl.transition;Tl.transition={};try{e(!1),t()}finally{Y=n,Tl.transition=r}}function Ry(){return ft().memoizedState}function AS(e,t,n){var r=Ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ny(e))My(t,n);else if(n=dy(e,t,n,r),n!==null){var i=Ie();Pt(n,e,r,i),Dy(n,t,r)}}function RS(e,t,n){var r=Ln(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ny(e))My(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,kt(a,o)){var l=t.interleaved;l===null?(i.next=i,nd(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=dy(e,t,i,r),n!==null&&(i=Ie(),Pt(n,e,r,i),Dy(n,t,r))}}function Ny(e){var t=e.alternate;return e===se||t!==null&&t===se}function My(e,t){Gi=ta=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$c(e,n)}}var na={readContext:dt,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useInsertionEffect:Ae,useLayoutEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useMutableSource:Ae,useSyncExternalStore:Ae,useId:Ae,unstable_isNewReconciler:!1},NS={readContext:dt,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:yh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ko(4194308,4,Ey.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ko(4194308,4,e,t)},useInsertionEffect:function(e,t){return ko(4,2,e,t)},useMemo:function(e,t){var n=Mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mt();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=AS.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:gh,useDebugValue:dd,useDeferredValue:function(e){return Mt().memoizedState=e},useTransition:function(){var e=gh(!1),t=e[0];return e=bS.bind(null,e[1]),Mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,i=Mt();if(te){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Ce===null)throw Error(N(349));gr&30||gy(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,yh(vy.bind(null,r,s,e),[e]),r.flags|=2048,ys(9,yy.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Mt(),t=Ce.identifierPrefix;if(te){var n=Zt,r=qt;n=(r&~(1<<32-Et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ms++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=kS++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},MS={readContext:dt,useCallback:ky,useContext:dt,useEffect:cd,useImperativeHandle:Py,useInsertionEffect:Cy,useLayoutEffect:Ty,useMemo:by,useReducer:El,useRef:Sy,useState:function(){return El(gs)},useDebugValue:dd,useDeferredValue:function(e){var t=ft();return Ay(t,ye.memoizedState,e)},useTransition:function(){var e=El(gs)[0],t=ft().memoizedState;return[e,t]},useMutableSource:py,useSyncExternalStore:my,useId:Ry,unstable_isNewReconciler:!1},DS={readContext:dt,useCallback:ky,useContext:dt,useEffect:cd,useImperativeHandle:Py,useInsertionEffect:Cy,useLayoutEffect:Ty,useMemo:by,useReducer:Pl,useRef:Sy,useState:function(){return Pl(gs)},useDebugValue:dd,useDeferredValue:function(e){var t=ft();return ye===null?t.memoizedState=e:Ay(t,ye.memoizedState,e)},useTransition:function(){var e=Pl(gs)[0],t=ft().memoizedState;return[e,t]},useMutableSource:py,useSyncExternalStore:my,useId:Ry,unstable_isNewReconciler:!1};function yt(e,t){if(e&&e.defaultProps){t=oe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Au(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:oe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Da={isMounted:function(e){return(e=e._reactInternals)?Sr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ie(),i=Ln(e),s=Jt(r,i);s.payload=t,n!=null&&(s.callback=n),t=Dn(e,s,i),t!==null&&(Pt(t,e,i,r),Eo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ie(),i=Ln(e),s=Jt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Dn(e,s,i),t!==null&&(Pt(t,e,i,r),Eo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ie(),r=Ln(e),i=Jt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Dn(e,i,r),t!==null&&(Pt(t,e,r,n),Eo(t,e,r))}};function vh(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!us(n,r)||!us(i,s):!0}function jy(e,t,n){var r=!1,i=In,s=t.contextType;return typeof s=="object"&&s!==null?s=dt(s):(i=We(t)?pr:De.current,r=t.contextTypes,s=(r=r!=null)?si(e,i):In),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Da,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function xh(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&&Da.enqueueReplaceState(t,t.state,null)}function Ru(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},rd(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=dt(s):(s=We(t)?pr:De.current,i.context=si(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Au(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Da.enqueueReplaceState(i,i.state,null),Jo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ui(e,t){try{var n="",r=t;do n+=o1(r),r=r.return;while(r);var i=n}catch(s){i=`
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function kl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Nu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var jS=typeof WeakMap=="function"?WeakMap:Map;function Ly(e,t,n){n=Jt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ia||(ia=!0,zu=r),Nu(e,t)},n}function Oy(e,t,n){n=Jt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Nu(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Nu(e,t),typeof r!="function"&&(jn===null?jn=new Set([this]):jn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function wh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new jS;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=GS.bind(null,e,t,n),t.then(e,e))}function Sh(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 Ch(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=Jt(-1,1),t.tag=2,Dn(n,t,1))),n.lanes|=1),e)}var LS=un.ReactCurrentOwner,Be=!1;function Le(e,t,n,r){t.child=e===null?cy(t,null,n,r):ai(t,e.child,n,r)}function Th(e,t,n,r,i){n=n.render;var s=t.ref;return Wr(t,i),r=ld(e,t,n,r,s,i),n=ud(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rn(e,t,i)):(te&&n&&Xc(t),t.flags|=1,Le(e,t,r,i),t.child)}function Eh(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!xd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,_y(e,t,s,r,i)):(e=No(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:us,n(o,r)&&e.ref===t.ref)return rn(e,t,i)}return t.flags|=1,e=On(s,r),e.ref=t.ref,e.return=t,t.child=e}function _y(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(us(s,r)&&e.ref===t.ref)if(Be=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Be=!0);else return t.lanes=e.lanes,rn(e,t,i)}return Mu(e,t,n,r,i)}function Iy(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},X(Lr,Qe),Qe|=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,X(Lr,Qe),Qe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,X(Lr,Qe),Qe|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,X(Lr,Qe),Qe|=r;return Le(e,t,i,n),t.child}function Fy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Mu(e,t,n,r,i){var s=We(n)?pr:De.current;return s=si(t,s),Wr(t,i),n=ld(e,t,n,r,s,i),r=ud(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rn(e,t,i)):(te&&r&&Xc(t),t.flags|=1,Le(e,t,n,i),t.child)}function Ph(e,t,n,r,i){if(We(n)){var s=!0;Qo(t)}else s=!1;if(Wr(t,i),t.stateNode===null)bo(e,t),jy(t,n,r),Ru(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=dt(u):(u=We(n)?pr:De.current,u=si(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&xh(t,o,r,u),gn=!1;var f=t.memoizedState;o.state=f,Jo(t,r,o,i),l=t.memoizedState,a!==r||f!==l||Ue.current||gn?(typeof c=="function"&&(Au(t,n,c,r),l=t.memoizedState),(a=gn||vh(t,n,a,r,f,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,fy(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:yt(t.type,a),o.props=u,d=t.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=dt(l):(l=We(n)?pr:De.current,l=si(t,l));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||f!==l)&&xh(t,o,r,l),gn=!1,f=t.memoizedState,o.state=f,Jo(t,r,o,i);var v=t.memoizedState;a!==d||f!==v||Ue.current||gn?(typeof m=="function"&&(Au(t,n,m,r),v=t.memoizedState),(u=gn||vh(t,n,u,r,f,v,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Du(e,t,n,r,s,i)}function Du(e,t,n,r,i,s){Fy(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&ch(t,n,!1),rn(e,t,s);r=t.stateNode,LS.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=ai(t,e.child,null,s),t.child=ai(t,null,a,s)):Le(e,t,a,s),t.memoizedState=r.state,i&&ch(t,n,!0),t.child}function Vy(e){var t=e.stateNode;t.pendingContext?uh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&uh(e,t.context,!1),id(e,t.containerInfo)}function kh(e,t,n,r,i){return oi(),Zc(i),t.flags|=256,Le(e,t,n,r),t.child}var ju={dehydrated:null,treeContext:null,retryLane:0};function Lu(e){return{baseLanes:e,cachePool:null,transitions:null}}function zy(e,t,n){var r=t.pendingProps,i=re.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),X(re,i&1),e===null)return ku(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):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Oa(o,r,0,null),e=dr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Lu(n),t.memoizedState=ju,e):fd(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return OS(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=On(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=On(a,s):(s=dr(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Lu(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=ju,r}return s=e.child,e=s.sibling,r=On(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 fd(e,t){return t=Oa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function oo(e,t,n,r){return r!==null&&Zc(r),ai(t,e.child,null,n),e=fd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function OS(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=kl(Error(N(422))),oo(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Oa({mode:"visible",children:r.children},i,0,null),s=dr(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&ai(t,e.child,null,o),t.child.memoizedState=Lu(o),t.memoizedState=ju,s);if(!(t.mode&1))return oo(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(N(419)),r=kl(s,r,void 0),oo(e,t,o,r)}if(a=(o&e.childLanes)!==0,Be||a){if(r=Ce,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,nn(e,i),Pt(r,e,i,-1))}return vd(),r=kl(Error(N(421))),oo(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=QS.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Xe=Mn(i.nextSibling),qe=t,te=!0,Ct=null,e!==null&&(st[ot++]=qt,st[ot++]=Zt,st[ot++]=mr,qt=e.id,Zt=e.overflow,mr=t),t=fd(t,r.children),t.flags|=4096,t)}function bh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),bu(e.return,t,n)}function bl(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function By(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Le(e,t,r.children,n),r=re.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&&bh(e,n,t);else if(e.tag===19)bh(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(X(re,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ea(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),bl(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ea(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}bl(t,!0,n,null,s);break;case"together":bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function bo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=On(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=On(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _S(e,t,n){switch(t.tag){case 3:Vy(t),oi();break;case 5:hy(t);break;case 1:We(t.type)&&Qo(t);break;case 4:id(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;X(qo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(X(re,re.current&1),t.flags|=128,null):n&t.child.childLanes?zy(e,t,n):(X(re,re.current&1),e=rn(e,t,n),e!==null?e.sibling:null);X(re,re.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return By(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),X(re,re.current),r)break;return null;case 22:case 23:return t.lanes=0,Iy(e,t,n)}return rn(e,t,n)}var $y,Ou,Uy,Wy;$y=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}};Ou=function(){};Uy=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,tr(Ft.current);var s=null;switch(n){case"input":i=ru(e,i),r=ru(e,r),s=[];break;case"select":i=oe({},i,{value:void 0}),r=oe({},r,{value:void 0}),s=[];break;case"textarea":i=ou(e,i),r=ou(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ko)}lu(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ns.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ns.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Z("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Wy=function(e,t,n,r){n!==r&&(t.flags|=4)};function Di(e,t){if(!te)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 Re(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function IS(e,t,n){var r=t.pendingProps;switch(qc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return We(t.type)&&Go(),Re(t),null;case 3:return r=t.stateNode,li(),J(Ue),J(De),od(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(io(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ct!==null&&(Uu(Ct),Ct=null))),Ou(e,t),Re(t),null;case 5:sd(t);var i=tr(ps.current);if(n=t.type,e!==null&&t.stateNode!=null)Uy(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return Re(t),null}if(e=tr(Ft.current),io(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ot]=t,r[fs]=s,e=(t.mode&1)!==0,n){case"dialog":Z("cancel",r),Z("close",r);break;case"iframe":case"object":case"embed":Z("load",r);break;case"video":case"audio":for(i=0;i<zi.length;i++)Z(zi[i],r);break;case"source":Z("error",r);break;case"img":case"image":case"link":Z("error",r),Z("load",r);break;case"details":Z("toggle",r);break;case"input":_f(r,s),Z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Z("invalid",r);break;case"textarea":Ff(r,s),Z("invalid",r)}lu(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&ro(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&ro(r.textContent,a,e),i=["children",""+a]):ns.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Z("scroll",r)}switch(n){case"input":Ys(r),If(r,s,!0);break;case"textarea":Ys(r),Vf(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Ko)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vg(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ot]=t,e[fs]=r,$y(e,t,!1,!1),t.stateNode=e;e:{switch(o=uu(n,r),n){case"dialog":Z("cancel",e),Z("close",e),i=r;break;case"iframe":case"object":case"embed":Z("load",e),i=r;break;case"video":case"audio":for(i=0;i<zi.length;i++)Z(zi[i],e);i=r;break;case"source":Z("error",e),i=r;break;case"img":case"image":case"link":Z("error",e),Z("load",e),i=r;break;case"details":Z("toggle",e),i=r;break;case"input":_f(e,r),i=ru(e,r),Z("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=oe({},r,{value:void 0}),Z("invalid",e);break;case"textarea":Ff(e,r),i=ou(e,r),Z("invalid",e);break;default:i=r}lu(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Sg(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&xg(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&rs(e,l):typeof l=="number"&&rs(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ns.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Z("scroll",e):l!=null&&_c(e,s,l,o))}switch(n){case"input":Ys(e),If(e,r,!1);break;case"textarea":Ys(e),Vf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+_n(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?zr(e,!!r.multiple,s,!1):r.defaultValue!=null&&zr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ko)}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 Re(t),null;case 6:if(e&&t.stateNode!=null)Wy(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=tr(ps.current),tr(Ft.current),io(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ot]=t,(s=r.nodeValue!==n)&&(e=qe,e!==null))switch(e.tag){case 3:ro(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ro(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ot]=t,t.stateNode=r}return Re(t),null;case 13:if(J(re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(te&&Xe!==null&&t.mode&1&&!(t.flags&128))ly(),oi(),t.flags|=98560,s=!1;else if(s=io(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(N(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(N(317));s[Ot]=t}else oi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Re(t),s=!1}else Ct!==null&&(Uu(Ct),Ct=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||re.current&1?xe===0&&(xe=3):vd())),t.updateQueue!==null&&(t.flags|=4),Re(t),null);case 4:return li(),Ou(e,t),e===null&&cs(t.stateNode.containerInfo),Re(t),null;case 10:return td(t.type._context),Re(t),null;case 17:return We(t.type)&&Go(),Re(t),null;case 19:if(J(re),s=t.memoizedState,s===null)return Re(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Di(s,!1);else{if(xe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ea(e),o!==null){for(t.flags|=128,Di(s,!1),r=o.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,o=s.alternate,o===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=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return X(re,re.current&1|2),t.child}e=e.sibling}s.tail!==null&&ce()>ci&&(t.flags|=128,r=!0,Di(s,!1),t.lanes=4194304)}else{if(!r)if(e=ea(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Di(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!te)return Re(t),null}else 2*ce()-s.renderingStartTime>ci&&n!==1073741824&&(t.flags|=128,r=!0,Di(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ce(),t.sibling=null,n=re.current,X(re,r?n&1|2:n&1),t):(Re(t),null);case 22:case 23:return yd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qe&1073741824&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function FS(e,t){switch(qc(t),t.tag){case 1:return We(t.type)&&Go(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return li(),J(Ue),J(De),od(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sd(t),null;case 13:if(J(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));oi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(re),null;case 4:return li(),null;case 10:return td(t.type._context),null;case 22:case 23:return yd(),null;case 24:return null;default:return null}}var ao=!1,Ne=!1,VS=typeof WeakSet=="function"?WeakSet:Set,L=null;function jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function _u(e,t,n){try{n()}catch(r){ue(e,t,r)}}var Ah=!1;function zS(e,t){if(xu=Uo,e=Yg(),Yc(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 i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var m;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=o),f===s&&++c===r&&(l=o),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(wu={focusedElem:e,selectionRange:n},Uo=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,x=v.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:yt(t.type,y),x);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(C){ue(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return v=Ah,Ah=!1,v}function Qi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&_u(t,n,s)}i=i.next}while(i!==r)}}function ja(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 Iu(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 Hy(e){var t=e.alternate;t!==null&&(e.alternate=null,Hy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ot],delete t[fs],delete t[Tu],delete t[CS],delete t[TS])),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 Ky(e){return e.tag===5||e.tag===3||e.tag===4}function Rh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ky(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 Fu(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=Ko));else if(r!==4&&(e=e.child,e!==null))for(Fu(e,t,n),e=e.sibling;e!==null;)Fu(e,t,n),e=e.sibling}function Vu(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(Vu(e,t,n),e=e.sibling;e!==null;)Vu(e,t,n),e=e.sibling}var Te=null,St=!1;function cn(e,t,n){for(n=n.child;n!==null;)Gy(e,t,n),n=n.sibling}function Gy(e,t,n){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(Pa,n)}catch{}switch(n.tag){case 5:Ne||jr(n,t);case 6:var r=Te,i=St;Te=null,cn(e,t,n),Te=r,St=i,Te!==null&&(St?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(St?(e=Te,n=n.stateNode,e.nodeType===8?wl(e.parentNode,n):e.nodeType===1&&wl(e,n),as(e)):wl(Te,n.stateNode));break;case 4:r=Te,i=St,Te=n.stateNode.containerInfo,St=!0,cn(e,t,n),Te=r,St=i;break;case 0:case 11:case 14:case 15:if(!Ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&_u(n,t,o),i=i.next}while(i!==r)}cn(e,t,n);break;case 1:if(!Ne&&(jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ue(n,t,a)}cn(e,t,n);break;case 21:cn(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,cn(e,t,n),Ne=r):cn(e,t,n);break;default:cn(e,t,n)}}function Nh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new VS),t.forEach(function(r){var i=YS.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Te=a.stateNode,St=!1;break e;case 3:Te=a.stateNode.containerInfo,St=!0;break e;case 4:Te=a.stateNode.containerInfo,St=!0;break e}a=a.return}if(Te===null)throw Error(N(160));Gy(s,o,i),Te=null,St=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ue(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Qy(t,e),t=t.sibling}function Qy(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pt(t,e),Nt(e),r&4){try{Qi(3,e,e.return),ja(3,e)}catch(y){ue(e,e.return,y)}try{Qi(5,e,e.return)}catch(y){ue(e,e.return,y)}}break;case 1:pt(t,e),Nt(e),r&512&&n!==null&&jr(n,n.return);break;case 5:if(pt(t,e),Nt(e),r&512&&n!==null&&jr(n,n.return),e.flags&32){var i=e.stateNode;try{rs(i,"")}catch(y){ue(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&gg(i,s),uu(a,o);var u=uu(a,s);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?Sg(i,d):c==="dangerouslySetInnerHTML"?xg(i,d):c==="children"?rs(i,d):_c(i,c,d,u)}switch(a){case"input":iu(i,s);break;case"textarea":yg(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var m=s.value;m!=null?zr(i,!!s.multiple,m,!1):f!==!!s.multiple&&(s.defaultValue!=null?zr(i,!!s.multiple,s.defaultValue,!0):zr(i,!!s.multiple,s.multiple?[]:"",!1))}i[fs]=s}catch(y){ue(e,e.return,y)}}break;case 6:if(pt(t,e),Nt(e),r&4){if(e.stateNode===null)throw Error(N(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){ue(e,e.return,y)}}break;case 3:if(pt(t,e),Nt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{as(t.containerInfo)}catch(y){ue(e,e.return,y)}break;case 4:pt(t,e),Nt(e);break;case 13:pt(t,e),Nt(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(md=ce())),r&4&&Nh(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ne=(u=Ne)||c,pt(t,e),Ne=u):pt(t,e),Nt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(L=e,c=e.child;c!==null;){for(d=L=c;L!==null;){switch(f=L,m=f.child,f.tag){case 0:case 11:case 14:case 15:Qi(4,f,f.return);break;case 1:jr(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(y){ue(r,n,y)}}break;case 5:jr(f,f.return);break;case 22:if(f.memoizedState!==null){Dh(d);continue}}m!==null?(m.return=f,L=m):Dh(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=wg("display",o))}catch(y){ue(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){ue(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:pt(t,e),Nt(e),r&4&&Nh(e);break;case 21:break;default:pt(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ky(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(rs(i,""),r.flags&=-33);var s=Rh(e);Vu(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Rh(e);Fu(e,a,o);break;default:throw Error(N(161))}}catch(l){ue(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function BS(e,t,n){L=e,Yy(e)}function Yy(e,t,n){for(var r=(e.mode&1)!==0;L!==null;){var i=L,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||ao;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Ne;a=ao;var u=Ne;if(ao=o,(Ne=l)&&!u)for(L=i;L!==null;)o=L,l=o.child,o.tag===22&&o.memoizedState!==null?jh(i):l!==null?(l.return=o,L=l):jh(i);for(;s!==null;)L=s,Yy(s),s=s.sibling;L=i,ao=a,Ne=u}Mh(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,L=s):Mh(e)}}function Mh(e){for(;L!==null;){var t=L;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ne||ja(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ne)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:yt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&mh(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}mh(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&as(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}Ne||t.flags&512&&Iu(t)}catch(f){ue(t,t.return,f)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function Dh(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function jh(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ja(4,t)}catch(l){ue(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ue(t,i,l)}}var s=t.return;try{Iu(t)}catch(l){ue(t,s,l)}break;case 5:var o=t.return;try{Iu(t)}catch(l){ue(t,o,l)}}}catch(l){ue(t,t.return,l)}if(t===e){L=null;break}var a=t.sibling;if(a!==null){a.return=t.return,L=a;break}L=t.return}}var $S=Math.ceil,ra=un.ReactCurrentDispatcher,hd=un.ReactCurrentOwner,ut=un.ReactCurrentBatchConfig,Q=0,Ce=null,he=null,Pe=0,Qe=0,Lr=Hn(0),xe=0,vs=null,yr=0,La=0,pd=0,Yi=null,ze=null,md=0,ci=1/0,Qt=null,ia=!1,zu=null,jn=null,lo=!1,kn=null,sa=0,Xi=0,Bu=null,Ao=-1,Ro=0;function Ie(){return Q&6?ce():Ao!==-1?Ao:Ao=ce()}function Ln(e){return e.mode&1?Q&2&&Pe!==0?Pe&-Pe:PS.transition!==null?(Ro===0&&(Ro=jg()),Ro):(e=Y,e!==0||(e=window.event,e=e===void 0?16:zg(e.type)),e):1}function Pt(e,t,n,r){if(50<Xi)throw Xi=0,Bu=null,Error(N(185));js(e,n,r),(!(Q&2)||e!==Ce)&&(e===Ce&&(!(Q&2)&&(La|=n),xe===4&&vn(e,Pe)),He(e,r),n===1&&Q===0&&!(t.mode&1)&&(ci=ce()+500,Na&&Kn()))}function He(e,t){var n=e.callbackNode;P1(e,t);var r=$o(e,e===Ce?Pe:0);if(r===0)n!==null&&$f(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&$f(n),t===1)e.tag===0?ES(Lh.bind(null,e)):sy(Lh.bind(null,e)),wS(function(){!(Q&6)&&Kn()}),n=null;else{switch(Lg(r)){case 1:n=Bc;break;case 4:n=Mg;break;case 16:n=Bo;break;case 536870912:n=Dg;break;default:n=Bo}n=rv(n,Xy.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Xy(e,t){if(Ao=-1,Ro=0,Q&6)throw Error(N(327));var n=e.callbackNode;if(Hr()&&e.callbackNode!==n)return null;var r=$o(e,e===Ce?Pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=oa(e,r);else{t=r;var i=Q;Q|=2;var s=Zy();(Ce!==e||Pe!==t)&&(Qt=null,ci=ce()+500,cr(e,t));do try{HS();break}catch(a){qy(e,a)}while(!0);ed(),ra.current=s,Q=i,he!==null?t=0:(Ce=null,Pe=0,t=xe)}if(t!==0){if(t===2&&(i=pu(e),i!==0&&(r=i,t=$u(e,i))),t===1)throw n=vs,cr(e,0),vn(e,r),He(e,ce()),n;if(t===6)vn(e,r);else{if(i=e.current.alternate,!(r&30)&&!US(i)&&(t=oa(e,r),t===2&&(s=pu(e),s!==0&&(r=s,t=$u(e,s))),t===1))throw n=vs,cr(e,0),vn(e,r),He(e,ce()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:qn(e,ze,Qt);break;case 3:if(vn(e,r),(r&130023424)===r&&(t=md+500-ce(),10<t)){if($o(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ie(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Cu(qn.bind(null,e,ze,Qt),t);break}qn(e,ze,Qt);break;case 4:if(vn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Et(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$S(r/1960))-r,10<r){e.timeoutHandle=Cu(qn.bind(null,e,ze,Qt),r);break}qn(e,ze,Qt);break;case 5:qn(e,ze,Qt);break;default:throw Error(N(329))}}}return He(e,ce()),e.callbackNode===n?Xy.bind(null,e):null}function $u(e,t){var n=Yi;return e.current.memoizedState.isDehydrated&&(cr(e,t).flags|=256),e=oa(e,t),e!==2&&(t=ze,ze=n,t!==null&&Uu(t)),e}function Uu(e){ze===null?ze=e:ze.push.apply(ze,e)}function US(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 i=n[r],s=i.getSnapshot;i=i.value;try{if(!kt(s(),i))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 vn(e,t){for(t&=~pd,t&=~La,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Et(t),r=1<<n;e[n]=-1,t&=~r}}function Lh(e){if(Q&6)throw Error(N(327));Hr();var t=$o(e,0);if(!(t&1))return He(e,ce()),null;var n=oa(e,t);if(e.tag!==0&&n===2){var r=pu(e);r!==0&&(t=r,n=$u(e,r))}if(n===1)throw n=vs,cr(e,0),vn(e,t),He(e,ce()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,qn(e,ze,Qt),He(e,ce()),null}function gd(e,t){var n=Q;Q|=1;try{return e(t)}finally{Q=n,Q===0&&(ci=ce()+500,Na&&Kn())}}function vr(e){kn!==null&&kn.tag===0&&!(Q&6)&&Hr();var t=Q;Q|=1;var n=ut.transition,r=Y;try{if(ut.transition=null,Y=1,e)return e()}finally{Y=r,ut.transition=n,Q=t,!(Q&6)&&Kn()}}function yd(){Qe=Lr.current,J(Lr)}function cr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,xS(n)),he!==null)for(n=he.return;n!==null;){var r=n;switch(qc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Go();break;case 3:li(),J(Ue),J(De),od();break;case 5:sd(r);break;case 4:li();break;case 13:J(re);break;case 19:J(re);break;case 10:td(r.type._context);break;case 22:case 23:yd()}n=n.return}if(Ce=e,he=e=On(e.current,null),Pe=Qe=t,xe=0,vs=null,pd=La=yr=0,ze=Yi=null,er!==null){for(t=0;t<er.length;t++)if(n=er[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}er=null}return e}function qy(e,t){do{var n=he;try{if(ed(),Po.current=na,ta){for(var r=se.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ta=!1}if(gr=0,Se=ye=se=null,Gi=!1,ms=0,hd.current=null,n===null||n.return===null){xe=1,vs=t,he=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=Pe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=Sh(o);if(m!==null){m.flags&=-257,Ch(m,o,a,s,t),m.mode&1&&wh(s,u,t),t=m,l=u;var v=t.updateQueue;if(v===null){var y=new Set;y.add(l),t.updateQueue=y}else v.add(l);break e}else{if(!(t&1)){wh(s,u,t),vd();break e}l=Error(N(426))}}else if(te&&a.mode&1){var x=Sh(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Ch(x,o,a,s,t),Zc(ui(l,a));break e}}s=l=ui(l,a),xe!==4&&(xe=2),Yi===null?Yi=[s]:Yi.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var h=Ly(s,l,t);ph(s,h);break e;case 1:a=l;var p=s.type,g=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(jn===null||!jn.has(g)))){s.flags|=65536,t&=-t,s.lanes|=t;var C=Oy(s,a,t);ph(s,C);break e}}s=s.return}while(s!==null)}ev(n)}catch(T){t=T,he===n&&n!==null&&(he=n=n.return);continue}break}while(!0)}function Zy(){var e=ra.current;return ra.current=na,e===null?na:e}function vd(){(xe===0||xe===3||xe===2)&&(xe=4),Ce===null||!(yr&268435455)&&!(La&268435455)||vn(Ce,Pe)}function oa(e,t){var n=Q;Q|=2;var r=Zy();(Ce!==e||Pe!==t)&&(Qt=null,cr(e,t));do try{WS();break}catch(i){qy(e,i)}while(!0);if(ed(),Q=n,ra.current=r,he!==null)throw Error(N(261));return Ce=null,Pe=0,xe}function WS(){for(;he!==null;)Jy(he)}function HS(){for(;he!==null&&!g1();)Jy(he)}function Jy(e){var t=nv(e.alternate,e,Qe);e.memoizedProps=e.pendingProps,t===null?ev(e):he=t,hd.current=null}function ev(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=FS(n,t),n!==null){n.flags&=32767,he=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{xe=6,he=null;return}}else if(n=IS(n,t,Qe),n!==null){he=n;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);xe===0&&(xe=5)}function qn(e,t,n){var r=Y,i=ut.transition;try{ut.transition=null,Y=1,KS(e,t,n,r)}finally{ut.transition=i,Y=r}return null}function KS(e,t,n,r){do Hr();while(kn!==null);if(Q&6)throw Error(N(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(k1(e,s),e===Ce&&(he=Ce=null,Pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||lo||(lo=!0,rv(Bo,function(){return Hr(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=ut.transition,ut.transition=null;var o=Y;Y=1;var a=Q;Q|=4,hd.current=null,zS(e,n),Qy(n,e),fS(wu),Uo=!!xu,wu=xu=null,e.current=n,BS(n),y1(),Q=a,Y=o,ut.transition=s}else e.current=n;if(lo&&(lo=!1,kn=e,sa=i),s=e.pendingLanes,s===0&&(jn=null),w1(n.stateNode),He(e,ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(ia)throw ia=!1,e=zu,zu=null,e;return sa&1&&e.tag!==0&&Hr(),s=e.pendingLanes,s&1?e===Bu?Xi++:(Xi=0,Bu=e):Xi=0,Kn(),null}function Hr(){if(kn!==null){var e=Lg(sa),t=ut.transition,n=Y;try{if(ut.transition=null,Y=16>e?16:e,kn===null)var r=!1;else{if(e=kn,kn=null,sa=0,Q&6)throw Error(N(331));var i=Q;for(Q|=4,L=e.current;L!==null;){var s=L,o=s.child;if(L.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(L=u;L!==null;){var c=L;switch(c.tag){case 0:case 11:case 15:Qi(8,c,s)}var d=c.child;if(d!==null)d.return=c,L=d;else for(;L!==null;){c=L;var f=c.sibling,m=c.return;if(Hy(c),c===u){L=null;break}if(f!==null){f.return=m,L=f;break}L=m}}}var v=s.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}L=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,L=o;else e:for(;L!==null;){if(s=L,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Qi(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,L=h;break e}L=s.return}}var p=e.current;for(L=p;L!==null;){o=L;var g=o.child;if(o.subtreeFlags&2064&&g!==null)g.return=o,L=g;else e:for(o=p;L!==null;){if(a=L,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ja(9,a)}}catch(T){ue(a,a.return,T)}if(a===o){L=null;break e}var C=a.sibling;if(C!==null){C.return=a.return,L=C;break e}L=a.return}}if(Q=i,Kn(),It&&typeof It.onPostCommitFiberRoot=="function")try{It.onPostCommitFiberRoot(Pa,e)}catch{}r=!0}return r}finally{Y=n,ut.transition=t}}return!1}function Oh(e,t,n){t=ui(n,t),t=Ly(e,t,1),e=Dn(e,t,1),t=Ie(),e!==null&&(js(e,1,t),He(e,t))}function ue(e,t,n){if(e.tag===3)Oh(e,e,n);else for(;t!==null;){if(t.tag===3){Oh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(jn===null||!jn.has(r))){e=ui(n,e),e=Oy(t,e,1),t=Dn(t,e,1),e=Ie(),t!==null&&(js(t,1,e),He(t,e));break}}t=t.return}}function GS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ie(),e.pingedLanes|=e.suspendedLanes&n,Ce===e&&(Pe&n)===n&&(xe===4||xe===3&&(Pe&130023424)===Pe&&500>ce()-md?cr(e,0):pd|=n),He(e,t)}function tv(e,t){t===0&&(e.mode&1?(t=Zs,Zs<<=1,!(Zs&130023424)&&(Zs=4194304)):t=1);var n=Ie();e=nn(e,t),e!==null&&(js(e,t,n),He(e,n))}function QS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tv(e,n)}function YS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),tv(e,n)}var nv;nv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ue.current)Be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Be=!1,_S(e,t,n);Be=!!(e.flags&131072)}else Be=!1,te&&t.flags&1048576&&oy(t,Xo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bo(e,t),e=t.pendingProps;var i=si(t,De.current);Wr(t,n),i=ld(null,t,r,e,i,n);var s=ud();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(s=!0,Qo(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,rd(t),i.updater=Da,t.stateNode=i,i._reactInternals=t,Ru(t,r,e,n),t=Du(null,t,r,!0,s,n)):(t.tag=0,te&&s&&Xc(t),Le(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=qS(r),e=yt(r,e),i){case 0:t=Mu(null,t,r,e,n);break e;case 1:t=Ph(null,t,r,e,n);break e;case 11:t=Th(null,t,r,e,n);break e;case 14:t=Eh(null,t,r,yt(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),Mu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),Ph(e,t,r,i,n);case 3:e:{if(Vy(t),e===null)throw Error(N(387));r=t.pendingProps,s=t.memoizedState,i=s.element,fy(e,t),Jo(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=ui(Error(N(423)),t),t=kh(e,t,r,n,i);break e}else if(r!==i){i=ui(Error(N(424)),t),t=kh(e,t,r,n,i);break e}else for(Xe=Mn(t.stateNode.containerInfo.firstChild),qe=t,te=!0,Ct=null,n=cy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(oi(),r===i){t=rn(e,t,n);break e}Le(e,t,r,n)}t=t.child}return t;case 5:return hy(t),e===null&&ku(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Su(r,i)?o=null:s!==null&&Su(r,s)&&(t.flags|=32),Fy(e,t),Le(e,t,o,n),t.child;case 6:return e===null&&ku(t),null;case 13:return zy(e,t,n);case 4:return id(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ai(t,null,r,n):Le(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),Th(e,t,r,i,n);case 7:return Le(e,t,t.pendingProps,n),t.child;case 8:return Le(e,t,t.pendingProps.children,n),t.child;case 12:return Le(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,X(qo,r._currentValue),r._currentValue=o,s!==null)if(kt(s.value,o)){if(s.children===i.children&&!Ue.current){t=rn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Jt(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),bu(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(N(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),bu(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Le(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Wr(t,n),i=dt(i),r=r(i),t.flags|=1,Le(e,t,r,n),t.child;case 14:return r=t.type,i=yt(r,t.pendingProps),i=yt(r.type,i),Eh(e,t,r,i,n);case 15:return _y(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),bo(e,t),t.tag=1,We(r)?(e=!0,Qo(t)):e=!1,Wr(t,n),jy(t,r,i),Ru(t,r,i,n),Du(null,t,r,!0,e,n);case 19:return By(e,t,n);case 22:return Iy(e,t,n)}throw Error(N(156,t.tag))};function rv(e,t){return Ng(e,t)}function XS(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 at(e,t,n,r){return new XS(e,t,n,r)}function xd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qS(e){if(typeof e=="function")return xd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fc)return 11;if(e===Vc)return 14}return 2}function On(e,t){var n=e.alternate;return n===null?(n=at(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 No(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")xd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Er:return dr(n.children,i,s,t);case Ic:o=8,i|=8;break;case Jl:return e=at(12,n,t,i|2),e.elementType=Jl,e.lanes=s,e;case eu:return e=at(13,n,t,i),e.elementType=eu,e.lanes=s,e;case tu:return e=at(19,n,t,i),e.elementType=tu,e.lanes=s,e;case hg:return Oa(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dg:o=10;break e;case fg:o=9;break e;case Fc:o=11;break e;case Vc:o=14;break e;case mn:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=at(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function dr(e,t,n,r){return e=at(7,e,r,t),e.lanes=n,e}function Oa(e,t,n,r){return e=at(22,e,r,t),e.elementType=hg,e.lanes=n,e.stateNode={isHidden:!1},e}function Al(e,t,n){return e=at(6,e,null,t),e.lanes=n,e}function Rl(e,t,n){return t=at(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ZS(e,t,n,r,i){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=ul(0),this.expirationTimes=ul(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ul(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function wd(e,t,n,r,i,s,o,a,l){return e=new ZS(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=at(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rd(s),e}function JS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Tr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function iv(e){if(!e)return In;e=e._reactInternals;e:{if(Sr(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(We(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(We(n))return iy(e,n,t)}return t}function sv(e,t,n,r,i,s,o,a,l){return e=wd(n,r,!0,e,i,s,o,a,l),e.context=iv(null),n=e.current,r=Ie(),i=Ln(n),s=Jt(r,i),s.callback=t??null,Dn(n,s,i),e.current.lanes=i,js(e,i,r),He(e,r),e}function _a(e,t,n,r){var i=t.current,s=Ie(),o=Ln(i);return n=iv(n),t.context===null?t.context=n:t.pendingContext=n,t=Jt(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Dn(i,t,o),e!==null&&(Pt(e,i,o,s),Eo(e,i,o)),o}function aa(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 _h(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Sd(e,t){_h(e,t),(e=e.alternate)&&_h(e,t)}function eC(){return null}var ov=typeof reportError=="function"?reportError:function(e){console.error(e)};function Cd(e){this._internalRoot=e}Ia.prototype.render=Cd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));_a(e,t,null,null)};Ia.prototype.unmount=Cd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vr(function(){_a(null,e,null,null)}),t[tn]=null}};function Ia(e){this._internalRoot=e}Ia.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ig();e={blockedOn:null,target:e,priority:t};for(var n=0;n<yn.length&&t!==0&&t<yn[n].priority;n++);yn.splice(n,0,e),n===0&&Vg(e)}};function Td(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ih(){}function tC(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=aa(o);s.call(u)}}var o=sv(t,r,e,0,null,!1,!1,"",Ih);return e._reactRootContainer=o,e[tn]=o.current,cs(e.nodeType===8?e.parentNode:e),vr(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=aa(l);a.call(u)}}var l=wd(e,0,!1,null,null,!1,!1,"",Ih);return e._reactRootContainer=l,e[tn]=l.current,cs(e.nodeType===8?e.parentNode:e),vr(function(){_a(t,l,n,r)}),l}function Va(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=aa(o);a.call(l)}}_a(t,o,e,i)}else o=tC(n,t,e,i,r);return aa(o)}Og=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Vi(t.pendingLanes);n!==0&&($c(t,n|1),He(t,ce()),!(Q&6)&&(ci=ce()+500,Kn()))}break;case 13:vr(function(){var r=nn(e,1);if(r!==null){var i=Ie();Pt(r,e,1,i)}}),Sd(e,1)}};Uc=function(e){if(e.tag===13){var t=nn(e,134217728);if(t!==null){var n=Ie();Pt(t,e,134217728,n)}Sd(e,134217728)}};_g=function(e){if(e.tag===13){var t=Ln(e),n=nn(e,t);if(n!==null){var r=Ie();Pt(n,e,t,r)}Sd(e,t)}};Ig=function(){return Y};Fg=function(e,t){var n=Y;try{return Y=e,t()}finally{Y=n}};du=function(e,t,n){switch(t){case"input":if(iu(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 i=Ra(r);if(!i)throw Error(N(90));mg(r),iu(r,i)}}}break;case"textarea":yg(e,n);break;case"select":t=n.value,t!=null&&zr(e,!!n.multiple,t,!1)}};Eg=gd;Pg=vr;var nC={usingClientEntryPoint:!1,Events:[Os,Ar,Ra,Cg,Tg,gd]},ji={findFiberByHostInstance:Jn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rC={bundleType:ji.bundleType,version:ji.version,rendererPackageName:ji.rendererPackageName,rendererConfig:ji.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:un.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ag(e),e===null?null:e.stateNode},findFiberByHostInstance:ji.findFiberByHostInstance||eC,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 uo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uo.isDisabled&&uo.supportsFiber)try{Pa=uo.inject(rC),It=uo}catch{}}et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nC;et.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Td(t))throw Error(N(200));return JS(e,t,null,n)};et.createRoot=function(e,t){if(!Td(e))throw Error(N(299));var n=!1,r="",i=ov;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=wd(e,1,!1,null,null,n,!1,r,i),e[tn]=t.current,cs(e.nodeType===8?e.parentNode:e),new Cd(t)};et.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(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=Ag(t),e=e===null?null:e.stateNode,e};et.flushSync=function(e){return vr(e)};et.hydrate=function(e,t,n){if(!Fa(t))throw Error(N(200));return Va(null,e,t,!0,n)};et.hydrateRoot=function(e,t,n){if(!Td(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=ov;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=sv(t,null,e,1,n??null,i,!1,s,o),e[tn]=t.current,cs(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ia(t)};et.render=function(e,t,n){if(!Fa(t))throw Error(N(200));return Va(null,e,t,!1,n)};et.unmountComponentAtNode=function(e){if(!Fa(e))throw Error(N(40));return e._reactRootContainer?(vr(function(){Va(null,null,e,!1,function(){e._reactRootContainer=null,e[tn]=null})}),!0):!1};et.unstable_batchedUpdates=gd;et.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fa(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return Va(e,t,n,!1,r)};et.version="18.3.1-next-f1338f8080-20240426";function av(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(av)}catch(e){console.error(e)}}av(),ag.exports=et;var Is=ag.exports;const iC=Ym(Is);var lv,Fh=Is;lv=Fh.createRoot,Fh.hydrateRoot;const sC=1,oC=1e6;let Nl=0;function aC(){return Nl=(Nl+1)%Number.MAX_SAFE_INTEGER,Nl.toString()}const Ml=new Map,Vh=e=>{if(Ml.has(e))return;const t=setTimeout(()=>{Ml.delete(e),qi({type:"REMOVE_TOAST",toastId:e})},oC);Ml.set(e,t)},lC=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,sC)};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?Vh(n):e.toasts.forEach(r=>{Vh(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)}}},Mo=[];let Do={toasts:[]};function qi(e){Do=lC(Do,e),Mo.forEach(t=>{t(Do)})}function uv({...e}){const t=aC(),n=i=>qi({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>qi({type:"DISMISS_TOAST",toastId:t});return qi({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function uC(){const[e,t]=w.useState(Do);return w.useEffect(()=>(Mo.push(t),()=>{const n=Mo.indexOf(t);n>-1&&Mo.splice(n,1)}),[e]),{...e,toast:uv,dismiss:n=>qi({type:"DISMISS_TOAST",toastId:n})}}function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function zh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ed(...e){return t=>{let n=!1;const r=e.map(i=>{const s=zh(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():zh(e[i],null)}}}}function bt(...e){return w.useCallback(Ed(...e),e)}function za(e,t=[]){let n=[];function r(s,o){const a=w.createContext(o),l=n.length;n=[...n,o];const u=d=>{var h;const{scope:f,children:m,...v}=d,y=((h=f==null?void 0:f[e])==null?void 0:h[l])||a,x=w.useMemo(()=>v,Object.values(v));return S.jsx(y.Provider,{value:x,children:m})};u.displayName=s+"Provider";function c(d,f){var y;const m=((y=f==null?void 0:f[e])==null?void 0:y[l])||a,v=w.useContext(m);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,c]}const i=()=>{const s=n.map(o=>w.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,cC(i,...t)]}function cC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Wu(e){const t=dC(e),n=w.forwardRef((r,i)=>{const{children:s,...o}=r,a=w.Children.toArray(s),l=a.find(hC);if(l){const u=l.props.children,c=a.map(d=>d===l?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:d);return S.jsx(t,{...o,ref:i,children:w.isValidElement(u)?w.cloneElement(u,void 0,c):null})}return S.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function dC(e){const t=w.forwardRef((n,r)=>{const{children:i,...s}=n;if(w.isValidElement(i)){const o=mC(i),a=pC(s,i.props);return i.type!==w.Fragment&&(a.ref=r?Ed(r,o):o),w.cloneElement(i,a)}return w.Children.count(i)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cv=Symbol("radix.slottable");function fC(e){const t=({children:n})=>S.jsx(S.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=cv,t}function hC(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cv}function pC(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...a)=>{const l=s(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function mC(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function gC(e){const t=e+"CollectionProvider",[n,r]=za(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=y=>{const{scope:x,children:h}=y,p=Gt.useRef(null),g=Gt.useRef(new Map).current;return S.jsx(i,{scope:x,itemMap:g,collectionRef:p,children:h})};o.displayName=t;const a=e+"CollectionSlot",l=Wu(a),u=Gt.forwardRef((y,x)=>{const{scope:h,children:p}=y,g=s(a,h),C=bt(x,g.collectionRef);return S.jsx(l,{ref:C,children:p})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Wu(c),m=Gt.forwardRef((y,x)=>{const{scope:h,children:p,...g}=y,C=Gt.useRef(null),T=bt(x,C),E=s(c,h);return Gt.useEffect(()=>(E.itemMap.set(C,{ref:C,...g}),()=>void E.itemMap.delete(C))),S.jsx(f,{[d]:"",ref:T,children:p})});m.displayName=c;function v(y){const x=s(e+"CollectionConsumer",y);return Gt.useCallback(()=>{const p=x.collectionRef.current;if(!p)return[];const g=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((E,P)=>g.indexOf(E.ref.current)-g.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:u,ItemSlot:m},v,r]}var yC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ge=yC.reduce((e,t)=>{const n=Wu(`Primitive.${t}`),r=w.forwardRef((i,s)=>{const{asChild:o,...a}=i,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function dv(e,t){e&&Is.flushSync(()=>e.dispatchEvent(t))}function Fn(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function vC(e,t=globalThis==null?void 0:globalThis.document){const n=Fn(e);w.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var xC="DismissableLayer",Hu="dismissableLayer.update",wC="dismissableLayer.pointerDownOutside",SC="dismissableLayer.focusOutside",Bh,fv=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pd=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=e,u=w.useContext(fv),[c,d]=w.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=w.useState({}),v=bt(t,P=>d(P)),y=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=y.indexOf(x),p=c?y.indexOf(c):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,C=p>=h,T=TC(P=>{const k=P.target,D=[...u.branches].some(R=>R.contains(k));!C||D||(i==null||i(P),o==null||o(P),P.defaultPrevented||a==null||a())},f),E=EC(P=>{const k=P.target;[...u.branches].some(R=>R.contains(k))||(s==null||s(P),o==null||o(P),P.defaultPrevented||a==null||a())},f);return vC(P=>{p===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},f),w.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Bh=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),$h(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Bh)}},[c,f,n,u]),w.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),$h())},[c,u]),w.useEffect(()=>{const P=()=>m({});return document.addEventListener(Hu,P),()=>document.removeEventListener(Hu,P)},[]),S.jsx(Ge.div,{...l,ref:v,style:{pointerEvents:g?C?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,T.onPointerDownCapture)})});Pd.displayName=xC;var CC="DismissableLayerBranch",hv=w.forwardRef((e,t)=>{const n=w.useContext(fv),r=w.useRef(null),i=bt(t,r);return w.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),S.jsx(Ge.div,{...e,ref:i})});hv.displayName=CC;function TC(e,t=globalThis==null?void 0:globalThis.document){const n=Fn(e),r=w.useRef(!1),i=w.useRef(()=>{});return w.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){pv(wC,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function EC(e,t=globalThis==null?void 0:globalThis.document){const n=Fn(e),r=w.useRef(!1);return w.useEffect(()=>{const i=s=>{s.target&&!r.current&&pv(SC,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function $h(){const e=new CustomEvent(Hu);document.dispatchEvent(e)}function pv(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?dv(i,s):i.dispatchEvent(s)}var PC=Pd,kC=hv,Vn=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},bC="Portal",kd=w.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,s]=w.useState(!1);Vn(()=>s(!0),[]);const o=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?iC.createPortal(S.jsx(Ge.div,{...r,ref:t}),o):null});kd.displayName=bC;function AC(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var Ba=e=>{const{present:t,children:n}=e,r=RC(t),i=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),s=bt(r.ref,NC(i));return typeof n=="function"||r.isPresent?w.cloneElement(i,{ref:s}):null};Ba.displayName="Presence";function RC(e){const[t,n]=w.useState(),r=w.useRef(null),i=w.useRef(e),s=w.useRef("none"),o=e?"mounted":"unmounted",[a,l]=AC(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=co(r.current);s.current=a==="mounted"?u:"none"},[a]),Vn(()=>{const u=r.current,c=i.current;if(c!==e){const f=s.current,m=co(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Vn(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=m=>{const y=co(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&y&&(l("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=m=>{m.target===t&&(s.current=co(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function co(e){return(e==null?void 0:e.animationName)||"none"}function NC(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var MC=jc[" useInsertionEffect ".trim().toString()]||Vn;function DC({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,o]=jC({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const c=w.useRef(e!==void 0);w.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"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.`),c.current=a},[a,r])}const u=w.useCallback(c=>{var d;if(a){const f=LC(c)?c(e):c;f!==e&&((d=o.current)==null||d.call(o,f))}else s(c)},[a,e,s,o]);return[l,u]}function jC({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),i=w.useRef(n),s=w.useRef(t);return MC(()=>{s.current=t},[t]),w.useEffect(()=>{var o;i.current!==n&&((o=s.current)==null||o.call(s,n),i.current=n)},[n,i]),[n,r,s]}function LC(e){return typeof e=="function"}var OC=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"}),_C="VisuallyHidden",$a=w.forwardRef((e,t)=>S.jsx(Ge.span,{...e,ref:t,style:{...OC,...e.style}}));$a.displayName=_C;var IC=$a,bd="ToastProvider",[Ad,FC,VC]=gC("Toast"),[mv]=za("Toast",[VC]),[zC,Ua]=mv(bd),gv=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[a,l]=w.useState(null),[u,c]=w.useState(0),d=w.useRef(!1),f=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${bd}\`. Expected non-empty \`string\`.`),S.jsx(Ad.Provider,{scope:t,children:S.jsx(zC,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:w.useCallback(()=>c(m=>m+1),[]),onToastRemove:w.useCallback(()=>c(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:o})})};gv.displayName=bd;var yv="ToastViewport",BC=["F8"],Ku="toast.viewportPause",Gu="toast.viewportResume",vv=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=BC,label:i="Notifications ({hotkey})",...s}=e,o=Ua(yv,n),a=FC(n),l=w.useRef(null),u=w.useRef(null),c=w.useRef(null),d=w.useRef(null),f=bt(t,d,o.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=o.toastCount>0;w.useEffect(()=>{const x=h=>{var g;r.length!==0&&r.every(C=>h[C]||h.code===C)&&((g=d.current)==null||g.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),w.useEffect(()=>{const x=l.current,h=d.current;if(v&&x&&h){const p=()=>{if(!o.isClosePausedRef.current){const E=new CustomEvent(Ku);h.dispatchEvent(E),o.isClosePausedRef.current=!0}},g=()=>{if(o.isClosePausedRef.current){const E=new CustomEvent(Gu);h.dispatchEvent(E),o.isClosePausedRef.current=!1}},C=E=>{!x.contains(E.relatedTarget)&&g()},T=()=>{x.contains(document.activeElement)||g()};return x.addEventListener("focusin",p),x.addEventListener("focusout",C),x.addEventListener("pointermove",p),x.addEventListener("pointerleave",T),window.addEventListener("blur",p),window.addEventListener("focus",g),()=>{x.removeEventListener("focusin",p),x.removeEventListener("focusout",C),x.removeEventListener("pointermove",p),x.removeEventListener("pointerleave",T),window.removeEventListener("blur",p),window.removeEventListener("focus",g)}}},[v,o.isClosePausedRef]);const y=w.useCallback(({tabbingDirection:x})=>{const p=a().map(g=>{const C=g.ref.current,T=[C,...eT(C)];return x==="forwards"?T:T.reverse()});return(x==="forwards"?p.reverse():p).flat()},[a]);return w.useEffect(()=>{const x=d.current;if(x){const h=p=>{var T,E,P;const g=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!g){const k=document.activeElement,D=p.shiftKey;if(p.target===x&&D){(T=u.current)==null||T.focus();return}const _=y({tabbingDirection:D?"backwards":"forwards"}),H=_.findIndex(j=>j===k);Dl(_.slice(H+1))?p.preventDefault():D?(E=u.current)==null||E.focus():(P=c.current)==null||P.focus()}};return x.addEventListener("keydown",h),()=>x.removeEventListener("keydown",h)}},[a,y]),S.jsxs(kC,{ref:l,role:"region","aria-label":i.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&S.jsx(Qu,{ref:u,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"forwards"});Dl(x)}}),S.jsx(Ad.Slot,{scope:n,children:S.jsx(Ge.ol,{tabIndex:-1,...s,ref:f})}),v&&S.jsx(Qu,{ref:c,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"backwards"});Dl(x)}})]})});vv.displayName=yv;var xv="ToastFocusProxy",Qu=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=Ua(xv,n);return S.jsx($a,{tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});Qu.displayName=xv;var Fs="Toast",$C="toast.swipeStart",UC="toast.swipeMove",WC="toast.swipeCancel",HC="toast.swipeEnd",wv=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...o}=e,[a,l]=DC({prop:r,defaultProp:i??!0,onChange:s,caller:Fs});return S.jsx(Ba,{present:n||a,children:S.jsx(QC,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:Fn(e.onPause),onResume:Fn(e.onResume),onSwipeStart:ve(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ve(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:ve(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ve(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});wv.displayName=Fs;var[KC,GC]=mv(Fs,{onClose(){}}),QC=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:m,...v}=e,y=Ua(Fs,n),[x,h]=w.useState(null),p=bt(t,j=>h(j)),g=w.useRef(null),C=w.useRef(null),T=i||y.duration,E=w.useRef(0),P=w.useRef(T),k=w.useRef(0),{onToastAdd:D,onToastRemove:R}=y,I=Fn(()=>{var G;(x==null?void 0:x.contains(document.activeElement))&&((G=y.viewport)==null||G.focus()),o()}),_=w.useCallback(j=>{!j||j===1/0||(window.clearTimeout(k.current),E.current=new Date().getTime(),k.current=window.setTimeout(I,j))},[I]);w.useEffect(()=>{const j=y.viewport;if(j){const G=()=>{_(P.current),u==null||u()},U=()=>{const F=new Date().getTime()-E.current;P.current=P.current-F,window.clearTimeout(k.current),l==null||l()};return j.addEventListener(Ku,U),j.addEventListener(Gu,G),()=>{j.removeEventListener(Ku,U),j.removeEventListener(Gu,G)}}},[y.viewport,T,l,u,_]),w.useEffect(()=>{s&&!y.isClosePausedRef.current&&_(T)},[s,T,y.isClosePausedRef,_]),w.useEffect(()=>(D(),()=>R()),[D,R]);const H=w.useMemo(()=>x?bv(x):null,[x]);return y.viewport?S.jsxs(S.Fragment,{children:[H&&S.jsx(YC,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:H}),S.jsx(KC,{scope:n,onClose:I,children:Is.createPortal(S.jsx(Ad.ItemSlot,{scope:n,children:S.jsx(PC,{asChild:!0,onEscapeKeyDown:ve(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||I(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:S.jsx(Ge.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection,...v,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ve(e.onKeyDown,j=>{j.key==="Escape"&&(a==null||a(j.nativeEvent),j.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:ve(e.onPointerDown,j=>{j.button===0&&(g.current={x:j.clientX,y:j.clientY})}),onPointerMove:ve(e.onPointerMove,j=>{if(!g.current)return;const G=j.clientX-g.current.x,U=j.clientY-g.current.y,F=!!C.current,b=["left","right"].includes(y.swipeDirection),M=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,O=b?M(0,G):0,$=b?0:M(0,U),ee=j.pointerType==="touch"?10:2,ht={x:O,y:$},nt={originalEvent:j,delta:ht};F?(C.current=ht,fo(UC,d,nt,{discrete:!1})):Uh(ht,y.swipeDirection,ee)?(C.current=ht,fo($C,c,nt,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs(G)>ee||Math.abs(U)>ee)&&(g.current=null)}),onPointerUp:ve(e.onPointerUp,j=>{const G=C.current,U=j.target;if(U.hasPointerCapture(j.pointerId)&&U.releasePointerCapture(j.pointerId),C.current=null,g.current=null,G){const F=j.currentTarget,b={originalEvent:j,delta:G};Uh(G,y.swipeDirection,y.swipeThreshold)?fo(HC,m,b,{discrete:!0}):fo(WC,f,b,{discrete:!0}),F.addEventListener("click",M=>M.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),YC=e=>{const{__scopeToast:t,children:n,...r}=e,i=Ua(Fs,t),[s,o]=w.useState(!1),[a,l]=w.useState(!1);return ZC(()=>o(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:S.jsx(kd,{asChild:!0,children:S.jsx($a,{...r,children:s&&S.jsxs(S.Fragment,{children:[i.label," ",n]})})})},XC="ToastTitle",Sv=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(Ge.div,{...r,ref:t})});Sv.displayName=XC;var qC="ToastDescription",Cv=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(Ge.div,{...r,ref:t})});Cv.displayName=qC;var Tv="ToastAction",Ev=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?S.jsx(kv,{altText:n,asChild:!0,children:S.jsx(Rd,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Tv}\`. Expected non-empty \`string\`.`),null)});Ev.displayName=Tv;var Pv="ToastClose",Rd=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=GC(Pv,n);return S.jsx(kv,{asChild:!0,children:S.jsx(Ge.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,i.onClose)})})});Rd.displayName=Pv;var kv=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return S.jsx(Ge.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function bv(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),JC(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...bv(r))}}),t}function fo(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?dv(i,s):i.dispatchEvent(s)}var Uh=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function ZC(e=()=>{}){const t=Fn(e);Vn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function JC(e){return e.nodeType===e.ELEMENT_NODE}function eT(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Dl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var tT=gv,Av=vv,Rv=wv,Nv=Sv,Mv=Cv,Dv=Ev,jv=Rd;function Lv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Lv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ov(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Lv(e))&&(r&&(r+=" "),r+=t);return r}const Wh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Hh=Ov,Nd=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Hh(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],d=s==null?void 0:s[u];if(c===null)return null;const f=Wh(c)||Wh(d);return i[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...m}=c;return Object.entries(m).every(v=>{let[y,x]=v;return Array.isArray(x)?x.includes({...s,...a}[y]):{...s,...a}[y]===x})?[...u,d,f]:u},[]);return Hh(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rT=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Kh=e=>{const t=rT(e);return t.charAt(0).toUpperCase()+t.slice(1)},_v=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),iT=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var sT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oT=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>w.createElement("svg",{ref:l,...sT,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:_v("lucide",i),...!s&&!iT(a)&&{"aria-hidden":"true"},...a},[...o.map(([u,c])=>w.createElement(u,c)),...Array.isArray(s)?s:[s]]));/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pe=(e,t)=>{const n=w.forwardRef(({className:r,...i},s)=>w.createElement(oT,{ref:s,iconNode:t,className:_v(`lucide-${nT(Kh(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Kh(e),n};/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aT=[["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"}]],lT=pe("award",aT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uT=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Gh=pe("calendar",uT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cT=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],dT=pe("facebook",cT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fT=[["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"}]],hT=pe("house",fT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pT=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],mT=pe("instagram",pT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gT=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],yT=pe("linkedin",gT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vT=[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]],xT=pe("log-in",vT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wT=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],ST=pe("message-circle",wT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const CT=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],TT=pe("message-square",CT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ET=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],PT=pe("music",ET);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kT=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Qh=pe("refresh-cw",kT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bT=[["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"}]],AT=pe("star",bT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const RT=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],Yh=pe("trending-up",RT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const NT=[["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"}]],Xh=pe("triangle-alert",NT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const MT=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],DT=pe("twitter",MT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jT=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],LT=pe("user",jT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const OT=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],_T=pe("users",OT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const IT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],FT=pe("x",IT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VT=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],zT=pe("youtube",VT);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const BT=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],$T=pe("zap",BT),Md="-",UT=e=>{const t=HT(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(Md);return a[0]===""&&a.length!==1&&a.shift(),Iv(a,t)||WT(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Iv=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Iv(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(Md);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},qh=/^\[(.+)\]$/,WT=e=>{if(qh.test(e)){const t=qh.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},HT=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return GT(Object.entries(e.classGroups),n).forEach(([s,o])=>{Yu(o,r,s,t)}),r},Yu=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Zh(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(KT(i)){Yu(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{Yu(o,Zh(t,s),n,r)})})},Zh=(e,t)=>{let n=e;return t.split(Md).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},KT=e=>e.isThemeGetter,GT=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e,QT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},Fv="!",YT=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,o=a=>{const l=[];let u=0,c=0,d;for(let x=0;x<a.length;x++){let h=a[x];if(u===0){if(h===i&&(r||a.slice(x,x+s)===t)){l.push(a.slice(c,x)),c=x+s;continue}if(h==="/"){d=x;continue}}h==="["?u++:h==="]"&&u--}const f=l.length===0?a:a.substring(c),m=f.startsWith(Fv),v=m?f.substring(1):f,y=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:o}):o},XT=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},qT=e=>({cache:QT(e.cacheSize),parseClassName:YT(e),...UT(e)}),ZT=/\s+/,JT=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(ZT);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:m}=n(u);let v=!!m,y=r(v?f.substring(0,m):f);if(!y){if(!v){a=u+(a.length>0?" "+a:a);continue}if(y=r(f),!y){a=u+(a.length>0?" "+a:a);continue}v=!1}const x=XT(c).join(":"),h=d?x+Fv:x,p=h+y;if(s.includes(p))continue;s.push(p);const g=i(y,v);for(let C=0;C<g.length;++C){const T=g[C];s.push(h+T)}a=u+(a.length>0?" "+a:a)}return a};function eE(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Vv(t))&&(r&&(r+=" "),r+=n);return r}const Vv=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Vv(e[r]))&&(n&&(n+=" "),n+=t);return n};function tE(e,...t){let n,r,i,s=o;function o(l){const u=t.reduce((c,d)=>d(c),e());return n=qT(u),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=JT(l,n);return i(l,c),c}return function(){return s(eE.apply(null,arguments))}}const q=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},zv=/^\[(?:([a-z-]+):)?(.+)\]$/i,nE=/^\d+\/\d+$/,rE=new Set(["px","full","screen"]),iE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sE=/\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$/,oE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,aE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ht=e=>Kr(e)||rE.has(e)||nE.test(e),dn=e=>vi(e,"length",gE),Kr=e=>!!e&&!Number.isNaN(Number(e)),jl=e=>vi(e,"number",Kr),Li=e=>!!e&&Number.isInteger(Number(e)),uE=e=>e.endsWith("%")&&Kr(e.slice(0,-1)),B=e=>zv.test(e),fn=e=>iE.test(e),cE=new Set(["length","size","percentage"]),dE=e=>vi(e,cE,Bv),fE=e=>vi(e,"position",Bv),hE=new Set(["image","url"]),pE=e=>vi(e,hE,vE),mE=e=>vi(e,"",yE),Oi=()=>!0,vi=(e,t,n)=>{const r=zv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},gE=e=>sE.test(e)&&!oE.test(e),Bv=()=>!1,yE=e=>aE.test(e),vE=e=>lE.test(e),xE=()=>{const e=q("colors"),t=q("spacing"),n=q("blur"),r=q("brightness"),i=q("borderColor"),s=q("borderRadius"),o=q("borderSpacing"),a=q("borderWidth"),l=q("contrast"),u=q("grayscale"),c=q("hueRotate"),d=q("invert"),f=q("gap"),m=q("gradientColorStops"),v=q("gradientColorStopPositions"),y=q("inset"),x=q("margin"),h=q("opacity"),p=q("padding"),g=q("saturate"),C=q("scale"),T=q("sepia"),E=q("skew"),P=q("space"),k=q("translate"),D=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",B,t],_=()=>[B,t],H=()=>["",Ht,dn],j=()=>["auto",Kr,B],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],b=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",B],O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[Kr,B];return{cacheSize:500,separator:":",theme:{colors:[Oi],spacing:[Ht,dn],blur:["none","",fn,B],brightness:$(),borderColor:[e],borderRadius:["none","","full",fn,B],borderSpacing:_(),borderWidth:H(),contrast:$(),grayscale:M(),hueRotate:$(),invert:M(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[uE,dn],inset:I(),margin:I(),opacity:$(),padding:_(),saturate:$(),scale:$(),sepia:M(),skew:$(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",B]}],container:["container"],columns:[{columns:[fn]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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:[...G(),B]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Li,B]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",B]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",Li,B]}],"grid-cols":[{"grid-cols":[Oi]}],"col-start-end":[{col:["auto",{span:["full",Li,B]},B]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[Oi]}],"row-start-end":[{row:["auto",{span:[Li,B]},B]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",B]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",B]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...b()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...b(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...b(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",B,t]}],"min-w":[{"min-w":[B,t,"min","max","fit"]}],"max-w":[{"max-w":[B,t,"none","full","min","max","fit","prose",{screen:[fn]},fn]}],h:[{h:[B,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[B,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fn,dn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jl]}],"font-family":[{font:[Oi]}],"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",B]}],"line-clamp":[{"line-clamp":["none",Kr,jl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ht,B]}],"list-image":[{"list-image":["none",B]}],"list-style-type":[{list:["none","disc","decimal",B]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ht,dn]}],"underline-offset":[{"underline-offset":["auto",Ht,B]}],"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:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B]}],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",B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),fE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],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":[h]}],"border-style":[{border:[...U(),"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":[h]}],"divide-style":[{divide:U()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[Ht,B]}],"outline-w":[{outline:[Ht,dn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[Ht,dn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fn,mE]}],"shadow-color":[{shadow:[Oi]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",fn,B]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[g]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",B]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",B]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",B]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Li,B]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",B]}],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",B]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",B]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ht,dn,jl]}],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"]}}},wE=tE(xE);function de(...e){return wE(Ov(e))}const SE=tT,$v=w.forwardRef(({className:e,...t},n)=>S.jsx(Av,{ref:n,className:de("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}));$v.displayName=Av.displayName;const CE=Nd("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 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"}}),Uv=w.forwardRef(({className:e,variant:t,...n},r)=>S.jsx(Rv,{ref:r,className:de(CE({variant:t}),e),...n}));Uv.displayName=Rv.displayName;const TE=w.forwardRef(({className:e,...t},n)=>S.jsx(Dv,{ref:n,className:de("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));TE.displayName=Dv.displayName;const Wv=w.forwardRef(({className:e,...t},n)=>S.jsx(jv,{ref:n,className:de("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:S.jsx(FT,{className:"h-4 w-4"})}));Wv.displayName=jv.displayName;const Hv=w.forwardRef(({className:e,...t},n)=>S.jsx(Nv,{ref:n,className:de("text-sm font-semibold [&+div]:text-xs",e),...t}));Hv.displayName=Nv.displayName;const Kv=w.forwardRef(({className:e,...t},n)=>S.jsx(Mv,{ref:n,className:de("text-sm opacity-90",e),...t}));Kv.displayName=Mv.displayName;function EE(){const{toasts:e}=uC();return S.jsxs(SE,{children:[e.map(function({id:t,title:n,description:r,action:i,...s}){return S.jsxs(Uv,{...s,children:[S.jsxs("div",{className:"grid gap-1",children:[n&&S.jsx(Hv,{children:n}),r&&S.jsx(Kv,{children:r})]}),i,S.jsx(Wv,{})]},t)}),S.jsx($v,{})]})}const PE=["top","right","bottom","left"],zn=Math.min,Ye=Math.max,la=Math.round,ho=Math.floor,Vt=e=>({x:e,y:e}),kE={left:"right",right:"left",bottom:"top",top:"bottom"},bE={start:"end",end:"start"};function Xu(e,t,n){return Ye(e,zn(t,n))}function sn(e,t){return typeof e=="function"?e(t):e}function on(e){return e.split("-")[0]}function xi(e){return e.split("-")[1]}function Dd(e){return e==="x"?"y":"x"}function jd(e){return e==="y"?"height":"width"}const AE=new Set(["top","bottom"]);function _t(e){return AE.has(on(e))?"y":"x"}function Ld(e){return Dd(_t(e))}function RE(e,t,n){n===void 0&&(n=!1);const r=xi(e),i=Ld(e),s=jd(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=ua(o)),[o,ua(o)]}function NE(e){const t=ua(e);return[qu(e),t,qu(t)]}function qu(e){return e.replace(/start|end/g,t=>bE[t])}const Jh=["left","right"],ep=["right","left"],ME=["top","bottom"],DE=["bottom","top"];function jE(e,t,n){switch(e){case"top":case"bottom":return n?t?ep:Jh:t?Jh:ep;case"left":case"right":return t?ME:DE;default:return[]}}function LE(e,t,n,r){const i=xi(e);let s=jE(on(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(qu)))),s}function ua(e){return e.replace(/left|right|bottom|top/g,t=>kE[t])}function OE(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gv(e){return typeof e!="number"?OE(e):{top:e,right:e,bottom:e,left:e}}function ca(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function tp(e,t,n){let{reference:r,floating:i}=e;const s=_t(t),o=Ld(t),a=jd(o),l=on(t),u=s==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let m;switch(l){case"top":m={x:c,y:r.y-i.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-i.width,y:d};break;default:m={x:r.x,y:r.y}}switch(xi(t)){case"start":m[o]-=f*(n&&u?-1:1);break;case"end":m[o]+=f*(n&&u?-1:1);break}return m}const _E=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=tp(u,r,l),f=r,m={},v=0;for(let y=0;y<a.length;y++){const{name:x,fn:h}=a[y],{x:p,y:g,data:C,reset:T}=await h({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:u,platform:o,elements:{reference:e,floating:t}});c=p??c,d=g??d,m={...m,[x]:{...m[x],...C}},T&&v<=50&&(v++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(u=T.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:c,y:d}=tp(u,f,l)),y=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:m}};async function xs(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=sn(t,e),v=Gv(m),x=a[f?d==="floating"?"reference":"floating":d],h=ca(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),p=d==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,g=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(g))?await(s.getScale==null?void 0:s.getScale(g))||{x:1,y:1}:{x:1,y:1},T=ca(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:p,offsetParent:g,strategy:l}):p);return{top:(h.top-T.top+v.top)/C.y,bottom:(T.bottom-h.bottom+v.bottom)/C.y,left:(h.left-T.left+v.left)/C.x,right:(T.right-h.right+v.right)/C.x}}const IE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=sn(e,t)||{};if(u==null)return{};const d=Gv(c),f={x:n,y:r},m=Ld(i),v=jd(m),y=await o.getDimensions(u),x=m==="y",h=x?"top":"left",p=x?"bottom":"right",g=x?"clientHeight":"clientWidth",C=s.reference[v]+s.reference[m]-f[m]-s.floating[v],T=f[m]-s.reference[m],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let P=E?E[g]:0;(!P||!await(o.isElement==null?void 0:o.isElement(E)))&&(P=a.floating[g]||s.floating[v]);const k=C/2-T/2,D=P/2-y[v]/2-1,R=zn(d[h],D),I=zn(d[p],D),_=R,H=P-y[v]-I,j=P/2-y[v]/2+k,G=Xu(_,j,H),U=!l.arrow&&xi(i)!=null&&j!==G&&s.reference[v]/2-(j<_?R:I)-y[v]/2<0,F=U?j<_?j-_:j-H:0;return{[m]:f[m]+F,data:{[m]:G,centerOffset:j-G-F,...U&&{alignmentOffset:F}},reset:U}}}),FE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...x}=sn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const h=on(i),p=_t(a),g=on(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),T=f||(g||!y?[ua(a)]:NE(a)),E=v!=="none";!f&&E&&T.push(...LE(a,y,v,C));const P=[a,...T],k=await xs(t,x),D=[];let R=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&D.push(k[h]),d){const j=RE(i,o,C);D.push(k[j[0]],k[j[1]])}if(R=[...R,{placement:i,overflows:D}],!D.every(j=>j<=0)){var I,_;const j=(((I=s.flip)==null?void 0:I.index)||0)+1,G=P[j];if(G&&(!(d==="alignment"?p!==_t(G):!1)||R.every(b=>_t(b.placement)===p?b.overflows[0]>0:!0)))return{data:{index:j,overflows:R},reset:{placement:G}};let U=(_=R.filter(F=>F.overflows[0]<=0).sort((F,b)=>F.overflows[1]-b.overflows[1])[0])==null?void 0:_.placement;if(!U)switch(m){case"bestFit":{var H;const F=(H=R.filter(b=>{if(E){const M=_t(b.placement);return M===p||M==="y"}return!0}).map(b=>[b.placement,b.overflows.filter(M=>M>0).reduce((M,O)=>M+O,0)]).sort((b,M)=>b[1]-M[1])[0])==null?void 0:H[0];F&&(U=F);break}case"initialPlacement":U=a;break}if(i!==U)return{reset:{placement:U}}}return{}}}};function np(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rp(e){return PE.some(t=>e[t]>=0)}const VE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=sn(e,t);switch(r){case"referenceHidden":{const s=await xs(t,{...i,elementContext:"reference"}),o=np(s,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:rp(o)}}}case"escaped":{const s=await xs(t,{...i,altBoundary:!0}),o=np(s,n.floating);return{data:{escapedOffsets:o,escaped:rp(o)}}}default:return{}}}}},Qv=new Set(["left","top"]);async function zE(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=on(n),a=xi(n),l=_t(n)==="y",u=Qv.has(o)?-1:1,c=s&&l?-1:1,d=sn(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),l?{x:m*c,y:f*u}:{x:f*u,y:m*c}}const BE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await zE(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},$E=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:h,y:p}=x;return{x:h,y:p}}},...l}=sn(e,t),u={x:n,y:r},c=await xs(t,l),d=_t(on(i)),f=Dd(d);let m=u[f],v=u[d];if(s){const x=f==="y"?"top":"left",h=f==="y"?"bottom":"right",p=m+c[x],g=m-c[h];m=Xu(p,m,g)}if(o){const x=d==="y"?"top":"left",h=d==="y"?"bottom":"right",p=v+c[x],g=v-c[h];v=Xu(p,v,g)}const y=a.fn({...t,[f]:m,[d]:v});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[f]:s,[d]:o}}}}}},UE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=sn(e,t),c={x:n,y:r},d=_t(i),f=Dd(d);let m=c[f],v=c[d];const y=sn(a,t),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const g=f==="y"?"height":"width",C=s.reference[f]-s.floating[g]+x.mainAxis,T=s.reference[f]+s.reference[g]-x.mainAxis;m<C?m=C:m>T&&(m=T)}if(u){var h,p;const g=f==="y"?"width":"height",C=Qv.has(on(i)),T=s.reference[d]-s.floating[g]+(C&&((h=o.offset)==null?void 0:h[d])||0)+(C?0:x.crossAxis),E=s.reference[d]+s.reference[g]+(C?0:((p=o.offset)==null?void 0:p[d])||0)-(C?x.crossAxis:0);v<T?v=T:v>E&&(v=E)}return{[f]:m,[d]:v}}}},WE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:l=()=>{},...u}=sn(e,t),c=await xs(t,u),d=on(i),f=xi(i),m=_t(i)==="y",{width:v,height:y}=s.floating;let x,h;d==="top"||d==="bottom"?(x=d,h=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(h=d,x=f==="end"?"top":"bottom");const p=y-c.top-c.bottom,g=v-c.left-c.right,C=zn(y-c[x],p),T=zn(v-c[h],g),E=!t.middlewareData.shift;let P=C,k=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=p),E&&!f){const R=Ye(c.left,0),I=Ye(c.right,0),_=Ye(c.top,0),H=Ye(c.bottom,0);m?k=v-2*(R!==0||I!==0?R+I:Ye(c.left,c.right)):P=y-2*(_!==0||H!==0?_+H:Ye(c.top,c.bottom))}await l({...t,availableWidth:k,availableHeight:P});const D=await o.getDimensions(a.floating);return v!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}};function Wa(){return typeof window<"u"}function wi(e){return Yv(e)?(e.nodeName||"").toLowerCase():"#document"}function Ze(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ut(e){var t;return(t=(Yv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yv(e){return Wa()?e instanceof Node||e instanceof Ze(e).Node:!1}function At(e){return Wa()?e instanceof Element||e instanceof Ze(e).Element:!1}function $t(e){return Wa()?e instanceof HTMLElement||e instanceof Ze(e).HTMLElement:!1}function ip(e){return!Wa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ze(e).ShadowRoot}const HE=new Set(["inline","contents"]);function Vs(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Rt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!HE.has(i)}const KE=new Set(["table","td","th"]);function GE(e){return KE.has(wi(e))}const QE=[":popover-open",":modal"];function Ha(e){return QE.some(t=>{try{return e.matches(t)}catch{return!1}})}const YE=["transform","translate","scale","rotate","perspective"],XE=["transform","translate","scale","rotate","perspective","filter"],qE=["paint","layout","strict","content"];function Od(e){const t=_d(),n=At(e)?Rt(e):e;return YE.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)||XE.some(r=>(n.willChange||"").includes(r))||qE.some(r=>(n.contain||"").includes(r))}function ZE(e){let t=Bn(e);for(;$t(t)&&!di(t);){if(Od(t))return t;if(Ha(t))return null;t=Bn(t)}return null}function _d(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const JE=new Set(["html","body","#document"]);function di(e){return JE.has(wi(e))}function Rt(e){return Ze(e).getComputedStyle(e)}function Ka(e){return At(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bn(e){if(wi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ip(e)&&e.host||Ut(e);return ip(t)?t.host:t}function Xv(e){const t=Bn(e);return di(t)?e.ownerDocument?e.ownerDocument.body:e.body:$t(t)&&Vs(t)?t:Xv(t)}function ws(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Xv(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=Ze(i);if(s){const a=Zu(o);return t.concat(o,o.visualViewport||[],Vs(i)?i:[],a&&n?ws(a):[])}return t.concat(i,ws(i,[],n))}function Zu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qv(e){const t=Rt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=$t(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=la(n)!==s||la(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function Id(e){return At(e)?e:e.contextElement}function Gr(e){const t=Id(e);if(!$t(t))return Vt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=qv(t);let o=(s?la(n.width):n.width)/r,a=(s?la(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const eP=Vt(0);function Zv(e){const t=Ze(e);return!_d()||!t.visualViewport?eP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tP(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ze(e)?!1:t}function xr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Id(e);let o=Vt(1);t&&(r?At(r)&&(o=Gr(r)):o=Gr(e));const a=tP(s,n,r)?Zv(s):Vt(0);let l=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,c=i.width/o.x,d=i.height/o.y;if(s){const f=Ze(s),m=r&&At(r)?Ze(r):r;let v=f,y=Zu(v);for(;y&&r&&m!==v;){const x=Gr(y),h=y.getBoundingClientRect(),p=Rt(y),g=h.left+(y.clientLeft+parseFloat(p.paddingLeft))*x.x,C=h.top+(y.clientTop+parseFloat(p.paddingTop))*x.y;l*=x.x,u*=x.y,c*=x.x,d*=x.y,l+=g,u+=C,v=Ze(y),y=Zu(v)}}return ca({width:c,height:d,x:l,y:u})}function Ga(e,t){const n=Ka(e).scrollLeft;return t?t.left+n:xr(Ut(e)).left+n}function Jv(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ga(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function nP(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=Ut(r),a=t?Ha(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=Vt(1);const c=Vt(0),d=$t(r);if((d||!d&&!s)&&((wi(r)!=="body"||Vs(o))&&(l=Ka(r)),$t(r))){const m=xr(r);u=Gr(r),c.x=m.x+r.clientLeft,c.y=m.y+r.clientTop}const f=o&&!d&&!s?Jv(o,l):Vt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function rP(e){return Array.from(e.getClientRects())}function iP(e){const t=Ut(e),n=Ka(e),r=e.ownerDocument.body,i=Ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Ga(e);const a=-n.scrollTop;return Rt(r).direction==="rtl"&&(o+=Ye(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}const sp=25;function sP(e,t){const n=Ze(e),r=Ut(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=_d();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const u=Ga(r);if(u<=0){const c=r.ownerDocument,d=c.body,f=getComputedStyle(d),m=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,v=Math.abs(r.clientWidth-d.clientWidth-m);v<=sp&&(s-=v)}else u<=sp&&(s+=u);return{width:s,height:o,x:a,y:l}}const oP=new Set(["absolute","fixed"]);function aP(e,t){const n=xr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=$t(e)?Gr(e):Vt(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,u=r*s.y;return{width:o,height:a,x:l,y:u}}function op(e,t,n){let r;if(t==="viewport")r=sP(e,n);else if(t==="document")r=iP(Ut(e));else if(At(t))r=aP(t,n);else{const i=Zv(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ca(r)}function e0(e,t){const n=Bn(e);return n===t||!At(n)||di(n)?!1:Rt(n).position==="fixed"||e0(n,t)}function lP(e,t){const n=t.get(e);if(n)return n;let r=ws(e,[],!1).filter(a=>At(a)&&wi(a)!=="body"),i=null;const s=Rt(e).position==="fixed";let o=s?Bn(e):e;for(;At(o)&&!di(o);){const a=Rt(o),l=Od(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&oP.has(i.position)||Vs(o)&&!l&&e0(e,o))?r=r.filter(c=>c!==o):i=a,o=Bn(o)}return t.set(e,r),r}function uP(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Ha(t)?[]:lP(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const d=op(t,c,i);return u.top=Ye(d.top,u.top),u.right=zn(d.right,u.right),u.bottom=zn(d.bottom,u.bottom),u.left=Ye(d.left,u.left),u},op(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function cP(e){const{width:t,height:n}=qv(e);return{width:t,height:n}}function dP(e,t,n){const r=$t(t),i=Ut(t),s=n==="fixed",o=xr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Vt(0);function u(){l.x=Ga(i)}if(r||!r&&!s)if((wi(t)!=="body"||Vs(i))&&(a=Ka(t)),r){const m=xr(t,!0,s,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&u();s&&!r&&i&&u();const c=i&&!r&&!s?Jv(i,a):Vt(0),d=o.left+a.scrollLeft-l.x-c.x,f=o.top+a.scrollTop-l.y-c.y;return{x:d,y:f,width:o.width,height:o.height}}function Ll(e){return Rt(e).position==="static"}function ap(e,t){if(!$t(e)||Rt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ut(e)===n&&(n=n.ownerDocument.body),n}function t0(e,t){const n=Ze(e);if(Ha(e))return n;if(!$t(e)){let i=Bn(e);for(;i&&!di(i);){if(At(i)&&!Ll(i))return i;i=Bn(i)}return n}let r=ap(e,t);for(;r&&GE(r)&&Ll(r);)r=ap(r,t);return r&&di(r)&&Ll(r)&&!Od(r)?n:r||ZE(e)||n}const fP=async function(e){const t=this.getOffsetParent||t0,n=this.getDimensions,r=await n(e.floating);return{reference:dP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function hP(e){return Rt(e).direction==="rtl"}const pP={convertOffsetParentRelativeRectToViewportRelativeRect:nP,getDocumentElement:Ut,getClippingRect:uP,getOffsetParent:t0,getElementRects:fP,getClientRects:rP,getDimensions:cP,getScale:Gr,isElement:At,isRTL:hP};function n0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mP(e,t){let n=null,r;const i=Ut(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:m}=u;if(a||t(),!f||!m)return;const v=ho(d),y=ho(i.clientWidth-(c+f)),x=ho(i.clientHeight-(d+m)),h=ho(c),g={rootMargin:-v+"px "+-y+"px "+-x+"px "+-h+"px",threshold:Ye(0,zn(1,l))||1};let C=!0;function T(E){const P=E[0].intersectionRatio;if(P!==l){if(!C)return o();P?o(!1,P):r=setTimeout(()=>{o(!1,1e-7)},1e3)}P===1&&!n0(u,e.getBoundingClientRect())&&o(),C=!1}try{n=new IntersectionObserver(T,{...g,root:i.ownerDocument})}catch{n=new IntersectionObserver(T,g)}n.observe(e)}return o(!0),s}function gP(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Id(e),c=i||s?[...u?ws(u):[],...ws(t)]:[];c.forEach(h=>{i&&h.addEventListener("scroll",n,{passive:!0}),s&&h.addEventListener("resize",n)});const d=u&&a?mP(u,n):null;let f=-1,m=null;o&&(m=new ResizeObserver(h=>{let[p]=h;p&&p.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var g;(g=m)==null||g.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let v,y=l?xr(e):null;l&&x();function x(){const h=xr(e);y&&!n0(y,h)&&n(),y=h,v=requestAnimationFrame(x)}return n(),()=>{var h;c.forEach(p=>{i&&p.removeEventListener("scroll",n),s&&p.removeEventListener("resize",n)}),d==null||d(),(h=m)==null||h.disconnect(),m=null,l&&cancelAnimationFrame(v)}}const yP=BE,vP=$E,xP=FE,wP=WE,SP=VE,lp=IE,CP=UE,TP=(e,t,n)=>{const r=new Map,i={platform:pP,...n},s={...i.platform,_c:r};return _E(e,t,{...i,platform:s})};var EP=typeof document<"u",PP=function(){},jo=EP?w.useLayoutEffect:PP;function da(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,i;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(!da(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!da(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function r0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function up(e,t){const n=r0(e);return Math.round(t*n)/n}function Ol(e){const t=w.useRef(e);return jo(()=>{t.current=e}),t}function kP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=w.useState(r);da(f,r)||m(r);const[v,y]=w.useState(null),[x,h]=w.useState(null),p=w.useCallback(b=>{b!==E.current&&(E.current=b,y(b))},[]),g=w.useCallback(b=>{b!==P.current&&(P.current=b,h(b))},[]),C=s||v,T=o||x,E=w.useRef(null),P=w.useRef(null),k=w.useRef(c),D=l!=null,R=Ol(l),I=Ol(i),_=Ol(u),H=w.useCallback(()=>{if(!E.current||!P.current)return;const b={placement:t,strategy:n,middleware:f};I.current&&(b.platform=I.current),TP(E.current,P.current,b).then(M=>{const O={...M,isPositioned:_.current!==!1};j.current&&!da(k.current,O)&&(k.current=O,Is.flushSync(()=>{d(O)}))})},[f,t,n,I,_]);jo(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,d(b=>({...b,isPositioned:!1})))},[u]);const j=w.useRef(!1);jo(()=>(j.current=!0,()=>{j.current=!1}),[]),jo(()=>{if(C&&(E.current=C),T&&(P.current=T),C&&T){if(R.current)return R.current(C,T,H);H()}},[C,T,H,R,D]);const G=w.useMemo(()=>({reference:E,floating:P,setReference:p,setFloating:g}),[p,g]),U=w.useMemo(()=>({reference:C,floating:T}),[C,T]),F=w.useMemo(()=>{const b={position:n,left:0,top:0};if(!U.floating)return b;const M=up(U.floating,c.x),O=up(U.floating,c.y);return a?{...b,transform:"translate("+M+"px, "+O+"px)",...r0(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:O}},[n,a,U.floating,c.x,c.y]);return w.useMemo(()=>({...c,update:H,refs:G,elements:U,floatingStyles:F}),[c,H,G,U,F])}const bP=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?lp({element:r.current,padding:i}).fn(n):{}:r?lp({element:r,padding:i}).fn(n):{}}}},AP=(e,t)=>({...yP(e),options:[e,t]}),RP=(e,t)=>({...vP(e),options:[e,t]}),NP=(e,t)=>({...CP(e),options:[e,t]}),MP=(e,t)=>({...xP(e),options:[e,t]}),DP=(e,t)=>({...wP(e),options:[e,t]}),jP=(e,t)=>({...SP(e),options:[e,t]}),LP=(e,t)=>({...bP(e),options:[e,t]});var OP="Arrow",i0=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return S.jsx(Ge.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});i0.displayName=OP;var _P=i0;function IP(e){const[t,n]=w.useState(void 0);return Vn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,a=u.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var s0="Popper",[o0,a0]=za(s0),[NM,l0]=o0(s0),u0="PopperAnchor",c0=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=l0(u0,n),o=w.useRef(null),a=bt(t,o),l=w.useRef(null);return w.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||o.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:S.jsx(Ge.div,{...i,ref:a})});c0.displayName=u0;var Fd="PopperContent",[FP,VP]=o0(Fd),d0=w.forwardRef((e,t)=>{var Qn,Tf,Ef,Pf,kf,bf;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:v,...y}=e,x=l0(Fd,n),[h,p]=w.useState(null),g=bt(t,Pi=>p(Pi)),[C,T]=w.useState(null),E=IP(C),P=(E==null?void 0:E.width)??0,k=(E==null?void 0:E.height)??0,D=r+(s!=="center"?"-"+s:""),R=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},I=Array.isArray(u)?u:[u],_=I.length>0,H={padding:R,boundary:I.filter(BP),altBoundary:_},{refs:j,floatingStyles:G,placement:U,isPositioned:F,middlewareData:b}=kP({strategy:"fixed",placement:D,whileElementsMounted:(...Pi)=>gP(...Pi,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[AP({mainAxis:i+k,alignmentAxis:o}),l&&RP({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?NP():void 0,...H}),l&&MP({...H}),DP({...H,apply:({elements:Pi,rects:Af,availableWidth:Aw,availableHeight:Rw})=>{const{width:Nw,height:Mw}=Af.reference,Hs=Pi.floating.style;Hs.setProperty("--radix-popper-available-width",`${Aw}px`),Hs.setProperty("--radix-popper-available-height",`${Rw}px`),Hs.setProperty("--radix-popper-anchor-width",`${Nw}px`),Hs.setProperty("--radix-popper-anchor-height",`${Mw}px`)}}),C&&LP({element:C,padding:a}),$P({arrowWidth:P,arrowHeight:k}),f&&jP({strategy:"referenceHidden",...H})]}),[M,O]=p0(U),$=Fn(v);Vn(()=>{F&&($==null||$())},[F,$]);const ee=(Qn=b.arrow)==null?void 0:Qn.x,ht=(Tf=b.arrow)==null?void 0:Tf.y,nt=((Ef=b.arrow)==null?void 0:Ef.centerOffset)!==0,[Ei,Wt]=w.useState();return Vn(()=>{h&&Wt(window.getComputedStyle(h).zIndex)},[h]),S.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:F?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ei,"--radix-popper-transform-origin":[(Pf=b.transformOrigin)==null?void 0:Pf.x,(kf=b.transformOrigin)==null?void 0:kf.y].join(" "),...((bf=b.hide)==null?void 0:bf.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(FP,{scope:n,placedSide:M,onArrowChange:T,arrowX:ee,arrowY:ht,shouldHideArrow:nt,children:S.jsx(Ge.div,{"data-side":M,"data-align":O,...y,ref:g,style:{...y.style,animation:F?void 0:"none"}})})})});d0.displayName=Fd;var f0="PopperArrow",zP={top:"bottom",right:"left",bottom:"top",left:"right"},h0=w.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=VP(f0,r),o=zP[s.placedSide];return S.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[o]: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:S.jsx(_P,{...i,ref:n,style:{...i.style,display:"block"}})})});h0.displayName=f0;function BP(e){return e!==null}var $P=e=>({name:"transformOrigin",options:e,fn(t){var x,h,p;const{placement:n,rects:r,middlewareData:i}=t,o=((x=i.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,c]=p0(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((h=i.arrow)==null?void 0:h.x)??0)+a/2,m=(((p=i.arrow)==null?void 0:p.y)??0)+l/2;let v="",y="";return u==="bottom"?(v=o?d:`${f}px`,y=`${-l}px`):u==="top"?(v=o?d:`${f}px`,y=`${r.floating.height+l}px`):u==="right"?(v=`${-l}px`,y=o?d:`${m}px`):u==="left"&&(v=`${r.floating.width+l}px`,y=o?d:`${m}px`),{data:{x:v,y}}}});function p0(e){const[t,n="center"]=e.split("-");return[t,n]}var UP=c0,WP=d0,HP=h0,[Qa]=za("Tooltip",[a0]),Vd=a0(),m0="TooltipProvider",KP=700,cp="tooltip.open",[GP,g0]=Qa(m0),y0=e=>{const{__scopeTooltip:t,delayDuration:n=KP,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,o=w.useRef(!0),a=w.useRef(!1),l=w.useRef(0);return w.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),S.jsx(GP,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:w.useCallback(u=>{a.current=u},[]),disableHoverableContent:i,children:s})};y0.displayName=m0;var v0="Tooltip",[MM,zs]=Qa(v0),Ju="TooltipTrigger",QP=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=zs(Ju,n),s=g0(Ju,n),o=Vd(n),a=w.useRef(null),l=bt(t,a,i.onTriggerChange),u=w.useRef(!1),c=w.useRef(!1),d=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),S.jsx(UP,{asChild:!0,...o,children:S.jsx(Ge.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:ve(e.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ve(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:ve(e.onBlur,i.onClose),onClick:ve(e.onClick,i.onClose)})})});QP.displayName=Ju;var zd="TooltipPortal",[YP,XP]=Qa(zd,{forceMount:void 0}),x0=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,s=zs(zd,t);return S.jsx(YP,{scope:t,forceMount:n,children:S.jsx(Ba,{present:n||s.open,children:S.jsx(kd,{asChild:!0,container:i,children:r})})})};x0.displayName=zd;var fi="TooltipContent",w0=w.forwardRef((e,t)=>{const n=XP(fi,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=zs(fi,e.__scopeTooltip);return S.jsx(Ba,{present:r||o.open,children:o.disableHoverableContent?S.jsx(S0,{side:i,...s,ref:t}):S.jsx(qP,{side:i,...s,ref:t})})}),qP=w.forwardRef((e,t)=>{const n=zs(fi,e.__scopeTooltip),r=g0(fi,e.__scopeTooltip),i=w.useRef(null),s=bt(t,i),[o,a]=w.useState(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=w.useCallback(()=>{a(null),d(!1)},[d]),m=w.useCallback((v,y)=>{const x=v.currentTarget,h={x:v.clientX,y:v.clientY},p=nk(h,x.getBoundingClientRect()),g=rk(h,p),C=ik(y.getBoundingClientRect()),T=ok([...g,...C]);a(T),d(!0)},[d]);return w.useEffect(()=>()=>f(),[f]),w.useEffect(()=>{if(l&&c){const v=x=>m(x,c),y=x=>m(x,l);return l.addEventListener("pointerleave",v),c.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",v),c.removeEventListener("pointerleave",y)}}},[l,c,m,f]),w.useEffect(()=>{if(o){const v=y=>{const x=y.target,h={x:y.clientX,y:y.clientY},p=(l==null?void 0:l.contains(x))||(c==null?void 0:c.contains(x)),g=!sk(h,o);p?f():g&&(f(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,c,o,u,f]),S.jsx(S0,{...e,ref:s})}),[ZP,JP]=Qa(v0,{isInside:!1}),ek=fC("TooltipContent"),S0=w.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=zs(fi,n),u=Vd(n),{onClose:c}=l;return w.useEffect(()=>(document.addEventListener(cp,c),()=>document.removeEventListener(cp,c)),[c]),w.useEffect(()=>{if(l.trigger){const d=f=>{const m=f.target;m!=null&&m.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),S.jsx(Pd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:S.jsxs(WP,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[S.jsx(ek,{children:r}),S.jsx(ZP,{scope:n,isInside:!0,children:S.jsx(IC,{id:l.contentId,role:"tooltip",children:i||r})})]})})});w0.displayName=fi;var C0="TooltipArrow",tk=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Vd(n);return JP(C0,n).isInside?null:S.jsx(HP,{...i,...r,ref:t})});tk.displayName=C0;function nk(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function rk(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 ik(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function sk(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s],l=t[o],u=a.x,c=a.y,d=l.x,f=l.y;c>r!=f>r&&n<(d-u)*(r-c)/(f-c)+u&&(i=!i)}return i}function ok(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),ak(t)}function ak(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}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 lk=y0,uk=x0,T0=w0;const ck=lk,dk=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>S.jsx(uk,{children:S.jsx(T0,{ref:r,sideOffset:t,className:de("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n})}));dk.displayName=T0.displayName;var Ya=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(){}},fk={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},xn,Ac,zm,hk=(zm=class{constructor(){K(this,xn,fk);K(this,Ac,!1)}setTimeoutProvider(e){z(this,xn,e)}setTimeout(e,t){return A(this,xn).setTimeout(e,t)}clearTimeout(e){A(this,xn).clearTimeout(e)}setInterval(e,t){return A(this,xn).setInterval(e,t)}clearInterval(e){A(this,xn).clearInterval(e)}},xn=new WeakMap,Ac=new WeakMap,zm),ec=new hk;function pk(e){setTimeout(e,0)}var Xa=typeof window>"u"||"Deno"in globalThis;function vt(){}function mk(e,t){return typeof e=="function"?e(t):e}function gk(e){return typeof e=="number"&&e>=0&&e!==1/0}function yk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function tc(e,t){return typeof e=="function"?e(t):e}function vk(e,t){return typeof e=="function"?e(t):e}function dp(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Bd(o,t.options))return!1}else if(!Cs(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function fp(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Ss(t.options.mutationKey)!==Ss(s))return!1}else if(!Cs(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Bd(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ss)(e)}function Ss(e){return JSON.stringify(e,(t,n)=>nc(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Cs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Cs(e[n],t[n])):!1}var xk=Object.prototype.hasOwnProperty;function E0(e,t){if(e===t)return e;const n=hp(e)&&hp(t);if(!n&&!(nc(e)&&nc(t)))return t;const i=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),o=s.length,a=n?new Array(o):{};let l=0;for(let u=0;u<o;u++){const c=n?u:s[u],d=e[c],f=t[c];if(d===f){a[c]=d,(n?u<i:xk.call(e,c))&&l++;continue}if(d===null||f===null||typeof d!="object"||typeof f!="object"){a[c]=f;continue}const m=E0(d,f);a[c]=m,m===d&&l++}return i===o&&l===i?e:a}function hp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nc(e){if(!pp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!pp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function pp(e){return Object.prototype.toString.call(e)==="[object Object]"}function wk(e){return new Promise(t=>{ec.setTimeout(t,e)})}function Sk(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?E0(e,t):t}function Ck(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Tk(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var $d=Symbol();function P0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===$d?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var ir,wn,Xr,Bm,Ek=(Bm=class extends Ya{constructor(){super();K(this,ir);K(this,wn);K(this,Xr);z(this,Xr,t=>{if(!Xa&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){A(this,wn)||this.setEventListener(A(this,Xr))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,wn))==null||t.call(this),z(this,wn,void 0))}setEventListener(t){var n;z(this,Xr,t),(n=A(this,wn))==null||n.call(this),z(this,wn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){A(this,ir)!==t&&(z(this,ir,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof A(this,ir)=="boolean"?A(this,ir):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ir=new WeakMap,wn=new WeakMap,Xr=new WeakMap,Bm),k0=new Ek;function Pk(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var kk=pk;function bk(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=kk;const s=a=>{t?e.push(a):i(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var Oe=bk(),qr,Sn,Zr,$m,Ak=($m=class extends Ya{constructor(){super();K(this,qr,!0);K(this,Sn);K(this,Zr);z(this,Zr,t=>{if(!Xa&&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(){A(this,Sn)||this.setEventListener(A(this,Zr))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,Sn))==null||t.call(this),z(this,Sn,void 0))}setEventListener(t){var n;z(this,Zr,t),(n=A(this,Sn))==null||n.call(this),z(this,Sn,t(this.setOnline.bind(this)))}setOnline(t){A(this,qr)!==t&&(z(this,qr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return A(this,qr)}},qr=new WeakMap,Sn=new WeakMap,Zr=new WeakMap,$m),fa=new Ak;function Rk(e){return Math.min(1e3*2**e,3e4)}function b0(e){return(e??"online")==="online"?fa.isOnline():!0}var rc=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function A0(e){let t=!1,n=0,r;const i=Pk(),s=()=>i.status!=="pending",o=y=>{var x;if(!s()){const h=new rc(y);f(h),(x=e.onCancel)==null||x.call(e,h)}},a=()=>{t=!0},l=()=>{t=!1},u=()=>k0.isFocused()&&(e.networkMode==="always"||fa.isOnline())&&e.canRun(),c=()=>b0(e.networkMode)&&e.canRun(),d=y=>{s()||(r==null||r(),i.resolve(y))},f=y=>{s()||(r==null||r(),i.reject(y))},m=()=>new Promise(y=>{var x;r=h=>{(s()||u())&&y(h)},(x=e.onPause)==null||x.call(e)}).then(()=>{var y;r=void 0,s()||(y=e.onContinue)==null||y.call(e)}),v=()=>{if(s())return;let y;const x=n===0?e.initialPromise:void 0;try{y=x??e.fn()}catch(h){y=Promise.reject(h)}Promise.resolve(y).then(d).catch(h=>{var E;if(s())return;const p=e.retry??(Xa?0:3),g=e.retryDelay??Rk,C=typeof g=="function"?g(n,h):g,T=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,h);if(t||!T){f(h);return}n++,(E=e.onFail)==null||E.call(e,n,h),wk(C).then(()=>u()?void 0:m()).then(()=>{t?f(h):v()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?v():m().then(v),i)}}var sr,Um,R0=(Um=class{constructor(){K(this,sr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),gk(this.gcTime)&&z(this,sr,ec.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xa?1/0:5*60*1e3))}clearGcTimeout(){A(this,sr)&&(ec.clearTimeout(A(this,sr)),z(this,sr,void 0))}},sr=new WeakMap,Um),or,Jr,it,ar,we,Rs,lr,xt,Kt,Wm,Nk=(Wm=class extends R0{constructor(t){super();K(this,xt);K(this,or);K(this,Jr);K(this,it);K(this,ar);K(this,we);K(this,Rs);K(this,lr);z(this,lr,!1),z(this,Rs,t.defaultOptions),this.setOptions(t.options),this.observers=[],z(this,ar,t.client),z(this,it,A(this,ar).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,z(this,or,gp(this.options)),this.state=t.state??A(this,or),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=A(this,we))==null?void 0:t.promise}setOptions(t){if(this.options={...A(this,Rs),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=gp(this.options);n.data!==void 0&&(this.setState(mp(n.data,n.dataUpdatedAt)),z(this,or,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,it).remove(this)}setData(t,n){const r=Sk(this.state.data,t,this.options);return be(this,xt,Kt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){be(this,xt,Kt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=A(this,we))==null?void 0:r.promise;return(i=A(this,we))==null||i.cancel(t),n?n.then(vt).catch(vt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,or))}isActive(){return this.observers.some(t=>vk(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$d||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>tc(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:!yk(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,we))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,we))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),A(this,it).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(A(this,we)&&(A(this,lr)?A(this,we).cancel({revert:!0}):A(this,we).cancelRetry()),this.scheduleGc()),A(this,it).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||be(this,xt,Kt).call(this,{type:"invalidate"})}async fetch(t,n){var l,u,c,d,f,m,v,y,x,h,p,g;if(this.state.fetchStatus!=="idle"&&((l=A(this,we))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,we))return A(this,we).continueRetry(),A(this,we).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(T=>T.options.queryFn);C&&this.setOptions(C.options)}const r=new AbortController,i=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(z(this,lr,!0),r.signal)})},s=()=>{const C=P0(this.options,n),E=(()=>{const P={client:A(this,ar),queryKey:this.queryKey,meta:this.meta};return i(P),P})();return z(this,lr,!1),this.options.persister?this.options.persister(C,E,this):C(E)},a=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:A(this,ar),state:this.state,fetchFn:s};return i(C),C})();(u=this.options.behavior)==null||u.onFetch(a,this),z(this,Jr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&be(this,xt,Kt).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),z(this,we,A0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:C=>{C instanceof rc&&C.revert&&this.setState({...A(this,Jr),fetchStatus:"idle"}),r.abort()},onFail:(C,T)=>{be(this,xt,Kt).call(this,{type:"failed",failureCount:C,error:T})},onPause:()=>{be(this,xt,Kt).call(this,{type:"pause"})},onContinue:()=>{be(this,xt,Kt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const C=await A(this,we).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(m=(f=A(this,it).config).onSuccess)==null||m.call(f,C,this),(y=(v=A(this,it).config).onSettled)==null||y.call(v,C,this.state.error,this),C}catch(C){if(C instanceof rc){if(C.silent)return A(this,we).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw be(this,xt,Kt).call(this,{type:"error",error:C}),(h=(x=A(this,it).config).onError)==null||h.call(x,C,this),(g=(p=A(this,it).config).onSettled)==null||g.call(p,this.state.data,C,this),C}finally{this.scheduleGc()}}},or=new WeakMap,Jr=new WeakMap,it=new WeakMap,ar=new WeakMap,we=new WeakMap,Rs=new WeakMap,lr=new WeakMap,xt=new WeakSet,Kt=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,...Mk(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...mp(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return z(this,Jr,t.manual?i:void 0),i;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Oe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),A(this,it).notify({query:this,type:"updated",action:t})})},Wm);function Mk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:b0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function mp(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function gp(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"}}function yp(e){return{onFetch:(t,n)=>{var c,d,f,m,v;const r=t.options,i=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,s=((m=t.state.data)==null?void 0:m.pages)||[],o=((v=t.state.data)==null?void 0:v.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let y=!1;const x=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},h=P0(t.options,t.fetchOptions),p=async(g,C,T)=>{if(y)return Promise.reject();if(C==null&&g.pages.length)return Promise.resolve(g);const P=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:C,direction:T?"backward":"forward",meta:t.options.meta};return x(I),I})(),k=await h(P),{maxPages:D}=t.options,R=T?Tk:Ck;return{pages:R(g.pages,k,D),pageParams:R(g.pageParams,C,D)}};if(i&&s.length){const g=i==="backward",C=g?Dk:vp,T={pages:s,pageParams:o},E=C(r,T);a=await p(T,E,g)}else{const g=e??s.length;do{const C=l===0?o[0]??r.initialPageParam:vp(r,a);if(l>0&&C==null)break;a=await p(a,C),l++}while(l<g)}return a};t.options.persister?t.fetchFn=()=>{var y,x;return(x=(y=t.options).persister)==null?void 0:x.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function vp(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 Dk(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 Ns,Dt,je,ur,jt,hn,Hm,jk=(Hm=class extends R0{constructor(t){super();K(this,jt);K(this,Ns);K(this,Dt);K(this,je);K(this,ur);z(this,Ns,t.client),this.mutationId=t.mutationId,z(this,je,t.mutationCache),z(this,Dt,[]),this.state=t.state||Lk(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){A(this,Dt).includes(t)||(A(this,Dt).push(t),this.clearGcTimeout(),A(this,je).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){z(this,Dt,A(this,Dt).filter(n=>n!==t)),this.scheduleGc(),A(this,je).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){A(this,Dt).length||(this.state.status==="pending"?this.scheduleGc():A(this,je).remove(this))}continue(){var t;return((t=A(this,ur))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,a,l,u,c,d,f,m,v,y,x,h,p,g,C,T,E,P,k,D;const n=()=>{be(this,jt,hn).call(this,{type:"continue"})},r={client:A(this,Ns),meta:this.options.meta,mutationKey:this.options.mutationKey};z(this,ur,A0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(R,I)=>{be(this,jt,hn).call(this,{type:"failed",failureCount:R,error:I})},onPause:()=>{be(this,jt,hn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,je).canRun(this)}));const i=this.state.status==="pending",s=!A(this,ur).canStart();try{if(i)n();else{be(this,jt,hn).call(this,{type:"pending",variables:t,isPaused:s}),await((a=(o=A(this,je).config).onMutate)==null?void 0:a.call(o,t,this,r));const I=await((u=(l=this.options).onMutate)==null?void 0:u.call(l,t,r));I!==this.state.context&&be(this,jt,hn).call(this,{type:"pending",context:I,variables:t,isPaused:s})}const R=await A(this,ur).start();return await((d=(c=A(this,je).config).onSuccess)==null?void 0:d.call(c,R,t,this.state.context,this,r)),await((m=(f=this.options).onSuccess)==null?void 0:m.call(f,R,t,this.state.context,r)),await((y=(v=A(this,je).config).onSettled)==null?void 0:y.call(v,R,null,this.state.variables,this.state.context,this,r)),await((h=(x=this.options).onSettled)==null?void 0:h.call(x,R,null,t,this.state.context,r)),be(this,jt,hn).call(this,{type:"success",data:R}),R}catch(R){try{throw await((g=(p=A(this,je).config).onError)==null?void 0:g.call(p,R,t,this.state.context,this,r)),await((T=(C=this.options).onError)==null?void 0:T.call(C,R,t,this.state.context,r)),await((P=(E=A(this,je).config).onSettled)==null?void 0:P.call(E,void 0,R,this.state.variables,this.state.context,this,r)),await((D=(k=this.options).onSettled)==null?void 0:D.call(k,void 0,R,t,this.state.context,r)),R}finally{be(this,jt,hn).call(this,{type:"error",error:R})}}finally{A(this,je).runNext(this)}}},Ns=new WeakMap,Dt=new WeakMap,je=new WeakMap,ur=new WeakMap,jt=new WeakSet,hn=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),Oe.batch(()=>{A(this,Dt).forEach(r=>{r.onMutationUpdate(t)}),A(this,je).notify({mutation:this,type:"updated",action:t})})},Hm);function Lk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xt,wt,Ms,Km,Ok=(Km=class extends Ya{constructor(t={}){super();K(this,Xt);K(this,wt);K(this,Ms);this.config=t,z(this,Xt,new Set),z(this,wt,new Map),z(this,Ms,0)}build(t,n,r){const i=new jk({client:t,mutationCache:this,mutationId:++Ks(this,Ms)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){A(this,Xt).add(t);const n=po(t);if(typeof n=="string"){const r=A(this,wt).get(n);r?r.push(t):A(this,wt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(A(this,Xt).delete(t)){const n=po(t);if(typeof n=="string"){const r=A(this,wt).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&A(this,wt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=po(t);if(typeof n=="string"){const r=A(this,wt).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=po(t);if(typeof n=="string"){const i=(r=A(this,wt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Oe.batch(()=>{A(this,Xt).forEach(t=>{this.notify({type:"removed",mutation:t})}),A(this,Xt).clear(),A(this,wt).clear()})}getAll(){return Array.from(A(this,Xt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>fp(n,r))}findAll(t={}){return this.getAll().filter(n=>fp(t,n))}notify(t){Oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Oe.batch(()=>Promise.all(t.map(n=>n.continue().catch(vt))))}},Xt=new WeakMap,wt=new WeakMap,Ms=new WeakMap,Km);function po(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Lt,Gm,_k=(Gm=class extends Ya{constructor(t={}){super();K(this,Lt);this.config=t,z(this,Lt,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??Bd(i,n);let o=this.get(s);return o||(o=new Nk({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){A(this,Lt).has(t.queryHash)||(A(this,Lt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=A(this,Lt).get(t.queryHash);n&&(t.destroy(),n===t&&A(this,Lt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return A(this,Lt).get(t)}getAll(){return[...A(this,Lt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>dp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>dp(t,r)):n}notify(t){Oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Oe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Oe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Lt=new WeakMap,Gm),ae,Cn,Tn,ei,ti,En,ni,ri,Qm,Ik=(Qm=class{constructor(e={}){K(this,ae);K(this,Cn);K(this,Tn);K(this,ei);K(this,ti);K(this,En);K(this,ni);K(this,ri);z(this,ae,e.queryCache||new _k),z(this,Cn,e.mutationCache||new Ok),z(this,Tn,e.defaultOptions||{}),z(this,ei,new Map),z(this,ti,new Map),z(this,En,0)}mount(){Ks(this,En)._++,A(this,En)===1&&(z(this,ni,k0.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,ae).onFocus())})),z(this,ri,fa.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,ae).onOnline())})))}unmount(){var e,t;Ks(this,En)._--,A(this,En)===0&&((e=A(this,ni))==null||e.call(this),z(this,ni,void 0),(t=A(this,ri))==null||t.call(this),z(this,ri,void 0))}isFetching(e){return A(this,ae).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return A(this,Cn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,ae).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=A(this,ae).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(tc(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return A(this,ae).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=A(this,ae).get(r.queryHash),s=i==null?void 0:i.state.data,o=mk(t,s);if(o!==void 0)return A(this,ae).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Oe.batch(()=>A(this,ae).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,ae).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=A(this,ae);Oe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=A(this,ae);return Oe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Oe.batch(()=>A(this,ae).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(vt).catch(vt)}invalidateQueries(e,t={}){return Oe.batch(()=>(A(this,ae).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=Oe.batch(()=>A(this,ae).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(vt)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(vt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=A(this,ae).build(this,t);return n.isStaleByTime(tc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(vt).catch(vt)}fetchInfiniteQuery(e){return e.behavior=yp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(vt).catch(vt)}ensureInfiniteQueryData(e){return e.behavior=yp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fa.isOnline()?A(this,Cn).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,ae)}getMutationCache(){return A(this,Cn)}getDefaultOptions(){return A(this,Tn)}setDefaultOptions(e){z(this,Tn,e)}setQueryDefaults(e,t){A(this,ei).set(Ss(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...A(this,ei).values()],n={};return t.forEach(r=>{Cs(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){A(this,ti).set(Ss(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...A(this,ti).values()],n={};return t.forEach(r=>{Cs(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...A(this,Tn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Bd(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===$d&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...A(this,Tn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){A(this,ae).clear(),A(this,Cn).clear()}},ae=new WeakMap,Cn=new WeakMap,Tn=new WeakMap,ei=new WeakMap,ti=new WeakMap,En=new WeakMap,ni=new WeakMap,ri=new WeakMap,Qm),Fk=w.createContext(void 0),Vk=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(Fk.Provider,{value:e,children:t}));/**
 * @remix-run/router v1.23.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 ha(){return ha=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},ha.apply(this,arguments)}var bn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(bn||(bn={}));const xp="popstate";function zk(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:a}=r.location;return ic("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:M0(i)}return $k(t,n,null,e)}function Ke(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function N0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Bk(){return Math.random().toString(36).substr(2,8)}function wp(e,t){return{usr:e.state,key:e.key,idx:t}}function ic(e,t,n,r){return n===void 0&&(n=null),ha({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?qa(t):t,{state:n,key:t&&t.key||r||Bk()})}function M0(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 qa(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 $k(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=bn.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(ha({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){a=bn.Pop;let x=c(),h=x==null?null:x-u;u=x,l&&l({action:a,location:y.location,delta:h})}function f(x,h){a=bn.Push;let p=ic(y.location,x,h);u=c()+1;let g=wp(p,u),C=y.createHref(p);try{o.pushState(g,"",C)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(C)}s&&l&&l({action:a,location:y.location,delta:1})}function m(x,h){a=bn.Replace;let p=ic(y.location,x,h);u=c();let g=wp(p,u),C=y.createHref(p);o.replaceState(g,"",C),s&&l&&l({action:a,location:y.location,delta:0})}function v(x){let h=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof x=="string"?x:M0(x);return p=p.replace(/ $/,"%20"),Ke(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let y={get action(){return a},get location(){return e(i,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(xp,d),l=x,()=>{i.removeEventListener(xp,d),l=null}},createHref(x){return t(i,x)},createURL:v,encodeLocation(x){let h=v(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:f,replace:m,go(x){return o.go(x)}};return y}var Sp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Sp||(Sp={}));function Uk(e,t,n){return n===void 0&&(n="/"),Wk(e,t,n)}function Wk(e,t,n,r){let i=typeof t=="string"?qa(t):t,s=L0(i.pathname||"/",n);if(s==null)return null;let o=D0(e);Hk(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=rb(s);a=eb(o[l],u)}return a}function D0(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Ke(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Qr([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(Ke(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),D0(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:Zk(u,s.index),routesMeta:c})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of j0(s.path))i(s,o,l)}),t}function j0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=j0(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Hk(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Jk(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Kk=/^:[\w-]+$/,Gk=3,Qk=2,Yk=1,Xk=10,qk=-2,Cp=e=>e==="*";function Zk(e,t){let n=e.split("/"),r=n.length;return n.some(Cp)&&(r+=qk),t&&(r+=Qk),n.filter(i=>!Cp(i)).reduce((i,s)=>i+(Kk.test(s)?Gk:s===""?Yk:Xk),r)}function Jk(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function eb(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=s==="/"?t:t.slice(s.length)||"/",d=tb({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Qr([s,d.pathname]),pathnameBase:ib(Qr([s,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(s=Qr([s,d.pathnameBase]))}return o}function tb(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=nb(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:f,isOptional:m}=c;if(f==="*"){let y=a[d]||"";o=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const v=a[d];return m&&!v?u[f]=void 0:u[f]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function nb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),N0(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function rb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return N0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function L0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Qr=e=>e.join("/").replace(/\/\/+/g,"/"),ib=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function sb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const O0=["post","put","patch","delete"];new Set(O0);const ob=["get",...O0];new Set(ob);/**
 * React Router v6.30.2
 *
 * 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 pa(){return pa=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},pa.apply(this,arguments)}const ab=w.createContext(null),lb=w.createContext(null),_0=w.createContext(null),Za=w.createContext(null),Ja=w.createContext({outlet:null,matches:[],isDataRoute:!1}),I0=w.createContext(null);function Ud(){return w.useContext(Za)!=null}function F0(){return Ud()||Ke(!1),w.useContext(Za).location}function ub(e,t){return cb(e,t)}function cb(e,t,n,r){Ud()||Ke(!1);let{navigator:i}=w.useContext(_0),{matches:s}=w.useContext(Ja),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=F0(),c;if(t){var d;let x=typeof t=="string"?qa(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||Ke(!1),c=x}else c=u;let f=c.pathname||"/",m=f;if(l!=="/"){let x=l.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=Uk(e,{pathname:m}),y=mb(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Qr([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Qr([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&y?w.createElement(Za.Provider,{value:{location:pa({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:bn.Pop}},y):y}function db(){let e=xb(),t=sb(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:i},n):null,null)}const fb=w.createElement(db,null);class hb extends w.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?w.createElement(Ja.Provider,{value:this.props.routeContext},w.createElement(I0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function pb(e){let{routeContext:t,match:n,children:r}=e,i=w.useContext(ab);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(Ja.Provider,{value:t},r)}function mb(e,t,n,r){var i;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 o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||Ke(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<o.length;c++){let d=o[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:m}=n,v=d.route.loader&&f[d.route.id]===void 0&&(!m||m[d.route.id]===void 0);if(d.route.lazy||v){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,d,f)=>{let m,v=!1,y=null,x=null;n&&(m=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||fb,l&&(u<0&&f===0?(wb("route-fallback"),v=!0,x=null):u===f&&(v=!0,x=d.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,f+1)),p=()=>{let g;return m?g=y:v?g=x:d.route.Component?g=w.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=c,w.createElement(pb,{match:d,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?w.createElement(hb,{location:n.location,revalidation:n.revalidation,component:y,error:m,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var V0=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}(V0||{});function gb(e){let t=w.useContext(lb);return t||Ke(!1),t}function yb(e){let t=w.useContext(Ja);return t||Ke(!1),t}function vb(e){let t=yb(),n=t.matches[t.matches.length-1];return n.route.id||Ke(!1),n.route.id}function xb(){var e;let t=w.useContext(I0),n=gb(V0.UseRouteError),r=vb();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const Tp={};function wb(e,t,n){Tp[e]||(Tp[e]=!0)}function Sb(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function sc(e){Ke(!1)}function Cb(e){let{basename:t="/",children:n=null,location:r,navigationType:i=bn.Pop,navigator:s,static:o=!1,future:a}=e;Ud()&&Ke(!1);let l=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:l,navigator:s,static:o,future:pa({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=qa(r));let{pathname:c="/",search:d="",hash:f="",state:m=null,key:v="default"}=r,y=w.useMemo(()=>{let x=L0(c,l);return x==null?null:{location:{pathname:x,search:d,hash:f,state:m,key:v},navigationType:i}},[l,c,d,f,m,v,i]);return y==null?null:w.createElement(_0.Provider,{value:u},w.createElement(Za.Provider,{children:n,value:y}))}function Tb(e){let{children:t,location:n}=e;return ub(oc(t),n)}new Promise(()=>{});function oc(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,i)=>{if(!w.isValidElement(r))return;let s=[...t,i];if(r.type===w.Fragment){n.push.apply(n,oc(r.props.children,s));return}r.type!==sc&&Ke(!1),!r.props.index||!r.props.children||Ke(!1);let o={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&&(o.children=oc(r.props.children,s)),n.push(o)}),n}/**
 * React Router DOM v6.30.2
 *
 * 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
 */const Eb="6";try{window.__reactRouterVersion=Eb}catch{}const Pb="startTransition",Ep=jc[Pb];function kb(e){let{basename:t,children:n,future:r,window:i}=e,s=w.useRef();s.current==null&&(s.current=zk({window:i,v5Compat:!0}));let o=s.current,[a,l]=w.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=w.useCallback(d=>{u&&Ep?Ep(()=>l(d)):l(d)},[l,u]);return w.useLayoutEffect(()=>o.listen(c),[o,c]),w.useEffect(()=>Sb(r),[r]),w.createElement(Cb,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}var Pp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Pp||(Pp={}));var kp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(kp||(kp={}));const z0=w.createContext({});function bb(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const Wd=typeof window<"u",Ab=Wd?w.useLayoutEffect:w.useEffect,Hd=w.createContext(null);function Kd(e,t){e.indexOf(t)===-1&&e.push(t)}function Gd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const an=(e,t,n)=>n>t?t:n<e?e:n;let Qd=()=>{};const ln={},B0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function $0(e){return typeof e=="object"&&e!==null}const U0=e=>/^0[^.\s]+$/u.test(e);function Yd(e){let t;return()=>(t===void 0&&(t=e()),t)}const ct=e=>e,Rb=(e,t)=>n=>t(e(n)),Bs=(...e)=>e.reduce(Rb),Ts=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Xd{constructor(){this.subscriptions=[]}add(t){return Kd(this.subscriptions,t),()=>Gd(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const zt=e=>e*1e3,lt=e=>e/1e3;function W0(e,t){return t?e*(1e3/t):0}const H0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Nb=1e-7,Mb=12;function Db(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=H0(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>Nb&&++a<Mb);return o}function $s(e,t,n,r){if(e===t&&n===r)return ct;const i=s=>Db(s,0,1,e,n);return s=>s===0||s===1?s:H0(i(s),t,r)}const K0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,G0=e=>t=>1-e(1-t),Q0=$s(.33,1.53,.69,.99),qd=G0(Q0),Y0=K0(qd),X0=e=>(e*=2)<1?.5*qd(e):.5*(2-Math.pow(2,-10*(e-1))),Zd=e=>1-Math.sin(Math.acos(e)),q0=G0(Zd),Z0=K0(Zd),jb=$s(.42,0,1,1),Lb=$s(0,0,.58,1),J0=$s(.42,0,.58,1),Ob=e=>Array.isArray(e)&&typeof e[0]!="number",ex=e=>Array.isArray(e)&&typeof e[0]=="number",_b={linear:ct,easeIn:jb,easeInOut:J0,easeOut:Lb,circIn:Zd,circInOut:Z0,circOut:q0,backIn:qd,backInOut:Y0,backOut:Q0,anticipate:X0},Ib=e=>typeof e=="string",bp=e=>{if(ex(e)){Qd(e.length===4);const[t,n,r,i]=e;return $s(t,n,r,i)}else if(Ib(e))return _b[e];return e},mo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Fb(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,f=!1)=>{const v=f&&i?n:r;return d&&o.add(c),v.has(c)||v.add(c),c},cancel:c=>{r.delete(c),o.delete(c)},process:c=>{if(a=c,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,u.process(c))}};return u}const Vb=40;function tx(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=mo.reduce((g,C)=>(g[C]=Fb(s),g),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:m,postRender:v}=o,y=()=>{const g=ln.useManualTiming?i.timestamp:performance.now();n=!1,ln.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,Vb),1)),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),m.process(i),v.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},x=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:mo.reduce((g,C)=>{const T=o[C];return g[C]=(E,P=!1,k=!1)=>(n||x(),T.schedule(E,P,k)),g},{}),cancel:g=>{for(let C=0;C<mo.length;C++)o[mo[C]].cancel(g)},state:i,steps:o}}const{schedule:ne,cancel:$n,state:Ee,steps:_l}=tx(typeof requestAnimationFrame<"u"?requestAnimationFrame:ct,!0);let Lo;function zb(){Lo=void 0}const $e={now:()=>(Lo===void 0&&$e.set(Ee.isProcessing||ln.useManualTiming?Ee.timestamp:performance.now()),Lo),set:e=>{Lo=e,queueMicrotask(zb)}},nx=e=>t=>typeof t=="string"&&t.startsWith(e),Jd=nx("--"),Bb=nx("var(--"),ef=e=>Bb(e)?$b.test(e.split("/*")[0].trim()):!1,$b=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Si={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Es={...Si,transform:e=>an(0,1,e)},go={...Si,default:1},Zi=e=>Math.round(e*1e5)/1e5,tf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ub(e){return e==null}const Wb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nf=(e,t)=>n=>!!(typeof n=="string"&&Wb.test(n)&&n.startsWith(e)||t&&!Ub(n)&&Object.prototype.hasOwnProperty.call(n,t)),rx=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(tf);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Hb=e=>an(0,255,e),Il={...Si,transform:e=>Math.round(Hb(e))},nr={test:nf("rgb","red"),parse:rx("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Il.transform(e)+", "+Il.transform(t)+", "+Il.transform(n)+", "+Zi(Es.transform(r))+")"};function Kb(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const ac={test:nf("#"),parse:Kb,transform:nr.transform},Us=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pn=Us("deg"),Bt=Us("%"),V=Us("px"),Gb=Us("vh"),Qb=Us("vw"),Ap={...Bt,parse:e=>Bt.parse(e)/100,transform:e=>Bt.transform(e*100)},Or={test:nf("hsl","hue"),parse:rx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Bt.transform(Zi(t))+", "+Bt.transform(Zi(n))+", "+Zi(Es.transform(r))+")"},fe={test:e=>nr.test(e)||ac.test(e)||Or.test(e),parse:e=>nr.test(e)?nr.parse(e):Or.test(e)?Or.parse(e):ac.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?nr.transform(e):Or.transform(e),getAnimatableNone:e=>{const t=fe.parse(e);return t.alpha=0,fe.transform(t)}},Yb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Xb(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(tf))==null?void 0:t.length)||0)+(((n=e.match(Yb))==null?void 0:n.length)||0)>0}const ix="number",sx="color",qb="var",Zb="var(",Rp="${}",Jb=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ps(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(Jb,l=>(fe.test(l)?(r.color.push(s),i.push(sx),n.push(fe.parse(l))):l.startsWith(Zb)?(r.var.push(s),i.push(qb),n.push(l)):(r.number.push(s),i.push(ix),n.push(parseFloat(l))),++s,Rp)).split(Rp);return{values:n,split:a,indexes:r,types:i}}function ox(e){return Ps(e).values}function ax(e){const{split:t,types:n}=Ps(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===ix?s+=Zi(i[o]):a===sx?s+=fe.transform(i[o]):s+=i[o]}return s}}const e2=e=>typeof e=="number"?0:fe.test(e)?fe.getAnimatableNone(e):e;function t2(e){const t=ox(e);return ax(e)(t.map(e2))}const Un={test:Xb,parse:ox,createTransformer:ax,getAnimatableNone:t2};function Fl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function n2({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Fl(l,a,e+1/3),s=Fl(l,a,e),o=Fl(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function ma(e,t){return n=>n>0?t:e}const ie=(e,t,n)=>e+(t-e)*n,Vl=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},r2=[ac,nr,Or],i2=e=>r2.find(t=>t.test(e));function Np(e){const t=i2(e);if(!t)return!1;let n=t.parse(e);return t===Or&&(n=n2(n)),n}const Mp=(e,t)=>{const n=Np(e),r=Np(t);if(!n||!r)return ma(e,t);const i={...n};return s=>(i.red=Vl(n.red,r.red,s),i.green=Vl(n.green,r.green,s),i.blue=Vl(n.blue,r.blue,s),i.alpha=ie(n.alpha,r.alpha,s),nr.transform(i))},lc=new Set(["none","hidden"]);function s2(e,t){return lc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function o2(e,t){return n=>ie(e,t,n)}function rf(e){return typeof e=="number"?o2:typeof e=="string"?ef(e)?ma:fe.test(e)?Mp:u2:Array.isArray(e)?lx:typeof e=="object"?fe.test(e)?Mp:a2:ma}function lx(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>rf(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function a2(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=rf(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function l2(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=e.indexes[s][r[s]],a=e.values[o]??0;n[i]=a,r[s]++}return n}const u2=(e,t)=>{const n=Un.createTransformer(t),r=Ps(e),i=Ps(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?lc.has(e)&&!i.values.length||lc.has(t)&&!r.values.length?s2(e,t):Bs(lx(l2(r,i),i.values),n):ma(e,t)};function ux(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ie(e,t,n):rf(e)(e,t)}const c2=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ne.update(t,n),stop:()=>$n(t),now:()=>Ee.isProcessing?Ee.timestamp:$e.now()}},cx=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},ga=2e4;function sf(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ga;)t+=n,r=e.next(t);return t>=ga?1/0:t}function d2(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(sf(r),ga);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:lt(i)}}const f2=5;function dx(e,t,n){const r=Math.max(t-f2,0);return W0(n-e(r),t-r)}const le={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},zl=.001;function h2({duration:e=le.duration,bounce:t=le.bounce,velocity:n=le.velocity,mass:r=le.mass}){let i,s,o=1-t;o=an(le.minDamping,le.maxDamping,o),e=an(le.minDuration,le.maxDuration,lt(e)),o<1?(i=u=>{const c=u*o,d=c*e,f=c-n,m=uc(u,o),v=Math.exp(-d);return zl-f/m*v},s=u=>{const d=u*o*e,f=d*n+n,m=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-d),y=uc(Math.pow(u,2),o);return(-i(u)+zl>0?-1:1)*((f-m)*v)/y}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-zl+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=m2(i,s,a);if(e=zt(e),isNaN(l))return{stiffness:le.stiffness,damping:le.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const p2=12;function m2(e,t,n){let r=n;for(let i=1;i<p2;i++)r=r-e(r)/t(r);return r}function uc(e,t){return e*Math.sqrt(1-t*t)}const g2=["duration","bounce"],y2=["stiffness","damping","mass"];function Dp(e,t){return t.some(n=>e[n]!==void 0)}function v2(e){let t={velocity:le.velocity,stiffness:le.stiffness,damping:le.damping,mass:le.mass,isResolvedFromDuration:!1,...e};if(!Dp(e,y2)&&Dp(e,g2))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*an(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:le.mass,stiffness:i,damping:s}}else{const n=h2(e);t={...t,...n,mass:le.mass},t.isResolvedFromDuration=!0}return t}function ya(e=le.visualDuration,t=le.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:m}=v2({...n,velocity:-lt(n.velocity||0)}),v=f||0,y=u/(2*Math.sqrt(l*c)),x=o-s,h=lt(Math.sqrt(l/c)),p=Math.abs(x)<5;r||(r=p?le.restSpeed.granular:le.restSpeed.default),i||(i=p?le.restDelta.granular:le.restDelta.default);let g;if(y<1){const T=uc(h,y);g=E=>{const P=Math.exp(-y*h*E);return o-P*((v+y*h*x)/T*Math.sin(T*E)+x*Math.cos(T*E))}}else if(y===1)g=T=>o-Math.exp(-h*T)*(x+(v+h*x)*T);else{const T=h*Math.sqrt(y*y-1);g=E=>{const P=Math.exp(-y*h*E),k=Math.min(T*E,300);return o-P*((v+y*h*x)*Math.sinh(k)+T*x*Math.cosh(k))/T}}const C={calculatedDuration:m&&d||null,next:T=>{const E=g(T);if(m)a.done=T>=d;else{let P=T===0?v:0;y<1&&(P=T===0?zt(v):dx(g,T,E));const k=Math.abs(P)<=r,D=Math.abs(o-E)<=i;a.done=k&&D}return a.value=a.done?o:E,a},toString:()=>{const T=Math.min(sf(C),ga),E=cx(P=>C.next(T*P).value,T,30);return T+"ms "+E},toTransition:()=>{}};return C}ya.applyToOptions=e=>{const t=d2(e,100,ya);return e.ease=t.ease,e.duration=zt(t.duration),e.type="keyframes",e};function cc({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},m=k=>a!==void 0&&k<a||l!==void 0&&k>l,v=k=>a===void 0?l:l===void 0||Math.abs(a-k)<Math.abs(l-k)?a:l;let y=n*t;const x=d+y,h=o===void 0?x:o(x);h!==x&&(y=h-d);const p=k=>-y*Math.exp(-k/r),g=k=>h+p(k),C=k=>{const D=p(k),R=g(k);f.done=Math.abs(D)<=u,f.value=f.done?h:R};let T,E;const P=k=>{m(f.value)&&(T=k,E=ya({keyframes:[f.value,v(f.value)],velocity:dx(g,k,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:k=>{let D=!1;return!E&&T===void 0&&(D=!0,C(k),P(k)),T!==void 0&&k>=T?E.next(k-T):(!D&&C(k),f)}}}function x2(e,t,n){const r=[],i=n||ln.mix||ux,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||ct:t;a=Bs(l,a)}r.push(a)}return r}function w2(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Qd(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=x2(t,r,i),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=Ts(e[d],e[d+1],c);return a[d](f)};return n?c=>u(an(e[0],e[s-1],c)):u}function S2(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ts(0,t,r);e.push(ie(n,1,i))}}function C2(e){const t=[0];return S2(t,e.length-1),t}function T2(e,t){return e.map(n=>n*t)}function E2(e,t){return e.map(()=>t||J0).splice(0,e.length-1)}function Ji({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Ob(r)?r.map(bp):bp(r),s={done:!1,value:t[0]},o=T2(n&&n.length===t.length?n:C2(t),e),a=w2(o,t,{ease:Array.isArray(i)?i:E2(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const P2=e=>e!==null;function of(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(P2),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const k2={decay:cc,inertia:cc,tween:Ji,keyframes:Ji,spring:ya};function fx(e){typeof e.type=="string"&&(e.type=k2[e.type])}class af{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const b2=e=>e/100;class lf extends af{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==$e.now()&&this.tick($e.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;fx(t);const{type:n=Ji,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||Ji;l!==Ji&&typeof a[0]!="number"&&(this.mixKeyframes=Bs(b2,ux(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=sf(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:m,type:v,onUpdate:y,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const h=this.currentTime-u*(this.playbackSpeed>=0?1:-1),p=this.playbackSpeed>=0?h<0:h>i;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let g=this.currentTime,C=r;if(d){const k=Math.min(this.currentTime,i)/a;let D=Math.floor(k),R=k%1;!R&&k>=1&&(R=1),R===1&&D--,D=Math.min(D,d+1),!!(D%2)&&(f==="reverse"?(R=1-R,m&&(R-=m/a)):f==="mirror"&&(C=o)),g=an(0,1,R)*a}const T=p?{done:!1,value:c[0]}:C.next(g);s&&(T.value=s(T.value));let{done:E}=T;!p&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return P&&v!==cc&&(T.value=of(c,this.options,x,this.speed)),y&&y(T.value),P&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return lt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(this.currentTime)}set time(t){var n;t=zt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime($e.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=lt(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=c2,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime($e.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function A2(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const rr=e=>e*180/Math.PI,dc=e=>{const t=rr(Math.atan2(e[1],e[0]));return fc(t)},R2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:dc,rotateZ:dc,skewX:e=>rr(Math.atan(e[1])),skewY:e=>rr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},fc=e=>(e=e%360,e<0&&(e+=360),e),jp=dc,Lp=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Op=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),N2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Lp,scaleY:Op,scale:e=>(Lp(e)+Op(e))/2,rotateX:e=>fc(rr(Math.atan2(e[6],e[5]))),rotateY:e=>fc(rr(Math.atan2(-e[2],e[0]))),rotateZ:jp,rotate:jp,skewX:e=>rr(Math.atan(e[4])),skewY:e=>rr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function hc(e){return e.includes("scale")?1:0}function pc(e,t){if(!e||e==="none")return hc(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=N2,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=R2,i=a}if(!i)return hc(t);const s=r[t],o=i[1].split(",").map(D2);return typeof s=="function"?s(o):o[s]}const M2=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return pc(n,t)};function D2(e){return parseFloat(e.trim())}const Ci=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ti=new Set(Ci),_p=e=>e===Si||e===V,j2=new Set(["x","y","z"]),L2=Ci.filter(e=>!j2.has(e));function O2(e){const t=[];return L2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const fr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>pc(t,"x"),y:(e,{transform:t})=>pc(t,"y")};fr.translateX=fr.x;fr.translateY=fr.y;const hr=new Set;let mc=!1,gc=!1,yc=!1;function hx(){if(gc){const e=Array.from(hr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=O2(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}gc=!1,mc=!1,hr.forEach(e=>e.complete(yc)),hr.clear()}function px(){hr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(gc=!0)})}function _2(){yc=!0,px(),hx(),yc=!1}class uf{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(hr.add(this),mc||(mc=!0,ne.read(px),ne.resolveKeyframes(hx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}A2(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),hr.delete(this)}cancel(){this.state==="scheduled"&&(hr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const I2=e=>e.startsWith("--");function F2(e,t,n){I2(t)?e.style.setProperty(t,n):e.style[t]=n}const V2=Yd(()=>window.ScrollTimeline!==void 0),z2={};function B2(e,t){const n=Yd(e);return()=>z2[t]??n()}const mx=B2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Bi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ip={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bi([0,.65,.55,1]),circOut:Bi([.55,0,1,.45]),backIn:Bi([.31,.01,.66,-.59]),backOut:Bi([.33,1.53,.69,.99])};function gx(e,t){if(e)return typeof e=="function"?mx()?cx(e,t):"ease-out":ex(e)?Bi(e):Array.isArray(e)?e.map(n=>gx(n,t)||Ip.easeOut):Ip[e]}function $2(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=gx(a,i);Array.isArray(d)&&(c.easing=d);const f={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function yx(e){return typeof e=="function"&&"applyToOptions"in e}function U2({type:e,...t}){return yx(e)&&mx()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class W2 extends af{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Qd(typeof t.type!="string");const u=U2(t);this.animation=$2(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=of(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):F2(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return lt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=zt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&V2()?(this.animation.timeline=t,ct):n(this)}}const vx={anticipate:X0,backInOut:Y0,circInOut:Z0};function H2(e){return e in vx}function K2(e){typeof e.ease=="string"&&H2(e.ease)&&(e.ease=vx[e.ease])}const Fp=10;class G2 extends W2{constructor(t){K2(t),fx(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new lf({...o,autoplay:!1}),l=zt(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Fp).value,a.sample(l).value,Fp),a.stop()}}const Vp=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Un.test(e)||e==="0")&&!e.startsWith("url("));function Q2(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Y2(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=Vp(i,t),a=Vp(s,t);return!o||!a?!1:Q2(e)||(n==="spring"||yx(n))&&r}function vc(e){e.duration=0,e.type="keyframes"}const X2=new Set(["opacity","clipPath","filter","transform"]),q2=Yd(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Z2(e){var c;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!(((c=t==null?void 0:t.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return q2()&&n&&X2.has(n)&&(n!=="transform"||!u)&&!l&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const J2=40;class eA extends af{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){var v;super(),this.stop=()=>{var y,x;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=$e.now();const f={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:c,...d},m=(c==null?void 0:c.KeyframeResolver)||uf;this.keyframeResolver=new m(a,(y,x,h)=>this.onKeyframesResolved(y,x,f,!h),l,u,c),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=$e.now(),Y2(t,s,o,a)||((ln.instantAnimations||!l)&&(c==null||c(of(t,r,n))),t[0]=t[t.length-1],vc(r),r.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>J2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!u&&Z2(f)?new G2({...f,element:f.motionValue.owner.current}):new lf(f);m.finished.then(()=>this.notifyFinished()).catch(ct),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),_2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const tA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nA(e){const t=tA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function xx(e,t,n=1){const[r,i]=nA(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return B0(o)?parseFloat(o):o}return ef(i)?xx(i,t,n+1):i}function cf(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const wx=new Set(["width","height","top","left","right","bottom",...Ci]),rA={test:e=>e==="auto",parse:e=>e},Sx=e=>t=>t.test(e),Cx=[Si,V,Bt,pn,Qb,Gb,rA],zp=e=>Cx.find(Sx(e));function iA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||U0(e):!0}const sA=new Set(["brightness","contrast","saturate","opacity"]);function oA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(tf)||[];if(!r)return e;const i=n.replace(r,"");let s=sA.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const aA=/\b([a-z-]*)\(.*?\)/gu,xc={...Un,getAnimatableNone:e=>{const t=e.match(aA);return t?t.map(oA).join(" "):e}},Bp={...Si,transform:Math.round},lA={rotate:pn,rotateX:pn,rotateY:pn,rotateZ:pn,scale:go,scaleX:go,scaleY:go,scaleZ:go,skew:pn,skewX:pn,skewY:pn,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Es,originX:Ap,originY:Ap,originZ:V},df={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V,...lA,zIndex:Bp,fillOpacity:Es,strokeOpacity:Es,numOctaves:Bp},uA={...df,color:fe,backgroundColor:fe,outlineColor:fe,fill:fe,stroke:fe,borderColor:fe,borderTopColor:fe,borderRightColor:fe,borderBottomColor:fe,borderLeftColor:fe,filter:xc,WebkitFilter:xc},Tx=e=>uA[e];function Ex(e,t){let n=Tx(e);return n!==xc&&(n=Un),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cA=new Set(["auto","none","0"]);function dA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!cA.has(s)&&Ps(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Ex(n,i)}class fA extends uf{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),ef(u))){const c=xx(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!wx.has(r)||t.length!==2)return;const[i,s]=t,o=zp(i),a=zp(s);if(o!==a)if(_p(o)&&_p(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else fr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||iA(t[i]))&&r.push(i);r.length&&dA(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=fr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function hA(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Px=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function pA(e){return $0(e)&&"offsetHeight"in e}const $p=30,mA=e=>!isNaN(parseFloat(e));class gA{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=$e.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=$e.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=mA(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Xd);const r=this.events[t].add(n);return t==="change"?()=>{r(),ne.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=$e.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>$p)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,$p);return W0(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function hi(e,t){return new gA(e,t)}const{schedule:ff}=tx(queueMicrotask,!1),gt={x:!1,y:!1};function kx(){return gt.x||gt.y}function yA(e){return e==="x"||e==="y"?gt[e]?null:(gt[e]=!0,()=>{gt[e]=!1}):gt.x||gt.y?null:(gt.x=gt.y=!0,()=>{gt.x=gt.y=!1})}function bx(e,t){const n=hA(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Up(e){return!(e.pointerType==="touch"||kx())}function vA(e,t,n={}){const[r,i,s]=bx(e,n),o=a=>{if(!Up(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=d=>{Up(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const Ax=(e,t)=>t?e===t?!0:Ax(e,t.parentElement):!1,hf=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,xA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wA(e){return xA.has(e.tagName)||e.tabIndex!==-1}const Oo=new WeakSet;function Wp(e){return t=>{t.key==="Enter"&&e(t)}}function Bl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const SA=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Wp(()=>{if(Oo.has(n))return;Bl(n,"down");const i=Wp(()=>{Bl(n,"up")}),s=()=>Bl(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Hp(e){return hf(e)&&!kx()}function CA(e,t,n={}){const[r,i,s]=bx(e,n),o=a=>{const l=a.currentTarget;if(!Hp(a))return;Oo.add(l);const u=t(l,a),c=(m,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Oo.has(l)&&Oo.delete(l),Hp(m)&&typeof u=="function"&&u(m,{success:v})},d=m=>{c(m,l===window||l===document||n.useGlobalTarget||Ax(l,m.target))},f=m=>{c(m,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),pA(a)&&(a.addEventListener("focus",u=>SA(u,i)),!wA(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Rx(e){return $0(e)&&"ownerSVGElement"in e}function TA(e){return Rx(e)&&e.tagName==="svg"}const Me=e=>!!(e&&e.getVelocity),EA=[...Cx,fe,Un],PA=e=>EA.find(Sx(e)),Nx=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function kA(e=!0){const t=w.useContext(Hd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=w.useId();w.useEffect(()=>{if(e)return i(s)},[e]);const o=w.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Mx=w.createContext({strict:!1}),Kp={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},pi={};for(const e in Kp)pi[e]={isEnabled:t=>Kp[e].some(n=>!!t[n])};function bA(e){for(const t in e)pi[t]={...pi[t],...e[t]}}const AA=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function va(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||AA.has(e)}let Dx=e=>!va(e);function RA(e){typeof e=="function"&&(Dx=t=>t.startsWith("on")?!va(t):e(t))}try{RA(require("@emotion/is-prop-valid").default)}catch{}function NA(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Dx(i)||n===!0&&va(i)||!t&&!va(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const el=w.createContext({});function tl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ks(e){return typeof e=="string"||Array.isArray(e)}const pf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mf=["initial",...pf];function nl(e){return tl(e.animate)||mf.some(t=>ks(e[t]))}function jx(e){return!!(nl(e)||e.variants)}function MA(e,t){if(nl(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ks(n)?n:void 0,animate:ks(r)?r:void 0}}return e.inherit!==!1?t:{}}function DA(e){const{initial:t,animate:n}=MA(e,w.useContext(el));return w.useMemo(()=>({initial:t,animate:n}),[Gp(t),Gp(n)])}function Gp(e){return Array.isArray(e)?e.join(" "):e}const bs={};function jA(e){for(const t in e)bs[t]=e[t],Jd(t)&&(bs[t].isCSSVariable=!0)}function Lx(e,{layout:t,layoutId:n}){return Ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!bs[e]||e==="opacity")}const LA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},OA=Ci.length;function _A(e,t,n){let r="",i=!0;for(let s=0;s<OA;s++){const o=Ci[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Px(a,df[o]);if(!l){i=!1;const c=LA[o]||o;r+=`${c}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function gf(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(Ti.has(l)){o=!0;continue}else if(Jd(l)){i[l]=u;continue}else{const c=Px(u,df[l]);l.startsWith("origin")?(a=!0,s[l]=c):r[l]=c}}if(t.transform||(o||n?r.transform=_A(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${l} ${u} ${c}`}}const yf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ox(e,t,n){for(const r in t)!Me(t[r])&&!Lx(r,n)&&(e[r]=t[r])}function IA({transformTemplate:e},t){return w.useMemo(()=>{const n=yf();return gf(n,t,e),Object.assign({},n.vars,n.style)},[t])}function FA(e,t){const n=e.style||{},r={};return Ox(r,n,e),Object.assign(r,IA(e,t)),r}function VA(e,t){const n={},r=FA(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const zA={offset:"stroke-dashoffset",array:"stroke-dasharray"},BA={offset:"strokeDashoffset",array:"strokeDasharray"};function $A(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?zA:BA;e[s.offset]=V.transform(-r);const o=V.transform(t),a=V.transform(n);e[s.array]=`${o} ${a}`}function _x(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(gf(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&$A(d,i,s,o,!1)}const Ix=()=>({...yf(),attrs:{}}),Fx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function UA(e,t,n,r){const i=w.useMemo(()=>{const s=Ix();return _x(s,t,Fx(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Ox(s,e.style,e),i.style={...s,...i.style}}return i}const WA=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function vf(e){return typeof e!="string"||e.includes("-")?!1:!!(WA.indexOf(e)>-1||/[A-Z]/u.test(e))}function HA(e,t,n,{latestValues:r},i,s=!1){const a=(vf(e)?UA:VA)(t,r,i,e),l=NA(t,typeof e=="string",s),u=e!==w.Fragment?{...l,...a,ref:n}:{},{children:c}=t,d=w.useMemo(()=>Me(c)?c.get():c,[c]);return w.createElement(e,{...u,children:d})}function Qp(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function xf(e,t,n,r){if(typeof t=="function"){const[i,s]=Qp(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=Qp(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function _o(e){return Me(e)?e.get():e}function KA({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:GA(n,r,i,e),renderState:t()}}function GA(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=_o(s[f]);let{initial:o,animate:a}=e;const l=nl(e),u=jx(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;if(d&&typeof d!="boolean"&&!tl(d)){const f=Array.isArray(d)?d:[d];for(let m=0;m<f.length;m++){const v=xf(e,f[m]);if(v){const{transitionEnd:y,transition:x,...h}=v;for(const p in h){let g=h[p];if(Array.isArray(g)){const C=c?g.length-1:0;g=g[C]}g!==null&&(i[p]=g)}for(const p in y)i[p]=y[p]}}}return i}const Vx=e=>(t,n)=>{const r=w.useContext(el),i=w.useContext(Hd),s=()=>KA(e,t,r,i);return n?s():bb(s)};function wf(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(Me(r[o])||t.style&&Me(t.style[o])||Lx(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const QA=Vx({scrapeMotionValuesFromProps:wf,createRenderState:yf});function zx(e,t,n){const r=wf(e,t,n);for(const i in e)if(Me(e[i])||Me(t[i])){const s=Ci.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const YA=Vx({scrapeMotionValuesFromProps:zx,createRenderState:Ix}),XA=Symbol.for("motionComponentSymbol");function _r(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function qA(e,t,n){return w.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):_r(n)&&(n.current=r))},[t])}const Sf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ZA="framerAppearId",Bx="data-"+Sf(ZA),$x=w.createContext({});function JA(e,t,n,r,i){var y,x;const{visualElement:s}=w.useContext(el),o=w.useContext(Mx),a=w.useContext(Hd),l=w.useContext(Nx).reducedMotion,u=w.useRef(null);r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=w.useContext($x);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&eR(u.current,n,i,d);const f=w.useRef(!1);w.useInsertionEffect(()=>{c&&f.current&&c.update(n,a)});const m=n[Bx],v=w.useRef(!!m&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,m))&&((x=window.MotionHasOptimisedAnimation)==null?void 0:x.call(window,m)));return Ab(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),v.current&&c.animationState&&c.animationState.animateChanges())}),w.useEffect(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var h;(h=window.MotionHandoffMarkAsComplete)==null||h.call(window,m)}),v.current=!1),c.enteringChildren=void 0)}),c}function eR(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ux(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&_r(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function Ux(e){if(e)return e.options.allowProjection!==!1?e.projection:Ux(e.parent)}function $l(e,{forwardMotionProps:t=!1}={},n,r){n&&bA(n);const i=vf(e)?YA:QA;function s(a,l){let u;const c={...w.useContext(Nx),...a,layoutId:tR(a)},{isStatic:d}=c,f=DA(a),m=i(a,d);if(!d&&Wd){nR();const v=rR(c);u=v.MeasureLayout,f.visualElement=JA(e,m,c,r,v.ProjectionNode)}return S.jsxs(el.Provider,{value:f,children:[u&&f.visualElement?S.jsx(u,{visualElement:f.visualElement,...c}):null,HA(e,a,qA(m,f.visualElement,l),m,d,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=w.forwardRef(s);return o[XA]=e,o}function tR({layoutId:e}){const t=w.useContext(z0).id;return t&&e!==void 0?t+"-"+e:e}function nR(e,t){w.useContext(Mx).strict}function rR(e){const{drag:t,layout:n}=pi;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function iR(e,t){if(typeof Proxy>"u")return $l;const n=new Map,r=(s,o)=>$l(s,o,e,t),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,$l(o,void 0,e,t)),n.get(o))})}function Wx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function sR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function oR(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ul(e){return e===void 0||e===1}function wc({scale:e,scaleX:t,scaleY:n}){return!Ul(e)||!Ul(t)||!Ul(n)}function Zn(e){return wc(e)||Hx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Hx(e){return Yp(e.x)||Yp(e.y)}function Yp(e){return e&&e!=="0%"}function xa(e,t,n){const r=e-n,i=t*r;return n+i}function Xp(e,t,n,r,i){return i!==void 0&&(e=xa(e,i,r)),xa(e,n,r)+t}function Sc(e,t=0,n=1,r,i){e.min=Xp(e.min,t,n,r,i),e.max=Xp(e.max,t,n,r,i)}function Kx(e,{x:t,y:n}){Sc(e.x,t.translate,t.scale,t.originPoint),Sc(e.y,n.translate,n.scale,n.originPoint)}const qp=.999999999999,Zp=1.0000000000001;function aR(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Fr(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Kx(e,o)),r&&Zn(s.latestValues)&&Fr(e,s.latestValues))}t.x<Zp&&t.x>qp&&(t.x=1),t.y<Zp&&t.y>qp&&(t.y=1)}function Ir(e,t){e.min=e.min+t,e.max=e.max+t}function Jp(e,t,n,r,i=.5){const s=ie(e.min,e.max,i);Sc(e,t,n,s,r)}function Fr(e,t){Jp(e.x,t.x,t.scaleX,t.scale,t.originX),Jp(e.y,t.y,t.scaleY,t.scale,t.originY)}function Gx(e,t){return Wx(oR(e.getBoundingClientRect(),t))}function lR(e,t,n){const r=Gx(e,n),{scroll:i}=t;return i&&(Ir(r.x,i.offset.x),Ir(r.y,i.offset.y)),r}const em=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vr=()=>({x:em(),y:em()}),tm=()=>({min:0,max:0}),ge=()=>({x:tm(),y:tm()}),Cc={current:null},Qx={current:!1};function uR(){if(Qx.current=!0,!!Wd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Cc.current=e.matches;e.addEventListener("change",t),t()}else Cc.current=!1}const cR=new WeakMap;function dR(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Me(i))e.addValue(r,i);else if(Me(s))e.addValue(r,hi(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,hi(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const nm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fR{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=uf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=$e.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,ne.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=nl(n),this.isVariantNode=jx(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const m=d[f];l[f]!==void 0&&Me(m)&&m.set(l[f])}}mount(t){var n;this.current=t,cR.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),Qx.current||uR(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Cc.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),$n(this.notifyUpdate),$n(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Ti.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&ne.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in pi){const n=pi[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ge()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<nm.length;r++){const i=nm[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=dR(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=hi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(B0(r)||U0(r))?r=parseFloat(r):!PA(r)&&Un.test(n)&&(r=Ex(t,n)),this.setBaseTarget(t,Me(r)?r.get():r)),Me(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=xf(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Me(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Xd),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ff.render(this.render)}}class Yx extends fR{constructor(){super(...arguments),this.KeyframeResolver=fA}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Me(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Xx(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function hR(e){return window.getComputedStyle(e)}class pR extends Yx{constructor(){super(...arguments),this.type="html",this.renderInstance=Xx}readValueFromInstance(t,n){var r;if(Ti.has(n))return(r=this.projection)!=null&&r.isProjecting?hc(n):M2(t,n);{const i=hR(t),s=(Jd(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Gx(t,n)}build(t,n,r){gf(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return wf(t,n,r)}}const qx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function mR(e,t,n,r){Xx(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(qx.has(i)?i:Sf(i),t.attrs[i])}class gR extends Yx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ge}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ti.has(n)){const r=Tx(n);return r&&r.default||0}return n=qx.has(n)?n:Sf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return zx(t,n,r)}build(t,n,r){_x(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){mR(t,n,r,i)}mount(t){this.isSVGTag=Fx(t.tagName),super.mount(t)}}const yR=(e,t)=>vf(e)?new gR(t):new pR(t,{allowProjection:e!==w.Fragment});function Yr(e,t,n){const r=e.getProps();return xf(r,t,n!==void 0?n:r.custom,e)}const Tc=e=>Array.isArray(e);function vR(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,hi(n))}function xR(e){return Tc(e)?e[e.length-1]||0:e}function wR(e,t){const n=Yr(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=xR(s[o]);vR(e,o,a)}}function SR(e){return!!(Me(e)&&e.add)}function Ec(e,t){const n=e.getValue("willChange");if(SR(n))return n.add(t);if(!n&&ln.WillChange){const r=new ln.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Zx(e){return e.props[Bx]}const CR=e=>e!==null;function TR(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(CR),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const ER={type:"spring",stiffness:500,damping:25,restSpeed:10},PR=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kR={type:"keyframes",duration:.8},bR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},AR=(e,{keyframes:t})=>t.length>2?kR:Ti.has(e)?e.startsWith("scale")?PR(t[1]):ER:bR;function RR({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Cf=(e,t,n,r={},i,s)=>o=>{const a=cf(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-zt(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};RR(a)||Object.assign(c,AR(e,c)),c.duration&&(c.duration=zt(c.duration)),c.repeatDelay&&(c.repeatDelay=zt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(vc(c),c.delay===0&&(d=!0)),(ln.instantAnimations||ln.skipAnimations)&&(d=!0,vc(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!s&&t.get()!==void 0){const f=TR(c.keyframes,a);if(f!==void 0){ne.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new lf(c):new eA(c)};function NR({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Jx(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const d=e.getValue(c,e.latestValues[c]??null),f=a[c];if(f===void 0||u&&NR(u,c))continue;const m={delay:n,...cf(s||{},c)},v=d.get();if(v!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===v&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const h=Zx(e);if(h){const p=window.MotionHandoffAnimation(h,c,ne);p!==null&&(m.startTime=p,y=!0)}}Ec(e,c),d.start(Cf(c,d,f,e.shouldReduceMotion&&wx.has(c)?{type:!1}:m,e,y));const x=d.animation;x&&l.push(x)}return o&&Promise.all(l).then(()=>{ne.update(()=>{o&&wR(e,o)})}),l}function ew(e,t,n,r=0,i=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}function Pc(e,t,n={}){var l;const r=Yr(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Jx(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return MR(e,t,u,c,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function MR(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Pc(l,t,{...o,delay:n+(typeof r=="function"?0:r)+ew(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function DR(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Pc(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Pc(e,t,n);else{const i=typeof t=="function"?Yr(e,t,n.custom):t;r=Promise.all(Jx(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function tw(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const jR=mf.length;function nw(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?nw(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<jR;n++){const r=mf[n],i=e.props[r];(ks(i)||i===!1)&&(t[r]=i)}return t}const LR=[...pf].reverse(),OR=pf.length;function _R(e){return t=>Promise.all(t.map(({animation:n,options:r})=>DR(e,n,r)))}function IR(e){let t=_R(e),n=rm(),r=!0;const i=l=>(u,c)=>{var f;const d=Yr(e,c,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:m,transitionEnd:v,...y}=d;u={...u,...y,...v}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,c=nw(e.parent)||{},d=[],f=new Set;let m={},v=1/0;for(let x=0;x<OR;x++){const h=LR[x],p=n[h],g=u[h]!==void 0?u[h]:c[h],C=ks(g),T=h===l?p.isActive:null;T===!1&&(v=x);let E=g===c[h]&&g!==u[h]&&C;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),p.protectedKeys={...m},!p.isActive&&T===null||!g&&!p.prevProp||tl(g)||typeof g=="boolean")continue;const P=FR(p.prevProp,g);let k=P||h===l&&p.isActive&&!E&&C||x>v&&C,D=!1;const R=Array.isArray(g)?g:[g];let I=R.reduce(i(h),{});T===!1&&(I={});const{prevResolvedValues:_={}}=p,H={..._,...I},j=F=>{k=!0,f.has(F)&&(D=!0,f.delete(F)),p.needsAnimating[F]=!0;const b=e.getValue(F);b&&(b.liveStyle=!1)};for(const F in H){const b=I[F],M=_[F];if(m.hasOwnProperty(F))continue;let O=!1;Tc(b)&&Tc(M)?O=!tw(b,M):O=b!==M,O?b!=null?j(F):f.add(F):b!==void 0&&f.has(F)?j(F):p.protectedKeys[F]=!0}p.prevProp=g,p.prevResolvedValues=I,p.isActive&&(m={...m,...I}),r&&e.blockInitialAnimation&&(k=!1);const G=E&&P;k&&(!G||D)&&d.push(...R.map(F=>{const b={type:h};if(typeof F=="string"&&r&&!G&&e.manuallyAnimateOnMount&&e.parent){const{parent:M}=e,O=Yr(M,F);if(M.enteringChildren&&O){const{delayChildren:$}=O.transition||{};b.delay=ew(M.enteringChildren,e,$)}}return{animation:F,options:b}}))}if(f.size){const x={};if(typeof u.initial!="boolean"){const h=Yr(e,Array.isArray(u.initial)?u.initial[0]:u.initial);h&&h.transition&&(x.transition=h.transition)}f.forEach(h=>{const p=e.getBaseTarget(h),g=e.getValue(h);g&&(g.liveStyle=!0),x[h]=p??null}),d.push({animation:x})}let y=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function a(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(f=>{var m;return(m=f.animationState)==null?void 0:m.setActive(l,u)}),n[l].isActive=u;const c=o(l);for(const f in n)n[f].protectedKeys={};return c}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=rm()}}}function FR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tw(t,e):!1}function Yn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rm(){return{animate:Yn(!0),whileInView:Yn(),whileHover:Yn(),whileTap:Yn(),whileDrag:Yn(),whileFocus:Yn(),exit:Yn()}}class Gn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class VR extends Gn{constructor(t){super(t),t.animationState||(t.animationState=IR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();tl(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let zR=0;class BR extends Gn{constructor(){super(...arguments),this.id=zR++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const $R={animation:{Feature:VR},exit:{Feature:BR}};function As(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ws(e){return{point:{x:e.pageX,y:e.pageY}}}const UR=e=>t=>hf(t)&&e(t,Ws(t));function es(e,t,n,r){return As(e,t,UR(n),r)}const rw=1e-4,WR=1-rw,HR=1+rw,iw=.01,KR=0-iw,GR=0+iw;function _e(e){return e.max-e.min}function QR(e,t,n){return Math.abs(e-t)<=n}function im(e,t,n,r=.5){e.origin=r,e.originPoint=ie(t.min,t.max,e.origin),e.scale=_e(n)/_e(t),e.translate=ie(n.min,n.max,e.origin)-e.originPoint,(e.scale>=WR&&e.scale<=HR||isNaN(e.scale))&&(e.scale=1),(e.translate>=KR&&e.translate<=GR||isNaN(e.translate))&&(e.translate=0)}function ts(e,t,n,r){im(e.x,t.x,n.x,r?r.originX:void 0),im(e.y,t.y,n.y,r?r.originY:void 0)}function sm(e,t,n){e.min=n.min+t.min,e.max=e.min+_e(t)}function YR(e,t,n){sm(e.x,t.x,n.x),sm(e.y,t.y,n.y)}function om(e,t,n){e.min=t.min-n.min,e.max=e.min+_e(t)}function wa(e,t,n){om(e.x,t.x,n.x),om(e.y,t.y,n.y)}function rt(e){return[e("x"),e("y")]}const sw=({current:e})=>e?e.ownerDocument.defaultView:null,am=(e,t)=>Math.abs(e-t);function XR(e,t){const n=am(e.x,t.x),r=am(e.y,t.y);return Math.sqrt(n**2+r**2)}class ow{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Hl(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,v=XR(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!v)return;const{point:y}=f,{timestamp:x}=Ee;this.history.push({...y,timestamp:x});const{onStart:h,onMove:p}=this.handlers;m||(h&&h(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Wl(m,this.transformPagePoint),ne.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:v,onSessionEnd:y,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Hl(f.type==="pointercancel"?this.lastMoveEventInfo:Wl(m,this.transformPagePoint),this.history);this.startEvent&&v&&v(f,h),y&&y(f,h)},!hf(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=Ws(t),l=Wl(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=Ee;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,Hl(l,this.history)),this.removeListeners=Bs(es(this.contextWindow,"pointermove",this.handlePointerMove),es(this.contextWindow,"pointerup",this.handlePointerUp),es(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$n(this.updatePoint)}}function Wl(e,t){return t?{point:t(e.point)}:e}function lm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Hl({point:e},t){return{point:e,delta:lm(e,aw(t)),offset:lm(e,qR(t)),velocity:ZR(t,.1)}}function qR(e){return e[0]}function aw(e){return e[e.length-1]}function ZR(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=aw(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>zt(t)));)n--;if(!r)return{x:0,y:0};const s=lt(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function JR(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ie(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ie(n,e,r.max):Math.min(e,n)),e}function um(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function eN(e,{top:t,left:n,bottom:r,right:i}){return{x:um(e.x,n,i),y:um(e.y,t,r)}}function cm(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function tN(e,t){return{x:cm(e.x,t.x),y:cm(e.y,t.y)}}function nN(e,t){let n=.5;const r=_e(e),i=_e(t);return i>r?n=Ts(t.min,t.max-r,e.min):r>i&&(n=Ts(e.min,e.max-i,t.min)),an(0,1,n)}function rN(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const kc=.35;function iN(e=kc){return e===!1?e=0:e===!0&&(e=kc),{x:dm(e,"left","right"),y:dm(e,"top","bottom")}}function dm(e,t,n){return{min:fm(e,t),max:fm(e,n)}}function fm(e,t){return typeof e=="number"?e:e[t]||0}const sN=new WeakMap;class oN{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ge(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ws(d).point)},o=(d,f)=>{const{drag:m,dragPropagation:v,onDragStart:y}=this.getProps();if(m&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=yA(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rt(h=>{let p=this.getAxisMotionValue(h).get()||0;if(Bt.test(p)){const{projection:g}=this.visualElement;if(g&&g.layout){const C=g.layout.layoutBox[h];C&&(p=_e(C)*(parseFloat(p)/100))}}this.originPoint[h]=p}),y&&ne.postRender(()=>y(d,f)),Ec(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:m,dragDirectionLock:v,onDirectionLock:y,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:h}=f;if(v&&this.currentDirection===null){this.currentDirection=aN(h),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,h),this.updateAxis("y",f.point,h),this.visualElement.render(),x&&x(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>rt(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new ow(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:sw(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&ne.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!yo(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=JR(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&_r(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=eN(r.layoutBox,t):this.constraints=!1,this.elastic=iN(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&rt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=rN(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_r(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=lR(r,i.root,this.visualElement.getTransformPagePoint());let o=tN(i.layout.layoutBox,s);if(n){const a=n(sR(o));this.hasMutatedConstraints=!!a,a&&(o=Wx(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=rt(c=>{if(!yo(c,n,this.currentDirection))return;let d=l&&l[c]||{};o&&(d={min:0,max:0});const f=i?200:1e6,m=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ec(this.visualElement,t),r.start(Cf(t,r,0,n,this.visualElement,!1))}stopAnimation(){rt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rt(n=>{const{drag:r}=this.getProps();if(!yo(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-ie(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!_r(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=nN({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rt(o=>{if(!yo(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(ie(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;sN.set(this.visualElement,this);const t=this.visualElement.current,n=es(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();_r(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ne.read(r);const o=As(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(rt(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=kc,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function yo(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function aN(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class lN extends Gn{constructor(t){super(t),this.removeGroupControls=ct,this.removeListeners=ct,this.controls=new oN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ct}unmount(){this.removeGroupControls(),this.removeListeners()}}const hm=e=>(t,n)=>{e&&ne.postRender(()=>e(t,n))};class uN extends Gn{constructor(){super(...arguments),this.removePointerDownListener=ct}onPointerDown(t){this.session=new ow(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sw(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:hm(t),onStart:hm(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&ne.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=es(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Io={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const _i={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=pm(e,t.target.x),r=pm(e,t.target.y);return`${n}% ${r}%`}},cN={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Un.parse(e);if(i.length>5)return r;const s=Un.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=ie(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};let Kl=!1;class dN extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;jA(fN),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),Kl&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Io.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,Kl=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||ne.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ff.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Kl=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function lw(e){const[t,n]=kA(),r=w.useContext(z0);return S.jsx(dN,{...e,layoutGroup:r,switchLayoutGroup:w.useContext($x),isPresent:t,safeToRemove:n})}const fN={borderRadius:{..._i,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_i,borderTopRightRadius:_i,borderBottomLeftRadius:_i,borderBottomRightRadius:_i,boxShadow:cN};function hN(e,t,n){const r=Me(e)?e:hi(e);return r.start(Cf("",r,t,n)),r.animation}const pN=(e,t)=>e.depth-t.depth;class mN{constructor(){this.children=[],this.isDirty=!1}add(t){Kd(this.children,t),this.isDirty=!0}remove(t){Gd(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(pN),this.isDirty=!1,this.children.forEach(t)}}function gN(e,t){const n=$e.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&($n(r),e(s-t))};return ne.setup(r,!0),()=>$n(r)}const uw=["TopLeft","TopRight","BottomLeft","BottomRight"],yN=uw.length,mm=e=>typeof e=="string"?parseFloat(e):e,gm=e=>typeof e=="number"||V.test(e);function vN(e,t,n,r,i,s){i?(e.opacity=ie(0,n.opacity??1,xN(r)),e.opacityExit=ie(t.opacity??1,0,wN(r))):s&&(e.opacity=ie(t.opacity??1,n.opacity??1,r));for(let o=0;o<yN;o++){const a=`border${uw[o]}Radius`;let l=ym(t,a),u=ym(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||gm(l)===gm(u)?(e[a]=Math.max(ie(mm(l),mm(u),r),0),(Bt.test(u)||Bt.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=ie(t.rotate||0,n.rotate||0,r))}function ym(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const xN=cw(0,.5,q0),wN=cw(.5,.95,ct);function cw(e,t,n){return r=>r<e?0:r>t?1:n(Ts(e,t,r))}function vm(e,t){e.min=t.min,e.max=t.max}function mt(e,t){vm(e.x,t.x),vm(e.y,t.y)}function xm(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function wm(e,t,n,r,i){return e-=t,e=xa(e,1/n,r),i!==void 0&&(e=xa(e,1/i,r)),e}function SN(e,t=0,n=1,r=.5,i,s=e,o=e){if(Bt.test(t)&&(t=parseFloat(t),t=ie(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ie(s.min,s.max,r);e===s&&(a-=t),e.min=wm(e.min,t,n,a,i),e.max=wm(e.max,t,n,a,i)}function Sm(e,t,[n,r,i],s,o){SN(e,t[n],t[r],t[i],t.scale,s,o)}const CN=["x","scaleX","originX"],TN=["y","scaleY","originY"];function Cm(e,t,n,r){Sm(e.x,t,CN,n?n.x:void 0,r?r.x:void 0),Sm(e.y,t,TN,n?n.y:void 0,r?r.y:void 0)}function Tm(e){return e.translate===0&&e.scale===1}function dw(e){return Tm(e.x)&&Tm(e.y)}function Em(e,t){return e.min===t.min&&e.max===t.max}function EN(e,t){return Em(e.x,t.x)&&Em(e.y,t.y)}function Pm(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fw(e,t){return Pm(e.x,t.x)&&Pm(e.y,t.y)}function km(e){return _e(e.x)/_e(e.y)}function bm(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class PN{constructor(){this.members=[]}add(t){Kd(this.members,t),t.scheduleRender()}remove(t){if(Gd(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function kN(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:m,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),m&&(r+=`skewX(${m}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Gl=["","X","Y","Z"],bN=1e3;let AN=0;function Ql(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function hw(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Zx(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ne,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&hw(r)}function pw({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=AN++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(MN),this.nodes.forEach(ON),this.nodes.forEach(_N),this.nodes.forEach(DN)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new mN)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Xd),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Rx(o)&&!TA(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,d=0;const f=()=>this.root.updateBlockedByResize=!1;ne.read(()=>{d=window.innerWidth}),e(o,()=>{const m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,c&&c(),c=gN(f,250),Io.hasAnimatedSinceResize&&(Io.hasAnimatedSinceResize=!1,this.nodes.forEach(Nm)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||BN,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=u.getProps(),h=!this.targetLayout||!fw(this.targetLayout,m),p=!d&&f;if(this.options.layoutRoot||this.resumeFrom||p||d&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const g={...cf(v,"layout"),onPlay:y,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g),this.setAnimationOrigin(c,p)}else d||Nm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$n(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(IN),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hw(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Am);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Rm);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(LN),this.nodes.forEach(RN),this.nodes.forEach(NN)):this.nodes.forEach(Rm),this.clearAllSnapshots();const a=$e.now();Ee.delta=an(0,1e3/60,a-Ee.timestamp),Ee.timestamp=a,Ee.isProcessing=!0,_l.update.process(Ee),_l.preRender.process(Ee),_l.render.process(Ee),Ee.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ff.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(jN),this.sharedNodes.forEach(FN)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ne.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ne.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_e(this.snapshot.measuredBox.x)&&!_e(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ge(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!dw(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||Zn(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),$N(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return ge();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(UN))){const{scroll:c}=this.root;c&&(Ir(a.x,c.offset.x),Ir(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=ge();if(mt(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&mt(a,o),Ir(a.x,d.offset.x),Ir(a.y,d.offset.y))}return a}applyTransform(o,a=!1){const l=ge();mt(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Fr(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Zn(c.latestValues)&&Fr(l,c.latestValues)}return Zn(this.latestValues)&&Fr(l,this.latestValues),l}removeTransform(o){const a=ge();mt(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Zn(u.latestValues))continue;wc(u.latestValues)&&u.updateSnapshot();const c=ge(),d=u.measurePageBox();mt(c,d),Cm(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Zn(this.latestValues)&&Cm(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ee.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var m;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=Ee.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ge(),this.targetWithTransforms=ge()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),YR(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):mt(this.target,this.layout.layoutBox),Kx(this.target,this.targetDelta)):mt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||wc(this.parent.latestValues)||Hx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ge(),this.relativeTargetOrigin=ge(),wa(this.relativeTargetOrigin,a,l),mt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var v;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ee.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;mt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;aR(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=ge());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xm(this.prevProjectionDelta.x,this.projectionDelta.x),xm(this.prevProjectionDelta.y,this.projectionDelta.y)),ts(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!bm(this.projectionDelta.x,this.prevProjectionDelta.x)||!bm(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Vr(),this.projectionDelta=Vr(),this.projectionDeltaWithTransform=Vr()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Vr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=ge(),m=l?l.source:void 0,v=this.layout?this.layout.source:void 0,y=m!==v,x=this.getStack(),h=!x||x.members.length<=1,p=!!(y&&!h&&this.options.crossfade===!0&&!this.path.some(zN));this.animationProgress=0;let g;this.mixTargetDelta=C=>{const T=C/1e3;Mm(d.x,o.x,T),Mm(d.y,o.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wa(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),VN(this.relativeTarget,this.relativeTargetOrigin,f,T),g&&EN(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=ge()),mt(g,this.relativeTarget)),y&&(this.animationValues=c,vN(c,u,this.latestValues,T,p,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&($n(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ne.update(()=>{Io.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=hi(0)),this.currentAnimation=hN(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(bN),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&mw(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ge();const d=_e(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=_e(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}mt(a,l),Fr(a,c),ts(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new PN),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Ql("z",o,u,this.animationValues);for(let c=0;c<Gl.length;c++)Ql(`rotate${Gl[c]}`,o,u,this.animationValues),Ql(`skew${Gl[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=_o(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=_o(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Zn(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=kN(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),o.transform=d;const{x:f,y:m}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const v in bs){if(c[v]===void 0)continue;const{correct:y,applyTo:x,isCSSVariable:h}=bs[v],p=d==="none"?c[v]:y(c[v],u);if(x){const g=x.length;for(let C=0;C<g;C++)o[x[C]]=p}else h?this.options.visualElement.renderState.vars[v]=p:o[v]=p}this.options.layoutId&&(o.pointerEvents=u===this?_o(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Am),this.root.sharedNodes.clear()}}}function RN(e){e.updateLayout()}function NN(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;s==="size"?rt(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],m=_e(f);f.min=r[d].min,f.max=f.min+m}):mw(s,t.layoutBox,r)&&rt(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],m=_e(r[d]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const a=Vr();ts(a,r,t.layoutBox);const l=Vr();o?ts(l,e.applyTransform(i,!0),t.measuredBox):ts(l,r,t.layoutBox);const u=!dw(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:m}=d;if(f&&m){const v=ge();wa(v,t.layoutBox,f.layoutBox);const y=ge();wa(y,r,m.layoutBox),fw(v,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function MN(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function DN(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function jN(e){e.clearSnapshot()}function Am(e){e.clearMeasurements()}function Rm(e){e.isLayoutDirty=!1}function LN(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Nm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ON(e){e.resolveTargetDelta()}function _N(e){e.calcProjection()}function IN(e){e.resetSkewAndRotation()}function FN(e){e.removeLeadSnapshot()}function Mm(e,t,n){e.translate=ie(t.translate,0,n),e.scale=ie(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Dm(e,t,n,r){e.min=ie(t.min,n.min,r),e.max=ie(t.max,n.max,r)}function VN(e,t,n,r){Dm(e.x,t.x,n.x,r),Dm(e.y,t.y,n.y,r)}function zN(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const BN={duration:.45,ease:[.4,0,.1,1]},jm=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Lm=jm("applewebkit/")&&!jm("chrome/")?Math.round:ct;function Om(e){e.min=Lm(e.min),e.max=Lm(e.max)}function $N(e){Om(e.x),Om(e.y)}function mw(e,t,n){return e==="position"||e==="preserve-aspect"&&!QR(km(t),km(n),.2)}function UN(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const WN=pw({attachResizeListener:(e,t)=>As(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Yl={current:void 0},gw=pw({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Yl.current){const e=new WN({});e.mount(window),e.setOptions({layoutScroll:!0}),Yl.current=e}return Yl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),HN={pan:{Feature:uN},drag:{Feature:lN,ProjectionNode:gw,MeasureLayout:lw}};function _m(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&ne.postRender(()=>s(t,Ws(t)))}class KN extends Gn{mount(){const{current:t}=this.node;t&&(this.unmount=vA(t,(n,r)=>(_m(this.node,r,"Start"),i=>_m(this.node,i,"End"))))}unmount(){}}class GN extends Gn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Bs(As(this.node.current,"focus",()=>this.onFocus()),As(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Im(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&ne.postRender(()=>s(t,Ws(t)))}class QN extends Gn{mount(){const{current:t}=this.node;t&&(this.unmount=CA(t,(n,r)=>(Im(this.node,r,"Start"),(i,{success:s})=>Im(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const bc=new WeakMap,Xl=new WeakMap,YN=e=>{const t=bc.get(e.target);t&&t(e)},XN=e=>{e.forEach(YN)};function qN({root:e,...t}){const n=e||document;Xl.has(n)||Xl.set(n,{});const r=Xl.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(XN,{root:e,...t})),r[i]}function ZN(e,t,n){const r=qN(t);return bc.set(e,n),r.observe(e),()=>{bc.delete(e),r.unobserve(e)}}const JN={some:0,all:1};class eM extends Gn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:JN[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return ZN(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(tM(t,n))&&this.startObserver()}unmount(){}}function tM({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const nM={inView:{Feature:eM},tap:{Feature:QN},focus:{Feature:GN},hover:{Feature:KN}},rM={layout:{ProjectionNode:gw,MeasureLayout:lw}},iM={...$R,...nM,...HN,...rM},me=iR(iM,yR),Sa=w.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:de("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Sa.displayName="Card";const yw=w.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:de("flex flex-col space-y-1.5 p-6",e),...t}));yw.displayName="CardHeader";const vw=w.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:de("font-semibold leading-none tracking-tight",e),...t}));vw.displayName="CardTitle";const xw=w.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:de("text-sm text-muted-foreground",e),...t}));xw.displayName="CardDescription";const Ca=w.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:de("p-6 pt-0",e),...t}));Ca.displayName="CardContent";const ww=w.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:de("flex items-center p-6 pt-0",e),...t}));ww.displayName="CardFooter";var sM=Symbol.for("react.lazy"),Ta=jc[" use ".trim().toString()];function oM(e){return typeof e=="object"&&e!==null&&"then"in e}function Sw(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===sM&&"_payload"in e&&oM(e._payload)}function Cw(e){const t=lM(e),n=w.forwardRef((r,i)=>{let{children:s,...o}=r;Sw(s)&&typeof Ta=="function"&&(s=Ta(s._payload));const a=w.Children.toArray(s),l=a.find(cM);if(l){const u=l.props.children,c=a.map(d=>d===l?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:d);return S.jsx(t,{...o,ref:i,children:w.isValidElement(u)?w.cloneElement(u,void 0,c):null})}return S.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}var aM=Cw("Slot");function lM(e){const t=w.forwardRef((n,r)=>{let{children:i,...s}=n;if(Sw(i)&&typeof Ta=="function"&&(i=Ta(i._payload)),w.isValidElement(i)){const o=fM(i),a=dM(s,i.props);return i.type!==w.Fragment&&(a.ref=r?Ed(r,o):o),w.cloneElement(i,a)}return w.Children.count(i)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uM=Symbol("radix.slottable");function cM(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uM}function dM(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...a)=>{const l=s(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function fM(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const hM=Nd("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Tt=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},s)=>{const o=r?aM:"button";return S.jsx(o,{className:de(hM({variant:t,size:n,className:e})),ref:s,...i})});Tt.displayName="Button";function vo({className:e,...t}){return S.jsx("div",{className:de("animate-pulse rounded-md bg-primary/10",e),...t})}function Fm({variant:e="default",className:t,onClick:n,src:r}){return S.jsxs("div",{className:de("flex items-center gap-3",t),onClick:n,children:[S.jsx("img",{src:r||"https://newoaks.s3.us-west-1.amazonaws.com/AutoDev/21412/3d1a23f0-f5b6-4446-af07-1314d48e1c0f.webp",alt:"Walk to Success Chatbots Logo",className:"w-10 h-10 object-contain"}),S.jsx("span",{className:de("text-xl font-bold",e==="white"?"text-white":"text-slate-900"),children:"Walk to Success Chatbots"})]})}const pM=()=>{const[e,t]=w.useState(null),[n,r]=w.useState(!0),[i,s]=w.useState(null),[o,a]=w.useState(!1),l=v=>{document.querySelectorAll('link[rel*="icon"]').forEach(h=>h.remove());const x=document.createElement("link");x.rel="icon",x.type="image/x-icon",x.href=v,document.head.appendChild(x)},u=()=>{var v;try{const y=localStorage.getItem("token")||localStorage.getItem("authToken")||localStorage.getItem("user");if(y){const x=JSON.parse(y);if((v=x==null?void 0:x.state)!=null&&v.token||x!=null&&x.token){a(!0);return}}a(!1)}catch(y){console.warn("Error checking login status:",y),a(!1)}},c=async()=>{try{r(!0),s(null);const v=window.ezsite.PROJECT_CODE;console.log("window.ezsite.PROJECT_CODE",window.ezsite.PROJECT_CODE);const y=await fetch(`https://usapi.hottask.com/chat/chatbot/GetWhiteLabelConfig?randomCode=${v}`);if(!y.ok)throw new Error("Failed to fetch configuration");const x=await y.json();if(x.Data)t(x.Data),x.Data.HtmlHeadFaviconUrl&&l(x.Data.HtmlHeadFaviconUrl),x.Data.HtmlHeadTitle&&(document.title=x.Data.HtmlHeadTitle);else throw new Error("Invalid response format")}catch(v){const y=v instanceof Error?v.message:"An error occurred";s(y),uv({title:"Configuration Error",description:"Failed to load page configuration. Using default settings.",variant:"destructive"})}finally{r(!1)}};w.useEffect(()=>{c(),u()},[]);const d=()=>{if(e!=null&&e.Domain){const v=`https://${e.Domain}/signin`;window.location.href=v}},f=[{name:"Sarah Chen",company:"TechFlow Solutions",role:"Head of Sales",content:"Our lead conversion rate increased by 340% within the first month. The AI conversations feel completely natural and our prospects love the instant meeting booking.",rating:5,avatar:"https://images.unsplash.com/photo-1708962188322-0e9a5e40c101?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3MTg3MTl8MHwxfHNlYXJjaHwxfHxBJTIwY3JvcHBlZCUyMGltYWdlJTIwb2YlMjBhJTIwcGVyc29uJTJDJTIwZm9jdXNpbmclMjBvbiUyMHRoZWlyJTIwZmFjZSUyQyUyMHdpdGglMjBhJTIwbmF0dXJhbCUyMGJhY2tncm91bmQufGVufDB8fHx8MTc1NzUxODg2MXww&ixlib=rb-4.1.0&q=80&w=200$w=64"},{name:"Marcus Rodriguez",company:"DataSync Inc",role:"CEO",content:"We went from manually qualifying 20 leads per week to automatically processing 200+ high-quality prospects. The ROI has been phenomenal.",rating:5,avatar:"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=64&h=64&fit=crop&crop=face"},{name:"Jennifer Kim",company:"CloudFirst Digital",role:"Marketing Director",content:"The intelligent qualification saves our team 15 hours per week. We're now booking 3x more qualified meetings with zero additional effort.",rating:5,avatar:"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=64&h=64&fit=crop&crop=face"}],m=[{icon:_T,number:"10,000+",label:"Active Users",color:"blue"},{icon:TT,number:"2.5M+",label:"Conversations",color:"emerald"},{icon:Gh,number:"500K+",label:"Meetings Booked",color:"violet"},{icon:Yh,number:"340%",label:"Avg Conversion Lift",color:"orange"}];return S.jsxs("div",{className:"min-h-screen bg-white",children:[S.jsx("header",{className:"sticky top-0 z-50 bg-white/90 backdrop-blur-xl border-b border-slate-100",children:S.jsx("div",{className:"max-w-7xl mx-auto px-6 py-6",children:S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx(me.div,{className:"flex items-center gap-4",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.6},children:n?S.jsxs(S.Fragment,{children:[S.jsx(vo,{className:"w-12 h-12 rounded-2xl"}),S.jsxs("div",{className:"space-y-2",children:[S.jsx(vo,{className:"h-6 w-32"}),S.jsx(vo,{className:"h-4 w-48"})]})]}):S.jsx(S.Fragment,{children:S.jsxs("div",{className:"flex flex-col justify-center",children:[S.jsx(Fm,{src:e==null?void 0:e.LogoUrl}),S.jsx("p",{className:"text-sm text-slate-600 font-medium pl-[3.25rem] hidden md:block -mt-1",children:(e==null?void 0:e.HtmlHeadTitle)||"AI-Powered Lead Generation & Meeting Booking"})]})})}),n?S.jsx(vo,{className:"h-10 w-24 rounded-full"}):S.jsx("div",{className:"flex items-center gap-4",children:o?S.jsx(S.Fragment,{children:S.jsxs("div",{className:"flex items-center justify-center gap-8",children:[S.jsx("a",{href:`https://${e==null?void 0:e.Domain}/pricing`,className:"text-sm font-medium text-slate-600 hover:text-slate-900 transition-colors px-4 py-2 rounded-full hover:bg-slate-50",children:"Pricing"}),S.jsx("a",{href:`https://${e==null?void 0:e.Domain}/my-chatbots`,className:"text-sm font-medium text-slate-600 hover:text-slate-900 transition-colors px-4 py-2 rounded-full hover:bg-slate-50",children:"My Chatbots"}),S.jsx("a",{href:`https://${e==null?void 0:e.Domain}/usage`,className:"text-sm font-medium text-slate-600 hover:text-slate-900 transition-colors px-4 py-2 rounded-full hover:bg-slate-50",children:"Usage"}),S.jsx("a",{href:`https://${e==null?void 0:e.Domain}/workspace/manage`,className:"text-sm font-medium text-slate-600 hover:text-slate-900 transition-colors px-4 py-2 rounded-full hover:bg-slate-50",children:"Settings"}),(e==null?void 0:e.AppDownload)&&S.jsx("a",{href:`https://${e==null?void 0:e.Domain}/download`,className:"text-sm font-medium text-slate-600 hover:text-slate-900 transition-colors px-4 py-2 rounded-full hover:bg-slate-50",children:"App Download"}),S.jsxs(Tt,{onClick:()=>window.location.href=`https://${e==null?void 0:e.Domain}/account`,variant:"outline",size:"sm",className:"bg-slate-900 hover:bg-slate-800 text-white text-lg border-slate-900 rounded-full px-6 py-2 shadow-lg hover:shadow-xl transition-all duration-200",disabled:!(e!=null&&e.Domain),children:[S.jsx(LT,{className:"w-4 h-4 mr-2 text-white"}),S.jsx("span",{className:"text-sm font-medium text-white",children:"Account"})]})]})}):S.jsx(S.Fragment,{children:S.jsxs("div",{className:"flex items-center justify-center gap-8",children:[S.jsx("a",{href:`https://${e==null?void 0:e.Domain}/pricing`,className:"text-sm font-medium text-slate-600 hover:text-slate-900 transition-colors px-4 py-2 rounded-full hover:bg-slate-50",children:"Pricing"}),(e==null?void 0:e.AppDownload)&&S.jsx("a",{href:`https://${e==null?void 0:e.Domain}/download`,className:"text-sm font-medium text-slate-600 hover:text-slate-900 transition-colors px-4 py-2 rounded-full hover:bg-slate-50",children:"App Download"}),S.jsxs(Tt,{onClick:d,variant:"outline",size:"sm",className:"bg-slate-900 hover:bg-slate-800 text-white text-lg border-slate-900 rounded-full px-6 py-2 shadow-lg hover:shadow-xl transition-all duration-200",disabled:!(e!=null&&e.Domain),children:[S.jsx(xT,{className:"w-4 h-4 mr-2 text-white"}),S.jsx("span",{className:"text-sm font-medium text-white",children:"Sign in"})]})]})})})]})})}),S.jsx("main",{className:"max-w-7xl mx-auto",children:S.jsxs("div",{className:"space-y-32",children:[S.jsx(me.section,{className:"px-6 py-24 text-center",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},children:S.jsxs("div",{className:"max-w-4xl mx-auto space-y-8",children:[S.jsx(me.h2,{className:"text-5xl md:text-7xl font-bold text-slate-900 leading-tight tracking-tight",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.1},children:"Walk to Success with AI Chatbots"}),S.jsx(me.p,{className:"text-xl md:text-2xl text-slate-600 max-w-3xl mx-auto leading-relaxed font-normal",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:"Transform visitors into qualified leads and booked meetings through intelligent conversations. Our AI handles lead capture and scheduling automatically with natural, human-like interactions."}),S.jsxs(me.div,{className:"flex flex-col sm:flex-row gap-4 justify-center pt-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.3},children:[S.jsx(Tt,{onClick:d,size:"lg",className:"bg-slate-900 hover:bg-slate-800 text-white rounded-full px-8 py-4 text-lg font-medium shadow-lg hover:shadow-xl transition-all duration-300",disabled:!(e!=null&&e.Domain),children:"Get Started Free"}),S.jsx(Tt,{variant:"outline",size:"lg",className:"rounded-full px-8 py-4 text-lg font-medium border-slate-300 hover:border-slate-400 hover:bg-slate-50 transition-all duration-300",onClick:()=>window.open(`https://${e==null?void 0:e.Domain}/pricing`,"_blank"),children:"View Pricing"})]})]})}),S.jsx(me.section,{className:"px-6",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.3},children:S.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[{icon:$T,title:"Smart Lead Capture",description:"Automatically captures visitor information through natural conversations with intelligent qualification",gradient:"from-blue-50 to-indigo-50",iconBg:"bg-blue-500",border:"border-blue-100"},{icon:Gh,title:"Instant Booking",description:"Books meetings seamlessly with integrated calendar and real-time availability checking",gradient:"from-emerald-50 to-green-50",iconBg:"bg-emerald-500",border:"border-emerald-100"},{icon:Yh,title:"Conversation Intelligence",description:"Smart conversation flows that adapt and improve lead qualification over time",gradient:"from-violet-50 to-purple-50",iconBg:"bg-violet-500",border:"border-violet-100"}].map((v,y)=>S.jsx(me.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4+y*.1},children:S.jsx(Sa,{className:`h-full border-2 ${v.border} bg-gradient-to-br ${v.gradient} shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-105`,children:S.jsxs(Ca,{className:"p-10 text-center h-full flex flex-col",children:[S.jsx("div",{className:`w-16 h-16 ${v.iconBg} rounded-2xl flex items-center justify-center mx-auto mb-8 shadow-lg`,children:S.jsx(v.icon,{className:"w-8 h-8 text-white"})}),S.jsx("h3",{className:"font-bold text-xl mb-4 text-slate-900",children:v.title}),S.jsx("p",{className:"text-slate-600 leading-relaxed flex-1 text-lg",children:v.description})]})})},v.title))})}),S.jsx(me.section,{className:"px-6 py-20 bg-gradient-to-r from-slate-50 to-blue-50 rounded-3xl mx-6",initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:1,delay:.7},children:S.jsxs("div",{className:"text-center space-y-16",children:[S.jsxs("div",{className:"space-y-6",children:[S.jsx(me.h2,{className:"text-4xl md:text-5xl font-bold text-slate-900 tracking-tight",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.8},children:"Trusted by Thousands of Businesses"}),S.jsx(me.p,{className:"text-xl text-slate-600 max-w-3xl mx-auto leading-relaxed",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.9},children:"Join the companies already transforming their lead generation with AI-powered conversations"})]}),S.jsx(me.div,{className:"grid grid-cols-2 md:grid-cols-4 gap-8 md:gap-12",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:1},children:m.map((v,y)=>S.jsxs(me.div,{className:"text-center p-8 bg-white rounded-2xl shadow-lg border border-slate-100",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:1.1+y*.1},children:[S.jsx("div",{className:`w-16 h-16 bg-${v.color}-100 rounded-2xl flex items-center justify-center mx-auto mb-6`,children:S.jsx(v.icon,{className:`w-8 h-8 text-${v.color}-600`})}),S.jsx("div",{className:"text-4xl font-bold text-slate-900 mb-2",children:v.number}),S.jsx("div",{className:"text-sm text-slate-600 font-medium uppercase tracking-wider",children:v.label})]},v.label))})]})}),S.jsxs(me.section,{className:"px-6",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:1.5},children:[S.jsxs("div",{className:"text-center mb-20",children:[S.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-slate-900 mb-6 tracking-tight",children:"What Our Customers Say"}),S.jsx("p",{className:"text-xl text-slate-600 max-w-2xl mx-auto",children:"Real results from businesses that transformed their lead generation"})]}),S.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:f.map((v,y)=>S.jsx(me.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:1.6+y*.2},children:S.jsx(Sa,{className:"h-full border-2 border-slate-100 shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-105",children:S.jsxs(Ca,{className:"p-8",children:[S.jsx("div",{className:"flex items-center gap-1 mb-6",children:[...Array(v.rating)].map((x,h)=>S.jsx(AT,{className:"w-5 h-5 fill-yellow-400 text-yellow-400"},h))}),S.jsxs("blockquote",{className:"text-slate-700 mb-8 leading-relaxed text-lg",children:['"',v.content,'"']}),S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx("img",{src:v.avatar,alt:v.name,className:"w-14 h-14 rounded-full object-cover shadow-md"}),S.jsxs("div",{children:[S.jsx("div",{className:"font-semibold text-slate-900 text-lg",children:v.name}),S.jsx("div",{className:"text-slate-600",children:v.role}),S.jsx("div",{className:"text-blue-600 font-medium",children:v.company})]})]})]})})},v.name))})]}),S.jsx(me.section,{className:"px-6 py-20 text-center bg-slate-900 rounded-3xl mx-6 text-white",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:2},children:S.jsxs("div",{className:"max-w-3xl mx-auto space-y-8",children:[S.jsx("div",{className:"w-20 h-20 bg-white/10 rounded-2xl flex items-center justify-center mx-auto backdrop-blur-sm",children:S.jsx(lT,{className:"w-10 h-10 text-white"})}),S.jsx("h3",{className:"text-4xl md:text-5xl font-bold",children:"Ready to Transform Your Business?"}),S.jsx("p",{className:"text-xl text-slate-300 leading-relaxed",children:"Start converting visitors into qualified leads and booked meetings today. Join thousands of businesses already seeing incredible results."}),S.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center pt-4",children:[S.jsx(Tt,{onClick:d,size:"lg",className:"bg-white text-slate-900 hover:bg-slate-100 rounded-full px-8 py-4 text-lg font-medium shadow-xl hover:shadow-2xl transition-all duration-300",disabled:!(e!=null&&e.Domain),children:"Get Started Free"}),S.jsx(Tt,{variant:"outline",size:"lg",className:"bg-white text-slate-900 hover:bg-slate-100 rounded-full px-8 py-4 text-lg font-medium transition-all duration-300",onClick:()=>window.open(`https://${e==null?void 0:e.Domain}/pricing`,"_blank"),children:"View Pricing"})]})]})})]})}),S.jsx("footer",{className:"bg-slate-50 border-t border-slate-100 mt-32",children:S.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-16",children:[S.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12",children:[S.jsxs("div",{className:"space-y-6",children:[S.jsx(Fm,{src:e==null?void 0:e.LogoUrl}),S.jsx("p",{className:"text-slate-600 leading-relaxed",children:(e==null?void 0:e.HtmlHeadTitle)||"AI-Powered Lead Generation & Meeting Booking"})]}),S.jsxs("div",{className:"space-y-6",children:[S.jsx("h4",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider",children:"Support"}),S.jsxs("nav",{className:"flex flex-col space-y-4",children:[S.jsx("a",{href:`https://${e==null?void 0:e.Domain}/contact-us`,className:"text-slate-600 hover:text-slate-900 transition-colors duration-200",children:"Contact Us"}),S.jsx("a",{href:`https://${e==null?void 0:e.Domain}/terms`,className:"text-slate-600 hover:text-slate-900 transition-colors duration-200",children:"Terms of Service"}),S.jsx("a",{href:`https://${e==null?void 0:e.Domain}/privacy`,className:"text-slate-600 hover:text-slate-900 transition-colors duration-200",children:"Privacy Policy"})]})]}),S.jsxs("div",{className:"space-y-6",children:[S.jsx("h4",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider",children:"Resources"}),S.jsxs("nav",{className:"flex flex-col space-y-4",children:[S.jsx("a",{href:`https://${e==null?void 0:e.Domain}/pricing`,className:"text-slate-600 hover:text-slate-900 transition-colors duration-200",children:"Pricing"}),o&&S.jsxs(S.Fragment,{children:[S.jsx("a",{href:`https://${e==null?void 0:e.Domain}/my-chatbots`,className:"text-slate-600 hover:text-slate-900 transition-colors duration-200",children:"My Chatbots"}),S.jsx("a",{href:`https://${e==null?void 0:e.Domain}/usage`,className:"text-slate-600 hover:text-slate-900 transition-colors duration-200",children:"Usage"})]})]})]}),S.jsxs("div",{className:"space-y-6",children:[S.jsx("h4",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider",children:"Connect"}),S.jsxs("div",{className:"flex flex-wrap gap-3",children:[(e==null?void 0:e.TwitterLink)&&S.jsx("a",{href:e.TwitterLink,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-white hover:bg-blue-50 rounded-xl flex items-center justify-center transition-colors duration-200 group border border-slate-200 hover:border-blue-200 shadow-sm",children:S.jsx(DT,{className:"w-5 h-5 text-slate-600 group-hover:text-blue-600"})}),(e==null?void 0:e.LinkedInLink)&&S.jsx("a",{href:e.LinkedInLink,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-white hover:bg-blue-50 rounded-xl flex items-center justify-center transition-colors duration-200 group border border-slate-200 hover:border-blue-200 shadow-sm",children:S.jsx(yT,{className:"w-5 h-5 text-slate-600 group-hover:text-blue-600"})}),(e==null?void 0:e.FaceBookLink)&&S.jsx("a",{href:e.FaceBookLink,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-white hover:bg-blue-50 rounded-xl flex items-center justify-center transition-colors duration-200 group border border-slate-200 hover:border-blue-200 shadow-sm",children:S.jsx(dT,{className:"w-5 h-5 text-slate-600 group-hover:text-blue-600"})}),(e==null?void 0:e.DiscordLink)&&S.jsx("a",{href:e.DiscordLink,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-white hover:bg-purple-50 rounded-xl flex items-center justify-center transition-colors duration-200 group border border-slate-200 hover:border-purple-200 shadow-sm",children:S.jsx(ST,{className:"w-5 h-5 text-slate-600 group-hover:text-purple-600"})}),(e==null?void 0:e.YoutubeLink)&&S.jsx("a",{href:e.YoutubeLink,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-white hover:bg-red-50 rounded-xl flex items-center justify-center transition-colors duration-200 group border border-slate-200 hover:border-red-200 shadow-sm",children:S.jsx(zT,{className:"w-5 h-5 text-slate-600 group-hover:text-red-600"})}),(e==null?void 0:e.InstagramLink)&&S.jsx("a",{href:e.InstagramLink,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-white hover:bg-pink-50 rounded-xl flex items-center justify-center transition-colors duration-200 group border border-slate-200 hover:border-pink-200 shadow-sm",children:S.jsx(mT,{className:"w-5 h-5 text-slate-600 group-hover:text-pink-600"})}),(e==null?void 0:e.TiktokLink)&&S.jsx("a",{href:e.TiktokLink,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-white hover:bg-slate-50 rounded-xl flex items-center justify-center transition-colors duration-200 group border border-slate-200 hover:border-slate-300 shadow-sm",children:S.jsx(PT,{className:"w-5 h-5 text-slate-600 group-hover:text-slate-800"})})]})]})]}),S.jsx("div",{className:"border-t border-slate-200 mt-16 pt-8",children:S.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4",children:[S.jsx("p",{className:"text-slate-500",children:"© 2025 Walk to Success Chatbots. All rights reserved."}),S.jsxs("div",{className:"flex items-center gap-8",children:[S.jsx("a",{href:`https://${e==null?void 0:e.Domain}/terms`,className:"text-slate-500 hover:text-slate-700 transition-colors",children:"Terms"}),S.jsx("a",{href:`https://${e==null?void 0:e.Domain}/privacy`,className:"text-slate-500 hover:text-slate-700 transition-colors",children:"Privacy"}),S.jsx("a",{href:`https://${(e==null?void 0:e.Domain)||""}/contact-us`,className:"text-slate-500 hover:text-slate-700 transition-colors",children:"Support"})]})]})})]})})]})},mM=()=>{const e=F0();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),S.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:S.jsxs(me.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center space-y-6 p-8",children:[S.jsx(me.div,{initial:{scale:.5},animate:{scale:1},transition:{duration:.5,delay:.2},children:S.jsx("h1",{className:"text-8xl font-bold text-primary",children:"404"})}),S.jsxs(me.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.4},className:"space-y-4",children:[S.jsx("h2",{className:"text-2xl font-semibold tracking-tight",children:"Page Not Found"}),S.jsx("p",{className:"text-muted-foreground",children:"Sorry, the page you are looking for does not exist or has been removed."})]}),S.jsx(me.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.6},children:S.jsx(Tt,{asChild:!0,variant:"default",size:"lg",children:S.jsx("a",{href:"/",children:"Back to Home"})})})]})})},gM=w.createContext(null),ql={didCatch:!1,error:null};class yM extends w.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=ql}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:s,reason:"imperative-api"}),this.setState(ql)}}componentDidCatch(t,n){var r,i;(r=(i=this.props).onError)===null||r===void 0||r.call(i,t,n)}componentDidUpdate(t,n){const{didCatch:r}=this.state,{resetKeys:i}=this.props;if(r&&n.error!==null&&vM(t.resetKeys,i)){var s,o;(s=(o=this.props).onReset)===null||s===void 0||s.call(o,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(ql)}}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:i}=this.props,{didCatch:s,error:o}=this.state;let a=t;if(s){const l={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")a=n(l);else if(r)a=w.createElement(r,l);else if(i!==void 0)a=i;else throw o}return w.createElement(gM.Provider,{value:{didCatch:s,error:o,resetErrorBoundary:this.resetErrorBoundary}},a)}}function vM(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}const xM=Nd("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Tw=w.forwardRef(({className:e,variant:t,...n},r)=>S.jsx("div",{ref:r,role:"alert",className:de(xM({variant:t}),e),...n}));Tw.displayName="Alert";const wM=w.forwardRef(({className:e,...t},n)=>S.jsx("h5",{ref:n,className:de("mb-1 font-medium leading-none tracking-tight",e),...t}));wM.displayName="AlertTitle";const Ew=w.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:de("text-sm [&_p]:leading-relaxed",e),...t}));Ew.displayName="AlertDescription";var SM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],CM=SM.reduce((e,t)=>{const n=Cw(`Primitive.${t}`),r=w.forwardRef((i,s)=>{const{asChild:o,...a}=i,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),TM="Separator",Vm="horizontal",EM=["horizontal","vertical"],Pw=w.forwardRef((e,t)=>{const{decorative:n,orientation:r=Vm,...i}=e,s=PM(r)?r:Vm,a=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return S.jsx(CM.div,{"data-orientation":s,...a,...i,ref:t})});Pw.displayName=TM;function PM(e){return EM.includes(e)}var kw=Pw;const bw=w.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},i)=>S.jsx(kw,{ref:i,decorative:n,orientation:t,className:de("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));bw.displayName=kw.displayName;const kM=({error:e,resetErrorBoundary:t})=>{Gt.useEffect(()=>{e&&window.dispatchEvent(new ErrorEvent("error",{error:e,message:e.message,filename:window.location.href,lineno:0,colno:0}))},[e]);const n=()=>{window.location.reload()},r=()=>{window.location.href="/"};return S.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:S.jsxs(Sa,{className:"w-full max-w-md",children:[S.jsxs(yw,{className:"text-center",children:[S.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-destructive/15 ring-2 ring-destructive/20",children:S.jsx(Xh,{className:"h-8 w-8 text-destructive drop-shadow-sm"})}),S.jsx(vw,{className:"text-xl font-semibold",children:"Something went wrong"}),S.jsx(xw,{children:"Sorry, the application encountered an unexpected error"})]}),S.jsxs(Ca,{className:"space-y-4",children:[e&&S.jsxs(Tw,{variant:"destructive",children:[S.jsx(Xh,{className:"h-5 w-5"}),S.jsx(Ew,{className:"text-sm",children:S.jsxs("details",{className:"mt-2",children:[S.jsx("summary",{className:"cursor-pointer font-medium",children:"Error Details"}),S.jsx("div",{id:"capture-error-detail",className:"mt-2 text-xs font-mono bg-muted/80 dark:bg-muted/20 p-3 rounded border dark:border-border/50 overflow-auto max-h-32 text-foreground dark:text-muted-foreground",children:e.message})]})})]}),S.jsx("div",{className:"text-sm text-muted-foreground text-center",children:"You can try refreshing the page or returning to the homepage to resolve this issue"})]}),S.jsx(bw,{}),S.jsxs(ww,{className:"flex flex-col gap-2 pt-6",children:[S.jsxs("div",{className:"flex w-full gap-2",children:[t&&S.jsxs(Tt,{onClick:t,className:"flex-1",variant:"default",children:[S.jsx(Qh,{className:"mr-2 h-4 w-4 opacity-90"}),"Retry"]}),S.jsxs(Tt,{onClick:n,variant:"outline",className:"flex-1",children:[S.jsx(Qh,{className:"mr-2 h-4 w-4 opacity-90"}),"Refresh Page"]})]}),S.jsxs(Tt,{onClick:r,variant:"ghost",className:"w-full",children:[S.jsx(hT,{className:"mr-2 h-4 w-4 opacity-80"}),"Go Home"]})]})]})})},bM=new Ik,AM=()=>S.jsx(yM,{FallbackComponent:kM,onError:(e,t)=>{console.error(`Error Boundary caught an error(pathname:${location.pathname+location.search}):`,e,t),setTimeout(()=>{throw e},0)},children:S.jsx(Vk,{client:bM,children:S.jsxs(ck,{children:[S.jsx(EE,{}),S.jsx(kb,{children:S.jsxs(Tb,{children:[S.jsx(sc,{path:"/",element:S.jsx(pM,{})}),S.jsx(sc,{path:"*",element:S.jsx(mM,{})})]})})]})})});lv(document.getElementById("root")).render(S.jsx(AM,{}));