vendor: 5,550 bytes, line 1
1function px(t,r){for(var o=0;o<r.length;o++){const a=r[o];if(typeof a!="string"&&!Array.isArray(a)){for(const c in a)if(c!=="default"&&!(c in t)){const d=Object.getOwnPropertyDescriptor(a,c);d&&Object.defineProperty(t,c,d.get?d:{enumerable:!0,get:()=>a[c]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))a(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&a(h)}).observe(document,{childList:!0,subtree:!0});function o(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function a(c){if(c.ep)return;c.ep=!0;const d=o(c);fetch(c.href,d)}})();function Ep(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var dc={exports:{}},ro={},fc={exports:{}},we={};var fh;function mx(){if(fh)return we;fh=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.iterator;function k(I){return I===null||typeof I!="object"?null:(I=S&&I[S]||I["@@iterator"],typeof I=="function"?I:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,x={};function j(I,$,ee){this.props=I,this.context=$,this.refs=x,this.updater=ee||w}j.prototype.isReactComponent={},j.prototype.setState=function(I,$){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,$,"setState")},j.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function P(){}P.prototype=j.prototype;function C(I,$,ee){this.props=I,this.context=$,this.refs=x,this.updater=ee||w}var E=C.prototype=new P;E.constructor=C,R(E,j.prototype),E.isPureReactComponent=!0;var T=Array.isArray,_=Object.prototype.hasOwnProperty,D={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function U(I,$,ee){var re,pe={},ye=null,ue=null;if($!=null)for(re in $.ref!==void 0&&(ue=$.ref),$.key!==void 0&&(ye=""+$.key),$)_.call($,re)&&!z.hasOwnProperty(re)&&(pe[re]=$[re]);var be=arguments.length-2;if(be===1)pe.children=ee;else if(1<be){for(var Ce=Array(be),We=0;We<be;We++)Ce[We]=arguments[We+2];pe.children=Ce}if(I&&I.defaultProps)for(re in be=I.defaultProps,be)pe[re]===void 0&&(pe[re]=be[re]);return{$$typeof:t,type:I,key:ye,ref:ue,props:pe,_owner:D.current}}function X(I,$){return{$$typeof:t,type:I.type,key:$,ref:I.ref,props:I.props,_owner:I._owner}}function Z(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function he(I){var $={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(ee){return $[ee]})}var Y=/\/+/g;function te(I,$){return typeof I=="object"&&I!==null&&I.key!=null?he(""+I.key):$.toString(36)}function K(I,$,ee,re,pe){var ye=typeof I;(ye==="undefined"||ye==="boolean")&&(I=null);var ue=!1;if(I===null)ue=!0;else switch(ye){case"string":case"number":ue=!0;break;case"object":switch(I.$$typeof){case t:case r:ue=!0}}if(ue)return ue=I,pe=pe(ue),I=re===""?"."+te(ue,0):re,T(pe)?(ee="",I!=null&&(ee=I.replace(Y,"$&/")+"/"),K(pe,$,ee,"",function(We){return We})):pe!=null&&(Z(pe)&&(pe=X(pe,ee+(!pe.key||ue&&ue.key===pe.key?"":(""+pe.key).replace(Y,"$&/")+"/")+I)),$.push(pe)),1;if(ue=0,re=re===""?".":re+":",T(I))for(var be=0;be<I.length;be++){ye=I[be];var Ce=re+te(ye,be);ue+=K(ye,$,ee,Ce,pe)}else if(Ce=k(I),typeof Ce=="function")for(I=Ce.call(I),be=0;!(ye=I.next()).done;)ye=ye.value,Ce=re+te(ye,be++),ue+=K(ye,$,ee,Ce,pe);else if(ye==="object")throw $=String(I),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return ue}function me(I,$,ee){if(I==null)return I;var re=[],pe=0;return K(I,re,"","",function(ye){return $.call(ee,ye,pe++)}),re}function ce(I){if(I._status===-1){var $=I._result;$=$(),$.then(function(ee){(I._status===0||I._status===-1)&&(I._status=1,I._result=ee)},function(ee){(I._status===0||I._status===-1)&&(I._status=2,I._result=ee)}),I._status===-1&&(I._status=0,I._result=$)}if(I._status===1)return I._result.default;throw I._result}var ie={current:null},B={transition:null},W={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:B,ReactCurrentOwner:D};function q(){throw Error("act(...) is not supported in production builds of React.")}return we.Children={map:me,forEach:function(I,$,ee){me(I,function(){$.apply(this,arguments)},ee)},count:function(I){var $=0;return me(I,function(){$++}),$},toArray:function(I){return me(I,function($){return $})||[]},only:function(I){if(!Z(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},we.Component=j,we.Fragment=o,we.Profiler=c,we.PureComponent=C,we.StrictMode=a,we.Suspense=m,we.__SECRET_INT
vendor: 5,754 bytes, line 1
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,we.act=q,we.cloneElement=function(I,$,ee){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var re=R({},I.props),pe=I.key,ye=I.ref,ue=I._owner;if($!=null){if($.ref!==void 0&&(ye=$.ref,ue=D.current),$.key!==void 0&&(pe=""+$.key),I.type&&I.type.defaultProps)var be=I.type.defaultProps;for(Ce in $)_.call($,Ce)&&!z.hasOwnProperty(Ce)&&(re[Ce]=$[Ce]===void 0&&be!==void 0?be[Ce]:$[Ce])}var Ce=arguments.length-2;if(Ce===1)re.children=ee;else if(1<Ce){be=Array(Ce);for(var We=0;We<Ce;We++)be[We]=arguments[We+2];re.children=be}return{$$typeof:t,type:I.type,key:pe,ref:ye,props:re,_owner:ue}},we.createContext=function(I){return I={$$typeof:h,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:d,_context:I},I.Consumer=I},we.createElement=U,we.createFactory=function(I){var $=U.bind(null,I);return $.type=I,$},we.createRef=function(){return{current:null}},we.forwardRef=function(I){return{$$typeof:p,render:I}},we.isValidElement=Z,we.lazy=function(I){return{$$typeof:b,_payload:{_status:-1,_result:I},_init:ce}},we.memo=function(I,$){return{$$typeof:v,type:I,compare:$===void 0?null:$}},we.startTransition=function(I){var $=B.transition;B.transition={};try{I()}finally{B.transition=$}},we.unstable_act=q,we.useCallback=function(I,$){return ie.current.useCallback(I,$)},we.useContext=function(I){return ie.current.useContext(I)},we.useDebugValue=function(){},we.useDeferredValue=function(I){return ie.current.useDeferredValue(I)},we.useEffect=function(I,$){return ie.current.useEffect(I,$)},we.useId=function(){return ie.current.useId()},we.useImperativeHandle=function(I,$,ee){return ie.current.useImperativeHandle(I,$,ee)},we.useInsertionEffect=function(I,$){return ie.current.useInsertionEffect(I,$)},we.useLayoutEffect=function(I,$){return ie.current.useLayoutEffect(I,$)},we.useMemo=function(I,$){return ie.current.useMemo(I,$)},we.useReducer=function(I,$,ee){return ie.current.useReducer(I,$,ee)},we.useRef=function(I){return ie.current.useRef(I)},we.useState=function(I){return ie.current.useState(I)},we.useSyncExternalStore=function(I,$,ee){return ie.current.useSyncExternalStore(I,$,ee)},we.useTransition=function(){return ie.current.useTransition()},we.version="18.3.1",we}var hh;function iu(){return hh||(hh=1,fc.exports=mx()),fc.exports}var ph;function gx(){if(ph)return ro;ph=1;var t=iu(),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,c=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function h(p,m,v){var b,S={},k=null,w=null;v!==void 0&&(k=""+v),m.key!==void 0&&(k=""+m.key),m.ref!==void 0&&(w=m.ref);for(b in m)a.call(m,b)&&!d.hasOwnProperty(b)&&(S[b]=m[b]);if(p&&p.defaultProps)for(b in m=p.defaultProps,m)S[b]===void 0&&(S[b]=m[b]);return{$$typeof:r,type:p,key:k,ref:w,props:S,_owner:c.current}}return ro.Fragment=o,ro.jsx=h,ro.jsxs=h,ro}var mh;function vx(){return mh||(mh=1,dc.exports=gx()),dc.exports}var i=vx(),g=iu();const J=Ep(g),au=px({__proto__:null,default:J},[g]);var Di={},hc={exports:{}},xt={},pc={exports:{}},mc={};var gh;function yx(){return gh||(gh=1,(function(t){function r(B,W){var q=B.length;B.push(W);e:for(;0<q;){var I=q-1>>>1,$=B[I];if(0<c($,W))B[I]=W,B[q]=$,q=I;else break e}}function o(B){return B.length===0?null:B[0]}function a(B){if(B.length===0)return null;var W=B[0],q=B.pop();if(q!==W){B[0]=q;e:for(var I=0,$=B.length,ee=$>>>1;I<ee;){var re=2*(I+1)-1,pe=B[re],ye=re+1,ue=B[ye];if(0>c(pe,q))ye<$&&0>c(ue,pe)?(B[I]=ue,B[ye]=q,I=ye):(B[I]=pe,B[re]=q,I=re);else if(ye<$&&0>c(ue,q))B[I]=ue,B[ye]=q,I=ye;else break e}}return W}function c(B,W){var q=B.sortIndex-W.sortIndex;return q!==0?q:B.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;t.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();t.unstable_now=function(){return h.now()-p}}var m=[],v=[],b=1,S=null,k=3,w=!1,R=!1,x=!1,j=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(B){for(var W=o(v);W!==null;){if(W.callback===null)a(v);else if(W.startTime<=B)a(v),W.sortIndex=W.expirationTime,r(m,W);else break;W=o(v)}}function T(B){if(x=!1,E(B),!R)if(o(m)!==null)R=!0,ce(_);else{var W=o(v);W!==null&&ie(T,W.startTime-B)}}function _(B,W){R=!1,x&&(x=!1,P(U),U=-1),w=!0;var q=k;try{for(E(W),S=o(m);S!==null&&(!(S.expirationTime>W)||B&&!he());){var I=S.callback;if(typeof I=="function"){S.callback=null,k=S.priorityLevel;var $=I(S.expirationTime<=W);W=t.unstable_now(),typeof $=="function"?S.callback=$:S===o(m)&&a(m),E(W)}else a(m);S=o(m)}if(S!==null)var ee=!0;else{var re=o(v);re!==null&&ie(T,re.startTime-W),ee=!1}return ee}finally{S=null,k=q,w=!1}}var D=!1,z=null,U=-1,X=5,Z=-1;function he(){return!(t.unstable_now()-Z<X)}function Y(){if(z!==null){var B=t.unstable_now();Z=B;var W=!0;try{W=z(!0,B)}finally{W?te():(D=!1,z=null)}}else D=!1}var te;if(typeof C=="function")te=function(){C(Y)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,me=K.port2;K.port1.onmessage=Y,te=function(){me.postMessage(null)}}else te=function(){j(Y,0)};function ce(B){z=B,D||(D=!0,te())}function ie(B,W){U=j(function(){B(t.unstable_now())},W)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(B){B.
vendor: 49,238 bytes, lines 1-6
1callback=null},t.unstable_continueExecution=function(){R||w||(R=!0,ce(_))},t.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"):X=0<B?Math.floor(1e3/B):5},t.unstable_getCurrentPriorityLevel=function(){return k},t.unstable_getFirstCallbackNode=function(){return o(m)},t.unstable_next=function(B){switch(k){case 1:case 2:case 3:var W=3;break;default:W=k}var q=k;k=W;try{return B()}finally{k=q}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(B,W){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var q=k;k=B;try{return W()}finally{k=q}},t.unstable_scheduleCallback=function(B,W,q){var I=t.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?I+q:I):q=I,B){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=q+$,B={id:b++,callback:W,priorityLevel:B,startTime:q,expirationTime:$,sortIndex:-1},q>I?(B.sortIndex=q,r(v,B),o(m)===null&&B===o(v)&&(x?(P(U),U=-1):x=!0,ie(T,q-I))):(B.sortIndex=$,r(m,B),R||w||(R=!0,ce(_))),B},t.unstable_shouldYield=he,t.unstable_wrapCallback=function(B){var W=k;return function(){var q=k;k=W;try{return B.apply(this,arguments)}finally{k=q}}}})(mc)),mc}var vh;function xx(){return vh||(vh=1,pc.exports=yx()),pc.exports}var yh;function wx(){if(yh)return xt;yh=1;var t=iu(),r=xx();function o(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s<arguments.length;s++)n+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,c={};function d(e,n){h(e,n),h(e+"Capture",n)}function h(e,n){for(c[e]=n,e=0;e<n.length;e++)a.add(n[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,v=/^[: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]*$/,b={},S={};function k(e){return m.call(S,e)?!0:m.call(b,e)?!1:v.test(e)?S[e]=!0:(b[e]=!0,!1)}function w(e,n,s,l){if(s!==null&&s.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return l?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function R(e,n,s,l){if(n===null||typeof n>"u"||w(e,n,s,l))return!0;if(l)return!1;if(s!==null)switch(s.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function x(e,n,s,l,u,f,y){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=l,this.attributeNamespace=u,this.mustUseProperty=s,this.propertyName=e,this.type=n,this.sanitizeURL=f,this.removeEmptyString=y}var j={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){j[e]=new x(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];j[n]=new x(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){j[e]=new x(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){j[e]=new x(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){j[e]=new x(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){j[e]=new x(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){j[e]=new x(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){j[e]=new x(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){j[e]=new x(e,5,!1,e.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function C(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 n=e.replace(P,C);j[n]=new x(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(P,C);j[n]=new x(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(P,C);j[n]=new x(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){j[e]=new x(e,1,!1,e.toLowerCase(),null,!1,!1)}),j.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){j[e]=new x(e,1,!1,e.toLowerCase(),null,!0,!0)});function E(e,n,s,l){var u=j.hasOwnProperty(n)?j[n]:null;(u!==null?u.type!==0:l||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(R(n,s,u,l)&&(s=null),l||u===null?k(n)&&(s===null?e.removeAttribute(n):e.setAttribute(n,""+s)):u.mustUseProperty?e[u.propertyName]=s===null?u.type===3?!1:"":s:(n=u.attributeName,l=u.attributeNamespace,s===null?e.removeAttribute(n):(u=u.type,s=u===3||u===4&&s===!0?"":""+s,l?e.setAttributeNS(l,n,s):e.setAttribute(n,s))))}var T=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),D=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),Z=Symbol.for("react.provider"),he=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),B=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=B&&e[B]||e["@@iterator"],typeof e=="function"?e:null)}var q=Object.assign,I;function $(e){if(I===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);I=n&&n[1]||""}return` 2`+I+e}var ee=!1;function re(e,n){if(!e||ee)return"";ee=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(F){var l=F}Reflect.construct(e,[],n)}else{try{n.call()}catch(F){l=F}e.call(n.prototype)}else{try{throw Error()}catch(F){l=F}e()}}catch(F){if(F&&l&&typeof F.stack=="string"){for(var u=F.stack.split(` 3`),f=l.stack.split(` 4`),y=u.length-1,N=f.length-1;1<=y&&0<=N&&u[y]!==f[N];)N--;for(;1<=y&&0<=N;y--,N--)if(u[y]!==f[N]){if(y!==1||N!==1)do if(y--,N--,0>N||u[y]!==f[N]){var A=` 5`+u[y].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),A}while(1<=y&&0<=N);break}}}finally{ee=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?$(e):""}function pe(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return e=re(e.type,!1),e;case 11:return e=re(e.type.render,!1),e;case 1:return e=re(e.type,!0),e;default:return""}}function ye(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 z:return"Fragment";case D:return"Portal";case X:return"Profiler";case U:return"StrictMode";case te:return"Suspense";case K:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case he:return(e.displayName||"Context")+".Consumer";case Z:return(e._context.displayName||"Context")+".Provider";case Y:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case me:return n=e.displayName||null,n!==null?n:ye(e.type)||"Memo";case ce:n=e._payload,e=e._init;try{return ye(e(n))}catch{}}return null}function ue(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(n);case 8:return n===U?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function be(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ce(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function We(e){var n=Ce(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),l=""+e[n];if(!e.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var u=s.get,f=s.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(y){l=""+y,f.call(this,y)}}),Object.defineProperty(e,n,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Nt(e){e._valueTracker||(e._valueTracker=We(e))}function On(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var s=n.getValue(),l="";return e&&(l=Ce(e)?e.checked?"true":"false":e.value),e=l,e!==s?(n.setValue(e),!0):!1}function Tt(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 vs(e,n){var s=n.checked;return q({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function jo(e,n){var s=n.defaultValue==null?"":n.defaultValue,l=n.checked!=null?n.checked:n.defaultChecked;s=be(n.value!=null?n.value:s),e._wrapperState={initialChecked:l,initialValue:s,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function ys(e,n){n=n.checked,n!=null&&E(e,"checked",n,!1)}function xs(e,n){ys(e,n);var s=be(n.value),l=n.type;if(s!=null)l==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?ws(e,n.type,s):n.hasOwnProperty("defaultValue")&&ws(e,n.type,be(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Tr(e,n,s){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var l=n.type;if(!(l!=="submit"&&l!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,s||n===e.value||(e.value=n),e.defaultValue=n}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function ws(e,n,s){(n!=="number"||Tt(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var In=Array.isArray;function Pt(e,n,s,l){if(e=e.options,n){n={};for(var u=0;u<s.length;u++)n["$"+s[u]]=!0;for(s=0;s<e.length;s++)u=n.hasOwnProperty("$"+e[s].value),e[s].selected!==u&&(e[s].selected=u),u&&l&&(e[s].defaultSelected=!0)}else{for(s=""+be(s),n=null,u=0;u<e.length;u++){if(e[u].value===s){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function Pr(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(o(91));return q({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xt(e,n){var s=n.value;if(s==null){if(s=n.children,n=n.defaultValue,s!=null){if(n!=null)throw Error(o(92));if(In(s)){if(1<s.length)throw Error(o(93));s=s[0]}n=s}n==null&&(n=""),s=n}e._wrapperState={initialValue:be(s)}}function Co(e,n){var s=be(n.value),l=be(n.defaultValue);s!=null&&(s=""+s,s!==e.value&&(e.value=s),n.defaultValue==null&&e.defaultValue!==s&&(e.defaultValue=s)),l!=null&&(e.defaultValue=""+l)}function ko(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function ot(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 Zt(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?ot(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Rr,Eo=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,s,l,u){MSApp.execUnsafeLocalFunction(function(){return e(n,s,l,u)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Rr=Rr||document.createElement("div"),Rr.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Rr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function en(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=n;return}}e.textContent=n}var cr={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},No=["Webkit","ms","Moz","O"];Object.keys(cr).forEach(function(e){No.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),cr[n]=cr[e]})});function Ar(e,n,s){return n==null||typeof n=="boolean"||n===""?"":s||typeof n!="number"||n===0||cr.hasOwnProperty(e)&&cr[e]?(""+n).trim():n+"px"}function yn(e,n){e=e.style;for(var s in n)if(n.hasOwnProperty(s)){var l=s.indexOf("--")===0,u=Ar(s,n[s],l);s==="float"&&(s="cssFloat"),l?e.setProperty(s,u):e[s]=u}}var To=q({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 tn(e,n){if(n){if(To[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(o(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(o(61))}if(n.style!=null&&typeof n.style!="object")throw Error(o(62))}}function bs(e,n){if(e.indexOf("-")===-1)return typeof n.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 Ss=null;function Or(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ir=null,_n=null,nn=null;function Mt(e){if(e=Ws(e)){if(typeof Ir!="function")throw Error(o(280));var n=e.stateNode;n&&(n=Xo(n),Ir(e.stateNode,e.type,n))}}function Po(e){_n?nn?nn.push(e):nn=[e]:_n=e}function ve(){if(_n){var e=_n,n=nn;if(nn=_n=null,Mt(e),n)for(e=0;e<n.length;e++)Mt(n[e])}}function Ee(e,n){return e(n)}function Te(){}var it=!1;function ft(e,n,s){if(it)return e(n,s);it=!0;try{return Ee(e,n,s)}finally{it=!1,(_n!==null||nn!==null)&&(Te(),ve())}}function ht(e,n){var s=e.stateNode;if(s===null)return null;var l=Xo(s);if(l===null)return null;s=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(o(231,n,typeof s));return s}var Dt=!1;if(p)try{var Ge={};Object.defineProperty(Ge,"passive",{get:function(){Dt=!0}}),window.addEventListener("test",Ge,Ge),window.removeEventListener("test",Ge,Ge)}catch{Dt=!1}function rn(e,n,s,l,u,f,y,N,A){var F=Array.prototype.slice.call(arguments,3);try{n.apply(s,F)}catch(V){this.onError(V)}}var js=!1,Ro=null,Ao=!1,Ra=null,bv={onError:function(e){js=!0,Ro=e}};function Sv(e,n,s,l,u,f,y,N,A){js=!1,Ro=null,rn.apply(bv,arguments)}function jv(e,n,s,l,u,f,y,N,A){if(Sv.apply(this,arguments),js){if(js){var F=Ro;js=!1,Ro=null}else throw Error(o(198));Ao||(Ao=!0,Ra=F)}}function ur(e){var n=e,s=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(s=n.return),e=n.return;while(e)}return n.tag===3?s:null}function _u(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function Lu(e){if(ur(e)!==e)throw Error(o(188))}function Cv(e){var n=e.alternate;if(!n){if(n=ur(e),n===null)throw Error(o(188));return n!==e?null:e}for(var s=e,l=n;;){var u=s.return;if(u===null)break;var f=u.alternate;if(f===null){if(l=u.return,l!==null){s=l;continue}break}if(u.child===f.child){for(f=u.child;f;){if(f===s)return Lu(u),e;if(f===l)return Lu(u),n;f=f.sibling}throw Error(o(188))}if(s.return!==l.return)s=u,l=f;else{for(var y=!1,N=u.child;N;){if(N===s){y=!0,s=u,l=f;break}if(N===l){y=!0,l=u,s=f;break}N=N.sibling}if(!y){for(N=f.child;N;){if(N===s){y=!0,s=f,l=u;break}if(N===l){y=!0,l=f,s=u;break}N=N.sibling}if(!y)throw Error(o(189))}}if(s.alternate!==l)throw Error(o(190))}if(s.tag!==3)throw Error(o(188));return s.stateNode.current===s?e:n}function Mu(e){return e=Cv(e),e!==null?Du(e):null}function Du(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=Du(e);if(n!==null)return n;e=e.sibling}return null}var Fu=r.unstable_scheduleCallback,zu=r.unstable_cancelCallback,kv=r.unstable_shouldYield,Ev=r.unstable_requestPaint,$e=r.unstable_now,Nv=r.unstable_getCurrentPriorityLevel,Aa=r.unstable_ImmediatePriority,$u=r.unstable_UserBlockingPriority,Oo=r.unstable_NormalPriority,Tv=r.unstable_LowPriority,Bu=r.unstable_IdlePriority,Io=null,sn=null;function Pv(e){if(sn&&typeof sn.onCommitFiberRoot=="function")try{sn.onCommitFiberRoot(Io,e,void 0,(e.current.flags&128)===128)}catch{}}var Ft=Math.clz32?Math.clz32:Ov,Rv=Math.log,Av=Math.LN2;function Ov(e){return e>>>=0,e===0?32:31-(Rv(e)/Av|0)|0}var _o=64,Lo=4194304;function Cs(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 Mo(e,n){var s=e.pendingLanes;if(s===0)return 0;var l=0,u=e.suspendedLanes,f=e.pingedLanes,y=s&268435455;if(y!==0){var N=y&~u;N!==0?l=Cs(N):(f&=y,f!==0&&(l=Cs(f)))}else y=s&~u,y!==0?l=Cs(y):f!==0&&(l=Cs(f));if(l===0)return 0;if(n!==0&&n!==l&&(n&u)===0&&(u=l&-l,f=n&-n,u>=f||u===16&&(f&4194240)!==0))return n;if((l&4)!==0&&(l|=s&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=l;0<n;)s=31-Ft(n),u=1<<s,l|=e[s],n&=~u;return l}function Iv(e,n){switch(e){case 1:case 2:case 4:return n+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 n+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 _v(e,n){for(var s=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,f=e.pendingLanes;0<f;){var y=31-Ft(f),N=1<<y,A=u[y];A===-1?((N&s)===0||(N&l)!==0)&&(u[y]=Iv(N,n)):A<=n&&(e.expiredLanes|=N),f&=~N}}function Oa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Wu(){var e=_o;return _o<<=1,(_o&4194240)===0&&(_o=64),e}function Ia(e){for(var n=[],s=0;31>s;s++)n.push(e);return n}function ks(e,n,s){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Ft(n),e[n]=s}function Lv(e,n){var s=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var l=e.eventTimes;for(e=e.expirationTimes;0<s;){var u=31-Ft(s),f=1<<u;n[u]=0,l[u]=-1,e[u]=-1,s&=~f}}function _a(e,n){var s=e.entangledLanes|=n;for(e=e.entanglements;s;){var l=31-Ft(s),u=1<<l;u&n|e[l]&n&&(e[l]|=n),s&=~u}}var Ne=0;function Uu(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Hu,La,Vu,Qu,qu,Ma=!1,Do=[],Ln=null,Mn=null,Dn=null,Es=new Map,Ns=new Map,Fn=[],Mv="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 Yu(e,n){switch(e){case"focusin":case"focusout":Ln=null;break;case"dragenter":case"dragleave":Mn=null;break;case"mouseover":case"mouseout":Dn=null;break;case"pointerover":case"pointerout":Es.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ns.delete(n.pointerId)}}function Ts(e,n,s,l,u,f){return e===null||e.nativeEvent!==f?(e={blockedOn:n,domEventName:s,eventSystemFlags:l,nativeEvent:f,targetContainers:[u]},n!==null&&(n=Ws(n),n!==null&&La(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function Dv(e,n,s,l,u){switch(n){case"focusin":return Ln=Ts(Ln,e,n,s,l,u),!0;case"dragenter":return Mn=Ts(Mn,e,n,s,l,u),!0;case"mouseover":return Dn=Ts(Dn,e,n,s,l,u),!0;case"pointerover":var f=u.pointerId;return Es.set(f,Ts(Es.get(f)||null,e,n,s,l,u)),!0;case"gotpointercapture":return f=u.pointerId,Ns.set(f,Ts(Ns.get(f)||null,e,n,s,l,u)),!0}return!1}function Ku(e){var n=dr(e.target);if(n!==null){var s=ur(n);if(s!==null){if(n=s.tag,n===13){if(n=_u(s),n!==null){e.blockedOn=n,qu(e.priority,function(){Vu(s)});return}}else if(n===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var s=Fa(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(s===null){s=e.nativeEvent;var l=new s.constructor(s.type,s);Ss=l,s.target.dispatchEvent(l),Ss=null}else return n=Ws(s),n!==null&&La(n),e.blockedOn=s,!1;n.shift()}return!0}function Gu(e,n,s){Fo(e)&&s.delete(n)}function Fv(){Ma=!1,Ln!==null&&Fo(Ln)&&(Ln=null),Mn!==null&&Fo(Mn)&&(Mn=null),Dn!==null&&Fo(Dn)&&(Dn=null),Es.forEach(Gu),Ns.forEach(Gu)}function Ps(e,n){e.blockedOn===n&&(e.blockedOn=null,Ma||(Ma=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Fv)))}function Rs(e){function n(u){return Ps(u,e)}if(0<Do.length){Ps(Do[0],e);for(var s=1;s<Do.length;s++){var l=Do[s];l.blockedOn===e&&(l.blockedOn=null)}}for(Ln!==null&&Ps(Ln,e),Mn!==null&&Ps(Mn,e),Dn!==null&&Ps(Dn,e),Es.forEach(n),Ns.forEach(n),s=0;s<Fn.length;s++)l=Fn[s],l.blockedOn===e&&(l.blockedOn=null);for(;0<Fn.length&&(s=Fn[0],s.blockedOn===null);)Ku(s),s.blockedOn===null&&Fn.shift()}var _r=T.ReactCurrentBatchConfig,zo=!0;function zv(e,n,s,l){var u=Ne,f=_r.transition;_r.transition=null;try{Ne=1,Da(e,n,s,l)}finally{Ne=u,_r.transition=f}}function $v(e,n,s,l){var u=Ne,f=_r.transition;_r.transition=null;try{Ne=4,Da(e,n,s,l)}finally{Ne=u,_r.transition=f}}function Da(e,n,s,l){if(zo){var u=Fa(e,n,s,l);if(u===null)tl(e,n,l,$o,s),Yu(e,l);else if(Dv(u,e,n,s,l))l.stopPropagation();else if(Yu(e,l),n&4&&-1<Mv.indexOf(e)){for(;u!==null;){var f=Ws(u);if(f!==null&&Hu(f),f=Fa(e,n,s,l),f===null&&tl(e,n,l,$o,s),f===u)break;u=f}u!==null&&l.stopPropagation()}else tl(e,n,l,null,s)}}var $o=null;function Fa(e,n,s,l){if($o=null,e=Or(l),e=dr(e),e!==null)if(n=ur(e),n===null)e=null;else if(s=n.tag,s===13){if(e=_u(n),e!==null)return e;e=null}else if(s===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return $o=e,null}function Ju(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(Nv()){case Aa:return 1;case $u:return 4;case Oo:case Tv:return 16;case Bu:return 536870912;default:return 16}default:return 16}}var zn=null,za=null,Bo=null;function Xu(){if(Bo)return Bo;var e,n=za,s=n.length,l,u="value"in zn?zn.value:zn.textContent,f=u.length;for(e=0;e<s&&n[e]===u[e];e++);var y=s-e;for(l=1;l<=y&&n[s-l]===u[f-l];l++);return Bo=u.slice(e,1<l?1-l:void 0)}function Wo(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Uo(){return!0}function Zu(){return!1}function bt(e){function n(s,l,u,f,y){this._reactName=s,this._targetInst=u,this.type=l,this.nativeEvent=f,this.target=y,this.currentTarget=null;for(var N in e)e.hasOwnProperty(N)&&(s=e[N],this[N]=s?s(f):f[N]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Uo:Zu,this.isPropagationStopped=Zu,this}return q(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Uo)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Uo)},persist:function(){},isPersistent:Uo}),n}var Lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$a=bt(Lr),As=q({},Lr,{view:0,detail:0}),Bv=bt(As),Ba,Wa,Os,Ho=q({},As,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ha,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!==Os&&(Os&&e.type==="mousemove"?(Ba=e.screenX-Os.screenX,Wa=e.screenY-Os.screenY):Wa=Ba=0,Os=e),Ba)},movementY:function(e){return"movementY"in e?e.movementY:Wa}}),ed=bt(Ho),Wv=q({},Ho,{dataTransfer:0}),Uv=bt(Wv),Hv=q({},As,{relatedTarget:0}),Ua=bt(Hv),Vv=q({},Lr,{animationName:0,elapsedTime:0,pseudoElement:0}),Qv=bt(Vv),qv=q({},Lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yv=bt(qv),Kv=q({},Lr,{data:0}),td=bt(Kv),Gv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jv={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"},Xv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zv(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Xv[e])?!!n[e]:!1}function Ha(){return Zv}var ey=q({},As,{key:function(e){if(e.key){var n=Gv[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Wo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ha,charCode:function(e){return e.type==="keypress"?Wo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ty=bt(ey),ny=q({},Ho,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nd=bt(ny),ry=q({},As,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ha}),sy=bt(ry),oy=q({},Lr,{propertyName:0,elapsedTime:0,pseudoElement:0}),iy=bt(oy),ay=q({},Ho,{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}),ly=bt(ay),cy=[9,13,27,32],Va=p&&"CompositionEvent"in window,Is=null;p&&"documentMode"in document&&(Is=document.documentMode);var uy=p&&"TextEvent"in window&&!Is,rd=p&&(!Va||Is&&8<Is&&11>=Is),sd=" ",od=!1;function id(e,n){switch(e){case"keyup":return cy.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ad(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mr=!1;function dy(e,n){switch(e){case"compositionend":return ad(n);case"keypress":return n.which!==32?null:(od=!0,sd);case"textInput":return e=n.data,e===sd&&od?null:e;default:return null}}function fy(e,n){if(Mr)return e==="compositionend"||!Va&&id(e,n)?(e=Xu(),Bo=za=zn=null,Mr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return rd&&n.locale!=="ko"?null:n.data;default:return null}}var hy={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 ld(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!hy[e.type]:n==="textarea"}function cd(e,n,s,l){Po(l),n=Ko(n,"onChange"),0<n.length&&(s=new $a("onChange","change",null,s,l),e.push({event:s,listeners:n}))}var _s=null,Ls=null;function py(e){Nd(e,0)}function Vo(e){var n=Br(e);if(On(n))return e}function my(e,n){if(e==="change")return n}var ud=!1;if(p){var Qa;if(p){var qa="oninput"in document;if(!qa){var dd=document.createElement("div");dd.setAttribute("oninput","return;"),qa=typeof dd.oninput=="function"}Qa=qa}else Qa=!1;ud=Qa&&(!document.documentMode||9<document.documentMode)}function fd(){_s&&(_s.detachEvent("onpropertychange",hd),Ls=_s=null)}function hd(e){if(e.propertyName==="value"&&Vo(Ls)){var n=[];cd(n,Ls,e,Or(e)),ft(py,n)}}function gy(e,n,s){e==="focusin"?(fd(),_s=n,Ls=s,_s.attachEvent("onpropertychange",hd)):e==="focusout"&&fd()}function vy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vo(Ls)}function yy(e,n){if(e==="click")return Vo(n)}function xy(e,n){if(e==="input"||e==="change")return Vo(n)}function wy(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var zt=typeof Object.is=="function"?Object.is:wy;function Ms(e,n){if(zt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),l=Object.keys(n);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var u=s[l];if(!m.call(n,u)||!zt(e[u],n[u]))return!1}return!0}function pd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function md(e,n){var s=pd(e);e=0;for(var l;s;){if(s.nodeType===3){if(l=e+s.textContent.length,e<=n&&l>=n)return{node:s,offset:n-e};e=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=pd(s)}}function gd(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?gd(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function vd(){for(var e=window,n=Tt();n instanceof e.HTMLIFrameElement;){try{var s=typeof n.contentWindow.location.href=="string"}catch{s=!1}if(s)e=n.contentWindow;else break;n=Tt(e.document)}return n}function Ya(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function by(e){var n=vd(),s=e.focusedElem,l=e.selectionRange;if(n!==s&&s&&s.ownerDocument&&gd(s.ownerDocument.documentElement,s)){if(l!==null&&Ya(s)){if(n=l.start,e=l.end,e===void 0&&(e=n),"selectionStart"in s)s.selectionStart=n,s.selectionEnd=Math.min(e,s.value.length);else if(e=(n=s.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var u=s.textContent.length,f=Math.min(l.start,u);l=l.end===void 0?f:Math.min(l.end,u),!e.extend&&f>l&&(u=l,l=f,f=u),u=md(s,f);var y=md(s,l);u&&y&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==y.node||e.focusOffset!==y.offset)&&(n=n.createRange(),n.setStart(u.node,u.offset),e.removeAllRanges(),f>l?(e.addRange(n),e.extend(y.node,y.offset)):(n.setEnd(y.node,y.offset),e.addRange(n)))}}for(n=[],e=s;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<n.length;s++)e=n[s],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Sy=p&&"documentMode"in document&&11>=document.documentMode,Dr=null,Ka=null,Ds=null,Ga=!1;function yd(e,n,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Ga||Dr==null||Dr!==Tt(l)||(l=Dr,"selectionStart"in l&&Ya(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ds&&Ms(Ds,l)||(Ds=l,l=Ko(Ka,"onSelect"),0<l.length&&(n=new $a("onSelect","select",null,n,s),e.push({event:n,listeners:l}),n.target=Dr)))}function Qo(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}var Fr={animationend:Qo("Animation","AnimationEnd"),animationiteration:Qo("Animation","AnimationIteration"),animationstart:Qo("Animation","AnimationStart"),transitionend:Qo("Transition","TransitionEnd")},Ja={},xd={};p&&(xd=document.createElement("div").style,"AnimationEvent"in window||(delete Fr.animationend.animation,delete Fr.animationiteration.animation,delete Fr.animationstart.animation),"TransitionEvent"in window||delete Fr.transitionend.transition);function qo(e){if(Ja[e])return Ja[e];if(!Fr[e])return e;var n=Fr[e],s;for(s in n)if(n.hasOwnProperty(s)&&s in xd)return Ja[e]=n[s];return e}var wd=qo("animationend"),bd=qo("animationiteration"),Sd=qo("animationstart"),jd=qo("transitionend"),Cd=new Map,kd="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 $n(e,n){Cd.set(e,n),d(n,[e])}for(var Xa=0;Xa<kd.length;Xa++){var Za=kd[Xa],jy=Za.toLowerCase(),Cy=Za[0].toUpperCase()+Za.slice(1);$n(jy,"on"+Cy)}$n(wd,"onAnimationEnd"),$n(bd,"onAnimationIteration"),$n(Sd,"onAnimationStart"),$n("dblclick","onDoubleClick"),$n("focusin","onFocus"),$n("focusout","onBlur"),$n(jd,"onTransitionEnd"),h("onMouseEnter",["mouseout","mouseover"]),h("onMouseLeave",["mouseout","mouseover"]),h("onPointerEnter",["pointerout","pointerover"]),h("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fs="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(" "),ky=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fs));function Ed(e,n,s){var l=e.type||"unknown-event";e.currentTarget=s,jv(l,n,void 0,e),e.currentTarget=null}function Nd(e,n){n=(n&4)!==0;for(var s=0;s<e.length;s++){var l=e[s],u=l.event;l=l.listeners;e:{var f=void 0;if(n)for(var y=l.length-1;0<=y;y--){var N=l[y],A=N.instance,F=N.currentTarget;if(N=N.listener,A!==f&&u.isPropagationStopped())break e;Ed(u,N,F),f=A}else for(y=0;y<l.length;y++){if(N=l[y],A=N.instance,F=N.currentTarget,N=N.listener,A!==f&&u.isPropagationStopped())break e;Ed(u,N,F),f=A}}}if(Ao)throw e=Ra,Ao=!1,Ra=null,e}function Re(e,n){var s=n[al];s===void 0&&(s=n[al]=new Set);var l=e+"__bubble";s.has(l)||(Td(n,e,2,!1),s.add(l))}function el(e,n,s){var l=0;n&&(l|=4),Td(s,e,l,n)}var Yo="_reactListening"+Math.random().toString(36).slice(2);function zs(e){if(!e[Yo]){e[Yo]=!0,a.forEach(function(s){s!=="selectionchange"&&(ky.has(s)||el(s,!1,e),el(s,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Yo]||(n[Yo]=!0,el("selectionchange",!1,n))}}function Td(e,n,s,l){switch(Ju(n)){case 1:var u=zv;break;case 4:u=$v;break;default:u=Da}s=u.bind(null,n,s,e),u=void 0,!Dt||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(n,s,{capture:!0,passive:u}):e.addEventListener(n,s,!0):u!==void 0?e.addEventListener(n,s,{passive:u}):e.addEventListener(n,s,!1)}function tl(e,n,s,l,u){var f=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var y=l.tag;if(y===3||y===4){var N=l.stateNode.containerInfo;if(N===u||N.nodeType===8&&N.parentNode===u)break;if(y===4)for(y=l.return;y!==null;){var A=y.tag;if((A===3||A===4)&&(A=y.stateNode.containerInfo,A===u||A.nodeType===8&&A.parentNode===u))return;y=y.return}for(;N!==null;){if(y=dr(N),y===null)return;if(A=y.tag,A===5||A===6){l=f=y;continue e}N=N.parentNode}}l=l.return}ft(function(){var F=f,V=Or(s),Q=[];e:{var H=Cd.get(e);if(H!==void 0){var ne=$a,oe=e;switch(e){case"keypress":if(Wo(s)===0)break e;case"keydown":case"keyup":ne=ty;break;case"focusin":oe="focus",ne=Ua;break;case"focusout":oe="blur",ne=Ua;break;case"beforeblur":case"afterblur":ne=Ua;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=ed;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=Uv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=sy;break;case wd:case bd:case Sd:ne=Qv;break;case jd:ne=iy;break;case"scroll":ne=Bv;break;case"wheel":ne=ly;break;case"copy":case"cut":case"paste":ne=Yv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=nd}var ae=(n&4)!==0,Be=!ae&&e==="scroll",L=ae?H!==null?H+"Capture":null:H;ae=[];for(var O=F,M;O!==null;){M=O;var G=M.stateNode;if(M.tag===5&&G!==null&&(M=G,L!==null&&(G=ht(O,L),G!=null&&ae.push($s(O,G,M)))),Be)break;O=O.return}0<ae.length&&(H=new ne(H,oe,null,s,V),Q.push({event:H,listeners:ae}))}}if((n&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",ne=e==="mouseout"||e==="pointerout",H&&s!==Ss&&(oe=s.relatedTarget||s.fromElement)&&(dr(oe)||oe[xn]))break e;if((ne||H)&&(H=V.window===V?V:(H=V.ownerDocument)?H.defaultView||H.parentWindow:window,ne?(oe=s.relatedTarget||s.toElement,ne=F,oe=oe?dr(oe):null,oe!==null&&(Be=ur(oe),oe!==Be||oe.tag!==5&&oe.tag!==6)&&(oe=null)):(ne=null,oe=F),ne!==oe)){if(ae=ed,G="onMouseLeave",L="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(ae=nd,G="onPointerLeave",L="onPointerEnter",O="pointer"),Be=ne==null?H:Br(ne),M=oe==null?H:Br(oe),H=new ae(G,O+"leave",ne,s,V),H.target=Be,H.relatedTarget=M,G=null,dr(V)===F&&(ae=new ae(L,O+"enter",oe,s,V),ae.target=M,ae.relatedTarget=Be,G=ae),Be=G,ne&&oe)t:{for(ae=ne,L=oe,O=0,M=ae;M;M=zr(M))O++;for(M=0,G=L;G;G=zr(G))M++;for(;0<O-M;)ae=zr(ae),O--;for(;0<M-O;)L=zr(L),M--;for(;O--;){if(ae===L||L!==null&&ae===L.alternate)break t;ae=zr(ae),L=zr(L)}ae=null}else ae=null;ne!==null&&Pd(Q,H,ne,ae,!1),oe!==null&&Be!==null&&Pd(Q,Be,oe,ae,!0)}}e:{if(H=F?Br(F):window,ne=H.nodeName&&H.nodeName.toLowerCase(),ne==="select"||ne==="input"&&H.type==="file")var le=my;else if(ld(H))if(ud)le=xy;else{le=vy;var de=gy}else(ne=H.nodeName)&&ne.toLowerCase()==="input"&&(H.type==="checkbox"||H.type==="radio")&&(le=yy);if(le&&(le=le(e,F))){cd(Q,le,s,V);break e}de&&de(e,H,F),e==="focusout"&&(de=H._wrapperState)&&de.controlled&&H.type==="number"&&ws(H,"number",H.value)}switch(de=F?Br(F):window,e){case"focusin":(ld(de)||de.contentEditable==="true")&&(Dr=de,Ka=F,Ds=null);break;case"focusout":Ds=Ka=Dr=null;break;case"mousedown":Ga=!0;break;case"contextmenu":case"mouseup":case"dragend":Ga=!1,yd(Q,s,V);break;case"selectionchange":if(Sy)break;case"keydown":case"keyup":yd(Q,s,V)}var fe;if(Va)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else Mr?id(e,s)&&(ge="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(ge="onCompositionStart");ge&&(rd&&s.locale!=="ko"&&(Mr||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&Mr&&(fe=Xu()):(zn=V,za="value"in zn?zn.value:zn.textContent,Mr=!0)),de=Ko(F,ge),0<de.length&&(ge=new td(ge,e,null,s,V),Q.push({event:ge,listeners:de}),fe?ge.data=fe:(fe=ad(s),fe!==null&&(ge.data=fe)))),(fe=uy?dy(e,s):fy(e,s))&&(F=Ko(F,"onBeforeInput"),0<F.length&&(V=new td("onBeforeInput","beforeinput",null,s,V),Q.push({event:V,listeners:F}),V.data=fe))}Nd(Q,n)})}function $s(e,n,s){return{instance:e,listener:n,currentTarget:s}}function Ko(e,n){for(var s=n+"Capture",l=[];e!==null;){var u=e,f=u.stateNode;u.tag===5&&f!==null&&(u=f,f=ht(e,s),f!=null&&l.unshift($s(e,f,u)),f=ht(e,n),f!=null&&l.push($s(e,f,u))),e=e.return}return l}function zr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Pd(e,n,s,l,u){for(var f=n._reactName,y=[];s!==null&&s!==l;){var N=s,A=N.alternate,F=N.stateNode;if(A!==null&&A===l)break;N.tag===5&&F!==null&&(N=F,u?(A=ht(s,f),A!=null&&y.unshift($s(s,A,N))):u||(A=ht(s,f),A!=null&&y.push($s(s,A,N)))),s=s.return}y.length!==0&&e.push({event:n,listeners:y})}var Ey=/\r\n?/g,Ny=/\u0000|\uFFFD/g;function Rd(e){return(typeof e=="string"?e:""+e).replace(Ey,` 6`).replace(Ny,"")}function Go(e,n,s){if(n=Rd(n),Rd(e)!==n&&s)throw Error(o(425))}function Jo(){}var nl=null,rl=null;function sl(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var ol=typeof setTimeout=="function"?setTimeout:void 0,Ty=typeof clearTimeout=="function"?clearTimeout:void 0,Ad=typeof Promise=="function"?Promise:void 0,Py=typeof queueMicrotask=="function"?queueMicrotask:typeof Ad<"u"?function(e){return Ad.resolve(null).then(e).catch(Ry)}:ol;function Ry(e){setTimeout(function(){throw e})}function il(e,n){var s=n,l=0;do{var u=s.nextSibling;if(e.removeChild(s),u&&u.nodeType===8)if(s=u.data,s==="/$"){if(l===0){e.removeChild(u),Rs(n);return}l--}else s!=="$"&&s!=="$?"&&s!=="$!"||l++;s=u}while(s);Rs(n)}function Bn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function Od(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"){if(n===0)return e;n--}else s==="/$"&&n++}e=e.previousSibling}return null}var $r=Math.random().toString(36).slice(2),on="__reactFiber$"+$r,Bs="__reactProps$"+$r,xn="__reactContainer$"+$r,al="__reactEvents$"+$r,Ay="__reactListeners$"+$r,Oy="__reactHandles$"+$r;function dr(e){var n=e[on];if(n)return n;for(var s=e.parentNode;s;){if(n=s[xn]||s[on]){if(s=n.alternate,n.child!==null||s!==null&&s.child!==null)for(e=Od(e);e!==null;){if(s=e[on])return s;e=Od(e)}return n}e=s,s=e.parentNode}return null}function Ws(e){return e=e[on]||e[xn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Br(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Xo(e){return e[Bs]||null}var ll=[],Wr=-1;function Wn(e){return{current:e}}function Ae(e){0>Wr||(e.current=ll[Wr],ll[Wr]=null,Wr--)}function Pe(e,n){Wr++,ll[Wr]=e.current,e.current=n}var Un={},tt=Wn(Un),pt=Wn(!1),fr=Un;function Ur(e,n){var s=e.type.contextTypes;if(!s)return Un;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===n)return l.__reactInternalMemoizedMaskedChildContext;var u={},f;for(f in s)u[f]=n[f];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=u),u}function mt(e){return e=e.childContextTypes,e!=null}function Zo(){Ae(pt),Ae(tt)}function Id(e,n,s){if(tt.current!==Un)throw Error(o(168));Pe(tt,n),Pe(pt,s)}function _d(e,n,s){var l=e.stateNode;if(n=n.childContextTypes,typeof l.getChildContext!="function")return s;l=l.getChildContext();for(var u in l)if(!(u in n))throw Error(o(108,ue(e)||"Unknown",u));return q({},s,l)}function ei(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Un,fr=tt.current,Pe(tt,e),Pe(pt,pt.current),!0}function Ld(e,n,s){var l=e.stateNode;if(!l)throw Error(o(169));s?(e=_d(e,n,fr),l.__reactInternalMemoizedMergedChildContext=e,Ae(pt),Ae(tt),Pe(tt,e)):Ae(pt),Pe(pt,s)}var wn=null,ti=!1,cl=!1;function Md(e){wn===null?wn=[e]:wn.push(e)}function Iy(e){ti=!0,Md(e)}function Hn(){if(!cl&&wn!==null){cl=!0;var e=0,n=Ne;try{var s=wn;for(Ne=1;e<s.length;e++){var l=s[e];do l=l(!0);while(l!==null)}wn=null,ti=!1}catch(u){throw wn!==null&&(wn=wn.slice(e+1)),Fu(Aa,Hn),u}finally{Ne=n,cl=!1}}return null}
vendor: 4,774 bytes, line 6
6var Hr=[],Vr=0,ni=null,ri=0,Rt=[],At=0,hr=null,bn=1,Sn="";function pr(e,n){Hr[Vr++]=ri,Hr[Vr++]=ni,ni=e,ri=n}function Dd(e,n,s){Rt[At++]=bn,Rt[At++]=Sn,Rt[At++]=hr,hr=e;var l=bn;e=Sn;var u=32-Ft(l)-1;l&=~(1<<u),s+=1;var f=32-Ft(n)+u;if(30<f){var y=u-u%5;f=(l&(1<<y)-1).toString(32),l>>=y,u-=y,bn=1<<32-Ft(n)+u|s<<u|l,Sn=f+e}else bn=1<<f|s<<u|l,Sn=e}function ul(e){e.return!==null&&(pr(e,1),Dd(e,1,0))}function dl(e){for(;e===ni;)ni=Hr[--Vr],Hr[Vr]=null,ri=Hr[--Vr],Hr[Vr]=null;for(;e===hr;)hr=Rt[--At],Rt[At]=null,Sn=Rt[--At],Rt[At]=null,bn=Rt[--At],Rt[At]=null}var St=null,jt=null,Ie=!1,$t=null;function Fd(e,n){var s=Lt(5,null,null,0);s.elementType="DELETED",s.stateNode=n,s.return=e,n=e.deletions,n===null?(e.deletions=[s],e.flags|=16):n.push(s)}function zd(e,n){switch(e.tag){case 5:var s=e.type;return n=n.nodeType!==1||s.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,St=e,jt=Bn(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,St=e,jt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(s=hr!==null?{id:bn,overflow:Sn}:null,e.memoizedState={dehydrated:n,treeContext:s,retryLane:1073741824},s=Lt(18,null,null,0),s.stateNode=n,s.return=e,e.child=s,St=e,jt=null,!0):!1;default:return!1}}function fl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function hl(e){if(Ie){var n=jt;if(n){var s=n;if(!zd(e,n)){if(fl(e))throw Error(o(418));n=Bn(s.nextSibling);var l=St;n&&zd(e,n)?Fd(l,s):(e.flags=e.flags&-4097|2,Ie=!1,St=e)}}else{if(fl(e))throw Error(o(418));e.flags=e.flags&-4097|2,Ie=!1,St=e}}}function $d(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;St=e}function si(e){if(e!==St)return!1;if(!Ie)return $d(e),Ie=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!sl(e.type,e.memoizedProps)),n&&(n=jt)){if(fl(e))throw Bd(),Error(o(418));for(;n;)Fd(e,n),n=Bn(n.nextSibling)}if($d(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"){if(n===0){jt=Bn(e.nextSibling);break e}n--}else s!=="$"&&s!=="$!"&&s!=="$?"||n++}e=e.nextSibling}jt=null}}else jt=St?Bn(e.stateNode.nextSibling):null;return!0}function Bd(){for(var e=jt;e;)e=Bn(e.nextSibling)}function Qr(){jt=St=null,Ie=!1}function pl(e){$t===null?$t=[e]:$t.push(e)}var _y=T.ReactCurrentBatchConfig;function Us(e,n,s){if(e=s.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(o(309));var l=s.stateNode}if(!l)throw Error(o(147,e));var u=l,f=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===f?n.ref:(n=function(y){var N=u.refs;y===null?delete N[f]:N[f]=y},n._stringRef=f,n)}if(typeof e!="string")throw Error(o(284));if(!s._owner)throw Error(o(290,e))}return e}function oi(e,n){throw e=Object.prototype.toString.call(n),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Wd(e){var n=e._init;return n(e._payload)}function Ud(e){function n(L,O){if(e){var M=L.deletions;M===null?(L.deletions=[O],L.flags|=16):M.push(O)}}function s(L,O){if(!e)return null;for(;O!==null;)n(L,O),O=O.sibling;return null}function l(L,O){for(L=new Map;O!==null;)O.key!==null?L.set(O.key,O):L.set(O.index,O),O=O.sibling;return L}function u(L,O){return L=Xn(L,O),L.index=0,L.sibling=null,L}function f(L,O,M){return L.index=M,e?(M=L.alternate,M!==null?(M=M.index,M<O?(L.flags|=2,O):M):(L.flags|=2,O)):(L.flags|=1048576,O)}function y(L){return e&&L.alternate===null&&(L.flags|=2),L}function N(L,O,M,G){return O===null||O.tag!==6?(O=oc(M,L.mode,G),O.return=L,O):(O=u(O,M),O.return=L,O)}function A(L,O,M,G){var le=M.type;return le===z?V(L,O,M.props.children,G,M.key):O!==null&&(O.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===ce&&Wd(le)===O.type)?(G=u(O,M.props),G.ref=Us(L,O,M),G.return=L,G):(G=Pi(M.type,M.key,M.props,null,L.mode,G),G.ref=Us(L,O,M),G.return=L,G)}function F(L,O,M,G){return O===null||O.tag!==4||O.stateNode.containerInfo!==M.containerInfo||O.stateNode.implementation!==M.implementation?(O=ic(M,L.mode,G),O.return=L,O):(O=u(O,M.children||[]),O.return=L,O)}function V(L,O,M,G,le){return O===null||O.tag!==7?(O=Sr(M,L.mode,G,le),O.return=L,O):(O=u(O,M),O.return=L,O)}function Q(L,O,M){if(typeof O=="string"&&O!==""||typeof O=="number")return O=oc(""+O,L.mode,M),O.return=L,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case _:return M=Pi(O.type,O.key,O.props,null,L.mode,M),M.ref=Us(L,null,O),M.return=L,M;case D:return O=ic(O,L.mode,M),O.return=L,O;case ce:var G=O._init;return Q(L,G(O._payload),M)}if(In(O)||W(O))return O=Sr(O,L.mode,M,null),O.return=L,O;oi(L,O)}return null}function H(L,O,M,G){var le=O!==null?O.key:null;
vendor: 10,920 bytes, line 6
6if(typeof M=="string"&&M!==""||typeof M=="number")return le!==null?null:N(L,O,""+M,G);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case _:return M.key===le?A(L,O,M,G):null;case D:return M.key===le?F(L,O,M,G):null;case ce:return le=M._init,H(L,O,le(M._payload),G)}if(In(M)||W(M))return le!==null?null:V(L,O,M,G,null);oi(L,M)}return null}function ne(L,O,M,G,le){if(typeof G=="string"&&G!==""||typeof G=="number")return L=L.get(M)||null,N(O,L,""+G,le);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case _:return L=L.get(G.key===null?M:G.key)||null,A(O,L,G,le);case D:return L=L.get(G.key===null?M:G.key)||null,F(O,L,G,le);case ce:var de=G._init;return ne(L,O,M,de(G._payload),le)}if(In(G)||W(G))return L=L.get(M)||null,V(O,L,G,le,null);oi(O,G)}return null}function oe(L,O,M,G){for(var le=null,de=null,fe=O,ge=O=0,Ke=null;fe!==null&&ge<M.length;ge++){fe.index>ge?(Ke=fe,fe=null):Ke=fe.sibling;var ke=H(L,fe,M[ge],G);if(ke===null){fe===null&&(fe=Ke);break}e&&fe&&ke.alternate===null&&n(L,fe),O=f(ke,O,ge),de===null?le=ke:de.sibling=ke,de=ke,fe=Ke}if(ge===M.length)return s(L,fe),Ie&&pr(L,ge),le;if(fe===null){for(;ge<M.length;ge++)fe=Q(L,M[ge],G),fe!==null&&(O=f(fe,O,ge),de===null?le=fe:de.sibling=fe,de=fe);return Ie&&pr(L,ge),le}for(fe=l(L,fe);ge<M.length;ge++)Ke=ne(fe,L,ge,M[ge],G),Ke!==null&&(e&&Ke.alternate!==null&&fe.delete(Ke.key===null?ge:Ke.key),O=f(Ke,O,ge),de===null?le=Ke:de.sibling=Ke,de=Ke);return e&&fe.forEach(function(Zn){return n(L,Zn)}),Ie&&pr(L,ge),le}function ae(L,O,M,G){var le=W(M);if(typeof le!="function")throw Error(o(150));if(M=le.call(M),M==null)throw Error(o(151));for(var de=le=null,fe=O,ge=O=0,Ke=null,ke=M.next();fe!==null&&!ke.done;ge++,ke=M.next()){fe.index>ge?(Ke=fe,fe=null):Ke=fe.sibling;var Zn=H(L,fe,ke.value,G);if(Zn===null){fe===null&&(fe=Ke);break}e&&fe&&Zn.alternate===null&&n(L,fe),O=f(Zn,O,ge),de===null?le=Zn:de.sibling=Zn,de=Zn,fe=Ke}if(ke.done)return s(L,fe),Ie&&pr(L,ge),le;if(fe===null){for(;!ke.done;ge++,ke=M.next())ke=Q(L,ke.value,G),ke!==null&&(O=f(ke,O,ge),de===null?le=ke:de.sibling=ke,de=ke);return Ie&&pr(L,ge),le}for(fe=l(L,fe);!ke.done;ge++,ke=M.next())ke=ne(fe,L,ge,ke.value,G),ke!==null&&(e&&ke.alternate!==null&&fe.delete(ke.key===null?ge:ke.key),O=f(ke,O,ge),de===null?le=ke:de.sibling=ke,de=ke);return e&&fe.forEach(function(hx){return n(L,hx)}),Ie&&pr(L,ge),le}function Be(L,O,M,G){if(typeof M=="object"&&M!==null&&M.type===z&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case _:e:{for(var le=M.key,de=O;de!==null;){if(de.key===le){if(le=M.type,le===z){if(de.tag===7){s(L,de.sibling),O=u(de,M.props.children),O.return=L,L=O;break e}}else if(de.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===ce&&Wd(le)===de.type){s(L,de.sibling),O=u(de,M.props),O.ref=Us(L,de,M),O.return=L,L=O;break e}s(L,de);break}else n(L,de);de=de.sibling}M.type===z?(O=Sr(M.props.children,L.mode,G,M.key),O.return=L,L=O):(G=Pi(M.type,M.key,M.props,null,L.mode,G),G.ref=Us(L,O,M),G.return=L,L=G)}return y(L);case D:e:{for(de=M.key;O!==null;){if(O.key===de)if(O.tag===4&&O.stateNode.containerInfo===M.containerInfo&&O.stateNode.implementation===M.implementation){s(L,O.sibling),O=u(O,M.children||[]),O.return=L,L=O;break e}else{s(L,O);break}else n(L,O);O=O.sibling}O=ic(M,L.mode,G),O.return=L,L=O}return y(L);case ce:return de=M._init,Be(L,O,de(M._payload),G)}if(In(M))return oe(L,O,M,G);if(W(M))return ae(L,O,M,G);oi(L,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,O!==null&&O.tag===6?(s(L,O.sibling),O=u(O,M),O.return=L,L=O):(s(L,O),O=oc(M,L.mode,G),O.return=L,L=O),y(L)):s(L,O)}return Be}var qr=Ud(!0),Hd=Ud(!1),ii=Wn(null),ai=null,Yr=null,ml=null;function gl(){ml=Yr=ai=null}function vl(e){var n=ii.current;Ae(ii),e._currentValue=n}function yl(e,n,s){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===s)break;e=e.return}}function Kr(e,n){ai=e,ml=Yr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(gt=!0),e.firstContext=null)}function Ot(e){var n=e._currentValue;if(ml!==e)if(e={context:e,memoizedValue:n,next:null},Yr===null){if(ai===null)throw Error(o(308));Yr=e,ai.dependencies={lanes:0,firstContext:e}}else Yr=Yr.next=e;return n}var mr=null;function xl(e){mr===null?mr=[e]:mr.push(e)}function Vd(e,n,s,l){var u=n.interleaved;return u===null?(s.next=s,xl(n)):(s.next=u.next,u.next=s),n.interleaved=s,jn(e,l)}function jn(e,n){e.lanes|=n;var s=e.alternate;for(s!==null&&(s.lanes|=n),s=e,e=e.return;e!==null;)e.childLanes|=n,s=e.alternate,s!==null&&(s.childLanes|=n),s=e,e=e.return;return s.tag===3?s.stateNode:null}var Vn=!1;function wl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qd(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Cn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Qn(e,n,s){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(je&2)!==0){var u=l.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),l.pending=n,jn(e,s)}return u=l.interleaved,u===null?(n.next=n,xl(l)):(n.next=u.next,u.next=n),l.interleaved=n,jn(e,s)}function li(e,n,s){if(n=n.updateQueue,n!==null&&(n=n.shared,(s&4194240)!==0)){var l=n.lanes;l&=e.pendingLanes,s|=l,n.lanes=s,_a(e,s)}}function qd(e,n){var s=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var u=null,f=null;if(s=s.firstBaseUpdate,s!==null){do{var y={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};f===null?u=f=y:f=f.next=y,s=s.next}while(s!==null);f===null?u=f=n:f=f.next=n}else u=f=n;s={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:l.shared,effects:l.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=n:e.next=n,s.lastBaseUpdate=n}function ci(e,n,s,l){var u=e.updateQueue;Vn=!1;var f=u.firstBaseUpdate,y=u.lastBaseUpdate,N=u.shared.pending;if(N!==null){u.shared.pending=null;var A=N,F=A.next;A.next=null,y===null?f=F:y.next=F,y=A;var V=e.alternate;V!==null&&(V=V.updateQueue,N=V.lastBaseUpdate,N!==y&&(N===null?V.firstBaseUpdate=F:N.next=F,V.lastBaseUpdate=A))}if(f!==null){var Q=u.baseState;y=0,V=F=A=null,N=f;do{var H=N.lane,ne=N.eventTime;if((l&H)===H){V!==null&&(V=V.next={eventTime:ne,lane:0,tag:N.tag,payload:N.payload,callback:N.callback,next:null});e:{var oe=e,ae=N;switch(H=n,ne=s,ae.tag){case 1:if(oe=ae.payload,typeof oe=="function"){Q=oe.call(ne,Q,H);break e}Q=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=ae.payload,H=typeof oe=="function"?oe.call(ne,Q,H):oe,H==null)break e;Q=q({},Q,H);break e;case 2:Vn=!0}}N.callback!==null&&N.lane!==0&&(e.flags|=64,H=u.effects,H===null?u.effects=[N]:H.push(N))}else ne={eventTime:ne,lane:H,tag:N.tag,payload:N.payload,callback:N.callback,next:null},V===null?(F=V=ne,A=Q):V=V.next=ne,y|=H;if(N=N.next,N===null){if(N=u.shared.pending,N===null)break;H=N,N=H.next,H.next=null,u.lastBaseUpdate=H,u.shared.pending=null}}while(!0);if(V===null&&(A=Q),u.baseState=A,u.firstBaseUpdate=F,u.lastBaseUpdate=V,n=u.shared.interleaved,n!==null){u=n;do y|=u.lane,u=u.next;while(u!==n)}else f===null&&(u.shared.lanes=0);yr|=y,e.lanes=y,e.memoizedState=Q}}function Yd(e,n,s){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var l=e[n],u=l.callback;if(u!==null){if(l.callback=null,l=s,typeof u!="function")throw Error(o(191,u));u.call(l)}}}var Hs={},an=Wn(Hs),Vs=Wn(Hs),Qs=Wn(Hs);function gr(e){if(e===Hs)throw Error(o(174));return e}function bl(e,n){switch(Pe(Qs,n),Pe(Vs,e),Pe(an,Hs),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Zt(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Zt(n,e)}Ae(an),Pe(an,n)}function Gr(){Ae(an),Ae(Vs),Ae(Qs)}function Kd(e){gr(Qs.current);var n=gr(an.current),s=Zt(n,e.type);n!==s&&(Pe(Vs,e),Pe(an,s))}function Sl(e){Vs.current===e&&(Ae(an),Ae(Vs))}var Le=Wn(0);function ui(e){for(var n=e;n!==null;){if(n.tag===13){var s=n.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var jl=[];function Cl(){for(var e=0;e<jl.length;e++)jl[e]._workInProgressVersionPrimary=null;jl.length=0}var di=T.ReactCurrentDispatcher,kl=T.ReactCurrentBatchConfig,vr=0,Me=null,Ve=null,qe=null,fi=!1,qs=!1,Ys=0,Ly=0;function nt(){throw Error(o(321))}function El(e,n){if(n===null)return!1;for(var s=0;s<n.length&&s<e.length;s++)if(!zt(e[s],n[s]))return!1;return!0}function Nl(e,n,s,l,u,f){if(vr=f,Me=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,di.current=e===null||e.memoizedState===null?zy:$y,e=s(l,u),qs){f=0;do{if(qs=!1,Ys=0,25<=f)throw Error(o(301));f+=1,qe=Ve=null,n.updateQueue=null,di.current=By,e=s(l,u)}while(qs)}if(di.current=mi,n=Ve!==null&&Ve.next!==null,vr=0,qe=Ve=Me=null,fi=!1,n)throw Error(o(300));return e}function Tl(){var e=Ys!==0;return Ys=0,e}function ln(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?Me.memoizedState=qe=e:qe=qe.next=e,qe}function It(){if(Ve===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var n=qe===null?Me.memoizedState:qe.next;if(n!==null)qe=n,Ve=e;else{if(e===null)throw Error(o(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},qe===null?Me.memoizedState=qe=e:qe=qe.next=e}return qe}function Ks(e,n){return typeof n=="function"?n(e):n}function Pl(e){var n=It(),s=n.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=e;var l=Ve,u=l.baseQueue,f=s.pending;if(f!==null){if(u!==null){var y=u.next;u.next=f.next,f.next=y}l.baseQueue=u=f,s.pending=null}if(u!==null){f=u.next,l=l.baseState;var N=y=null,A=null,F=f;do{var V=F.lane;if((vr&V)===V)A!==null&&(A=A.next={lane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),l=F.hasEagerState?F.eagerState:e(l,F.action);else{var Q={lane:V,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};A===null?(N=A=Q,y=l):A=A.next=Q,Me.lanes|=V,yr|=V}F=F.next}while(F!==null&&F!==f);A===null?y=l:A.next=N,zt(l,n.memoizedState)||(gt=!0),n.memoizedState=l,n.baseState=y,n.baseQueue=A,s.lastRenderedState=l}if(e=s.interleaved,e!==null){u=e;do f=u.lane,Me.lanes|=f,yr|=f,u=u.next;while(u!==e)}else u===null&&(s.lanes=0);return[n.memoizedState,s.dispatch]}function Rl(e){var n=It(),s=n.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=e;
vendor: 1,510 bytes, line 6
6var l=s.dispatch,u=s.pending,f=n.memoizedState;if(u!==null){s.pending=null;var y=u=u.next;do f=e(f,y.action),y=y.next;while(y!==u);zt(f,n.memoizedState)||(gt=!0),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),s.lastRenderedState=f}return[f,l]}function Gd(){}function Jd(e,n){var s=Me,l=It(),u=n(),f=!zt(l.memoizedState,u);if(f&&(l.memoizedState=u,gt=!0),l=l.queue,Al(ef.bind(null,s,l,e),[e]),l.getSnapshot!==n||f||qe!==null&&qe.memoizedState.tag&1){if(s.flags|=2048,Gs(9,Zd.bind(null,s,l,u,n),void 0,null),Ye===null)throw Error(o(349));(vr&30)!==0||Xd(s,n,u)}return u}function Xd(e,n,s){e.flags|=16384,e={getSnapshot:n,value:s},n=Me.updateQueue,n===null?(n={lastEffect:null,stores:null},Me.updateQueue=n,n.stores=[e]):(s=n.stores,s===null?n.stores=[e]:s.push(e))}function Zd(e,n,s,l){n.value=s,n.getSnapshot=l,tf(n)&&nf(e)}function ef(e,n,s){return s(function(){tf(n)&&nf(e)})}function tf(e){var n=e.getSnapshot;e=e.value;try{var s=n();return!zt(e,s)}catch{return!0}}function nf(e){var n=jn(e,1);n!==null&&Ht(n,e,1,-1)}function rf(e){var n=ln();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ks,lastRenderedState:e},n.queue=e,e=e.dispatch=Fy.bind(null,Me,e),[n.memoizedState,e]}function Gs(e,n,s,l){return e={tag:e,create:n,destroy:s,deps:l,next:null},n=Me.updateQueue,n===null?(n={lastEffect:null,stores:null},Me.updateQueue=n,n.lastEffect=e.next=e):(s=n.lastEffect,s===null?n.lastEffect=e.next=e:(l=s.next,
vendor: 9,003 bytes, lines 6-8
6s.next=e,e.next=l,n.lastEffect=e)),e}function sf(){return It().memoizedState}function hi(e,n,s,l){var u=ln();Me.flags|=e,u.memoizedState=Gs(1|n,s,void 0,l===void 0?null:l)}function pi(e,n,s,l){var u=It();l=l===void 0?null:l;var f=void 0;if(Ve!==null){var y=Ve.memoizedState;if(f=y.destroy,l!==null&&El(l,y.deps)){u.memoizedState=Gs(n,s,f,l);return}}Me.flags|=e,u.memoizedState=Gs(1|n,s,f,l)}function of(e,n){return hi(8390656,8,e,n)}function Al(e,n){return pi(2048,8,e,n)}function af(e,n){return pi(4,2,e,n)}function lf(e,n){return pi(4,4,e,n)}function cf(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function uf(e,n,s){return s=s!=null?s.concat([e]):null,pi(4,4,cf.bind(null,n,e),s)}function Ol(){}function df(e,n){var s=It();n=n===void 0?null:n;var l=s.memoizedState;return l!==null&&n!==null&&El(n,l[1])?l[0]:(s.memoizedState=[e,n],e)}function ff(e,n){var s=It();n=n===void 0?null:n;var l=s.memoizedState;return l!==null&&n!==null&&El(n,l[1])?l[0]:(e=e(),s.memoizedState=[e,n],e)}function hf(e,n,s){return(vr&21)===0?(e.baseState&&(e.baseState=!1,gt=!0),e.memoizedState=s):(zt(s,n)||(s=Wu(),Me.lanes|=s,yr|=s,e.baseState=!0),n)}function My(e,n){var s=Ne;Ne=s!==0&&4>s?s:4,e(!0);var l=kl.transition;kl.transition={};try{e(!1),n()}finally{Ne=s,kl.transition=l}}function pf(){return It().memoizedState}function Dy(e,n,s){var l=Gn(e);if(s={lane:l,action:s,hasEagerState:!1,eagerState:null,next:null},mf(e))gf(n,s);else if(s=Vd(e,n,s,l),s!==null){var u=lt();Ht(s,e,l,u),vf(s,n,l)}}function Fy(e,n,s){var l=Gn(e),u={lane:l,action:s,hasEagerState:!1,eagerState:null,next:null};if(mf(e))gf(n,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var y=n.lastRenderedState,N=f(y,s);if(u.hasEagerState=!0,u.eagerState=N,zt(N,y)){var A=n.interleaved;A===null?(u.next=u,xl(n)):(u.next=A.next,A.next=u),n.interleaved=u;return}}catch{}s=Vd(e,n,u,l),s!==null&&(u=lt(),Ht(s,e,l,u),vf(s,n,l))}}function mf(e){var n=e.alternate;return e===Me||n!==null&&n===Me}function gf(e,n){qs=fi=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function vf(e,n,s){if((s&4194240)!==0){var l=n.lanes;l&=e.pendingLanes,s|=l,n.lanes=s,_a(e,s)}}var mi={readContext:Ot,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useInsertionEffect:nt,useLayoutEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useMutableSource:nt,useSyncExternalStore:nt,useId:nt,unstable_isNewReconciler:!1},zy={readContext:Ot,useCallback:function(e,n){return ln().memoizedState=[e,n===void 0?null:n],e},useContext:Ot,useEffect:of,useImperativeHandle:function(e,n,s){return s=s!=null?s.concat([e]):null,hi(4194308,4,cf.bind(null,n,e),s)},useLayoutEffect:function(e,n){return hi(4194308,4,e,n)},useInsertionEffect:function(e,n){return hi(4,2,e,n)},useMemo:function(e,n){var s=ln();return n=n===void 0?null:n,e=e(),s.memoizedState=[e,n],e},useReducer:function(e,n,s){var l=ln();return n=s!==void 0?s(n):n,l.memoizedState=l.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=Dy.bind(null,Me,e),[l.memoizedState,e]},useRef:function(e){var n=ln();return e={current:e},n.memoizedState=e},useState:rf,useDebugValue:Ol,useDeferredValue:function(e){return ln().memoizedState=e},useTransition:function(){var e=rf(!1),n=e[0];return e=My.bind(null,e[1]),ln().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,s){var l=Me,u=ln();if(Ie){if(s===void 0)throw Error(o(407));s=s()}else{if(s=n(),Ye===null)throw Error(o(349));(vr&30)!==0||Xd(l,n,s)}u.memoizedState=s;var f={value:s,getSnapshot:n};return u.queue=f,of(ef.bind(null,l,f,e),[e]),l.flags|=2048,Gs(9,Zd.bind(null,l,f,s,n),void 0,null),s},useId:function(){var e=ln(),n=Ye.identifierPrefix;if(Ie){var s=Sn,l=bn;s=(l&~(1<<32-Ft(l)-1)).toString(32)+s,n=":"+n+"R"+s,s=Ys++,0<s&&(n+="H"+s.toString(32)),n+=":"}else s=Ly++,n=":"+n+"r"+s.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},$y={readContext:Ot,useCallback:df,useContext:Ot,useEffect:Al,useImperativeHandle:uf,useInsertionEffect:af,useLayoutEffect:lf,useMemo:ff,useReducer:Pl,useRef:sf,useState:function(){return Pl(Ks)},useDebugValue:Ol,useDeferredValue:function(e){var n=It();return hf(n,Ve.memoizedState,e)},useTransition:function(){var e=Pl(Ks)[0],n=It().memoizedState;return[e,n]},useMutableSource:Gd,useSyncExternalStore:Jd,useId:pf,unstable_isNewReconciler:!1},By={readContext:Ot,useCallback:df,useContext:Ot,useEffect:Al,useImperativeHandle:uf,useInsertionEffect:af,useLayoutEffect:lf,useMemo:ff,useReducer:Rl,useRef:sf,useState:function(){return Rl(Ks)},useDebugValue:Ol,useDeferredValue:function(e){var n=It();return Ve===null?n.memoizedState=e:hf(n,Ve.memoizedState,e)},useTransition:function(){var e=Rl(Ks)[0],n=It().memoizedState;return[e,n]},useMutableSource:Gd,useSyncExternalStore:Jd,useId:pf,unstable_isNewReconciler:!1};function Bt(e,n){if(e&&e.defaultProps){n=q({},n),e=e.defaultProps;for(var s in e)n[s]===void 0&&(n[s]=e[s]);return n}return n}function Il(e,n,s,l){n=e.memoizedState,s=s(l,n),s=s==null?n:q({},n,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var gi={isMounted:function(e){return(e=e._reactInternals)?ur(e)===e:!1},enqueueSetState:function(e,n,s){e=e._reactInternals;var l=lt(),u=Gn(e),f=Cn(l,u);f.payload=n,s!=null&&(f.callback=s),n=Qn(e,f,u),n!==null&&(Ht(n,e,u,l),li(n,e,u))},enqueueReplaceState:function(e,n,s){e=e._reactInternals;var l=lt(),u=Gn(e),f=Cn(l,u);f.tag=1,f.payload=n,s!=null&&(f.callback=s),n=Qn(e,f,u),n!==null&&(Ht(n,e,u,l),li(n,e,u))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var s=lt(),l=Gn(e),u=Cn(s,l);u.tag=2,n!=null&&(u.callback=n),n=Qn(e,u,l),n!==null&&(Ht(n,e,l,s),li(n,e,l))}};function yf(e,n,s,l,u,f,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,y):n.prototype&&n.prototype.isPureReactComponent?!Ms(s,l)||!Ms(u,f):!0}function xf(e,n,s){var l=!1,u=Un,f=n.contextType;return typeof f=="object"&&f!==null?f=Ot(f):(u=mt(n)?fr:tt.current,l=n.contextTypes,f=(l=l!=null)?Ur(e,u):Un),n=new n(s,f),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=gi,e.stateNode=n,n._reactInternals=e,l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=f),n}function wf(e,n,s,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,l),n.state!==e&&gi.enqueueReplaceState(n,n.state,null)}function _l(e,n,s,l){var u=e.stateNode;u.props=s,u.state=e.memoizedState,u.refs={},wl(e);var f=n.contextType;typeof f=="object"&&f!==null?u.context=Ot(f):(f=mt(n)?fr:tt.current,u.context=Ur(e,f)),u.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Il(e,n,f,s),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(n=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),n!==u.state&&gi.enqueueReplaceState(u,u.state,null),ci(e,s,u,l),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308)}function Jr(e,n){try{var s="",l=n;do s+=pe(l),l=l.return;while(l);var u=s}catch(f){u=` 7Error generating stack: `+f.message+` 8`+f.stack}return{value:e,source:n,stack:u,digest:null}}function Ll(e,n,s){return{value:e,source:null,stack:s??null,digest:n??null}}function Ml(e,n){try{console.error(n.value)}catch(s){setTimeout(function(){throw s})}}var Wy=typeof WeakMap=="function"?WeakMap:Map;function bf(e,n,s){s=Cn(-1,s),s.tag=3,s.payload={element:null};var l=n.value;return s.callback=function(){ji||(ji=!0,Jl=l),Ml(e,n)},s}function Sf(e,n,s){s=Cn(-1,s),s.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var u=n.value;s.payload=function(){return l(u)},s.callback=function(){Ml(e,n)}}var f=e.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(s.callback=function(){Ml(e,n),typeof l!="function"&&(Yn===null?Yn=new Set([this]):Yn.add(this));var y=n.stack;this.componentDidCatch(n.value,{componentStack:y!==null?y:""})}),s}function jf(e,n,s){var l=e.pingCache;if(l===null){l=e.pingCache=new Wy;var u=new Set;l.set(n,u)}else u=l.get(n),u===void 0&&(u=new Set,l.set(n,u));u.has(s)||(u.add(s),e=nx.bind(null,e,n,s),n.then(e,e))}function Cf(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function kf(e,n,s,l,u){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(n=Cn(-1,1),n.tag=2,Qn(s,n,1
vendor: 6,243 bytes, line 8
8))),s.lanes|=1),e):(e.flags|=65536,e.lanes=u,e)}var Uy=T.ReactCurrentOwner,gt=!1;function at(e,n,s,l){n.child=e===null?Hd(n,null,s,l):qr(n,e.child,s,l)}function Ef(e,n,s,l,u){s=s.render;var f=n.ref;return Kr(n,u),l=Nl(e,n,s,l,f,u),s=Tl(),e!==null&&!gt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~u,kn(e,n,u)):(Ie&&s&&ul(n),n.flags|=1,at(e,n,l,u),n.child)}function Nf(e,n,s,l,u){if(e===null){var f=s.type;return typeof f=="function"&&!sc(f)&&f.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(n.tag=15,n.type=f,Tf(e,n,f,l,u)):(e=Pi(s.type,null,l,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,(e.lanes&u)===0){var y=f.memoizedProps;if(s=s.compare,s=s!==null?s:Ms,s(y,l)&&e.ref===n.ref)return kn(e,n,u)}return n.flags|=1,e=Xn(f,l),e.ref=n.ref,e.return=n,n.child=e}function Tf(e,n,s,l,u){if(e!==null){var f=e.memoizedProps;if(Ms(f,l)&&e.ref===n.ref)if(gt=!1,n.pendingProps=l=f,(e.lanes&u)!==0)(e.flags&131072)!==0&&(gt=!0);else return n.lanes=e.lanes,kn(e,n,u)}return Dl(e,n,s,l,u)}function Pf(e,n,s){var l=n.pendingProps,u=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pe(Zr,Ct),Ct|=s;else{if((s&1073741824)===0)return e=f!==null?f.baseLanes|s:s,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Pe(Zr,Ct),Ct|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=f!==null?f.baseLanes:s,Pe(Zr,Ct),Ct|=l}else f!==null?(l=f.baseLanes|s,n.memoizedState=null):l=s,Pe(Zr,Ct),Ct|=l;return at(e,n,u,s),n.child}function Rf(e,n){var s=n.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(n.flags|=512,n.flags|=2097152)}function Dl(e,n,s,l,u){var f=mt(s)?fr:tt.current;return f=Ur(n,f),Kr(n,u),s=Nl(e,n,s,l,f,u),l=Tl(),e!==null&&!gt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~u,kn(e,n,u)):(Ie&&l&&ul(n),n.flags|=1,at(e,n,s,u),n.child)}function Af(e,n,s,l,u){if(mt(s)){var f=!0;ei(n)}else f=!1;if(Kr(n,u),n.stateNode===null)yi(e,n),xf(n,s,l),_l(n,s,l,u),l=!0;else if(e===null){var y=n.stateNode,N=n.memoizedProps;y.props=N;var A=y.context,F=s.contextType;typeof F=="object"&&F!==null?F=Ot(F):(F=mt(s)?fr:tt.current,F=Ur(n,F));var V=s.getDerivedStateFromProps,Q=typeof V=="function"||typeof y.getSnapshotBeforeUpdate=="function";Q||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(N!==l||A!==F)&&wf(n,y,l,F),Vn=!1;var H=n.memoizedState;y.state=H,ci(n,l,y,u),A=n.memoizedState,N!==l||H!==A||pt.current||Vn?(typeof V=="function"&&(Il(n,s,V,l),A=n.memoizedState),(N=Vn||yf(n,s,N,l,H,A,F))?(Q||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(n.flags|=4194308)):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=A),y.props=l,y.state=A,y.context=F,l=N):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{y=n.stateNode,Qd(e,n),N=n.memoizedProps,F=n.type===n.elementType?N:Bt(n.type,N),y.props=F,Q=n.pendingProps,H=y.context,A=s.contextType,typeof A=="object"&&A!==null?A=Ot(A):(A=mt(s)?fr:tt.current,A=Ur(n,A));var ne=s.getDerivedStateFromProps;(V=typeof ne=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(N!==Q||H!==A)&&wf(n,y,l,A),Vn=!1,H=n.memoizedState,y.state=H,ci(n,l,y,u);var oe=n.memoizedState;N!==Q||H!==oe||pt.current||Vn?(typeof ne=="function"&&(Il(n,s,ne,l),oe=n.memoizedState),(F=Vn||yf(n,s,F,l,H,oe,A)||!1)?(V||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(l,oe,A),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(l,oe,A)),typeof y.componentDidUpdate=="function"&&(n.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof y.componentDidUpdate!="function"||N===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||N===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=oe),y.props=l,y.state=oe,y.context=A,l=F):(typeof y.componentDidUpdate!="function"||N===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||N===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),l=!1)}return Fl(e,n,s,l,f,u)}function Fl(e,n,s,l,u,f){Rf(e,n);var y=(n.flags&128)!==0;if(!l&&!y)return u&&Ld(n,s,!1),kn(e,n,f);l=n.stateNode,Uy.current=n;var N=y&&typeof s.getDerivedStateFromError!="function"?null:l.render();return n.flags|=1,e!==null&&y?(n.child=qr(n,e.child,null,f),n.child=qr(n,null,N,f)):at(e,n,N,f),n.memoizedState=l.state,u&&Ld(n,s,!0),n.child}function Of(e){var n=e.stateNode;n.pendingContext?Id(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Id(e,n.context,!1),bl(e,n.containerInfo)}function If(e,n,s,l,u){return Qr(),pl(u),n.flags|=256,at(e,n,s,l),n.child}var zl={dehydrated:null,treeContext:null,retryLane:0};function $l(e){return{baseLanes:e,cachePool:null,transitions:null}}function _f(e,n,s){var l=n.pendingProps,u=Le.current,f=!1,y=(n.flags&128)!==0,N;if((N=y)||(N=e!==null&&e.memoizedState===null?!1:(u&2)!==0),N?(f=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(u|=1),Pe(Le,u&1),e===null)return hl(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(y=l.children,e=l.fallback,f?(l=n.mode,f=n.child,y={mode:"hidden",children:y},(l&1)===0&&f!==null?(f.childLanes=0,f.pendingProps=y):f=Ri(y,l,0,null),e=Sr(e,l,s,null),f.return=n,e.return=n,f.sibling=e,n.child=f,n.child.memoizedState=$l(s),n.memoizedState=zl,e):Bl(n,y));if(u=e.memoizedState,u!==null&&(N=u.dehydrated,N!==null))return Hy(e,n,y,l,N,u,s);if(f){f=l.fallback,y=n.mode,u=e.child,N=u.sibling;var A={mode:"hidden",children:l.children};return(y&1)===0&&n.child!==u?(l=n.child,l.childLanes=0,l.pendingProps=A,n.deleti
vendor: 8,072 bytes, line 8
8ons=null):(l=Xn(u,A),l.subtreeFlags=u.subtreeFlags&14680064),N!==null?f=Xn(N,f):(f=Sr(f,y,s,null),f.flags|=2),f.return=n,l.return=n,l.sibling=f,n.child=l,l=f,f=n.child,y=e.child.memoizedState,y=y===null?$l(s):{baseLanes:y.baseLanes|s,cachePool:null,transitions:y.transitions},f.memoizedState=y,f.childLanes=e.childLanes&~s,n.memoizedState=zl,l}return f=e.child,e=f.sibling,l=Xn(f,{mode:"visible",children:l.children}),(n.mode&1)===0&&(l.lanes=s),l.return=n,l.sibling=null,e!==null&&(s=n.deletions,s===null?(n.deletions=[e],n.flags|=16):s.push(e)),n.child=l,n.memoizedState=null,l}function Bl(e,n){return n=Ri({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function vi(e,n,s,l){return l!==null&&pl(l),qr(n,e.child,null,s),e=Bl(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Hy(e,n,s,l,u,f,y){if(s)return n.flags&256?(n.flags&=-257,l=Ll(Error(o(422))),vi(e,n,y,l)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(f=l.fallback,u=n.mode,l=Ri({mode:"visible",children:l.children},u,0,null),f=Sr(f,u,y,null),f.flags|=2,l.return=n,f.return=n,l.sibling=f,n.child=l,(n.mode&1)!==0&&qr(n,e.child,null,y),n.child.memoizedState=$l(y),n.memoizedState=zl,f);if((n.mode&1)===0)return vi(e,n,y,null);if(u.data==="$!"){if(l=u.nextSibling&&u.nextSibling.dataset,l)var N=l.dgst;return l=N,f=Error(o(419)),l=Ll(f,l,void 0),vi(e,n,y,l)}if(N=(y&e.childLanes)!==0,gt||N){if(l=Ye,l!==null){switch(y&-y){case 4:u=2;break;case 16:u=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:u=32;break;case 536870912:u=268435456;break;default:u=0}u=(u&(l.suspendedLanes|y))!==0?0:u,u!==0&&u!==f.retryLane&&(f.retryLane=u,jn(e,u),Ht(l,e,u,-1))}return rc(),l=Ll(Error(o(421))),vi(e,n,y,l)}return u.data==="$?"?(n.flags|=128,n.child=e.child,n=rx.bind(null,e),u._reactRetry=n,null):(e=f.treeContext,jt=Bn(u.nextSibling),St=n,Ie=!0,$t=null,e!==null&&(Rt[At++]=bn,Rt[At++]=Sn,Rt[At++]=hr,bn=e.id,Sn=e.overflow,hr=n),n=Bl(n,l.children),n.flags|=4096,n)}function Lf(e,n,s){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),yl(e.return,n,s)}function Wl(e,n,s,l,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:u}:(f.isBackwards=n,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=s,f.tailMode=u)}function Mf(e,n,s){var l=n.pendingProps,u=l.revealOrder,f=l.tail;if(at(e,n,l.children,s),l=Le.current,(l&2)!==0)l=l&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lf(e,s,n);else if(e.tag===19)Lf(e,s,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}if(Pe(Le,l),(n.mode&1)===0)n.memoizedState=null;else switch(u){case"forwards":for(s=n.child,u=null;s!==null;)e=s.alternate,e!==null&&ui(e)===null&&(u=s),s=s.sibling;s=u,s===null?(u=n.child,n.child=null):(u=s.sibling,s.sibling=null),Wl(n,!1,u,s,f);break;case"backwards":for(s=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&ui(e)===null){n.child=u;break}e=u.sibling,u.sibling=s,s=u,u=e}Wl(n,!0,s,null,f);break;case"together":Wl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function yi(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function kn(e,n,s){if(e!==null&&(n.dependencies=e.dependencies),yr|=n.lanes,(s&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(o(153));if(n.child!==null){for(e=n.child,s=Xn(e,e.pendingProps),n.child=s,s.return=n;e.sibling!==null;)e=e.sibling,s=s.sibling=Xn(e,e.pendingProps),s.return=n;s.sibling=null}return n.child}function Vy(e,n,s){switch(n.tag){case 3:Of(n),Qr();break;case 5:Kd(n);break;case 1:mt(n.type)&&ei(n);break;case 4:bl(n,n.stateNode.containerInfo);break;case 10:var l=n.type._context,u=n.memoizedProps.value;Pe(ii,l._currentValue),l._currentValue=u;break;case 13:if(l=n.memoizedState,l!==null)return l.dehydrated!==null?(Pe(Le,Le.current&1),n.flags|=128,null):(s&n.child.childLanes)!==0?_f(e,n,s):(Pe(Le,Le.current&1),e=kn(e,n,s),e!==null?e.sibling:null);Pe(Le,Le.current&1);break;case 19:if(l=(s&n.childLanes)!==0,(e.flags&128)!==0){if(l)return Mf(e,n,s);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Pe(Le,Le.current),l)break;return null;case 22:case 23:return n.lanes=0,Pf(e,n,s)}return kn(e,n,s)}var Df,Ul,Ff,zf;Df=function(e,n){for(var s=n.child;s!==null;){if(s.tag===5||s.tag===6)e.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Ul=function(){},Ff=function(e,n,s,l){var u=e.memoizedProps;if(u!==l){e=n.stateNode,gr(an.current);var f=null;switch(s){case"input":u=vs(e,u),l=vs(e,l),f=[];break;case"select":u=q({},u,{value:void 0}),l=q({},l,{value:void 0}),f=[];break;case"textarea":u=Pr(e,u),l=Pr(e,l),f=[];break;default:typeof u.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=Jo)}tn(s,l);var y;s=null;for(F in u)if(!l.hasOwnProperty(F)&&u.hasOwnProperty(F)&&u[F]!=null)if(F==="style"){var N=u[F];for(y in N)N.hasOwnProperty(y)&&(s||(s={}),s[y]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(c.hasOwnProperty(F)?f||(f=[]):(f=f||[]).push(F,null));for(F in l){var A=l[F];if(N=u?.[F],l.hasOwnProperty(F)&&A!==N&&(A!=null||N!=null))if(F==="style")if(N){for(y in N)!N.hasOwnProperty(y)||A&&A.hasOwnProperty(y)||(s||(s={}),s[y]="");for(y in A)A.hasOwnProperty(y)&&N[y]!==A[y]&&(s||(s={}),s[y]=A[y])}else s||(f||(f=[]),f.push(F,s)),s=A;else F==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,N=N?N.__html:void 0,A!=null&&N!==A&&(f=f||[]).push(F,A)):F==="children"?typeof A!="string"&&typeof A!="number"||(f=f||[]).push(F,""+A):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(c.hasOwnProperty(F)?(A!=null&&F==="onScroll"&&Re("scroll",e),f||N===A||(f=[])):(f=f||[]).push(F,A))}s&&(f=f||[]).push("style",s);var F=f;(n.updateQueue=F)&&(n.flags|=4)}},zf=function(e,n,s,l){s!==l&&(n.flags|=4)};function Js(e,n){if(!Ie)switch(e.tailMode){case"hidden":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function rt(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=0,l=0;if(n)for(var u=e.child;u!==null;)s|=u.lanes|u.childLanes,l|=u.subtreeFlags&14680064,l|=u.flags&14680064,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)s|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=s,n}function Qy(e,n,s){var l=n.pendingProps;switch(dl(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(n),null;case 1:return mt(n.type)&&Zo(),rt(n),null;case 3:return l=n.stateNode,Gr(),Ae(pt),Ae(tt),Cl(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(si(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,$t!==null&&(ec($t),$t=null))),Ul(e,n),rt(n),null;case 5:Sl(n);var u=gr(Qs.current);if(s=n.type,e!==null&&n.stateNode!=null)Ff(e,n,s,l,u),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!l){if(n.stateNode===null)throw Error(o(166));return rt(n),null}if(e=gr(an.current),si(n)){l=n.stateNode,s=n.type;var f=n.memoizedProps;switch(l[on]=n,l[Bs]=f,e=(n.mode&1)!==0,s){case"dialog":Re("cancel",l),Re("close",l);break;case"iframe":case"object":case"embed":Re("load",l);break;case"video":case"audio":for(u=0;
vendor: 5,074 bytes, line 8
8u<Fs.length;u++)Re(Fs[u],l);break;case"source":Re("error",l);break;case"img":case"image":case"link":Re("error",l),Re("load",l);break;case"details":Re("toggle",l);break;case"input":jo(l,f),Re("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!f.multiple},Re("invalid",l);break;case"textarea":Xt(l,f),Re("invalid",l)}tn(s,f),u=null;for(var y in f)if(f.hasOwnProperty(y)){var N=f[y];y==="children"?typeof N=="string"?l.textContent!==N&&(f.suppressHydrationWarning!==!0&&Go(l.textContent,N,e),u=["children",N]):typeof N=="number"&&l.textContent!==""+N&&(f.suppressHydrationWarning!==!0&&Go(l.textContent,N,e),u=["children",""+N]):c.hasOwnProperty(y)&&N!=null&&y==="onScroll"&&Re("scroll",l)}switch(s){case"input":Nt(l),Tr(l,f,!0);break;case"textarea":Nt(l),ko(l);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(l.onclick=Jo)}l=u,n.updateQueue=l,l!==null&&(n.flags|=4)}else{y=u.nodeType===9?u:u.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ot(s)),e==="http://www.w3.org/1999/xhtml"?s==="script"?(e=y.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=y.createElement(s,{is:l.is}):(e=y.createElement(s),s==="select"&&(y=e,l.multiple?y.multiple=!0:l.size&&(y.size=l.size))):e=y.createElementNS(e,s),e[on]=n,e[Bs]=l,Df(e,n,!1,!1),n.stateNode=e;e:{switch(y=bs(s,l),s){case"dialog":Re("cancel",e),Re("close",e),u=l;break;case"iframe":case"object":case"embed":Re("load",e),u=l;break;case"video":case"audio":for(u=0;u<Fs.length;u++)Re(Fs[u],e);u=l;break;case"source":Re("error",e),u=l;break;case"img":case"image":case"link":Re("error",e),Re("load",e),u=l;break;case"details":Re("toggle",e),u=l;break;case"input":jo(e,l),u=vs(e,l),Re("invalid",e);break;case"option":u=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},u=q({},l,{value:void 0}),Re("invalid",e);break;case"textarea":Xt(e,l),u=Pr(e,l),Re("invalid",e);break;default:u=l}tn(s,u),N=u;for(f in N)if(N.hasOwnProperty(f)){var A=N[f];f==="style"?yn(e,A):f==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&Eo(e,A)):f==="children"?typeof A=="string"?(s!=="textarea"||A!=="")&&en(e,A):typeof A=="number"&&en(e,""+A):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(c.hasOwnProperty(f)?A!=null&&f==="onScroll"&&Re("scroll",e):A!=null&&E(e,f,A,y))}switch(s){case"input":Nt(e),Tr(e,l,!1);break;case"textarea":Nt(e),ko(e);break;case"option":l.value!=null&&e.setAttribute("value",""+be(l.value));break;case"select":e.multiple=!!l.multiple,f=l.value,f!=null?Pt(e,!!l.multiple,f,!1):l.defaultValue!=null&&Pt(e,!!l.multiple,l.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=Jo)}switch(s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return rt(n),null;case 6:if(e&&n.stateNode!=null)zf(e,n,e.memoizedProps,l);else{if(typeof l!="string"&&n.stateNode===null)throw Error(o(166));if(s=gr(Qs.current),gr(an.current),si(n)){if(l=n.stateNode,s=n.memoizedProps,l[on]=n,(f=l.nodeValue!==s)&&(e=St,e!==null))switch(e.tag){case 3:Go(l.nodeValue,s,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Go(l.nodeValue,s,(e.mode&1)!==0)}f&&(n.flags|=4)}else l=(s.nodeType===9?s:s.ownerDocument).createTextNode(l),l[on]=n,n.stateNode=l}return rt(n),null;case 13:if(Ae(Le),l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ie&&jt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Bd(),Qr(),n.flags|=98560,f=!1;else if(f=si(n),l!==null&&l.dehydrated!==null){if(e===null){if(!f)throw Error(o(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(o(317));f[on]=n}else Qr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;rt(n),f=!1}else $t!==null&&(ec($t),$t=null),f=!0;if(!f)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=s,n):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Le.current&1)!==0?Qe===0&&(Qe=3):rc())),n.updateQueue!==null&&(n.flags|=4),rt(n),null);case 4:return Gr(),Ul(e,n),e===null&&zs(n.stateNode.containerInfo),rt(n),null;case 10:return vl(n.type._context),rt(n),null;case 17:return mt(n.type)&&Zo(),rt(n),null;case 19:if(Ae(Le),f=n.memoizedState,f===null)return rt(n),null;if(l=(n.flags&128)!==0,y=f.rendering,y===null)if(l)Js(f,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(y=ui(e),y!==null){for(n.flags|=128,Js(f,!1),l=y.updateQueue,l!==null&&(n.updateQueue=l,n.flags|=4),n.subtreeFlags=0,l=s,s=n.child;s!==null;)f=s,e=l,f.flags&=14680066,y=f.alternate,y===null?(f.childLanes=0,f.lanes=e,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=y.childLanes,f.lanes=y.lanes,f.child=y.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=y.memoizedProps,f.memoizedState=y.memoizedState,f.updateQueue=y.updateQueue,f.type=y.type,e=y.dependencies,f.depen
vendor: 5,170 bytes, line 8
8dencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),s=s.sibling;return Pe(Le,Le.current&1|2),n.child}e=e.sibling}f.tail!==null&&$e()>es&&(n.flags|=128,l=!0,Js(f,!1),n.lanes=4194304)}else{if(!l)if(e=ui(y),e!==null){if(n.flags|=128,l=!0,s=e.updateQueue,s!==null&&(n.updateQueue=s,n.flags|=4),Js(f,!0),f.tail===null&&f.tailMode==="hidden"&&!y.alternate&&!Ie)return rt(n),null}else 2*$e()-f.renderingStartTime>es&&s!==1073741824&&(n.flags|=128,l=!0,Js(f,!1),n.lanes=4194304);f.isBackwards?(y.sibling=n.child,n.child=y):(s=f.last,s!==null?s.sibling=y:n.child=y,f.last=y)}return f.tail!==null?(n=f.tail,f.rendering=n,f.tail=n.sibling,f.renderingStartTime=$e(),n.sibling=null,s=Le.current,Pe(Le,l?s&1|2:s&1),n):(rt(n),null);case 22:case 23:return nc(),l=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(n.flags|=8192),l&&(n.mode&1)!==0?(Ct&1073741824)!==0&&(rt(n),n.subtreeFlags&6&&(n.flags|=8192)):rt(n),null;case 24:return null;case 25:return null}throw Error(o(156,n.tag))}function qy(e,n){switch(dl(n),n.tag){case 1:return mt(n.type)&&Zo(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Gr(),Ae(pt),Ae(tt),Cl(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return Sl(n),null;case 13:if(Ae(Le),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(o(340));Qr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Ae(Le),null;case 4:return Gr(),null;case 10:return vl(n.type._context),null;case 22:case 23:return nc(),null;case 24:return null;default:return null}}var xi=!1,st=!1,Yy=typeof WeakSet=="function"?WeakSet:Set,se=null;function Xr(e,n){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(l){De(e,n,l)}else s.current=null}function Hl(e,n,s){try{s()}catch(l){De(e,n,l)}}var $f=!1;function Ky(e,n){if(nl=zo,e=vd(),Ya(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var u=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{s.nodeType,f.nodeType}catch{s=null;break e}var y=0,N=-1,A=-1,F=0,V=0,Q=e,H=null;t:for(;;){for(var ne;Q!==s||u!==0&&Q.nodeType!==3||(N=y+u),Q!==f||l!==0&&Q.nodeType!==3||(A=y+l),Q.nodeType===3&&(y+=Q.nodeValue.length),(ne=Q.firstChild)!==null;)H=Q,Q=ne;for(;;){if(Q===e)break t;if(H===s&&++F===u&&(N=y),H===f&&++V===l&&(A=y),(ne=Q.nextSibling)!==null)break;Q=H,H=Q.parentNode}Q=ne}s=N===-1||A===-1?null:{start:N,end:A}}else s=null}s=s||{start:0,end:0}}else s=null;for(rl={focusedElem:e,selectionRange:s},zo=!1,se=n;se!==null;)if(n=se,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,se=e;else for(;se!==null;){n=se;try{var oe=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(oe!==null){var ae=oe.memoizedProps,Be=oe.memoizedState,L=n.stateNode,O=L.getSnapshotBeforeUpdate(n.elementType===n.type?ae:Bt(n.type,ae),Be);L.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var M=n.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(G){De(n,n.return,G)}if(e=n.sibling,e!==null){e.return=n.return,se=e;break}se=n.return}return oe=$f,$f=!1,oe}function Xs(e,n,s){var l=n.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var u=l=l.next;do{if((u.tag&e)===e){var f=u.destroy;u.destroy=void 0,f!==void 0&&Hl(n,s,f)}u=u.next}while(u!==l)}}function wi(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var l=s.create;s.destroy=l()}s=s.next}while(s!==n)}}function Vl(e){var n=e.ref;if(n!==null){var s=e.stateNode;e.tag,e=s,typeof n=="function"?n(e):n.current=e}}function Bf(e){var n=e.alternate;n!==null&&(e.alternate=null,Bf(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[on],delete n[Bs],delete n[al],delete n[Ay],delete n[Oy])),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 Wf(e){return e.tag===5||e.tag===3||e.tag===4}function Uf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wf(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 Ql(e,n,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?s.nodeType===8?s.parentNode.insertBefore(e,n):s.insertBefore(e,n):(s.nodeType===8?(n=s.parentNode,n.insertBefore(e,s)):(n=s,n.appendChild(e)),s=s._reactRootContainer,s!=null||n.onclick!==null||(n.onclick=Jo));else if(l!==4&&(e=e.child,e!==null))for(Ql(e,n,s),e=e.sibling;e!==null;)Ql(e,n,s),e=e.sibling}function ql(e,n,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?s.insertBefore(e,n):s.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(ql(e,n,s),e=e.sibling;e!==null;)ql(e,n,s),e=e.sibling}var Je=null,Wt=!1;function qn(e,n,s){for(s=s.child;s!==null;)Hf(e,n,s),s=s.sibling}
vendor: 15,337 bytes, line 8
8function Hf(e,n,s){if(sn&&typeof sn.onCommitFiberUnmount=="function")try{sn.onCommitFiberUnmount(Io,s)}catch{}switch(s.tag){case 5:st||Xr(s,n);case 6:var l=Je,u=Wt;Je=null,qn(e,n,s),Je=l,Wt=u,Je!==null&&(Wt?(e=Je,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):Je.removeChild(s.stateNode));break;case 18:Je!==null&&(Wt?(e=Je,s=s.stateNode,e.nodeType===8?il(e.parentNode,s):e.nodeType===1&&il(e,s),Rs(e)):il(Je,s.stateNode));break;case 4:l=Je,u=Wt,Je=s.stateNode.containerInfo,Wt=!0,qn(e,n,s),Je=l,Wt=u;break;case 0:case 11:case 14:case 15:if(!st&&(l=s.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){u=l=l.next;do{var f=u,y=f.destroy;f=f.tag,y!==void 0&&((f&2)!==0||(f&4)!==0)&&Hl(s,n,y),u=u.next}while(u!==l)}qn(e,n,s);break;case 1:if(!st&&(Xr(s,n),l=s.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=s.memoizedProps,l.state=s.memoizedState,l.componentWillUnmount()}catch(N){De(s,n,N)}qn(e,n,s);break;case 21:qn(e,n,s);break;case 22:s.mode&1?(st=(l=st)||s.memoizedState!==null,qn(e,n,s),st=l):qn(e,n,s);break;default:qn(e,n,s)}}function Vf(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new Yy),n.forEach(function(l){var u=sx.bind(null,e,l);s.has(l)||(s.add(l),l.then(u,u))})}}function Ut(e,n){var s=n.deletions;if(s!==null)for(var l=0;l<s.length;l++){var u=s[l];try{var f=e,y=n,N=y;e:for(;N!==null;){switch(N.tag){case 5:Je=N.stateNode,Wt=!1;break e;case 3:Je=N.stateNode.containerInfo,Wt=!0;break e;case 4:Je=N.stateNode.containerInfo,Wt=!0;break e}N=N.return}if(Je===null)throw Error(o(160));Hf(f,y,u),Je=null,Wt=!1;var A=u.alternate;A!==null&&(A.return=null),u.return=null}catch(F){De(u,n,F)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Qf(n,e),n=n.sibling}function Qf(e,n){var s=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ut(n,e),cn(e),l&4){try{Xs(3,e,e.return),wi(3,e)}catch(ae){De(e,e.return,ae)}try{Xs(5,e,e.return)}catch(ae){De(e,e.return,ae)}}break;case 1:Ut(n,e),cn(e),l&512&&s!==null&&Xr(s,s.return);break;case 5:if(Ut(n,e),cn(e),l&512&&s!==null&&Xr(s,s.return),e.flags&32){var u=e.stateNode;try{en(u,"")}catch(ae){De(e,e.return,ae)}}if(l&4&&(u=e.stateNode,u!=null)){var f=e.memoizedProps,y=s!==null?s.memoizedProps:f,N=e.type,A=e.updateQueue;if(e.updateQueue=null,A!==null)try{N==="input"&&f.type==="radio"&&f.name!=null&&ys(u,f),bs(N,y);var F=bs(N,f);for(y=0;y<A.length;y+=2){var V=A[y],Q=A[y+1];V==="style"?yn(u,Q):V==="dangerouslySetInnerHTML"?Eo(u,Q):V==="children"?en(u,Q):E(u,V,Q,F)}switch(N){case"input":xs(u,f);break;case"textarea":Co(u,f);break;case"select":var H=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!f.multiple;var ne=f.value;ne!=null?Pt(u,!!f.multiple,ne,!1):H!==!!f.multiple&&(f.defaultValue!=null?Pt(u,!!f.multiple,f.defaultValue,!0):Pt(u,!!f.multiple,f.multiple?[]:"",!1))}u[Bs]=f}catch(ae){De(e,e.return,ae)}}break;case 6:if(Ut(n,e),cn(e),l&4){if(e.stateNode===null)throw Error(o(162));u=e.stateNode,f=e.memoizedProps;try{u.nodeValue=f}catch(ae){De(e,e.return,ae)}}break;case 3:if(Ut(n,e),cn(e),l&4&&s!==null&&s.memoizedState.isDehydrated)try{Rs(n.containerInfo)}catch(ae){De(e,e.return,ae)}break;case 4:Ut(n,e),cn(e);break;case 13:Ut(n,e),cn(e),u=e.child,u.flags&8192&&(f=u.memoizedState!==null,u.stateNode.isHidden=f,!f||u.alternate!==null&&u.alternate.memoizedState!==null||(Gl=$e())),l&4&&Vf(e);break;case 22:if(V=s!==null&&s.memoizedState!==null,e.mode&1?(st=(F=st)||V,Ut(n,e),st=F):Ut(n,e),cn(e),l&8192){if(F=e.memoizedState!==null,(e.stateNode.isHidden=F)&&!V&&(e.mode&1)!==0)for(se=e,V=e.child;V!==null;){for(Q=se=V;se!==null;){switch(H=se,ne=H.child,H.tag){case 0:case 11:case 14:case 15:Xs(4,H,H.return);break;case 1:Xr(H,H.return);var oe=H.stateNode;if(typeof oe.componentWillUnmount=="function"){l=H,s=H.return;try{n=l,oe.props=n.memoizedProps,oe.state=n.memoizedState,oe.componentWillUnmount()}catch(ae){De(l,s,ae)}}break;case 5:Xr(H,H.return);break;case 22:if(H.memoizedState!==null){Kf(Q);continue}}ne!==null?(ne.return=H,se=ne):Kf(Q)}V=V.sibling}e:for(V=null,Q=e;;){if(Q.tag===5){if(V===null){V=Q;try{u=Q.stateNode,F?(f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(N=Q.stateNode,A=Q.memoizedProps.style,y=A!=null&&A.hasOwnProperty("display")?A.display:null,N.style.display=Ar("display",y))}catch(ae){De(e,e.return,ae)}}}else if(Q.tag===6){if(V===null)try{Q.stateNode.nodeValue=F?"":Q.memoizedProps}catch(ae){De(e,e.return,ae)}}else if((Q.tag!==22&&Q.tag!==23||Q.memoizedState===null||Q===e)&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===e)break e;for(;Q.sibling===null;){if(Q.return===null||Q.return===e)break e;V===Q&&(V=null),Q=Q.return}V===Q&&(V=null),Q.sibling.return=Q.return,Q=Q.sibling}}break;case 19:Ut(n,e),cn(e),l&4&&Vf(e);break;case 21:break;default:Ut(n,e),cn(e)}}function cn(e){var n=e.flags;if(n&2){try{e:{for(var s=e.return;s!==null;){if(Wf(s)){var l=s;break e}s=s.return}throw Error(o(160))}switch(l.tag){case 5:var u=l.stateNode;l.flags&32&&(en(u,""),l.flags&=-33);var f=Uf(e);ql(e,f,u);break;case 3:case 4:var y=l.stateNode.containerInfo,N=Uf(e);Ql(e,N,y);break;default:throw Error(o(161))}}catch(A){De(e,e.return,A)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Gy(e,n,s){se=e,qf(e)}function qf(e,n,s){for(var l=(e.mode&1)!==0;se!==null;){var u=se,f=u.child;if(u.tag===22&&l){var y=u.memoizedState!==null||xi;if(!y){var N=u.alternate,A=N!==null&&N.memoizedState!==null||st;N=xi;var F=st;if(xi=y,(st=A)&&!F)for(se=u;se!==null;)y=se,A=y.child,y.tag===22&&y.memoizedState!==null?Gf(u):A!==null?(A.return=y,se=A):Gf(u);for(;f!==null;)se=f,qf(f),f=f.sibling;se=u,xi=N,st=F}Yf(e)}else(u.subtreeFlags&8772)!==0&&f!==null?(f.return=u,se=f):Yf(e)}}function Yf(e){for(;se!==null;){var n=se;if((n.flags&8772)!==0){var s=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:st||wi(5,n);break;case 1:var l=n.stateNode;if(n.flags&4&&!st)if(s===null)l.componentDidMount();else{var u=n.elementType===n.type?s.memoizedProps:Bt(n.type,s.memoizedProps);l.componentDidUpdate(u,s.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var f=n.updateQueue;f!==null&&Yd(n,f,l);break;case 3:var y=n.updateQueue;if(y!==null){if(s=null,n.child!==null)switch(n.child.tag){case 5:s=n.child.stateNode;break;case 1:s=n.child.stateNode}Yd(n,y,s)}break;case 5:var N=n.stateNode;if(s===null&&n.flags&4){s=N;var A=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&s.focus();break;case"img":A.src&&(s.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var F=n.alternate;if(F!==null){var V=F.memoizedState;if(V!==null){var Q=V.dehydrated;Q!==null&&Rs(Q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}st||n.flags&512&&Vl(n)}catch(H){De(n,n.return,H)}}if(n===e){se=null;break}if(s=n.sibling,s!==null){s.return=n.return,se=s;break}se=n.return}}function Kf(e){for(;se!==null;){var n=se;if(n===e){se=null;break}var s=n.sibling;if(s!==null){s.return=n.return,se=s;break}se=n.return}}function Gf(e){for(;se!==null;){var n=se;try{switch(n.tag){case 0:case 11:case 15:var s=n.return;try{wi(4,n)}catch(A){De(n,s,A)}break;case 1:var l=n.stateNode;if(typeof l.componentDidMount=="function"){var u=n.return;try{l.componentDidMount()}catch(A){De(n,u,A)}}var f=n.return;try{Vl(n)}catch(A){De(n,f,A)}break;case 5:var y=n.return;try{Vl(n)}catch(A){De(n,y,A)}}}catch(A){De(n,n.return,A)}if(n===e){se=null;break}var N=n.sibling;if(N!==null){N.return=n.return,se=N;break}se=n.return}}var Jy=Math.ceil,bi=T.ReactCurrentDispatcher,Yl=T.ReactCurrentOwner,_t=T.ReactCurrentBatchConfig,je=0,Ye=null,Ue=null,Xe=0,Ct=0,Zr=Wn(0),Qe=0,Zs=null,yr=0,Si=0,Kl=0,eo=null,vt=null,Gl=0,es=1/0,En=null,ji=!1,Jl=null,Yn=null,Ci=!1,Kn=null,ki=0,to=0,Xl=null,Ei=-1,Ni=0;function lt(){return(je&6)!==0?$e():Ei!==-1?Ei:Ei=$e()}function Gn(e){return(e.mode&1)===0?1:(je&2)!==0&&Xe!==0?Xe&-Xe:_y.transition!==null?(Ni===0&&(Ni=Wu()),Ni):(e=Ne,e!==0||(e=window.event,e=e===void 0?16:Ju(e.type)),e)}function Ht(e,n,s,l){if(50<to)throw to=0,Xl=null,Error(o(185));ks(e,s,l),((je&2)===0||e!==Ye)&&(e===Ye&&((je&2)===0&&(Si|=s),Qe===4&&Jn(e,Xe)),yt(e,l),s===1&&je===0&&(n.mode&1)===0&&(es=$e()+500,ti&&Hn()))}function yt(e,n){var s=e.callbackNode;_v(e,n);var l=Mo(e,e===Ye?Xe:0);if(l===0)s!==null&&zu(s),e.callbackNode=null,e.callbackPriority=0;else if(n=l&-l,e.callbackPriority!==n){if(s!=null&&zu(s),n===1)e.tag===0?Iy(Xf.bind(null,e)):Md(Xf.bind(null,e)),Py(function(){(je&6)===0&&Hn()}),s=null;else{switch(Uu(l)){case 1:s=Aa;break;case 4:s=$u;break;case 16:s=Oo;break;case 536870912:s=Bu;break;default:s=Oo}s=ih(s,Jf.bind(null,e))}e.callbackPriority=n,e.callbackNode=s}}function Jf(e,n){if(Ei=-1,Ni=0,(je&6)!==0)throw Error(o(327));var s=e.callbackNode;if(ts()&&e.callbackNode!==s)return null;var l=Mo(e,e===Ye?Xe:0);if(l===0)return null;if((l&30)!==0||(l&e.expiredLanes)!==0||n)n=Ti(e,l);else{n=l;var u=je;je|=2;var f=eh();(Ye!==e||Xe!==n)&&(En=null,es=$e()+500,wr(e,n));do try{ex();break}catch(N){Zf(e,N)}while(!0);gl(),bi.current=f,je=u,Ue!==null?n=0:(Ye=null,Xe=0,n=Qe)}if(n!==0){if(n===2&&(u=Oa(e),u!==0&&(l=u,n=Zl(e,u))),n===1)throw s=Zs,wr(e,0),Jn(e,l),yt(e,$e()),s;if(n===6)Jn(e,l);else{if(u=e.current.alternate,(l&30)===0&&!Xy(u)&&(n=Ti(e,l),n===2&&(f=Oa(e),f!==0&&(l=f,n=Zl(e,f))),n===1))throw s=Zs,wr(e,0),Jn(e,l),yt(e,$e()),s;switch(e.finishedWork=u,e.finishedLanes=l,n){case 0:case 1:throw Error(o(345));case 2:br(e,vt,En);break;case 3:if(Jn(e,l),(l&130023424)===l&&(n=Gl+500-$e(),10<n)){if(Mo(e,0)!==0)break;if(u=e.suspendedLanes,(u&l)!==l){lt(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=ol(br.bind(null,e,vt,En),n);break}br(e,vt,En);break;case 4:if(Jn(e,l),(l&4194240)===l)break;for(n=e.eventTimes,u=-1;0<l;){var y=31-Ft(l);f=1<<y,y=n[y],y>u&&(u=y),l&=~f}if(l=u,l=$e()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Jy(l/1960))-l,10<l){e.timeoutHandle=ol(br.bind(null,e,vt,En),l);break}br(e,vt,En);break;case 5:br(e,vt,En);break;default:throw Error(o(329))}}}return yt(e,$e()),e.callbackNode===s?Jf.bind(null,e):null}function Zl(e,n){var s=eo;return e.current.memoizedState.isDehydrated&&(wr(e,n).flags|=256),e=Ti(e,n),e!==2&&(n=vt,vt=s,n!==null&&ec(n)),e}function ec(e){vt===null?vt=e:vt.push.apply(vt,e)}function Xy(e){for(var n=e;;){if(n.flags&16384){var s=n.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var l=0;l<s.length;l++){var u=s[l],f=u.getSnapshot;u=u.value;try{if(!zt(f(),u))return!1}catch{return!1}}}if(s=n.child,n.subtreeFlags&16384&&s!==null)s.return=n,n=s;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Jn(e,n){for(n&=~Kl,n&=~Si,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var s=31-Ft(n),l=1<<s;e[s]=-1,n&=~l}}function Xf(e){if((je&6)!==0)throw Error(o(327));ts();var n=Mo(e,0);if((n&1)===0)return yt(e,$e()),null;var s=Ti(e,n);if(e.tag!==0&&s===2){var l=Oa(e);l!==0&&(n=l,s=Zl(e,l))}if(s===1)throw s=Zs,wr(e,0),Jn(e,n),yt(e,$e()),s;if(s===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,br(e,vt,En),yt(e,$e()),null}function tc(e,n){var s=je;je|=1;try{return e(n)}finally{je=s,je===0&&(es=$e()+500,ti&&Hn())}}function xr(e){Kn!==null&&Kn.tag===0&&(je&6)===0&&ts();var n=je;je|=1;var s=_t.transition,l=Ne;try{if(_t.transition=null,Ne=1,e)return e()}finally{Ne=l,_t.transition=s,je=n,(je&6)===0&&Hn()}}function nc(){Ct=Zr.current,Ae(Zr)}function wr(e,n){e.finishedWork=null,e.finishedLanes=0;var s=e.timeoutHandle;if(s!==-1&&(e.timeoutHandle=-1,Ty(s)),Ue!==null)for(s=Ue.return;s!==null;){var l=s;switch(dl(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&Zo();break;case 3:Gr(),Ae(pt),Ae(tt),Cl();break;case 5:Sl(l);break;case 4:Gr();break;case 13:Ae(Le);break;case 19:Ae(Le);break;case 10:vl(l.type._context);break;case 22:case 23:nc()}s=s.return}if(Ye=e,Ue=e=Xn(e.current,null),Xe=Ct=n,Qe=0,Zs=null,Kl=Si=yr=0,vt=eo=null,mr!==null){for(n=0;n<mr.length;n++)if(s=mr[n],l=s.interleaved,l!==null){s.interleaved=null;var u=l.next,f=s.pending;if(f!==null){var y=f.next;f.next=u,l.next=y}s.pending=l}mr=null}return e}function Zf(e,n){do{var s=Ue;try{if(gl(),di.current=mi,fi){for(var l=Me.memoizedState;l!==null;){var u=l.queue;u!==null&&(u.pending=null),l=l.next}fi=!1}if(vr=0,qe=Ve=Me=null,qs=!1,Ys=0,Yl.current=null,s===null||s.return===null){Qe=1,Zs=n,Ue=null;break}e:{var f=e,y=s.return,N=s,A=n;if(n=Xe,N.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var F=A,V=N,Q=V.tag;if((V.mode&1)===0&&(Q===0||Q===11||Q===15)){var H=V.alternate;H?(V.updateQueue=H.updateQueue,V.memoizedState=H.memoizedState,V.lanes=H.lanes):(V.updateQueue=null,V.memoizedState=null)}var ne=Cf(y);if(ne!==null){ne.flags&=-257,kf(ne,y,N,f,n),ne.mode&1&&jf(f,F,n),n=ne,A=F;var oe=n.updateQueue;if(oe===null){var ae=new Set;ae.add(A),n.updateQueue=ae}else oe.add(A);break e}else{if((n&1)===0){jf(f,F,n),rc();break e}A=Error(o(426))}}else if(Ie&&N.mode&1){var Be=Cf(y);if(Be!==null){(Be.flags&65536)===0&&(Be.flags|=256),kf(Be,y,N,f,n),pl(Jr(A,N));break e}}f=A=Jr(A,N),Qe!==4&&(Qe=2),eo===null?eo=[f]:eo.push(f),f=y;do{switch(f.tag){case 3:f.flags|=65536,n&=-n,f.lanes|=n;var L=bf(f,A,n);qd(f,L);break e;case 1:N=A;var O=f.type,M=f.stateNode;if((f.flags&128)===0&&(typeof O.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Yn===null||!Yn.has(M)))){f.flags|=65536,n&=-n,f.lanes|=n;var G=Sf(f,N,n);qd(f,G);break e}}f=f.return}while(f!==null)}nh(s)}catch(le){n=le,Ue===s&&s!==null&&(Ue=s=s.return);continue}break}while(!0)}function eh(){var e=bi.current;return bi.current=mi,e===null?mi:e}function rc(){(Qe===0||Qe===3||Qe===2)&&(Qe=4),Ye===null||(yr&268435455)===0&&(Si&268435455)===0||Jn(Ye,Xe)}function Ti(e,n){var s=je;je|=2;var l=eh();(Ye!==e||Xe!==n)&&(En=null,wr(e,n));do try{Zy();break}catch(u){Zf(e,u)}while(!0);if(gl(),je=s,bi.current=l,Ue!==null)throw Error(o(261));return Ye=null,Xe=0,Qe}function Zy(){for(;Ue!==null;)th(Ue)}function ex(){for(;Ue!==null&&!kv();)th(Ue)}function th(e){var n=oh(e.alternate,e,Ct);e.memoizedProps=e.pendingProps,n===null?nh(e):Ue=n,Yl.current=null}function nh(e){var n=e;do{var s=n.alternate;if(e=n.return,(n.flags&32768)===0){if(s=Qy(s,n,Ct),s!==null){Ue=s;return}}else{if(s=qy(s,n),s!==null){s.flags&=32767,Ue=s;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Qe=6,Ue=null;return}}if(n=n.sibling,n!==null){Ue=n;return}Ue=n=e}while(n!==null);Qe===0&&(Qe=5)}function br(e,n,s){var l=Ne,u=_t.transition;try{_t.transition=null,Ne=1,tx(e,n,s,l)}finally{_t.transition=u,Ne=l}return null}function tx(e,n,s,l){do ts();while(Kn!==null);if((je&6)!==0)throw Error(o(327));s=e.finishedWork;var u=e.finishedLanes;if(s===null)return null;if(e.finishedWork=null,e.finishedLanes=0,s===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var f=s.lanes|s.childLanes;if(Lv(e,f),e===Ye&&(Ue=Ye=null,Xe=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||Ci||(Ci=!0,ih(Oo,function(){return ts(),null})),f=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||f){f=_t.transition,_t.transition=null;var y=Ne;Ne=1;var N=je;je|=4,Yl.current=null,Ky(e,s),Qf(s,e),by(rl),zo=!!nl,rl=nl=null,e.current=s,Gy(s),Ev(),je=N,Ne=y,_t.transition=f}else e.current=s;
vendor: 6,888 bytes, line 8
8if(Ci&&(Ci=!1,Kn=e,ki=u),f=e.pendingLanes,f===0&&(Yn=null),Pv(s.stateNode),yt(e,$e()),n!==null)for(l=e.onRecoverableError,s=0;s<n.length;s++)u=n[s],l(u.value,{componentStack:u.stack,digest:u.digest});if(ji)throw ji=!1,e=Jl,Jl=null,e;return(ki&1)!==0&&e.tag!==0&&ts(),f=e.pendingLanes,(f&1)!==0?e===Xl?to++:(to=0,Xl=e):to=0,Hn(),null}function ts(){if(Kn!==null){var e=Uu(ki),n=_t.transition,s=Ne;try{if(_t.transition=null,Ne=16>e?16:e,Kn===null)var l=!1;else{if(e=Kn,Kn=null,ki=0,(je&6)!==0)throw Error(o(331));var u=je;for(je|=4,se=e.current;se!==null;){var f=se,y=f.child;if((se.flags&16)!==0){var N=f.deletions;if(N!==null){for(var A=0;A<N.length;A++){var F=N[A];for(se=F;se!==null;){var V=se;switch(V.tag){case 0:case 11:case 15:Xs(8,V,f)}var Q=V.child;if(Q!==null)Q.return=V,se=Q;else for(;se!==null;){V=se;var H=V.sibling,ne=V.return;if(Bf(V),V===F){se=null;break}if(H!==null){H.return=ne,se=H;break}se=ne}}}var oe=f.alternate;if(oe!==null){var ae=oe.child;if(ae!==null){oe.child=null;do{var Be=ae.sibling;ae.sibling=null,ae=Be}while(ae!==null)}}se=f}}if((f.subtreeFlags&2064)!==0&&y!==null)y.return=f,se=y;else e:for(;se!==null;){if(f=se,(f.flags&2048)!==0)switch(f.tag){case 0:case 11:case 15:Xs(9,f,f.return)}var L=f.sibling;if(L!==null){L.return=f.return,se=L;break e}se=f.return}}var O=e.current;for(se=O;se!==null;){y=se;var M=y.child;if((y.subtreeFlags&2064)!==0&&M!==null)M.return=y,se=M;else e:for(y=O;se!==null;){if(N=se,(N.flags&2048)!==0)try{switch(N.tag){case 0:case 11:case 15:wi(9,N)}}catch(le){De(N,N.return,le)}if(N===y){se=null;break e}var G=N.sibling;if(G!==null){G.return=N.return,se=G;break e}se=N.return}}if(je=u,Hn(),sn&&typeof sn.onPostCommitFiberRoot=="function")try{sn.onPostCommitFiberRoot(Io,e)}catch{}l=!0}return l}finally{Ne=s,_t.transition=n}}return!1}function rh(e,n,s){n=Jr(s,n),n=bf(e,n,1),e=Qn(e,n,1),n=lt(),e!==null&&(ks(e,1,n),yt(e,n))}function De(e,n,s){if(e.tag===3)rh(e,e,s);else for(;n!==null;){if(n.tag===3){rh(n,e,s);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Yn===null||!Yn.has(l))){e=Jr(s,e),e=Sf(n,e,1),n=Qn(n,e,1),e=lt(),n!==null&&(ks(n,1,e),yt(n,e));break}}n=n.return}}function nx(e,n,s){var l=e.pingCache;l!==null&&l.delete(n),n=lt(),e.pingedLanes|=e.suspendedLanes&s,Ye===e&&(Xe&s)===s&&(Qe===4||Qe===3&&(Xe&130023424)===Xe&&500>$e()-Gl?wr(e,0):Kl|=s),yt(e,n)}function sh(e,n){n===0&&((e.mode&1)===0?n=1:(n=Lo,Lo<<=1,(Lo&130023424)===0&&(Lo=4194304)));var s=lt();e=jn(e,n),e!==null&&(ks(e,n,s),yt(e,s))}function rx(e){var n=e.memoizedState,s=0;n!==null&&(s=n.retryLane),sh(e,s)}function sx(e,n){var s=0;switch(e.tag){case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(s=u.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(o(314))}l!==null&&l.delete(n),sh(e,s)}var oh;oh=function(e,n,s){if(e!==null)if(e.memoizedProps!==n.pendingProps||pt.current)gt=!0;else{if((e.lanes&s)===0&&(n.flags&128)===0)return gt=!1,Vy(e,n,s);gt=(e.flags&131072)!==0}else gt=!1,Ie&&(n.flags&1048576)!==0&&Dd(n,ri,n.index);switch(n.lanes=0,n.tag){case 2:var l=n.type;yi(e,n),e=n.pendingProps;var u=Ur(n,tt.current);Kr(n,s),u=Nl(null,n,l,e,u,s);var f=Tl();return n.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,mt(l)?(f=!0,ei(n)):f=!1,n.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,wl(n),u.updater=gi,n.stateNode=u,u._reactInternals=n,_l(n,l,e,s),n=Fl(null,n,l,!0,f,s)):(n.tag=0,Ie&&f&&ul(n),at(null,n,u,s),n=n.child),n;case 16:l=n.elementType;e:{switch(yi(e,n),e=n.pendingProps,u=l._init,l=u(l._payload),n.type=l,u=n.tag=ix(l),e=Bt(l,e),u){case 0:n=Dl(null,n,l,e,s);break e;case 1:n=Af(null,n,l,e,s);break e;case 11:n=Ef(null,n,l,e,s);break e;case 14:n=Nf(null,n,l,Bt(l.type,e),s);break e}throw Error(o(306,l,""))}return n;case 0:return l=n.type,u=n.pendingProps,u=n.elementType===l?u:Bt(l,u),Dl(e,n,l,u,s);case 1:return l=n.type,u=n.pendingProps,u=n.elementType===l?u:Bt(l,u),Af(e,n,l,u,s);case 3:e:{if(Of(n),e===null)throw Error(o(387));l=n.pendingProps,f=n.memoizedState,u=f.element,Qd(e,n),ci(n,l,null,s);var y=n.memoizedState;if(l=y.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){u=Jr(Error(o(423)),n),n=If(e,n,l,s,u);break e}else if(l!==u){u=Jr(Error(o(424)),n),n=If(e,n,l,s,u);break e}else for(jt=Bn(n.stateNode.containerInfo.firstChild),St=n,Ie=!0,$t=null,s=Hd(n,null,l,s),n.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Qr(),l===u){n=kn(e,n,s);break e}at(e,n,l,s)}n=n.child}return n;case 5:return Kd(n),e===null&&hl(n),l=n.type,u=n.pendingProps,f=e!==null?e.memoizedProps:null,y=u.children,sl(l,u)?y=null:f!==null&&sl(l,f)&&(n.flags|=32),Rf(e,n),at(e,n,y,s),n.child;case 6:return e===null&&hl(n),null;case 13:return _f(e,n,s);case 4:return bl(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=qr(n,null,l,s):at(e,n,l,s),n.child;case 11:return l=n.type,u=n.pendingProps,u=n.elementType===l?u:Bt(l,u),Ef(e,n,l,u,s);case 7:return at(e,n,n.pendingProps,s),n.child;case 8:return at(e,n,n.pendingProps.children,s),n.child;case 12:return at(e,n,n.pendingProps.children,s),n.child;case 10:e:{if(l=n.type._context,u=n.pendingProps,f=n.memoizedProps,y=u.value,Pe(ii,l._currentValue),l._currentValue=y,f!==null)if(zt(f.value,y)){if(f.children===u.children&&!pt.current){n=kn(e,n,s);break e}}else for(f=n.child,f!==null&&(f.return=n);f!==null;){var N=f.dependencies;if(N!==null){y=f.child;for(var A=N.firstContext;A!==null;){if(A.context===l){if(f.tag===1){A=Cn(-1,s&-s),A.tag=2;var F=f.updateQueue;if(F!==null){F=F.shared;var V=F.pending;V===null?A.next=A:(A.next=V.next,V.next=A),F.pending=A}}f.lanes|=s,A=f.alternate,A!==null&&(A.lanes|=s),yl(f.return,s,n),N.lanes|=s;break}A=A.next}}else if(f.tag===10)y=f.type===n.type?null:f.child;else if(f.tag===18){if(y=f.return,y===null)throw Error(o(341));y.lanes|=s,N=y.alternate,N!==null&&(N.lanes|=s),yl(y,s,n),y=f.sibling}else y=f.child;if(y!==null)y.return=f;else for(y=f;y!==null;){if(y===n){y=null;break}if(f=y.sibling,f!==null){f.return=y.return,y=f;break}y=y.return}f=y}at(e,n,u.children,s),n=n.child}return n;case 9:return u=n.type,l=n.pendingProps.children,Kr(n,s),u=Ot(u),l=l(u),n.flags|=1,at(e,n,l,s),n.child;case 14:return l=n.type,u=Bt(l,n.pendingProps),u=Bt(l.type,u),Nf(e,n,l,u,s);case 15:return Tf(e,n,n.type,n.pendingProps,s);case 17:return l=n.type,u=n.pendingProps,u=n.elementType===l?u:Bt(l,u),yi(e,n),n.tag=1,mt(l)?(e=!0,ei(n)):e=!1,Kr(n,s),xf(n,l,u),_l(n,l,u,s),Fl(null,n,l,!0,e,s);case 19:return Mf(e,n,s);case 22:return Pf(e,n,s)}throw Error(o(156,n.tag))};function ih(e,n){return Fu(e,n)}function ox(e,n,s,l){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 5,599 bytes, line 8
8ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(e,n,s,l){return new ox(e,n,s,l)}function sc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ix(e){if(typeof e=="function")return sc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Y)return 11;if(e===me)return 14}return 2}function Xn(e,n){var s=e.alternate;return s===null?(s=Lt(e.tag,n,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=n,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,n=e.dependencies,s.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function Pi(e,n,s,l,u,f){var y=2;if(l=e,typeof e=="function")sc(e)&&(y=1);else if(typeof e=="string")y=5;else e:switch(e){case z:return Sr(s.children,u,f,n);case U:y=8,u|=8;break;case X:return e=Lt(12,s,n,u|2),e.elementType=X,e.lanes=f,e;case te:return e=Lt(13,s,n,u),e.elementType=te,e.lanes=f,e;case K:return e=Lt(19,s,n,u),e.elementType=K,e.lanes=f,e;case ie:return Ri(s,u,f,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:y=10;break e;case he:y=9;break e;case Y:y=11;break e;case me:y=14;break e;case ce:y=16,l=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return n=Lt(y,s,n,u),n.elementType=e,n.type=l,n.lanes=f,n}function Sr(e,n,s,l){return e=Lt(7,e,l,n),e.lanes=s,e}function Ri(e,n,s,l){return e=Lt(22,e,l,n),e.elementType=ie,e.lanes=s,e.stateNode={isHidden:!1},e}function oc(e,n,s){return e=Lt(6,e,null,n),e.lanes=s,e}function ic(e,n,s){return n=Lt(4,e.children!==null?e.children:[],e.key,n),n.lanes=s,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function ax(e,n,s,l,u){this.tag=n,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=Ia(0),this.expirationTimes=Ia(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ia(0),this.identifierPrefix=l,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function ac(e,n,s,l,u,f,y,N,A){return e=new ax(e,n,s,N,A),n===1?(n=1,f===!0&&(n|=8)):n=0,f=Lt(3,null,null,n),e.current=f,f.stateNode=e,f.memoizedState={element:l,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},wl(f),e}function lx(e,n,s){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:D,key:l==null?null:""+l,children:e,containerInfo:n,implementation:s}}function ah(e){if(!e)return Un;e=e._reactInternals;e:{if(ur(e)!==e||e.tag!==1)throw Error(o(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(mt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(o(171))}if(e.tag===1){var s=e.type;if(mt(s))return _d(e,s,n)}return n}function lh(e,n,s,l,u,f,y,N,A){return e=ac(s,l,!0,e,u,f,y,N,A),e.context=ah(null),s=e.current,l=lt(),u=Gn(s),f=Cn(l,u),f.callback=n??null,Qn(s,f,u),e.current.lanes=u,ks(e,u,l),yt(e,l),e}function Ai(e,n,s,l){var u=n.current,f=lt(),y=Gn(u);return s=ah(s),n.context===null?n.context=s:n.pendingContext=s,n=Cn(f,y),n.payload={element:e},l=l===void 0?null:l,l!==null&&(n.callback=l),e=Qn(u,n,y),e!==null&&(Ht(e,u,y,f),li(e,u,y)),y}function Oi(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function ch(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<n?s:n}}function lc(e,n){ch(e,n),(e=e.alternate)&&ch(e,n)}function cx(){return null}var uh=typeof reportError=="function"?reportError:function(e){console.error(e)};function cc(e){this._internalRoot=e}Ii.prototype.render=cc.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(o(409));Ai(e,n,null,null)},Ii.prototype.unmount=cc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;xr(function(){Ai(null,e,null,null)}),n[xn]=null}};function Ii(e){this._internalRoot=e}Ii.prototype.unstable_scheduleHydration=function(e){if(e){var n=Qu();e={blockedOn:null,target:e,priority:n};for(var s=0;s<Fn.length&&n!==0&&n<Fn[s].priority;s++);Fn.splice(s,0,e),s===0&&Ku(e)}};function uc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _i(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function dh(){}function ux(e,n,s,l,u){if(u){if(typeof l=="function"){var f=l;l=function(){var F=Oi(y);f.call(F)}}var y=lh(n,l,e,0,null,!1,!1,"",dh);return e._reactRootContainer=y,e[xn]=y.current,zs(e.nodeType===8?e.parentNode:e),xr(),y}for(;u=e.lastChild;)e.removeChild(u);if(typeof l=="function"){var N=l;l=function(){var F=Oi(A);N.call(F)}}var A=ac(e,0,!1,null,null,!1,!1,"",dh);return e._reactRootContainer=A,e[xn]=A.current,zs(e.nodeType===8?e.parentNode:e),xr(function(){Ai(n,A,s,l)}),A}function Li(e,n,s,l,u){var f=s._reactRootContainer;if(f){var y=f;if(typeof u=="function"){var N=u;u=function(){var A=Oi(y);
8N.call(A)}}Ai(n,y,e,u)}else y=ux(s,n,e,u,l);return Oi(y)}Hu=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var s=Cs(n.pendingLanes);s!==0&&(_a(n,s|1),yt(n,$e()),(je&6)===0&&(es=$e()+500,Hn()))}break;case 13:xr(function(){var l=jn(e,1);if(l!==null){var u=lt();Ht(l,e,1,u)}}),lc(e,1)}},La=function(e){if(e.tag===13){var n=jn(e,134217728);if(n!==null){var s=lt();Ht(n,e,134217728,s)}lc(e,134217728)}},Vu=function(e){if(e.tag===13){var n=Gn(e),s=jn(e,n);if(s!==null){var l=lt();Ht(s,e,n,l)}lc(e,n)}},Qu=function(){return Ne},qu=function(e,n){var s=Ne;try{return Ne=e,n()}finally{Ne=s}},Ir=function(e,n,s){switch(n){case"input":if(xs(e,s),n=s.name,s.type==="radio"&&n!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<s.length;n++){var l=s[n];if(l!==e&&l.form===e.form){var u=Xo(l);if(!u)throw Error(o(90));On(l),xs(l,u)}}}break;case"textarea":Co(e,s);break;case"select":n=s.value,n!=null&&Pt(e,!!s.multiple,n,!1)}},Ee=tc,Te=xr;var dx={usingClientEntryPoint:!1,Events:[Ws,Br,Xo,Po,ve,tc]},no={findFiberByHostInstance:dr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},fx={bundleType:no.bundleType,version:no.version,rendererPackageName:no.rendererPackageName,rendererConfig:no.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Mu(e),e===null?null:e.stateNode},findFiberByHostInstance:no.findFiberByHostInstance||cx,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 Mi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mi.isDisabled&&Mi.supportsFiber)try{Io=Mi.inject(fx),sn=Mi}catch{}}return xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dx,xt.createPortal=function(e,n){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!uc(n))throw Error(o(200));return lx(e,n,null,s)},xt.createRoot=function(e,n){if(!uc(e))throw Error(o(299));var s=!1,l="",u=uh;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),n=ac(e,1,!1,null,null,s,!1,l,u),e[xn]=n.current,zs(e.nodeType===8?e.parentNode:e),new cc(n)},xt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=Mu(n),e=e===null?null:e.stateNode,e},xt.flushSync=function(e){return xr(e)},xt.hydrate=function(e,n,s){if(!_i(n))throw Error(o(200));return Li(null,e,n,!0,s)},xt.hydrateRoot=function(e,n,s){if(!uc(e))throw Error(o(405));var l=s!=null&&s.hydratedSources||null,u=!1,f="",y=uh;if(s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(f=s.identifierPrefix),s.onRecoverableError!==void 0&&(y=s.onRecoverableError)),n=lh(n,null,e,1,s??null,u,!1,f,y),e[xn]=n.current,zs(e),l)for(e=0;e<l.length;e++)s=l[e],u=s._getVersion,u=u(s._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[s,u]:n.mutableSourceEagerHydrationData.push(s,u);return new Ii(n)},xt.render=function(e,n,s){if(!_i(n))throw Error(o(200));return Li(null,e,n,!1,s)},xt.unmountComponentAtNode=function(e){if(!_i(e))throw Error(o(40));return e._reactRootContainer?(xr(function(){Li(null,null,e,!1,function(){e._reactRootContainer=null,e[xn]=null})}),!0):!1},xt.unstable_batchedUpdates=tc,xt.unstable_renderSubtreeIntoContainer=function(e,n,s,l){if(!_i(s))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return Li(e,n,s,!1,l)},xt.version="18.3.1-next-f1338f8080-20240426",xt}var xh;function Np(){if(xh)return hc.exports;xh=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),hc.exports=wx(),hc.exports}var wh;function bx(){if(wh)return Di;wh=1;var t=Np();return Di.createRoot=t.createRoot,Di.hydrateRoot=t.hydrateRoot,Di}var Sx=bx();const jx=1,Cx=1e6;let gc=0;function kx(){return gc=(gc+1)%Number.MAX_SAFE_INTEGER,gc.toString()}const vc=new Map,bh=t=>{if(vc.has(t))return;const r=setTimeout(()=>{vc.delete(t),lo({type:"REMOVE_TOAST",toastId:t})},Cx);vc.set(t,r)},Ex=(t,r)=>{switch(r.type){case"ADD_TOAST":return{...t,toasts:[r.toast,...t.toasts].slice(0,jx)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(o=>o.id===r.toast.id?{...o,...r.toast}:o)};case"DISMISS_TOAST":{const{toastId:o}=r;
8return o?bh(o):t.toasts.forEach(a=>{bh(a.id)}),{...t,toasts:t.toasts.map(a=>a.id===o||o===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return r.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(o=>o.id!==r.toastId)}}},Ki=[];let Gi={toasts:[]};function lo(t){Gi=Ex(Gi,t),Ki.forEach(r=>{r(Gi)})}function Nx({...t}){const r=kx(),o=c=>lo({type:"UPDATE_TOAST",toast:{...c,id:r}}),a=()=>lo({type:"DISMISS_TOAST",toastId:r});return lo({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:c=>{c||a()}}}),{id:r,dismiss:a,update:o}}function Tp(){const[t,r]=g.useState(Gi);return g.useEffect(()=>(Ki.push(r),()=>{const o=Ki.indexOf(r);o>-1&&Ki.splice(o,1)}),[t]),{...t,toast:Nx,dismiss:o=>lo({type:"DISMISS_TOAST",toastId:o})}}var ha=Np();const Pp=Ep(ha);function _e(t,r,{checkForDefaultPrevented:o=!0}={}){return function(c){if(t?.(c),o===!1||!c.defaultPrevented)return r?.(c)}}function Sh(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}function Rp(...t){return r=>{let o=!1;const a=t.map(c=>{const d=Sh(c,r);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let c=0;c<a.length;c++){const d=a[c];typeof d=="function"?d():Sh(t[c],null)}}}}function dt(...t){return g.useCallback(Rp(...t),t)}function Tx(t,r){const o=g.createContext(r),a=d=>{const{children:h,...p}=d,m=g.useMemo(()=>p,Object.values(p));return i.jsx(o.Provider,{value:m,children:h})};a.displayName=t+"Provider";function c(d){const h=g.useContext(o);if(h)return h;if(r!==void 0)return r;throw new Error(`\`${d}\` must be used within \`${t}\``)}return[a,c]}function yo(t,r=[]){let o=[];function a(d,h){const p=g.createContext(h),m=o.length;o=[...o,h];const v=S=>{const{scope:k,children:w,...R}=S,x=k?.[t]?.[m]||p,j=g.useMemo(()=>R,Object.values(R));return i.jsx(x.Provider,{value:j,children:w})};v.displayName=d+"Provider";function b(S,k){const w=k?.[t]?.[m]||p,R=g.useContext(w);if(R)return R;if(h!==void 0)return h;throw new Error(`\`${S}\` must be used within \`${d}\``)}return[v,b]}const c=()=>{const d=o.map(h=>g.createContext(h));return function(p){const m=p?.[t]||d;return g.useMemo(()=>({[`__scope${t}`]:{...p,[t]:m}}),[p,m])}};return c.scopeName=t,[a,Px(c,...r)]}function Px(...t){const r=t[0];if(t.length===1)return r;const o=()=>{const a=t.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(d){const h=a.reduce((p,{useScope:m,scopeName:v})=>{const S=m(d)[`__scope${v}`];return{...p,...S}},{});return g.useMemo(()=>({[`__scope${r.scopeName}`]:h}),[h])}};return o.scopeName=r.scopeName,o}function co(t){const r=Ax(t),o=g.forwardRef((a,c)=>{const{children:d,...h}=a,p=g.Children.toArray(d),m=p.find(Ix);if(m){const v=m.props.children,b=p.map(S=>S===m?g.Children.count(v)>1?g.Children.only(null):g.isValidElement(v)?v.props.children:null:S);return i.jsx(r,{...h,ref:c,children:g.isValidElement(v)?g.cloneElement(v,void 0,b):null})}return i.jsx(r,{...h,ref:c,children:d})});return o.displayName=`${t}.Slot`,o}var Rx=co("Slot");function Ax(t){const r=g.forwardRef((o,a)=>{const{children:c,...d}=o;if(g.isValidElement(c)){const h=Lx(c),p=_x(d,c.props);return c.type!==g.Fragment&&(p.ref=a?Rp(a,h):h),g.cloneElement(c,p)}return g.Children.count(c)>1?g.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var Ap=Symbol("radix.slottable");function Ox(t){const r=({children:o})=>i.jsx(i.Fragment,{children:o});return r.displayName=`${t}.Slottable`,r.__radixId=Ap,r}function Ix(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Ap}function _x(t,r){const o={...r};for(const a in r){const c=t[a],d=r[a];/^on[A-Z]/.test(a)?c&&d?o[a]=(...p)=>{const m=d(...p);return c(...p),m}:c&&(o[a]=c):a==="style"?o[a]={...c,...d}:a==="className"&&(o[a]=[c,d].filter(Boolean).join(" "))}return{...t,...o}}function Lx(t){let r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?t.ref:(r=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}function Mx(t){const r=t+"CollectionProvider",[o,a]=yo(r),[c,d]=o(r,{collectionRef:{current:null},itemMap:new Map}),h=x=>{const{scope:j,children:P}=x,C=J.useRef(null),E=J.useRef(new Map).current;return i.jsx(c,{scope:j,itemMap:E,collectionRef:C,children:P})};h.displayName=r;const p=t+"CollectionSlot",m=co(p),v=J.forwardRef((x,j)=>{const{scope:P,children:C}=x,E=d(p,P),T=dt(j,E.collectionRef);return i.jsx(m,{ref:T,children:C})});v.displayName=p;const b=t+"CollectionItemSlot",S="data-radix-collection-item",k=co(b),w=J.forwardRef((x,j)=>{const{scope:P,children:C,...E}=x,T=J.useRef(null),_=dt(j,T),D=d(b,P);return J.useEffect(()=>(D.itemMap.set(T,{ref:T,...E}),()=>{D.itemMap.delete(T)}
vendor: 1,154 bytes, line 8
8)),i.jsx(k,{[S]:"",ref:_,children:C})});w.displayName=b;function R(x){const j=d(t+"CollectionConsumer",x);return J.useCallback(()=>{const C=j.collectionRef.current;if(!C)return[];const E=Array.from(C.querySelectorAll(`[${S}]`));return Array.from(j.itemMap.values()).sort((D,z)=>E.indexOf(D.ref.current)-E.indexOf(z.ref.current))},[j.collectionRef,j.itemMap])}return[{Provider:h,Slot:v,ItemSlot:w},R,a]}var Dx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=Dx.reduce((t,r)=>{const o=co(`Primitive.${r}`),a=g.forwardRef((c,d)=>{const{asChild:h,...p}=c,m=h?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(m,{...p,ref:d})});return a.displayName=`Primitive.${r}`,{...t,[r]:a}},{});function Op(t,r){t&&ha.flushSync(()=>t.dispatchEvent(r))}function mn(t){const r=g.useRef(t);return g.useEffect(()=>{r.current=t}),g.useMemo(()=>(...o)=>r.current?.(...o),[])}function Fx(t,r=globalThis?.document){const o=mn(t);g.useEffect(()=>{const a=c=>{c.key==="Escape"&&o(c)};return r.addEventListener("keydown",a,{capture:!0}),()=>r.removeEventListener("keydown",a,{capture:!0})},[o,r])}
vendor: 4,466 bytes, line 8
8var zx="DismissableLayer",Fc="dismissableLayer.update",$x="dismissableLayer.pointerDownOutside",Bx="dismissableLayer.focusOutside",jh,Ip=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pa=g.forwardRef((t,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:h,onDismiss:p,...m}=t,v=g.useContext(Ip),[b,S]=g.useState(null),k=b?.ownerDocument??globalThis?.document,[,w]=g.useState({}),R=dt(r,z=>S(z)),x=Array.from(v.layers),[j]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),P=x.indexOf(j),C=b?x.indexOf(b):-1,E=v.layersWithOutsidePointerEventsDisabled.size>0,T=C>=P,_=Ux(z=>{const U=z.target,X=[...v.branches].some(Z=>Z.contains(U));!T||X||(c?.(z),h?.(z),z.defaultPrevented||p?.())},k),D=Hx(z=>{const U=z.target;[...v.branches].some(Z=>Z.contains(U))||(d?.(z),h?.(z),z.defaultPrevented||p?.())},k);return Fx(z=>{C===v.layers.size-1&&(a?.(z),!z.defaultPrevented&&p&&(z.preventDefault(),p()))},k),g.useEffect(()=>{if(b)return o&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(jh=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(b)),v.layers.add(b),Ch(),()=>{o&&v.layersWithOutsidePointerEventsDisabled.size===1&&(k.body.style.pointerEvents=jh)}},[b,k,o,v]),g.useEffect(()=>()=>{b&&(v.layers.delete(b),v.layersWithOutsidePointerEventsDisabled.delete(b),Ch())},[b,v]),g.useEffect(()=>{const z=()=>w({});return document.addEventListener(Fc,z),()=>document.removeEventListener(Fc,z)},[]),i.jsx(Fe.div,{...m,ref:R,style:{pointerEvents:E?T?"auto":"none":void 0,...t.style},onFocusCapture:_e(t.onFocusCapture,D.onFocusCapture),onBlurCapture:_e(t.onBlurCapture,D.onBlurCapture),onPointerDownCapture:_e(t.onPointerDownCapture,_.onPointerDownCapture)})});pa.displayName=zx;var Wx="DismissableLayerBranch",_p=g.forwardRef((t,r)=>{const o=g.useContext(Ip),a=g.useRef(null),c=dt(r,a);return g.useEffect(()=>{const d=a.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),i.jsx(Fe.div,{...t,ref:c})});_p.displayName=Wx;function Ux(t,r=globalThis?.document){const o=mn(t),a=g.useRef(!1),c=g.useRef(()=>{});return g.useEffect(()=>{const d=p=>{if(p.target&&!a.current){let m=function(){Lp($x,o,v,{discrete:!0})};const v={originalEvent:p};p.pointerType==="touch"?(r.removeEventListener("click",c.current),c.current=m,r.addEventListener("click",c.current,{once:!0})):m()}else r.removeEventListener("click",c.current);a.current=!1},h=window.setTimeout(()=>{r.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(h),r.removeEventListener("pointerdown",d),r.removeEventListener("click",c.current)}},[r,o]),{onPointerDownCapture:()=>a.current=!0}}function Hx(t,r=globalThis?.document){const o=mn(t),a=g.useRef(!1);return g.useEffect(()=>{const c=d=>{d.target&&!a.current&&Lp(Bx,o,{originalEvent:d},{discrete:!1})};return r.addEventListener("focusin",c),()=>r.removeEventListener("focusin",c)},[r,o]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Ch(){const t=new CustomEvent(Fc);document.dispatchEvent(t)}function Lp(t,r,o,{discrete:a}){const c=o.originalEvent.target,d=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:o});r&&c.addEventListener(t,r,{once:!0}),a?Op(c,d):c.dispatchEvent(d)}var Vx=pa,Qx=_p,Tn=globalThis?.document?g.useLayoutEffect:()=>{},qx="Portal",lu=g.forwardRef((t,r)=>{const{container:o,...a}=t,[c,d]=g.useState(!1);Tn(()=>d(!0),[]);const h=o||c&&globalThis?.document?.body;return h?Pp.createPortal(i.jsx(Fe.div,{...a,ref:r}),h):null});lu.displayName=qx;function Yx(t,r){return g.useReducer((o,a)=>r[o][a]??o,t)}var fs=t=>{const{present:r,children:o}=t,a=Kx(r),c=typeof o=="function"?o({present:a.isPresent}):g.Children.only(o),d=dt(a.ref,Gx(c));return typeof o=="function"||a.isPresent?g.cloneElement(c,{ref:d}):null};fs.displayName="Presence";function Kx(t){const[r,o]=g.useState(),a=g.useRef(null),c=g.useRef(t),d=g.useRef("none"),h=t?"mounted":"unmounted",[p,m]=Yx(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const v=Fi(a.current);d.current=p==="mounted"?v:"none"},[p]),Tn(()=>{const v=a.current,b=c.current;if(b!==t){const k=d.current,w=Fi(v);t?m("MOUNT"):w==="none"||v?.display==="none"?m("UNMOUNT"):m(b&&k!==w?"ANIMATION_OUT":"UNMOUNT"),c.current=t}},[t,m]),Tn(()=>
8{if(r){let v;const b=r.ownerDocument.defaultView??window,S=w=>{const x=Fi(a.current).includes(w.animationName);if(w.target===r&&x&&(m("ANIMATION_END"),!c.current)){const j=r.style.animationFillMode;r.style.animationFillMode="forwards",v=b.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=j)})}},k=w=>{w.target===r&&(d.current=Fi(a.current))};return r.addEventListener("animationstart",k),r.addEventListener("animationcancel",S),r.addEventListener("animationend",S),()=>{b.clearTimeout(v),r.removeEventListener("animationstart",k),r.removeEventListener("animationcancel",S),r.removeEventListener("animationend",S)}}else m("ANIMATION_END")},[r,m]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:g.useCallback(v=>{a.current=v?getComputedStyle(v):null,o(v)},[])}}function Fi(t){return t?.animationName||"none"}function Gx(t){let r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?t.ref:(r=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}var Jx=au[" useInsertionEffect ".trim().toString()]||Tn;function Mp({prop:t,defaultProp:r,onChange:o=()=>{},caller:a}){const[c,d,h]=Xx({defaultProp:r,onChange:o}),p=t!==void 0,m=p?t:c;{const b=g.useRef(t!==void 0);g.useEffect(()=>{const S=b.current;S!==p&&console.warn(`${a} is changing from ${S?"controlled":"uncontrolled"} to ${p?"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.`),b.current=p},[p,a])}const v=g.useCallback(b=>{if(p){const S=Zx(b)?b(t):b;S!==t&&h.current?.(S)}else d(b)},[p,t,d,h]);return[m,v]}function Xx({defaultProp:t,onChange:r}){const[o,a]=g.useState(t),c=g.useRef(o),d=g.useRef(r);return Jx(()=>{d.current=r},[r]),g.useEffect(()=>{c.current!==o&&(d.current?.(o),c.current=o)},[o,c]),[o,a,d]}function Zx(t){return typeof t=="function"}var ew=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"}),tw="VisuallyHidden",ma=g.forwardRef((t,r)=>i.jsx(Fe.span,{...t,ref:r,style:{...ew,...t.style}}));ma.displayName=tw;var nw=ma,cu="ToastProvider",[uu,rw,sw]=Mx("Toast"),[Dp]=yo("Toast",[sw]),[ow,ga]=Dp(cu),Fp=t=>{const{__scopeToast:r,label:o="Notification",duration:a=5e3,swipeDirection:c="right",swipeThreshold:d=50,children:h}=t,[p,m]=g.useState(null),[v,b]=g.useState(0),S=g.useRef(!1),k=g.useRef(!1);return o.trim()||console.error(`Invalid prop \`label\` supplied to \`${cu}\`. Expected non-empty \`string\`.`),i.jsx(uu.Provider,{scope:r,children:i.jsx(ow,{scope:r,label:o,duration:a,swipeDirection:c,swipeThreshold:d,toastCount:v,viewport:p,onViewportChange:m,onToastAdd:g.useCallback(()=>b(w=>w+1),[]),onToastRemove:g.useCallback(()=>b(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:S,isClosePausedRef:k,children:h})})};Fp.displayName=cu;var zp="ToastViewport",iw=["F8"],zc="toast.viewportPause",$c="toast.viewportResume",$p=g.forwardRef((t,r)=>{const{__scopeToast:o,hotkey:a=iw,label:c="Notifications ({hotkey})",...d}=t,h=ga(zp,o),p=rw(o),m=g.useRef(null),v=g.useRef(null),b=g.useRef(null),S=g.useRef(null),k=dt(r,S,h.onViewportChange),w=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=h.toastCount>0;g.useEffect(()=>{const j=P=>{a.length!==0&&a.every(E=>P[E]||P.code===E)&&S.current?.focus()};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[a]),g.useEffect(()=>{const j=m.current,P=S.current;if(R&&j&&P){const C=()=>{if(!h.isClosePausedRef.current){const D=new CustomEvent(zc);P.dispatchEvent(D),h.isClosePausedRef.current=!0}},E=()=>{if(h.isClosePausedRef.current){const D=new CustomEvent($c);P.dispatchEvent(D),h.isClosePausedRef.current=!1}},T=D=>{!j.contains(D.relatedTarget)&&E()},_=()=>{j.contains(document.activeElement)||E()};return j.addEventListener("focusin",C),j.addEventListener("focusout",T),j.addEventListener("pointermove",C),j.addEventListener("pointerleave",_),window.addEventListener("blur",C),window.addEventListener("focus",E),()=>{j.removeEventListener("focusin",C),j.removeEventListener("focusout",T),j.removeEventListener("pointermove",C),j.removeEventListener("pointerleave",_),window.removeEventListener("blur",C),window.removeEventListener("focus",E)}}},[R,h.isClosePausedRef]);const x=g.useCallback(({tabbingDirection:j})=>{const C=p().map(E=>{const T=E.ref.current,_=[T,...xw(T)];return j==="forwards"?_:_.reverse()});return(j==="forwards"?C.reverse():C).flat()}
8,[p]);return g.useEffect(()=>{const j=S.current;if(j){const P=C=>{const E=C.altKey||C.ctrlKey||C.metaKey;if(C.key==="Tab"&&!E){const _=document.activeElement,D=C.shiftKey;if(C.target===j&&D){v.current?.focus();return}const X=x({tabbingDirection:D?"backwards":"forwards"}),Z=X.findIndex(he=>he===_);yc(X.slice(Z+1))?C.preventDefault():D?v.current?.focus():b.current?.focus()}};return j.addEventListener("keydown",P),()=>j.removeEventListener("keydown",P)}},[p,x]),i.jsxs(Qx,{ref:m,role:"region","aria-label":c.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:R?void 0:"none"},children:[R&&i.jsx(Bc,{ref:v,onFocusFromOutsideViewport:()=>{const j=x({tabbingDirection:"forwards"});yc(j)}}),i.jsx(uu.Slot,{scope:o,children:i.jsx(Fe.ol,{tabIndex:-1,...d,ref:k})}),R&&i.jsx(Bc,{ref:b,onFocusFromOutsideViewport:()=>{const j=x({tabbingDirection:"backwards"});yc(j)}})]})});$p.displayName=zp;var Bp="ToastFocusProxy",Bc=g.forwardRef((t,r)=>{const{__scopeToast:o,onFocusFromOutsideViewport:a,...c}=t,d=ga(Bp,o);return i.jsx(ma,{"aria-hidden":!0,tabIndex:0,...c,ref:r,style:{position:"fixed"},onFocus:h=>{const p=h.relatedTarget;!d.viewport?.contains(p)&&a()}})});Bc.displayName=Bp;var xo="Toast",aw="toast.swipeStart",lw="toast.swipeMove",cw="toast.swipeCancel",uw="toast.swipeEnd",Wp=g.forwardRef((t,r)=>{const{forceMount:o,open:a,defaultOpen:c,onOpenChange:d,...h}=t,[p,m]=Mp({prop:a,defaultProp:c??!0,onChange:d,caller:xo});return i.jsx(fs,{present:o||p,children:i.jsx(hw,{open:p,...h,ref:r,onClose:()=>m(!1),onPause:mn(t.onPause),onResume:mn(t.onResume),onSwipeStart:_e(t.onSwipeStart,v=>{v.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:_e(t.onSwipeMove,v=>{const{x:b,y:S}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","move"),v.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${b}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${S}px`)}),onSwipeCancel:_e(t.onSwipeCancel,v=>{v.currentTarget.setAttribute("data-swipe","cancel"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:_e(t.onSwipeEnd,v=>{const{x:b,y:S}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","end"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${b}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${S}px`),m(!1)})})})});Wp.displayName=xo;var[dw,fw]=Dp(xo,{onClose(){}}),hw=g.forwardRef((t,r)=>{const{__scopeToast:o,type:a="foreground",duration:c,open:d,onClose:h,onEscapeKeyDown:p,onPause:m,onResume:v,onSwipeStart:b,onSwipeMove:S,onSwipeCancel:k,onSwipeEnd:w,...R}=t,x=ga(xo,o),[j,P]=g.useState(null),C=dt(r,K=>P(K)),E=g.useRef(null),T=g.useRef(null),_=c||x.duration,D=g.useRef(0),z=g.useRef(_),U=g.useRef(0),{onToastAdd:X,onToastRemove:Z}=x,he=mn(()=>{j?.contains(document.activeElement)&&x.viewport?.focus(),h()}),Y=g.useCallback(K=>{!K||K===1/0||(window.clearTimeout(U.current),D.current=new Date().getTime(),U.current=window.setTimeout(he,K))},[he]);g.useEffect(()=>{const K=x.viewport;if(K){const me=()=>{Y(z.current),v?.()},ce=()=>{const ie=new Date().getTime()-D.current;z.current=z.current-ie,window.clearTimeout(U.current),m?.()};return K.addEventListener(zc,ce),K.addEventListener($c,me),()=>{K.removeEventListener(zc,ce),K.removeEventListener($c,me)}}},[x.viewport,_,m,v,Y]),g.useEffect(()=>{d&&!x.isClosePausedRef.current&&Y(_)},[d,_,x.isClosePausedRef,Y]),g.useEffect(()=>(X(),()=>Z()),[X,Z]);const te=g.useMemo(()=>j?Kp(j):null,[j]);return x.viewport?i.jsxs(i.Fragment,{children:[te&&i.jsx(pw,{__scopeToast:o,role:"status","aria-live":a==="foreground"?"assertive":"polite","aria-atomic":!0,children:te}),i.jsx(dw,{scope:o,onClose:he,children:ha.createPortal(i.jsx(uu.ItemSlot,{scope:o,children:i.jsx(Vx,{asChild:!0,onEscapeKeyDown:_e(p,()=>{x.isFocusedToastEscapeKeyDownRef.current||he(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:i.jsx(Fe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":x.swipeDirection,...R,ref:C,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:_e(t.onKeyDown,K=>{K.key==="Escape"&&(p?.(K.nativeEvent),K.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,he()
8))}),onPointerDown:_e(t.onPointerDown,K=>{K.button===0&&(E.current={x:K.clientX,y:K.clientY})}),onPointerMove:_e(t.onPointerMove,K=>{if(!E.current)return;const me=K.clientX-E.current.x,ce=K.clientY-E.current.y,ie=!!T.current,B=["left","right"].includes(x.swipeDirection),W=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,q=B?W(0,me):0,I=B?0:W(0,ce),$=K.pointerType==="touch"?10:2,ee={x:q,y:I},re={originalEvent:K,delta:ee};ie?(T.current=ee,zi(lw,S,re,{discrete:!1})):kh(ee,x.swipeDirection,$)?(T.current=ee,zi(aw,b,re,{discrete:!1}),K.target.setPointerCapture(K.pointerId)):(Math.abs(me)>$||Math.abs(ce)>$)&&(E.current=null)}),onPointerUp:_e(t.onPointerUp,K=>{const me=T.current,ce=K.target;if(ce.hasPointerCapture(K.pointerId)&&ce.releasePointerCapture(K.pointerId),T.current=null,E.current=null,me){const ie=K.currentTarget,B={originalEvent:K,delta:me};kh(me,x.swipeDirection,x.swipeThreshold)?zi(uw,w,B,{discrete:!0}):zi(cw,k,B,{discrete:!0}),ie.addEventListener("click",W=>W.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),pw=t=>{const{__scopeToast:r,children:o,...a}=t,c=ga(xo,r),[d,h]=g.useState(!1),[p,m]=g.useState(!1);return vw(()=>h(!0)),g.useEffect(()=>{const v=window.setTimeout(()=>m(!0),1e3);return()=>window.clearTimeout(v)},[]),p?null:i.jsx(lu,{asChild:!0,children:i.jsx(ma,{...a,children:d&&i.jsxs(i.Fragment,{children:[c.label," ",o]})})})},mw="ToastTitle",Up=g.forwardRef((t,r)=>{const{__scopeToast:o,...a}=t;return i.jsx(Fe.div,{...a,ref:r})});Up.displayName=mw;var gw="ToastDescription",Hp=g.forwardRef((t,r)=>{const{__scopeToast:o,...a}=t;return i.jsx(Fe.div,{...a,ref:r})});Hp.displayName=gw;var Vp="ToastAction",Qp=g.forwardRef((t,r)=>{const{altText:o,...a}=t;return o.trim()?i.jsx(Yp,{altText:o,asChild:!0,children:i.jsx(du,{...a,ref:r})}):(console.error(`Invalid prop \`altText\` supplied to \`${Vp}\`. Expected non-empty \`string\`.`),null)});Qp.displayName=Vp;var qp="ToastClose",du=g.forwardRef((t,r)=>{const{__scopeToast:o,...a}=t,c=fw(qp,o);return i.jsx(Yp,{asChild:!0,children:i.jsx(Fe.button,{type:"button",...a,ref:r,onClick:_e(t.onClick,c.onClose)})})});du.displayName=qp;var Yp=g.forwardRef((t,r)=>{const{__scopeToast:o,altText:a,...c}=t;return i.jsx(Fe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":a||void 0,...c,ref:r})});function Kp(t){const r=[];return Array.from(t.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&r.push(a.textContent),yw(a)){const c=a.ariaHidden||a.hidden||a.style.display==="none",d=a.dataset.radixToastAnnounceExclude==="";if(!c)if(d){const h=a.dataset.radixToastAnnounceAlt;h&&r.push(h)}else r.push(...Kp(a))}}),r}function zi(t,r,o,{discrete:a}){const c=o.originalEvent.currentTarget,d=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:o});r&&c.addEventListener(t,r,{once:!0}),a?Op(c,d):c.dispatchEvent(d)}var kh=(t,r,o=0)=>{const a=Math.abs(t.x),c=Math.abs(t.y),d=a>c;return r==="left"||r==="right"?d&&a>o:!d&&c>o};function vw(t=()=>{}){const r=mn(t);Tn(()=>{let o=0,a=0;return o=window.requestAnimationFrame(()=>a=window.requestAnimationFrame(r)),()=>{window.cancelAnimationFrame(o),window.cancelAnimationFrame(a)}},[r])}function yw(t){return t.nodeType===t.ELEMENT_NODE}function xw(t){const r=[],o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const c=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||c?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)r.push(o.currentNode);return r}function yc(t){const r=document.activeElement;return t.some(o=>o===r?!0:(o.focus(),document.activeElement!==r))}var ww=Fp,Gp=$p,Jp=Wp,Xp=Up,Zp=Hp,em=Qp,tm=du;function nm(t){var r,o,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var c=t.length;for(r=0;r<c;r++)t[r]&&(o=nm(t[r]))&&(a&&(a+=" "),a+=o)}else for(o in t)t[o]&&(a&&(a+=" "),a+=o);return a}function rm(){for(var t,r,o=0,a="",c=arguments.length;o<c;o++)(t=arguments[o])&&(r=nm(t))&&(a&&(a+=" "),a+=r);return a}const Eh=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Nh=rm,va=(t,r)=>o=>{var a;if(r?.variants==null)return Nh(t,o?.class,o?.className);const{variants:c,defaultVariants:d}=r,h=Object.keys(c).map(v=>{const b=o?.[v],S=d?.[v];if(b===null)return null;
vendor: 8,564 bytes, line 8
8const k=Eh(b)||Eh(S);return c[v][k]}),p=o&&Object.entries(o).reduce((v,b)=>{let[S,k]=b;return k===void 0||(v[S]=k),v},{}),m=r==null||(a=r.compoundVariants)===null||a===void 0?void 0:a.reduce((v,b)=>{let{class:S,className:k,...w}=b;return Object.entries(w).every(R=>{let[x,j]=R;return Array.isArray(j)?j.includes({...d,...p}[x]):{...d,...p}[x]===j})?[...v,S,k]:v},[]);return Nh(t,h,m,o?.class,o?.className)};const bw=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sm=(...t)=>t.filter((r,o,a)=>!!r&&r.trim()!==""&&a.indexOf(r)===o).join(" ").trim();var Sw={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"};const jw=g.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:c="",children:d,iconNode:h,...p},m)=>g.createElement("svg",{ref:m,...Sw,width:r,height:r,stroke:t,strokeWidth:a?Number(o)*24/Number(r):o,className:sm("lucide",c),...p},[...h.map(([v,b])=>g.createElement(v,b)),...Array.isArray(d)?d:[d]]));const Gt=(t,r)=>{const o=g.forwardRef(({className:a,...c},d)=>g.createElement(jw,{ref:d,iconNode:r,className:sm(`lucide-${bw(t)}`,a),...c}));return o.displayName=`${t}`,o};const Cw=Gt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const kw=Gt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Ew=Gt("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);const Nw=Gt("Instagram",[["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"}]]);const Tw=Gt("Linkedin",[["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"}]]);const om=Gt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const Pw=Gt("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);const Rw=Gt("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);const Aw=Gt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Ow=Gt("User",[["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"}]]);const fu=Gt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),hu="-",Iw=t=>{const r=Lw(t),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:h=>{const p=h.split(hu);return p[0]===""&&p.length!==1&&p.shift(),im(p,r)||_w(h)},getConflictingClassGroupIds:(h,p)=>{const m=o[h]||[];return p&&a[h]?[...m,...a[h]]:m}}},im=(t,r)=>{if(t.length===0)return r.classGroupId;const o=t[0],a=r.nextPart.get(o),c=a?im(t.slice(1),a):void 0;if(c)return c;if(r.validators.length===0)return;const d=t.join(hu);return r.validators.find(({validator:h})=>h(d))?.classGroupId},Th=/^\[(.+)\]$/,_w=t=>{if(Th.test(t)){const r=Th.exec(t)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},Lw=t=>{const{theme:r,prefix:o}=t,a={nextPart:new Map,validators:[]};return Dw(Object.entries(t.classGroups),o).forEach(([d,h])=>{Wc(h,a,d,r)}),a},Wc=(t,r,o,a)=>{t.forEach(c=>{if(typeof c=="string"){const d=c===""?r:Ph(r,c);d.classGroupId=o;return}if(typeof c=="function"){if(Mw(c)){Wc(c(a),r,o,a);return}r.validators.push({validator:c,classGroupId:o});return}Object.entries(c).forEach(([d,h])=>{Wc(h,Ph(r,d),o,a)})})},Ph=(t,r)=>{let o=t;return r.split(hu).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Mw=t=>t.isThemeGetter,Dw=(t,r)=>r?t.map(([o,a])=>{const c=a.map(d=>typeof d=="string"?r+d:typeof d=="object"?Object.fromEntries(Object.entries(d).map(([h,p])=>[r+h,p])):d);return[o,c]}):t,Fw=t=>{if(t<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,a=new Map;const c=(d,h)=>{o.set(d,h),r++,r>t&&(r=0,a=o,o=new Map)};return{get(d){let h=o.get(d);if(h!==void 0)return h;if((h=a.get(d))!==void 0)return c(d,h),h},set(d,h){o.has(d)?o.set(d,h):c(d,h)}}},am="!",zw=t=>{const{separator:r,experimentalParseClassName:o}=t,a=r.length===1,c=r[0],d=r.length,h=p=>{const m=[];let v=0,b=0,S;for(let j=0;j<p.length;j++){let P=p[j];if(v===0){if(P===c&&(a||p.slice(j,j+d)===r)){m.push(p.slice(b,j)),b=j+d;continue}if(P==="/"){S=j;continue}}P==="["?v++:P==="]"&&v--}const k=m.length===0?p:p.substring(b),w=k.startsWith(am),R=w?k.substring(1):k,x=S&&S>b?S-b:void 0;return{modifiers:m,hasImportantModifier:w,baseClassName:R,maybePostfixModifierPosition:x}};return o?p=>o({className:p,parseClassName:h}):h},$w=t=>{if(t.length<=1)return t;const r=[];let o=[];return t.forEach(a=>{a[0]==="["?(r.push(...o.sort(),a),o=[]):o.push(a)}),r.push(...o.sort()),r},Bw=t=>({cache:Fw(t.cacheSize),parseClassName:zw(t),...Iw(t)}),Ww=/\s+/,Uw=(t,r)=>{const{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:c}=r,d=[],h=t.trim().split(Ww);let p="";for(let m=h.length-1;m>=0;m-=1){const v=h[m],{modifiers:b,hasImportantModifier:S,baseClassName:k,maybePostfixModifierPosition:w}=o(v);let R=!!w,x=a(R?k.substring(0,w):k);if(!x){if(!R){p=v+(p.length>0?" "+p:p);continue}if(x=a(k),!x){p=v+(p.length>0?" "+p:p);continue}R=!1}const j=$w(b).join(":"),P=S?j+am:j,C=P+x;if(d.includes(C))continue;d.push(C);const E=c(x,R);for(let T=0;T<E.length;++T){const _=E[T];d.push(P+_)}p=v+(p.length>0?" "+p:p)}return p};function Hw(){let t=0,r,o,a="";for(;t<arguments.length;)(r=arguments[t++])&&(o=lm(r))&&(a&&(a+=" "),a+=o);return a}const lm=t=>{if(typeof t=="string")return t;let r,o="";for(let a=0;a<t.length;a++)t[a]&&(r=lm(t[a]))&&(o&&(o+=" "),o+=r);return o};function Vw(t,...r){let o,a,c,d=h;function h(m){const v=r.reduce((b,S)=>S(b),t());return o=Bw(v),a=o.cache.get,c=o.cache.set,d=p,p(m)}function p(m){const v=a(m);if(v)return v;const b=Uw(m,o);return c(m,b),b}return function(){return d(Hw.apply(null,arguments))}}const Oe=t=>{const r=o=>o[t]||[];return r.isThemeGetter=!0,r},cm=/^\[(?:([a-z-]+):)?(.+)\]$/i,Qw=/^\d+\/\d+$/,qw=new Set(["px","full","screen"]),Yw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kw=/\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$/,Gw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Jw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nn=t=>os(t)||qw.has(t)||Qw.test(t),er=t=>hs(t,"length",i0),os=t=>!!t&&!Number.isNaN(Number(t)),xc=t=>hs(t,"number",os),so=t=>!!t&&Number.isInteger(Number(t)),Zw=t=>t.endsWith("%")&&os(t.slice(0,-1)),xe=t=>cm.test(t),tr=t=>Yw.test(t),e0=new Set(["length","size","percentage"]),t0=t=>hs(t,e0,um),n0=t=>hs(t,"position",um),r0=new Set(["image","url"]),s0=t=>hs(t,r0,l0),o0=t=>hs(t,"",a0),oo=()=>!0,hs=(t,r,o)=>{const a=cm.exec(t);return a?a[1]?typeof r=="string"?a[1]===r:r.has(a[1]):o(a[2]):!1},i0=t=>Kw.test(t)&&!Gw.test(t),um=()=>!1,a0=t=>Jw.test(t),l0=t=>Xw.test(t),c0=()=>{const t=Oe("colors"),r=Oe("spacing"),o=Oe("blur"),a=Oe("brightness"),c=Oe("borderColor"),d=Oe("borderRadius"),h=Oe("borderSpacing"),p=Oe("borderWidth"),m=Oe("contrast"),v=Oe("grayscale"),b=Oe("hueRotate"),S=Oe("invert"),k=Oe("gap"),w=Oe("gradientColorStops"),R=Oe("gradientColorStopPositions"),x=Oe("inset"),j=Oe("margin"),P=Oe("opacity"),C=Oe("padding"),E=Oe("saturate"),T=Oe("scale"),_=Oe("sepia"),D=Oe("skew"),z=Oe("space"),U=Oe("translate"),X=()=>["auto","contain","none"],Z=()=>["auto","hidden","clip","visible","scroll"],he=()=>["auto",xe,r],Y=()=>[xe,r],te=()=>["",Nn,er],K=()=>["auto",os,xe],me=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ce=()=>["solid","dashed","dotted","double","none"],ie=()=>["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"],W=()=>["","0",xe],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[os,xe];return{cacheSize:500,separator:":",theme:{colors:[oo],spacing:[Nn,er],blur:["none","",tr,xe],brightness:I(),borderColor:[t],borderRadius:["n
8one","","full",tr,xe],borderSpacing:Y(),borderWidth:te(),contrast:I(),grayscale:W(),hueRotate:I(),invert:W(),gap:Y(),gradientColorStops:[t],gradientColorStopPositions:[Zw,er],inset:he(),margin:he(),opacity:I(),padding:Y(),saturate:I(),scale:I(),sepia:W(),skew:I(),space:Y(),translate:Y()},classGroups:{aspect:[{aspect:["auto","square","video",xe]}],container:["container"],columns:[{columns:[tr]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...me(),xe]}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",so,xe]}],basis:[{basis:he()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xe]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",so,xe]}],"grid-cols":[{"grid-cols":[oo]}],"col-start-end":[{col:["auto",{span:["full",so,xe]},xe]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[oo]}],"row-start-end":[{row:["auto",{span:[so,xe]},xe]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xe]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"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:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[j]}],mx:[{mx:[j]}],my:[{my:[j]}],ms:[{ms:[j]}],me:[{me:[j]}],mt:[{mt:[j]}],mr:[{mr:[j]}],mb:[{mb:[j]}],ml:[{ml:[j]}],"space-x":[{"space-x":[z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xe,r]}],"min-w":[{"min-w":[xe,r,"min","max","fit"]}],"max-w":[{"max-w":[xe,r,"none","full","min","max","fit","prose",{screen:[tr]},tr]}],h:[{h:[xe,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xe,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xe,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xe,r,"auto","min","max","fit"]}],"font-size":[{text:["base",tr,er]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xc]}],"font-family":[{font:[oo]}],"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",xe]}],"line-clamp":[{"line-clamp":["none",os,xc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Nn,xe]}],"list-image":[{"list-image":["none",xe]}],"list-style-type":[{list:["none","disc","decimal",xe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Nn,er]}],"underline-offset":[{"underline-offset":["auto",Nn,xe]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe]}],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",xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...me(),n0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",t0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},s0]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[R]}
vendor: 5,186 bytes, line 8
8],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[d]}],"rounded-s":[{"rounded-s":[d]}],"rounded-e":[{"rounded-e":[d]}],"rounded-t":[{"rounded-t":[d]}],"rounded-r":[{"rounded-r":[d]}],"rounded-b":[{"rounded-b":[d]}],"rounded-l":[{"rounded-l":[d]}],"rounded-ss":[{"rounded-ss":[d]}],"rounded-se":[{"rounded-se":[d]}],"rounded-ee":[{"rounded-ee":[d]}],"rounded-es":[{"rounded-es":[d]}],"rounded-tl":[{"rounded-tl":[d]}],"rounded-tr":[{"rounded-tr":[d]}],"rounded-br":[{"rounded-br":[d]}],"rounded-bl":[{"rounded-bl":[d]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...ce(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:ce()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...ce()]}],"outline-offset":[{"outline-offset":[Nn,xe]}],"outline-w":[{outline:[Nn,er]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[Nn,er]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",tr,o0]}],"shadow-color":[{shadow:[oo]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",tr,xe]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[S]}],saturate:[{saturate:[E]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[h]}],"border-spacing-x":[{"border-spacing-x":[h]}],"border-spacing-y":[{"border-spacing-y":[h]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",xe]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",xe]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",xe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[so,xe]}],"translate-x":[{"translate-x":[U]}],"translate-y":[{"translate-y":[U]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xe]}],accent:[{accent:["auto",t]}],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",xe]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"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"]}
8],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",xe]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Nn,er,xc]}],stroke:[{stroke:[t,"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"]}}},u0=Vw(c0);function ze(...t){return u0(rm(t))}const d0=ww,dm=g.forwardRef(({className:t,...r},o)=>i.jsx(Gp,{ref:o,className:ze("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]",t),...r}));dm.displayName=Gp.displayName;const f0=va("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),fm=g.forwardRef(({className:t,variant:r,...o},a)=>i.jsx(Jp,{ref:a,className:ze(f0({variant:r}),t),...o}));fm.displayName=Jp.displayName;const h0=g.forwardRef(({className:t,...r},o)=>i.jsx(em,{ref:o,className:ze("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 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",t),...r}));h0.displayName=em.displayName;const hm=g.forwardRef(({className:t,...r},o)=>i.jsx(tm,{ref:o,className:ze("absolute right-2 top-2 rounded-md p-1 text-foreground
8/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 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",t),"toast-close":"",...r,children:i.jsx(fu,{className:"h-4 w-4"})}));hm.displayName=tm.displayName;const pm=g.forwardRef(({className:t,...r},o)=>i.jsx(Xp,{ref:o,className:ze("text-sm font-semibold",t),...r}));pm.displayName=Xp.displayName;const mm=g.forwardRef(({className:t,...r},o)=>i.jsx(Zp,{ref:o,className:ze("text-sm opacity-90",t),...r}));mm.displayName=Zp.displayName;function p0(){const{toasts:t}=Tp();return i.jsxs(d0,{children:[t.map(function({id:r,title:o,description:a,action:c,...d}){return i.jsxs(fm,{...d,children:[i.jsxs("div",{className:"grid gap-1",children:[o&&i.jsx(pm,{children:o}),a&&i.jsx(mm,{children:a})]}),c,i.jsx(hm,{})]},r)}),i.jsx(dm,{})]})}var na=["light","dark"],pu="(prefers-color-scheme: dark)",m0=typeof window>"u",mu=g.createContext(void 0),g0={setTheme:t=>{},themes:[]},v0=()=>{var t;return(t=g.useContext(mu))!=null?t:g0},y0=t=>g.useContext(mu)?t.children:g.createElement(w0,{...t}),x0=["light","dark"],w0=({forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:o=!0,enableColorScheme:a=!0,storageKey:c="theme",themes:d=x0,defaultTheme:h=o?"system":"light",attribute:p="data-theme",value:m,children:v,nonce:b})=>{let[S,k]=g.useState(()=>Rh(c,h)),[w,R]=g.useState(()=>Rh(c)),x=m?Object.values(m):d,j=g.useCallback(T=>{let _=T;if(!_)return;T==="system"&&o&&(_=Ah());let D=m?m[_]:_,z=r?S0():null,U=document.documentElement;if(p==="class"?(U.classList.remove(...x),D&&U.classList.add(D)):D?U.setAttribute(p,D):U.removeAttribute(p),a){let X=na.includes(h)?h:null,Z=na.includes(_)?_:X;U.style.colorScheme=Z}z?.()},[]),P=g.useCallback(T=>{let _=typeof T=="function"?T(T):T;k(_);try{localStorage.setItem(c,_)}catch{}},[t]),C=g.useCallback(T=>{let _=Ah(T);R(_),S==="system"&&o&&!t&&j("system")},[S,t]);g.useEffect(()=>{let T=window.matchMedia(pu);return T.addListener(C),C(T),()=>T.removeListener(C)},[C]),g.useEffect(()=>{let T=_=>{if(_.key!==c)return;let D=_.newValue||h;P(D)};return window.addEventListener("storage",T),()=>window.removeEventListener("storage",T)},[P]),g.useEffect(()=>{j(t??S)},[t,S]);let E=g.useMemo(()=>({theme:S,setTheme:P,forcedTheme:t,resolvedTheme:S==="system"?w:S,themes:o?[...d,"system"]:d,systemTheme:o?w:void 0}),[S,P,t,w,o,d]);return g.createElement(mu.Provider,{value:E},g.createElement(b0,{forcedTheme:t,disableTransitionOnChange:r,enableSystem:o,enableColorScheme:a,storageKey:c,themes:d,defaultTheme:h,attribute:p,value:m,children:v,attrs:x,nonce:b}),v)},b0=g.memo(({forcedTheme:t,storageKey:r,attribute:o,enableSystem:a,enableColorScheme:c,defaultTheme:d,value:h,attrs:p,nonce:m})=>{let v=d==="system",b=o==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${p.map(R=>`'${R}'`).join(",")})`};`:`var d=document.documentElement,n='${o}',s='setAttribute';`,S=c?na.includes(d)&&d?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${d}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",k=(R,x=!1,j=!0)=>{let P=h?h[R]:R,C=x?R+"|| ''":`'${P}'`,E="";return c&&j&&!x&&na.includes(R)&&(E+=`d.style.colorScheme = '${R}';`),o==="class"?x||P?E+=`c.add(${C})`:E+="null":P&&(E+=`d[s](n,${C})`),E},w=t?`!function(){${b}${k(t)}}()`:a?`!function(){try{${b}var e=localStorage.getItem('${r}');if('system'===e||(!e&&${v})){var t='${pu}',m=window.matchMedia(t);if(m.media!==t||m.matches){${k("dark")}}else{${k("light")}}}else if(e){${h?`var x=${JSON.stringify(h)};`:""}${k(h?"x[e]":"e",!0)}}${v?"":"else{"+k(d,!1,!1)+"}"}${S}}catch(e){}}()`:`!function(){try{${b}var e=localStorage.getItem('${r}');if(e){${h?`var x=${JSON.stringify(h)};`:""}${k(h?"x[e]":"e",!0)}}else{${k(d,!1,!1)};}${S}}catch(t){}}();`;return g.createElement("script",{nonce:m,dangerouslySetInnerHTML:{__html:w}})}),Rh=(t,r)=>{if(m0)return;let o;try{o=localStorage.getItem(t)||void 0}catch{}return o||r},S0=()=>{let t=document.createElement("style");return t.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},Ah=t=>
8(t||(t=window.matchMedia(pu)),t.matches?"dark":"light"),j0=t=>{switch(t){case"success":return E0;case"info":return T0;case"warning":return N0;case"error":return P0;default:return null}},C0=Array(12).fill(0),k0=({visible:t,className:r})=>J.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":t},J.createElement("div",{className:"sonner-spinner"},C0.map((o,a)=>J.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),E0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),N0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),T0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),P0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),R0=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},J.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),J.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),A0=()=>{let[t,r]=J.useState(document.hidden);return J.useEffect(()=>{let o=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),t},Uc=1,O0=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;let{message:o,...a}=t,c=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Uc++,d=this.toasts.find(p=>p.id===c),h=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),d?this.toasts=this.toasts.map(p=>p.id===c?(this.publish({...p,...t,id:c,title:o}),{...p,...t,id:c,dismissible:h,title:o}):p):this.addToast({title:o,...a,dismissible:h,id:c}),c},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(r=>{this.subscribers.forEach(o=>o({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:t,dismiss:!0})),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let o;r.loading!==void 0&&(o=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let a=t instanceof Promise?t:t(),c=o!==void 0,d,h=a.then(async m=>{if(d=["resolve",m],J.isValidElement(m))c=!1,this.create({id:o,type:"default",message:m});else if(_0(m)&&!m.ok){c=!1;let v=typeof r.error=="function"?await r.error(`HTTP error! status: ${m.status}`):r.error,b=typeof r.description=="function"?await r.description(`HTTP error! status: ${m.status}`):r.description;this.create({id:o,type:"error",message:v,description:b})}else if(r.success!==void 0){c=!1;let v=typeof r.success=="function"?await r.success(m):r.success,b=typeof r.description=="function"?await r.description(m):r.description;this.create({id:o,type:"success",message:v,description:b})}}).catch(async m=>{if(d=["reject",m],r.error!==void 0){c=!1;let v=typeof r.error=="function"?await r.error(m):r.error,b=typeof r.description=="function"?await r.description(m):r.description;this.create({id:o,type:"error",message:v,description:b})}}).finally(()=>{var m;c&&(this.dismiss(o),o=void 0),(m=r.finally)==null||m.call(r)}),p=()=>new Promise((m,v)=>h.then(()=>d[0]==="reject"?v(d[1]):m(d[1])).catch(v));return typeof o!="string"&&typeof o!="number"?{unwrap:p}:Object.assign(o,{unwrap:p})},this.custom=(t,r)=>{let o=r?.id||Uc++;return this.create({jsx:t(o),id:o,...r}),o},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},wt=new O0,I0=(t,r)=>{let o=r?.id||Uc++;return wt.addToast({title:t,...r,id:o}),o},_0=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",L0=I0,M0=()=>wt.toasts,D0=()=>wt.getActiveToasts();Object.assign(L0,{success:wt.success,info:wt.info,warning:wt.warning,error:wt.error,custom:wt.custom,message:wt.message,promise:wt.promise,dismiss:wt.dismiss,loading:wt.loading},{getHistory:M0,getToasts:D0});function F0(t,{insertAt:r}={}){if(typeof document>"u")return;let o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",r==="top"&&o.firstChild?o.insertBefore(a,o.firstChild):o.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}F0(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
8left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
8:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
8--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 9`);function $i(t){return t.label!==void 0}var z0=3,$0="32px",B0="16px",Oh=4e3,W0=356,U0=14,H0=20,V0=200;function Vt(...t){return t.filter(Boolean).join(" ")}function Q0(t){let[r,o]=t.split("-"),a=[];return r&&a.push(r),o&&a.push(o),a}var q0=t=>{var r,o,a,c,d,h,p,m,v,b,S;let{invert:k,toast:w,unstyled:R,interacting:x,setHeights:j,visibleToasts:P,heights:C,index:E,toasts:T,expanded:_,removeToast:D,defaultRichColors:z,closeButton:U,style:X,cancelButtonStyle:Z,actionButtonStyle:he,className:Y="",descriptionClassName:te="",duration:K,position:me,gap:ce,loadingIcon:ie,expandByDefault:B,classNames:W,icons:q,closeButtonAriaLabel:I="Close toast",pauseWhenPageIsHidden:$}=t,[ee,re]=J.useState(null),[pe,ye]=J.useState(null),[ue,be]=J.useState(!1),[Ce,We]=J.useState(!1),[Nt,On]=J.useState(!1),[Tt,vs]=J.useState(!1),[jo,ys]=J.useState(!1),[xs,Tr]=J.useState(0),[ws,In]=J.useState(0),Pt=J.useRef(w.duration||K||Oh),Pr=J.useRef(null),Xt=J.useRef(null),Co=E===0,ko=E+1<=P,ot=w.type,Zt=w.dismissible!==!1,Rr=w.className||"",E
9o=w.descriptionClassName||"",en=J.useMemo(()=>C.findIndex(ve=>ve.toastId===w.id)||0,[C,w.id]),cr=J.useMemo(()=>{var ve;return(ve=w.closeButton)!=null?ve:U},[w.closeButton,U]),No=J.useMemo(()=>w.duration||K||Oh,[w.duration,K]),Ar=J.useRef(0),yn=J.useRef(0),To=J.useRef(0),tn=J.useRef(null),[bs,Ss]=me.split("-"),Or=J.useMemo(()=>C.reduce((ve,Ee,Te)=>Te>=en?ve:ve+Ee.height,0),[C,en]),Ir=A0(),_n=w.invert||k,nn=ot==="loading";yn.current=J.useMemo(()=>en*ce+Or,[en,Or]),J.useEffect(()=>{Pt.current=No},[No]),J.useEffect(()=>{be(!0)},[]),J.useEffect(()=>{let ve=Xt.current;if(ve){let Ee=ve.getBoundingClientRect().height;return In(Ee),j(Te=>[{toastId:w.id,height:Ee,position:w.position},...Te]),()=>j(Te=>Te.filter(it=>it.toastId!==w.id))}},[j,w.id]),J.useLayoutEffect(()=>{if(!ue)return;let ve=Xt.current,Ee=ve.style.height;ve.style.height="auto";let Te=ve.getBoundingClientRect().height;ve.style.height=Ee,In(Te),j(it=>it.find(ft=>ft.toastId===w.id)?it.map(ft=>ft.toastId===w.id?{...ft,height:Te}:ft):[{toastId:w.id,height:Te,position:w.position},...it])},[ue,w.title,w.description,j,w.id]);let Mt=J.useCallback(()=>{We(!0),Tr(yn.current),j(ve=>ve.filter(Ee=>Ee.toastId!==w.id)),setTimeout(()=>{D(w)},V0)},[w,D,j,yn]);J.useEffect(()=>{if(w.promise&&ot==="loading"||w.duration===1/0||w.type==="loading")return;let ve;return _||x||$&&Ir?(()=>{if(To.current<Ar.current){let Ee=new Date().getTime()-Ar.current;Pt.current=Pt.current-Ee}To.current=new Date().getTime()})():Pt.current!==1/0&&(Ar.current=new Date().getTime(),ve=setTimeout(()=>{var Ee;(Ee=w.onAutoClose)==null||Ee.call(w,w),Mt()},Pt.current)),()=>clearTimeout(ve)},[_,x,w,ot,$,Ir,Mt]),J.useEffect(()=>{w.delete&&Mt()},[Mt,w.delete]);function Po(){var ve,Ee,Te;return q!=null&&q.loading?J.createElement("div",{className:Vt(W?.loader,(ve=w?.classNames)==null?void 0:ve.loader,"sonner-loader"),"data-visible":ot==="loading"},q.loading):ie?J.createElement("div",{className:Vt(W?.loader,(Ee=w?.classNames)==null?void 0:Ee.loader,"sonner-loader"),"data-visible":ot==="loading"},ie):J.createElement(k0,{className:Vt(W?.loader,(Te=w?.classNames)==null?void 0:Te.loader),visible:ot==="loading"})}return J.createElement("li",{tabIndex:0,ref:Xt,className:Vt(Y,Rr,W?.toast,(r=w?.classNames)==null?void 0:r.toast,W?.default,W?.[ot],(o=w?.classNames)==null?void 0:o[ot]),"data-sonner-toast":"","data-rich-colors":(a=w.richColors)!=null?a:z,"data-styled":!(w.jsx||w.unstyled||R),"data-mounted":ue,"data-promise":!!w.promise,"data-swiped":jo,"data-removed":Ce,"data-visible":ko,"data-y-position":bs,"data-x-position":Ss,"data-index":E,"data-front":Co,"data-swiping":Nt,"data-dismissible":Zt,"data-type":ot,"data-invert":_n,"data-swipe-out":Tt,"data-swipe-direction":pe,"data-expanded":!!(_||B&&ue),style:{"--index":E,"--toasts-before":E,"--z-index":T.length-E,"--offset":`${Ce?xs:yn.current}px`,"--initial-height":B?"auto":`${ws}px`,...X,...w.style},onDragEnd:()=>{On(!1),re(null),tn.current=null},onPointerDown:ve=>{nn||!Zt||(Pr.current=new Date,Tr(yn.current),ve.target.setPointerCapture(ve.pointerId),ve.target.tagName!=="BUTTON"&&(On(!0),tn.current={x:ve.clientX,y:ve.clientY}))},onPointerUp:()=>{var ve,Ee,Te,it;if(Tt||!Zt)return;tn.current=null;let ft=Number(((ve=Xt.current)==null?void 0:ve.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ht=Number(((Ee=Xt.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Dt=new Date().getTime()-((Te=Pr.current)==null?void 0:Te.getTime()),Ge=ee==="x"?ft:ht,rn=Math.abs(Ge)/Dt;if(Math.abs(Ge)>=H0||rn>.11){Tr(yn.current),(it=w.onDismiss)==null||it.call(w,w),ye(ee==="x"?ft>0?"right":"left":ht>0?"down":"up"),Mt(),vs(!0),ys(!1);return}On(!1),re(null)},onPointerMove:ve=>{var Ee,Te,it,ft;if(!tn.current||!Zt||((Ee=window.getSelection())==null?void 0:Ee.toString().length)>0)return;let ht=ve.clientY-tn.current.y,Dt=ve.clientX-tn.current.x,Ge=(Te=t.swipeDirections)!=null?Te:Q0(me);!ee&&(Math.abs(Dt)>1||Math.abs(ht)>1)&&re(Math.abs(Dt)>Math.abs(ht)?"x":"y");let rn={x:0,y:0};ee==="y"?(Ge.includes("top")||Ge.includes("bottom"))&&(Ge.includes("top")&&ht<0||Ge.includes("bottom")&&ht>0)&&(rn.y=ht):ee==="x"&&(Ge.includes("left")||Ge.includes("right"))&&(Ge.includes("left")&&Dt<0||Ge.includes("right")&&Dt>0)&&(rn.x=Dt),(Math.abs(rn.x)>0||Math.abs(rn.y)>0)&&ys(!0),(it=Xt.current)==null||it.style.setProperty("--swipe-amount-x",`${rn.x}px`),(ft=Xt.current)==null||ft.style.setProperty("--swipe-amount-y",`${rn.y}px`)}},cr&&!w.jsx?J.createElement("button",{"aria-label":I,"data-disabled":nn,"data-close-button":!0,onClick:nn||!Zt?()=>{}:()=>{var ve;Mt(),(ve=w.onDismiss)==null||ve.call(w,w)},className:Vt(W?.closeButton,(c=w?.classNames)==null?void 0:c.closeButton)},(d=q?.close)!=null?d:R0):null,w.jsx||g.isValidElement(w.title)?w.jsx?w.jsx:typeof w.title=="function"?w.title():w.title:J.createElement(J.Fragment,null,ot||w.icon||w.promise?J.createElement("div",{"data-icon":"",className:Vt(W?.icon,(h=w?.classNames)==null?void 0:h.icon)},w.promise||w.type==="loading"&&!w.icon?w.icon||Po():null,w.type!=="loading"?w.icon||q?.[ot]||j0(ot):null):null,J.createElement("div",{"data-content":"",className:Vt(W?.content,(p=w?.classNames)==null?void 0:p.content)},J.createElement("div",{"data-title":"",className:Vt(W?.title,(m=w?.classNames)==null?void 0:m.title)},typeof w.title=="function"?w.title():w.title),w.description?J.createElement("div",{"data-description":"",className:Vt(te,Eo,W?.de
9scription,(v=w?.classNames)==null?void 0:v.description)},typeof w.description=="function"?w.description():w.description):null),g.isValidElement(w.cancel)?w.cancel:w.cancel&&$i(w.cancel)?J.createElement("button",{"data-button":!0,"data-cancel":!0,style:w.cancelButtonStyle||Z,onClick:ve=>{var Ee,Te;$i(w.cancel)&&Zt&&((Te=(Ee=w.cancel).onClick)==null||Te.call(Ee,ve),Mt())},className:Vt(W?.cancelButton,(b=w?.classNames)==null?void 0:b.cancelButton)},w.cancel.label):null,g.isValidElement(w.action)?w.action:w.action&&$i(w.action)?J.createElement("button",{"data-button":!0,"data-action":!0,style:w.actionButtonStyle||he,onClick:ve=>{var Ee,Te;$i(w.action)&&((Te=(Ee=w.action).onClick)==null||Te.call(Ee,ve),!ve.defaultPrevented&&Mt())},className:Vt(W?.actionButton,(S=w?.classNames)==null?void 0:S.actionButton)},w.action.label):null))};function Ih(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function Y0(t,r){let o={};return[t,r].forEach((a,c)=>{let d=c===1,h=d?"--mobile-offset":"--offset",p=d?B0:$0;function m(v){["top","right","bottom","left"].forEach(b=>{o[`${h}-${b}`]=typeof v=="number"?`${v}px`:v})}typeof a=="number"||typeof a=="string"?m(a):typeof a=="object"?["top","right","bottom","left"].forEach(v=>{a[v]===void 0?o[`${h}-${v}`]=p:o[`${h}-${v}`]=typeof a[v]=="number"?`${a[v]}px`:a[v]}):m(p)}),o}var K0=g.forwardRef(function(t,r){let{invert:o,position:a="bottom-right",hotkey:c=["altKey","KeyT"],expand:d,closeButton:h,className:p,offset:m,mobileOffset:v,theme:b="light",richColors:S,duration:k,style:w,visibleToasts:R=z0,toastOptions:x,dir:j=Ih(),gap:P=U0,loadingIcon:C,icons:E,containerAriaLabel:T="Notifications",pauseWhenPageIsHidden:_}=t,[D,z]=J.useState([]),U=J.useMemo(()=>Array.from(new Set([a].concat(D.filter($=>$.position).map($=>$.position)))),[D,a]),[X,Z]=J.useState([]),[he,Y]=J.useState(!1),[te,K]=J.useState(!1),[me,ce]=J.useState(b!=="system"?b:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ie=J.useRef(null),B=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),W=J.useRef(null),q=J.useRef(!1),I=J.useCallback($=>{z(ee=>{var re;return(re=ee.find(pe=>pe.id===$.id))!=null&&re.delete||wt.dismiss($.id),ee.filter(({id:pe})=>pe!==$.id)})},[]);return J.useEffect(()=>wt.subscribe($=>{if($.dismiss){z(ee=>ee.map(re=>re.id===$.id?{...re,delete:!0}:re));return}setTimeout(()=>{Pp.flushSync(()=>{z(ee=>{let re=ee.findIndex(pe=>pe.id===$.id);return re!==-1?[...ee.slice(0,re),{...ee[re],...$},...ee.slice(re+1)]:[$,...ee]})})})}),[]),J.useEffect(()=>{if(b!=="system"){ce(b);return}if(b==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ce("dark"):ce("light")),typeof window>"u")return;let $=window.matchMedia("(prefers-color-scheme: dark)");try{$.addEventListener("change",({matches:ee})=>{ce(ee?"dark":"light")})}catch{$.addListener(({matches:re})=>{try{ce(re?"dark":"light")}catch(pe){console.error(pe)}})}},[b]),J.useEffect(()=>{D.length<=1&&Y(!1)},[D]),J.useEffect(()=>{let $=ee=>{var re,pe;c.every(ye=>ee[ye]||ee.code===ye)&&(Y(!0),(re=ie.current)==null||re.focus()),ee.code==="Escape"&&(document.activeElement===ie.current||(pe=ie.current)!=null&&pe.contains(document.activeElement))&&Y(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[c]),J.useEffect(()=>{if(ie.current)return()=>{W.current&&(W.current.focus({preventScroll:!0}),W.current=null,q.current=!1)}},[ie.current]),J.createElement("section",{ref:r,"aria-label":`${T} ${B}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},U.map(($,ee)=>{var re;let[pe,ye]=$.split("-");return D.length?J.createElement("ol",{key:$,dir:j==="auto"?Ih():j,tabIndex:-1,ref:ie,className:p,"data-sonner-toaster":!0,"data-theme":me,"data-y-position":pe,"data-lifted":he&&D.length>1&&!d,"data-x-position":ye,style:{"--front-toast-height":`${((re=X[0])==null?void 0:re.height)||0}px`,"--width":`${W0}px`,"--gap":`${P}px`,...w,...Y0(m,v)},onBlur:ue=>{q.current&&!ue.currentTarget.contains(ue.relatedTarget)&&(q.current=!1,W.current&&(W.current.focus({preventScroll:!0}),W.current=null))},onFocus:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||q.current||(q.current=!0,W.current=ue.relatedTarget)},onMouseEnter:()=>Y(!0),onMouseMove:()=>Y(!0),onMouseLeave:()=>{te||Y(!1)},onDragEnd:()=>Y(!1),onPointerDown:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||K(!0)},onPointerUp:()=>K(!1)},D.filter(ue=>!ue.position&&ee===0||ue.position===$).map((ue,be)=>{var Ce,We;return J.createElement(q0,{key:ue.id,icons:E,index:be,toast:ue,defaultRichColors:S,duration:(Ce=x?.duration)!=null?Ce:k,className:x?.className,descriptionClassName:x?.descriptionClassName,invert:o,visibleToasts:R,closeButton:(We=x?.closeButton)!=null?We:h,interacting:te,position:$,style:x?.style,unstyled:x?.unstyled,classNames:x?.classNames,cancelButtonStyle:x?.cancelButtonStyle,actionButtonStyle:x?.actionButtonStyle,removeToast:I,toasts:D.filter(Nt=>Nt.position==ue.position),heights:X.filter(Nt=>Nt.position==ue.position),setHeights:Z,expandByDefault:d,gap:P,loadingIcon:C,expanded:he,pauseWhenPageIsHidden:_,swipeDirections:t.swipeDirections})})):null}))});const G0=({...t})=>{const{theme:r="system"}=v0();return i.jsx(K0,{theme:r,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};var J0=au[" useId ".trim().toString()]||(()=>{}),X0=0;function wc(t){const[r,o]=g.useState(J0());return Tn(()=>{o(a=>a??String(X0++))},[t]),t||(r?`radix-${r}`:"")}const Z0=["top","right","bottom","left"],or=Math.min,kt=Math.max,ra=Math.round,Bi=Math.floor,pn=t=>({x:t,y:t}
vendor: 11,968 bytes, line 9
9),e1={left:"right",right:"left",bottom:"top",top:"bottom"},t1={start:"end",end:"start"};function Hc(t,r,o){return kt(t,or(r,o))}function Pn(t,r){return typeof t=="function"?t(r):t}function Rn(t){return t.split("-")[0]}function ps(t){return t.split("-")[1]}function gu(t){return t==="x"?"y":"x"}function vu(t){return t==="y"?"height":"width"}const n1=new Set(["top","bottom"]);function hn(t){return n1.has(Rn(t))?"y":"x"}function yu(t){return gu(hn(t))}function r1(t,r,o){o===void 0&&(o=!1);const a=ps(t),c=yu(t),d=vu(c);let h=c==="x"?a===(o?"end":"start")?"right":"left":a==="start"?"bottom":"top";return r.reference[d]>r.floating[d]&&(h=sa(h)),[h,sa(h)]}function s1(t){const r=sa(t);return[Vc(t),r,Vc(r)]}function Vc(t){return t.replace(/start|end/g,r=>t1[r])}const _h=["left","right"],Lh=["right","left"],o1=["top","bottom"],i1=["bottom","top"];function a1(t,r,o){switch(t){case"top":case"bottom":return o?r?Lh:_h:r?_h:Lh;case"left":case"right":return r?o1:i1;default:return[]}}function l1(t,r,o,a){const c=ps(t);let d=a1(Rn(t),o==="start",a);return c&&(d=d.map(h=>h+"-"+c),r&&(d=d.concat(d.map(Vc)))),d}function sa(t){return t.replace(/left|right|bottom|top/g,r=>e1[r])}function c1(t){return{top:0,right:0,bottom:0,left:0,...t}}function gm(t){return typeof t!="number"?c1(t):{top:t,right:t,bottom:t,left:t}}function oa(t){const{x:r,y:o,width:a,height:c}=t;return{width:a,height:c,top:o,left:r,right:r+a,bottom:o+c,x:r,y:o}}function Mh(t,r,o){let{reference:a,floating:c}=t;const d=hn(r),h=yu(r),p=vu(h),m=Rn(r),v=d==="y",b=a.x+a.width/2-c.width/2,S=a.y+a.height/2-c.height/2,k=a[p]/2-c[p]/2;let w;switch(m){case"top":w={x:b,y:a.y-c.height};break;case"bottom":w={x:b,y:a.y+a.height};break;case"right":w={x:a.x+a.width,y:S};break;case"left":w={x:a.x-c.width,y:S};break;default:w={x:a.x,y:a.y}}switch(ps(r)){case"start":w[h]-=k*(o&&v?-1:1);break;case"end":w[h]+=k*(o&&v?-1:1);break}return w}const u1=async(t,r,o)=>{const{placement:a="bottom",strategy:c="absolute",middleware:d=[],platform:h}=o,p=d.filter(Boolean),m=await(h.isRTL==null?void 0:h.isRTL(r));let v=await h.getElementRects({reference:t,floating:r,strategy:c}),{x:b,y:S}=Mh(v,a,m),k=a,w={},R=0;for(let x=0;x<p.length;x++){const{name:j,fn:P}=p[x],{x:C,y:E,data:T,reset:_}=await P({x:b,y:S,initialPlacement:a,placement:k,strategy:c,middlewareData:w,rects:v,platform:h,elements:{reference:t,floating:r}});b=C??b,S=E??S,w={...w,[j]:{...w[j],...T}},_&&R<=50&&(R++,typeof _=="object"&&(_.placement&&(k=_.placement),_.rects&&(v=_.rects===!0?await h.getElementRects({reference:t,floating:r,strategy:c}):_.rects),{x:b,y:S}=Mh(v,k,m)),x=-1)}return{x:b,y:S,placement:k,strategy:c,middlewareData:w}};async function uo(t,r){var o;r===void 0&&(r={});const{x:a,y:c,platform:d,rects:h,elements:p,strategy:m}=t,{boundary:v="clippingAncestors",rootBoundary:b="viewport",elementContext:S="floating",altBoundary:k=!1,padding:w=0}=Pn(r,t),R=gm(w),j=p[k?S==="floating"?"reference":"floating":S],P=oa(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(j)))==null||o?j:j.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:v,rootBoundary:b,strategy:m})),C=S==="floating"?{x:a,y:c,width:h.floating.width,height:h.floating.height}:h.reference,E=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p.floating)),T=await(d.isElement==null?void 0:d.isElement(E))?await(d.getScale==null?void 0:d.getScale(E))||{x:1,y:1}:{x:1,y:1},_=oa(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:C,offsetParent:E,strategy:m}):C);return{top:(P.top-_.top+R.top)/T.y,bottom:(_.bottom-P.bottom+R.bottom)/T.y,left:(P.left-_.left+R.left)/T.x,right:(_.right-P.right+R.right)/T.x}}const d1=t=>({name:"arrow",options:t,async fn(r){const{x:o,y:a,placement:c,rects:d,platform:h,elements:p,middlewareData:m}=r,{element:v,padding:b=0}=Pn(t,r)||{};if(v==null)return{};const S=gm(b),k={x:o,y:a},w=yu(c),R=vu(w),x=await h.getDimensions(v),j=w==="y",P=j?"top":"left",C=j?"bottom":"right",E=j?"clientHeight":"clientWidth",T=d.reference[R]+d.reference[w]-k[w]-d.floating[R],_=k[w]-d.reference[w],D=await(h.getOffsetParent==null?void 0:h.getOffsetParent(v));let z=D?D[E]:0;(!z||!await(h.isElement==null?void 0:h.isElement(D)))&&(z=p.floating[E]||d.floating[R]);const U=T/2-_/2,X=z/2-x[R]/2-1,Z=or(S[P],X),he=or(S[C],X),Y=Z,te=z-x[R]-he,K=z/2-x[R]/2+U,me=Hc(Y,K,te),ce=!m.arrow&&ps(c)!=null&&K!==me&&d.reference[R]/2-(K<Y?Z:he)-x[R]/2<0,ie=ce?K<Y?K-Y:K-te:0;return{[w]:k[w]+ie,data:{[w]:me,centerOffset:K-me-ie,...ce&&{alignmentOffset:ie}},reset:ce}}}),f1=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var o,a;const{placement:c,middlewareData:d,rects:h,initialPlacement:p,platform:m,elements:v}=r,{mainAxis:b=!0,crossAxis:S=!0,fallbackPlacements:k,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:x=!0,...j}=Pn(t,r);if((o=d.arrow)!=null&&o.alignmentOffset)return{};const P=Rn(c),C=hn(p),E=Rn(p)===p,T=await(m.isRTL==null?void 0:m.isRTL(v.floating)),_=k||(E||!x?[sa(p)]:s1(p)),D=R!=="none";!k&&D&&_.push(...l1(p,x,R,T));const z=[p,..._],U=await uo(r,j),X=[];let Z=((a=d.flip)==null?void 0:a.overflows)||[];if(b&&X.push(U[P]),S){const K=r1(c,h,T);X.push(U[K[0]],U[K[1]])}if(Z=[...Z,{placement:c,overflows:X}],!X.every(K=>K<=0)){var he,Y;const K=(((he=d.flip)==null?void 0:he.index)||0)+1,me=z[K];if(me&&(!(S==="alignment"?C!==hn(me):!1)||Z.every(B=>B.overflows[0]>0&&hn(B.placement)===C)))return{data:{index:K,overflows:Z},reset:{placement:me}};let ce=(Y=Z.filter(ie=>ie.overflows[0]<=0).sort((ie,B)=>ie.overflows[1]-B.overflows[1])[0])==null?void 0:Y.placement;if(!ce)switch(w){case"bestFit":{var te;const ie=(te=Z.filter(B=>{if(D){const W=hn(B.placement);return W===C||W==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(W=>W>0).reduce((W,q)=>W+q,0)]).sort((B,W)=>B[1]-W[1])[0])==null?void 0:te[0];ie&&(ce=ie);break}case"initialPlacement":ce=p;break}if(c!==ce)return{reset:{placement:ce}}}return{}}}};function Dh(t,r){return{top:t.top-r.height,right:t.right-r.width,bottom:t.bottom-r.height,left:t.left-r.width}}function Fh(t){return Z0.some(r=>t[r]>=0)}const h1=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(r){const{rects:o}=r,{strategy:a="referenceHidden",...c}=Pn(t,r);switch(a){case"referenceHidden":{const d=await uo(r,{...c,elementContext:"reference"}),h=Dh(d,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Fh(h)}}}case"escaped":{const d=await uo(r,{...c,altBoundary:!0}),h=Dh(d,o.floating);return{data:{escapedOffsets:h,escaped:Fh(h)}}}default:return{}}}}},vm=new Set(["left","top"]);async function p1(t,r){const{placement:o,platform:a,elements:c}=t,d=await(a.isRTL==null?void 0:a.isRTL(c.floating)),h=Rn(o),p=ps(o),m=hn(o)==="y",v=vm.has(h)?-1:1,b=d&&m?-1:1,S=Pn(r,t);let{mainAxis:k,crossAxis:w,alignmentAxis:R}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return p&&typeof R=="number"&&(w=p==="end"?R*-1:R),m?{x:w*b,y:k*v}:{x:k*v,y:w*b}}const m1=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){var o,a;const{x:c,y:d,placement:h,middlewareData:p}=r,m=await p1(r,t);return h===((o=p.offset)==null?void 0:o.placement)&&(a=p.arrow)!=null&&a.alignmentOffset?{}:{x:c+m.x,y:d+m.y,data:{...m,placement:h}}}}},g1=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:o,y:a,placement:c}=r,{mainAxis:d=!0,crossAxis:h=!1,limiter:p={fn:j=>{let{x:P,y:C}=j;return{x:P,y:C}}},...m}=Pn(t,r),v={x:o,y:a},b=await uo(r,m),S=hn(Rn(c)),k=gu(S);let w=v[k],R=v[S];if(d){const j=k==="y"?"top":"left",P=k==="y"?"bottom":"right",C=w+b[j],E=w-b[P];w=Hc(C,w,E)}if(h){const j=S==="y"?"top":"left",P=S==="y"?"bottom":"right",C=R+b[j],E=R-b[P];R=Hc(C,R,E)}const x=p.fn({...r,[k]:w,[S]:R});return{...x,data:{x:x.x-o,y:x.y-a,enabled:{[k]:d,[S]:h}}}}}},v1=function(t){return t===void 0&&(t={}),{options:t,fn(r){const{x:o,y:a,placement:c,rects:d,middlewareData:h}=r,{offset:p=0,mainAxis:m=!0,crossAxis:v=!0}=Pn(t,r),b={x:o,y:a},S=hn(c),k=gu(S);let w=b[k],R=b[S];const x=Pn(p,r),j=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(m){const E=k==="y"?"height":"width",T=d.reference[k]-d.floating[E]+j.mainAxis,_=d.reference[k]+d.reference[E]-j.mainAxis;w<T?w=T:w>_&&(w=_)}if(v){var P,C;const E=k==="y"?"width":"height",T=vm.has(Rn(c)),_=d.reference[S]-d.floating[E]+(T&&((P=h.offset)==null?void 0:P[S])||0)+(T?0:j.crossAxis),D=d.reference[S]+d.reference[E]+(T?0:((C=h.offset)==null?void 0:C[S])||0)-(T?j.crossAxis:0);R<_?R=_:R>D&&(R=D)}return{[k]:w,[S]:R}}}},y1=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){var o,a;const{placement:c,rects:d,platform:h,elements:p}=r,{apply:m=()=>{},...v}=Pn(t,r),b=await uo(r,v),S=Rn(c),k=ps(c),w=hn(c)==="y",{width:R,height:x}=d.floating;let j,P;S==="top"||S==="bottom"?(j=S,P=k===(await(h.isRTL==null?void 0:h.isRTL(p.floating))?"start":"end")?"left":"right"):(P=S,j=k==="end"?"top":"bottom");const C=x-b.top-b.bottom,E=R-b.left-b.right,T=or(x-b[j],C),_=or(R-b[P],E),D=!r.middlewareData.shift;let z=T,U=_;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(U=E),(a=r.middlewareData.shift)!=null&&a.enabled.y&&(z=C),D&&!k){const Z=kt(b.left,0),he=kt(b.right,0),Y=kt(b.top,0),te=kt(b.bottom,0);w?U=R-2*(Z!==0||he!==0?Z+he:kt(b.left,b.right)):z=x-2*(Y!==0||te!==0?Y+te:kt(b.top,b.bottom))}await m({...r,availableWidth:U,availableHeight:z});const X=await h.getDimensions(p.floating);return R!==X.width||x!==X.height?{reset:{rects:!0}}:{}}}};function ya(){return typeof window<"u"}function ms(t){return ym(t)?(t.nodeName||"").toLowerCase():"#document"}function Et(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function vn(t){var r;return(r=(ym(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function ym(t){return ya()?t instanceof Node||t instanceof Et(t).Node:!1}function Yt(t){return ya()?t instanceof Element||t instanceof Et(t).Element:!1}function gn(t){return ya()?t instanceof HTMLElement||t instanceof Et(t).HTMLElement:!1}function zh(t){return!ya()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Et(t).ShadowRoot}const x1=new Set(["inline","contents"]);function wo(t){const{overflow:r,overflowX:o,overflowY:a,display:c}=Kt(t);return/auto|scroll|overlay|hidden|clip/.test(r+a+o)&&!x1.has(c)}const w1=new Set(["table","td","th"]);function b1(t){return w1.has(ms(t))}const S1=[":popover-open",":modal"];function xa(t){return S1.some(r=>{try{return t.matches(r)}catch{return!1}})}const j1=["transform","translate","scale","rotate","perspective"],C1=["transform","translate","scale","rotate","perspective","filter"],k1=["paint","layout","strict","content"];function xu(t){const r=wu(),o=Yt(t)?Kt(t):t;return j1.some(a=>o[a]?o[a]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||C1.some(a=>(o.willChange||"").includes(a))||k1.some(a=>(o.contain||"").includes(a))}function E1(t){let r=ir(t);for(;gn(r)&&!cs(r);){if(xu(r))return r;if(xa(r))return null;r=ir(r)}return null}function wu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const N1=new Set(["html","body","#document"]);function cs(t){return N1.has(ms(t))}function Kt(t){return Et(t).getComputedStyle(t)}function wa(t){return Yt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ir(t){if(ms(t)==="html")return t;const r=t.assignedSlot||t.parentNode||zh(t)&&t.host||vn(t);return zh(r)?r.host:r}function xm(t){const r=ir(t);return cs(r)?t.ownerDocument?t.ownerDocument.body:t.body:gn(r)&&wo(r)?r:xm(r)}function fo(t,r,o){var a;r===void 0&&(r=[]),o===void 0&&(o=!0);const c=xm(t),d=c===((a=t.ownerDocument)==null?void 0:a.body),h=Et(c);if(d){const p=Qc(h);
vendor: 4,818 bytes, line 9
9return r.concat(h,h.visualViewport||[],wo(c)?c:[],p&&o?fo(p):[])}return r.concat(c,fo(c,[],o))}function Qc(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function wm(t){const r=Kt(t);let o=parseFloat(r.width)||0,a=parseFloat(r.height)||0;const c=gn(t),d=c?t.offsetWidth:o,h=c?t.offsetHeight:a,p=ra(o)!==d||ra(a)!==h;return p&&(o=d,a=h),{width:o,height:a,$:p}}function bu(t){return Yt(t)?t:t.contextElement}function is(t){const r=bu(t);if(!gn(r))return pn(1);const o=r.getBoundingClientRect(),{width:a,height:c,$:d}=wm(r);let h=(d?ra(o.width):o.width)/a,p=(d?ra(o.height):o.height)/c;return(!h||!Number.isFinite(h))&&(h=1),(!p||!Number.isFinite(p))&&(p=1),{x:h,y:p}}const T1=pn(0);function bm(t){const r=Et(t);return!wu()||!r.visualViewport?T1:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function P1(t,r,o){return r===void 0&&(r=!1),!o||r&&o!==Et(t)?!1:r}function Cr(t,r,o,a){r===void 0&&(r=!1),o===void 0&&(o=!1);const c=t.getBoundingClientRect(),d=bu(t);let h=pn(1);r&&(a?Yt(a)&&(h=is(a)):h=is(t));const p=P1(d,o,a)?bm(d):pn(0);let m=(c.left+p.x)/h.x,v=(c.top+p.y)/h.y,b=c.width/h.x,S=c.height/h.y;if(d){const k=Et(d),w=a&&Yt(a)?Et(a):a;let R=k,x=Qc(R);for(;x&&a&&w!==R;){const j=is(x),P=x.getBoundingClientRect(),C=Kt(x),E=P.left+(x.clientLeft+parseFloat(C.paddingLeft))*j.x,T=P.top+(x.clientTop+parseFloat(C.paddingTop))*j.y;m*=j.x,v*=j.y,b*=j.x,S*=j.y,m+=E,v+=T,R=Et(x),x=Qc(R)}}return oa({width:b,height:S,x:m,y:v})}function Su(t,r){const o=wa(t).scrollLeft;return r?r.left+o:Cr(vn(t)).left+o}function Sm(t,r,o){o===void 0&&(o=!1);const a=t.getBoundingClientRect(),c=a.left+r.scrollLeft-(o?0:Su(t,a)),d=a.top+r.scrollTop;return{x:c,y:d}}function R1(t){let{elements:r,rect:o,offsetParent:a,strategy:c}=t;const d=c==="fixed",h=vn(a),p=r?xa(r.floating):!1;if(a===h||p&&d)return o;let m={scrollLeft:0,scrollTop:0},v=pn(1);const b=pn(0),S=gn(a);if((S||!S&&!d)&&((ms(a)!=="body"||wo(h))&&(m=wa(a)),gn(a))){const w=Cr(a);v=is(a),b.x=w.x+a.clientLeft,b.y=w.y+a.clientTop}const k=h&&!S&&!d?Sm(h,m,!0):pn(0);return{width:o.width*v.x,height:o.height*v.y,x:o.x*v.x-m.scrollLeft*v.x+b.x+k.x,y:o.y*v.y-m.scrollTop*v.y+b.y+k.y}}function A1(t){return Array.from(t.getClientRects())}function O1(t){const r=vn(t),o=wa(t),a=t.ownerDocument.body,c=kt(r.scrollWidth,r.clientWidth,a.scrollWidth,a.clientWidth),d=kt(r.scrollHeight,r.clientHeight,a.scrollHeight,a.clientHeight);let h=-o.scrollLeft+Su(t);const p=-o.scrollTop;return Kt(a).direction==="rtl"&&(h+=kt(r.clientWidth,a.clientWidth)-c),{width:c,height:d,x:h,y:p}}function I1(t,r){const o=Et(t),a=vn(t),c=o.visualViewport;let d=a.clientWidth,h=a.clientHeight,p=0,m=0;if(c){d=c.width,h=c.height;const v=wu();(!v||v&&r==="fixed")&&(p=c.offsetLeft,m=c.offsetTop)}return{width:d,height:h,x:p,y:m}}const _1=new Set(["absolute","fixed"]);function L1(t,r){const o=Cr(t,!0,r==="fixed"),a=o.top+t.clientTop,c=o.left+t.clientLeft,d=gn(t)?is(t):pn(1),h=t.clientWidth*d.x,p=t.clientHeight*d.y,m=c*d.x,v=a*d.y;return{width:h,height:p,x:m,y:v}}function $h(t,r,o){let a;if(r==="viewport")a=I1(t,o);else if(r==="document")a=O1(vn(t));else if(Yt(r))a=L1(r,o);else{const c=bm(t);a={x:r.x-c.x,y:r.y-c.y,width:r.width,height:r.height}}return oa(a)}function jm(t,r){const o=ir(t);return o===r||!Yt(o)||cs(o)?!1:Kt(o).position==="fixed"||jm(o,r)}function M1(t,r){const o=r.get(t);if(o)return o;let a=fo(t,[],!1).filter(p=>Yt(p)&&ms(p)!=="body"),c=null;const d=Kt(t).position==="fixed";let h=d?ir(t):t;for(;Yt(h)&&!cs(h);){const p=Kt(h),m=xu(h);!m&&p.position==="fixed"&&(c=null),(d?!m&&!c:!m&&p.position==="static"&&!!c&&_1.has(c.position)||wo(h)&&!m&&jm(t,h))?a=a.filter(b=>b!==h):c=p,h=ir(h)}return r.set(t,a),a}function D1(t){let{element:r,boundary:o,rootBoundary:a,strategy:c}=t;const h=[...o==="clippingAncestors"?xa(r)?[]:M1(r,this._c):[].concat(o),a],p=h[0],m=h.reduce((v,b)=>{const S=$h(r,b,c);return v.top=kt(S.top,v.top),v.right=or(S.right,v.right),v.bottom=or(S.bottom,v.bottom),v.left=kt(S.left,v.left),v},$h(r,p,c));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function F1(t){const{width:r,height:o}=wm(t);return{width:r,height:o}}function z1(t,r,o){const a=gn(r),c=vn(r),d=o==="fixed",h=Cr(t,!0,d,r);let p={scrollLeft:0,scrollTop:0};const m=pn(0);function v(){m.x=Su(c)}if(a||!a&&!d)if((ms(r)!=="body"||wo(c))&&(p=wa(r)),a){const w=Cr(r,!0,d,r);m.x=w.x+r.clientLeft,m.y=w.y+r.clientTop}else c&&v();d&&!a&&c&&v();const b=c&&!a&&!d?Sm(c,p):pn(0),S=h.left+p.scrollLeft-m.x-b.x,k=h.top+p.scrollTop-m.y-b.y;return{x:S,y:k,width:h.width,height:h.height}}function bc(t){return Kt(t).position==="static"}function Bh(t,r){if(!gn(t)||Kt(t).position==="fixed")return null;if(r)return r(t);let o=t.offsetParent;return vn(t)===o&&(o=o.ownerDocument.body),o}function Cm(t,r){const o=Et(t);if(xa(t))return o;if(!gn(t)){let c=ir(t);for(;
vendor: 4,336 bytes, line 9
9c&&!cs(c);){if(Yt(c)&&!bc(c))return c;c=ir(c)}return o}let a=Bh(t,r);for(;a&&b1(a)&&bc(a);)a=Bh(a,r);return a&&cs(a)&&bc(a)&&!xu(a)?o:a||E1(t)||o}const $1=async function(t){const r=this.getOffsetParent||Cm,o=this.getDimensions,a=await o(t.floating);return{reference:z1(t.reference,await r(t.floating),t.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function B1(t){return Kt(t).direction==="rtl"}const W1={convertOffsetParentRelativeRectToViewportRelativeRect:R1,getDocumentElement:vn,getClippingRect:D1,getOffsetParent:Cm,getElementRects:$1,getClientRects:A1,getDimensions:F1,getScale:is,isElement:Yt,isRTL:B1};function km(t,r){return t.x===r.x&&t.y===r.y&&t.width===r.width&&t.height===r.height}function U1(t,r){let o=null,a;const c=vn(t);function d(){var p;clearTimeout(a),(p=o)==null||p.disconnect(),o=null}function h(p,m){p===void 0&&(p=!1),m===void 0&&(m=1),d();const v=t.getBoundingClientRect(),{left:b,top:S,width:k,height:w}=v;if(p||r(),!k||!w)return;const R=Bi(S),x=Bi(c.clientWidth-(b+k)),j=Bi(c.clientHeight-(S+w)),P=Bi(b),E={rootMargin:-R+"px "+-x+"px "+-j+"px "+-P+"px",threshold:kt(0,or(1,m))||1};let T=!0;function _(D){const z=D[0].intersectionRatio;if(z!==m){if(!T)return h();z?h(!1,z):a=setTimeout(()=>{h(!1,1e-7)},1e3)}z===1&&!km(v,t.getBoundingClientRect())&&h(),T=!1}try{o=new IntersectionObserver(_,{...E,root:c.ownerDocument})}catch{o=new IntersectionObserver(_,E)}o.observe(t)}return h(!0),d}function H1(t,r,o,a){a===void 0&&(a={});const{ancestorScroll:c=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:m=!1}=a,v=bu(t),b=c||d?[...v?fo(v):[],...fo(r)]:[];b.forEach(P=>{c&&P.addEventListener("scroll",o,{passive:!0}),d&&P.addEventListener("resize",o)});const S=v&&p?U1(v,o):null;let k=-1,w=null;h&&(w=new ResizeObserver(P=>{let[C]=P;C&&C.target===v&&w&&(w.unobserve(r),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var E;(E=w)==null||E.observe(r)})),o()}),v&&!m&&w.observe(v),w.observe(r));let R,x=m?Cr(t):null;m&&j();function j(){const P=Cr(t);x&&!km(x,P)&&o(),x=P,R=requestAnimationFrame(j)}return o(),()=>{var P;b.forEach(C=>{c&&C.removeEventListener("scroll",o),d&&C.removeEventListener("resize",o)}),S?.(),(P=w)==null||P.disconnect(),w=null,m&&cancelAnimationFrame(R)}}const V1=m1,Q1=g1,q1=f1,Y1=y1,K1=h1,Wh=d1,G1=v1,J1=(t,r,o)=>{const a=new Map,c={platform:W1,...o},d={...c.platform,_c:a};return u1(t,r,{...c,platform:d})};var X1=typeof document<"u",Z1=function(){},Ji=X1?g.useLayoutEffect:Z1;function ia(t,r){if(t===r)return!0;if(typeof t!=typeof r)return!1;if(typeof t=="function"&&t.toString()===r.toString())return!0;let o,a,c;if(t&&r&&typeof t=="object"){if(Array.isArray(t)){if(o=t.length,o!==r.length)return!1;for(a=o;a--!==0;)if(!ia(t[a],r[a]))return!1;return!0}if(c=Object.keys(t),o=c.length,o!==Object.keys(r).length)return!1;for(a=o;a--!==0;)if(!{}.hasOwnProperty.call(r,c[a]))return!1;for(a=o;a--!==0;){const d=c[a];if(!(d==="_owner"&&t.$$typeof)&&!ia(t[d],r[d]))return!1}return!0}return t!==t&&r!==r}function Em(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Uh(t,r){const o=Em(t);return Math.round(r*o)/o}function Sc(t){const r=g.useRef(t);return Ji(()=>{r.current=t}),r}function eb(t){t===void 0&&(t={});const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:c,elements:{reference:d,floating:h}={},transform:p=!0,whileElementsMounted:m,open:v}=t,[b,S]=g.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[k,w]=g.useState(a);ia(k,a)||w(a);const[R,x]=g.useState(null),[j,P]=g.useState(null),C=g.useCallback(B=>{B!==D.current&&(D.current=B,x(B))},[]),E=g.useCallback(B=>{B!==z.current&&(z.current=B,P(B))},[]),T=d||R,_=h||j,D=g.useRef(null),z=g.useRef(null),U=g.useRef(b),X=m!=null,Z=Sc(m),he=Sc(c),Y=Sc(v),te=g.useCallback(()=>{if(!D.current||!z.current)return;const B={placement:r,strategy:o,middleware:k};he.current&&(B.platform=he.current),J1(D.current,z.current,B).then(W=>{const q={...W,isPositioned:Y.current!==!1};K.current&&!ia(U.current,q)&&(U.current=q,ha.flushSync(()=>{S(q)}))})},[k,r,o,he,Y]);Ji(()=>{v===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,S(B=>({...B,isPositioned:!1})))},[v]);const K=g.useRef(!1);Ji(()=>(K.current=!0,()=>{K.current=!1}),[]),Ji(()=>
vendor: 4,442 bytes, line 9
9{if(T&&(D.current=T),_&&(z.current=_),T&&_){if(Z.current)return Z.current(T,_,te);te()}},[T,_,te,Z,X]);const me=g.useMemo(()=>({reference:D,floating:z,setReference:C,setFloating:E}),[C,E]),ce=g.useMemo(()=>({reference:T,floating:_}),[T,_]),ie=g.useMemo(()=>{const B={position:o,left:0,top:0};if(!ce.floating)return B;const W=Uh(ce.floating,b.x),q=Uh(ce.floating,b.y);return p?{...B,transform:"translate("+W+"px, "+q+"px)",...Em(ce.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:W,top:q}},[o,p,ce.floating,b.x,b.y]);return g.useMemo(()=>({...b,update:te,refs:me,elements:ce,floatingStyles:ie}),[b,te,me,ce,ie])}const tb=t=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:t,fn(o){const{element:a,padding:c}=typeof t=="function"?t(o):t;return a&&r(a)?a.current!=null?Wh({element:a.current,padding:c}).fn(o):{}:a?Wh({element:a,padding:c}).fn(o):{}}}},nb=(t,r)=>({...V1(t),options:[t,r]}),rb=(t,r)=>({...Q1(t),options:[t,r]}),sb=(t,r)=>({...G1(t),options:[t,r]}),ob=(t,r)=>({...q1(t),options:[t,r]}),ib=(t,r)=>({...Y1(t),options:[t,r]}),ab=(t,r)=>({...K1(t),options:[t,r]}),lb=(t,r)=>({...tb(t),options:[t,r]});var cb="Arrow",Nm=g.forwardRef((t,r)=>{const{children:o,width:a=10,height:c=5,...d}=t;return i.jsx(Fe.svg,{...d,ref:r,width:a,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?o:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});Nm.displayName=cb;var ub=Nm;function db(t){const[r,o]=g.useState(void 0);return Tn(()=>{if(t){o({width:t.offsetWidth,height:t.offsetHeight});const a=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const d=c[0];let h,p;if("borderBoxSize"in d){const m=d.borderBoxSize,v=Array.isArray(m)?m[0]:m;h=v.inlineSize,p=v.blockSize}else h=t.offsetWidth,p=t.offsetHeight;o({width:h,height:p})});return a.observe(t,{box:"border-box"}),()=>a.unobserve(t)}else o(void 0)},[t]),r}var Tm="Popper",[Pm,Rm]=yo(Tm),[EE,Am]=Pm(Tm),Om="PopperAnchor",Im=g.forwardRef((t,r)=>{const{__scopePopper:o,virtualRef:a,...c}=t,d=Am(Om,o),h=g.useRef(null),p=dt(r,h);return g.useEffect(()=>{d.onAnchorChange(a?.current||h.current)}),a?null:i.jsx(Fe.div,{...c,ref:p})});Im.displayName=Om;var ju="PopperContent",[fb,hb]=Pm(ju),_m=g.forwardRef((t,r)=>{const{__scopePopper:o,side:a="bottom",sideOffset:c=0,align:d="center",alignOffset:h=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:v=[],collisionPadding:b=0,sticky:S="partial",hideWhenDetached:k=!1,updatePositionStrategy:w="optimized",onPlaced:R,...x}=t,j=Am(ju,o),[P,C]=g.useState(null),E=dt(r,ue=>C(ue)),[T,_]=g.useState(null),D=db(T),z=D?.width??0,U=D?.height??0,X=a+(d!=="center"?"-"+d:""),Z=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},he=Array.isArray(v)?v:[v],Y=he.length>0,te={padding:Z,boundary:he.filter(mb),altBoundary:Y},{refs:K,floatingStyles:me,placement:ce,isPositioned:ie,middlewareData:B}=eb({strategy:"fixed",placement:X,whileElementsMounted:(...ue)=>H1(...ue,{animationFrame:w==="always"}),elements:{reference:j.anchor},middleware:[nb({mainAxis:c+U,alignmentAxis:h}),m&&rb({mainAxis:!0,crossAxis:!1,limiter:S==="partial"?sb():void 0,...te}),m&&ob({...te}),ib({...te,apply:({elements:ue,rects:be,availableWidth:Ce,availableHeight:We})=>{const{width:Nt,height:On}=be.reference,Tt=ue.floating.style;Tt.setProperty("--radix-popper-available-width",`${Ce}px`),Tt.setProperty("--radix-popper-available-height",`${We}px`),Tt.setProperty("--radix-popper-anchor-width",`${Nt}px`),Tt.setProperty("--radix-popper-anchor-height",`${On}px`)}}),T&&lb({element:T,padding:p}),gb({arrowWidth:z,arrowHeight:U}),k&&ab({strategy:"referenceHidden",...te})]}),[W,q]=Dm(ce),I=mn(R);Tn(()=>{ie&&I?.()},[ie,I]);const $=B.arrow?.x,ee=B.arrow?.y,re=B.arrow?.centerOffset!==0,[pe,ye]=g.useState();return Tn(()=>{P&&ye(window.getComputedStyle(P).zIndex)},[P]),i.jsx("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:ie?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:i.jsx(fb,{scope:o,placedSide:W,onArrowChange:_,arrowX:$,arrowY:ee,shouldHideArrow:re,children:i.jsx(Fe.div,{"data-side":W,"data-align":q,...x,ref:E,style:{...x.style,animation:ie?void 0:"none"}})})})});_m.displayName=ju;var Lm="PopperArrow",pb={top:"bottom",right:"left",bottom:"top",left:"r
9ight"},Mm=g.forwardRef(function(r,o){const{__scopePopper:a,...c}=r,d=hb(Lm,a),h=pb[d.placedSide];return i.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:i.jsx(ub,{...c,ref:o,style:{...c.style,display:"block"}})})});Mm.displayName=Lm;function mb(t){return t!==null}var gb=t=>({name:"transformOrigin",options:t,fn(r){const{placement:o,rects:a,middlewareData:c}=r,h=c.arrow?.centerOffset!==0,p=h?0:t.arrowWidth,m=h?0:t.arrowHeight,[v,b]=Dm(o),S={start:"0%",center:"50%",end:"100%"}[b],k=(c.arrow?.x??0)+p/2,w=(c.arrow?.y??0)+m/2;let R="",x="";return v==="bottom"?(R=h?S:`${k}px`,x=`${-m}px`):v==="top"?(R=h?S:`${k}px`,x=`${a.floating.height+m}px`):v==="right"?(R=`${-m}px`,x=h?S:`${w}px`):v==="left"&&(R=`${a.floating.width+m}px`,x=h?S:`${w}px`),{data:{x:R,y:x}}}});function Dm(t){const[r,o="center"]=t.split("-");return[r,o]}var vb=Im,yb=_m,xb=Mm,[ba]=yo("Tooltip",[Rm]),Cu=Rm(),Fm="TooltipProvider",wb=700,Hh="tooltip.open",[bb,zm]=ba(Fm),$m=t=>{const{__scopeTooltip:r,delayDuration:o=wb,skipDelayDuration:a=300,disableHoverableContent:c=!1,children:d}=t,h=g.useRef(!0),p=g.useRef(!1),m=g.useRef(0);return g.useEffect(()=>{const v=m.current;return()=>window.clearTimeout(v)},[]),i.jsx(bb,{scope:r,isOpenDelayedRef:h,delayDuration:o,onOpen:g.useCallback(()=>{window.clearTimeout(m.current),h.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>h.current=!0,a)},[a]),isPointerInTransitRef:p,onPointerInTransitChange:g.useCallback(v=>{p.current=v},[]),disableHoverableContent:c,children:d})};$m.displayName=Fm;var Bm="Tooltip",[NE,Sa]=ba(Bm),qc="TooltipTrigger",Sb=g.forwardRef((t,r)=>{const{__scopeTooltip:o,...a}=t,c=Sa(qc,o),d=zm(qc,o),h=Cu(o),p=g.useRef(null),m=dt(r,p,c.onTriggerChange),v=g.useRef(!1),b=g.useRef(!1),S=g.useCallback(()=>v.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",S),[S]),i.jsx(vb,{asChild:!0,...h,children:i.jsx(Fe.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...a,ref:m,onPointerMove:_e(t.onPointerMove,k=>{k.pointerType!=="touch"&&!b.current&&!d.isPointerInTransitRef.current&&(c.onTriggerEnter(),b.current=!0)}),onPointerLeave:_e(t.onPointerLeave,()=>{c.onTriggerLeave(),b.current=!1}),onPointerDown:_e(t.onPointerDown,()=>{c.open&&c.onClose(),v.current=!0,document.addEventListener("pointerup",S,{once:!0})}),onFocus:_e(t.onFocus,()=>{v.current||c.onOpen()}),onBlur:_e(t.onBlur,c.onClose),onClick:_e(t.onClick,c.onClose)})})});Sb.displayName=qc;var jb="TooltipPortal",[TE,Cb]=ba(jb,{forceMount:void 0}),us="TooltipContent",Wm=g.forwardRef((t,r)=>{const o=Cb(us,t.__scopeTooltip),{forceMount:a=o.forceMount,side:c="top",...d}=t,h=Sa(us,t.__scopeTooltip);return i.jsx(fs,{present:a||h.open,children:h.disableHoverableContent?i.jsx(Um,{side:c,...d,ref:r}):i.jsx(kb,{side:c,...d,ref:r})})}),kb=g.forwardRef((t,r)=>{const o=Sa(us,t.__scopeTooltip),a=zm(us,t.__scopeTooltip),c=g.useRef(null),d=dt(r,c),[h,p]=g.useState(null),{trigger:m,onClose:v}=o,b=c.current,{onPointerInTransitChange:S}=a,k=g.useCallback(()=>{p(null),S(!1)},[S]),w=g.useCallback((R,x)=>{const j=R.currentTarget,P={x:R.clientX,y:R.clientY},C=Rb(P,j.getBoundingClientRect()),E=Ab(P,C),T=Ob(x.getBoundingClientRect()),_=_b([...E,...T]);p(_),S(!0)},[S]);return g.useEffect(()=>()=>k(),[k]),g.useEffect(()=>{if(m&&b){const R=j=>w(j,b),x=j=>w(j,m);return m.addEventListener("pointerleave",R),b.addEventListener("pointerleave",x),()=>{m.removeEventListener("pointerleave",R),b.removeEventListener("pointerleave",x)}}},[m,b,w,k]),g.useEffect(()=>{if(h){const R=x=>{const j=x.target,P={x:x.clientX,y:x.clientY},C=m?.contains(j)||b?.contains(j),E=!Ib(P,h);C?k():E&&(k(),v())};return document.addEventListener("pointermove",R),()=>document.removeEventListener("pointermove",R)}},[m,b,h,v,k]),i.jsx(Um,{...t,ref:d})}),[Eb,Nb]=ba(Bm,{isInside:!1}),Tb=Ox("TooltipContent"),Um=g.forwardRef((t,r)=>{const{__scopeTooltip:o,children:a,"aria-label":c,onEscapeKeyDown:d,onPointerDownOutside:h,...p}=t,m=Sa(us,o),v=Cu(o),{onClose:b}=m;return g.useEffect(()=>(document.addEventListener(Hh,b),()=>document.removeEventListener(Hh,b)),[b]),g.useEffect(()=>{if(m.trigger){const S=k=>{k.target?.contains(m.trigger)&&b()};return window.addEventListener("scroll",S,{capture:!0}),()=>window.removeEventListener("scroll",S,{capture:!0})}},[m.trigger,b]),i.jsx(pa,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:S=>S.preventDefault(),onDismiss:b,children:i.jsxs(yb,{"data-state":m.stateAttribute,...v,...p,ref:r,style:{...p.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:[i.jsx(Tb,{children:a}),i.jsx(Eb,{scope:o,isInside:!0,children:i.jsx(nw,{id:m.contentId,role:"tooltip",children:c||a})})]})})});Wm.displayName=us;var Hm="TooltipArrow",Pb=g.forwardRef((t,r)=>{const{__scopeTooltip:o,...a}=t,c=Cu(o);return Nb(Hm,o).isInside?null:i.jsx(xb,{...c,...a,ref:r})});Pb.displayName=Hm;function Rb(t,r){const o=Math.abs(r.top-t.y),a=Math.abs(r.bottom-t.y),c=Math.abs(r.right-t.x),d=Math.abs(r.left-t.x);switch(Math.min(o,a,c,d)){case d:return"left";case c:return"right";case o:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function Ab(t,r,o=5){const a=[];switch(r){case"top":a.push({x:t.x-o,y:t.y+o},{x:t.x+o,y:t.y+o});break;case"bottom":a.push({x:t.x-o,y:t.y-o},{x:t.x+o,y:t.y-o});break;case"left":a.push({x:t.x+o,y:t.y-o},{x:t.x+o,y:t.y+o});break;case"right":a.push({x:t.x-o,y:t.y-o},{x:t.x-o,y:t.y+o});break}return a}
9function Ob(t){const{top:r,right:o,bottom:a,left:c}=t;return[{x:c,y:r},{x:o,y:r},{x:o,y:a},{x:c,y:a}]}function Ib(t,r){const{x:o,y:a}=t;let c=!1;for(let d=0,h=r.length-1;d<r.length;h=d++){const p=r[d],m=r[h],v=p.x,b=p.y,S=m.x,k=m.y;b>a!=k>a&&o<(S-v)*(a-b)/(k-b)+v&&(c=!c)}return c}function _b(t){const r=t.slice();return r.sort((o,a)=>o.x<a.x?-1:o.x>a.x?1:o.y<a.y?-1:o.y>a.y?1:0),Lb(r)}function Lb(t){if(t.length<=1)return t.slice();const r=[];for(let a=0;a<t.length;a++){const c=t[a];for(;r.length>=2;){const d=r[r.length-1],h=r[r.length-2];if((d.x-h.x)*(c.y-h.y)>=(d.y-h.y)*(c.x-h.x))r.pop();else break}r.push(c)}r.pop();const o=[];for(let a=t.length-1;a>=0;a--){const c=t[a];for(;o.length>=2;){const d=o[o.length-1],h=o[o.length-2];if((d.x-h.x)*(c.y-h.y)>=(d.y-h.y)*(c.x-h.x))o.pop();else break}o.push(c)}return o.pop(),r.length===1&&o.length===1&&r[0].x===o[0].x&&r[0].y===o[0].y?r:r.concat(o)}var Mb=$m,Vm=Wm;const Db=Mb,Fb=g.forwardRef(({className:t,sideOffset:r=4,...o},a)=>i.jsx(Vm,{ref:a,sideOffset:r,className:ze("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o}));Fb.displayName=Vm.displayName;var ja=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ca=typeof window>"u"||"Deno"in globalThis;function Qt(){}function zb(t,r){return typeof t=="function"?t(r):t}function $b(t){return typeof t=="number"&&t>=0&&t!==1/0}function Bb(t,r){return Math.max(t+(r||0)-Date.now(),0)}function Yc(t,r){return typeof t=="function"?t(r):t}function Wb(t,r){return typeof t=="function"?t(r):t}function Vh(t,r){const{type:o="all",exact:a,fetchStatus:c,predicate:d,queryKey:h,stale:p}=t;if(h){if(a){if(r.queryHash!==ku(h,r.options))return!1}else if(!po(r.queryKey,h))return!1}if(o!=="all"){const m=r.isActive();if(o==="active"&&!m||o==="inactive"&&m)return!1}return!(typeof p=="boolean"&&r.isStale()!==p||c&&c!==r.state.fetchStatus||d&&!d(r))}function Qh(t,r){const{exact:o,status:a,predicate:c,mutationKey:d}=t;if(d){if(!r.options.mutationKey)return!1;if(o){if(ho(r.options.mutationKey)!==ho(d))return!1}else if(!po(r.options.mutationKey,d))return!1}return!(a&&r.state.status!==a||c&&!c(r))}function ku(t,r){return(r?.queryKeyHashFn||ho)(t)}function ho(t){return JSON.stringify(t,(r,o)=>Kc(o)?Object.keys(o).sort().reduce((a,c)=>(a[c]=o[c],a),{}):o)}function po(t,r){return t===r?!0:typeof t!=typeof r?!1:t&&r&&typeof t=="object"&&typeof r=="object"?Object.keys(r).every(o=>po(t[o],r[o])):!1}function Qm(t,r){if(t===r)return t;const o=qh(t)&&qh(r);if(o||Kc(t)&&Kc(r)){const a=o?t:Object.keys(t),c=a.length,d=o?r:Object.keys(r),h=d.length,p=o?[]:{},m=new Set(a);let v=0;for(let b=0;b<h;b++){const S=o?b:d[b];(!o&&m.has(S)||o)&&t[S]===void 0&&r[S]===void 0?(p[S]=void 0,v++):(p[S]=Qm(t[S],r[S]),p[S]===t[S]&&t[S]!==void 0&&v++)}return c===h&&v===c?t:p}return r}function qh(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Kc(t){if(!Yh(t))return!1;const r=t.constructor;if(r===void 0)return!0;const o=r.prototype;return!(!Yh(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Yh(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ub(t){return new Promise(r=>{setTimeout(r,t)})}function Hb(t,r,o){return typeof o.structuralSharing=="function"?o.structuralSharing(t,r):o.structuralSharing!==!1?Qm(t,r):r}function Vb(t,r,o=0){const a=[...t,r];return o&&a.length>o?a.slice(1):a}function Qb(t,r,o=0){const a=[r,...t];return o&&a.length>o?a.slice(0,-1):a}var Eu=Symbol();function qm(t,r){return!t.queryFn&&r?.initialPromise?()=>r.initialPromise:!t.queryFn||t.queryFn===Eu?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var qb=class extends ja{#e;#t;#n;constructor(){super(),this.#n=t=>{if(!Ca&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,131 bytes, line 9
9this.listeners.forEach(r=>{r(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Ym=new qb,Yb=class extends ja{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(!Ca&&window.addEventListener){const r=()=>t(!0),o=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",o)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(o=>{o(t)}))}isOnline(){return this.#e}},aa=new Yb;function Kb(){let t,r;const o=new Promise((c,d)=>{t=c,r=d});o.status="pending",o.catch(()=>{});function a(c){Object.assign(o,c),delete o.resolve,delete o.reject}return o.resolve=c=>{a({status:"fulfilled",value:c}),t(c)},o.reject=c=>{a({status:"rejected",reason:c}),r(c)},o}function Gb(t){return Math.min(1e3*2**t,3e4)}function Km(t){return(t??"online")==="online"?aa.isOnline():!0}var Gm=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function jc(t){return t instanceof Gm}function Jm(t){let r=!1,o=0,a=!1,c;const d=Kb(),h=x=>{a||(k(new Gm(x)),t.abort?.())},p=()=>{r=!0},m=()=>{r=!1},v=()=>Ym.isFocused()&&(t.networkMode==="always"||aa.isOnline())&&t.canRun(),b=()=>Km(t.networkMode)&&t.canRun(),S=x=>{a||(a=!0,t.onSuccess?.(x),c?.(),d.resolve(x))},k=x=>{a||(a=!0,t.onError?.(x),c?.(),d.reject(x))},w=()=>new Promise(x=>{c=j=>{(a||v())&&x(j)},t.onPause?.()}).then(()=>{c=void 0,a||t.onContinue?.()}),R=()=>{if(a)return;let x;const j=o===0?t.initialPromise:void 0;try{x=j??t.fn()}catch(P){x=Promise.reject(P)}Promise.resolve(x).then(S).catch(P=>{if(a)return;const C=t.retry??(Ca?0:3),E=t.retryDelay??Gb,T=typeof E=="function"?E(o,P):E,_=C===!0||typeof C=="number"&&o<C||typeof C=="function"&&C(o,P);if(r||!_){k(P);return}o++,t.onFail?.(o,P),Ub(T).then(()=>v()?void 0:w()).then(()=>{r?k(P):R()})})};return{promise:d,cancel:h,continue:()=>(c?.(),d),cancelRetry:p,continueRetry:m,canStart:b,start:()=>(b()?R():w().then(R),d)}}var Jb=t=>setTimeout(t,0);function Xb(){let t=[],r=0,o=p=>{p()},a=p=>{p()},c=Jb;const d=p=>{r?t.push(p):c(()=>{o(p)})},h=()=>{const p=t;t=[],p.length&&c(()=>{a(()=>{p.forEach(m=>{o(m)})})})};return{batch:p=>{let m;r++;try{m=p()}finally{r--,r||h()}return m},batchCalls:p=>(...m)=>{d(()=>{p(...m)})},schedule:d,setNotifyFunction:p=>{o=p},setBatchNotifyFunction:p=>{a=p},setScheduler:p=>{c=p}}}var ut=Xb(),Xm=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$b(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ca?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},Zb=class extends Xm{#e;#t;#n;#s;#r;#i;#a;constructor(t){super(),this.#a=!1,this.#i=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#s=t.client,this.#n=this.#s.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=tS(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(t){this.options={...this.#i,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,r){const o=Hb(this.state.data,t,this.options);return this.#o({data:o,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),o}setState(t,r){this.#o({type:"setState",state:t,setStateOptions:r})}cancel(t){const r=this.#r?.promise;return this.#r?.cancel(t),r?r.then(Qt).catch(Qt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(t=>Wb(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Eu||this.state.dataUpdateCount+this.state.errorUpdate
9Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Yc(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:!Bb(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.#r&&(this.#a?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}fetch(t,r){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(v=>v.options.queryFn);m&&this.setOptions(m.options)}const o=new AbortController,a=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#a=!0,o.signal)})},c=()=>{const m=qm(this.options,r),b=(()=>{const S={client:this.#s,queryKey:this.queryKey,meta:this.meta};return a(S),S})();return this.#a=!1,this.options.persister?this.options.persister(m,b,this):m(b)},h=(()=>{const m={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:c};return a(m),m})();this.options.behavior?.onFetch(h,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#o({type:"fetch",meta:h.fetchOptions?.meta});const p=m=>{jc(m)&&m.silent||this.#o({type:"error",error:m}),jc(m)||(this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this)),this.scheduleGc()};return this.#r=Jm({initialPromise:r?.initialPromise,fn:h.fetchFn,abort:o.abort.bind(o),onSuccess:m=>{if(m===void 0){p(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(v){p(v);return}this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),this.scheduleGc()},onError:p,onFail:(m,v)=>{this.#o({type:"failed",failureCount:m,error:v})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0}),this.#r.start()}#o(t){const r=o=>{switch(t.type){case"failed":return{...o,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...eS(o.data,this.options),fetchMeta:t.meta??null};case"success":return this.#t=void 0,{...o,data:t.data,dataUpdateCount:o.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return jc(a)&&a.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...o,error:a,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...t.state}}};this.state=r(this.state),ut.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function eS(t,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Km(r.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function tS(t){const r=typeof t.initialData=="function"?t.initialData():t.initialData,o=r!==void 0,a=o?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:o?a??Date.now():0,error:null,errorUpdate
vendor: 9,391 bytes, line 9
9Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var nS=class extends ja{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,r,o){const a=r.queryKey,c=r.queryHash??ku(a,r);let d=this.get(c);return d||(d=new Zb({client:t,queryKey:a,queryHash:c,options:t.defaultQueryOptions(r),state:o,defaultOptions:t.getQueryDefaults(a)}),this.add(d)),d}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=this.#e.get(t.queryHash);r&&(t.destroy(),r===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ut.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const r={exact:!0,...t};return this.getAll().find(o=>Vh(r,o))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(o=>Vh(t,o)):r}notify(t){ut.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){ut.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ut.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},rS=class extends Xm{#e;#t;#n;constructor(t){super(),this.mutationId=t.mutationId,this.#t=t.mutationCache,this.#e=[],this.state=t.state||sS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(r=>r!==t),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){const r=()=>{this.#s({type:"continue"})};this.#n=Jm({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(c,d)=>{this.#s({type:"failed",failureCount:c,error:d})},onPause:()=>{this.#s({type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const o=this.state.status==="pending",a=!this.#n.canStart();try{if(o)r();else{this.#s({type:"pending",variables:t,isPaused:a}),await this.#t.config.onMutate?.(t,this);const d=await this.options.onMutate?.(t);d!==this.state.context&&this.#s({type:"pending",context:d,variables:t,isPaused:a})}const c=await this.#n.start();return await this.#t.config.onSuccess?.(c,t,this.state.context,this),await this.options.onSuccess?.(c,t,this.state.context),await this.#t.config.onSettled?.(c,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(c,null,t,this.state.context),this.#s({type:"success",data:c}),c}catch(c){try{throw await this.#t.config.onError?.(c,t,this.state.context,this),await this.options.onError?.(c,t,this.state.context),await this.#t.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,c,t,this.state.context),c}finally{this.#s({type:"error",error:c})}}finally{this.#t.runNext(this)}}#s(t){const r=o=>{switch(t.type){case"failed":return{...o,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,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{...o,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:t.error,failureCount:o.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),ut.batch(()=>{this.#e.forEach(o=>{o.onMutationUpdate(t)}),this.#t.notify({mutation:this,type:"updated",action:t})})}};function sS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var oS=class extends ja{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,r,o){const a=new rS({mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(r),state:o});return this.add(a),a}add(t){this.#e.add(t);const r=Wi(t);if(typeof r=="string"){const o=this.#t.get(r);o?o.push(t):this.#t.set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const r=Wi(t);if(typeof r=="string"){const o=this.#t.get(r);if(o)if(o.length>1){const a=o.indexOf(t);a!==-1&&o.splice(a,1)}else o[0]===t&&this.#t.delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Wi(t);if(typeof r=="string"){const a=this.#t.get(r)?.find(c=>c.state.status==="pending");return!a||a===t}else return!0}runNext(t){const r=Wi(t);return typeof r=="string"?this.#t.get(r)?.find(a=>a!==t&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ut.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const r={exact:!0,...t};return this.getAll().find(o=>Qh(r,o))}findAll(t={}){return this.getAll().filter(r=>Qh(t,r))}notify(t){ut.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return ut.batch(()=>Promise.all(t.map(r=>r.continue().catch(Qt))))}};function Wi(t){return t.options.scope?.id}function Kh(t){return{onFetch:(r,o)=>{const a=r.options,c=r.fetchOptions?.meta?.fetchMore?.direction,d=r.state.data?.pages||[],h=r.state.data?.pageParams||[];let p={pages:[],pageParams:[]},m=0;const v=async()=>{let b=!1;const S=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(r.signal.aborted?b=!0:r.signal.addEventListener("abort",()=>{b=!0}),r.signal)})},k=qm(r.options,r.fetchOptions),w=async(R,x,j)=>{if(b)return Promise.reject();if(x==null&&R.pages.length)return Promise.resolve(R);const C=(()=>{const D={client:r.client,queryKey:r.queryKey,pageParam:x,direction:j?"backward":"forward",meta:r.options.meta};return S(D),D})(),E=await k(C),{maxPages:T}=r.options,_=j?Qb:Vb;return{pages:_(R.pages,E,T),pageParams:_(R.pageParams,x,T)}};if(c&&d.length){const R=c==="backward",x=R?iS:Gh,j={pages:d,pageParams:h},P=x(a,j);p=await w(j,P,R)}else{const R=t??d.length;do{const x=m===0?h[0]??a.initialPageParam:Gh(a,p);if(m>0&&x==null)break;p=await w(p,x),m++}while(m<R)}return p};r.options.persister?r.fetchFn=()=>r.options.persister?.(v,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},o):r.fetchFn=v}}}function Gh(t,{pages:r,pageParams:o}){const a=r.length-1;return r.length>0?t.getNextPageParam(r[a],r,o[a],o):void 0}function iS(t,{pages:r,pageParams:o}){return r.length>0?t.getPreviousPageParam?.(r[0],r,o[0],o):void 0}var aS=class{#e;#t;#n;#s;#r;#i;#a;#o;constructor(t={}){this.#e=t.queryCache||new nS,this.#t=t.mutationCache||new oS,this.#n=t.defaultOptions||{},this.#s=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=Ym.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=aa.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const r=this.defaultQueryOptions({queryKey:t});return this.#e.get(r.queryHash)?.state.data}ensureQueryData(t){const r=this.defaultQueryOptions(t),o=this.#e.build(this,r),a=o.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&o.isStaleByTime(Yc(r.staleTime,o))&&this.prefetchQuery(r),Promise.resolve(a))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:r,state:o})=>{const a=o.data;return[r,a]})}setQueryData(t,r,o){const a=this.defaultQueryOptions({queryKey:t}),d=this.#e.get(a.queryHash)?.state.data,h=zb(r,d);if(h!==void 0)return this.#e.build(this,a).setData(h,{...o,manual:!0})}setQueriesData(t,r,o){return ut.batch(()=>this.#e.findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,r,o)]))}getQueryState(t){const r=this.defaultQueryOptions({queryKey:t});return this.#e.get(r.queryHash)?.state}removeQueries(t){const r=this.#e;ut.batch(()=>{r.findAll(t).forEach(o=>{r.remove(o)})})}resetQueries(t,r){const o=this.#e;return ut.batch(()=>(o.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},r)))}cancelQueries(t,r={}){const o={revert:!0,...r},a=ut.batch(()=>this.#e.findAll(t).map(c=>c.cancel(o)));return Promise.all(a).then(Qt).catch(Qt)}invalidateQueries(t,r={}){return ut.batch(()=>(this.#e.findAll(t).forEach(o=>{o.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},r)))}refetchQueries(t,r={}){const o={...r,cancelRefetch:r.cancelRefetch??!0},a=ut.batch(()=>this.#e.findAll(t).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let d=c.fetch(void 0,o);return o.throwOnError||(d=d.catch(Qt)),c.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(a).then(Qt)}
9fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const o=this.#e.build(this,r);return o.isStaleByTime(Yc(r.staleTime,o))?o.fetch(r):Promise.resolve(o.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Qt).catch(Qt)}fetchInfiniteQuery(t){return t.behavior=Kh(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Qt).catch(Qt)}ensureInfiniteQueryData(t){return t.behavior=Kh(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return aa.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,r){this.#s.set(ho(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...this.#s.values()],o={};return r.forEach(a=>{po(t,a.queryKey)&&Object.assign(o,a.defaultOptions)}),o}setMutationDefaults(t,r){this.#r.set(ho(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...this.#r.values()],o={};return r.forEach(a=>{po(t,a.mutationKey)&&Object.assign(o,a.defaultOptions)}),o}defaultQueryOptions(t){if(t._defaulted)return t;const r={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return r.queryHash||(r.queryHash=ku(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===Eu&&(r.enabled=!1),r}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},lS=g.createContext(void 0),cS=({client:t,children:r})=>(g.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),i.jsx(lS.Provider,{value:t,children:r}));function mo(){return mo=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var a in o)({}).hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},mo.apply(null,arguments)}var rr;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(rr||(rr={}));const Jh="popstate";function uS(t){t===void 0&&(t={});function r(a,c){let{pathname:d,search:h,hash:p}=a.location;return Gc("",{pathname:d,search:h,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function o(a,c){return typeof c=="string"?c:la(c)}return fS(r,o,null,t)}function He(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function Nu(t,r){if(!t){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function dS(){return Math.random().toString(36).substr(2,8)}function Xh(t,r){return{usr:t.state,key:t.key,idx:r}}function Gc(t,r,o,a){return o===void 0&&(o=null),mo({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof r=="string"?gs(r):r,{state:o,key:r&&r.key||a||dS()})}function la(t){let{pathname:r="/",search:o="",hash:a=""}=t;return o&&o!=="?"&&(r+=o.charAt(0)==="?"?o:"?"+o),a&&a!=="#"&&(r+=a.charAt(0)==="#"?a:"#"+a),r}function gs(t){let r={};if(t){let o=t.indexOf("#");o>=0&&(r.hash=t.substr(o),t=t.substr(0,o));let a=t.indexOf("?");a>=0&&(r.search=t.substr(a),t=t.substr(0,a)),t&&(r.pathname=t)}return r}function fS(t,r,o,a){a===void 0&&(a={});let{window:c=document.defaultView,v5Compat:d=!1}=a,h=c.history,p=rr.Pop,m=null,v=b();v==null&&(v=0,h.replaceState(mo({},h.state,{idx:v}),""));function b(){return(h.state||{idx:null}).idx}function S(){p=rr.Pop;let j=b(),P=j==null?null:j-v;v=j,m&&m({action:p,location:x.location,delta:P})}function k(j,P){p=rr.Push;let C=Gc(x.location,j,P);v=b()+1;let E=Xh(C,v),T=x.createHref(C);try{h.pushState(E,"",T)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;c.location.assign(T)}d&&m&&m({action:p,location:x.location,delta:1})}function w(j,P){p=rr.Replace;let C=Gc(x.location,j,P);v=b();let E=Xh(C,v),T=x.createHref(C);h.replaceState(E,"",T),d&&m&&m({action:p,location:x.location,delta:0})}function R(j){let P=c.location.origin!=="null"?c.location.origin:c.location.href,C=typeof j=="string"?j:la(j);return C=C.replace(/ $/,"%20"),He(P,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,P)}let x={get action(){return p},get location(){return t(c,h)},listen(j){if(m)throw new Error("A history only accepts one active listener");return c.addEventListener(Jh,S),m=j,()=>{c.removeEventListener(Jh,S),m=null}},createHref(j){return r(c,j)},createURL:R,encodeLocation(j){let P=R(j);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:k,replace:w,go(j){return h.go(j)}};return x}var Zh;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Zh||(Zh={}));function hS(t,r,o){return o===void 0&&(o="/"),pS(t,r,o)}function pS(t,r,o,a){let c=typeof r=="string"?gs(r):r,d=Tu(c.pathname||"/",o);if(d==null)return null;let h=Zm(t);mS(h);let p=null,m=NS(d);for(let v=0;p==null&&v<h.length;++v)p=CS(h[v],m);return p}function Zm(t,r,o,a){r===void 0&&(r=[]),o===void 0&&(o=[]),a===void 0&&(a="");let c=(d,h,p)=>
vendor: 1,825 bytes, line 9
9{let m={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};m.relativePath.startsWith("/")&&(He(m.relativePath.startsWith(a),'Absolute route path "'+m.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),m.relativePath=m.relativePath.slice(a.length));let v=sr([a,m.relativePath]),b=o.concat(m);d.children&&d.children.length>0&&(He(d.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+v+'".')),Zm(d.children,r,b,v)),!(d.path==null&&!d.index)&&r.push({path:v,score:SS(v,d.index),routesMeta:b})};return t.forEach((d,h)=>{var p;if(d.path===""||!((p=d.path)!=null&&p.includes("?")))c(d,h);else for(let m of eg(d.path))c(d,h,m)}),r}function eg(t){let r=t.split("/");if(r.length===0)return[];let[o,...a]=r,c=o.endsWith("?"),d=o.replace(/\?$/,"");if(a.length===0)return c?[d,""]:[d];let h=eg(a.join("/")),p=[];return p.push(...h.map(m=>m===""?d:[d,m].join("/"))),c&&p.push(...h),p.map(m=>t.startsWith("/")&&m===""?"/":m)}function mS(t){t.sort((r,o)=>r.score!==o.score?o.score-r.score:jS(r.routesMeta.map(a=>a.childrenIndex),o.routesMeta.map(a=>a.childrenIndex)))}const gS=/^:[\w-]+$/,vS=3,yS=2,xS=1,wS=10,bS=-2,ep=t=>t==="*";function SS(t,r){let o=t.split("/"),a=o.length;return o.some(ep)&&(a+=bS),r&&(a+=yS),o.filter(c=>!ep(c)).reduce((c,d)=>c+(gS.test(d)?vS:d===""?xS:wS),a)}function jS(t,r){return t.length===r.length&&t.slice(0,-1).every((a,c)=>a===r[c])?t[t.length-1]-r[r.length-1]:0}function CS(t,r,o){let{routesMeta:a}=t,c={},d="/",h=[];for(let p=0;p<a.length;++p){let m=a[p],v=p===a.length-1,b=d==="/"?r:r.slice(d.length)||"/",S=kS({path:m.relativePath,caseSensitive:m.caseSensitive,end:v},b),k=m.route;if(!S)return null;
vendor: 4,548 bytes, line 9
9Object.assign(c,S.params),h.push({params:c,pathname:sr([d,S.pathname]),pathnameBase:OS(sr([d,S.pathnameBase])),route:k}),S.pathnameBase!=="/"&&(d=sr([d,S.pathnameBase]))}return h}function kS(t,r){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[o,a]=ES(t.path,t.caseSensitive,t.end),c=r.match(o);if(!c)return null;let d=c[0],h=d.replace(/(.)\/+$/,"$1"),p=c.slice(1);return{params:a.reduce((v,b,S)=>{let{paramName:k,isOptional:w}=b;if(k==="*"){let x=p[S]||"";h=d.slice(0,d.length-x.length).replace(/(.)\/+$/,"$1")}const R=p[S];return w&&!R?v[k]=void 0:v[k]=(R||"").replace(/%2F/g,"/"),v},{}),pathname:d,pathnameBase:h,pattern:t}}function ES(t,r,o){r===void 0&&(r=!1),o===void 0&&(o=!0),Nu(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let a=[],c="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,m)=>(a.push({paramName:p,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(a.push({paramName:"*"}),c+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?c+="\\/*$":t!==""&&t!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),a]}function NS(t){try{return t.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Nu(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+r+").")),t}}function Tu(t,r){if(r==="/")return t;if(!t.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,a=t.charAt(o);return a&&a!=="/"?null:t.slice(o)||"/"}const TS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,PS=t=>TS.test(t);function RS(t,r){r===void 0&&(r="/");let{pathname:o,search:a="",hash:c=""}=typeof t=="string"?gs(t):t,d;if(o)if(PS(o))d=o;else{if(o.includes("//")){let h=o;o=rg(o),Nu(!1,"Pathnames cannot have embedded double slashes - normalizing "+(h+" -> "+o))}o.startsWith("/")?d=tp(o.substring(1),"/"):d=tp(o,r)}else d=r;return{pathname:d,search:IS(a),hash:_S(c)}}function tp(t,r){let o=r.replace(/\/+$/,"").split("/");return t.split("/").forEach(c=>{c===".."?o.length>1&&o.pop():c!=="."&&o.push(c)}),o.length>1?o.join("/"):"/"}function Cc(t,r,o,a){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+r+"` field ["+JSON.stringify(a)+"]. Please separate it out to the ")+("`to."+o+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function AS(t){return t.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function tg(t,r){let o=AS(t);return r?o.map((a,c)=>c===o.length-1?a.pathname:a.pathnameBase):o.map(a=>a.pathnameBase)}function ng(t,r,o,a){a===void 0&&(a=!1);let c;typeof t=="string"?c=gs(t):(c=mo({},t),He(!c.pathname||!c.pathname.includes("?"),Cc("?","pathname","search",c)),He(!c.pathname||!c.pathname.includes("#"),Cc("#","pathname","hash",c)),He(!c.search||!c.search.includes("#"),Cc("#","search","hash",c)));let d=t===""||c.pathname==="",h=d?"/":c.pathname,p;if(h==null)p=o;else{let S=r.length-1;if(!a&&h.startsWith("..")){let k=h.split("/");for(;k[0]==="..";)k.shift(),S-=1;c.pathname=k.join("/")}p=S>=0?r[S]:"/"}let m=RS(c,p),v=h&&h!=="/"&&h.endsWith("/"),b=(d||h===".")&&o.endsWith("/");return!m.pathname.endsWith("/")&&(v||b)&&(m.pathname+="/"),m}const rg=t=>t.replace(/\/\/+/g,"/"),sr=t=>rg(t.join("/")),OS=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),IS=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,_S=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function LS(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const sg=["post","put","patch","delete"];new Set(sg);const MS=["get",...sg];new Set(MS);function go(){return go=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var a in o)({}).hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},go.apply(null,arguments)}const Pu=g.createContext(null),DS=g.createContext(null),Er=g.createContext(null),ka=g.createContext(null),ar=g.createContext({outlet:null,matches:[],isDataRoute:!1}),og=g.createContext(null);function FS(t,r){let{relative:o}=r===void 0?{}:r;bo()||He(!1);let{basename:a,navigator:c}=g.useContext(Er),{hash:d,pathname:h,search:p}=lg(t,{relative:o}),m=h;
vendor: 4,966 bytes, line 9
9return a!=="/"&&(m=h==="/"?a:sr([a,h])),c.createHref({pathname:m,search:p,hash:d})}function bo(){return g.useContext(ka)!=null}function lr(){return bo()||He(!1),g.useContext(ka).location}function ig(t){g.useContext(Er).static||g.useLayoutEffect(t)}function Ea(){let{isDataRoute:t}=g.useContext(ar);return t?JS():zS()}function zS(){bo()||He(!1);let t=g.useContext(Pu),{basename:r,future:o,navigator:a}=g.useContext(Er),{matches:c}=g.useContext(ar),{pathname:d}=lr(),h=JSON.stringify(tg(c,o.v7_relativeSplatPath)),p=g.useRef(!1);return ig(()=>{p.current=!0}),g.useCallback(function(v,b){if(b===void 0&&(b={}),!p.current)return;if(typeof v=="number"){a.go(v);return}let S=ng(v,JSON.parse(h),d,b.relative==="path");t==null&&r!=="/"&&(S.pathname=S.pathname==="/"?r:sr([r,S.pathname])),(b.replace?a.replace:a.push)(S,b.state,b)},[r,a,h,d,t])}function ag(){let{matches:t}=g.useContext(ar),r=t[t.length-1];return r?r.params:{}}function lg(t,r){let{relative:o}=r===void 0?{}:r,{future:a}=g.useContext(Er),{matches:c}=g.useContext(ar),{pathname:d}=lr(),h=JSON.stringify(tg(c,a.v7_relativeSplatPath));return g.useMemo(()=>ng(t,JSON.parse(h),d,o==="path"),[t,h,d,o])}function $S(t,r){return BS(t,r)}function BS(t,r,o,a){bo()||He(!1);let{navigator:c}=g.useContext(Er),{matches:d}=g.useContext(ar),h=d[d.length-1],p=h?h.params:{};h&&h.pathname;let m=h?h.pathnameBase:"/";h&&h.route;let v=lr(),b;if(r){var S;let j=typeof r=="string"?gs(r):r;m==="/"||(S=j.pathname)!=null&&S.startsWith(m)||He(!1),b=j}else b=v;let k=b.pathname||"/",w=k;if(m!=="/"){let j=m.replace(/^\//,"").split("/");w="/"+k.replace(/^\//,"").split("/").slice(j.length).join("/")}let R=hS(t,{pathname:w}),x=QS(R&&R.map(j=>Object.assign({},j,{params:Object.assign({},p,j.params),pathname:sr([m,c.encodeLocation?c.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?m:sr([m,c.encodeLocation?c.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),d,o,a);return r&&x?g.createElement(ka.Provider,{value:{location:go({pathname:"/",search:"",hash:"",state:null,key:"default"},b),navigationType:rr.Pop}},x):x}function WS(){let t=GS(),r=LS(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),o=t instanceof Error?t.stack:null,c={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},r),o?g.createElement("pre",{style:c},o):null,null)}const US=g.createElement(WS,null);class HS extends g.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,o){return o.location!==r.location||o.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:o.error,location:o.location,revalidation:r.revalidation||o.revalidation}}componentDidCatch(r,o){console.error("React Router caught the following error during render",r,o)}render(){return this.state.error!==void 0?g.createElement(ar.Provider,{value:this.props.routeContext},g.createElement(og.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function VS(t){let{routeContext:r,match:o,children:a}=t,c=g.useContext(Pu);return c&&c.static&&c.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=o.route.id),g.createElement(ar.Provider,{value:r},a)}function QS(t,r,o,a){var c;if(r===void 0&&(r=[]),o===void 0&&(o=null),a===void 0&&(a=null),t==null){var d;if(!o)return null;if(o.errors)t=o.matches;else if((d=a)!=null&&d.v7_partialHydration&&r.length===0&&!o.initialized&&o.matches.length>0)t=o.matches;else return null}let h=t,p=(c=o)==null?void 0:c.errors;if(p!=null){let b=h.findIndex(S=>S.route.id&&p?.[S.route.id]!==void 0);b>=0||He(!1),h=h.slice(0,Math.min(h.length,b+1))}let m=!1,v=-1;if(o&&a&&a.v7_partialHydration)for(let b=0;b<h.length;b++){let S=h[b];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(v=b),S.route.id){let{loaderData:k,errors:w}=o,R=S.route.loader&&k[S.route.id]===void 0&&(!w||w[S.route.id]===void 0);if(S.route.lazy||R){m=!0,v>=0?h=h.slice(0,v+1):h=[h[0]];break}}}return h.reduceRight((b,S,k)=>{let w,R=!1,x=null,j=null;o&&(w=p&&S.route.id?p[S.route.id]:void 0,x=S.route.errorElement||US,m&&(v<0&&k===0?(XS("route-fallback"),R=!0,j=null):v===k&&(R=!0,j=S.route.hydrateFallbackElement||null)));let P=r.concat(h.slice(0,k+1)),C=()=>{let E;return w?E=x:R?E=j:S.route.Component?E=g.createElement(S.route.Component,null):S.route.element?E=S.route.element:E=b,g.createElement(VS,{match:S,routeContext:{outlet:b,matches:P,isDataRoute:o!=null},children:E})};return o&&(S.route.ErrorBoundary||S.route.errorElement||k===0)?g.createElement(HS,{location:o.location,revalidation:o.revalidation,component:x,error:w,children:C(),routeC
9ontext:{outlet:null,matches:P,isDataRoute:!0}}):C()},null)}var cg=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(cg||{}),ug=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(ug||{});function qS(t){let r=g.useContext(Pu);return r||He(!1),r}function YS(t){let r=g.useContext(DS);return r||He(!1),r}function KS(t){let r=g.useContext(ar);return r||He(!1),r}function dg(t){let r=KS(),o=r.matches[r.matches.length-1];return o.route.id||He(!1),o.route.id}function GS(){var t;let r=g.useContext(og),o=YS(),a=dg();return r!==void 0?r:(t=o.errors)==null?void 0:t[a]}function JS(){let{router:t}=qS(cg.UseNavigateStable),r=dg(ug.UseNavigateStable),o=g.useRef(!1);return ig(()=>{o.current=!0}),g.useCallback(function(c,d){d===void 0&&(d={}),o.current&&(typeof c=="number"?t.navigate(c):t.navigate(c,go({fromRouteId:r},d)))},[t,r])}const np={};function XS(t,r,o){np[t]||(np[t]=!0)}function ZS(t,r){t?.v7_startTransition,t?.v7_relativeSplatPath}function ct(t){He(!1)}function ej(t){let{basename:r="/",children:o=null,location:a,navigationType:c=rr.Pop,navigator:d,static:h=!1,future:p}=t;bo()&&He(!1);let m=r.replace(/^\/*/,"/"),v=g.useMemo(()=>({basename:m,navigator:d,static:h,future:go({v7_relativeSplatPath:!1},p)}),[m,p,d,h]);typeof a=="string"&&(a=gs(a));let{pathname:b="/",search:S="",hash:k="",state:w=null,key:R="default"}=a,x=g.useMemo(()=>{let j=Tu(b,m);return j==null?null:{location:{pathname:j,search:S,hash:k,state:w,key:R},navigationType:c}},[m,b,S,k,w,R,c]);return x==null?null:g.createElement(Er.Provider,{value:v},g.createElement(ka.Provider,{children:o,value:x}))}function tj(t){let{children:r,location:o}=t;return $S(Jc(r),o)}new Promise(()=>{});function Jc(t,r){r===void 0&&(r=[]);let o=[];return g.Children.forEach(t,(a,c)=>{if(!g.isValidElement(a))return;let d=[...r,c];if(a.type===g.Fragment){o.push.apply(o,Jc(a.props.children,d));return}a.type!==ct&&He(!1),!a.props.index||!a.props.children||He(!1);let h={id:a.props.id||d.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(h.children=Jc(a.props.children,d)),o.push(h)}),o}function Xc(){return Xc=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var a in o)({}).hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},Xc.apply(null,arguments)}function nj(t,r){if(t==null)return{};var o={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(r.indexOf(a)!==-1)continue;o[a]=t[a]}return o}function rj(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function sj(t,r){return t.button===0&&(!r||r==="_self")&&!rj(t)}function Zc(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((r,o)=>{let a=t[o];return r.concat(Array.isArray(a)?a.map(c=>[o,c]):[[o,a]])},[]))}function oj(t,r){let o=Zc(t);return r&&r.forEach((a,c)=>{o.has(c)||r.getAll(c).forEach(d=>{o.append(c,d)})}),o}const ij=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],aj="6";try{window.__reactRouterVersion=aj}catch{}const lj="startTransition",rp=au[lj];function cj(t){let{basename:r,children:o,future:a,window:c}=t,d=g.useRef();d.current==null&&(d.current=uS({window:c,v5Compat:!0}));let h=d.current,[p,m]=g.useState({action:h.action,location:h.location}),{v7_startTransition:v}=a||{},b=g.useCallback(S=>{v&&rp?rp(()=>m(S)):m(S)},[m,v]);return g.useLayoutEffect(()=>h.listen(b),[h,b]),g.useEffect(()=>
9ZS(a),[a]),g.createElement(ej,{basename:r,children:o,location:p.location,navigationType:p.action,navigator:h,future:a})}const uj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Se=g.forwardRef(function(r,o){let{onClick:a,relative:c,reloadDocument:d,replace:h,state:p,target:m,to:v,preventScrollReset:b,viewTransition:S}=r,k=nj(r,ij),{basename:w}=g.useContext(Er),R,x=!1;if(typeof v=="string"&&dj.test(v)&&(R=v,uj))try{let E=new URL(window.location.href),T=v.startsWith("//")?new URL(E.protocol+v):new URL(v),_=Tu(T.pathname,w);T.origin===E.origin&&_!=null?v=_+T.search+T.hash:x=!0}catch{}let j=FS(v,{relative:c}),P=fj(v,{replace:h,state:p,target:m,preventScrollReset:b,relative:c,viewTransition:S});function C(E){a&&a(E),E.defaultPrevented||P(E)}return g.createElement("a",Xc({},k,{href:R||j,onClick:x||d?a:C,ref:o,target:m}))});var sp;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(sp||(sp={}));var op;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(op||(op={}));function fj(t,r){let{target:o,replace:a,state:c,preventScrollReset:d,relative:h,viewTransition:p}=r===void 0?{}:r,m=Ea(),v=lr(),b=lg(t,{relative:h});return g.useCallback(S=>{if(sj(S,o)){S.preventDefault();let k=a!==void 0?a:la(v)===la(b);m(t,{replace:k,state:c,preventScrollReset:d,relative:h,viewTransition:p})}},[v,m,b,a,c,o,t,d,h,p])}function hj(t){let r=g.useRef(Zc(t)),o=g.useRef(!1),a=lr(),c=g.useMemo(()=>oj(a.search,o.current?null:r.current),[a.search]),d=Ea(),h=g.useCallback((p,m)=>{const v=Zc(typeof p=="function"?p(c):p);o.current=!0,d("?"+v,m)},[d,c]);return[c,h]}function pj({children:t,...r}){return i.jsx(y0,{...r,children:t})}const mj=()=>{const{pathname:t,hash:r}=lr();g.useEffect(()=>{if(r){const o=r.slice(1),a=window.setTimeout(()=>{const c=document.getElementById(o);c?c.scrollIntoView({behavior:"smooth",block:"start"}):window.scrollTo(0,0)},60);return()=>window.clearTimeout(a)}window.scrollTo(0,0)},[t,r])},kc="G-PJQ5C8R3JH";function gj(){if(typeof window>"u"||!kc||document.getElementById("ga4-script"))return;window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",kc,{send_page_view:!1});const t=document.createElement("script");t.async=!0,t.src=`https://www.googletagmanager.com/gtag/js?id=${kc}`,t.id="ga4-script",document.head.appendChild(t)}function vj(t){window.gtag&&window.gtag("event","page_view",{page_location:window.location.href,page_path:t})}function yj(t,r,o){window.gtag&&window.gtag("event","add_to_cart",{currency:r,value:t,items:o})}function fg(t,r,o){window.gtag&&window.gtag("event","begin_checkout",{currency:r,value:t,items:o})}function ip(t,r,o,a){window.gtag&&window.gtag("event","purchase",{transaction_id:t,currency:o,value:r,items:a})}function xj(){const t=lr();g.useEffect(()=>{vj(t.pathname+t.search)},[t.pathname,t.search])}var Ec="focusScope.autoFocusOnMount",Nc="focusScope.autoFocusOnUnmount",ap={bubbles:!1,cancelable:!0},wj="FocusScope",hg=g.forwardRef((t,r)=>{const{loop:o=!1,trapped:a=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...h}=t,[p,m]=g.useState(null),v=mn(c),b=mn(d),S=g.useRef(null),k=dt(r,x=>m(x)),w=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(a){let x=function(E){if(w.paused||!p)return;const T=E.target;p.contains(T)?S.current=T:nr(S.current,{select:!0})},j=function(E){if(w.paused||!p)return;const T=E.relatedTarget;T!==null&&(p.contains(T)||nr(S.current,{select:!0}))},P=function(E){if(document.activeElement===document.body)for(const _ of E)_.removedNodes.length>0&&nr(p)};document.addEventListener("focusin",x),document.addEventListener("focusout",j);const C=new MutationObserver(P);return p&&C.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",j),C.disconnect()}}},[a,p,w.paused]),g.useEffect(()=>{if(p){cp.add(w);const x=document.activeElement;
vendor: 8,239 bytes, lines 9-24
9if(!p.contains(x)){const P=new CustomEvent(Ec,ap);p.addEventListener(Ec,v),p.dispatchEvent(P),P.defaultPrevented||(bj(Ej(pg(p)),{select:!0}),document.activeElement===x&&nr(p))}return()=>{p.removeEventListener(Ec,v),setTimeout(()=>{const P=new CustomEvent(Nc,ap);p.addEventListener(Nc,b),p.dispatchEvent(P),P.defaultPrevented||nr(x??document.body,{select:!0}),p.removeEventListener(Nc,b),cp.remove(w)},0)}}},[p,v,b,w]);const R=g.useCallback(x=>{if(!o&&!a||w.paused)return;const j=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,P=document.activeElement;if(j&&P){const C=x.currentTarget,[E,T]=Sj(C);E&&T?!x.shiftKey&&P===T?(x.preventDefault(),o&&nr(E,{select:!0})):x.shiftKey&&P===E&&(x.preventDefault(),o&&nr(T,{select:!0})):P===C&&x.preventDefault()}},[o,a,w.paused]);return i.jsx(Fe.div,{tabIndex:-1,...h,ref:k,onKeyDown:R})});hg.displayName=wj;function bj(t,{select:r=!1}={}){const o=document.activeElement;for(const a of t)if(nr(a,{select:r}),document.activeElement!==o)return}function Sj(t){const r=pg(t),o=lp(r,t),a=lp(r.reverse(),t);return[o,a]}function pg(t){const r=[],o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const c=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||c?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)r.push(o.currentNode);return r}function lp(t,r){for(const o of t)if(!jj(o,{upTo:r}))return o}function jj(t,{upTo:r}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(r!==void 0&&t===r)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function Cj(t){return t instanceof HTMLInputElement&&"select"in t}function nr(t,{select:r=!1}={}){if(t&&t.focus){const o=document.activeElement;t.focus({preventScroll:!0}),t!==o&&Cj(t)&&r&&t.select()}}var cp=kj();function kj(){let t=[];return{add(r){const o=t[0];r!==o&&o?.pause(),t=up(t,r),t.unshift(r)},remove(r){t=up(t,r),t[0]?.resume()}}}function up(t,r){const o=[...t],a=o.indexOf(r);return a!==-1&&o.splice(a,1),o}function Ej(t){return t.filter(r=>r.tagName!=="A")}var Tc=0;function Nj(){g.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??dp()),document.body.insertAdjacentElement("beforeend",t[1]??dp()),Tc++,()=>{Tc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Tc--}},[])}function dp(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var fn=function(){return fn=Object.assign||function(r){for(var o,a=1,c=arguments.length;a<c;a++){o=arguments[a];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(r[d]=o[d])}return r},fn.apply(this,arguments)};function mg(t,r){var o={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&r.indexOf(a)<0&&(o[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(t);c<a.length;c++)r.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(t,a[c])&&(o[a[c]]=t[a[c]]);return o}function Tj(t,r,o){if(o||arguments.length===2)for(var a=0,c=r.length,d;a<c;a++)(d||!(a in r))&&(d||(d=Array.prototype.slice.call(r,0,a)),d[a]=r[a]);return t.concat(d||Array.prototype.slice.call(r))}var Xi="right-scroll-bar-position",Zi="width-before-scroll-bar",Pj="with-scroll-bars-hidden",Rj="--removed-body-scroll-bar-size";function Pc(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function Aj(t,r){var o=g.useState(function(){return{value:t,callback:r,facade:{get current(){return o.value},set current(a){var c=o.value;c!==a&&(o.value=a,o.callback(a,c))}}}})[0];return o.callback=r,o.facade}var Oj=typeof window<"u"?g.useLayoutEffect:g.useEffect,fp=new WeakMap;function Ij(t,r){var o=Aj(null,function(a){return t.forEach(function(c){return Pc(c,a)})});return Oj(function(){var a=fp.get(o);if(a){var c=new Set(a),d=new Set(t),h=o.current;c.forEach(function(p){d.has(p)||Pc(p,null)}),d.forEach(function(p){c.has(p)||Pc(p,h)})}fp.set(o,t)},[t]),o}function _j(t){return t}function Lj(t,r){r===void 0&&(r=_j);var o=[],a=!1,c={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:t},useMedium:function(d){var h=r(d,a);return o.push(h),function(){o=o.filter(function(p){return p!==h})}},assignSyncMedium:function(d){for(a=!0;o.length;){var h=o;o=[],h.forEach(d)}o={push:function(p){return d(p)},filter:function(){return o}}},assignMedium:function(d){a=!0;var h=[];if(o.length){var p=o;o=[],p.forEach(d),h=o}var m=function(){var b=h;h=[],b.forEach(d)},v=function(){return Promise.resolve().then(m)};v(),o={push:function(b){h.push(b),v()},filter:function(b){return h=h.filter(b),o}}}};return c}function Mj(t){t===void 0&&(t={});var r=Lj(null);return r.options=fn({async:!0,ssr:!1},t),r}var gg=function(t){var r=t.sideCar,o=mg(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=r.read();if(!a)throw new Error("Sidecar medium not found");return g.createElement(a,fn({},o))};gg.isSideCarExport=!0;function Dj(t,r){return t.useMedium(r),gg}var vg=Mj(),Rc=function(){},Na=g.forwardRef(function(t,r){var o=g.useRef(null),a=g.useState({onScrollCapture:Rc,onWheelCapture:Rc,onTouchMoveCapture:Rc}),c=a[0],d=a[1],h=t.forwardProps,p=t.children,m=t.className,v=t.removeScrollBar,b=t.enabled,S=t.shards,k=t.sideCar,w=t.noRelative,R=t.noIsolation,x=t.inert,j=t.allowPinchZoom,P=t.as,C=P===void 0?"div":P,E=t.gapMode,T=mg(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=k,D=Ij([o,r]),z=fn(fn({},T),c);return g.createElement(g.Fragment,null,b&&g.createElement(_,{sideCar:vg,removeScrollBar:v,shards:S,noRelative:w,noIsolation:R,inert:x,setCallbacks:d,allowPinchZoom:!!j,lockRef:o,gapMode:E}),h?g.cloneElement(g.Children.only(p),fn(fn({},z),{ref:D})):g.createElement(C,fn({},z,{className:m,ref:D}),p))});Na.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Na.classNames={fullWidth:Zi,zeroRight:Xi};var Fj=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zj(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=Fj();return r&&t.setAttribute("nonce",r),t}function $j(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function Bj(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var Wj=function(){var t=0,r=null;return{add:function(o){t==0&&(r=zj())&&($j(r,o),Bj(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},Uj=function(){var t=Wj();return function(r,o){g.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&o])}},yg=function(){var t=Uj(),r=function(o){var a=o.styles,c=o.dynamic;return t(a,c),null};return r},Hj={left:0,top:0,right:0,gap:0},Ac=function(t){return parseInt(t||"",10)||0},Vj=function(t){var r=window.getComputedStyle(document.body),o=r[t==="padding"?"paddingLeft":"marginLeft"],a=r[t==="padding"?"paddingTop":"marginTop"],c=r[t==="padding"?"paddingRight":"marginRight"];return[Ac(o),Ac(a),Ac(c)]},Qj=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return Hj;var r=Vj(t),o=document.documentElement.clientWidth,a=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,a-o+r[2]-r[0])}},qj=yg(),as="data-scroll-locked",Yj=function(t,r,o,a){var c=t.left,d=t.top,h=t.right,p=t.gap;return o===void 0&&(o="margin"),` 10 .`.concat(Pj,` { 11 overflow: hidden `).concat(a,`; 12 padding-right: `).concat(p,"px ").concat(a,`; 13 } 14 body[`).concat(as,`] { 15 overflow: hidden `).concat(a,`; 16 overscroll-behavior: contain; 17 `).concat([r&&"position: relative ".concat(a,";"),o==="margin"&&` 18 padding-left: `.concat(c,`px; 19 padding-top: `).concat(d,`px; 20 padding-right: `).concat(h,`px; 21 margin-left:0; 22 margin-top:0; 23 margin-right: `).concat(p,"px ").concat(a,`; 24 `),o==="padding"&&"padding-right: ".concat(p,"px ").concat(a,";
24")].filter(Boolean).join(""),` 25 } 26 27 .`).concat(Xi,` { 28 right: `).concat(p,"px ").concat(a,`; 29 } 30 31 .`).concat(Zi,` { 32 margin-right: `).concat(p,"px ").concat(a,`; 33 } 34 35 .`).concat(Xi," .").concat(Xi,` { 36 right: 0 `).concat(a,`; 37 } 38 39 .`).concat(Zi," .").concat(Zi,` { 40 margin-right: 0 `).concat(a,`; 41 } 42 43 body[`).concat(as,`] { 44 `).concat(Rj,": ").concat(p,`px; 45 } 46`)},hp=function(){var t=parseInt(document.body.getAttribute(as)||"0",10);return isFinite(t)?t:0},Kj=function(){g.useEffect(function(){return document.body.setAttribute(as,(hp()+1).toString()),function(){var t=hp()-1;t<=0?document.body.removeAttribute(as):document.body.setAttribute(as,t.toString())}},[])},Gj=function(t){var r=t.noRelative,o=t.noImportant,a=t.gapMode,c=a===void 0?"margin":a;Kj();var d=g.useMemo(function(){return Qj(c)},[c]);return g.createElement(qj,{styles:Yj(d,!r,c,o?"":"!important")})},eu=!1;if(typeof window<"u")try{var Ui=Object.defineProperty({},"passive",{get:function(){return eu=!0,!0}});window.addEventListener("test",Ui,Ui),window.removeEventListener("test",Ui,Ui)}catch{eu=!1}var ns=eu?{passive:!1}:!1,Jj=function(t){return t.tagName==="TEXTAREA"},xg=function(t,r){if(!(t instanceof Element))return!1;var o=window.getComputedStyle(t);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!Jj(t)&&o[r]==="visible")},Xj=function(t){return xg(t,"overflowY")},Zj=function(t){return xg(t,"overflowX")},pp=function(t,r){var o=r.ownerDocument,a=r;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var c=wg(t,a);if(c){var d=bg(t,a),h=d[1],p=d[2];if(h>p)return!0}a=a.parentNode}while(a&&a!==o.body);return!1},eC=function(t){var r=t.scrollTop,o=t.scrollHeight,a=t.clientHeight;return[r,o,a]},tC=function(t){var r=t.scrollLeft,o=t.scrollWidth,a=t.clientWidth;return[r,o,a]},wg=function(t,r){return t==="v"?Xj(r):Zj(r)},bg=function(t,r){return t==="v"?eC(r):tC(r)},nC=function(t,r){return t==="h"&&r==="rtl"?-1:1},rC=function(t,r,o,a,c){var d=nC(t,window.getComputedStyle(r).direction),h=d*a,p=o.target,m=r.contains(p),v=!1,b=h>0,S=0,k=0;do{if(!p)break;var w=bg(t,p),R=w[0],x=w[1],j=w[2],P=x-j-d*R;(R||P)&&wg(t,p)&&(S+=P,k+=R);var C=p.parentNode;p=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!m&&p!==document.body||m&&(r.contains(p)||r===p));return(b&&Math.abs(S)<1||!b&&Math.abs(k)<1)&&(v=!0),v},Hi=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},mp=function(t){return[t.deltaX,t.deltaY]},gp=function(t){return t&&"current"in t?t.current:t},sC=function(t,r){return t[0]===r[0]&&t[1]===r[1]},oC=function(t){return` 47 .block-interactivity-`.concat(t,` {pointer-events: none;} 48 .allow-interactivity-`).concat(t,` {pointer-events: all;} 49`)},iC=0,rs=[];function aC(t){var r=g.useRef([]),o=g.useRef([0,0]),a=g.useRef(),c=g.useState(iC++)[0],d=g.useState(yg)[0],h=g.useRef(t);g.useEffect(function(){h.current=t},[t]),g.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(c));var x=Tj([t.lockRef.current],(t.shards||[]).map(gp),!0).filter(Boolean);return x.forEach(function(j){return j.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),x.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(c))})}}},[t.inert,t.lockRef.current,t.shards]);var p=g.useCallback(function(x,j){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!h.current.allowPinchZoom;var P=Hi(x),C=o.current,E="deltaX"in x?x.deltaX:C[0]-P[0],T="deltaY"in x?x.deltaY:C[1]-P[1],_,D=x.target,z=Math.abs(E)>Math.abs(T)?"h":"v";if("touches"in x&&z==="h"&&D.type==="range")return!1;var U=pp(z,D);if(!U)return!0;if(U?_=z:(_=z==="v"?"h":"v",U=pp(z,D)),!U)return!1;if(!a.current&&"changedTouches"in x&&(E||T)&&(a.current=_),!_)return!0;var X=a.current||_;return rC(X,j,x,X==="h"?E:T)},[]),m=g.useCallback(function(x){var j=x;if(!(!rs.length||rs[rs.length-1]!==d)){var P="deltaY"in j?mp(j):Hi(j),C=r.current.filter(function(_){return _.name===j.type&&(_.target===j.target||j.target===_.shadowParent)&&sC(_.delta,P)})[0];if(C&&C.should){j.cancelable&&j.preventDefault();return}
vendor: 7,886 bytes, lines 49-53
49if(!C){var E=(h.current.shards||[]).map(gp).filter(Boolean).filter(function(_){return _.contains(j.target)}),T=E.length>0?p(j,E[0]):!h.current.noIsolation;T&&j.cancelable&&j.preventDefault()}}},[]),v=g.useCallback(function(x,j,P,C){var E={name:x,delta:j,target:P,should:C,shadowParent:lC(P)};r.current.push(E),setTimeout(function(){r.current=r.current.filter(function(T){return T!==E})},1)},[]),b=g.useCallback(function(x){o.current=Hi(x),a.current=void 0},[]),S=g.useCallback(function(x){v(x.type,mp(x),x.target,p(x,t.lockRef.current))},[]),k=g.useCallback(function(x){v(x.type,Hi(x),x.target,p(x,t.lockRef.current))},[]);g.useEffect(function(){return rs.push(d),t.setCallbacks({onScrollCapture:S,onWheelCapture:S,onTouchMoveCapture:k}),document.addEventListener("wheel",m,ns),document.addEventListener("touchmove",m,ns),document.addEventListener("touchstart",b,ns),function(){rs=rs.filter(function(x){return x!==d}),document.removeEventListener("wheel",m,ns),document.removeEventListener("touchmove",m,ns),document.removeEventListener("touchstart",b,ns)}},[]);var w=t.removeScrollBar,R=t.inert;return g.createElement(g.Fragment,null,R?g.createElement(d,{styles:oC(c)}):null,w?g.createElement(Gj,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function lC(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const cC=Dj(vg,aC);var Sg=g.forwardRef(function(t,r){return g.createElement(Na,fn({},t,{ref:r,sideCar:cC}))});Sg.classNames=Na.classNames;var uC=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},ss=new WeakMap,Vi=new WeakMap,Qi={},Oc=0,jg=function(t){return t&&(t.host||jg(t.parentNode))},dC=function(t,r){return r.map(function(o){if(t.contains(o))return o;var a=jg(o);return a&&t.contains(a)?a:(console.error("aria-hidden",o,"in not contained inside",t,". Doing nothing"),null)}).filter(function(o){return!!o})},fC=function(t,r,o,a){var c=dC(r,Array.isArray(t)?t:[t]);Qi[o]||(Qi[o]=new WeakMap);var d=Qi[o],h=[],p=new Set,m=new Set(c),v=function(S){!S||p.has(S)||(p.add(S),v(S.parentNode))};c.forEach(v);var b=function(S){!S||m.has(S)||Array.prototype.forEach.call(S.children,function(k){if(p.has(k))b(k);else try{var w=k.getAttribute(a),R=w!==null&&w!=="false",x=(ss.get(k)||0)+1,j=(d.get(k)||0)+1;ss.set(k,x),d.set(k,j),h.push(k),x===1&&R&&Vi.set(k,!0),j===1&&k.setAttribute(o,"true"),R||k.setAttribute(a,"true")}catch(P){console.error("aria-hidden: cannot operate on ",k,P)}})};return b(r),p.clear(),Oc++,function(){h.forEach(function(S){var k=ss.get(S)-1,w=d.get(S)-1;ss.set(S,k),d.set(S,w),k||(Vi.has(S)||S.removeAttribute(a),Vi.delete(S)),w||S.removeAttribute(o)}),Oc--,Oc||(ss=new WeakMap,ss=new WeakMap,Vi=new WeakMap,Qi={})}},hC=function(t,r,o){o===void 0&&(o="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),c=uC(t);return c?(a.push.apply(a,Array.from(c.querySelectorAll("[aria-live]"))),fC(a,c,o,"aria-hidden")):function(){return null}},Ta="Dialog",[Cg]=yo(Ta),[pC,Jt]=Cg(Ta),kg=t=>{const{__scopeDialog:r,children:o,open:a,defaultOpen:c,onOpenChange:d,modal:h=!0}=t,p=g.useRef(null),m=g.useRef(null),[v,b]=Mp({prop:a,defaultProp:c??!1,onChange:d,caller:Ta});return i.jsx(pC,{scope:r,triggerRef:p,contentRef:m,contentId:wc(),titleId:wc(),descriptionId:wc(),open:v,onOpenChange:b,onOpenToggle:g.useCallback(()=>b(S=>!S),[b]),modal:h,children:o})};kg.displayName=Ta;var Eg="DialogTrigger",Ng=g.forwardRef((t,r)=>{const{__scopeDialog:o,...a}=t,c=Jt(Eg,o),d=dt(r,c.triggerRef);return i.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":Ou(c.open),...a,ref:d,onClick:_e(t.onClick,c.onOpenToggle)})});Ng.displayName=Eg;var Ru="DialogPortal",[mC,Tg]=Cg(Ru,{forceMount:void 0}),Pg=t=>{const{__scopeDialog:r,forceMount:o,children:a,container:c}=t,d=Jt(Ru,r);return i.jsx(mC,{scope:r,forceMount:o,children:g.Children.map(a,h=>i.jsx(fs,{present:o||d.open,children:i.jsx(lu,{asChild:!0,container:c,children:h})}))})};Pg.displayName=Ru;var ca="DialogOverlay",Rg=g.forwardRef((t,r)=>{const o=Tg(ca,t.__scopeDialog),{forceMount:a=o.forceMount,...c}=t,d=Jt(ca,t.__scopeDialog);return d.modal?i.jsx(fs,{present:a||d.open,children:i.jsx(vC,{...c,ref:r})}):null});Rg.displayName=ca;var gC=co("DialogOverlay.RemoveScroll"),vC=g.forwardRef((t,r)=>{const{__scopeDialog:o,...a}=t,c=Jt(ca,o);return i.jsx(Sg,{as:gC,allowPinchZoom:!0,shards:[c.contentRef],children:i.jsx(Fe.div,{"data-state":Ou(c.open),...a,ref:r,style:{pointerEvents:"auto",...a.style}})})}),kr="DialogContent",Ag=g.forwardRef((t,r)=>{const o=Tg(kr,t.__scopeDialog),{forceMount:a=o.forceMount,...c}=t,d=Jt(kr,t.__scopeDialog);return i.jsx(fs,{present:a||d.open,children:d.modal?i.jsx(yC,{...c,ref:r}):i.jsx(xC,{...c,ref:r})})});Ag.displayName=kr;var yC=g.forwardRef((t,r)=>{const o=Jt(kr,t.__scopeDialog),a=g.useRef(null),c=dt(r,o.contentRef,a);return g.useEffect(()=>{const d=a.current;if(d)return hC(d)},[]),i.jsx(Og,{...t,ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_e(t.onCloseAutoFocus,d=>{d.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:_e(t.onPointerDownOutside,d=>{const h=d.detail.originalEvent,p=h.button===0&&h.ctrlKey===!0;(h.button===2||p)&&d.preventDefault()}),onFocusOutside:_e(t.onFocusOutside,d=>d.preventDefault())})}),xC=g.forwardRef((t,r)=>{const o=Jt(kr,t.__scopeDialog),a=g.useRef(!1),c=g.useRef(!1);return i.jsx(Og,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{t.onCloseAutoFocus?.(d),d.defaultPrevented||(a.current||o.triggerRef.current?.focus(),d.preventDefault()),a.current=!1,c.current=!1},onInteractOutside:d=>{t.onInteractOutside?.(d),d.defaultPrevented||(a.current=!0,d.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const h=d.target;o.triggerRef.current?.contains(h)&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&c.current&&d.preventDefault()}})}),Og=g.forwardRef((t,r)=>{const{__scopeDialog:o,trapFocus:a,onOpenAutoFocus:c,onCloseAutoFocus:d,...h}=t,p=Jt(kr,o),m=g.useRef(null),v=dt(r,m);return Nj(),i.jsxs(i.Fragment,{children:[i.jsx(hg,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:c,onUnmountAutoFocus:d,children:i.jsx(pa,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":Ou(p.open),...h,ref:v,onDismiss:()=>p.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(wC,{titleId:p.titleId}),i.jsx(SC,{contentRef:m,descriptionId:p.descriptionId})]})]})}),Au="DialogTitle",Ig=g.forwardRef((t,r)=>{const{__scopeDialog:o,...a}=t,c=Jt(Au,o);return i.jsx(Fe.h2,{id:c.titleId,...a,ref:r})});Ig.displayName=Au;var _g="DialogDescription",Lg=g.forwardRef((t,r)=>{const{__scopeDialog:o,...a}=t,c=Jt(_g,o);return i.jsx(Fe.p,{id:c.descriptionId,...a,ref:r})});Lg.displayName=_g;var Mg="DialogClose",Dg=g.forwardRef((t,r)=>{const{__scopeDialog:o,...a}=t,c=Jt(Mg,o);return i.jsx(Fe.button,{type:"button",...a,ref:r,onClick:_e(t.onClick,()=>c.onOpenChange(!1))})});Dg.displayName=Mg;function Ou(t){return t?"open":"closed"}var Fg="DialogTitleWarning",[PE,zg]=Tx(Fg,{contentName:kr,titleName:Au,docsSlug:"dialog"}),wC=({titleId:t})=>{const r=zg(Fg),o=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users. 50 51If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component. 52 53For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return g.useEffect(()=>{t&&(document.getElementById(t)||console.error(o))},[o,t]),null},bC="DialogDescriptionWarning",SC=({contentRef:t,descriptionId:r})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zg(bC).contentName}}.`;return g.useEffect(()=>{const c=t.current?.getAttribute("aria-describedby");r&&c&&(document.getElementById(r)||console.warn(a))},[a,t,r]),null}
53,jC=kg,CC=Ng,kC=Pg,$g=Rg,Bg=Ag,Wg=Ig,Ug=Lg,EC=Dg;const NC=jC,TC=CC,PC=kC,Hg=g.forwardRef(({className:t,...r},o)=>i.jsx($g,{className:ze("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r,ref:o}));Hg.displayName=$g.displayName;const RC=va("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Vg=g.forwardRef(({side:t="right",className:r,children:o,...a},c)=>i.jsxs(PC,{children:[i.jsx(Hg,{}),i.jsxs(Bg,{ref:c,className:ze(RC({side:t}),r),...a,children:[o,i.jsxs(EC,{className:"absolute right-4 top-4 roun
53ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[i.jsx(fu,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Vg.displayName=Bg.displayName;const Qg=({className:t,...r})=>i.jsx("div",{className:ze("flex flex-col space-y-2 text-center sm:text-left",t),...r});Qg.displayName="SheetHeader";const qg=g.forwardRef(({className:t,...r},o)=>i.jsx(Wg,{ref:o,className:ze("text-lg font-semibold text-foreground",t),...r}));qg.displayName=Wg.displayName;const Yg=g.forwardRef(({className:t,...r},o)=>i.jsx(Ug,{ref:o,className:ze("text-sm text-muted-foreground",t),...r}));Yg.displayName=Ug.displayName;const AC="/assets/ROWJ-ZVJydzHU.JPG",OC="/assets/CHOOSE-FRUIT-TMcKG6fY.jpg",Kg="/assets/CHOOSE-FRUIT-BLACK-B2_mNJvT.jpg",Gg="/assets/CHOOSE-FRUIT-WHITE-BmCHquBZ.jpg",IC="/assets/CHOOSE-RIVA-Dmzzcaja.jpg",Jg="/assets/CHOOSE-RIVA-BLACK-DT1u46Ri.jpg",Xg="/assets/CHOOSE-RIVA-WHITE-HjAUrZIn.jpg",_C="/assets/CHOOSE-ECOS-B582m13B.jpg",Zg="/assets/CHOOSE-ECOS-BLACK-BniLhJF5.jpg",ev="/assets/CHOOSE-ECOS-WHITE-BAXKePGp.jpg",ea="/assets/alyra_cupid_pink-B8KQYTIl.PNG",Iu="/assets/FDM-REFILL-CkQdUO6P.jpg",tv="/assets/RA-REFILL-C0vQv315.jpg",nv="/assets/EDL-REFILL-c17MHsxJ.jpg",LC=(t,r,o)=>{const a=t==="ecos-de-lisboa"?1:t==="fruit-damour"?2:t==="riva-azul"?3:0;
53if(r==="Refill Only"||r==="Refill only"||r==="Refill"){if(a===2)return Iu;if(a===3)return tv;if(a===1)return nv}else{if(o==="cupidPink"||o==="Cupid Pink")return ea;if(a===2)return o==="black"?Kg:o==="white"?Gg:OC;if(a===3)return o==="black"?Jg:o==="white"?Xg:IC;if(a===1)return o==="black"?Zg:o==="white"?ev:_C}return AC},MC="https://nexus-commerce-pi.vercel.app".replace(/\/$/,"");function DC(t){return`${MC}${t}`}async function An(t,r={}){const o={};r.body!==void 0&&(o["Content-Type"]="application/json"),r.cartId&&(o["X-Cart-Id"]=r.cartId);const a=await fetch(DC(t),{method:r.method??"GET",headers:o,body:r.body!==void 0?JSON.stringify(r.body):void 0});let c=null;try{c=await a.json()}catch{}if(!a.ok){const d=c?.error||`Request failed (${a.status})`,h=new Error(d);throw h.status=a.status,h}return c}function rv(){return An("/api/v2/products/list")}function FC(t,r){return An("/api/v2/discounts/validate",{method:"POST",body:{code:t,subtotalMinor:r}})}function zC(t,r,o){return An("/api/v2/cart/add-item",{method:"POST",body:{variantId:r,qty:o},cartId:t})}function $C(t,r){return An("/api/v2/cart/apply-discount",{method:"POST",body:{code:r},cartId:t})}function BC(t,r){return An("/api/v2/orders/checkout",{method:"POST",body:r,cartId:t})}function WC(t){return An("/api/v2/orders/abandon",{method:"POST",body:{orderId:t}})}function UC(t,r){return An("/api/v2/orders/checkout-cod",{method:"POST",body:r,cartId:t})}function HC(t,r){const o=new URLSearchParams({id:t,token:r});return An(`/api/v2/orders/get?${o.toString()}`)}function VC(t,r,o){return An("/api/v2/subscribers",{method:"POST",body:{email:t,source:r,name:o}})}const sv={"ecos-de-lisboa":"EDL","riva-azul":"RAZ","fruit-damour":"FDA"},Ic={EDL:"ecos-de-lisboa",RAZ:"riva-azul",FDA:"fruit-damour"},QC={BLK:"Black",WHT:"White",PNK:"Cupid Pink"},qC={"Fruit d'Amour â Red Oud":"fruit-damour","Fruit d'Amour":"fruit-damour","Riva Azul â Fresh Citrus":"riva-azul","Riva Azul":"riva-azul","Ecos de Lisboa â Sage Wood":"ecos-de-lisboa","Ecos de Lisboa":"ecos-de-lisboa"};function ov(t){return t.replace(/-refill$/i,"")}function YC(t){const r=t.trim().toLowerCase().replace(/\s+/g,"");return r==="black"?"BLK":r==="white"?"WHT":r==="cupidpink"?"PNK":null}function KC(t,r){const o=sv[ov(t)],a=YC(r);return!o||!a?null:`ALY-${o}-CASE-${a}`}function GC(t){const r=sv[ov(t)];return r?`ALY-${r}-REF`:null}function JC(t){const r=t.Handle||qC[t.Scent||""]||null;return r?t.Type==="Refill Only"||t.Size==="Refill Only"||!t.Color?GC(r):KC(r,t.Color):null}function vp(t,r,o){const a=t.status==="Active"&&t.inventory>0;return{id:t.id,title:r,sku:t.sku,availableForSale:a,quantityAvailable:t.inventory,price:{amount:(t.priceMinor/100).toFixed(2),currencyCode:"INR"},selectedOptions:o?[{name:"Color",value:o}]:[],stockStatus:a?"In Stock":"Sold Out"}}function XC(t){const r={},o={};for(const c of t){const d=c.sku.split("-");if(d[0]!=="ALY")continue;const h=d[1];if(Ic[h]){if(d[2]==="REF")o[h]=vp(c,"Refill only");else if(d[2]==="CASE"){const p=QC[d[3]];if(!p)continue;(r[h]||=[]).push(vp(c,p,p))}}}const a=[];for(const c of Object.keys(Ic)){const d=Ic[c],h=r[c];if(h&&h.length){const m=h.reduce((v,b)=>v+b.quantityAvailable,0);a.push({id:`set-${d}`,title:d,handle:d,vendor:"Alyra",productType:"Set",tags:[],variants:h,overallStockStatus:h.some(v=>v.availableForSale)?"In Stock":"Sold Out",totalAvailable:m,images:[]})}const p=o[c];p&&a.push({id:`refill-${d}`,title:`${d}-refill`,handle:`${d}-refill`,vendor:"Alyra",productType:"Refill",tags:[],variants:[p],overallStockStatus:p.availableForSale?"In Stock":"Sold Out",totalAvailable:p.quantityAvailable,images:[]})}return a}const So=()=>{const[t,r]=g.useState(null),[o,a]=g.useState(!0),[c,d]=g.useState(null),h=async()=>{try{a(!0),d(null);const{products:j}=await rv(),P=XC(j),C=P.reduce((E,T)=>E+T.variants.length,0);r({success:!0,summary:{totalProducts:P.length,inStock:P.filter(E=>E.overallStockStatus==="In Stock").length,soldOut:P.filter(E=>E.overallStockStatus!=="In Stock").length,totalVariants:C},products:P,timestamp:new Date().toISOString()})}catch(j){console.error("Error fetching inventory:",j),d(j instanceof Error?j.message:"Failed to fetch inventory")}finally{a(!1)}};g.useEffect(()=>{h()},[]);const p=j=>t?.products?t.products.find(P=>P.handle===j||P.handle===`${j}-refill`):null,m=(j,P)=>j.variants.find(C=>C.selectedOptions.some(E=>E.name.toLowerCase().includes("color")&&E.value.toLowerCase()===P.toLowerCase()));return{inventory:t,loading:o,error:c,fetchInventory:h,getProductInventory:p,isVariantInStock:(j,P)=>{const C=p(j);return C?m(C,P)?.availableForSale??!1:!1}
53,getVariantQuantity:(j,P)=>{const C=p(j);return C?m(C,P)?.quantityAvailable??0:0},isVariantInStockByTitle:(j,P)=>{const C=p(j);return C&&C.variants.find(T=>T.title===P)?.availableForSale||!1},getVariantQuantityByTitle:(j,P)=>{const C=p(j);return C&&C.variants.find(T=>T.title===P)?.quantityAvailable||0},getProductStockStatus:j=>p(j)?.overallStockStatus||"Unknown",getVariantId:(j,P)=>{const C=p(j);return C&&m(C,P)?.id||null},getVariantIdByTitle:(j,P)=>{const C=p(j);return C&&C.variants.find(T=>T.title===P)?.id||null}}},iv=g.createContext({}),yp="alyra_cart",ZC={"Fruit d'Amour â Red Oud":"fruit-damour","Fruit d'Amour":"fruit-damour","Riva Azul â Fresh Citrus":"riva-azul","Riva Azul":"riva-azul","Ecos de Lisboa â Sage Wood":"ecos-de-lisboa","Ecos de Lisboa":"ecos-de-lisboa"};function ek({children:t}){const{getVariantId:r}=So(),[o,a]=g.useState(()=>{const C=localStorage.getItem(yp);return C?JSON.parse(C):{items:[],totalQuantity:0,subtotal:0,shipping:0,total:0}}),[c,d]=g.useState(!1),h=(C,E=!1)=>{const T=C.reduce((U,X)=>U+X.lineTotal,0),_=0,D=T+_,z=C.reduce((U,X)=>U+X.quantity,0);return{subtotal:T,shipping:_,total:D,totalQuantity:z}};g.useEffect(()=>{localStorage.setItem(yp,JSON.stringify(o))},[o]);const p=(C,E)=>{const T=Object.keys(C).sort(),_=Object.keys(E).sort();if(T.length!==_.length)return!1;for(let D=0;D<T.length;D++)if(T[D]!==_[D])return!1;for(const D of T){const z=C[D]?.toString().trim().toLowerCase(),U=E[D]?.toString().trim().toLowerCase();if(z!==U)return!1}return!0};async function m(C,E=1,T={}){d(!0);const _=new CustomEvent("addToCart",{detail:{product:C,qty:E,attrs:T,timestamp:Date.now()}});window.dispatchEvent(_);try{const D=o.items.findIndex(te=>te.variantId===C.variantId&&p(te.attributes,T));let z;if(D!==-1)z=[...o.items],z[D].quantity+=E,z[D].lineTotal=z[D].price*z[D].quantity;else{const te={id:`${C.variantId}-${Date.now()}`,variantId:C.variantId,name:C.name,price:C.price,quantity:E,image:C.image,attributes:T,lineTotal:C.price*E};z=[...o.items,te]}const{subtotal:U,shipping:X,total:Z,totalQuantity:he}=h(z),Y=z.map(te=>({item_id:te.variantId,item_name:te.name,price:te.price,quantity:te.quantity,item_brand:"Alyra",item_category:"Solid Perfume"}));if(yj(Z,"INR",Y),typeof window<"u"&&window.fbq&&window.fbq("track","AddToCart",{value:Z,currency:"INR"}),o.discountCodes&&o.discountCodes.length>0){a({...o,items:z,subtotal:U,shipping:X,total:Z,totalQuantity:he});const te=o.discountCodes[o.discountCodes.length-1];te&&te.applicable&&await k(te.code,z)}else a({...o,items:z,subtotal:U,shipping:X,total:Z,totalQuantity:he})}catch(D){console.error("Error adding to cart:",D)}finally{d(!1)}}async function v(C,E,T){d(!0);try{const _=o.items.map(Z=>{if(Z.id===C){const he=Math.max(1,E),Y=T||Z.attributes;let te=Z.image,K=Z.price,me=Z.variantId;if(T&&Y.Type==="Case + Refill"&&Y.Color){const ce=Y.Handle||ZC[Y.Scent||""]||Z.variantId.replace(/-refill$/,"").replace(/-black$/,"").replace(/-white$/,"").replace(/-cupidpink$/,""),ie=Y.Type||Y.Size||"Case + Refill",B=Y.Color;te=LC(ce,ie,B),K=B==="Cupid Pink"?1299:1199;const W=r(ce,B);W&&(me=W)}return{...Z,variantId:me,price:K,quantity:he,lineTotal:K*he,attributes:Y,image:te}}return Z}),{subtotal:D,shipping:z,total:U,totalQuantity:X}=h(_);if(o.discountCodes&&o.discountCodes.length>0){a({...o,items:_,subtotal:D,shipping:z,total:U,totalQuantity:X});const Z=o.discountCodes[o.discountCodes.length-1];Z&&Z.applicable&&await k(Z.code,_)}else a({...o,items:_,subtotal:D,shipping:z,total:U,totalQuantity:X})}catch(_){console.error("Error updating line:",_)}finally{d(!1)}}async function b(C){d(!0);try{const E=o.items.filter(X=>X.id!==C),{subtotal:T,shipping:_,total:D,totalQuantity:z}=h(E);if(E.length===0)await w(),a({...o,items:E,subtotal:T,shipping:_,total:D,totalQuantity:z,discountCodes:[]});else if(o.discountCodes&&o.discountCodes.length>0){const X=o.discountCodes[o.discountCodes.length-1];X&&X.applicable?(a({...o,items:E,subtotal:T,shipping:_,total:D,totalQuantity:z}),await k(X.code,E)):a({...o,items:E,subtotal:T,shipping:_,total:D,totalQuantity:z})}else a({...o,items:E,subtotal:T,shipping:_,total:D,totalQuantity:z})}catch(E){console.error("Error removing line:",E)}finally{d(!1)}}function S(){d(!0);try{w(),a({items:[],totalQuantity:0,subtotal:0,shipping:0,total:0,discountCodes:[],checkoutUrl:void 0})}catch(C){console.error("Error clearing cart:",C)}finally{d(!1)}}async function k(C,E,T=!0){try{d(!0);const D=(E||o.items).reduce((Y,te)=>Y+te.lineTotal,0);if(D<=0)return{success:!1,message:"Your cart is empty"};const z=Math.round(D*100),U=await FC(C.trim(),z);if(!U.valid||!U.discount)return{success:!1,message:U.error||"Code cannot be applied"};const X=U.discount.discountMinor/100,Z=Math.max(0,D-X);a(Y=>({...Y,discountCodes:[{code:C.trim(),applicable:!0}],total:Z}));const he=U.discount.type==="percent"?`${U.discount.value}% off`:`â¹${(U.discount.value/100).toFixed(0)} off`;return{success:!0,message:`Applied: ${C.trim()} (${he})`}}catch(_){return console.error("Error applying promo code:",_),{success:!1,message:"Could not apply code. Please try again."}}finally{d(!1)}}async function w(){a(C=>{const E=C.items.reduce((T,_)=>T+_.lineTotal,0);return{...C,discountCodes:[],subtotal:E,total:E}})}async function R(){const{products:C}=await rv(),E=new Set(C.map(U=>U.id)),T=new Map(C.map(U=>[U.sku,U.id])),_=U=>{const X=JC(U.attributes||{}),Z=X?T.get(X):void 0;return Z||(U.variantId&&E.has(U.variantId)?U.variantId:null)};let D=null;for(const U of o.items){const X=_(U);if(!X)throw new Error(`Could not find "${U.name}" in the catalog. Please remove it and try again.`);D=(await zC(D,X,U.quantity)).cartId}if(!D)throw new Error("Your cart is empty");const z=o.discountCodes?.find(U=>U.applicable)?.code;if(z)try{await $C(D,z)}catch(U){throw console.error("Discount could not be applied at checkout:",U),new Error("Your discount code is no longer valid. Please review your cart.")}return D}function x(C){return{line1:C?.address1||"",line2:C?.address2||void 0,city:C?.city||"",state:C?.state||void 0,postalCode:C?.zip||"",country:C?.country||"India"}}async function j(C,E="ONLINE"){if(o.items.length===0){alert("Your cart is empty");return}if(!C?.email){alert("Customer email is required for checkout");return}try{d(!0);const _=E==="COD"?o.total+100:o.total,D=o.items.map(Y=>({item_id:Y.variantId,item_name:Y.name,price:Y.price,quantity:Y.quantity,item_brand:"Alyra",item_category:"Solid Perfume"}));fg(_,"INR",D);const z=x(C.address);if(E==="COD"){const Y=await R(),te=await UC(Y,{email:C.email,phone:(C.phone||"").replace(/\D/g,""),name:C.name,shippingAddress:z,billingAddress:z});return ip(te.orderId,_,"INR",D),S(),{status:"COD_SUCCESS",orderId:te.orderId}}const U=await R(),X=await BC(U,{email:C.email,shippingAddress:z,billingAddress:z}),Z={key:X.razorpayKeyId,amount:X.amountMinor,currency:X.currency,name:"Alyra",description:"Solid Perfume Purchase",order_id:X.razorpayOrderId,handler:async function(Y){const te=o.items.map(K=>({item_id:K.variantId,item_name:K.name,price:K.price,quantity:K.quantity,item_brand:"Alyra",item_category:"Solid Perfume"}));
53ip(X.razorpayOrderId,o.total,"INR",te),typeof window<"u"&&window.fbq&&window.fbq("track","Purchase",{value:o.total,currency:"INR"}),S(),alert("Payment successful! Your order has been placed."),window.location.href="/"},prefill:{name:C.name||"",email:C.email,contact:C.phone||""},modal:{ondismiss:function(){WC(X.orderId).catch(Y=>{console.error("Failed to cancel abandoned order:",Y)})}},theme:{color:"#000000"}};new window.Razorpay(Z).open()}catch(T){console.error("Checkout error:",T),alert("Checkout failed. Please try again.")}finally{d(!1)}}const P=g.useMemo(()=>({cart:o,loading:c,addToCart:m,updateLine:v,removeLine:b,checkout:j,clearCart:S,applyPromoCode:k,removePromoCodes:w}),[o,c]);return i.jsx(iv.Provider,{value:P,children:t})}const Nr=()=>g.useContext(iv),tk=va("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),vo=g.forwardRef(({className:t,variant:r,size:o,asChild:a=!1,...c},d)=>{const h=a?Rx:"button";return i.jsx(h,{className:ze(tk({variant:r,size:o,className:t})),ref:d,...c})});vo.displayName="Button";const qt=g.forwardRef(({className:t,type:r,...o},a)=>i.jsx("input",{type:r,className:ze("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:a,...o}));qt.displayName="Input";function nk(){const{applyPromoCode:t,loading:r}=Nr(),[o,a]=g.useState(""),[c,d]=g.useState(!1),[h,p]=g.useState(null),m=async v=>{v.preventDefault(),d(!0),p(null);try{const b=await t(o.trim());p(b.message),b.success&&a("")}catch(b){p("Could not apply code. Please try again."),console.error(b)}finally{d(!1)}};return i.jsxs("div",{className:"space-y-3",children:[i.jsxs("form",{onSubmit:m,className:"flex gap-2",children:[i.jsx(qt,{placeholder:"Promo code",value:o,onChange:v=>a(v.target.value),required:!0,className:"flex-1"}),i.jsx(vo,{type:"submit",disabled:c,size:"sm",children:c?"Applying...":"Apply"})]}),h&&!h.includes("Applied")&&i.jsx("p",{className:"text-sm text-red-600",children:h})]})}function rk(){const[t,r]=g.useState(!1),[o,a]=g.useState(null),[c,d]=g.useState([]);return g.useEffect(()=>{const p=m=>{const{product:v}=m.detail,b=document.querySelectorAll("[data-add-to-cart]");let S=null;for(let k=b.length-1;k>=0;k--){const w=b[k];if(w.getAttribute("data-product-handle")===v.handle){S=w;break}}if(S){const k=S.getBoundingClientRect(),w=document.querySelector("[data-cart-icon]");if(w){const R=w.getBoundingClientRect();a({product:v,startPosition:{x:k.left+k.width/2,y:k.top+k.height/2},endPosition:{x:R.left+R.width/2,y:R.top+R.height/2}}),r(!0);const x=Math.random().toString(36).substr(2,9);d(j=>[...j,{id:x,product:v}]),setTimeout(()=>{d(j=>j.filter(P=>P.id!==x))},3e3),setTimeout(()=>{a(null),r(!1)},1e3)}}};return window.addEventListener("addToCart",p),()=>{window.removeEventListener("addToCart",p)}},[]),{isAnimating:t,flyingProduct:o,toasts:c,removeToast:p=>{d(m=>m.filter(v=>v.id!==p))}}}function sk({product:t,onClose:r,duration:o=3e3}){const[a,c]=g.useState(!1);return g.useEffect(()=>{const d=setTimeout(()=>c(!0),100),h=setTimeout(()=>{c(!1),setTimeout(r,300)},o);return()=>{clearTimeout(d),clearTimeout(h)}},[r,o]),i.jsx("div",{className:`fixed top-4 right-4 z-50 bg-white border border-accent shadow-lg rounded-lg p-4 max-w-sm transition-all duration-300 ${a?"translate-x-0 opacity-100":"translate-x-full opacity-0"}`,children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("div",{className:"w-12 h-12 rounded-lg overflow-hidden flex-shrink-0",children:i.jsx("img",{src:t.image,alt:t.name,className:"w-full h-full object-cover"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[i.jsx(kw,{className:"h-4 w-4 text-green-600 flex-shrink-0"}),i.jsx("p",{className:"text-sm font-medium text-gray-900",children:"Added to cart!"})]}),i.jsx("p",{className:"text-sm text-gray-600 truncate",children:t.name}),i.jsxs("p",{className:"text-sm font-medium text-accent",children:["â¹",t.price.toLocaleStr
53ing()]})]}),i.jsx(vo,{variant:"ghost",size:"icon",className:"h-6 w-6 text-gray-400 hover:text-gray-600",onClick:()=>{c(!1),setTimeout(r,300)},children:i.jsx(fu,{className:"h-4 w-4"})})]})})}const qi=t=>`â¹${Math.max(0,Number(t||0)).toLocaleString("en-IN")}`,ok=["Black","White","Cupid Pink"],ik={Black:"#1C1813",White:"#EDE7DB","Cupid Pink":"#D9B7B2"};function ak(){const{cart:t,updateLine:r,removeLine:o,clearCart:a,loading:c,removePromoCodes:d}=Nr(),{flyingProduct:h,toasts:p,removeToast:m}=rk(),v=Ea(),[b,S]=g.useState(!1),[k,w]=g.useState(!1);g.useEffect(()=>{const E=()=>{S(!0),w(!0),window.setTimeout(()=>w(!1),600)};return window.addEventListener("addToCart",E),()=>window.removeEventListener("addToCart",E)},[]);const R=t?.items??[],x=t?.subtotal??0,j=t?.total??0,P=t?.totalQuantity??0,C=()=>{const E=R.map(T=>({item_id:T.variantId,item_name:T.name,price:T.price,quantity:T.quantity,item_brand:"Alyra",item_category:"Solid Perfume"}));fg(j,"INR",E),v("/checkout")};return i.jsxs(NC,{open:b,onOpenChange:S,children:[i.jsx(TC,{asChild:!0,children:i.jsxs("button",{className:`nav-cart${k?" bump":""}`,"data-cart-icon":!0,"aria-label":"Open bag",children:["Bag ",i.jsx("span",{className:"count",children:P})]})}),i.jsxs(Vg,{side:"right",className:"w-full sm:max-w-md p-0 flex flex-col bg-paper border-line",children:[i.jsxs(Qg,{className:"px-6 py-5 border-b border-line",children:[i.jsx(qg,{className:"mono text-[13px] tracking-[0.16em] uppercase font-medium text-ink",children:"Your bag"}),i.jsx(Yg,{className:"sr-only",children:"Items in your shopping bag, with quantities and order subtotal."})]}),i.jsxs("div",{className:"ship-bar px-6 py-4 border-b border-line",children:[i.jsx("span",{children:x>0?"You've unlocked free shipping â¦":"Free shipping on every order."}),i.jsx("div",{className:"ship-track",children:i.jsx("div",{className:"ship-fill",style:{width:x>0?"100%":"0%"}})})]}),R.length===0?i.jsx("div",{className:"flex-1 grid place-items-center text-center px-8 mono text-[13px] tracking-[0.06em] text-stone",children:"Your bag is empty, press a scent to begin."}):i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"flex-1 overflow-auto px-6",children:R.map(E=>{const T=E?.attributes?.Type??"",_=T==="Case + Refill";return i.jsxs("div",{className:"grid grid-cols-[56px_1fr_auto] gap-4 items-start py-5 border-b border-line",children:[i.jsx("div",{className:"w-14 h-14 rounded-lg overflow-hidden bg-paper-2 flex-shrink-0",children:E.image&&i.jsx("img",{src:E.image,alt:E.name,className:"w-full h-full object-cover"})}),i.jsxs("div",{className:"min-w-0",children:[i.jsx("div",{className:"mono text-[11px] tracking-[0.08em] uppercase text-stone",children:T}),i.jsx("div",{className:"display text-[18px] leading-tight text-ink",children:E.name}),i.jsx("div",{className:"mono text-[12px] text-ink-soft mt-0.5",children:qi(E.price)}),_&&E.attributes?.Color&&i.jsx("div",{className:"flex gap-1.5 mt-2",children:ok.map(D=>i.jsx("button",{title:D,"aria-label":D,onClick:()=>r(E.id,E.quantity,{...E.attributes,Color:D}),className:"w-5 h-5 rounded-full border",style:{background:ik[D],borderColor:E.attributes.Color===D?"#1C1813":"#D8D1C4",boxShadow:E.attributes.Color===D?"0 0 0 2px #F4F1EB, 0 0 0 3px #1C1813":"none"}},D))}),i.jsxs("div",{className:"flex items-center gap-3 mt-3 mono text-[13px]",children:[i.jsx("button",{className:"w-7 h-7 rounded-full border border-line grid place-items-center",disabled:c,onClick:()=>r(E.id,Math.max(1,E.quantity-1)),children:i.jsx(Rw,{className:"h-3 w-3"})}),i.jsx("span",{className:"min-w-[20px] text-center",children:E.quantity}),i.jsx("button",{className:"w-7 h-7 rounded-full border border-line grid place-items-center",disabled:c,onClick:()=>r(E.id,E.quantity+1),children:i.jsx(Aw,{className:"h-3 w-3"})})]})]}),i.jsxs("div",{className:"text-right",children:[i.jsx("div",{className:"mono text-[14px] text-ink",children:qi(E.lineTotal)}),i.jsx("button",{className:"mono text-[10px] tracking-[0.1em] uppercase text-stone mt-2 hover:text-blush-deep",onClick:()=>o(E.id),disabled:c,children:"Remove"})]})]},E.id)})}),i.jsxs("div",{className:"px-6 py-5 border-t border-line space-y-4",children:[i.jsxs("div",{className:"flex justify-between mono text-[13px] text-ink-soft",children:[i.jsx("span",{children:"Subtotal"}),i.jsx("span",{children:qi(x)})]}),t?.discountCodes&&t.discountCodes.length>0&&i.jsxs("div",{className:"flex justify-between items-center mono text-[12px] text-blush-deep",children:[i.jsxs("span",{children:[t.discountCodes[t.discountCodes.length-1].code," applied"]}),i.jsx("button",{className:"uppercase tracking-[0.1em] text-stone hover:text-ink",onClick:()=>
53d(),disabled:c,children:"Remove"})]}),i.jsx(nk,{}),i.jsxs("div",{className:"flex justify-between items-baseline pt-3 border-t border-line",children:[i.jsx("span",{className:"mono text-[13px] tracking-[0.06em] uppercase",children:"Total"}),i.jsx("span",{className:"display text-[26px]",children:qi(j)})]}),i.jsx("button",{className:"btn btn-primary btn-block",onClick:C,disabled:c,children:"Checkout"}),i.jsx("p",{className:"mono text-[10.5px] tracking-[0.06em] text-stone text-center",children:"Shipping & taxes calculated at checkout."}),i.jsx("button",{className:"mono text-[10px] tracking-[0.12em] uppercase text-stone hover:text-ink w-full",onClick:a,disabled:c,children:"Clear bag"})]})]})]}),h&&i.jsx("div",{className:"fixed z-50 pointer-events-none",style:{left:h.startPosition.x,top:h.startPosition.y,transform:"translate(-50%, -50%)"},children:i.jsx("div",{className:"w-12 h-12 rounded-full overflow-hidden border-2 border-blush shadow-lg animate-fly-to-cart",style:{"--end-x":`${h.endPosition.x-h.startPosition.x}px`,"--end-y":`${h.endPosition.y-h.startPosition.y}px`},children:i.jsx("img",{src:h.product.image,alt:h.product.name,className:"w-full h-full object-cover"})})}),p.map(E=>i.jsx(sk,{product:E.product,onClose:()=>m(E.id)},E.id))]})}const lk=[{href:"/collections",label:"Shop"},{href:"/about",label:"About"},{href:"/journal",label:"Journal"}],xp=["damn, you could be smelling amazing rn â¦","this is your sign to smell incredible","warning: may cause compliments","free shipping, because obviously"],Ze=()=>{const[t,r]=g.useState(!1);return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"announce","aria-label":"announcements",children:i.jsx("ul",{children:[...xp,...xp].map((o,a)=>i.jsxs("li",{children:[o,i.jsx("span",{})]},a))})}),i.jsx("header",{className:"nav",children:i.jsxs("div",{className:"wrap nav-in",children:[i.jsx(Se,{to:"/",className:"brand",children:"ALYRA"}),i.jsx("nav",{className:`nav-links ${t?"open":""}`,"aria-label":"primary",children:lk.map(o=>i.jsx(Se,{to:o.href,onClick:()=>r(!1),children:o.label},o.href))}),i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:14},children:[i.jsx(ak,{}),i.jsxs("button",{className:"burger","aria-label":"Menu","aria-expanded":t,onClick:()=>r(o=>!o),children:[i.jsx("span",{}),i.jsx("span",{}),i.jsx("span",{})]})]})]})})]})},et=()=>{const t=new Date().getFullYear();return i.jsxs("footer",{className:"foot",children:[i.jsxs("div",{className:"wrap foot-top",children:[i.jsxs("div",{children:[i.jsx(Se,{to:"/",className:"brand",children:"ALYRA"}),i.jsx("p",{children:"India's first solid perfume. Fine fragrance, reset into a refillable balm that fits in your pocket."}),i.jsxs("div",{style:{display:"flex",gap:14,marginTop:20},children:[i.jsx("a",{href:"https://www.instagram.com/alyra.in/",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",style:{color:"#C9C1B4"},children:i.jsx(Nw,{className:"h-5 w-5"})}),i.jsx("a",{href:"https://x.com/shopalyra",target:"_blank",rel:"noopener noreferrer","aria-label":"X",style:{color:"#C9C1B4"},children:i.jsx("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),i.jsx("a",{href:"https://www.linkedin.com/company/alyra-solid-parfum/",target:"_blank",rel:"noopener noreferrer","aria-label":"LinkedIn",style:{color:"#C9C1B4"},children:i.jsx(Tw,{className:"h-5 w-5"})})]})]}),i.jsxs("div",{children:[i.jsx("h4",{children:"Shop"}),i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx(Se,{to:"/collections",children:"Shop all"})}),i.jsx("li",{children:i.jsx(Se,{to:"/collections",children:"Refills"})}),i.jsx("li",{children:i.jsx(Se,{to:"/collections",children:"The three scents"})}),i.jsx("li",{children:i.jsx(Se,{to:"/#newsletter",children:"Newsletter"})})]})]}),i.jsxs("div",{children:[i.jsx("h4",{children:"Learn"}),i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx(Se,{to:"/about",children:"Our story"})}),i.jsx("li",{children:i.jsx(Se,{to:"/journal",children:"Journal"})}),i.jsx("li",{children:i.jsx(Se,{to:"/shipping",children:"Shipping"})}),i.jsx("li",{children:i.jsx(Se,{to:"/returns",children:"Refunds & Cancellations"})})]})]}),i.jsxs("div",{children:[i.jsx("h4",{children:"Contact"}),i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})}),i.jsx("li",{children:i.jsx(Se,{to:"/contact",children:"Contact us"})}),i.jsx("li",{children:i.jsx(Se,{to:"/privacy",children:"Privacy"})}),i.jsx("li",{children:i.jsx(Se,{to:"/terms",children:"Terms"})})]})]})]}),i.jsxs("div",{className:"wrap foot-bot",children:[i.jsxs("span",{children:["© ",t," ALYRA. Made in India."]}),i.jsx("span",{children:"Alcohol-free · Refillable"})]})]})},ck="/assets/HeroImg-KtAmmgNj.jpg",uk="/assets/ALYRA-SHOOT-AUG31-006-2BKusAKo.jpg",ua=["Black","White","Cupid Pink"],da={Black:"#1C1813",White:"#EDE7DB","Cupid Pink":"#D9B7B2"},dk=1199,fk=1299,fa=699,ds=t=>t==="Cupid Pink"?fk:dk,ls=[{id:2,handle:"fruit-damour",no:"No. 01",name:"Fruit",nameEm:"d'Amour",scent:"Fruit d'Amour",accent:"amour",tag:'"Fruit of love" · flirtatious · fruity-floral · warm',story:"A first-blush kind of scent. Sun-warmed berries and mandarin spill into a rose-and-vanilla heart, then settle into warm amber, musk and a whisper of oud. Soft enough for daylight, magnetic enough to be remembered by.",formula:[["Top","red berries · mandarin · saffron"],["Heart","rose · ylang-ylang · vanilla"],["Base","oud · amber · musk"]],vibe:["Flirtatious","Sweet","Magnetic"],wear:"Date nights, dinners, and any day you want to feel adored.",refillImg:Iu,img:{Black:Kg,White:Gg,"Cupid Pink":ea}},{id:3,handle:"riva-azul",no:"No. 02",name:"Riva",nameEm:"Azul",scent:"Riva Azul",accent:"azul",tag:'"Blue shore" · fresh · citrus-aromatic · unisex',story:"The blue hour on a Mediterranean coast, pressed into balm. Bright bergamot and a flick of pepper drift over jasmine and calming lavender, settling into clean cedar and sandalwood. Clear, breezy and quietly confident, a fresh white shirt and a lungful of sea air.",formula:[["Top","pepper · mandarin · bergamot"],["Heart","jasmine · lavender"],["Base","cedarwood · sandalwood"]],vibe:["Fresh","Calm","Effortless"],wear:"Workdays, travel, and warm mornings you want to feel pulled-together.",refillImg:tv,img:{Black:Jg,White:Xg,"Cupid Pink":ea}}
53,{id:1,handle:"ecos-de-lisboa",no:"No. 03",name:"Ecos de",nameEm:"Lisboa",scent:"Ecos de Lisboa",accent:"lisboa",tag:'"Echoes of Lisbon" · warm · woody-green · evening',story:"Terracotta rooftops at golden hour. Bright grapefruit and green sage drift over warm nutmeg and herbal cypress, settling into sandalwood, tonka and mossy depth. Sun-warmed stone, worn leather, the sea somewhere on the breeze.",formula:[["Top","grapefruit · sage · bergamot"],["Heart","nutmeg · cypress · rosemary"],["Base","sandalwood · tonka bean · oakmoss"]],vibe:["Grounded","Earthy","Magnetic"],wear:"Evenings out, cooler days, and moments you want to feel unforgettable.",refillImg:nv,img:{Black:Zg,White:ev,"Cupid Pink":ea}}],hk=t=>ls.find(r=>r.id===t),wp=t=>`â¹${t.toLocaleString("en-IN")}`,pk=[["How long does it last on skin?","A balm sits closer to the skin than an alcohol spray, so expect a soft 4â6 hours of scent. The upside: it's in your pocket, so a quick press tops it right back up, no half-a-bottle reapplication."],["Is it really alcohol-free?","Yes. ALYRA is a nourishing balm base carrying fine fragrance oils, no alcohol, no spray, no sting. Gentler on sensitive skin and much kinder in heat."],["Will it melt in Indian summers?","It softens in high heat and firms back up, totally normal for a balm. The sealed case keeps it tidy and spill-proof either way."],["How do refills work?","Each scent comes as a pan that clicks into your case. When it runs low, pop the empty out and drop a fresh â¹699 refill in. Same case, forever, switch scents whenever the mood does."],["Shipping & returns?","We ship across India with free shipping on every order, dispatched within 24â48 hours. Unopened items can be returned within 7 days."]],mk=[["Lives in my handbag. I press a little after lunch and feel instantly put-together. No headache, no overpowering cloud.","Ananya, Mumbai"],["Riva Azul has quietly become my husband's too. Had to order a second case. The refill thing is genuinely brilliant.","Kabir, Bengaluru"],["Finally, a perfume that survives a Delhi summer and a full work day without me reapplying half the bottle.","Meher, New Delhi"]],_c=()=>i.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:i.jsx("path",{d:"M20 6 9 17l-5-5"})});function gk(){const{addToCart:t}=Nr(),{getVariantId:r,getVariantIdByTitle:o,getProductStockStatus:a}=So(),[c,d]=g.useState({"fruit-damour":"Black","riva-azul":"Black","ecos-de-lisboa":"Black"}),[h,p]=g.useState(null),[m,v]=g.useState(null),[b,S]=g.useState(null),k=Ea();g.useEffect(()=>{const C=document.querySelectorAll(".reveal");if(!("IntersectionObserver"in window)){C.forEach(T=>T.classList.add("in"));return}const E=new IntersectionObserver(T=>T.forEach(_=>{_.isIntersecting&&(_.target.classList.add("in"),E.unobserve(_.target))}),{threshold:.14});
53return C.forEach(T=>E.observe(T)),()=>E.disconnect()},[]);const w=(C,E)=>{const T=r(C.handle,E)||`${C.handle}-${E.toLowerCase().replace(/\s+/g,"")}`;t({variantId:T,name:`${C.scent} Set`,price:ds(E),image:C.img[E],size:"Case + Refill",handle:C.handle},1,{Scent:C.scent,Type:"Case + Refill",Size:"Case + Refill",Color:E,Handle:C.handle})},R=(C,E)=>{w(C,E),S(C.handle),window.setTimeout(()=>S(T=>T===C.handle?null:T),1300)},x=C=>{const E=o(`${C.handle}-refill`,"Refill only")||`${C.handle}-refill`;t({variantId:E,name:`${C.scent} Refill`,price:699,image:C.refillImg,size:"Refill Only",handle:`${C.handle}-refill`},1,{Scent:C.scent,Type:"Refill Only",Size:"Refill Only"})},j=()=>ls.forEach(C=>w(C,"Black")),P=async C=>{C.preventDefault();const E=C.target,T=E.elements.namedItem("email").value;if(!/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(T)){v({msg:"Please enter a valid email address.",ok:!1});return}try{await VC(T,"homepage"),v({msg:"Done, welcome to ALYRA. Check your inbox â¦",ok:!0}),E.reset()}catch{v({msg:"Something went wrong. Please try again.",ok:!1})}};return i.jsxs("div",{id:"top",children:[i.jsx(Ze,{}),i.jsx("section",{className:"hero",children:i.jsxs("div",{className:"wrap hero-grid",children:[i.jsxs("div",{className:"hero-copy reveal",children:[i.jsx("span",{className:"eyebrow",children:"Meet solid perfume · made in India"}),i.jsxs("h1",{children:["Fine perfume,",i.jsx("br",{}),"in ",i.jsx("em",{children:"solid"})," form."]}),i.jsx("p",{className:"hero-lede",children:"Solid perfume is fine fragrance set into a balm. No alcohol, no spray, no spill. Warm it with a fingertip, press it to your pulse points, and it melts into skin to bloom for 6+ hours. One refillable case, kind to skin and made in India, yours to keep for life."}),i.jsxs("div",{className:"hero-cta",children:[i.jsx(Se,{to:"/collections",className:"btn btn-primary",children:"Shop now"}),i.jsx("a",{href:"#why",className:"btn btn-ghost",children:"Why solid?"})]}),i.jsxs("div",{className:"hero-trust",children:[i.jsxs("span",{children:[i.jsx(_c,{}),"Alcohol-free"]}),i.jsxs("span",{children:[i.jsx(_c,{}),"Refillable case"]}),i.jsxs("span",{children:[i.jsx(_c,{}),"Travel-proof"]})]})]}),i.jsx("div",{className:"hero-stage reveal",children:i.jsx("img",{src:ck,alt:"ALYRA refillable solid-perfume compact"})})]})}),i.jsx("section",{className:"section",id:"scents",children:i.jsxs("div",{className:"wrap",children:[i.jsxs("div",{className:"heading-row reveal",children:[i.jsxs("h2",{children:["Three scents,",i.jsx("br",{}),"three stories."]}),i.jsx("p",{className:"mono",style:{color:"var(--stone)",fontSize:13,letterSpacing:".1em",maxWidth:"30ch"},children:"Each blended into a balm that warms and blooms on your skin, never sharp, never loud."})]}),i.jsx("div",{className:"scents",children:ls.map(C=>{const E=c[C.handle],T=a(C.handle)==="Sold Out";return i.jsxs("article",{className:"scent reveal",style:{"--accent":`var(--c-${C.accent})`},children:[i.jsxs("div",{className:"scent-body scent-click",role:"link",tabIndex:0,onClick:()=>k(`/products/${C.id}`),onKeyDown:_=>{_.key==="Enter"&&k(`/products/${C.id}`)},children:[i.jsxs("div",{className:"scent-lot",children:[i.jsx("span",{children:C.no}),i.jsx("span",{children:"Solid perfume"})]}),i.jsxs("h2",{className:"scent-name",children:[C.name," ",i.jsx("em",{children:C.nameEm})]}),i.jsx("p",{className:"scent-tag",children:C.tag}),i.jsx("div",{className:"vibe-chips",children:C.vibe.map(_=>i.jsx("span",{className:"vibe-chip",children:_},_))}),i.jsx("p",{className:"scent-story",children:C.story}),i.jsx("dl",{className:"formula",children:C.formula.map(([_,D])=>i.jsxs("div",{style:{display:"contents"},children:[i.jsx("dt",{children:_}),i.jsx("dd",{children:D})]},_))}),i.jsxs("div",{className:"scent-buy",children:[i.jsxs("span",{className:"price",children:[wp(ds(E))," ",i.jsx("small",{children:"/ case + scent"})]}),i.jsx("button",{className:`btn btn-primary ${b===C.handle?"is-added":""}`,disabled:T,onClick:_=>{_.stopPropagation(),R(C,E)},children:T?"Sold out":b===C.handle?"Added â":"Add to bag"})]}),i.jsx("span",{className:"scent-more",children:"Know more â"})]}),i.jsxs("div",{className:"scent-art",children:[i.jsxs("span",{className:"badge",children:[C.no," / ",C.scent.split(" ").pop()]}),i.jsx("img",{src:C.img[E],alt:`${C.scent}, ${E} case`}),i.jsx("div",{className:"scent-swatches",role:"group","aria-label":`Choose ${C.scent} case colour`,children:ua.map(_=>i.jsx("button",{className:"sw",title:_,"aria-label":_,"aria-pressed":E===_,style:{background:da[_]},onClick:()=>d(D=>({...D,[C.handle]:_}))},_))})]})]},C.handle)})})]})}),i.jsx("section",{className:"why section",id:"why",children:i.jsxs("div",{className:"wrap",children:[i.jsx("span",{className:"eyebrow reveal",children:"The case for solid"}),i.jsx("h2",{className:"reveal",style:{marginTop:18},children:"Spray perfume wasn't built for your life. This is."}),i.jsx("p",{className:"why-sub reveal",children:"Alcohol sprays sting, evaporate fast, leak in bags and get confiscated at security. A balm fixes all four, and it was made for Indian weather."}),i.jsx("div",{className:"why-grid reveal",children:[["01","No alcohol, no sting","A nourishing balm base instead of alcohol, gentle on sensitive skin and kinder in the heat. Scent that sits close, not scent that shouts."],["02","Goes anywhere","Small and sealed. No leaks in your bag, no 100ml limit at the airport. It lives in a pocket and reapplies in seconds."],["03","Precise & personal","Press exactly where you want it, wrists, neck, c
53ollar. A private scent for you and whoever gets close, not the whole elevator."],["04","Refill, don't rebuy","Keep the case for life and swap the scent for â¹699. Less packaging, less waste, less spend over time."]].map(([C,E,T])=>i.jsxs("div",{className:"why-cell",children:[i.jsx("div",{className:"n",children:C}),i.jsx("h3",{children:E}),i.jsx("p",{children:T})]},C))})]})}),i.jsx("section",{className:"section",id:"case",children:i.jsxs("div",{className:"wrap refill",children:[i.jsxs("div",{className:"reveal",children:[i.jsx("span",{className:"eyebrow",children:"Buy once · refill forever"}),i.jsxs("h2",{style:{marginTop:18},children:["One case.",i.jsx("br",{}),"A ",i.jsx("em",{children:"lifetime"})," of scent."]}),i.jsx("p",{children:"Your ALYRA case is the keeper, solid, weighted, refillable. When a scent runs low, pop the empty pan out and click a fresh one in. Change your mood, not your whole compact."}),i.jsxs("div",{className:"refill-stats",children:[i.jsxs("div",{children:[i.jsx("div",{className:"s",children:"â¹699"}),i.jsx("div",{className:"l",children:"per refill"})]}),i.jsxs("div",{children:[i.jsx("div",{className:"s",children:"2â3 mo"}),i.jsx("div",{className:"l",children:"per refill, avg."})]}),i.jsxs("div",{children:[i.jsx("div",{className:"s",children:"â"}),i.jsx("div",{className:"l",children:"case reuses"})]})]}),i.jsx("div",{className:"hero-cta",style:{flexWrap:"wrap"},children:ls.map(C=>i.jsxs("button",{className:"btn btn-ghost",onClick:()=>x(C),children:["+ ",C.scent," refill"]},C.handle))})]}),i.jsx("div",{className:"refill-art reveal",children:i.jsx("img",{src:Iu,alt:"ALYRA refill pans"})})]})}),i.jsx("section",{className:"section ritual reveal",id:"ritual",children:i.jsxs("div",{className:"wrap",children:[i.jsx("span",{className:"eyebrow",children:"The 10-second ritual"}),i.jsx("h2",{style:{marginTop:18},children:"Press. Warm. Wear."}),i.jsx("div",{className:"ritual-grid",children:[["1","Press","Glide a fingertip across the balm. A little lifts off, that's all you need."],["2","Warm","Dab onto pulse points, wrists, neck, behind the ears. Body heat blooms the scent open."],["3","Wear","It settles in seconds and stays close for hours. Top up anytime, it's already in your pocket."]].map(([C,E,T])=>i.jsxs("div",{className:"ritual-cell",children:[i.jsx("div",{className:"n",children:C}),i.jsx("h3",{children:E}),i.jsx("p",{children:T})]},C))})]})}),i.jsx("section",{className:"section reviews",children:i.jsxs("div",{className:"wrap",children:[i.jsxs("div",{className:"reviews-head reveal",children:[i.jsx("span",{className:"stars",children:"â
â
â
â
â
"}),i.jsx("span",{className:"r",children:"Trusted by 100+ wearers across India"})]}),i.jsx("div",{className:"review-grid",children:mk.map(([C,E])=>i.jsxs("div",{className:"review reveal",children:[i.jsx("div",{className:"stars",children:"â
â
â
â
â
"}),i.jsxs("p",{children:['"',C,'"']}),i.jsx("div",{className:"who",children:E})]},E))})]})}),i.jsx("section",{className:"section",children:i.jsx("div",{className:"wrap",children:i.jsxs("div",{className:"set reveal",children:[i.jsxs("div",{className:"set-body",children:[i.jsx("span",{className:"eyebrow",children:"The starter, find your signature"}),i.jsx("h2",{children:"Can't choose? Take all three."}),i.jsx("p",{children:"One of each scent, each in its own refillable case. The easiest way to find your signature, and own the full ALYRA library."}),i.jsxs("div",{className:"set-price",children:[i.jsx("span",{className:"now",children:wp(1199*3)}),i.jsx("span",{className:"was",style:{alignSelf:"center",textDecoration:"none"},children:"three cases"})]}),i.jsx("button",{className:"btn btn-primary",onClick:j,children:"Add all three to bag"})]}),i.jsx("div",{className:"set-art",children:i.jsx("img",{src:uk,alt:"The three ALYRA scents"})})]})})}),i.jsx("section",{className:"section",children:i.jsxs("div",{className:"wrap founder",children:[i.jsx("div",{className:"founder-art reveal",children:i.jsx("img",{src:"/new_content/FounderPhoto.webp",alt:"Dhruv Narwani, founder of ALYRA"})}),i.jsxs("div",{className:"reveal",children:[i.jsx("span",{className:"eyebrow",children:"From the founder"}),i.jsxs("blockquote",{style:{marginTop:22},children:[i.jsx("p",{style:{margin:0},children:"At ALYRA, scent is not an accessory. It is authorship, a signature written on skin."}),i.jsx("p",{style:{margin:"18px 0 0"},children:"Every blend is composed with precision, depth, and restraint, built to evolve rather than announce. The finest fragrances linger longest, the way a memory does."}),i.jsxs("p",{style:{margin:"18px 0 0"},children:["ALYRA is that ",i.jsx("em",{children:"quiet permanence."})]})]}),i.jsx("div",{className:"sig",children:"Dhruv Narwani · Founder & CEO"})]})]})}),i.jsx("section",{className:"section faq",id:"faq",children:i.jsxs("div",{className:"wrap",style:{maxWidth:900},children:[i.jsx("span",{className:"eyebrow reveal",children:"Good questions"}),i.jsx("h2",{className:"reveal",style:{marginTop:18},children:"Before you press add."}),i.jsx("div",{className:"reveal",children:pk.map(([C,E],T)=>i.jsxs("div",{className:"faq-item",children:[i.jsxs("button",{className:"faq-q","aria-expanded":h===T,onClick:()=>p(h===T?null:T),children:[C,i.jsx("span",{className:"pm",children:"+"})]}),i.jsx("div",{className:"faq-a",style:{maxHeight:h===T?260:0},children:i.jsx("p",{children:E})})]},T))})]})}),i.jsx("section",{className:"section tight",id:"newsletter",children:i.jsx("div",{className:"wrap",children:i.jsxs("div",{className:"news reveal",children:[i.jsx("span",{className:"eyebrow center",children:"Join the list"}),i.jsx("h2",{style:{marginTop:16},children:"Scent stories & early access."}),i.jsx("p",{children:"Refill drops, new releases and the stories behind each scent, straight to your inbox."}),i.jsxs("form",{className:"news-form",onSubmit:P,noValidate:!0,children:[i.jsx("label",{htmlFor:"newsEmail",style:{position:"absolute",left:-9999},children:"Email"}),i.jsx("input",{id:"newsEmail",name:"email",type:"email",inputMode:"email",placeholder:"[email protected]",required:!0}),i.jsx("button",{className:"btn btn-primary",type:"submit",children:"Subscribe"})]}),i.jsx("p",{className:"note",style:m?{color:"var(--blush-deep)"}:void 0,children:m?m.msg:"No spam. Unsubscribe anytime."})]})})}),i.jsx(et,{})]})}var vk="Label",av=g.forwardRef((t,r)=>i.jsx(Fe.label,{...t,ref:r,onMouseDown:o=>{o.target.closest("button, input, select, textarea")||(t.onMouseDown?.(o),!o.defaultPrevented&&o.detail>1&&o.preventDefault())}}));av.displayName=vk;var lv=av;const yk=va("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),dn=g.forwardRef(({className:t,...r},o)=>i.jsx(lv,{ref:o,className:ze(yk(),t),...r}));dn.displayName=lv.displayName;const tu=g.forwardRef(({className:t,...r},o)=>i.jsx("div",{ref:o,className:ze("rounded-lg border bg-card text-card-foreground shadow-sm",t),...r}));
53tu.displayName="Card";const nu=g.forwardRef(({className:t,...r},o)=>i.jsx("div",{ref:o,className:ze("flex flex-col space-y-1.5 p-6",t),...r}));nu.displayName="CardHeader";const ru=g.forwardRef(({className:t,...r},o)=>i.jsx("h3",{ref:o,className:ze("text-2xl font-semibold leading-none tracking-tight",t),...r}));ru.displayName="CardTitle";const xk=g.forwardRef(({className:t,...r},o)=>i.jsx("p",{ref:o,className:ze("text-sm text-muted-foreground",t),...r}));xk.displayName="CardDescription";const su=g.forwardRef(({className:t,...r},o)=>i.jsx("div",{ref:o,className:ze("p-6 pt-0",t),...r}));su.displayName="CardContent";const wk=g.forwardRef(({className:t,...r},o)=>i.jsx("div",{ref:o,className:ze("flex items-center p-6 pt-0",t),...r}));wk.displayName="CardFooter";var bk="Separator",bp="horizontal",Sk=["horizontal","vertical"],cv=g.forwardRef((t,r)=>{const{decorative:o,orientation:a=bp,...c}=t,d=jk(a)?a:bp,p=o?{role:"none"}:{"aria-orientation":d==="vertical"?d:void 0,role:"separator"};return i.jsx(Fe.div,{"data-orientation":d,...p,...c,ref:r})});cv.displayName=bk;function jk(t){return Sk.includes(t)}var uv=cv;const ta=g.forwardRef(({className:t,orientation:r="horizontal",decorative:o=!0,...a},c)=>i.jsx(uv,{ref:c,decorative:o,orientation:r,className:ze("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...a}));ta.displayName=uv.displayName;const Sp="AIzaSyA2EvzA9giTcZ_bBHPf_L9YQKabt7d2Abw",Ck="https://places.googleapis.com/v1/places:autocomplete";function un(t,r){return t.find(o=>o.types?.includes(r))?.longText||""}function kk({id:t,value:r,onChange:o,onPlaceSelected:a,placeholder:c,className:d}){const[h,p]=g.useState([]),[m,v]=g.useState(!1),[b,S]=g.useState(!1),[k,w]=g.useState(!1),R=g.useRef(crypto.randomUUID()),x=g.useRef(null),j=g.useRef(null),P=g.useRef(!1);g.useEffect(()=>{if(P.current){P.current=!1;return}if(!r||r.trim().length<3){p([]),v(!1);return}return x.current&&window.clearTimeout(x.current),x.current=window.setTimeout(()=>{j.current&&j.current.abort(),j.current=new AbortController,S(!0),fetch(Ck,{method:"POST",signal:j.current.signal,headers:{"Content-Type":"application/json","X-Goog-Api-Key":Sp},body:JSON.stringify({input:r,includedRegionCodes:["in"],languageCode:"en",sessionToken:R.current})}).then(E=>E.json()).then(E=>{const T=Array.isArray(E?.suggestions)?E.suggestions:[];p(T),v(T.length>0),S(!1)}).catch(E=>{E?.name!=="AbortError"&&S(!1)})},250),()=>{x.current&&window.clearTimeout(x.current)}},[r]);const C=async(E,T)=>{v(!1),w(!0);try{const D=await(await fetch(`https://places.googleapis.com/v1/places/${E}?sessionToken=${R.current}`,{headers:{"X-Goog-Api-Key":Sp,"X-Goog-FieldMask":"addressComponents,formattedAddress"}})).json(),z=Array.isArray(D?.addressComponents)?D.addressComponents:[],U=un(z,"street_number"),X=un(z,"route"),Z=un(z,"sublocality_level_1")||un(z,"sublocality")||un(z,"neighborhood"),he=un(z,"locality")||un(z,"administrative_area_level_3")||un(z,"administrative_area_level_2"),Y=un(z,"administrative_area_level_1"),te=un(z,"postal_code"),K=[U,X].filter(Boolean).join(" "),me=K?Z&&!K.includes(Z)?`${K}, ${Z}`:K:Z?`${T}, ${Z}`:T;P.current=!0,a({address1:me,city:he,state:Y,zip:te})}finally{w(!1),R.current=crypto.randomUUID()}};return i.jsxs("div",{className:"relative",children:[i.jsx(qt,{id:t,value:r,onChange:E=>o(E.target.value),onFocus:()=>h.length>0&&v(!0),onBlur:()=>window.setTimeout(()=>v(!1),150),placeholder:c,className:`pr-9 ${d||""}`,autoComplete:"off"}),(b||k)&&i.jsx(om,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 animate-spin text-muted-foreground"}),m&&h.length>0&&i.jsx("ul",{className:"absolute z-50 mt-1 w-full rounded-md border bg-popover text-popover-foreground shadow-md max-h-72 overflow-auto",children:h.map((E,T)=>{const _=E.placePrediction;if(!_?.placeId)return null;const D=_.structuredFormat?.mainText?.text||_.text?.text||"",z=_.structuredFormat?.secondaryText?.text||"";return i.jsxs("li",{onMouseDown:U=>{U.preventDefault(),C(_.placeId,D)},className:"px-3 py-2 hover:bg-accent cursor-pointer text-sm",children:[i.jsx("div",{className:"font-medium",children:D}),z&&i.jsx("div",{className:"text-xs text-muted-foreground",children:z})]},`${_.placeId}-${T}`)})})]})}const jr=t=>
53`â¹${Math.max(0,Number(t||0)).toLocaleString("en-IN")}`,Lc=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.(com|org|net|edu|gov|io|co|in|us|me|info|biz|ai|xyz|ca|uk)$/i,Mc=/^\d{10}$/,Yi=/^\d{6}$/;function Ek(){const{cart:t,checkout:r,loading:o}=Nr(),[a,c]=g.useState({name:"",email:"",phone:"",address:{address1:"",address2:"",city:"",state:"",zip:"",country:"India"}}),{toast:d}=Tp(),[h,p]=g.useState("idle"),m=g.useRef(new Map);g.useEffect(()=>{const k=a.address.zip;if(!Yi.test(k)){p("idle");return}const w=m.current.get(k);if(w!==void 0){w?(c(x=>({...x,address:{...x.address,city:w.city,state:w.state}})),p("idle")):p("invalid");return}const R=new AbortController;return p("loading"),fetch(`https://api.postalpincode.in/pincode/${k}`,{signal:R.signal}).then(x=>x.json()).then(x=>{const j=Array.isArray(x)?x[0]:null,P=j?.PostOffice?.[0];if(j?.Status==="Success"&&P?.District&&P?.State){const C={city:P.District,state:P.State};m.current.set(k,C),c(E=>({...E,address:{...E.address,city:C.city,state:C.state}})),p("idle")}else m.current.set(k,null),p("invalid")}).catch(x=>{x?.name!=="AbortError"&&p("idle")}),()=>R.abort()},[a.address.zip]);const v=k=>{c(w=>({...w,address:{...w.address,address1:k.address1||w.address.address1,city:k.city||w.address.city,state:k.state||w.address.state,zip:k.zip||w.address.zip}}))},b=(k,w)=>{if(k.includes(".")){const[R,x]=k.split(".");c(j=>({...j,[R]:{...j[R],[x]:w}}))}else c(R=>({...R,[k]:w}))},S=async k=>{if(!a.name){alert("Full name is required");return}if(!a.email){alert("Email is required");return}if(!Lc.test(a.email)){alert("Please enter a valid email address");return}if(!a.phone){alert("Phone number is required");return}if(!Mc.test(a.phone)){alert("Phone number must be exactly 10 digits");return}if(!a.address.address1){alert("Address Line 1 is required");return}if(!a.address.city){alert("City is required");return}if(!a.address.state){alert("State is required");return}if(!a.address.zip){alert("ZIP code is required");return}if(!Yi.test(a.address.zip)){alert("ZIP code must be exactly 6 digits");return}const w=await r(a,k);k==="COD"&&w&&w.status==="COD_SUCCESS"&&(d({title:"Order placed (Cash on Delivery)",description:"You will receive confirmation shortly."}),setTimeout(()=>{window.location.href="/"},1200))};return t.items.length===0?i.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[i.jsx(Ze,{}),i.jsx("div",{className:"flex-1 flex items-center justify-center px-4 py-24",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h1",{className:"heading-royal text-3xl mb-4",children:"Your cart is empty"}),i.jsx("p",{className:"text-editorial text-muted-foreground mb-8",children:"Add some beautiful fragrances to your cart before checking out."}),i.jsx(vo,{asChild:!0,className:"btn-luxury",children:i.jsx(Se,{to:"/collections",children:"Shop Collections"})})]})}),i.jsx(et,{})]}):i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(Ze,{}),i.jsxs("div",{className:"container mx-auto px-4 py-8",children:[i.jsx("div",{className:"mb-6",children:i.jsx(vo,{variant:"ghost",asChild:!0,className:"text-muted-foreground hover:text-foreground",children:i.jsxs(Se,{to:"/",className:"flex items-center gap-2",children:[i.jsx(Cw,{className:"h-4 w-4"}),"Back to Cart"]})})}),i.jsxs("div",{className:"mb-8",children:[i.jsx("span",{className:"eyebrow",children:"Almost yours"}),i.jsx("h1",{className:"display mt-3",style:{fontSize:"clamp(34px,4.5vw,54px)",lineHeight:1},children:"Checkout"})]}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[i.jsx("div",{className:"space-y-6",children:i.jsxs(tu,{children:[i.jsx(nu,{children:i.jsxs(ru,{className:"flex items-center gap-2",children:[i.jsx(Ow,{className:"h-5 w-5"}),"Customer Information"]})}),i.jsxs(su,{className:"space-y-4",children:[i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(dn,{htmlFor:"name",children:"Full Name *"}),i.jsx(qt,{id:"name",value:a.name,onChange:k=>b("name",k.target.value),placeholder:"Enter your full name"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(dn,{htmlFor:"email",children:"Email Address *"}),i.jsx(qt,{id:"email",type:"email",value:a.email,onChange:k=>b("email",k.target.value),placeholder:"Enter your email",className:a.email&&!Lc.test(a.email)?"border-red-500 focus:border-red-500":""})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(dn,{htmlFor:"phone",children:"Phone Number *"}),i.jsxs("div",{className:"relative",children:[i.jsx("span",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground",children:"+91"}
53),i.jsx(qt,{id:"phone",type:"tel",value:a.phone,onChange:k=>b("phone",k.target.value),placeholder:"Enter your phone number",className:`pl-12 ${a.phone&&!Mc.test(a.phone)?"border-red-500 focus:border-red-500":""}`})]})]}),i.jsx(ta,{}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("h3",{className:"font-semibold flex items-center gap-2",children:[i.jsx(Pw,{className:"h-4 w-4"}),"Shipping Address"]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(dn,{htmlFor:"address1",children:"Address Line 1 *"}),i.jsx(kk,{id:"address1",value:a.address.address1,onChange:k=>b("address.address1",k),onPlaceSelected:v,placeholder:"Start typing your address"}),i.jsx("p",{className:"text-xs font-semibold text-muted-foreground",children:"Type your building or area and pick from the suggestions, we'll fill in the rest."})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(dn,{htmlFor:"address2",children:"Address Line 2"}),i.jsx(qt,{id:"address2",value:a.address.address2,onChange:k=>b("address.address2",k.target.value),placeholder:"Apartment, suite, etc. (optional)"})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(dn,{htmlFor:"city",children:"City *"}),i.jsx(qt,{id:"city",value:a.address.city,onChange:k=>b("address.city",k.target.value),placeholder:"Enter your city"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(dn,{htmlFor:"state",children:"State *"}),i.jsx(qt,{id:"state",value:a.address.state,onChange:k=>b("address.state",k.target.value),placeholder:"Enter your state"})]})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(dn,{htmlFor:"zip",children:"ZIP Code *"}),i.jsxs("div",{className:"relative",children:[i.jsx(qt,{id:"zip",value:a.address.zip,onChange:k=>b("address.zip",k.target.value),placeholder:"Enter ZIP code",className:`pr-9 ${a.address.zip&&!Yi.test(a.address.zip)||h==="invalid"?"border-red-500 focus:border-red-500":""}`}),h==="loading"&&i.jsx(om,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 animate-spin text-muted-foreground"})]}),h==="invalid"&&i.jsx("p",{className:"text-xs text-red-500",children:"Pincode not found. Please enter city and state manually."})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(dn,{htmlFor:"country",children:"Country"}),i.jsx(qt,{id:"country",value:a.address.country,readOnly:!0,disabled:!0,className:"bg-muted cursor-not-allowed"})]})]})]})]})]})}),i.jsx("div",{className:"space-y-6",children:i.jsxs(tu,{children:[i.jsx(nu,{children:i.jsxs(ru,{className:"flex items-center gap-2",children:[i.jsx(Ew,{className:"h-5 w-5"}),"Order Summary"]})}),i.jsxs(su,{className:"space-y-4",children:[i.jsx("div",{className:"space-y-3",children:t.items.map(k=>i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-12 h-12 bg-muted rounded-lg overflow-hidden flex-shrink-0",children:k.image&&i.jsx("img",{src:k.image,alt:k.name,className:"w-full h-full object-cover"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("p",{className:"font-medium truncate",children:k.name}),i.jsxs("p",{className:"text-sm text-muted-foreground",children:[k.attributes?.Type," ⢠",k.attributes?.Color]}),i.jsxs("p",{className:"text-sm text-muted-foreground",children:["Qty: ",k.quantity]})]}),i.jsx("div",{className:"font-medium",children:jr(k.lineTotal)})]},k.id))}),i.jsx(ta,{}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{children:"Subtotal"}),i.jsx("span",{children:jr(t.subtotal)})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{children:"Shipping"}),i.jsx("span",{children:t.shipping===0?"Free":jr(t.shipping)})]}),t.discountCodes&&t.discountCodes.length>0&&i.jsx(i.Fragment,{children:t.discountCodes.map((k,w)=>i.jsxs("div",{className:"flex justify-between text-green-600",children:[i.jsxs("span",{children:["Promo Code (",k.code,")"]}),i.jsxs("span",{children:["-",jr(t.subtotal-t.total)]})]},w))}),i.jsx(ta,{}),i.jsxs("div",{className:"flex justify-between text-lg font-semibold",children:[i.jsx("span",{children:"Total"}),i.jsx("span",{children:jr(t.total)})]})]}),(()=>{const k=o||!a.name||!a.email||!Lc.test(a.email)||!a.phone||!Mc.test(a.phone)||!a.address.address1||!a.address.city||!a.address.state||!a.address.zip||!Yi.test(a.address.zip);return i.jsxs(i.Fragment,{children:[i.jsx("button",{className:"btn btn-primary btn-block",onClick:()=>S("ONLINE"),disabled:k,children:o?"Processing...":`Pay ${jr(t.total)}`}),i.jsx("button",{className:"btn btn-ghost btn-block",style:{marginTop:12},onClick:()=>S("COD"),disabled:k,children:o?"Processing...":`Place order (COD) ${jr(t.total+100)}`})]})})(),i.jsx("p",{className:"mono text-center text-[11px] tracking-[0.06em] text-stone mt-3",children:"Secure payment powered by Razorpay"})]})]})})]})]}),i.jsx(et,{})]})}
53function io(t){return`â¹${(t/100).toLocaleString("en-IN",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function Nk(t){try{return new Date(t).toLocaleDateString("en-IN",{day:"numeric",month:"long",year:"numeric"})}catch{return""}}function Tk(t){const{paymentMethod:r,paymentStatus:o,fulfillmentStatus:a,deliveryStatus:c}=t;let d=0;return(r==="cod"||o==="paid")&&(d=1),(c==="shipped"||c==="delivered"||a==="fulfilled")&&(d=2),c==="delivered"&&(d=3),d}function Pk({order:t}){const r=[{key:"placed",label:"Order placed",caption:"We've received your order."},{key:"confirmed",label:t.paymentMethod==="cod"?"Order confirmed":"Payment received",caption:t.paymentMethod==="cod"?"Pay in cash on delivery.":"Thank you â your payment is in."},{key:"shipped",label:"Shipped",caption:"On its way to you."},{key:"delivered",label:"Delivered",caption:"Enjoy your ALYRA."}],o=Tk(t);return i.jsx("div",{style:{margin:"8px 0 4px"},children:r.map((a,c)=>{const d=c<=o,h=c===o,p=c===r.length-1;return i.jsxs("div",{style:{display:"flex",gap:16},children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[i.jsx("span",{"aria-hidden":!0,style:{width:16,height:16,borderRadius:"50%",border:`2px solid ${d?"var(--blush-deep)":"#D9CFC0"}`,background:d?"var(--blush-deep)":"transparent",boxShadow:h?"0 0 0 4px rgba(165,99,93,0.15)":"none",flexShrink:0,marginTop:2}}),!p&&i.jsx("span",{style:{width:2,flex:1,minHeight:36,background:c<o?"var(--blush-deep)":"#E7DFD4"}})]}),i.jsxs("div",{style:{paddingBottom:p?0:22},children:[i.jsx("div",{style:{fontWeight:600,color:d?"var(--ink)":"var(--ink-soft)",fontSize:15},children:a.label}),i.jsx("div",{className:"text-stone",style:{fontSize:13,marginTop:2},children:a.caption})]})]},a.key)})})}function Rk(){const[t]=hj(),r=t.get("id")??"",o=t.get("token")??"",[a,c]=g.useState(null),[d,h]=g.useState("loading");return g.useEffect(()=>{if(!r||!o){h("error");return}let p=!0;return HC(r,o).then(m=>{p&&(c(m.order),h("ok"))}).catch(()=>p&&h("error")),()=>{p=!1}},[r,o]),i.jsxs("div",{className:"min-h-screen bg-paper text-ink",children:[i.jsx(Ze,{}),i.jsx("section",{className:"section",children:i.jsxs("div",{className:"wrap",style:{maxWidth:680},children:[i.jsx("span",{className:"eyebrow",children:"Order tracking"}),d==="loading"&&i.jsx("p",{className:"text-stone",style:{marginTop:18},children:"Looking up your orderâ¦"}),d==="error"&&i.jsxs(i.Fragment,{children:[i.jsx("h1",{className:"display",style:{fontSize:"clamp(30px,4.5vw,48px)",lineHeight:1.05,margin:"16px 0 10px"},children:"We couldn't find that order"}),i.jsx("p",{className:"text-stone",style:{maxWidth:"48ch",marginBottom:28},children:"This tracking link looks invalid or has expired. Please use the link from your order confirmation email, or reach out and we'll help."}),i.jsxs("div",{style:{display:"flex",gap:12,flexWrap:"wrap"},children:[i.jsx(Se,{className:"btn btn-primary",to:"/",children:"Back to home"}),i.jsx("a",{className:"btn",href:"mailto:[email protected]",children:"Contact us"})]})]}),d==="ok"&&a&&i.jsxs(i.Fragment,{children:[i.jsxs("h1",{className:"display",style:{fontSize:"clamp(30px,4.5vw,48px)",lineHeight:1.05,margin:"16px 0 6px"},children:["Order #",String(a.orderNumber).padStart(5,"0")]}),i.jsxs("p",{className:"mono text-stone",style:{fontSize:12,letterSpacing:".06em",marginBottom:32},children:["Placed ",Nk(a.createdAt),a.shippingCity?` · ${a.shippingCity}${a.shippingState?`, ${a.shippingState}`:""}`:""]}),a.status==="cancelled"?i.jsxs("div",{style:{border:"1px solid #E7DFD4",borderRadius:14,padding:"18px 20px",marginBottom:28},children:[i.jsx("strong",{children:"This order was cancelled."}),i.jsx("div",{className:"text-stone",style:{fontSize:14,marginTop:4},children:"If this is unexpected, write to [email protected]."})]}):i.jsx(Pk,{order:a}),i.jsx("div",{style:{border:"1px solid #E7DFD4",borderRadius:14,padding:"8px 20px",marginTop:32},children:a.items.map((p,m)=>i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:16,padding:"14px 0",borderBottom:m<a.items.length-1?"1px solid #EFE9DE":"none"},children:[i.jsxs("div",{children:[i.jsxs("div",{style:{fontWeight:500},children:[p.title,p.variantTitle?i.jsxs("span",{className:"text-stone",children:[" · ",p.variantTitle]}):null]}),i.jsxs("div",{className:"text-stone",style:{fontSize:13,marginTop:2},children:["Qty ",p.qty]})]}),i.jsx("div",{style:{whiteSpace:"nowrap",fontWeight:500},children:io(p.lineTotalMinor)})]},m))}),i.jsxs("div",{style:{marginTop:18,fontSize:14},children:[i.jsx(Dc,{label:"Subtotal",value:io(a.subtotalMinor)}),a.discountMinor>0&&i.jsx(Dc,{label:"Discount",value:`â ${io(a.discountMinor)}`}),i.jsx(Dc,{label:a.paymentMethod==="cod"?"Shipping + COD fee":"Shipping",value:a.shippingMinor>0?io(a.shippingMinor):"Free"}),i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:12,marginTop:8,borderTop:"1px solid #E7DFD4",fontWeight:600,fontSize:16},children:[i.jsx("span",{children:"Total"}),i.jsx("span",{children:io(a.totalMinor)})]}),i.jsx("p",{className:"text-stone",style:{fontSize:13,marginTop:10},children:a.paymentMethod==="cod"?"Payable in cash on delivery.":"Paid online."})]}),i.jsxs("p",{className:"text-stone",style:{fontSize:14,marginTop:28},children:["Questions about your order? Write to"," ",i.jsx("a",{href:"mailto:[email protected]",style:{textDecoration:"underline"},children:"[email protected]"}),"."]})]})]})}),i.jsx(et,{})]})}function Dc({label:t,value:r}){return i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",padding:"5px 0"},children:[i.jsx("span",{className:"text-stone",children:t}),i.jsx("span",{children:r})]})}const dv=t=>
53`â¹${t.toLocaleString("en-IN")}`;function Ak({s:t}){const{addToCart:r}=Nr(),{getVariantId:o,getProductStockStatus:a}=So(),[c,d]=g.useState("Black"),h=a(t.handle)==="Sold Out",p=()=>{const m=o(t.handle,c)||`${t.handle}-${c.toLowerCase().replace(/\s+/g,"")}`;r({variantId:m,name:`${t.scent} Set`,price:ds(c),image:t.img[c],size:"Case + Refill",handle:t.handle},1,{Scent:t.scent,Type:"Case + Refill",Size:"Case + Refill",Color:c,Handle:t.handle})};return i.jsxs("div",{className:"rounded-[14px] border border-line bg-paper-card overflow-hidden flex flex-col",children:[i.jsxs("div",{className:"relative aspect-square bg-paper-2",children:[i.jsx("img",{src:t.img[c],alt:`${t.scent}, ${c}`,className:"absolute inset-0 w-full h-full object-cover"}),i.jsx("span",{className:"absolute top-4 left-4 mono text-[10.5px] tracking-[0.16em] uppercase text-white bg-ink/45 px-2.5 py-1.5 rounded-full",children:t.no}),i.jsx("div",{className:"absolute bottom-4 left-4 flex gap-2",children:ua.map(m=>i.jsx("button",{"aria-label":m,title:m,onClick:()=>d(m),className:"w-6 h-6 rounded-full border",style:{background:da[m],borderColor:"rgba(255,255,255,.7)",boxShadow:c===m?"0 0 0 2px #fff":"none"}},m))})]}),i.jsxs("div",{className:"p-6 flex flex-col flex-1",children:[i.jsx("div",{className:"mono text-[11px] tracking-[0.16em] uppercase text-stone",children:"Case + scent · Solid perfume"}),i.jsx("h3",{className:"display text-[28px] leading-none mt-2",children:t.scent}),i.jsx("p",{className:"mono text-[12px] text-ink-soft mt-2",children:t.tag}),i.jsxs("div",{className:"flex items-center justify-between mt-auto pt-6",children:[i.jsx("span",{className:"price",children:dv(ds(c))}),i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx(Se,{to:`/products/${t.id}`,className:"link-u",children:"Know more"}),i.jsx("button",{className:"btn btn-primary",style:{minHeight:44},disabled:h,onClick:p,children:h?"Sold out":"Add"})]})]})]})]})}function Ok({s:t}){const{addToCart:r}=Nr(),{getVariantIdByTitle:o,getProductStockStatus:a}=So(),c=a(`${t.handle}-refill`)==="Sold Out",d=()=>{const h=o(`${t.handle}-refill`,"Refill only")||`${t.handle}-refill`;r({variantId:h,name:`${t.scent} Refill`,price:fa,image:t.refillImg,size:"Refill Only",handle:`${t.handle}-refill`},1,{Scent:t.scent,Type:"Refill Only",Size:"Refill Only"})};return i.jsxs("div",{className:"rounded-[14px] border border-line bg-paper-card overflow-hidden flex flex-col",children:[i.jsx("div",{className:"relative aspect-[5/4] bg-paper-2",children:i.jsx("img",{src:t.refillImg,alt:`${t.scent} refill`,className:"absolute inset-0 w-full h-full object-cover"})}),i.jsxs("div",{className:"p-6 flex items-center justify-between gap-4",children:[i.jsxs("div",{children:[i.jsx("div",{className:"mono text-[11px] tracking-[0.16em] uppercase text-stone",children:"Refill pan"}),i.jsx("h3",{className:"display text-[22px] leading-none mt-1.5",children:t.scent}),i.jsx("span",{className:"price text-[15px]",children:dv(fa)})]}),i.jsx("button",{className:"btn btn-ghost",style:{minHeight:44},disabled:c,onClick:d,children:c?"Sold out":"+ Add"})]})]})}function Ik(){return i.jsxs("div",{children:[i.jsx(Ze,{}),i.jsx("section",{className:"section",children:i.jsxs("div",{className:"wrap",children:[i.jsx("span",{className:"eyebrow",children:"The collection"}),i.jsxs("div",{className:"heading-row",style:{marginTop:18},children:[i.jsx("h2",{style:{fontSize:"clamp(36px,5vw,64px)"},children:"Shop the three."}),i.jsx("p",{className:"mono",style:{color:"var(--stone)",fontSize:13,letterSpacing:".1em",maxWidth:"34ch"},children:"Each a case + scent in a refillable compact. Choose your case colour, or just take a refill."})]}),i.jsx("div",{className:"grid gap-7 md:grid-cols-3",children:ls.map(t=>i.jsx(Ak,{s:t},t.handle))}),i.jsxs("div",{className:"mt-16",children:[i.jsx("span",{className:"eyebrow",children:"Buy once · refill forever"}),i.jsx("h3",{className:"display mt-3 mb-7",style:{fontSize:"clamp(26px,3.4vw,40px)"},children:"Refills · â¹699 each."}),i.jsx("div",{className:"grid gap-7 md:grid-cols-3",children:ls.map(t=>i.jsx(Ok,{s:t},t.handle))})]})]})}),i.jsx(et,{})]})}const jp=t=>
53`â¹${t.toLocaleString("en-IN")}`,ao=()=>i.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M12 2.6l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17.8 6.6 19.5l1-6.1L3.2 9.1l6.1-.9z"})}),_k=()=>i.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M12 21a6 6 0 0 0 6-6c0-2-1-3.6-2.6-5.2L12 6 8.6 9.8C7 11.4 6 13 6 15a6 6 0 0 0 6 6Z"}),i.jsx("line",{x1:"4",y1:"4",x2:"20",y2:"20"})]}),Lk=()=>i.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z"}),i.jsx("path",{d:"M2 22 17 7"})]}),Mk=()=>i.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M10 17h4V5H2v12h3"}),i.jsx("path",{d:"M20 17h2v-3.34a4 4 0 0 0-1.17-2.83L19 9h-5v8h1"}),i.jsx("circle",{cx:"7.5",cy:"17.5",r:"2.5"}),i.jsx("circle",{cx:"17.5",cy:"17.5",r:"2.5"})]}),Dk=()=>i.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}),i.jsx("path",{d:"M21 3v5h-5"}),i.jsx("path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}),i.jsx("path",{d:"M3 21v-5h5"})]}),Fk=()=>i.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M20 10c0 4.99-5.54 10.19-7.4 11.8a1 1 0 0 1-1.2 0C9.54 20.19 4 14.99 4 10a8 8 0 0 1 16 0Z"}),i.jsx("circle",{cx:"12",cy:"10",r:"3"})]}),zk=[{icon:_k,title:"No alcohol",sub:"Balm base, no sting"},{icon:Lk,title:"Skin-kind",sub:"Gentle, even in heat"},{icon:Mk,title:"Free delivery",sub:"Across India · 24â48h"},{icon:Dk,title:"Refillable for life",sub:"Keep the case forever"},{icon:Fk,title:"Made in India",sub:"Blended in small batches"}];function $k(){const{id:t}=ag(),r=hk(Number(t)),{addToCart:o}=Nr(),{getVariantId:a,getVariantIdByTitle:c,getProductStockStatus:d}=So(),[h,p]=g.useState("Case + Refill"),[m,v]=g.useState("Black");if(!r)return i.jsxs("div",{children:[i.jsx(Ze,{}),i.jsxs("div",{className:"section wrap text-center",children:[i.jsx("h1",{className:"display",style:{fontSize:40},children:"Scent not found"}),i.jsx(Se,{to:"/collections",className:"btn btn-primary",style:{marginTop:24},children:"Back to shop"})]}),i.jsx(et,{})]});const b=h==="Case + Refill",S=b?ds(m):fa,k=b?r.img[m]:r.refillImg,w=d(b?r.handle:`${r.handle}-refill`)==="Sold Out",R=()=>{if(b){const x=a(r.handle,m)||`${r.handle}-${m.toLowerCase().replace(/\s+/g,"")}`;o({variantId:x,name:`${r.scent} Set`,price:S,image:k,size:"Case + Refill",handle:r.handle},1,{Scent:r.scent,Type:"Case + Refill",Size:"Case + Refill",Color:m,Handle:r.handle})}else{const x=c(`${r.handle}-refill`,"Refill only")||`${r.handle}-refill`;o({variantId:x,name:`${r.scent} Refill`,price:S,image:k,size:"Refill Only",handle:`${r.handle}-refill`},1,{Scent:r.scent,Type:"Refill Only",Size:"Refill Only"})}};return i.jsxs("div",{children:[i.jsx(Ze,{}),i.jsx("section",{className:"section",children:i.jsxs("div",{className:"wrap",children:[i.jsxs("div",{className:"mono text-[12px] tracking-[0.1em] uppercase text-stone mb-8",children:[i.jsx(Se,{to:"/",className:"hover:text-ink",children:"Home"})," / ",i.jsx(Se,{to:"/collections",className:"hover:text-ink",children:"Shop"})," / ",i.jsx("span",{className:"text-ink",children:r.scent})]}),i.jsxs("div",{className:"grid gap-12 lg:grid-cols-2 items-start",children:[i.jsxs("div",{children:[i.jsxs("div",{className:"relative rounded-[14px] overflow-hidden border border-line bg-paper-2 aspect-square",children:[i.jsx("img",{src:k,alt:r.scent,className:"absolute inset-0 w-full h-full object-cover"}),i.jsx("span",{className:"absolute top-4 left-4 mono text-[10.5px] tracking-[0.16em] uppercase text-white bg-ink/45 px-2.5 py-1.5 rounded-full",children:r.no})]}),b&&i.jsx("div",{className:"flex gap-3 mt-4",children:ua.map(x=>i.jsx("button",{onClick:()=>v(x),"aria-label":x,className:"w-12 h-12 rounded-full border-2 overflow-hidden",style:{borderColor:m===x?"#1C1813":"#D8D1C4"},children:i.jsx("span",{className:"block w-full h-full",style:{background:da[x]}})},x))})]}),i.jsxs("div",{children:[i.jsxs("span",{className:"eyebrow",children:[r.no," · Solid perfume"]}),i.jsxs("h1",{className:"display mt-4",style:{fontSize:"clamp(40px,5vw,68px)",lineHeight:1},children:[r.name," ",i.jsx("em",{style:{fontStyle:"italic",color:"var(--blush-deep)"},children:r.nameEm})]}),i.jsx("p",{className:"mono text-[13px] text-ink-soft mt-3",children:r.tag}),i.jsxs("div",{className:"proof-row",children:[i.jsxs("span",{className:"stars",children:[i.jsx(ao,{}),i.jsx(ao,{}),i.jsx(ao,{}),i.jsx(ao,{}),i.jsx(ao,{})]}),"Trusted by 100+ across India"]}),i.jsx("div",{className:"vibe-chips",style:{marginTop:18},children:r.vibe.map(x=>i.jsx("span",{className:"vibe-chip",children:x},x))}),i.jsx("p",{className:"mt-6 text-ink-soft",style:{maxWidth:"46ch"},children:r.story}),i.jsxs("div",{className:"wear-line",children:[i.jsx("b",{children:"Wear it for"}),i.jsx("span",{children:r.wear})]}),i.jsxs("div",{className:"mt-8",children:[i.jsx("div",{className:"mono text-[11px] tracking-[0.16em] uppercase text-stone mb-3",children:"Format"}),i.jsx("div",{className:"flex gap-3 flex-wrap",children:["Case + Refill","Refill Only"].map(x=>i.jsxs("button",{onClick:()=>p(x),className:`btn ${h===x?"btn-primary":"btn-ghost"}`,style:{minHeight:46},children:[x," · ",jp(x==="Case + Refill"?ds(m):fa)]},x))})]}),b&&i.jsxs("div",{className:"mt-6",children:[i.jsxs("div",{className:"mono text-[11px] tracking-[0.16em] uppercase text-stone mb-3",children:["Case colour · ",m]}
53),i.jsx("div",{className:"flex gap-3",children:ua.map(x=>i.jsx("button",{onClick:()=>v(x),"aria-label":x,title:x,className:"w-9 h-9 rounded-full border-2",style:{background:da[x],borderColor:m===x?"#1C1813":"#D8D1C4"}},x))})]}),i.jsxs("div",{className:"flex items-center gap-5 mt-8",children:[i.jsx("span",{className:"price text-[22px]",children:jp(S)}),i.jsx("button",{className:"btn btn-primary",disabled:w,onClick:R,children:w?"Sold out":"Add to bag"})]}),i.jsx("div",{className:"trust-grid",children:zk.map(({icon:x,title:j,sub:P})=>i.jsxs("div",{className:"trust-badge",children:[i.jsx(x,{}),i.jsxs("div",{children:[i.jsx("b",{children:j}),i.jsx("span",{children:P})]})]},j))}),i.jsx("div",{className:"notes-label",children:"The notes"}),i.jsx("dl",{className:"formula mt-1",children:r.formula.map(([x,j])=>i.jsxs("div",{style:{display:"contents"},children:[i.jsx("dt",{children:x}),i.jsx("dd",{children:j})]},x))})]})]})]})}),i.jsx(et,{})]})}const Bk="/assets/About-DxJ9RtW-.jpg",Wk="/assets/ALYRA-SHOOT-AUG31-003-igxqmy2W.jpg",Uk="/assets/ritualImg-Coab3Tg5.jpg",Hk="/assets/About1-eISko_vI.jpg";function Vk(){return g.useEffect(()=>{const t=document.querySelectorAll(".reveal");if(!("IntersectionObserver"in window)){t.forEach(o=>o.classList.add("in"));return}const r=new IntersectionObserver(o=>o.forEach(a=>{a.isIntersecting&&(a.target.classList.add("in"),r.unobserve(a.target))}),{threshold:.14});return t.forEach(o=>r.observe(o)),()=>r.disconnect()},[]),i.jsxs("div",{children:[i.jsx(Ze,{}),i.jsx("section",{className:"section",children:i.jsx("div",{className:"wrap",children:i.jsxs("div",{className:"hero-grid",children:[i.jsxs("div",{className:"reveal",children:[i.jsx("span",{className:"eyebrow",children:"Our story"}),i.jsx("h1",{className:"display",style:{fontSize:"clamp(36px,5vw,64px)",lineHeight:1.02,marginTop:18},children:"Perfume, rebuilt as a balm you keep."}),i.jsx("p",{className:"hero-lede",children:"ALYRA is India's first solid perfume, fine fragrance reset into a balm you press, not spray, and sealed in a refillable case made to be kept, not discarded. No alcohol, no spills, no half-empty bottles thrown away."}),i.jsxs("div",{className:"hero-cta",children:[i.jsx(Se,{to:"/collections",className:"btn btn-primary",children:"Shop the three"}),i.jsx("a",{href:"#story",className:"btn btn-ghost",children:"Read the story"})]})]}),i.jsxs("div",{className:"hero-stage reveal",children:[i.jsx("img",{src:Bk,alt:"ALYRA refillable solid perfume"}),i.jsx("span",{className:"stage-cap",children:"Made in India · refillable forever"})]})]})})}),i.jsx("section",{className:"section",id:"story",children:i.jsxs("div",{className:"wrap refill",children:[i.jsxs("div",{className:"reveal",children:[i.jsx("span",{className:"eyebrow",children:"Our inspiration"}),i.jsxs("h2",{style:{marginTop:18},children:["Moments that ",i.jsx("em",{children:"live"})," beyond a spritz."]}),i.jsx("p",{children:"From the hidden gardens of Paris to the blue horizons of the Mediterranean, each ALYRA scent captures a moment that lingers. Fruit d'Amour carries the sweetness of first encounters. Riva Azul holds the calm of ocean air after the storm has passed. Ecos de Lisboa is the echo of silence in a city of light, a memory that stays long after the night ends."}),i.jsx("p",{children:"We wanted those moments to last on your skin the way they last in memory: close, personal, and yours to return to with a single press."}),i.jsx("div",{className:"hero-cta",style:{marginTop:8},children:i.jsx(Se,{to:"/collections",className:"link-u",children:"Meet the three scents"})})]}),i.jsx("div",{className:"refill-art reveal",children:i.jsx("img",{src:Wk,alt:"ALYRA scent moments"})})]})}),i.jsx("section",{className:"why section",children:i.jsxs("div",{className:"wrap",children:[i.jsx("span",{className:"eyebrow reveal",children:"Our philosophy"}),i.jsx("h2",{className:"reveal",style:{marginTop:18},children:"True luxury whispers, and refuses to be thrown away."}),i.jsx("p",{className:"why-sub reveal",children:"We built ALYRA on a simple belief: scent should be made to keep, not discarded. Every case stands on four ideas, press over spray, refill over rebuy, balm over alcohol, and craft made for the way India actually lives."}),i.jsx("div",{className:"why-grid reveal",children:[["01","Press, don't spray","A nourishing balm carries the fragrance, no alcohol, no sting, no cloud. Scent sits close to the skin, exactly where you press it."],["02","Refill, forever","The case is the keeper. When a scent runs low, click in a fresh pan
53instead of buying a whole new bottle. Less waste, less spend."],["03","Made for Indian weather","A balm survives heat and humidity where alcohol sprays evaporate and fade. It softens and firms back up, sealed, spill-proof, pocket-ready."],["04","Crafted by hand","Small-batch, artisanal and built to endure. Permanence through refillable design, with none of the waste of single-use perfume."]].map(([t,r,o])=>i.jsxs("div",{className:"why-cell",children:[i.jsx("div",{className:"n",children:t}),i.jsx("h3",{children:r}),i.jsx("p",{children:o})]},t))})]})}),i.jsx("section",{className:"section",children:i.jsxs("div",{className:"wrap refill",children:[i.jsx("div",{className:"refill-art reveal",children:i.jsx("img",{src:Uk,alt:"The ALYRA refill ritual"})}),i.jsxs("div",{className:"reveal",children:[i.jsx("span",{className:"eyebrow",children:"Our promise"}),i.jsxs("h2",{style:{marginTop:18},children:["Not fragrance. An ",i.jsx("em",{children:"heirloom"})," of scent."]}),i.jsx("p",{children:"ALYRA creates more than perfume. We create refillable solid perfume that honours tradition, embraces innovation, and changes the way scent is worn. Every case becomes a treasure. Every refill becomes a memory."}),i.jsxs("div",{className:"refill-stats",children:[i.jsxs("div",{children:[i.jsx("div",{className:"s",children:"â¹699"}),i.jsx("div",{className:"l",children:"per refill"})]}),i.jsxs("div",{children:[i.jsx("div",{className:"s",children:"0%"}),i.jsx("div",{className:"l",children:"alcohol"})]}),i.jsxs("div",{children:[i.jsx("div",{className:"s",children:"â"}),i.jsx("div",{className:"l",children:"case reuses"})]})]}),i.jsx("div",{className:"hero-cta",children:i.jsx(Se,{to:"/collections",className:"btn btn-primary",children:"Shop the three"})})]})]})}),i.jsx("section",{className:"section",children:i.jsx("div",{className:"wrap",children:i.jsxs("div",{className:"set reveal",children:[i.jsxs("div",{className:"set-body",children:[i.jsx("span",{className:"eyebrow",children:"The ALYRA promise"}),i.jsx("h2",{style:{marginTop:14},children:"Our mission"}),i.jsx("blockquote",{className:"display",style:{fontStyle:"italic",fontSize:"clamp(20px,2.4vw,30px)",lineHeight:1.4,margin:"20px 0 8px",maxWidth:"40ch"},children:'"To craft scent that honours the past while embracing the future, where every press tells a story worth remembering, and every case becomes an heirloom worth keeping."'}),i.jsx("div",{className:"mono",style:{fontSize:12,letterSpacing:".14em",textTransform:"uppercase",color:"var(--stone)",marginTop:22},children:", ALYRA · Made in India"})]}),i.jsx("div",{className:"set-art",children:i.jsx("img",{src:Hk,alt:"ALYRA, made to keep"})})]})})}),i.jsx("section",{className:"section tight",children:i.jsx("div",{className:"wrap",children:i.jsxs("div",{className:"news reveal",children:[i.jsx("span",{className:"eyebrow center",children:"Find your signature"}),i.jsx("h2",{style:{marginTop:16},children:"Press. Warm. Wear. Refill."}),i.jsx("p",{children:"Three scents, three stories, each sealed in a case you keep for life. Start with one, or take all three and find the one that becomes yours."}),i.jsx("div",{className:"hero-cta",style:{justifyContent:"center"},children:i.jsx(Se,{to:"/collections",className:"btn btn-primary",children:"Shop the three"})})]})})}),i.jsx(et,{})]})}const fv=[{id:1,slug:"future-of-fragrance-solid-perfume-new-luxury",title:"The Future of Fragrance: Why Solid Perfume is the New Luxury",category:"Editorial",date:"March 15, 2024",summary:"Solid perfume is intimate, portable, and designed to be kept. A new kind of luxury that respects both body and world.",featured:!0,image:"FOFJ.PNG",body:["Luxury has always been about more than excess. Today, it is about permanence, beauty, and design that respects both body and world. Solid perfume embodies this new luxury.","Unlike sprays that fade into the air, solid perfumes stay close, melting gently into the skin with warmth. They are intimate, personal, and lasting. Alyra's solid perfumes are crafted in heavy refillable cases, designed to be kept, not discarded.","In a world of fleeting moments, solid perfume is an object you hold onto, elegant, portable, and sustainable. It is not just fragrance;
53 it is ritual.","Discover why more people are choosing solid perfumes. Explore Alyra's collection of refillable perfumes and find the scent that becomes your story."]},{id:2,slug:"fruit-damour-paris-in-a-breath",title:"Fruit d'Amour: Paris in a Breath",category:"Collection",date:"March 20, 2024",summary:"A romantic solid perfume of red berries, Damask rose, and an amber-oud base that lingers like a memory.",image:"FDMPJ.JPG",body:["Fruit d'Amour is a fragrance of passion and memory. The first impression is a burst of ripe red berries, softened by mandarin's brightness and saffron's golden warmth. A heart of Damask rose blooms, joined by jasmine and ylang-ylang, all wrapped in vanilla's quiet sweetness.","The base lingers deep with oud, sandalwood, amber, and musk, creating a trail that clings like love that refuses to fade.","This scent is Paris captured in a moment, springtime streets, roses in bloom, a memory of love that lingers long after the hour has passed.","Experience Fruit d'Amour, Alyra's most romantic solid perfume, designed to be worn like a love story written on the skin."]},{id:3,slug:"riva-azul-serenity-of-the-sea",title:"Riva Azul: Serenity of the Sea",category:"Collection",date:"March 22, 2024",summary:"Citrus brightness over a marine heart, grounded by woods and ambergris, calm after chaos.",image:"RAJ.PNG",body:["Riva Azul opens like sunlight over the ocean, bergamot and mandarin alive with brightness, pink pepper sparking against the salt air. At its heart, jasmine sambac and lavender create balance, softened by a marine accord that carries the scent of waves.","The base is grounding yet fluid, cedarwood and sandalwood deepened by ambergris and musk, leaving behind the serenity of a horizon stretching endlessly blue.","Riva Azul is not just a fragrance; it is a state of mind. The calm that follows chaos, the ocean folded into a single breath.","Step into the horizon with Riva Azul, a solid perfume of elegance and quiet power."]},{id:4,slug:"ecos-de-lisboa-stillness-in-stone",title:"Ecos de Lisboa: Stillness in Stone",category:"Collection",date:"March 24, 2024",summary:"Citrus, herbs, and woods evoke twilight on Lisbon's stone streets, quiet, grounded, timeless.",image:"EDLJ.PNG",body:["Ecos de Lisboa begins with brightness, bergamot and grapefruit alive with citrus, sage and lavender softening the edges. In its heart, rosemary and cypress breathe of green vitality, warmed by nutmeg's spice.","The foundation is earthy and grounding, oakmoss, vetiver, and sandalwood weaving into tonka bean's quiet sweetness.","It is Lisbon in twilight, the silence of stone streets after heat, an echo that lingers even when the night has passed.","Wear Ecos de Lisboa and carry the memory of timeless evenings wherever you go."]},{id:5,slug:"ritual-of-wearing-solid-perfume",title:"The Ritual of Wearing Solid Perfume",category:"How To",date:"March 26, 2024",summary:"A tactile, intimate way to wear scent: warm the balm, touch pulse points, let it become part of you.",image:"ROWJ.JPG",body:["Fragrance is more than scent; it is ritual. With solid perfume, this ritual becomes tactile, intimate, and lasting. To wear Alyra's solid perfumes, open the weight of the refillable case, let your fingertips touch the balm, and apply it gently to the pulse points, wrists, neck, behind the ears.","The warmth of the body melts the perfume into the skin, releasing the notes slowly, creating a fragrance that feels deeply personal. Unlike sprays, solid perfumes stay close, becoming part of you.","This is not just how you wear perfume. This is how perfume wears you.","Begin your ritual with Alyra's collection of refillable solid perfumes, designed to be kept and remembered."]},{id:6,slug:"why-solid-over-traditional-perfume",title:"Why Solid Perfume Over Traditional Perfume",category:"Editorial",date:"March 28, 2024",summary:"From excess to permanence: refills, skin-close scent, portability, and a quieter kind of luxury.",image:"SOTJ.JPG",body:["For decades, perfume has been defined by glass bottles and atomized sprays. A ritual of excess, scent that lingers in the air more than on the skin, packaging that is discarded as quickly as it is bought. But true luxury has always been about permanence, about what you keep, not what fades.","Solid perfume is the return to intimacy. Instead of clouds of alcohol, it melts gently into your skin with warmth, releasing notes slowly and personally. The fragrance stays close to you, never overwhelming, never wasted. What you wear becomes part of who you are.","Traditional perfumes often evap
53orate quickly, leaving only a faint trace after a few hours. Solid perfumes last longer because they cling to the skin, evolving throughout the day. They are also portable, a small case you carry with you, without the risk of spills or broken bottles. With Alyra, every case is heavy, refillable, and designed to stay with you for years.","There is also a new kind of sustainability here. By choosing solid perfume, you choose to refill rather than discard, to own an object that is timeless rather than temporary. It is a shift away from excess toward elegance.","Solid perfume is not just an alternative. It is the future of fragrance, tactile, intimate, luxurious, and conscious.","Discover Alyra's collection of refillable solid perfumes and experience a new way of wearing scent."]}],Pa="/assets/FOFJ-CpZkgWdI.PNG",hv="/assets/FDMPJ-B8z_OdIS.JPG",pv="/assets/RAJ-B47E_jXQ.PNG",mv="/assets/EDLJ-C9pED0MN.PNG",gv="/assets/ROWJ-ZVJydzHU.JPG",vv="/assets/SOTJ-B0EyGCC1.JPG",Qk={"FOFJ.PNG":Pa,"FDMPJ.JPG":hv,"RAJ.PNG":pv,"EDLJ.PNG":mv,"ROWJ.JPG":gv,"SOTJ.JPG":vv},qk=t=>Qk[t]??Pa,Yk=()=>i.jsxs("div",{className:"min-h-screen bg-paper text-ink",children:[i.jsx(Ze,{}),i.jsx("section",{className:"section",children:i.jsxs("div",{className:"wrap",children:[i.jsxs("header",{className:"max-w-2xl",children:[i.jsx("p",{className:"eyebrow",children:"The Journal"}),i.jsx("h1",{className:"display text-4xl md:text-6xl text-ink mt-3",children:"Words, scent notes & rituals"}),i.jsx("p",{className:"text-ink-soft text-lg leading-relaxed mt-5",children:"A curated archive of small essays, scent notes, and rituals from Alyra. The press will come later, for now, these are our words."})]}),i.jsx("div",{className:"grid gap-7 md:grid-cols-2 lg:grid-cols-3 mt-12",children:fv.map(t=>i.jsxs("article",{className:"rounded-[14px] border border-line bg-paper-card overflow-hidden flex flex-col",children:[i.jsx(Se,{to:`/journal/${t.slug}`,className:"block overflow-hidden",children:i.jsx("img",{src:qk(t.image),alt:t.title,className:"w-full aspect-[4/3] object-cover"})}),i.jsxs("div",{className:"p-6 flex flex-col flex-1",children:[i.jsxs("p",{className:"mono text-xs uppercase tracking-[0.14em] text-stone",children:[t.date," · ",t.category]}),i.jsx("h2",{className:"display text-xl text-ink leading-snug mt-3",children:i.jsx(Se,{to:`/journal/${t.slug}`,className:"hover:text-blush-deep transition-colors",children:t.title})}),i.jsx("p",{className:"text-ink-soft leading-relaxed mt-3 flex-1",children:t.summary}),i.jsx(Se,{to:`/journal/${t.slug}`,className:"link-u mt-5 self-start",children:"Read"})]})]},t.slug))})]})}),i.jsx(et,{})]}),Kk={"FOFJ.PNG":Pa,"FDMPJ.JPG":hv,"RAJ.PNG":pv,"EDLJ.PNG":mv,"ROWJ.JPG":gv,"SOTJ.JPG":vv},Gk=t=>Kk[t]??Pa,Jk=()=>{const{slug:t}=ag(),r=fv.find(o=>o.slug===t);return r?i.jsxs("div",{className:"min-h-screen bg-paper text-ink",children:[i.jsx(Ze,{}),i.jsx("section",{className:"section",children:i.jsx("div",{className:"wrap",children:i.jsxs("div",{className:"mx-auto",style:{maxWidth:"760px"},children:[i.jsx(Se,{to:"/journal",className:"link-u",children:"â Back to journal"}),i.jsxs("header",{className:"mt-8",children:[i.jsx("p",{className:"eyebrow",children:r.category}),i.jsx("h1",{className:"display text-3xl md:text-5xl text-ink leading-tight mt-3",children:r.title}),i.jsx("p",{className:"mono text-xs uppercase tracking-[0.14em] text-stone mt-4",children:r.date})]}),i.jsx("div",{className:"mt-8 overflow-hidden rounded-[14px] border border-line",children:i.jsx("img",{src:Gk(r.image),alt:r.title,className:"w-full h-auto object-cover"})}),i.jsx("div",{className:"prose mt-10",children:r.body.map((o,a)=>i.jsx("p",{children:o},a))}),i.jsx("div",{className:"mt-12 pt-8 border-t border-line",children:i.jsx(Se,{to:"/journal",className:"link-u",children:"â Back to journal"})})]})})}),i.jsx(et,{})]}):i.jsxs("div",{className:"min-h-screen bg-paper text-ink",children:[i.jsx(Ze,{}),i.jsx("section",{className:"section",children:i.jsx("div",{className:"wrap",children:i.jsxs("div",{className:"mx-auto text-center",style:{maxWidth:"760px"},children:[i.jsx("p",{className:"eyebrow center",children:"Not Found"}),i.jsx("h1",{className:"display text-3xl md:text-5xl text-ink mt-3",children:"This story isn't here"}),i.jsx("p",{className:"text-ink-soft text-lg leading-relaxed mt-5",children:"The article you're looking for may have moved or never existed."}),i.jsx("div",{className:"mt-8",children:i.jsx(Se,{to:"/journal",className:"link-u",children:"â Back to journal"})})]})})}),i.jsx(et,{})]})};function Xk(){return i.jsxs("div",{children:[i.jsx(Ze,{}),i.jsx("section",{className:"section",children:i.jsxs("div",{className:"wrap",style:{maxWidth:820},children:[i.jsx("span",{className:"eyebrow",children:"Policy"}),i.jsx("h1",{className:"display",style:{fontSize:"clamp(34px,4.5vw,56px)",lineHeight:1.02,marginTop:18,marginBottom:8},children:"Shipping & Delivery"}),i.jsx("p",{className:"mono text-stone",style:{fontSize:12,letterSpacing:".06em",marginBottom:32},children:"Last updated 2026"}),i.jsxs("div",{className:"prose",children:[i.jsx("p",{children:"We ship ALYRA solid perfumes and refills across India and want each piece to arrive safely and on time. The details below explain how dispatch, delivery, and tracking work."}),i.jsx("h2",{children:"Free shipping across India"}),i.jsx("p",{children:"Shipping is free on every order, anywhere in India. There is no minimum order value and no hidden handling charge at checkout."}),i.jsx("h2",{children:"Dispatch & delivery"}),i.jsx("p",{children:"Orders are dispatched within 24â48 hours of being placed. Once on the way, standard delivery typically takes 3â7 business days depending on your location."}),i.jsx("h2",{children:"Cash on Delivery"}),i.jsx("p",{children:"Cash on Delivery (COD) is available on eligible orders for a flat fee of â¹100, added at checkout. Prepaid orders carry no such fee."}),i.jsx("h2",{children:"Tracking"}),i.jsx("p",{children:"A tracking link is shared as soon as your order is dispatched, so you can follow it from our studio to your door."}),i.jsx("h2",{children:"Restrictions & liability"}),i.jsxs("ul",{children:[i.jsx("li",{children:"We ship only solid perfumes and refills."}),i.jsx("li",{children:"We are not liable for delays caused by couriers or external
53circumstances beyond our control."}),i.jsx("li",{children:"Incorrect addresses or refused deliveries may incur reshipping fees."})]}),i.jsx("h2",{children:"Questions"}),i.jsxs("p",{children:["For anything related to shipping or delivery, write to us at"," ",i.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})," and our team will be glad to help."]})]})]})}),i.jsx(et,{})]})}function Zk(){return i.jsxs("div",{children:[i.jsx(Ze,{}),i.jsx("section",{className:"section",children:i.jsxs("div",{className:"wrap",style:{maxWidth:820},children:[i.jsx("span",{className:"eyebrow",children:"Policy"}),i.jsx("h1",{className:"display",style:{fontSize:"clamp(34px,4.5vw,56px)",lineHeight:1.02,marginTop:18,marginBottom:8},children:"Refunds, Returns & Cancellations"}),i.jsx("p",{className:"mono text-stone",style:{fontSize:12,letterSpacing:".06em",marginBottom:32},children:"Last updated 2026"}),i.jsxs("div",{className:"prose",children:[i.jsx("p",{children:"We want every ALYRA experience to feel considered, start to finish. If something isnât right, hereâs how cancellations, returns, exchanges, and refunds work."}),i.jsx("h2",{children:"Cancellations"}),i.jsxs("p",{children:["You can cancel an order any time before it is dispatched. Email"," ",i.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})," with your order number and weâll confirm the cancellation. Once an order has been dispatched it can no longer be cancelled; you can instead return it under the returns policy below."]}),i.jsx("p",{children:"For prepaid orders, a cancelled order is refunded in full to your original payment method. Cash on Delivery orders that are cancelled before dispatch are not charged anything."}),i.jsx("p",{children:"We may also cancel an order if an item is out of stock, the delivery address is not serviceable, or the payment could not be verified. If we cancel a prepaid order, you receive a full refund."}),i.jsx("h2",{children:"Returns"}),i.jsxs("p",{children:["Items are eligible for return within 7 days of delivery, provided they are unopened and unused. To begin, raise a return request at ",i.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]}),i.jsx("h2",{children:"Non-returnable items"}),i.jsx("p",{children:"For hygiene reasons, opened refills and used perfumes cannot be returned."}),i.jsx("h2",{children:"Damaged or wrong orders"}),i.jsx("p",{children:"If your order arrives damaged or incorrect, please report it within 48 hours of delivery with photos. Eligible orders qualify for a replacement or a full refund."}),i.jsx("h2",{children:"Refunds"}),i.jsx("p",{children:"Approved refunds are processed within 7â10 business days after inspection and credited to your original payment method. Refunds for cancelled orders are processed within 7â10 business days of the cancellation. Your bank may take a few additional days to reflect the credit."}),i.jsx("h2",{children:"Statutory rights"}),i.jsx("p",{children:"Nothing in this policy affects your rights under Indian consumer protection law."}),i.jsx("h2",{children:"Need help?"}),i.jsxs("p",{children:["For any questions about cancellations, returns, exchanges, or refunds, reach our team at"," ",i.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]})]})]})}),i.jsx(et,{})]})}function eE(){return i.jsxs("div",{children:[i.jsx(Ze,{}),i.jsx("section",{className:"section",children:i.jsxs("div",{className:"wrap",style:{maxWidth:820},children:[i.jsx("span",{className:"eyebrow",children:"Policy"}),i.jsx("h1",{className:"display",style:{fontSize:"clamp(34px,4.5vw,56px)",lineHeight:1.02,marginTop:18,marginBottom:8},children:"Privacy Policy"}),i.jsx("p",{className:"mono text-stone",style:{fontSize:12,letterSpacing:".06em",marginBottom:32},children:"Last updated 2026"}),i.jsxs("div",{className:"prose",children:[i.jsx("p",{children:"Alizah Collective Private Limited, operating under the brand name ALYRA (âALYRAâ, âweâ, âourâ, âusâ), respects your privacy and is committed to protecting it. This Privacy Policy explains how we
53collect, use, and safeguard your personal information when you use our website www.alyra.in (the âSiteâ) and purchase our products."}),i.jsx("h2",{children:"1. Information we collect"}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("strong",{children:"Personal data:"})," name, billing and shipping address, email, phone number, payment details."]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Transaction data:"})," order history, invoices, payment confirmations."]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Technical data:"})," IP address, browser type, cookies, analytics."]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Marketing data:"})," newsletter sign-ups, campaign interactions."]})]}),i.jsx("h2",{children:"2. How we use information"}),i.jsxs("ul",{children:[i.jsx("li",{children:"To process, deliver, and confirm orders."}),i.jsx("li",{children:"To provide customer support and respond to inquiries."}),i.jsx("li",{children:"To improve website performance and customer experience."}),i.jsx("li",{children:"To send marketing communication (only if you consent)."}),i.jsx("li",{children:"To comply with legal and tax requirements and prevent fraud."})]}),i.jsx("h2",{children:"3. Data sharing"}),i.jsx("p",{children:"We share information only with trusted partners who help us run our business: our payment processor Razorpay, our own commerce backend (NexusCommerce / Supabase), logistics partners, and analytics/ads providers. We never sell your data."}),i.jsx("h2",{children:"4. Data retention"}),i.jsx("p",{children:"Data is retained only as long as necessary for business or legal purposes (for example, 5 years for tax records)."}),i.jsx("h2",{children:"5. Security"}),i.jsx("p",{children:"We use encryption, secure servers, and restricted access to protect your information. However, no transmission over the internet is fully secure."}),i.jsx("h2",{children:"6. Your rights"}),i.jsxs("ul",{children:[i.jsx("li",{children:"Access, correct, or delete your personal data."}),i.jsx("li",{children:"Withdraw consent for marketing."}),i.jsx("li",{children:"Manage cookies in your browser settings."})]}),i.jsx("h2",{children:"7. Childrenâs privacy"}),i.jsx("p",{children:"Our Site and products are intended for users 18 years and older. By purchasing, you confirm you are at least 18, or using the Site under parental supervision."}),i.jsx("h2",{children:"8. International transfers"}),i.jsx("p",{children:"If you order from outside India, your data may be processed internationally under applicable laws."}),i.jsx("h2",{children:"9. Grievance officer"}),i.jsx("p",{children:"Grievance Officer (as per IT Act, 2000 & Rules 2021):"}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("strong",{children:"Name:"})," Dhruv Narwani (Founder & Director)"]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Email:"})," ",i.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Address:"})," B-609 Reena Complex, 6th Floor, Vidyavihar, Ghatkopar West, Mumbai â 400086, Maharashtra, India"]})]}),i.jsx("h2",{children:"10. Policy updates"}),i.jsx("p",{children:"We may revise this Privacy Policy from time to time; any updates will be posted on this page."}),i.jsx("h2",{children:"11. Cookie policy"}),i.jsx("p",{children:"We use cookies and tracking technologies to:"}),i.jsxs("ul",{children:[i.jsx("li",{children:"Enable essential website functions (checkout, login)."}),i.jsx("li",{children:"Analyse performance for site improvements."}),i.jsx("li",{children:"Deliver personalised ads (with consent)."})]}),i.jsx("p",{children:"You may disable cookies in your browser settings."})]})]})}),i.jsx(et,{})]})}function tE(){return i.jsxs("div",{children:[i.jsx(Ze,{}),i.jsx("section",{className:"section",children:i.jsxs("div",{className:"wrap",style:{maxWidth:820},children:[i.jsx("span",{className:"eyebrow",children:"Policy"}),i.jsx("h1",{className:"display",style:{fontSize:"clamp(34px,4.5vw,56px)",lineHeight:1.02,marginTop:18,marginBottom:8},children:"Terms & Conditions"}),i.jsx("p",{className:"mono text-stone",style:{fontSize:12,letterSpacing:".06em",marginBottom:32},children:"Last updated 2026"}),i.jsxs("div",{className:"prose",children:[i.jsx("p",{children:"These Terms & Conditions (âTermsâ) govern your use of the website www.alyra.in and the purchase of products from Alizah Collective Private Limited, operating under ALYRA. By using this Site, you agree to these Terms."}),i.jsx("h2",{children:"1. Company details"}),i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx("strong",{children:"Alizah Collective Private Limited"})}),i.jsxs("li",{children:[i.jsx("strong",{children:"CIN:"})," U46491MH2025PTC450906"]}),i.jsxs("li",{children:[i.jsx("strong",{children:"Registered Office:"})," B-609 Reena Complex, 6th Floor, Vidyavihar, Ghatkopar West, Mumbai â 400086, Maharashtra, India"]})]}),i.jsx("h2",{children:"2. Eligibility"}),i.jsx("p",{children:"Purchases are limited to individuals 18 years or older, or those under the supervision of a parent or guardian who agrees to these Terms."}),i.jsx("h2",{children:"3. Products"}),i.jsx("p",{children:"Descriptions and imagery are provided with care but may vary. Fragrance perception is subjective and may differ from person to person."}),i.jsx("h2",{children:"4. Orders & acceptance"}),i.jsx("p",{children:"All orders are subject to availability and confirmation. We reserve the right to cancel, limit quantities, or refuse service at our discretion."}),i.jsx("h2",{children:"5. Pricing & payment"}),i.jsxs("ul",{children:[i.jsx("li",{children:"Prices are in INR (â¹), inclusive of GST."}),i.jsx("li",{children:"International orders may incur duties or taxes borne by the customer."}),i.jsx("li",{children:"Payment is required at checkout via a secure gateway."})]}),i.jsx("h2",{children:"6. Intellectual property"}),i.jsx("p",{children:"All trademarks, designs, product names, packaging, and creative assets of ALYRA are the property of Alizah Collective Private Limited. Reproduction without permission is prohibited."}),i.jsx("h2",{children:"7. Liability"}),i.jsxs("ul",{children:[i.jsx("li",{children:"We disclaim responsibility for allergic reactions or sensitivities. Customers should conduct a patch test."}),i.jsx("li",{children:"Our liability is limited to the price of the purchased product."})]}),i.jsx("h2",{children:"8. Force majeure"}),i.jsx("p",{children:"We are not liable for delays or failures caused by events beyond our control, including natural disasters, strikes, pandemics, and logistics delays."}),i.jsx("h2",{children:"9. Indemnity"}),i.jsx("p",{children:"By using the Site, you agree to indemnify ALYRA against any claims, damages, or costs arising from misuse of the Site or breach of these Terms."}),i.jsx("h2",{children:"10. Governing law"}),i.jsx("p",{children:"These Terms are governed by the laws of India. All disputes shall be subject to the exclusive jurisdiction of the courts of Mumbai, Maharashtra."}),i.jsx("h2",{children:"11. Disclaimer"}),i.jsxs("ul",{children:[i.jsx("li",{children:"Fragrance experience varies by individual."}),i.jsx("li",{children:"Products are cosmetic in nature, not medical."}),i.jsx("li",{children:"Customers should perform a patch test before full use."})]})]})]})}),i.jsx(et,{})]})}const nE=()=>i.jsxs("div",{className:"min-h-screen bg-paper text-ink",children:[i.jsx(Ze,{}),i.jsx("section",{className:"section",children:i.jsxs("div",{className:"wrap",children:[i.jsx("span",{className:"eyebrow",children:"Say hello"}),i.jsx("h1",{className:"display",style:{fontSize:"clamp(40px,6vw,76px)",lineHeight:1.02,margin:"18px 0 0"},children:"Get in touch."}),i.jsx("p",{style:{color:"var(--ink-soft)",maxWidth:"52ch",margin:"20px 0 0",fontSize:"clamp(17px,1.6vw,20px)"},children:"Questions about a scent, a refill, or an order? We're a small team and we read every message. We usually reply within 24â48 hours."}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",style:{marginTop:"clamp(36px,5vw,56px)"},children:[i.jsxs("a",{href:"mailto:[email protected]",className:"bg-paper-card border border-line rounded-[14px] p-8 block transition-transform hover:-translate-y-1",children:[i.jsx("span",{className:"mono",style:{fontSize:12,letterSpacing:".16em",textTransform:"uppercase",color:"var(--blush-deep)"},children:"Email"}),i.jsx("h3",{className:"display",style:{fontSize:26,margin:"12px 0 8px"},children:"[email protected]"}),i.jsx("p",{style:{color:"var(--ink-soft)",margin:0},children:"For orders, refills, press, or just to say hi."}),i.jsx("span",{className:"link-u",style:{marginTop:18},children:"Write to us"})]}),i.jsxs("a",{href:"https://instagram.com/alyra.in",target:"_blank",rel:"noopener noreferrer",className:"bg-paper-card border border-line rounded-[14px] p-8 block transition-transform hover:-translate-y-1",children:[i.jsx("span",{className:"mono",style:{fontSize:12,letterSpacing:".16em",textTransform:"uppercase",color:"var(--blush-deep)"},children:"Instagram"}),i.jsx("h3",{className:"display",style:{fontSize:26,margin:"12px 0 8px"},children:"@alyra.in"}),i.jsx("p",{style:{color:"var(--ink-soft)",margin:0},children:"Behind the balm, scent notes, refills, and new releases."}),i.jsx("span",{className:"link-u",style:{marginTop:18},children:"Follow along"})]}),i.jsxs("div",{className:"bg-paper-card border border-line rounded-[14px] p-8",children:[i.jsx("span",{className:"mono",style:{fontSize:12,letterSpacing:".16em",textTransform:"uppercase",color:"var(--blush-deep)"},children:"Response time"}),i.jsx("h3",{className:"display",style:{fontSize:26,margin:"12px 0 8px"},children:"Within 24â48h"}),i.jsx("p",{style:{color:"var(--ink-soft)",margin:0},children:"Most messages get a reply within a working day or two."})]}),i.jsxs("div",{className:"bg-paper-card border border-line rounded-[14px] p-8",children:[i.jsx("span",{className:"mono",style:{fontSize:12,letterSpacing:".16em",textTransform:"uppercase",color:"var(--blush-deep)"},children:"The list"}),i.jsx("h3",{className:"display",style:{fontSize:26,margin:"12px 0 8px"},children:"Stay close"}),i.jsx("p",{style:{color:"var(--ink-soft)",margin:"0 0 18px"},children:"Scent stories and early access, straight to your inbox."}),i.jsx(Se,{className:"btn btn-ghost",to:"/#newsletter",children:"Join the list"})]}),i.jsxs("div",{className:"bg-paper-card border border-line rounded-[14px] p-8 md:col-span-2",children:[i.jsx("span",{className:"mono",style:{fontSize:12,letterSpacing:".16em",textTransform:"uppercase",color:"var(--blush-deep)"},children:"Registered office"}),i.jsx("h3",{className:"display",style:{fontSize:26,margin:"12px 0 8px"},children:"Alizah Collective Private Limited"}),i.jsx("p",{style:{color:"var(--ink-soft)",margin:0},children:"B-609 Reena Complex, 6th Floor, Vidyavihar, Ghatkopar West, Mumbai â 400086, Maharashtra, India"}),i.jsx("p",{className:"mono",style:{color:"var(--ink-soft)",margin:"10px 0 0",fontSize:12,letterSpacing:".06em"},children:"CIN U46491MH2025PTC450906"})]})]})]})}),i.jsx(et,{})]}),rE=()=>{const t=lr();return g.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",t.pathname)},[t.pathname]),i.jsxs("div",{className:"min-h-screen bg-paper text-ink",children:[i.jsx(Ze,{}),i.jsx("section",{className:"section",children:i.jsxs("div",{className:"wrap",style:{textAlign:"center"},children:[i.jsx("span",{className:"eyebrow center",children:"Lost the trail"}),i.jsx("h1",{className:"display",style:{fontSize:"clamp(88px,18vw,200px)",lineHeight:.9,margin:"20px 0 0",color:"var(--blush-deep)"},children:"404"}),i.jsx("p",{style:{color:"var(--ink-soft)",maxWidth:"44ch",margin:"18px auto 32px",fontSize:"clamp(17px,1.6vw,20px)"},children:"This page has drifted off. The scent, thankfully, has not."}),i.jsx(Se,{className:"btn btn-primary",to:"/",children:"Back to home"})]})}),i.jsx(et,{})]})},sE=new aS,oE=()=>(mj(),xj(),i.jsxs(tj,{children:[i.jsx(ct,{path:"/",element:i.jsx(gk,{})}),i.jsx(ct,{path:"/checkout",element:i.jsx(Ek,{})}),i.jsx(ct,{path:"/track",element:i.jsx(Rk,{})}),i.jsx(ct,{path:"/collections",element:i.jsx(Ik,{})}),i.jsx(ct,{path:"/products/:id",element:i.jsx($k,{})}),i.jsx(ct,{path:"/about",element:i.jsx(Vk,{})}),i.jsx(ct,{path:"/journal",element:i.jsx(Yk,{})}),i.jsx(ct,{path:"/journal/:slug",element:i.jsx(Jk,{})}),i.jsx(ct,{path:"/shipping",element:i.jsx(Xk,{})}),i.jsx(ct,{path:"/returns",element:i.jsx(Zk,{})}),i.jsx(ct,{path:"/privacy",element:i.jsx(eE,{})}),i.jsx(ct,{path:"/terms",element:i.jsx(tE,{})}),i.jsx(ct,{path:"/contact",element:i.jsx(nE,{})}),i.jsx(ct,{path:"*",element:i.jsx(rE,{})})]})),iE=()=>i.jsx(cS,{client:sE,children:i.jsx(pj,{attribute:"class",defaultTheme:"light",enableSystem:!1,forcedTheme:"light",disableTransitionOnChange:!0,children:i.jsxs(Db,{children:[i.jsx(p0,{}),i.jsx(G0,{}),i.jsx(cj,{children:i.jsx(oE,{})})]})})});var Cp={},aE="@vercel/analytics",lE="1.5.0",cE=()=>{window.va||(window.va=function(...r){(window.vaq=window.vaq||[]).push(r)})};function yv(){return typeof window<"u"}function xv(){try{const t="production"}catch{}return"production"}function uE(t="auto"){if(t==="auto"){window.vam=xv();return}window.vam=t}function dE(){return(yv()?window.vam:xv())||"production"}function ou(){return dE()==="development"}function fE(t){return t.scriptSrc?t.scriptSrc:ou()?"https://va.vercel-scripts.com/v1/script.debug.js":t.basePath?`${t.basePath}
53/insights/script.js`:"/_vercel/insights/script.js"}function hE(t={debug:!0}){var r;if(!yv())return;uE(t.mode),cE(),t.beforeSend&&((r=window.va)==null||r.call(window,"beforeSend",t.beforeSend));const o=fE(t);if(document.head.querySelector(`script[src*="${o}"]`))return;const a=document.createElement("script");a.src=o,a.defer=!0,a.dataset.sdkn=aE+(t.framework?`/${t.framework}`:""),a.dataset.sdkv=lE,t.disableAutoTrack&&(a.dataset.disableAutoTrack="1"),t.endpoint?a.dataset.endpoint=t.endpoint:t.basePath&&(a.dataset.endpoint=`${t.basePath}/insights`),t.dsn&&(a.dataset.dsn=t.dsn),a.onerror=()=>{const c=ou()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${o}. ${c}`)},ou()&&t.debug===!1&&(a.dataset.debug="false"),document.head.appendChild(a)}function pE({route:t,path:r}){var o;(o=window.va)==null||o.call(window,"pageview",{route:t,path:r})}function mE(){if(!(typeof process>"u"||typeof Cp>"u"))return Cp.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function gE(t){return g.useEffect(()=>{var r;t.beforeSend&&((r=window.va)==null||r.call(window,"beforeSend",t.beforeSend))},[t.beforeSend]),g.useEffect(()=>{hE({framework:t.framework||"react",basePath:t.basePath??mE(),...t.route!==void 0&&{disableAutoTrack:!0},...t})},[]),g.useEffect(()=>{t.route&&t.path&&pE({route:t.route,path:t.path})},[t.route,t.path]),null}var kp={},vE="@vercel/speed-insights",yE="1.3.1",xE=()=>{window.si||(window.si=function(...r){(window.siq=window.siq||[]).push(r)})};function wE(){return typeof window<"u"}function bE(){try{const t="production"}catch{}return"production"}function wv(){return bE()==="development"}function SE(t){return t.scriptSrc?t.scriptSrc:wv()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":t.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":t.basePath?`${t.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js"}function jE(t={}){var r;if(!wE()||t.route===null)return null;xE();const o=SE(t);if(document.head.querySelector(`script[src*="${o}"]`))return null;t.beforeSend&&((r=window.si)==null||r.call(window,"beforeSend",t.beforeSend));const a=document.createElement("script");return a.src=o,a.defer=!0,a.dataset.sdkn=vE+(t.framework?`/${t.framework}`:""),a.dataset.sdkv=yE,t.sampleRate&&(a.dataset.sampleRate=t.sampleRate.toString()),t.route&&(a.dataset.route=t.route),t.endpoint?a.dataset.endpoint=t.endpoint:t.basePath&&(a.dataset.endpoint=`${t.basePath}/speed-insights/vitals`),t.dsn&&(a.dataset.dsn=t.dsn),wv()&&t.debug===!1&&(a.dataset.debug="false"),a.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${o}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(a),{setRoute:c=>{a.dataset.route=c??void 0}}}function CE(){if(!(typeof process>"u"||typeof kp>"u"))return kp.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function kE(t){g.useEffect(()=>{var o;t.beforeSend&&((o=window.si)==null||o.call(window,"beforeSend",t.beforeSend))},[t.beforeSend]);const r=g.useRef(null);return g.useEffect(()=>{if(r.current)t.route&&r.current(t.route);else{const o=jE({framework:t.framework??"react",basePath:t.basePath??CE(),...t});o&&(r.current=o.setRoute)}},[t.route]),null}gj();Sx.createRoot(document.getElementById("root")).render(i.jsxs(J.StrictMode,{children:[i.jsx(ek,{children:i.jsx(iE,{})}),i.jsx(gE,{}),i.jsx(kE,{})]}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.